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(header): 更新背景样式和透明度 style(gallery): 调整背景颜色以适应暗黑模式 style(info-panel): 优化样式和格式化输出 style(viewer): 修改背景颜色以适应暗黑模式
Timothy Yin3b707b16c0d7
diff --git a/app/components/masonry/HeaderItem.vue b/app/components/masonry/HeaderItem.vueindex ca7bdb16..990c502b 100644--- a/app/components/masonry/HeaderItem.vue+++ b/app/components/masonry/HeaderItem.vue@@ -23,14 +23,14 @@ const handleOpenLogin = () => {class="inline-block w-full align-top break-inside-avoid mb-[4px] relative overflow-hidden"><div- class="absolute inset-0 -z-10 blur-3xl scale-110"+ class="absolute inset-0 -z-10 blur-3xl scale-110 bg-cover bg-center opacity-35":style="{backgroundImage: `url(${avatarImage})`,- backgroundSize: 'cover',- backgroundPosition: 'center',}"></div>- <div class="absolute inset-0 -z-10 bg-neutral-900/50"></div>+ <div+ class="absolute inset-0 -z-10 bg-white/50 dark:bg-neutral-900/50"+ ></div><div class="flex flex-col items-center py-6 gap-2"><AuthState><template #default="{ loggedIn, user, clear }">diff --git a/app/components/photo/GalleryThumbnail.vue b/app/components/photo/GalleryThumbnail.vueindex 5d447a51..69a18ab5 100644--- a/app/components/photo/GalleryThumbnail.vue+++ b/app/components/photo/GalleryThumbnail.vue@@ -133,7 +133,7 @@ watch(isSmallScreen, scrollToActiveThumbnail):animate="{ opacity: 1, y: 0 }":exit="{ opacity: 0, y: 100 }":transition="{ type: 'spring', duration: 0.4, bounce: 0, delay: 0.1 }"- class="gallery-thumbnail-container bg-black/20 backdrop-blur-xl border-t border-white/10 shrink-0 z-10"+ class="gallery-thumbnail-container bg-black/20 dark:bg-black/30 backdrop-blur-xl border-t border-white/10 shrink-0 z-10"><divref="galleryScrollContainer"diff --git a/app/components/photo/InfoPanel.vue b/app/components/photo/InfoPanel.vueindex 3014cebe..6ea839a1 100644--- a/app/components/photo/InfoPanel.vue+++ b/app/components/photo/InfoPanel.vue@@ -126,7 +126,9 @@ const formatedExifData = computed<Record<string, KVData[]>>(() => {props.exifData?.DateTimeOriginal? {label: '拍摄时间',- value: dayjs(props.exifData.DateTimeOriginal).format('YYYY-MM-DD HH:mm:ss'),+ value: dayjs(props.exifData.DateTimeOriginal).format(+ 'YYYY-MM-DD HH:mm:ss',+ ),icon: 'tabler:calendar',}: null,@@ -331,7 +333,7 @@ const formatedExifData = computed<Record<string, KVData[]>>(() => {props.exifData?.FocalPlaneYResolution? {label: '焦平面分辨率',- value: `${props.exifData.FocalPlaneXResolution} x ${props.exifData.FocalPlaneYResolution}`,+ value: `${props.exifData.FocalPlaneXResolution.toFixed(2)} x ${props.exifData.FocalPlaneYResolution.toFixed(2)}`,icon: 'tabler:photo-sensor',}: null,@@ -363,9 +365,10 @@ const isMobile = useMediaQuery('(max-width: 768px)')y: isMobile ? 20 : 0,}":transition="{ type: 'spring', duration: 0.4, bounce: 0, delay: 0.1 }"- class="bg-black/30 backdrop-blur-xl border-white/10"+ class="bg-black/20 dark:bg-black/30 backdrop-blur-xl border-white/10":class="{- 'fixed inset-x-2 bottom-2 max-h-[70vh] border rounded-xl z-50 flex flex-col': isMobile,+ 'fixed inset-x-2 bottom-2 max-h-[70vh] border rounded-xl z-50 flex flex-col':+ isMobile,'w-80 border-l': !isMobile,}">@@ -386,7 +389,7 @@ const isMobile = useMediaQuery('(max-width: 768px)')</div><!-- 内容区域 -->- <div+ <divclass="p-4 space-y-4 flex-1 min-h-0":class="{'overflow-y-auto': isMobile,diff --git a/app/components/photo/Viewer.vue b/app/components/photo/Viewer.vueindex 0b0b1603..58d22636 100644--- a/app/components/photo/Viewer.vue+++ b/app/components/photo/Viewer.vue@@ -58,11 +58,11 @@ watch(if (isOpen && currentPhoto.value) {useHead({- title: currentPhoto.value.title+ title: currentPhoto.value.title,})} else {useHead({- title: 'Gallery'+ title: 'Gallery',})}},@@ -142,7 +142,7 @@ const swiperModules = [Navigation, Keyboard, Virtual]:animate="{ opacity: 1 }":exit="{ opacity: 0 }":transition="{ duration: 0.3 }"- class="fixed inset-0 bg-black/50 backdrop-blur-sm z-50"+ class="fixed inset-0 bg-white/50 dark:bg-black/50 backdrop-blur-sm z-50"@click="emit('close')"/></AnimatePresence>