From 5ecfaa88c23a3ddff46a895bfe2668a1f13ceac0 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 22 Aug 2021 10:46:04 -0500 Subject: [PATCH] Reset password and users table on settings page --- client/assets/app.css | 4 ++ client/components/app/Appbar.vue | 12 ++--- client/components/ui/Menu.vue | 9 +++- client/pages/account.vue | 92 ++++++++++++++++++++++++++++++++ client/pages/config/index.vue | 80 ++++++++++++++++++++++++--- server/ApiController.js | 11 ++++ server/Auth.js | 67 +++++++++-------------- server/Db.js | 2 + server/Server.js | 2 - 9 files changed, 221 insertions(+), 58 deletions(-) create mode 100644 client/pages/account.vue diff --git a/client/assets/app.css b/client/assets/app.css index 86004e26..21cd8bff 100644 --- a/client/assets/app.css +++ b/client/assets/app.css @@ -61,4 +61,8 @@ border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid white; +} + +.icon-text { + font-size: 1.1rem; } \ No newline at end of file diff --git a/client/components/app/Appbar.vue b/client/components/app/Appbar.vue index 5ec90484..a1ef9b74 100644 --- a/client/components/app/Appbar.vue +++ b/client/components/app/Appbar.vue @@ -26,10 +26,11 @@ export default { data() { return { menuItems: [ - // { - // value: 'settings', - // text: 'Settings' - // }, + { + value: 'account', + text: 'Account', + to: '/account' + }, { value: 'logout', text: 'Logout' @@ -72,8 +73,6 @@ export default { menuAction(action) { if (action === 'logout') { this.logout() - } else if (action === 'settings') { - // Show settings modal } } }, @@ -83,7 +82,6 @@ export default { \ No newline at end of file diff --git a/client/components/ui/Menu.vue b/client/components/ui/Menu.vue index 402a2c3b..d7e52768 100644 --- a/client/components/ui/Menu.vue +++ b/client/components/ui/Menu.vue @@ -12,7 +12,14 @@