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
feat: 新增 OgImage 支持
Timothy Yin437db0991645
diff --git a/app/components/OgImage/Photo.vue b/app/components/OgImage/Photo.vuenew file mode 100644index 00000000..d3397e1b--- /dev/null+++ b/app/components/OgImage/Photo.vue@@ -0,0 +1,97 @@+<script lang="ts" setup>+const props = withDefaults(+ defineProps<{+ photo?: Photo+ title?: string+ description?: string+ headline?: string+ thumbnailJpegUrl?: string+ }>(),+ {+ title: 'title',+ description: '',+ headline: 'headline',+ class: '',+ },+)++const title = computed(() => (props.title || '').slice(0, 60))+const description = computed(() => (props.description || '').slice(0, 200))+</script>++<template>+ <div+ :class="'w-full h-full flex flex-col justify-center bg-neutral-950 relative'"+ >+ <img+ v-if="thumbnailJpegUrl"+ :src="thumbnailJpegUrl"+ class="absolute inset-y-0 right-0 object-cover"+ width="60%"+ height="100%"+ />+ <div+ v-if="thumbnailJpegUrl"+ class="absolute inset-y-0 right-0 w-[60%]"+ :style="{+ background:+ 'linear-gradient(90deg, rgba(10,10,10,1) 0%, rgba(10,10,10,0.3) 35%, rgba(10,10,10,0.1) 100%)',+ }"+ />+ <div class="h-full flex flex-col justify-center pl-24 bg-neutral-950/10">+ <p+ v-if="headline"+ class="uppercase text-2xl text-rose-500 mb-4 font-semibold"+ >+ {{ headline }}+ </p>+ <h1+ v-if="title"+ class="m-0 text-7xl font-bold mb-4 text-white"+ style="display: block; line-clamp: 2; text-overflow: ellipsis"+ >+ {{ title }}+ </h1>+ <p+ v-if="description"+ class="text-lg text-neutral-300 font-medium leading-tight"+ style="display: block; line-clamp: 3; text-overflow: ellipsis"+ >+ {{ description }}+ </p>+ <div+ v-if="photo"+ class="flex flex-row items-center gap-3 text-neutral-300 text-base font-bold"+ >+ <div+ v-if="photo.city"+ class="flex flex-row items-center gap-1"+ >+ <Icon+ name="tabler:map-pin"+ class="size-6"+ mode="svg"+ />+ <span class="truncate">+ {{ photo.city }}+ </span>+ </div>+ <div+ v-if="photo.exif?.Model"+ class="flex flex-row items-center gap-1"+ >+ <Icon+ name="tabler:camera"+ class="size-6"+ mode="svg"+ />+ <span class="truncate">+ {{ photo.exif?.Model }}+ </span>+ </div>+ </div>+ </div>+ </div>+</template>++<style scoped></style>diff --git a/app/layouts/masonry.vue b/app/layouts/masonry.vueindex da0f460e..732abef2 100644--- a/app/layouts/masonry.vue+++ b/app/layouts/masonry.vue@@ -14,7 +14,6 @@ const { photos } = usePhotos():photos="photos"columns="auto"/>- <slot /><template #fallback><divclass="fixed inset-0 flex flex-col gap-4 items-center justify-center"@@ -28,6 +27,7 @@ const { photos } = usePhotos()</div></template></ClientOnly>+ <slot /></div></div></template>diff --git a/app/pages/[...slug].vue b/app/pages/[...slug].vueindex 287f8348..14637cd1 100644--- a/app/pages/[...slug].vue+++ b/app/pages/[...slug].vue@@ -7,6 +7,7 @@ definePageMeta({const route = useRoute()const router = useRouter()+const config = useRuntimeConfig()const { switchToIndex, closeViewer, openViewer } = useViewerState()const { currentPhotoIndex, isViewerOpen } = storeToRefs(useViewerState())@@ -15,6 +16,22 @@ const { photos } = usePhotos()const slug = computed(() => (route.params.slug as string[]) || [])const photoId = computed(() => slug.value[0] || null)+const currentPhoto = computed(() =>+ photos.value.find((photo) => photo.id === photoId.value),+)++defineOgImageComponent('Photo', {+ headline: currentPhoto.value ? 'PHOTO' : 'ChronoFrame',+ title: currentPhoto.value?.title || config.public.APP_TITLE,+ description: currentPhoto.value+ ? currentPhoto.value.description+ : config.public.APP_SLOGAN,+ thumbnailJpegUrl:+ currentPhoto.value && currentPhoto.value.thumbnailKey+ ? `/thumb/${currentPhoto.value.thumbnailKey}`+ : undefined,+ photo: currentPhoto.value || undefined,+})// 处理标签查询参数const { clearAllFilters, toggleFilter } = usePhotoFilters()diff --git a/nuxt.config.ts b/nuxt.config.tsindex c1562adc..6018fbca 100644--- a/nuxt.config.ts+++ b/nuxt.config.ts@@ -3,7 +3,7 @@ import tailwindcss from '@tailwindcss/vite'// https://nuxt.com/docs/api/configuration/nuxt-configexport default defineNuxtConfig({compatibilityDate: '2025-07-15',- devtools: { enabled: false },+ devtools: { enabled: true },modules: ['reka-ui/nuxt',@@ -20,6 +20,7 @@ export default defineNuxtConfig({'dayjs-nuxt','@nuxtjs/i18n','nuxt-mapbox',+ 'nuxt-og-image',],css: ['~/assets/css/tailwind.css'],@@ -74,6 +75,11 @@ export default defineNuxtConfig({},},+ ogImage: {+ fonts: ['Rubik:400', 'Rubik:700', 'Noto+Sans+SC:400', 'Noto+Sans+SC:700'],+ googleFontMirror: true,+ },+dayjs: {locales: ['zh-cn', 'zh-hk', 'en'],plugins: ['relativeTime', 'utc', 'timezone', 'duration', 'localizedFormat'],@@ -84,7 +90,7 @@ export default defineNuxtConfig({detectBrowserLanguage: {fallbackLocale: 'en',useCookie: false,- cookieKey: 'chronoframe-locale'+ cookieKey: 'chronoframe-locale',},strategy: 'no_prefix',locales: [diff --git a/package.json b/package.jsonindex e554e947..831400da 100644--- a/package.json+++ b/package.json@@ -35,6 +35,7 @@"@nuxtjs/i18n": "10.1.0","@pinia/nuxt": "^0.11.2","@tailwindcss/vite": "^4.1.12",+ "@unhead/vue": "^2.0.5","@vingle/bmp-js": "^0.2.5","@vueuse/nuxt": "13.8.0","better-sqlite3": "^12.2.0",@@ -51,6 +52,7 @@"nuxt": "^4.0.3","nuxt-auth-utils": "0.5.23","nuxt-mapbox": "1.6.3",+ "nuxt-og-image": "5.1.11","pinia": "^3.0.3","reka-ui": "^2.5.0","sharp": "^0.34.3",@@ -58,6 +60,7 @@"tailwind-merge": "^3.3.1","tailwindcss": "^4.1.12","thumbhash": "^0.1.1",+ "unstorage": "^1.15.0","vue": "^3.5.18","vue-router": "^4.5.1","wait-on": "^8.0.4",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex d568f88a..80d36df4 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -41,6 +41,9 @@ importers:'@tailwindcss/vite':specifier: ^4.1.12version: 4.1.12([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@unhead/vue':+ specifier: ^2.0.5+ version: 2.0.14([email protected]([email protected]))'@vingle/bmp-js':specifier: ^0.2.5version: 0.2.5@@ -89,6 +92,9 @@ importers:nuxt-mapbox:specifier: 1.6.3version: 1.6.3([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ nuxt-og-image:+ specifier: 5.1.11+ version: 5.1.11(@unhead/[email protected]([email protected]([email protected])))([email protected])([email protected])([email protected](@netlify/[email protected])([email protected]([email protected])([email protected](@cloudflare/[email protected])(@types/[email protected])([email protected])))([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))pinia:specifier: ^3.0.3@@ -110,6 +116,9 @@ importers:thumbhash:specifier: ^0.1.1version: 0.1.1+ unstorage:+ specifier: ^1.15.0+ version: 1.16.1(@netlify/[email protected])([email protected]([email protected])([email protected](@cloudflare/[email protected])(@types/[email protected])([email protected])))([email protected])vue:specifier: ^3.5.18version: 3.5.19([email protected])@@ -143,7 +152,7 @@ importers:version: 1.9.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))(@vue/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@nuxt/test-utils':specifier: 3.19.2- version: 3.19.2([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 3.19.2([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@types/better-sqlite3':specifier: ^7.6.13version: 7.6.13@@ -1862,6 +1871,11 @@ packages:peerDependencies:vite: '>=6.0'+ '@nuxt/[email protected]':+ resolution: {integrity: sha512-t+NxoENyzJ8KZDrnbVYv3FJI5VXqSi6X4w6ZsuIIh0aKABu6+6k9nR/LoEhrM0oekn/2LDhA0NmsRZyzCXt2xQ==}+ peerDependencies:+ vite: '>=6.0'+'@nuxt/[email protected]':resolution: {integrity: sha512-s1eYYKi2eZu2ZUPQrf22C0SceWs5/C3c3uow/DVunD304Um/Tj062xM9E4p1B9L8yjaq8t0Gtyu/YvZdo/reyg==}hasBin: true@@ -1915,10 +1929,18 @@ packages:resolution: {integrity: sha512-z6w1Fzv27CIKFlhct05rndkJSfoslplWH5fJ9dtusEvpYScLXp5cATWIbWkte9e9zFSmQTgDQJjNs3geQHE7og==}engines: {node: '>=18.12.0'}+ '@nuxt/[email protected]':+ resolution: {integrity: sha512-+QiqO0WcIxsKLUqXdVn3m4rzTRm2fO9MZgd330utCAaagGmHsgiMJp67kE14boJEPutnikfz3qOmrzBnDIHUUg==}+ engines: {node: '>=18.12.0'}+'@nuxt/[email protected]':resolution: {integrity: sha512-9+lwvP4n8KhO91azoebO0o39smESGzEV4HU6nef9HIFyt04YwlVMY37Pk63GgZn0WhWVjyPWcQWs0rUdZUYcPw==}engines: {node: '>=18.12.0'}+ '@nuxt/[email protected]':+ resolution: {integrity: sha512-P5q41xeEOa6ZQC0PvIP7TSBmOAMxXK4qihDcCbYIJq8RcVsEPbGZVlidmxE6EOw1ucSyodq9nbV31FAKwoL4NQ==}+ engines: {node: '>=18.12.0'}+'@nuxt/[email protected]':resolution: {integrity: sha512-acDigyy8tF8xDCMFee00mt5u2kE5Qx5Y34ButBlibLzhguQjc+6f6FpMGdieN07oahjpegWIQG66yQywjw+sKw==}engines: {node: ^14.18.0 || >=16.10.0}@@ -2590,6 +2612,86 @@ packages:resolution: {integrity: sha512-da+MMyeXhBaKtxQiWPfy7+056wk3lVIhioJnXHXkJ2/OHDaZfFcyKHNl1R06sdYO8lIRXcXdoZ6LO2ARmkAREA==}engines: {node: '>=18.16.0'}+ '@resvg/[email protected]':+ resolution: {integrity: sha512-FrJibrAk6v29eabIPgcTUMPXiEz8ssrAk7TXxsiZzww9UTQ1Z5KAbFJs+Z0Ez+VZTYgnE5IQJqBcoSiMebtPHA==}+ engines: {node: '>= 10'}+ cpu: [arm]+ os: [android]++ '@resvg/[email protected]':+ resolution: {integrity: sha512-VcOKezEhm2VqzXpcIJoITuvUS/fcjIw5NA/w3tjzWyzmvoCdd+QXIqy3FBGulWdClvp4g+IfUemigrkLThSjAQ==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [android]++ '@resvg/[email protected]':+ resolution: {integrity: sha512-nmok2LnAd6nLUKI16aEB9ydMC6Lidiiq2m1nEBDR1LaaP7FGs4AJ90qDraxX+CWlVuRlvNjyYJTNv8qFjtL9+A==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [darwin]++ '@resvg/[email protected]':+ resolution: {integrity: sha512-GInyZLjgWDfsVT6+SHxQVRwNzV0AuA1uqGsOAW+0th56J7Nh6bHHKXHBWzUrihxMetcFDmQMAX1tZ1fZDYSRsw==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [darwin]++ '@resvg/[email protected]':+ resolution: {integrity: sha512-YIV3u/R9zJbpqTTNwTZM5/ocWetDKGsro0SWp70eGEM9eV2MerWyBRZnQIgzU3YBnSBQ1RcxRZvY/UxwESfZIw==}+ engines: {node: '>= 10'}+ cpu: [arm]+ os: [linux]++ '@resvg/[email protected]':+ resolution: {integrity: sha512-zc2BlJSim7YR4FZDQ8OUoJg5holYzdiYMeobb9pJuGDidGL9KZUv7SbiD4E8oZogtYY42UZEap7dqkkYuA91pg==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]++ '@resvg/[email protected]':+ resolution: {integrity: sha512-3h3dLPWNgSsD4lQBJPb4f+kvdOSJHa5PjTYVsWHxLUzH4IFTJUAnmuWpw4KqyQ3NA5QCyhw4TWgxk3jRkQxEKg==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]++ '@resvg/[email protected]':+ resolution: {integrity: sha512-IVUe+ckIerA7xMZ50duAZzwf1U7khQe2E0QpUxu5MBJNao5RqC0zwV/Zm965vw6D3gGFUl7j4m+oJjubBVoftw==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]++ '@resvg/[email protected]':+ resolution: {integrity: sha512-UOf83vqTzoYQO9SZ0fPl2ZIFtNIz/Rr/y+7X8XRX1ZnBYsQ/tTb+cj9TE+KHOdmlTFBxhYzVkP2lRByCzqi4jQ==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]++ '@resvg/[email protected]':+ resolution: {integrity: sha512-7C/RSgCa+7vqZ7qAbItfiaAWhyRSoD4l4BQAbVDqRRsRgY+S+hgS3in0Rxr7IorKUpGE69X48q6/nOAuTJQxeQ==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [win32]++ '@resvg/[email protected]':+ resolution: {integrity: sha512-har4aPAlvjnLcil40AC77YDIk6loMawuJwFINEM7n0pZviwMkMvjb2W5ZirsNOZY4aDbo5tLx0wNMREp5Brk+w==}+ engines: {node: '>= 10'}+ cpu: [ia32]+ os: [win32]++ '@resvg/[email protected]':+ resolution: {integrity: sha512-ZXtYhtUr5SSaBrUDq7DiyjOFJqBVL/dOBN7N/qmi/pO0IgiWW/f/ue3nbvu9joWE5aAKDoIzy/CxsY0suwGosQ==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [win32]++ '@resvg/[email protected]':+ resolution: {integrity: sha512-xBaJish5OeGmniDj9cW5PRa/PtmuVU3ziqrbr5xJj901ZDN4TosrVaNZpEiLZAxdfnhAe7uQ7QFWfjPe9d9K2Q==}+ engines: {node: '>= 10'}++ '@resvg/[email protected]':+ resolution: {integrity: sha512-FqALmHI8D4o6lk/LRWDnhw95z5eO+eAa6ORjVg09YRR7BkcM6oPHU9uyC0gtQG5vpFLvgpeU4+zEAz2H8APHNw==}+ engines: {node: '>= 10'}+'@rolldown/[email protected]':resolution: {integrity: sha512-NIJgOsMjbxAXvoGq/X0gD7VPMQ8j9g0BiDaNjVNVjvl+iKXxL3Jre0v31RmBYeLEmkbj2s02v8vFTbUXi5XS2Q==}@@ -2799,6 +2901,14 @@ packages:'@rushstack/[email protected]':resolution: {integrity: sha512-+AkJDbu1GFMPIU8Sb7TLVXDv/Q7Mkvx+wAjEl8XiXVVq+p1FmWW6M3LYpJMmoHNckSofeMecgWg5lfMwNAAsEQ==}+ '@sec-ant/[email protected]':+ resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==}++ '@shuding/[email protected]':+ resolution: {integrity: sha512-3NgmNyH3l/Hv6EvsWJbsvpcpUba6R8IREQ83nH83cyakCw7uM1arZKNfHwv1Wz6jgqrF/j4x5ELvR6PnK9nTcA==}+ engines: {node: '>= 8.0.0'}+ hasBin: true+'@sideway/[email protected]':resolution: {integrity: sha512-IqO/DUQHUkPeixNQ8n0JA6102hT9CmaljNTPmQ1u8MEhBo/R4Q8eKLN/vGZxuebwOroDB4cbpjheD4+/sKFK4Q==}@@ -2820,6 +2930,10 @@ packages:resolution: {integrity: sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==}engines: {node: '>=18'}+ '@sindresorhus/[email protected]':+ resolution: {integrity: sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==}+ engines: {node: '>=18'}+'@smithy/[email protected]':resolution: {integrity: sha512-jcrqdTQurIrBbUm4W2YdLVMQDoL0sA9DTxYd2s+R/y+2U9NLOP7Xf/YqfSg1FZhlZIYEnvk2mwbyvIfdLEPo8g==}engines: {node: '>=18.0.0'}@@ -3346,6 +3460,22 @@ packages:peerDependencies:vue: '>=3.5.18'+ '@unocss/[email protected]':+ resolution: {integrity: sha512-BUgN87sUIffco1d+1IuV4a1gKTI1YAFa7CTjxglLUAnopXPPJ+Q77G10zoBoFLzutiIOYLsesa3hzbQvDhosnA==}++ '@unocss/[email protected]':+ resolution: {integrity: sha512-SpI2uv6bWyPyY3Tv7CxsFnHBjSTlNRcPCnfvD8gSKbAt7R+RqV0nrdkv7wSW+Woc5TYl8PClLEFSBIvo0c1h9Q==}++ '@unocss/[email protected]':+ resolution: {integrity: sha512-kBEbA0kEXRtoHQ98o4b6f9sp1u5BanPzi+GMnWdmOWvbLAiLw1vcgXGPTX3sO+gzIMrwu0Famw6xiztWzAFjWQ==}++ '@unocss/[email protected]':+ resolution: {integrity: sha512-L1yMmKpwUWYUnScQq5jMTGvfMy/GBqVj40VS5afyOlzWnBeSkc/y4AxeW/khzGwqE/QaFcLWXiXwQVJIyxN02Q==}++ '@unocss/[email protected]':+ resolution: {integrity: sha512-GuBKHrDv3bdq5N1HfOr1tD864vI1EIiovBVJSfg7x9ERA4jJSnyMpGk/hbLuDIXF25EnVdZ1lFhEpJgur9+9sw==}+ engines: {node: '>=14'}+'@unrs/[email protected]':resolution: {integrity: sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw==}cpu: [arm]@@ -3942,6 +4072,10 @@ packages:resolution: {integrity: sha512-Y5gU45svrR5tI2Vt/X9GPd3L0HNIKzGu202EjxrXMpuc2V2CiKgemAbUUsqYmZJvPtCXoUKjNZwBJzsNScUbXA==}+ resolution: {integrity: sha512-3XSA2cR/h/73EzlXXdU6YNycmYI7+kicTxks4eJg2g39biHR84slg2+des+p7iHYhbRg/udIS4TD53WabcOUkw==}+ engines: {node: '>= 0.4'}+resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}@@ -4077,6 +4211,9 @@ packages:resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==}engines: {node: '>=6'}+ resolution: {integrity: sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ==}+resolution: {integrity: sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==}@@ -4120,6 +4257,11 @@ packages:resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==}engines: {node: '>=18'}+ resolution: {integrity: sha512-JbuGuBNss258bvGil7FT4HKdC3SC2K7UAEUqiPy3ACS3Yxo3hAW6bvFpCu2HsIJLgTqxgEX6BkujvzZfLpUD0Q==}+ engines: {node: '>=12.13.0'}+ hasBin: true+resolution: {integrity: sha512-l+2bNRMiQgcfILUi33labAZYIWlH1kWDp+ecNo5iisRKrbm0xcRyCww71/YU0Fkw0mAFpz9bJayXPjey6vkmaQ==}engines: {node: '>=8'}@@ -4300,15 +4442,32 @@ packages:resolution: {integrity: sha512-ojKiDvcmByhwa8YYqbQI/hg7MEU0NC03+pSdEq4ZUnZR9xXpwk7E43SMNGkn+JxJGPFtNvQ48+vV2p+P1ml5PA==}+ resolution: {integrity: sha512-2EZLisiZQ+7m4wwur/qiYJRniHX4K5Tc9w93MT3AS0WS1u5kaZ4FKXlOTBhOjc+CgEgPiGY+fX1yWD8UwpEqUA==}++ resolution: {integrity: sha512-9jaqR6e7Ohds+aWwmhe6wILJ99xYQbfmK9QQB9CcMjDbTxPZjwEmUQpU91OG05Xgm8BahT5fW+svbsQGjS/zPg==}++ resolution: {integrity: sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg==}+ engines: {node: '>=4'}+resolution: {integrity: sha512-h70rUM+3PNFuaBDTLe8wF/cdWu+dOZmb7pJt8Z2sedYbAcQVQV/tEchueg3GWxwqS0cxtbxmaHEdkNACqcvsow==}engines: {node: ^14 || ^16 || >=18}peerDependencies:postcss: ^8.0.9+ resolution: {integrity: sha512-3O5QdqgFRUbXvK1x5INf1YkBz1UKSWqrd63vWsum8MNHDBYD5urm3QtxZbKU259OrEXNM26lP/MPY3d1IGkBgA==}+ engines: {node: '>=16'}+resolution: {integrity: sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw==}+ resolution: {integrity: sha512-e8RKaLXMOFii+02mOlqwjbD00KSEKqblnpO9e++1aXS1fPQOpS1YoqdVHBqPjHNoxeF2mimzVqawm2KCbEdtHQ==}+resolution: {integrity: sha512-OA0mILzGc1kCOCSJerOeqDxDQ4HOh+G8NbOJFOTgOCzpw7fCBubk0fEyxp8AgOL/jvLgYA/uV0cMbe43ElF1JA==}engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0, npm: '>=7.0.0'}@@ -4723,6 +4882,10 @@ packages:resolution: {integrity: sha512-SjWyZBHJPbqxHOzckOfo8lHisEaJWmwd23XppYFYVh10bU66/Pn5tkVkbkCMZVdbUE5eTCI2nD8OyIP4Z+uwkA==}+ resolution: {integrity: sha512-1QFuh8l7LqUcKe24LsPUNzjrzJQ7pgRwp1QMcZ5MX6mFplk2zQ08NVCM84++1cveaUUYtcCYHmeFEuNg16sU4g==}+ engines: {node: '>=10.0.0'}+resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}@@ -5012,6 +5175,10 @@ packages:resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==}engines: {node: '>=16.17'}+ resolution: {integrity: sha512-jpWzZ1ZhwUmeWRhS7Qv3mhpOhLfwI+uAX4e5fOcXqwMR7EcJ0pj2kV1CVzHVMX/LphnKWD3LObjZCoJ71lKpHw==}+ engines: {node: ^18.19.0 || >=20.5.0}+resolution: {integrity: sha512-SjL+8N1dvLwJdxj5yviboAGfiPmyD6yssnmy9aqDDkJG/ffl/BKvw45ObjVnVD679PRPXs9x2uMTz4P4eHUlEw==}os: [win32]@@ -5097,9 +5264,16 @@ packages:resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==}engines: {node: ^12.20 || >= 14.13}+ resolution: {integrity: sha512-5u2V/CDW15QM1XbbgS+0DfPxVB+jUKhWEKuuFuHncbk3tEEqzmoXL+2KyOFuKGqOnmdIy0/davWF1CkuwtibCw==}+resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==}+ resolution: {integrity: sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==}engines: {node: '>=16.0.0'}@@ -5272,6 +5446,10 @@ packages:resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==}engines: {node: '>=16'}+ resolution: {integrity: sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==}@@ -5390,6 +5568,10 @@ packages:resolution: {integrity: sha512-5mtSfSbyFL770ey+6TtU5RBs1JPW2313SjilndKbHBs3RcJ7n/Vlk6AAw8bksuM32vOQUd0whbgdzVKYQdiq2g==}+ resolution: {integrity: sha512-Ox1pJVrDCyGHMG9CFg1tmrRUMRPRsAWYc/PinY0XzJU4K7y7vjNoLKIQ7BR5UJMCxNN8EM1MNDmHWA/B3aZUuw==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-COpmrF2NOg4TBWUJ5UVyaCU2A88wEMkUPK4hNqyCkqHbxT92BbvfjoSozkAIIm6XhicGlJHhFdullInrdhwU8Q==}@@ -5433,6 +5615,10 @@ packages:resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==}engines: {node: '>=16.17.0'}+ resolution: {integrity: sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==}+ engines: {node: '>=18.18.0'}+resolution: {integrity: sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==}@@ -5450,6 +5636,11 @@ packages:resolution: {integrity: sha512-K6acvFaelNxx8wc2VjbIzXKDVB0Khs0QT35U6NkGfTdCmjLNcO2945m7RFNR9/RPVFm48hq7QPzK8uGH18HCGw==}+ resolution: {integrity: sha512-IRqXKlaXwgSMAMtpNzZa1ZAe8m+Sa1770Dhk8VkSsP9LS+iHD62Zd8FQKs8fbPiagBE7BzoFX23cxFnwshpV6w==}+ engines: {node: '>=16.x'}+ hasBin: true+resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==}engines: {node: '>=6'}@@ -5570,6 +5761,10 @@ packages:resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==}engines: {node: '>=8'}+ resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==}@@ -5588,6 +5783,10 @@ packages:resolution: {integrity: sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==}engines: {node: '>=18'}+ resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-GI+WjezhPPcbM+tqE9LnmsY5qqjwHzTvjJ36wxYX5ujNXefSUJ/T17r5bqDV8yLhcgB59KTPNOc9O9cmHTPWsA==}engines: {node: '>=10'}@@ -5756,6 +5955,9 @@ packages:resolution: {integrity: sha512-vQJWusIxO7wavpON1dusciL8Go9jsIQ+EUrckauFYAiSTjcmLAsuJh3SszLpvkwPci3JcL41ek2n+LUZGFpPIQ==}engines: {node: '>=8.0.0'}+ resolution: {integrity: sha512-vWl2+u5jgOQuZR55Z1WM0XDdrJT6mzMP8zHUct7xTlWhuQs+eV0g+QL0RQdFjT54zVmbhLCP8vIVpy1wGn/gCg==}+resolution: {integrity: sha512-c8JK7hyE65X1MHMN+Viq9n11RRC7hgin3HhYKhrMyaXflk5GVplZ60IxyoVtzILeKr+xAJwg6zK6sjTBJ0FKYQ==}engines: {node: '>= 12.0.0'}@@ -5824,6 +6026,9 @@ packages:resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==}engines: {node: '>=14'}+ resolution: {integrity: sha512-MHp03UImeVhB7XZtjd0E4n6+3xr5Dq/9xI/5FptGk5FrbDR3zagPa2DS6U8ks/3HjbKWG9Q1M2ufOzxV2qLYSQ==}+resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}@@ -5913,6 +6118,9 @@ packages:resolution: {integrity: sha512-yi8swmWbO17qHhwIBNeeZxTceJMeBvWJaId6dyvTSOwTipqeHhMhOrz6513r1sOKnpvQ7zkhlG8tPrpilwTxHQ==}+ resolution: {integrity: sha512-2N21sPY9Ws53PZvsEpVtNuSW+ScYbQdp4b9qUaL+9QkHUrGFKo56Lg9Emg5s9V/qrtNBmiR01sYhUOwu3H+VOw==}+resolution: {integrity: sha512-L0WhttDl+2BOsybvEOLK7fW3UA0OQ0IQ2d6Zl2x/a6vVRs3bAY0ECOSHHeL5jD+SbOpOCUEi0y1DgHEn9Qn1AQ==}@@ -5930,6 +6138,9 @@ packages:resolution: {integrity: sha512-KYhi9ZOQL4BB0J061admPH8O5ZZhhxsyiJ6DQCOkCaps0JEB4HF3SbJwu8S0pJKaQUxNS33sSbzW8iDSSauHPQ==}+ resolution: {integrity: sha512-ocnPZQLNpvbedwTy9kNrQEsknEfgvcLMvOtz3sFeWApDq1MXH1TqkCIx58xlpESsfwQOnuBO9beyQuNGzVvuhQ==}+resolution: {integrity: sha512-jBEwrKtA0jTagUZj2bnmb4Yg2s4KnJGRePStgI7bAVjtcipKiF39R4LZ2V/UT61jMYWrTcBhPazexeqd6JAVtw==}@@ -6059,6 +6270,9 @@ packages:resolution: {integrity: sha512-qmdSIPC4bDJXgZTCR7XosJiNKySV7O215tsPtDN9iEO/7q/76b/ijtgRu/+epFXSJhijtTCCGp3DWS549P3xKw==}+ resolution: {integrity: sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==}+resolution: {integrity: sha512-aF7yRQr/Q0O2/4pIXm6PZ5G+jAd7QS4Yu8m+WEeEHGnbo+7mE36CbLSDQiXYV8bVL3NfmdeqPJct0tUlnjVSnA==}@@ -6248,6 +6462,21 @@ packages:resolution: {integrity: sha512-xSdlAX/RvU9zO8awNN5Hk3WpfkCFQl83UQEa6/4n401HPaAsVXOj/8P0CJxozg4TMdhyKmaqcPbO9R7Ytg/cBQ==}+ resolution: {integrity: sha512-LnioM0JsfrSYPo/4TgPBu+ncI6QNCejs0FVu/f/SLeygwrh3senm9MvlBi1tldE1AU0J7030uO8UekOlvFPPXQ==}+ engines: {node: '>=18.0.0'}+ peerDependencies:+ '@unhead/vue': ^2.0.5+ unstorage: ^1.15.0++ resolution: {integrity: sha512-g6h+PDgvZOmFbTZyvz4CozicUtepBIe7bwS+tklPfaCvbuy6XPXvl+dkMO54VamCOj+9d5190HMHe+ZpQEyZFA==}++ resolution: {integrity: sha512-mmxqqh1abQ6ObNdK0OsvbYr5i/35RYAN3638CAUxTG1cJkihhj5CSGAcdSb4XjjqW6PFsVTT9LW4M/g2jrOXmw==}+ peerDependencies:+ h3: ^1+resolution: {integrity: sha512-skRFoxY/1nphk+viF5ZEDLNEMJse0J/U5+wAYtJfYQ86EcEpLMm9v78FwdCc5IioKpgmSda6ZlLxY1DgK+6SDw==}engines: {node: ^20.19.0 || >=22.12.0}@@ -6266,6 +6495,11 @@ packages:engines: {node: ^14.16.0 || >=16.10.0}hasBin: true+ resolution: {integrity: sha512-7eM+hpOtrKrBDCh7Ypu2lJ9Z7PNZBdi/8AT3AX8xoCj43BBVHD0hPSTEvMtkMpfs8FCqBGhxB+uToIQimA111g==}+ engines: {node: ^14.16.0 || >=16.10.0}+ hasBin: true+resolution: {integrity: sha512-Q52wTPUWPsVLVVmTViXPQFMW2h2xv2jnDGxypjpelCFKaOjLsm7AxYuOk1oQgFm95VNDbuggasu9htXrz6XwKw==}@@ -6398,6 +6632,9 @@ packages:resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}engines: {node: '>=6'}+ resolution: {integrity: sha512-bwS/GGIFV3b6KS4uwpzCFj4w297Yl3uqnSgIPsoQkx7GMLROXfMnWvxfNkL0oh8HVhZA4hvJoEoEIqonfJ3BWg==}+resolution: {integrity: sha512-RmVuCHWsfu0QPNW+mraxh/xjQVw/lhUCUru8Zni3Ctq3AoMhpDTq0OVdKS6iesd6Kqb7viCV3isAL43dciOSog==}engines: {node: '>=14'}@@ -6413,6 +6650,10 @@ packages:resolution: {integrity: sha512-ybiGyvspI+fAoRQbIPRddCcSTV9/LsJbf0e/S85VLowVGzRmokfneg2kwVW/KU5rOXrPSbF1qAKPMgNTqqROQQ==}engines: {node: '>=18'}+ resolution: {integrity: sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-EuCycjZtfPcjWk7KTksnJ5xPMvWGA/6i4zrLYhRG0hGvC3GPU/jGUj3Cy+ZR0v30duV3e23R95T1lE2+lsndSw==}@@ -6510,6 +6751,11 @@ packages:resolution: {integrity: sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig==}+ resolution: {integrity: sha512-GvZs4vU3U5ro2nZpeiwyb0zuFaqb9sUiAJuyrWpcGouD8y9/HLgGbNRjIph7zU9D3hnPaisMl9zG9CgFi/biIg==}+ engines: {node: '>=18'}+ hasBin: true+resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==}engines: {node: '>=4'}@@ -6731,6 +6977,10 @@ packages:resolution: {integrity: sha512-mQUvGU6aUFQ+rNvTIAcZuWGRT9a6f6Yrg9bHs4ImKF+HZCEK+plBvnAZYSIQztknZF2qnzNtr6F8s0+IuptdlQ==}engines: {node: ^14.13.1 || >=16.0.0}+ resolution: {integrity: sha512-gjVS5hOP+M3wMm5nmNOucbIrqudzs9v/57bWRHQWLYklXqoXKrVfYW2W9+glfGsqtPgpiz5WwyEEB+ksXIx3gQ==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==}@@ -6975,6 +7225,13 @@ packages:resolution: {integrity: sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==}engines: {node: '>=10'}+ resolution: {integrity: sha512-wjTh14iqADFKDK80e51/98MplTGfxz2RmIzh0GqShlf4a67+BooLywF17TvJPD6phO0Hxm7Mf1N5LtRYvdkYRA==}++ resolution: {integrity: sha512-vu/49vdc8MzV5jUchs3TIRDCOkOvMc1iJ11MrZvhg9tE4ziKIEIBjBZvies6a9sfM2vQ2gc3dXeu6rCK7AztHA==}+ engines: {node: '>=16'}+resolution: {integrity: sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==}@@ -7090,9 +7347,18 @@ packages:resolution: {integrity: sha512-FoqMu0NCGBLCcAkS1qA+XJIQTR6/JHfQXl+uGteNCQ76T91DMUjPa9xfmeqMY3z80nLSg9yQmNjK0Px6RWsH/A==}engines: {node: '>=18'}+ resolution: {integrity: sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}+ resolution: {integrity: sha512-MZ55OBRmsuPT0P1D9HkTduchRsSGlWz+WiCDKmELO4FTxB+nuscHLrPAbS8bL2aEFlj/vDH8+bdTDezI4k7kXQ==}+ peerDependencies:+ vue: ^3+resolution: {integrity: sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==}engines: {node: '>=14.16'}@@ -7187,6 +7453,9 @@ packages:resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==}engines: {node: '>=12'}+ resolution: {integrity: sha512-2cBVCj6I4IOvEnjgO/hWqXjqBGsY+zwPmHl12Srk9IXSZ56Jwwmy+66XO5Iut/oQVR7t5ihYdLB0GMa4alEUcg==}+resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==}@@ -7205,6 +7474,10 @@ packages:resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==}engines: {node: '>=12'}+ resolution: {integrity: sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==}engines: {node: '>=8'}@@ -7361,6 +7634,10 @@ packages:resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==}engines: {node: '>=12.0.0'}+ resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==}+ engines: {node: '>=12.0.0'}+resolution: {integrity: sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==}engines: {node: ^18.0.0 || >=20.0.0}@@ -7590,6 +7867,10 @@ packages:vue-router:optional: true+ resolution: {integrity: sha512-6NCPkv1ClwH+/BGE9QeoTIl09nuiAt0gS28nn1PvYXsGKRwM2TCbFA2QiilmehPDTXIe684k4rZI1yl3A1PCUw==}+ engines: {node: '>=18.12.0'}+resolution: {integrity: sha512-lkaSIlxceytPyt9yfb1h7L9jDFqwMqvUZeGsKB7Z8QrvAO3xZv2S+xMQQYzxk0AGJHcQhbcvhKEstrMy99jnuQ==}engines: {node: '>=18.12.0'}@@ -8077,6 +8358,13 @@ packages:resolution: {integrity: sha512-AyeEbWOu/TAXdxlV9wmGcR0+yh2j3vYPGOECcIj2S7MkrLyC7ne+oye2BKTItt0ii2PHk4cDy+95+LshzbXnGg==}engines: {node: '>=12.20'}+ resolution: {integrity: sha512-CzhO+pFNo8ajLM2d2IW/R93ipy99LWjtwblvC1RsoSUMZgyLbYFr221TnSNT7GjGdYui6P459mw9JH/g/zW2ug==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-N+d4UJSJbt/R3wqY7Coqs5pcV0aUj2j9IaQ3rNj9bVCLld8tTGKRa2USARjnvZJWVx1NDmQev8EknoczaOQDOA==}+resolution: {integrity: sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA==}@@ -9991,6 +10279,14 @@ snapshots:transitivePeerDependencies:- magicast+ '@nuxt/[email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ dependencies:+ '@nuxt/kit': 3.19.2([email protected])+ execa: 8.0.1+ vite: 7.1.3(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ transitivePeerDependencies:+ - magicast+'@nuxt/[email protected]':dependencies:consola: 3.4.2@@ -10322,6 +10618,34 @@ snapshots:transitivePeerDependencies:- magicast+ '@nuxt/[email protected]([email protected])':+ dependencies:+ c12: 3.2.0([email protected])+ consola: 3.4.2+ defu: 6.1.4+ destr: 2.0.5+ errx: 0.1.0+ exsolve: 1.0.7+ ignore: 7.0.5+ jiti: 2.5.1+ klona: 2.0.6+ knitwork: 1.2.0+ mlly: 1.8.0+ ohash: 2.0.11+ pathe: 2.0.3+ pkg-types: 2.3.0+ rc9: 2.1.2+ scule: 1.3.0+ semver: 7.7.2+ std-env: 3.9.0+ tinyglobby: 0.2.15+ ufo: 1.6.1+ unctx: 2.4.1+ unimport: 5.2.0+ untyped: 2.0.0+ transitivePeerDependencies:+ - magicast+'@nuxt/[email protected]([email protected])':dependencies:c12: 3.2.0([email protected])@@ -10348,6 +10672,33 @@ snapshots:transitivePeerDependencies:- magicast+ '@nuxt/[email protected]([email protected])':+ dependencies:+ c12: 3.2.0([email protected])+ consola: 3.4.2+ defu: 6.1.4+ destr: 2.0.5+ errx: 0.1.0+ exsolve: 1.0.7+ ignore: 7.0.5+ jiti: 2.5.1+ klona: 2.0.6+ mlly: 1.8.0+ ohash: 2.0.11+ pathe: 2.0.3+ pkg-types: 2.3.0+ rc9: 2.1.2+ scule: 1.3.0+ semver: 7.7.2+ std-env: 3.9.0+ tinyglobby: 0.2.15+ ufo: 1.6.1+ unctx: 2.4.1+ unimport: 5.2.0+ untyped: 2.0.0+ transitivePeerDependencies:+ - magicast+'@nuxt/[email protected]':dependencies:'@vue/shared': 3.5.19@@ -10374,7 +10725,7 @@ snapshots:transitivePeerDependencies:- magicast- '@nuxt/[email protected]([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@nuxt/[email protected]([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@nuxt/kit': 3.18.1([email protected])c12: 3.2.0([email protected])@@ -10398,9 +10749,10 @@ snapshots:tinyexec: 1.0.1ufo: 1.6.1unplugin: 2.3.8- vitest-environment-nuxt: 1.0.1([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ vitest-environment-nuxt: 1.0.1([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))vue: 3.5.19([email protected])optionalDependencies:+ playwright-core: 1.55.0vitest: 3.2.4(@types/[email protected])([email protected])([email protected])([email protected])([email protected])transitivePeerDependencies:- magicast@@ -11017,6 +11369,59 @@ snapshots:safe-stable-stringify: 2.5.0secure-json-parse: 4.0.0+ '@resvg/[email protected]':+ optional: true++ '@resvg/[email protected]':+ optional: true++ '@resvg/[email protected]':+ optional: true++ '@resvg/[email protected]':+ optional: true++ '@resvg/[email protected]':+ optional: true++ '@resvg/[email protected]':+ optional: true++ '@resvg/[email protected]':+ optional: true++ '@resvg/[email protected]':+ optional: true++ '@resvg/[email protected]':+ optional: true++ '@resvg/[email protected]':+ optional: true++ '@resvg/[email protected]':+ optional: true++ '@resvg/[email protected]':+ optional: true++ '@resvg/[email protected]':+ optionalDependencies:+ '@resvg/resvg-js-android-arm-eabi': 2.6.2+ '@resvg/resvg-js-android-arm64': 2.6.2+ '@resvg/resvg-js-darwin-arm64': 2.6.2+ '@resvg/resvg-js-darwin-x64': 2.6.2+ '@resvg/resvg-js-linux-arm-gnueabihf': 2.6.2+ '@resvg/resvg-js-linux-arm64-gnu': 2.6.2+ '@resvg/resvg-js-linux-arm64-musl': 2.6.2+ '@resvg/resvg-js-linux-x64-gnu': 2.6.2+ '@resvg/resvg-js-linux-x64-musl': 2.6.2+ '@resvg/resvg-js-win32-arm64-msvc': 2.6.2+ '@resvg/resvg-js-win32-ia32-msvc': 2.6.2+ '@resvg/resvg-js-win32-x64-msvc': 2.6.2++ '@resvg/[email protected]': {}+'@rolldown/[email protected]': {}'@rolldown/[email protected]': {}@@ -11186,6 +11591,13 @@ snapshots:transitivePeerDependencies:- '@types/node'+ '@sec-ant/[email protected]': {}++ '@shuding/[email protected]':+ dependencies:+ fflate: 0.7.4+ string.prototype.codepointat: 0.2.1+'@sideway/[email protected]':dependencies:'@hapi/hoek': 9.3.0@@ -11200,6 +11612,8 @@ snapshots:'@sindresorhus/[email protected]': {}+ '@sindresorhus/[email protected]': {}+'@smithy/[email protected]':dependencies:'@smithy/types': 4.3.2@@ -11876,6 +12290,29 @@ snapshots:unhead: 2.0.14vue: 3.5.19([email protected])+ '@unocss/[email protected]': {}++ '@unocss/[email protected]':+ dependencies:+ '@unocss/core': 66.5.1++ '@unocss/[email protected]':+ dependencies:+ '@unocss/core': 66.5.1+ '@unocss/extractor-arbitrary-variants': 66.5.1+ '@unocss/rule-utils': 66.5.1++ '@unocss/[email protected]':+ dependencies:+ '@unocss/core': 66.5.1+ '@unocss/preset-mini': 66.5.1+ '@unocss/rule-utils': 66.5.1++ '@unocss/[email protected]':+ dependencies:+ '@unocss/core': 66.5.1+ magic-string: 0.30.19+'@unrs/[email protected]':optional: true@@ -11996,7 +12433,7 @@ snapshots:dependencies:'@vitest/spy': 3.2.4estree-walker: 3.0.3- magic-string: 0.30.18+ magic-string: 0.30.19optionalDependencies:vite: 7.1.3(@types/[email protected])([email protected])([email protected])([email protected])([email protected])optional: true@@ -12016,7 +12453,7 @@ snapshots:'@vitest/[email protected]':dependencies:'@vitest/pretty-format': 3.2.4- magic-string: 0.30.18+ magic-string: 0.30.19pathe: 2.0.3optional: true@@ -12555,6 +12992,8 @@ snapshots:+ [email protected]: {}+@@ -12694,6 +13133,8 @@ snapshots:+ [email protected]: {}+dependencies:browserslist: 4.25.3@@ -12746,6 +13187,15 @@ snapshots:+ dependencies:+ '@types/node': 24.3.0+ escape-string-regexp: 4.0.0+ is-wsl: 2.2.0+ lighthouse-logger: 2.0.2+ transitivePeerDependencies:+ - supports-color+@@ -12927,10 +13377,18 @@ snapshots:dependencies:uncrypto: 0.1.3+ [email protected]: {}++ [email protected]: {}++ [email protected]: {}+dependencies:postcss: 8.5.6+ [email protected]: {}+dependencies:boolbase: 1.0.0@@ -12939,6 +13397,12 @@ snapshots:domutils: 3.2.2nth-check: 2.1.1+ dependencies:+ camelize: 1.0.1+ css-color-keywords: 1.0.0+ postcss-value-parser: 4.2.0+dependencies:mdn-data: 2.0.28@@ -13245,6 +13709,8 @@ snapshots:+ [email protected]: {}+@@ -13667,6 +14133,21 @@ snapshots:signal-exit: 4.1.0strip-final-newline: 3.0.0+ dependencies:+ '@sindresorhus/merge-streams': 4.0.0+ cross-spawn: 7.0.6+ figures: 6.1.0+ get-stream: 9.0.1+ human-signals: 8.0.1+ is-plain-obj: 4.1.0+ is-stream: 4.0.1+ npm-run-path: 6.0.0+ pretty-ms: 9.3.0+ signal-exit: 4.1.0+ strip-final-newline: 4.0.0+ yoctocolors: 2.1.2+optional: true@@ -13748,8 +14229,14 @@ snapshots:node-domexception: 1.0.0web-streams-polyfill: 3.3.3+ [email protected]: {}++ dependencies:+ is-unicode-supported: 2.1.0+dependencies:flat-cache: 4.0.1@@ -13927,6 +14414,11 @@ snapshots:+ dependencies:+ '@sec-ant/readable-stream': 0.4.1+ is-stream: 4.0.1+dependencies:resolve-pkg-maps: 1.0.0@@ -14061,6 +14553,8 @@ snapshots:+ [email protected]: {}+@@ -14103,6 +14597,8 @@ snapshots:+ [email protected]: {}+dependencies:ms: 2.1.3@@ -14115,6 +14611,8 @@ snapshots:+ [email protected]: {}+dependencies:parent-module: 1.0.1@@ -14251,6 +14749,8 @@ snapshots:+ [email protected]: {}+dependencies:'@types/estree': 1.0.8@@ -14265,6 +14765,8 @@ snapshots:+ [email protected]: {}+@@ -14403,6 +14905,13 @@ snapshots:+ dependencies:+ debug: 4.4.1+ marky: 1.3.0+ transitivePeerDependencies:+ - supports-color+optional: true@@ -14450,6 +14959,11 @@ snapshots:+ dependencies:+ base64-js: 0.0.8+ unicode-trie: 2.0.0+@@ -14557,6 +15071,10 @@ snapshots:dependencies:'@jridgewell/sourcemap-codec': 1.5.5+ dependencies:+ '@jridgewell/sourcemap-codec': 1.5.5+dependencies:'@babel/parser': 7.28.3@@ -14622,6 +15140,8 @@ snapshots:supercluster: 8.0.1tinyqueue: 3.0.0+ [email protected]: {}+dependencies:robust-predicates: 2.0.4@@ -14752,6 +15272,13 @@ snapshots:pkg-types: 1.3.1ufo: 1.6.1+ dependencies:+ acorn: 8.15.0+ pathe: 2.0.3+ pkg-types: 1.3.1+ ufo: 1.6.1+@@ -15032,6 +15559,72 @@ snapshots:- utf-8-validate- vite+ [email protected](@unhead/[email protected]([email protected]([email protected])))([email protected])([email protected])([email protected](@netlify/[email protected])([email protected]([email protected])([email protected](@cloudflare/[email protected])(@types/[email protected])([email protected])))([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected])):+ dependencies:+ '@nuxt/devtools-kit': 2.6.5([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@nuxt/kit': 4.1.2([email protected])+ '@resvg/resvg-js': 2.6.2+ '@resvg/resvg-wasm': 2.6.2+ '@unhead/vue': 2.0.14([email protected]([email protected]))+ '@unocss/core': 66.5.1+ '@unocss/preset-wind3': 66.5.1+ chrome-launcher: 1.2.0+ consola: 3.4.2+ defu: 6.1.4+ execa: 9.6.0+ image-size: 2.0.2+ magic-string: 0.30.19+ mocked-exports: 0.1.1+ nuxt-site-config: 3.2.8([email protected])([email protected])([email protected]([email protected]))+ nypm: 0.6.2+ ofetch: 1.4.1+ ohash: 2.0.11+ pathe: 2.0.3+ pkg-types: 2.3.0+ playwright-core: 1.55.0+ radix3: 1.1.2+ satori: 0.15.2+ satori-html: 0.3.2+ sirv: 3.0.2+ std-env: 3.9.0+ strip-literal: 3.0.0+ ufo: 1.6.1+ unplugin: 2.3.10+ unstorage: 1.16.1(@netlify/[email protected])([email protected]([email protected])([email protected](@cloudflare/[email protected])(@types/[email protected])([email protected])))([email protected])+ unwasm: 0.3.11+ yoga-wasm-web: 0.3.3+ transitivePeerDependencies:+ - h3+ - magicast+ - supports-color+ - vite+ - vue++ dependencies:+ '@nuxt/kit': 4.1.2([email protected])+ pkg-types: 2.3.0+ site-config-stack: 3.2.8([email protected]([email protected]))+ std-env: 3.9.0+ ufo: 1.6.1+ transitivePeerDependencies:+ - magicast+ - vue++ dependencies:+ '@nuxt/kit': 4.1.2([email protected])+ h3: 1.15.4+ pathe: 2.0.3+ pkg-types: 2.3.0+ sirv: 3.0.2+ site-config-stack: 3.2.8([email protected]([email protected]))+ ufo: 1.6.1+ transitivePeerDependencies:+ - magicast+ - vue+[email protected](@netlify/[email protected])(@parcel/[email protected])(@types/[email protected])(@vue/[email protected])([email protected])([email protected]([email protected])([email protected](@cloudflare/[email protected])(@types/[email protected])([email protected])))([email protected](@cloudflare/[email protected])(@types/[email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected]):dependencies:'@nuxt/cli': 3.28.0([email protected])@@ -15163,6 +15756,14 @@ snapshots:pkg-types: 2.3.0tinyexec: 1.0.1+ dependencies:+ citty: 0.1.6+ consola: 3.4.2+ pathe: 2.0.3+ pkg-types: 2.3.0+ tinyexec: 1.0.1+@@ -15376,6 +15977,11 @@ snapshots:dependencies:callsites: 3.1.0+ dependencies:+ color-name: 1.1.4+ hex-rgb: 4.3.0+@@ -15395,6 +16001,8 @@ snapshots:index-to-position: 1.1.0type-fest: 4.41.0+ [email protected]: {}+dependencies:protocols: 2.0.2@@ -15474,6 +16082,8 @@ snapshots:exsolve: 1.0.7pathe: 2.0.3+ [email protected]: {}+@@ -15699,6 +16309,10 @@ snapshots:+ dependencies:+ parse-ms: 4.0.0+@@ -15977,6 +16591,24 @@ snapshots:+ dependencies:+ ultrahtml: 1.6.0++ dependencies:+ '@shuding/opentype.js': 1.4.0-beta.0+ css-background-parser: 0.1.0+ css-box-shadow: 1.0.0-3+ css-gradient-parser: 0.0.16+ css-to-react-native: 3.2.0+ emoji-regex-xs: 2.0.1+ escape-html: 1.0.3+ linebreak: 1.1.0+ parse-css-color: 0.2.1+ postcss-value-parser: 4.2.0+ yoga-wasm-web: 0.3.3+@@ -16172,8 +16804,19 @@ snapshots:mrmime: 2.0.1totalist: 3.0.1+ dependencies:+ '@polka/url': 1.0.0-next.29+ mrmime: 2.0.1+ totalist: 3.0.1++ dependencies:+ ufo: 1.6.1+ vue: 3.5.19([email protected])+@@ -16254,6 +16897,8 @@ snapshots:emoji-regex: 9.2.2strip-ansi: 7.1.0+ [email protected]: {}+dependencies:safe-buffer: 5.1.2@@ -16272,6 +16917,8 @@ snapshots:+ [email protected]: {}+dependencies:min-indent: 1.0.1@@ -16443,6 +17090,11 @@ snapshots:fdir: 6.5.0([email protected])picomatch: 4.0.3+ dependencies:+ fdir: 6.5.0([email protected])+ picomatch: 4.0.3+optional: true@@ -16695,6 +17347,13 @@ snapshots:- typescript- vue+ dependencies:+ '@jridgewell/remapping': 2.3.5+ acorn: 8.15.0+ picomatch: 4.0.3+ webpack-virtual-modules: 0.6.2+dependencies:'@jridgewell/remapping': 2.3.5@@ -16926,9 +17585,9 @@ snapshots:terser: 5.43.1yaml: 2.8.1- [email protected]([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):+ [email protected]([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:- '@nuxt/test-utils': 3.19.2([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@nuxt/test-utils': 3.19.2([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))transitivePeerDependencies:- '@cucumber/cucumber'- '@jest/globals'@@ -16956,13 +17615,13 @@ snapshots:chai: 5.3.3debug: 4.4.1expect-type: 1.2.2- magic-string: 0.30.18+ magic-string: 0.30.19pathe: 2.0.3picomatch: 4.0.3std-env: 3.9.0tinybench: 2.9.0tinyexec: 0.3.2- tinyglobby: 0.2.14+ tinyglobby: 0.2.15tinypool: 1.1.1tinyrainbow: 2.0.0vite: 7.1.3(@types/[email protected])([email protected])([email protected])([email protected])([email protected])@@ -17206,6 +17865,10 @@ snapshots:+ [email protected]: {}++ [email protected]: {}+dependencies:'@poppinss/exception': 1.2.2diff --git a/server/api/photos/exif/reindex.post.ts b/server/api/photos/exif/reindex.post.tsindex e970f47f..10f3ac69 100644--- a/server/api/photos/exif/reindex.post.ts+++ b/server/api/photos/exif/reindex.post.ts@@ -1,5 +1,8 @@import { eq, isNotNull, inArray, and } from 'drizzle-orm'-import { extractExifData, extractPhotoInfo } from '~~/server/services/image/exif'+import {+ extractExifData,+ extractPhotoInfo,+} from '~~/server/services/image/exif'export default eventHandler(async (event) => {await requireUserSession(event)@@ -15,7 +18,7 @@ export default eventHandler(async (event) => {.from(tables.photos).where(eq(tables.photos.id, photoId)).limit(1)- .then(rows => rows[0])+ .then((rows) => rows[0])if (!photo) {throw createError({@@ -29,7 +32,7 @@ export default eventHandler(async (event) => {// 重新提取文件的元数据const { storageProvider } = useStorageProvider(event)const fileBuffer = await storageProvider.get(photo.storageKey!)-+if (!fileBuffer) {throw createError({statusCode: 404,@@ -38,7 +41,11 @@ export default eventHandler(async (event) => {}// 提取新的 EXIF 数据- const exifData = await extractExifData(fileBuffer, undefined, logger.chrono)+ const exifData = await extractExifData(+ fileBuffer,+ undefined,+ logger.chrono,+ )const photoInfo = extractPhotoInfo(photo.storageKey!, exifData)// 更新数据库中的 EXIF 数据@@ -50,6 +57,7 @@ export default eventHandler(async (event) => {dateTaken: photoInfo.dateTaken,tags: photoInfo.tags,lastModified: new Date().toISOString(),+ thumbnailKey: `${storageProvider.config?.prefix?.replace(/\/$/, '')}/thumbnails/${photoId}.webp`,}).where(eq(tables.photos.id, photoId))@@ -76,8 +84,8 @@ export default eventHandler(async (event) => {.where(and(isNotNull(tables.photos.storageKey),- inArray(tables.photos.id, photoIds)- )+ inArray(tables.photos.id, photoIds),+ ),)} else {// 处理所有照片@@ -102,7 +110,9 @@ export default eventHandler(async (event) => {}}- logger.chrono.info(`Starting batch EXIF reindexing for ${photos.length} photos`)+ logger.chrono.info(+ `Starting batch EXIF reindexing for ${photos.length} photos`,+ )let processed = 0let updated = 0@@ -112,14 +122,14 @@ export default eventHandler(async (event) => {for (const photo of photos) {try {processed++-+logger.chrono.info(- `Processing photo ${photo.id} (${processed}/${photos.length})`+ `Processing photo ${photo.id} (${processed}/${photos.length})`,)// 获取文件const fileBuffer = await storageProvider.get(photo.storageKey!)-+if (!fileBuffer) {errors.push({photoId: photo.id,@@ -129,7 +139,11 @@ export default eventHandler(async (event) => {}// 提取元数据和照片信息- const exifData = await extractExifData(fileBuffer, undefined, logger.chrono)+ const exifData = await extractExifData(+ fileBuffer,+ undefined,+ logger.chrono,+ )const photoInfo = extractPhotoInfo(photo.storageKey!, exifData)// 更新数据库@@ -141,21 +155,23 @@ export default eventHandler(async (event) => {dateTaken: photoInfo.dateTaken,tags: photoInfo.tags,lastModified: new Date().toISOString(),+ thumbnailKey: `${storageProvider.config?.prefix?.replace(/\/$/, '')}/thumbnails/${photo.id}.webp`,}).where(eq(tables.photos.id, photo.id))updated++logger.chrono.success(- `Updated EXIF for photo ${photo.id} (${updated}/${processed})`+ `Updated EXIF for photo ${photo.id} (${updated}/${processed})`,)// 添加小延迟以避免过度负载if (processed % 10 === 0) {- await new Promise(resolve => setTimeout(resolve, 100))+ await new Promise((resolve) => setTimeout(resolve, 100))}} catch (error) {- const errorMessage = error instanceof Error ? error.message : 'Unknown error'+ const errorMessage =+ error instanceof Error ? error.message : 'Unknown error'logger.chrono.error(`Failed to process photo ${photo.id}:`, error)errors.push({photoId: photo.id,@@ -172,15 +188,17 @@ export default eventHandler(async (event) => {updated,errors: errors.length > 0 ? errors : undefined,statistics: {- successRate: processed > 0- ? (((processed - errors.length) / processed) * 100).toFixed(1) + '%'- : '0%',+ successRate:+ processed > 0+ ? (((processed - errors.length) / processed) * 100).toFixed(1) ++ '%'+ : '0%',},},}logger.chrono.success(- `EXIF batch reindexing completed: ${updated} photos updated out of ${processed} processed`+ `EXIF batch reindexing completed: ${updated} photos updated out of ${processed} processed`,)return resultdiff --git a/server/database/migrations/0003_nifty_hellcat.sql b/server/database/migrations/0003_nifty_hellcat.sqlnew file mode 100644index 00000000..0122f7b3--- /dev/null+++ b/server/database/migrations/0003_nifty_hellcat.sql@@ -0,0 +1 @@+ALTER TABLE `photos` ADD `thumbnail_key` text;\ No newline at end of filediff --git a/server/database/migrations/meta/0003_snapshot.json b/server/database/migrations/meta/0003_snapshot.jsonnew file mode 100644index 00000000..38b04591--- /dev/null+++ b/server/database/migrations/meta/0003_snapshot.json@@ -0,0 +1,280 @@+{+ "version": "6",+ "dialect": "sqlite",+ "id": "09eda2ca-cacb-4ef5-a4b9-e17c1326fa19",+ "prevId": "f6c0e2d0-2c8f-4919-b584-804ecaf815b6",+ "tables": {+ "photos": {+ "name": "photos",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "title": {+ "name": "title",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "width": {+ "name": "width",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "height": {+ "name": "height",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "aspect_ratio": {+ "name": "aspect_ratio",+ "type": "real",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "date_taken": {+ "name": "date_taken",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "storage_key": {+ "name": "storage_key",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "thumbnail_key": {+ "name": "thumbnail_key",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "file_size": {+ "name": "file_size",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "last_modified": {+ "name": "last_modified",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "original_url": {+ "name": "original_url",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "thumbnail_url": {+ "name": "thumbnail_url",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "thumbnail_hash": {+ "name": "thumbnail_hash",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "tags": {+ "name": "tags",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "exif": {+ "name": "exif",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "latitude": {+ "name": "latitude",+ "type": "real",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "longitude": {+ "name": "longitude",+ "type": "real",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "country": {+ "name": "country",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "city": {+ "name": "city",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "location_name": {+ "name": "location_name",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "is_live_photo": {+ "name": "is_live_photo",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": 0+ },+ "live_photo_video_url": {+ "name": "live_photo_video_url",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "live_photo_video_key": {+ "name": "live_photo_video_key",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "photos_id_unique": {+ "name": "photos_id_unique",+ "columns": [+ "id"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "users": {+ "name": "users",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": true+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "email": {+ "name": "email",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "password": {+ "name": "password",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "avatar": {+ "name": "avatar",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "is_admin": {+ "name": "is_admin",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": 0+ }+ },+ "indexes": {+ "users_name_unique": {+ "name": "users_name_unique",+ "columns": [+ "name"+ ],+ "isUnique": true+ },+ "users_email_unique": {+ "name": "users_email_unique",+ "columns": [+ "email"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ }+ },+ "views": {},+ "enums": {},+ "_meta": {+ "schemas": {},+ "tables": {},+ "columns": {}+ },+ "internal": {+ "indexes": {}+ }+}\ No newline at end of filediff --git a/server/database/migrations/meta/_journal.json b/server/database/migrations/meta/_journal.jsonindex 18273eef..4cc48681 100644--- a/server/database/migrations/meta/_journal.json+++ b/server/database/migrations/meta/_journal.json@@ -22,6 +22,13 @@"when": 1756831944824,"tag": "0002_faulty_tyrannus","breakpoints": true+ },+ {+ "idx": 3,+ "version": "6",+ "when": 1758511705153,+ "tag": "0003_nifty_hellcat",+ "breakpoints": true}]}\ No newline at end of filediff --git a/server/database/schema.ts b/server/database/schema.tsindex 2f2ce432..8016fa34 100644--- a/server/database/schema.ts+++ b/server/database/schema.ts@@ -20,13 +20,14 @@ export const photos = sqliteTable('photos', {aspectRatio: real('aspect_ratio'),dateTaken: text('date_taken'),storageKey: text('storage_key'),+ thumbnailKey: text('thumbnail_key'),fileSize: integer('file_size'),lastModified: text('last_modified'),originalUrl: text('original_url'),thumbnailUrl: text('thumbnail_url'),thumbnailHash: text('thumbnail_hash'),tags: text('tags', { mode: 'json' }).$type<string[]>(),- exif: text('exif', {mode: 'json'}).$type<NeededExif>(),+ exif: text('exif', { mode: 'json' }).$type<NeededExif>(),// 地理位置信息latitude: real('latitude'),longitude: real('longitude'),diff --git a/server/routes/thumb/[...key].get.ts b/server/routes/thumb/[...key].get.tsnew file mode 100644index 00000000..23ebbc10--- /dev/null+++ b/server/routes/thumb/[...key].get.ts@@ -0,0 +1,18 @@+import sharp from 'sharp'++export default eventHandler(async (event) => {+ const { storageProvider } = useStorageProvider(event)+ const key = getRouterParam(event, 'key')++ if (!key) {+ throw createError({ statusCode: 400, statusMessage: 'Invalid key' })+ }++ const photo = await storageProvider.get(`${key}`)+ if (!photo) {+ throw createError({ statusCode: 404, statusMessage: 'Photo not found' })+ }+ logger.chrono.info('Convert thumb to jpeg from key', key)+ const sharpInst = sharp(photo).rotate()+ return await sharpInst.jpeg({ quality: 85 }).toBuffer()+})diff --git a/server/services/photo/pipeline-async.ts b/server/services/photo/pipeline-async.tsindex 319bd27c..40dd32cd 100644--- a/server/services/photo/pipeline-async.ts+++ b/server/services/photo/pipeline-async.ts@@ -202,6 +202,7 @@ async function processPhotoInternal(height: metadata.height,aspectRatio: metadata.width / metadata.height,storageKey: s3key,+ thumbnailKey: thumbnailObject.key,fileSize: storageObject.size || null,lastModified:storageObject.lastModified?.toISOString() || new Date().toISOString(),