From fd42ad8b3ed36acf1292fa04a2fccb380be6e712 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Mon, 4 Nov 2024 15:04:58 +0100 Subject: [PATCH] Add & Enable logged-in user's email in footer with new menu for nav links - Closes #404 --- config/2fauth.php | 1 + resources/js/assets/app.scss | 8 +++++ resources/js/layouts/Footer.vue | 47 +++++++++++++++++++++++-- resources/js/views/settings/Options.vue | 2 ++ resources/lang/en/admin.php | 1 + resources/lang/en/settings.php | 6 +++- 6 files changed, 61 insertions(+), 4 deletions(-) diff --git a/config/2fauth.php b/config/2fauth.php index e0c951636..b8c4cf368 100644 --- a/config/2fauth.php +++ b/config/2fauth.php @@ -134,6 +134,7 @@ 'sortCaseSensitive' => false, 'autoCloseTimeout' => 2, 'AutoSaveQrcodedAccount' => false, + 'showEmailInFooter' => true, ], ]; diff --git a/resources/js/assets/app.scss b/resources/js/assets/app.scss index fec0fb8e1..78cee34cc 100644 --- a/resources/js/assets/app.scss +++ b/resources/js/assets/app.scss @@ -962,6 +962,14 @@ footer.main .field.is-grouped { justify-content: center; } +footer.menu { + box-shadow: 0px 3px 10px 5px rgba(0,0,0,0.05); +} + +:root[data-theme="dark"] footer.menu { + box-shadow: 0px 3px 10px 5px rgba(0,0,0,0.25); +} + .notification { padding: 0.4rem 1.5rem; } diff --git a/resources/js/layouts/Footer.vue b/resources/js/layouts/Footer.vue index 1e6831d08..eeb3077d4 100644 --- a/resources/js/layouts/Footer.vue +++ b/resources/js/layouts/Footer.vue @@ -1,10 +1,12 @@