From 8d844a5feeef1d8994f5fd36d000ae9ed519bd10 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 13 Jun 2024 16:39:41 +0200 Subject: [PATCH] Add login and auth handling Signed-off-by: Knut Ahlers --- package-lock.json | 7 ++ package.json | 3 +- src/components/_headNav.vue | 98 +++++++++++++++++++++ src/components/app.vue | 87 +++++++++---------- src/components/login.vue | 69 +++++++++++++++ src/helpers/configNotify.ts | 49 +++++++++++ src/main.ts | 164 ++++++++++++++++++++++++++++++++++-- src/router.ts | 7 ++ 8 files changed, 429 insertions(+), 55 deletions(-) create mode 100644 src/components/_headNav.vue create mode 100644 src/components/login.vue create mode 100644 src/helpers/configNotify.ts diff --git a/package-lock.json b/package-lock.json index 191ae1f..2c7b3d4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "@fortawesome/fontawesome-free": "^6.5.2", "bootstrap": "^5.3.3", "codejar": "^4.2.0", + "mitt": "^3.0.1", "prismjs": "^1.29.0", "vue": "^3.4.27", "vue-router": "^4.3.3" @@ -3373,6 +3374,12 @@ "node": "*" } }, + "node_modules/mitt": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", + "license": "MIT" + }, "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", diff --git a/package.json b/package.json index 4f7c029..08425f6 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "@fortawesome/fontawesome-free": "^6.5.2", "bootstrap": "^5.3.3", "codejar": "^4.2.0", + "mitt": "^3.0.1", "prismjs": "^1.29.0", "vue": "^3.4.27", "vue-router": "^4.3.3" @@ -18,4 +19,4 @@ "eslint-plugin-vue": "^9.26.0", "typescript": "^5.4.5" } -} \ No newline at end of file +} diff --git a/src/components/_headNav.vue b/src/components/_headNav.vue new file mode 100644 index 0000000..50b8509 --- /dev/null +++ b/src/components/_headNav.vue @@ -0,0 +1,98 @@ + + + + + diff --git a/src/components/app.vue b/src/components/app.vue index 8b0e5ce..3cb753f 100644 --- a/src/components/app.vue +++ b/src/components/app.vue @@ -1,60 +1,49 @@