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: 修复主页城市信息统计显示异常问题

tanmantang41b95a6c9267
diff --git a/app/components/masonry/Root.vue b/app/components/masonry/Root.vue
index b3580578..5282dde1 100644
--- a/app/components/masonry/Root.vue
+++ b/app/components/masonry/Root.vue
@@ -261,7 +261,7 @@ const updateDateRange = () => {
} else if (uniqueCities.length <= 3) {
visibleCities.value = uniqueCities.join('、')
} else {
- visibleCities.value = `${uniqueCities.slice(0, 2).join('、')} `+$t('ui.indexPanelCountCity',uniqueCities.length)
+ visibleCities.value = `${uniqueCities.slice(0, 2).join('、')} `+$t('ui.indexPanelCountCity',{ count: uniqueCities.length })
}
if (visibleDates.length === 0) {
diff --git a/app/components/photo/Viewer.vue b/app/components/photo/Viewer.vue
index 0d907508..126c99ce 100644
--- a/app/components/photo/Viewer.vue
+++ b/app/components/photo/Viewer.vue
@@ -867,7 +867,7 @@ const swiperModules = [Navigation, Keyboard, Virtual]
}"
:while-tap="{ scale: 0.88 }"
:class="[
- 'pointer-events-auto flex items-center justify-center gap-2',
+ 'pointer-events-auto flex items-center justify-center gap-2 cursor-pointer',
'px-4 h-11 rounded-full',
'backdrop-blur-xl border shadow-lg',
'transition-all duration-200',
@@ -927,7 +927,7 @@ const swiperModules = [Navigation, Keyboard, Virtual]
>
<Icon
name="tabler:chevron-left"
- class="text-xl"
+ class="text-xl cursor-pointer"
/>
</button>
@@ -939,7 +939,7 @@ const swiperModules = [Navigation, Keyboard, Virtual]
>
<Icon
name="tabler:chevron-right"
- class="text-xl"
+ class="text-xl cursor-pointer"
/>
</button>
</template>
diff --git a/app/pages/signin.vue b/app/pages/signin.vue
index 4e41d480..222597d6 100644
--- a/app/pages/signin.vue
+++ b/app/pages/signin.vue
@@ -1,6 +1,6 @@
<script lang="ts" setup>
useHead({
- title: 'Sign In',
+ title: $t('auth.form.signin.title'),
})
const { fetch: fetchUserSession } = useUserSession()
diff --git a/i18n/locales/zh-Hans.json b/i18n/locales/zh-Hans.json
index a7d88811..8e59ca1b 100644
--- a/i18n/locales/zh-Hans.json
+++ b/i18n/locales/zh-Hans.json
@@ -108,7 +108,7 @@
"totalPhotosWithRange": "{range}, 共 @:plural.photo",
"noPhotosTip": "还没有照片,快去上传一些吧!"
},
- "indexPanelCountCity":"等 {0} 个城市"
+ "indexPanelCountCity":"等 {count} 个城市"
},
"minimap": {
"loading": "加载小地图..."