From c8b7c1d90972b365e8ce7a0e341c49ea5937724c Mon Sep 17 00:00:00 2001 From: JustTemmie <47639983+JustTemmie@users.noreply.github.com> Date: Fri, 4 Jul 2025 13:05:09 +0200 Subject: [PATCH 1/2] feat: add links, build time, and git hash to settings menu --- app.config.ts | 5 +++++ pages/settings.vue | 34 ++++++++++++++++++++++++++++++---- 2 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 app.config.ts diff --git a/app.config.ts b/app.config.ts new file mode 100644 index 0000000..b547927 --- /dev/null +++ b/app.config.ts @@ -0,0 +1,5 @@ +export default defineAppConfig({ + title: "Gorb", + buildTimeString: new Date().toISOString(), + gitHash: process.env.COMMIT_REF || "N/A" +}) diff --git a/pages/settings.vue b/pages/settings.vue index 991d046..b078aa1 100644 --- a/pages/settings.vue +++ b/pages/settings.vue @@ -2,8 +2,8 @@
@@ -29,6 +44,8 @@ import Button from '~/components/Button.vue'; const { logout } = useAuth() +const appConfig = useAppConfig() + interface Page { displayName: string; pageData: any; // is actually Component but TS is yelling at me :( @@ -49,6 +66,7 @@ import Appearance from '~/components/Settings/AppSettings/Appearance.vue'; import Notifications from '~/components/Settings/AppSettings/Notifications.vue'; import Keybinds from '~/components/Settings/AppSettings/Keybinds.vue'; import Language from '~/components/Settings/AppSettings/Language.vue'; +import { WINDOW } from 'cropperjs'; const settingsCategories = { userSettings: { @@ -103,7 +121,7 @@ function selectCategory(page: Page) { background-color: var(--sidebar-background-color); color: var(--text-color); padding: 1dvh 1dvw; - margin-left: auto; + margin-left: 0; overflow-y: auto; height: 100vh; @@ -128,6 +146,10 @@ function selectCategory(page: Page) { transition: background-color 0.3s; } +#sidebar p { + margin: 2dvh 0.8dvw; +} + .sidebar-focus { background-color: var(--sidebar-highlighted-background-color); } @@ -147,11 +169,15 @@ function selectCategory(page: Page) { height: 100vh; } +#links-and-socials * { + margin-right: 0.2em; +} + .spacer { height: 0.2dvh; display: block; margin: 0.8dvh 1dvw; - background-color: var(--spacing-color); + background-color: var(--padding-color); } /* applies to child pages too */ -- 2.47.2 From 059282706b6c395339c568fc18d72a4329bf4b0a Mon Sep 17 00:00:00 2001 From: JustTemmie <47639983+JustTemmie@users.noreply.github.com> Date: Sat, 5 Jul 2025 01:27:04 +0200 Subject: [PATCH 2/2] fix: remove random accidental import, fix build system --- app.config.ts | 2 +- pages/settings.vue | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app.config.ts b/app.config.ts index b547927..11f7f7c 100644 --- a/app.config.ts +++ b/app.config.ts @@ -1,5 +1,5 @@ export default defineAppConfig({ title: "Gorb", buildTimeString: new Date().toISOString(), - gitHash: process.env.COMMIT_REF || "N/A" + gitHash: process.env.GIT_SHORT_REV || "N/A" }) diff --git a/pages/settings.vue b/pages/settings.vue index b078aa1..cc694a9 100644 --- a/pages/settings.vue +++ b/pages/settings.vue @@ -66,7 +66,6 @@ import Appearance from '~/components/Settings/AppSettings/Appearance.vue'; import Notifications from '~/components/Settings/AppSettings/Notifications.vue'; import Keybinds from '~/components/Settings/AppSettings/Keybinds.vue'; import Language from '~/components/Settings/AppSettings/Language.vue'; -import { WINDOW } from 'cropperjs'; const settingsCategories = { userSettings: { -- 2.47.2