From 53ad547dd08186686780063699f62e0ad08f89cb Mon Sep 17 00:00:00 2001 From: tetuaoro <65575727+tetuaoro@users.noreply.github.com> Date: Mon, 16 Sep 2024 15:51:22 +0200 Subject: [PATCH] update: login page --- src/app/components/error/Toast.vue | 2 +- src/app/components/panel/Panel.vue | 2 +- src/app/pages/login.vue | 41 +++++++-- src/app/pages/me.vue | 2 + src/app/pages/setup.vue | 132 ++++++++++++++------------- src/app/stores/auth.ts | 4 +- src/app/utils/api.ts | 4 +- src/locales/en.json | 4 +- src/server/api/account/setup.post.ts | 2 +- src/server/api/session.post.ts | 2 +- src/server/utils/types.ts | 13 +++ 11 files changed, 128 insertions(+), 80 deletions(-) diff --git a/src/app/components/error/Toast.vue b/src/app/components/error/Toast.vue index 6eff1611..efde0da4 100644 --- a/src/app/components/error/Toast.vue +++ b/src/app/components/error/Toast.vue @@ -7,7 +7,7 @@ const props = defineProps<{ const open = ref(true); -const autoCloseToast = props.duration ? Number(props.duration) : 5000; // 5 seconds +const autoCloseToast = props.duration ? Number(props.duration) : 12000; // 12 seconds onMounted(() => { setTimeout(() => { diff --git a/src/app/components/panel/Panel.vue b/src/app/components/panel/Panel.vue index f9b7d433..3777a9e0 100644 --- a/src/app/components/panel/Panel.vue +++ b/src/app/components/panel/Panel.vue @@ -1,7 +1,7 @@