Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions web/.typesafe-i18n.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"adapter": "react",
"$schema": "https://unpkg.com/typesafe-i18n@5.26.2/schema/typesafe-i18n.json",
"baseLocale": "en"
"adapter": "react",
"$schema": "https://unpkg.com/typesafe-i18n@5.26.2/schema/typesafe-i18n.json",
"baseLocale": "en"
}
10 changes: 2 additions & 8 deletions web/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"cSpell.words": [
"MFATOTP",
"openidclient",
"TOTP",
"Typesafe",
"walletconnect"
],
"typescript.tsdk": "node_modules/typescript/lib"
"cSpell.words": ["MFATOTP", "openidclient", "TOTP", "Typesafe", "walletconnect"],
"typescript.tsdk": "node_modules/typescript/lib"
}
7,549 changes: 5,633 additions & 1,916 deletions web/pnpm-lock.yaml

Large diffs are not rendered by default.

37 changes: 24 additions & 13 deletions web/src/i18n/en/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1494,28 +1494,39 @@ const en: BaseTranslation = {
},
},
gatewaySetup: {
header: 'Gateway server setup',
header: {
main: 'Gateway server setup',
dockerBasedGatewaySetup: `Docker Based Gateway Setup`,
fromPackage: `From Package`,
oneLineInstall: `One Line Install`,
},
card: {
title: 'Docker based gateway setup',
authToken: `Authentication Token`,
},
button: {
availablePackages: `Available Packages`,
},
controls: {
status: 'Check connection status',
},
messages: {
runCommand: `
<p>
Defguard requires to deploy a gateway node to control wireguard VPN on the vpn server.
More details can be found in the <a href="{setupGatewayDocs:string}" target="_blank">documentation</a>.
runCommand: `Defguard requires to deploy a gateway node to control wireguard VPN on the vpn server.
More details can be found in the [documentation]({setupGatewayDocs:string}).
There are several ways to deploy the gateway server,
below is a Docker based example, for other examples please visit <a href="{setupGatewayDocs:string}" target="_blank">documentation</a>.
</p>`,
createNetwork: `
<p>
Please create the network before running the gateway process.
</p>`,
noConnection: `<p>No connection established, please run provided command.</p>`,
connected: `<p>Gateway connected.</p>`,
below is a Docker based example, for other examples please visit [documentation]({setupGatewayDocs:string}).`,
createNetwork: `Please create the network before running the gateway process.`,
noConnection: `No connection established, please run provided command.`,
connected: `Gateway connected.`,
statusError: 'Failed to get gateway status',
oneLineInstall: `If you are doing one line install: https://defguard.gitbook.io/defguard/admin-and-features/setting-up-your-instance/one-line-install
you don't need to do anything.`,
fromPackage: `Install the package available at https://github.com/DefGuard/gateway/releases/latest and configure \`/etc/defguard/gateway.toml\`
according to the [documentation]({setupGatewayDocs:string}).`,
authToken: `Token below is required to authenticate and configure the gateway node. Ensure you keep this token secure and follow the deployment instructions
provided in the [documentation]({setupGatewayDocs:string}) to successfully set up the gateway server.
For more details and exact steps, please refer to the [documentation]({setupGatewayDocs:string}).`,
dockerBasedGatewaySetup: `Below is a Docker based example. For more details and exact steps, please refer to the [documentation]({setupGatewayDocs:string}).`,
},
},
loginPage: {
Expand Down
145 changes: 113 additions & 32 deletions web/src/i18n/i18n-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3554,15 +3554,39 @@ type RootTranslation = {
}
}
gatewaySetup: {
/**
* G​a​t​e​w​a​y​ ​s​e​r​v​e​r​ ​s​e​t​u​p
*/
header: string
header: {
/**
* G​a​t​e​w​a​y​ ​s​e​r​v​e​r​ ​s​e​t​u​p
*/
main: string
/**
* D​o​c​k​e​r​ ​B​a​s​e​d​ ​G​a​t​e​w​a​y​ ​S​e​t​u​p
*/
dockerBasedGatewaySetup: string
/**
* F​r​o​m​ ​P​a​c​k​a​g​e
*/
fromPackage: string
/**
* O​n​e​ ​L​i​n​e​ ​I​n​s​t​a​l​l
*/
oneLineInstall: string
}
card: {
/**
* D​o​c​k​e​r​ ​b​a​s​e​d​ ​g​a​t​e​w​a​y​ ​s​e​t​u​p
*/
title: string
/**
* A​u​t​h​e​n​t​i​c​a​t​i​o​n​ ​T​o​k​e​n
*/
authToken: string
}
button: {
/**
* A​v​a​i​l​a​b​l​e​ ​P​a​c​k​a​g​e​s
*/
availablePackages: string
}
controls: {
/**
Expand All @@ -3572,35 +3596,53 @@ type RootTranslation = {
}
messages: {
/**
*
​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​<​p​>​
​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​D​e​f​g​u​a​r​d​ ​r​e​q​u​i​r​e​s​ ​t​o​ ​d​e​p​l​o​y​ ​a​ ​g​a​t​e​w​a​y​ ​n​o​d​e​ ​t​o​ ​c​o​n​t​r​o​l​ ​w​i​r​e​g​u​a​r​d​ ​V​P​N​ ​o​n​ ​t​h​e​ ​v​p​n​ ​s​e​r​v​e​r​.​
​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​M​o​r​e​ ​d​e​t​a​i​l​s​ ​c​a​n​ ​b​e​ ​f​o​u​n​d​ ​i​n​ ​t​h​e​ ​<​a​ ​h​r​e​f​=​"​{​s​e​t​u​p​G​a​t​e​w​a​y​D​o​c​s​}​"​ ​t​a​r​g​e​t​=​"​_​b​l​a​n​k​"​>​d​o​c​u​m​e​n​t​a​t​i​o​n​<​/​a​>​.​
* D​e​f​g​u​a​r​d​ ​r​e​q​u​i​r​e​s​ ​t​o​ ​d​e​p​l​o​y​ ​a​ ​g​a​t​e​w​a​y​ ​n​o​d​e​ ​t​o​ ​c​o​n​t​r​o​l​ ​w​i​r​e​g​u​a​r​d​ ​V​P​N​ ​o​n​ ​t​h​e​ ​v​p​n​ ​s​e​r​v​e​r​.​
​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​M​o​r​e​ ​d​e​t​a​i​l​s​ ​c​a​n​ ​b​e​ ​f​o​u​n​d​ ​i​n​ ​t​h​e​ ​[​d​o​c​u​m​e​n​t​a​t​i​o​n​]​(​{​s​e​t​u​p​G​a​t​e​w​a​y​D​o​c​s​}​)​.​
​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​T​h​e​r​e​ ​a​r​e​ ​s​e​v​e​r​a​l​ ​w​a​y​s​ ​t​o​ ​d​e​p​l​o​y​ ​t​h​e​ ​g​a​t​e​w​a​y​ ​s​e​r​v​e​r​,​
​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​b​e​l​o​w​ ​i​s​ ​a​ ​D​o​c​k​e​r​ ​b​a​s​e​d​ ​e​x​a​m​p​l​e​,​ ​f​o​r​ ​o​t​h​e​r​ ​e​x​a​m​p​l​e​s​ ​p​l​e​a​s​e​ ​v​i​s​i​t​ ​<​a​ ​h​r​e​f​=​"​{​s​e​t​u​p​G​a​t​e​w​a​y​D​o​c​s​}​"​ ​t​a​r​g​e​t​=​"​_​b​l​a​n​k​"​>​d​o​c​u​m​e​n​t​a​t​i​o​n​<​/​a​>​.​
​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​<​/​p​>
​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​b​e​l​o​w​ ​i​s​ ​a​ ​D​o​c​k​e​r​ ​b​a​s​e​d​ ​e​x​a​m​p​l​e​,​ ​f​o​r​ ​o​t​h​e​r​ ​e​x​a​m​p​l​e​s​ ​p​l​e​a​s​e​ ​v​i​s​i​t​ ​[​d​o​c​u​m​e​n​t​a​t​i​o​n​]​(​{​s​e​t​u​p​G​a​t​e​w​a​y​D​o​c​s​}​)​.​
​ ​ ​ ​ ​ ​ ​ ​ ​ ​
* @param {string} setupGatewayDocs
*/
runCommand: RequiredParams<'setupGatewayDocs' | 'setupGatewayDocs'>
/**
*
​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​<​p​>​
​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​P​l​e​a​s​e​ ​c​r​e​a​t​e​ ​t​h​e​ ​n​e​t​w​o​r​k​ ​b​e​f​o​r​e​ ​r​u​n​n​i​n​g​ ​t​h​e​ ​g​a​t​e​w​a​y​ ​p​r​o​c​e​s​s​.​
​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​<​/​p​>
* P​l​e​a​s​e​ ​c​r​e​a​t​e​ ​t​h​e​ ​n​e​t​w​o​r​k​ ​b​e​f​o​r​e​ ​r​u​n​n​i​n​g​ ​t​h​e​ ​g​a​t​e​w​a​y​ ​p​r​o​c​e​s​s​.
*/
createNetwork: string
/**
* <​p​>​N​o​ ​c​o​n​n​e​c​t​i​o​n​ ​e​s​t​a​b​l​i​s​h​e​d​,​ ​p​l​e​a​s​e​ ​r​u​n​ ​p​r​o​v​i​d​e​d​ ​c​o​m​m​a​n​d​.​<​/​p​>
* N​o​ ​c​o​n​n​e​c​t​i​o​n​ ​e​s​t​a​b​l​i​s​h​e​d​,​ ​p​l​e​a​s​e​ ​r​u​n​ ​p​r​o​v​i​d​e​d​ ​c​o​m​m​a​n​d​.
*/
noConnection: string
/**
* <​p​>​G​a​t​e​w​a​y​ ​c​o​n​n​e​c​t​e​d​.​<​/​p​>
* G​a​t​e​w​a​y​ ​c​o​n​n​e​c​t​e​d​.
*/
connected: string
/**
* F​a​i​l​e​d​ ​t​o​ ​g​e​t​ ​g​a​t​e​w​a​y​ ​s​t​a​t​u​s
*/
statusError: string
/**
* I​f​ ​y​o​u​ ​a​r​e​ ​d​o​i​n​g​ ​o​n​e​ ​l​i​n​e​ ​i​n​s​t​a​l​l​:​ ​h​t​t​p​s​:​/​/​d​e​f​g​u​a​r​d​.​g​i​t​b​o​o​k​.​i​o​/​d​e​f​g​u​a​r​d​/​a​d​m​i​n​-​a​n​d​-​f​e​a​t​u​r​e​s​/​s​e​t​t​i​n​g​-​u​p​-​y​o​u​r​-​i​n​s​t​a​n​c​e​/​o​n​e​-​l​i​n​e​-​i​n​s​t​a​l​l​ ​
​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​y​o​u​ ​d​o​n​'​t​ ​n​e​e​d​ ​t​o​ ​d​o​ ​a​n​y​t​h​i​n​g​.
*/
oneLineInstall: string
/**
* I​n​s​t​a​l​l​ ​t​h​e​ ​p​a​c​k​a​g​e​ ​a​v​a​i​l​a​b​l​e​ ​a​t​ ​h​t​t​p​s​:​/​/​g​i​t​h​u​b​.​c​o​m​/​D​e​f​G​u​a​r​d​/​g​a​t​e​w​a​y​/​r​e​l​e​a​s​e​s​/​l​a​t​e​s​t​ ​a​n​d​ ​c​o​n​f​i​g​u​r​e​ ​`​/​e​t​c​/​d​e​f​g​u​a​r​d​/​g​a​t​e​w​a​y​.​t​o​m​l​`​ ​
​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​a​c​c​o​r​d​i​n​g​ ​t​o​ ​t​h​e​ ​[​d​o​c​u​m​e​n​t​a​t​i​o​n​]​(​{​s​e​t​u​p​G​a​t​e​w​a​y​D​o​c​s​}​)​.
* @param {string} setupGatewayDocs
*/
fromPackage: RequiredParams<'setupGatewayDocs'>
/**
* T​o​k​e​n​ ​b​e​l​o​w​ ​i​s​ ​r​e​q​u​i​r​e​d​ ​t​o​ ​a​u​t​h​e​n​t​i​c​a​t​e​ ​a​n​d​ ​c​o​n​f​i​g​u​r​e​ ​t​h​e​ ​g​a​t​e​w​a​y​ ​n​o​d​e​.​ ​E​n​s​u​r​e​ ​y​o​u​ ​k​e​e​p​ ​t​h​i​s​ ​t​o​k​e​n​ ​s​e​c​u​r​e​ ​a​n​d​ ​f​o​l​l​o​w​ ​t​h​e​ ​d​e​p​l​o​y​m​e​n​t​ ​i​n​s​t​r​u​c​t​i​o​n​s​ ​
​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​p​r​o​v​i​d​e​d​ ​i​n​ ​t​h​e​ ​[​d​o​c​u​m​e​n​t​a​t​i​o​n​]​(​{​s​e​t​u​p​G​a​t​e​w​a​y​D​o​c​s​}​)​ ​t​o​ ​s​u​c​c​e​s​s​f​u​l​l​y​ ​s​e​t​ ​u​p​ ​t​h​e​ ​g​a​t​e​w​a​y​ ​s​e​r​v​e​r​.​
​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​F​o​r​ ​m​o​r​e​ ​d​e​t​a​i​l​s​ ​a​n​d​ ​e​x​a​c​t​ ​s​t​e​p​s​,​ ​p​l​e​a​s​e​ ​r​e​f​e​r​ ​t​o​ ​t​h​e​ ​[​d​o​c​u​m​e​n​t​a​t​i​o​n​]​(​{​s​e​t​u​p​G​a​t​e​w​a​y​D​o​c​s​}​)​.
* @param {string} setupGatewayDocs
*/
authToken: RequiredParams<'setupGatewayDocs' | 'setupGatewayDocs'>
/**
* B​e​l​o​w​ ​i​s​ ​a​ ​D​o​c​k​e​r​ ​b​a​s​e​d​ ​e​x​a​m​p​l​e​.​ ​F​o​r​ ​m​o​r​e​ ​d​e​t​a​i​l​s​ ​a​n​d​ ​e​x​a​c​t​ ​s​t​e​p​s​,​ ​p​l​e​a​s​e​ ​r​e​f​e​r​ ​t​o​ ​t​h​e​ ​[​d​o​c​u​m​e​n​t​a​t​i​o​n​]​(​{​s​e​t​u​p​G​a​t​e​w​a​y​D​o​c​s​}​)​.
* @param {string} setupGatewayDocs
*/
dockerBasedGatewaySetup: RequiredParams<'setupGatewayDocs'>
}
}
loginPage: {
Expand Down Expand Up @@ -7600,15 +7642,39 @@ export type TranslationFunctions = {
}
}
gatewaySetup: {
/**
* Gateway server setup
*/
header: () => LocalizedString
header: {
/**
* Gateway server setup
*/
main: () => LocalizedString
/**
* Docker Based Gateway Setup
*/
dockerBasedGatewaySetup: () => LocalizedString
/**
* From Package
*/
fromPackage: () => LocalizedString
/**
* One Line Install
*/
oneLineInstall: () => LocalizedString
}
card: {
/**
* Docker based gateway setup
*/
title: () => LocalizedString
/**
* Authentication Token
*/
authToken: () => LocalizedString
}
button: {
/**
* Available Packages
*/
availablePackages: () => LocalizedString
}
controls: {
/**
Expand All @@ -7618,34 +7684,49 @@ export type TranslationFunctions = {
}
messages: {
/**
*
<p>
Defguard requires to deploy a gateway node to control wireguard VPN on the vpn server.
More details can be found in the <a href="{setupGatewayDocs}" target="_blank">documentation</a>.
* Defguard requires to deploy a gateway node to control wireguard VPN on the vpn server.
More details can be found in the [documentation]({setupGatewayDocs}).
There are several ways to deploy the gateway server,
below is a Docker based example, for other examples please visit <a href="{setupGatewayDocs}" target="_blank">documentation</a>.
</p>
below is a Docker based example, for other examples please visit [documentation]({setupGatewayDocs}).

*/
runCommand: (arg: { setupGatewayDocs: string }) => LocalizedString
/**
*
<p>
Please create the network before running the gateway process.
</p>
* Please create the network before running the gateway process.
*/
createNetwork: () => LocalizedString
/**
* <p>No connection established, please run provided command.</p>
* No connection established, please run provided command.
*/
noConnection: () => LocalizedString
/**
* <p>Gateway connected.</p>
* Gateway connected.
*/
connected: () => LocalizedString
/**
* Failed to get gateway status
*/
statusError: () => LocalizedString
/**
* If you are doing one line install: https://defguard.gitbook.io/defguard/admin-and-features/setting-up-your-instance/one-line-install
you don't need to do anything.
*/
oneLineInstall: () => LocalizedString
/**
* Install the package available at https://github.com/DefGuard/gateway/releases/latest and configure `/etc/defguard/gateway.toml`
according to the [documentation]({setupGatewayDocs}).
*/
fromPackage: (arg: { setupGatewayDocs: string }) => LocalizedString
/**
* Token below is required to authenticate and configure the gateway node. Ensure you keep this token secure and follow the deployment instructions
provided in the [documentation]({setupGatewayDocs}) to successfully set up the gateway server.
For more details and exact steps, please refer to the [documentation]({setupGatewayDocs}).
*/
authToken: (arg: { setupGatewayDocs: string }) => LocalizedString
/**
* Below is a Docker based example. For more details and exact steps, please refer to the [documentation]({setupGatewayDocs}).
*/
dockerBasedGatewaySetup: (arg: { setupGatewayDocs: string }) => LocalizedString
}
}
loginPage: {
Expand Down
38 changes: 25 additions & 13 deletions web/src/i18n/pl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1482,28 +1482,40 @@ Uwaga, podane tutaj konfiguracje nie posiadają klucza prywatnego. Musisz uzupe
},
},
gatewaySetup: {
header: 'Uruchomienie serwera gateway',
header: {
main: 'Uruchomienie serwera gateway',
dockerBasedGatewaySetup: `Konfiguracja gateway za pomocą narzędzia docker`,
fromPackage: `Z pakietu`,
oneLineInstall: `Instalacja za pomocą jednej linii`,
},
card: {
title: 'Komenda Dockera uruchamiająca serwer gateway',
authToken: 'Token Autoryzacyjny',
},
button: {
availablePackages: `Dostępne pakiety`,
},
controls: {
status: 'Sprawdź status połączenia',
},
messages: {
runCommand: `
<p>
Defguard wymaga uruchomienia serwera gateway w celu kontrolowania VPN.
Szczegóły znajdziesz w <a href="{setupGatewayDocs}" target="_blank">dokumentacji</a>.
runCommand: `Defguard wymaga uruchomienia serwera gateway w celu kontrolowania VPN.
Szczegóły znajdziesz w [dokumentacji]({setupGatewayDocs}).
Istnieje wiele sposobów na uruchomienie serwera gateway, poniższy przykład używa technologii Docker,
więcej przykładów znajdziesz w <a href="{setupGatewayDocs}" target="_blank">dokumentacji</a>.
</p>`,
createNetwork: `
<p>
Utwórz sieć przed uruchomieniem procesu gateway.
</p>`,
noConnection: `<p>Brak połączenia proszę uruchom poniższą komendę.</p>`,
connected: `<p>Gateway połączony.</p>`,
więcej przykładów znajdziesz w [dokumentacji]({setupGatewayDocs}).`,
createNetwork: `Utwórz sieć przed uruchomieniem procesu gateway.`,
noConnection: `Brak połączenia proszę uruchom poniższą komendę.`,
connected: `Gateway połączony.`,
statusError: 'Nie udało się uzyskać statusu',
oneLineInstall: `Jeśli wykonujesz instalację w jednej linii: https://defguard.gitbook.io/defguard/admin-and-features/setting-up-your-instance/one-line-install
nie ma potrzeby wykonywania dalszych kroków.`,
fromPackage: `Zainstaluj pakiet dostępny na https://github.com/DefGuard/gateway/releases/latest i skonfiguruj \`/etc/defguard/gateway.toml\`
na podstawie [dokumentacji]({setupGatewayDocs}).`,
authToken: `Poniższy token jest wymwagany do autoryzacji i konfiguracji węzła gateway. Upewnij się, że zachowasz ten token w bezpiecznym miejscu,
a następnie podążaj za instrukcją wdrażania usługi znajdującej się w [dokumentacji]({setupGatewayDocs}), aby pomyślnie skonfigurwoać serwer gateway.
Po więcej szczegółów i dokładnych kroków, proszę zapoznaj się z [dokumentacją](setupGatewayDocs).`,
dockerBasedGatewaySetup: `Poniżej znajduje się przykład oparty na Dockerze.
Więcej szczegółów i dokładnych kroków można znaleźć w [dokumentacji]({setupGatewayDocs}).`,
},
},
loginPage: {
Expand Down
Loading