diff --git a/src/app/layouts/Header.vue b/src/app/layouts/Header.vue index 3ea58a0d..ccca6357 100644 --- a/src/app/layouts/Header.vue +++ b/src/app/layouts/Header.vue @@ -8,7 +8,7 @@ " >

-
+

@@ -7,40 +7,59 @@ WireGuard

-

Welcome to your first setup of wg-easy !

-

Please first enter an admin username and a strong password.

-
+

+ {{ $t('setup.welcome') }} +

+

{{ $t('setup.msg') }}

+
- + + {{ + $t('setup.usernameCondition') + }}
- + + {{ + $t('setup.passwordCondition') + }}
- - + +
- + > + {{ $t('setup.submitBtn') }} +
@@ -61,6 +82,9 @@ const username = ref(null); const password = ref(null); const authStore = useAuthStore(); +const errorCU = ref(false); +const errorPWD = ref(false); + async function newAccount(e: Event) { e.preventDefault(); @@ -74,6 +98,7 @@ async function newAccount(e: Event) { } catch (error) { if (error instanceof Error) { // TODO: replace alert with actual ui error message + // TODO: also use errorCU & errorPWD to show prompt error alert(error.message || error.toString()); } } diff --git a/src/package.json b/src/package.json index 26d3af41..6f658b8b 100644 --- a/src/package.json +++ b/src/package.json @@ -6,7 +6,7 @@ "type": "module", "scripts": { "build": "nuxt build", - "dev": "nuxt dev", + "dev": "rm -rf /tmp/nitro && nuxt dev", "generate": "nuxt generate", "preview": "nuxt preview", "postinstall": "nuxt prepare",