From f13e868e729bd75e1acb2b1587e986451971046b Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Thu, 3 Aug 2023 10:46:48 -0700 Subject: [PATCH] admin: revamp UI Signed-off-by: Varun Patil --- src/components/admin/AdminMain.vue | 58 +++++++++++++++---- src/components/admin/sections/Apps.vue | 3 + src/components/admin/sections/Exif.vue | 3 + src/components/admin/sections/FileSupport.vue | 1 + src/components/admin/sections/Indexing.vue | 3 + src/components/admin/sections/Performance.vue | 3 + src/components/admin/sections/Places.vue | 3 + src/components/admin/sections/Video.vue | 3 + src/components/admin/sections/VideoAccel.vue | 3 + .../admin/sections/VideoTranscoder.vue | 3 + src/components/admin/sections/_Template.vue | 3 + 11 files changed, 74 insertions(+), 12 deletions(-) diff --git a/src/components/admin/AdminMain.vue b/src/components/admin/AdminMain.vue index caa3bca9..9e253e72 100644 --- a/src/components/admin/AdminMain.vue +++ b/src/components/admin/AdminMain.vue @@ -2,15 +2,21 @@
- +
+ +
+
@@ -58,6 +64,7 @@ export default defineComponent({ methods: { async refreshSystemConfig() { + console.log(this.components); try { this.loading++; const res = await axios.get(API.SYSTEM_CONFIG(null)); @@ -124,6 +131,33 @@ export default defineComponent({ .outer { padding: 20px; padding-top: 0px; + overflow-x: hidden; + + > .right-pane { + display: none; + } + + @media (min-width: 1024px) { + display: flex; + flex-direction: row; + height: 100%; + + > .left-pane { + flex: 1; + padding-right: 10px; + height: 100%; + overflow-y: auto; + } + + > .right-pane { + display: block; + padding: 10px; + line-height: 2em; + > a.sec-link { + display: block; + } + } + } .admin-section { margin-top: 20px; @@ -155,9 +189,9 @@ export default defineComponent({ } :deep h2 { - font-size: 1.5em; - font-weight: bold; - margin-top: 25px; + font-size: 1.6em; + font-weight: 500; + margin-top: 40px; } :deep h3 { diff --git a/src/components/admin/sections/Apps.vue b/src/components/admin/sections/Apps.vue index 912cb195..6162c92a 100644 --- a/src/components/admin/sections/Apps.vue +++ b/src/components/admin/sections/Apps.vue @@ -37,10 +37,13 @@ diff --git a/src/components/admin/sections/Exif.vue b/src/components/admin/sections/Exif.vue index eb8e5b63..d1eee9c4 100644 --- a/src/components/admin/sections/Exif.vue +++ b/src/components/admin/sections/Exif.vue @@ -36,10 +36,13 @@ diff --git a/src/components/admin/sections/FileSupport.vue b/src/components/admin/sections/FileSupport.vue index e5e48dfb..72a27af0 100644 --- a/src/components/admin/sections/FileSupport.vue +++ b/src/components/admin/sections/FileSupport.vue @@ -74,6 +74,7 @@ import AdminMixin from '../AdminMixin'; export default defineComponent({ name: 'FileSupport', + title: t('memories', 'File Support'), mixins: [AdminMixin], data: () => ({ diff --git a/src/components/admin/sections/Indexing.vue b/src/components/admin/sections/Indexing.vue index 56a7c4f0..83a5d7f8 100644 --- a/src/components/admin/sections/Indexing.vue +++ b/src/components/admin/sections/Indexing.vue @@ -116,10 +116,13 @@ diff --git a/src/components/admin/sections/Performance.vue b/src/components/admin/sections/Performance.vue index 2af98462..44328b6d 100644 --- a/src/components/admin/sections/Performance.vue +++ b/src/components/admin/sections/Performance.vue @@ -29,10 +29,13 @@ diff --git a/src/components/admin/sections/VideoAccel.vue b/src/components/admin/sections/VideoAccel.vue index fc570fff..6aba3820 100644 --- a/src/components/admin/sections/VideoAccel.vue +++ b/src/components/admin/sections/VideoAccel.vue @@ -102,10 +102,13 @@ diff --git a/src/components/admin/sections/_Template.vue b/src/components/admin/sections/_Template.vue index 5aec45e8..6b5b3edd 100644 --- a/src/components/admin/sections/_Template.vue +++ b/src/components/admin/sections/_Template.vue @@ -5,10 +5,13 @@