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
refactor: 探索地图更名为地球仪
Timothy Yin85e67bd896ab
diff --git a/app/components/masonry/item/Header.vue b/app/components/masonry/item/Header.vueindex e6f65233..a7428ad7 100644--- a/app/components/masonry/item/Header.vue+++ b/app/components/masonry/item/Header.vue@@ -115,14 +115,14 @@ const totalSelectedFilters = computed(() => {<divclass="flex items-center gap-0 p-1 bg-white/30 dark:bg-neutral-900/50 rounded-full">- <UTooltip :text="$t('ui.action.explore.tooltip')">+ <UTooltip :text="$t('ui.action.globe.tooltip')"><UButtonvariant="soft"color="neutral"class="bg-transparent rounded-full cursor-pointer"icon="tabler:map-pin-2"size="sm"- to="/explore"+ to="/globe"/></UTooltip><UPopover>diff --git a/app/components/photo/InfoPanel.vue b/app/components/photo/InfoPanel.vueindex 7bb2e353..53a045cb 100644--- a/app/components/photo/InfoPanel.vue+++ b/app/components/photo/InfoPanel.vue@@ -409,7 +409,7 @@ const formatedExifData = computed<Record<string, KVData[]>>(() => {const isMobile = useMediaQuery('(max-width: 768px)')const onMinimapClick = (photoId: string) => {- window.open(`/explore?photoId=${photoId}`)+ window.open(`/globe?photoId=${photoId}`)}const onTagClick = (tag: string) => {diff --git a/app/pages/explore.vue b/app/pages/globe.vuesimilarity index 99%rename from app/pages/explore.vuerename to app/pages/globe.vueindex 9001e434..c6416243 100644--- a/app/pages/explore.vue+++ b/app/pages/globe.vue@@ -3,13 +3,12 @@ import { motion } from 'motion-v'import { clusterMarkers, photosToMarkers } from '~/utils/clustering'useHead({- title: '地图探索',+ title: $t('title.globe'),})const route = useRoute()const router = useRouter()-// const MAPID = 'explore-map'const { photos } = usePhotos()const photosWithLocation = computed(() => {diff --git a/i18n/locales/en.json b/i18n/locales/en.jsonindex 330418b6..babbac2b 100644--- a/i18n/locales/en.json+++ b/i18n/locales/en.json@@ -4,9 +4,6 @@},"ui": {"action": {- "explore": {- "tooltip": "Explore Map"- },"filter": {"tooltip": "Filter Photos","title": "Filter Photos",@@ -49,6 +46,9 @@},"logout": {"tooltip": "Logout"+ },+ "globe": {+ "tooltip": "Globe"}},"stats": {@@ -244,7 +244,8 @@},"dashboard": "Dashboard","photos": "Photos",- "locations": "Locations"+ "locations": "Locations",+ "globe": "Photo Globe"},"auth": {"form": {diff --git a/i18n/locales/ja.json b/i18n/locales/ja.jsonindex f7b7b0c7..afc1b867 100644--- a/i18n/locales/ja.json+++ b/i18n/locales/ja.json@@ -4,9 +4,6 @@},"ui": {"action": {- "explore": {- "tooltip": "地図を探索"- },"filter": {"tooltip": "写真をフィルター","title": "写真をフィルター",@@ -49,6 +46,9 @@},"logout": {"tooltip": "ログアウト"+ },+ "globe": {+ "tooltip": "グローブ"}},"stats": {@@ -244,7 +244,8 @@},"dashboard": "ダッシュボード","photos": "写真",- "locations": "場所"+ "locations": "場所",+ "globe": "写真グローブ"},"auth": {"form": {diff --git a/i18n/locales/zh-Hans.json b/i18n/locales/zh-Hans.jsonindex 4a83a713..93f1df77 100644--- a/i18n/locales/zh-Hans.json+++ b/i18n/locales/zh-Hans.json@@ -11,9 +11,6 @@"dashboard": {"tooltip": "控制台"},- "explore": {- "tooltip": "探索地图"- },"filter": {"empty": {"cameras": "没有相机信息",@@ -53,6 +50,9 @@},"theme": {"tooltip": "颜色主题"+ },+ "globe": {+ "tooltip": "地球仪"}},"stats": {@@ -244,7 +244,8 @@},"gallery": "相册","locations": "位置管理",- "photos": "照片库"+ "photos": "照片库",+ "globe": "照片地球仪"},"auth": {"form": {diff --git a/i18n/locales/zh-Hant-HK.json b/i18n/locales/zh-Hant-HK.jsonindex d1a21afe..18789bef 100644--- a/i18n/locales/zh-Hant-HK.json+++ b/i18n/locales/zh-Hant-HK.json@@ -11,9 +11,6 @@"dashboard": {"tooltip": "控制台"},- "explore": {- "tooltip": "探索地圖"- },"filter": {"empty": {"cameras": "沒有相機資料",@@ -53,6 +50,9 @@},"theme": {"tooltip": "色彩主題"+ },+ "globe": {+ "tooltip": "地球儀"}},"stats": {@@ -244,7 +244,8 @@},"locations": "位置管理","photos": "相片庫",- "gallery": "相片集"+ "gallery": "相片集",+ "globe": "照片地球儀"},"auth": {"form": {diff --git a/i18n/locales/zh-Hant-TW.json b/i18n/locales/zh-Hant-TW.jsonindex 6d5df575..3f04118a 100644--- a/i18n/locales/zh-Hant-TW.json+++ b/i18n/locales/zh-Hant-TW.json@@ -11,9 +11,6 @@"dashboard": {"tooltip": "儀表板"},- "explore": {- "tooltip": "探索地圖"- },"filter": {"empty": {"cameras": "沒有相機資訊",@@ -53,6 +50,9 @@},"theme": {"tooltip": "色彩主題"+ },+ "globe": {+ "tooltip": "地球儀"}},"stats": {@@ -244,7 +244,8 @@},"locations": "位置管理","photos": "相片庫",- "gallery": "相片集"+ "gallery": "相片集",+ "globe": "照片地球儀"},"auth": {"form": {