Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
style(masonry): 格式化加载文本的缩进 style(slug): 调整路由标签监听的格式 chore(nuxt): 添加 cookieKey 配置以支持语言检测
Timothy Yin6198c113fbba
diff --git a/app/layouts/masonry.vue b/app/layouts/masonry.vueindex ceb36ba4..da0f460e 100644--- a/app/layouts/masonry.vue+++ b/app/layouts/masonry.vue@@ -21,9 +21,9 @@ const { photos } = usePhotos()><LoaderAvatar /><span class="loading-scan-wrapper">- <span class="text-base font-medium loading-scan-text"- >LOADING</span- >+ <span class="text-base font-medium loading-scan-text">+ LOADING+ </span></span></div></template>diff --git a/app/pages/[...slug].vue b/app/pages/[...slug].vueindex 7e5f9813..287f8348 100644--- a/app/pages/[...slug].vue+++ b/app/pages/[...slug].vue@@ -20,14 +20,18 @@ const photoId = computed(() => slug.value[0] || null)const { clearAllFilters, toggleFilter } = usePhotoFilters()// 监听路由查询参数中的标签-watch(() => route.query.tag, (tagParam) => {- if (tagParam && typeof tagParam === 'string' && !photoId.value) {- clearAllFilters()- toggleFilter('tags', tagParam)-- router.replace('/')- }-}, { immediate: true })+watch(+ () => route.query.tag,+ (tagParam) => {+ if (tagParam && typeof tagParam === 'string' && !photoId.value) {+ clearAllFilters()+ toggleFilter('tags', tagParam)++ router.replace('/')+ }+ },+ { immediate: true },+)watch([photoId, photos],@@ -68,13 +72,15 @@ const handleClose = () => {</script><template>- <PhotoViewer- :photos="photos"- :current-index="currentPhotoIndex"- :is-open="isViewerOpen"- @close="handleClose"- @index-change="handleIndexChange"- />+ <ClientOnly>+ <PhotoViewer+ :photos="photos"+ :current-index="currentPhotoIndex"+ :is-open="isViewerOpen"+ @close="handleClose"+ @index-change="handleIndexChange"+ />+ </ClientOnly></template><style scoped></style>diff --git a/nuxt.config.ts b/nuxt.config.tsindex b01d620a..baf9b73e 100644--- a/nuxt.config.ts+++ b/nuxt.config.ts@@ -78,6 +78,7 @@ export default defineNuxtConfig({detectBrowserLanguage: {fallbackLocale: 'en',useCookie: false,+ cookieKey: 'chronoframe-locale'},strategy: 'no_prefix',locales: [