From 181d056d3aff862ea2b1e65325c2545c92318023 Mon Sep 17 00:00:00 2001 From: ThrRip Date: Wed, 6 Dec 2023 06:50:08 +0800 Subject: [PATCH] admin: Add login and logout --- packages/admin/app.vue | 139 ++++++++++++++++++++++- packages/admin/components/LoginModal.vue | 82 +++++++++++++ packages/admin/plugins/fontawesome.ts | 8 ++ 3 files changed, 223 insertions(+), 6 deletions(-) create mode 100644 packages/admin/components/LoginModal.vue diff --git a/packages/admin/app.vue b/packages/admin/app.vue index 506c61a..2af30a0 100644 --- a/packages/admin/app.vue +++ b/packages/admin/app.vue @@ -4,7 +4,11 @@ class="grid grid-rows-[auto_1fr_auto] max-lg:landscape:gap-y-2 gap-y-4 self-center px-12 max-lg:landscape:py-2 py-7 w-screen sm:w-[26rem] h-2/3 lg:h-[calc(100dvh_-_14rem)] text-white transition-[margin-left] duration-300" - :class="{ '-ml-[16.5rem]': !viewShowFullNavigationBar, 'z-50': viewShowFullNavigationBar }" + :class="{ + '-ml-[26rem]': !backendLoggedIn, + '-ml-[16.5rem]': !viewShowFullNavigationBar, + 'z-50': viewShowFullNavigationBar + }" >

@@ -46,7 +50,62 @@

-
+
+