Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

fix(dashboard): update app title handling and navigation display chore(nuxt): disable development sourcemaps chore: add .nuxtrc configuration file for test-utils

Timothy Yince7a33f9d3a0
diff --git a/.nuxtrc b/.nuxtrc
new file mode 100644
index 00000000..1e780800
--- /dev/null
+++ b/.nuxtrc
@@ -0,0 +1 @@
+setups.@nuxt/test-utils="3.23.0"
\ No newline at end of file
diff --git a/app/layouts/dashboard.vue b/app/layouts/dashboard.vue
index 86bd02d0..4b5e2822 100644
--- a/app/layouts/dashboard.vue
+++ b/app/layouts/dashboard.vue
@@ -4,6 +4,12 @@ import type { NavigationMenuItem } from '@nuxt/ui'
const route = useRoute()
const router = useRouter()
const { loggedIn, user } = useUserSession()
+const settingsStore = useSettingsStore()
+
+const appTitle = computed(() => {
+ const value = settingsStore.getSetting('app:title')
+ return value ? String(value) : $t('title.dashboard')
+})
const navItems = computed<NavigationMenuItem[][]>(() => [
[
@@ -85,8 +91,7 @@ const navItems = computed<NavigationMenuItem[][]>(() => [
useHead({
title: $t('title.dashboard'),
- titleTemplate: (title) =>
- `${title ? title + ' | ' : ''}${getSetting('app:title')}`,
+ titleTemplate: (title) => `${title ? `${title} | ` : ''}${appTitle.value}`,
})
const handleLogin = () => {
@@ -149,7 +154,7 @@ const handleLogin = () => {
to="/"
class="text-lg font-medium line-clamp-1"
>
- {{ getSetting('app:title') || $t('title.dashboard') }}
+ {{ appTitle }}
</NuxtLink>
</div>
</div>
diff --git a/nuxt.config.ts b/nuxt.config.ts
index a972f333..0795f812 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -175,7 +175,7 @@ export default defineNuxtConfig({
noExternal: ['@indoorequal/vue-maplibre-gl'],
},
css: {
- devSourcemap: true,
+ devSourcemap: false,
},
build: {
sourcemap: false,