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(storage-provider/r2): add nuxthub r2 storage provider
Timothy Yin6dc934b256cd
diff --git a/.env.example b/.env.exampleindex 69c50684..ab14bb4c 100644--- a/.env.example+++ b/.env.example@@ -1,7 +1,12 @@-NUXT_S3_ENDPOINT=-NUXT_S3_BUCKET=-NUXT_S3_REGION=auto-NUXT_S3_ACCESS_KEY_ID=-NUXT_S3_SECRET_ACCESS_KEY=-NUXT_S3_PREFIX=photos/-NUXT_S3_CDN_URL=+NUXT_STORAGE_PROVIDER=s3++NUXT_PROVIDER_S3_ENDPOINT=+NUXT_PROVIDER_S3_BUCKET=+NUXT_PROVIDER_S3_REGION=auto+NUXT_PROVIDER_S3_ACCESS_KEY_ID=+NUXT_PROVIDER_S3_SECRET_ACCESS_KEY=+NUXT_PROVIDER_S3_PREFIX=photos/+NUXT_PROVIDER_S3_CDN_URL=++NUXT_CLOUDFLARE_API_TOKEN=+NUXT_CLOUDFLARE_D1_UUID=diff --git a/nuxt.config.ts b/nuxt.config.tsindex d9928f43..b7d00b67 100644--- a/nuxt.config.ts+++ b/nuxt.config.ts@@ -11,18 +11,28 @@ export default defineNuxtConfig({'@nuxt/icon','@nuxt/image','@nuxt/test-utils',+ 'motion-v/nuxt',+ '@nuxthub/core',],css: ['~/assets/css/tailwind.css'],runtimeConfig: {- S3_ENDPOINT: '',- S3_BUCKET: '',- S3_REGION: '',- S3_ACCESS_KEY_ID: '',- S3_SECRET_ACCESS_KEY: '',- S3_PREFIX: '',- S3_CDN_URL: '',+ STORAGE_PROVIDER: 's3',+ PROVIDER_S3_ENDPOINT: '',+ PROVIDER_S3_BUCKET: '',+ PROVIDER_S3_REGION: '',+ PROVIDER_S3_ACCESS_KEY_ID: '',+ PROVIDER_S3_SECRET_ACCESS_KEY: '',+ PROVIDER_S3_PREFIX: '',+ PROVIDER_S3_CDN_URL: '',+ CLOUDFLARE_API_TOKEN: '',+ CLOUDFLARE_D1_UUID: '',+ },++ hub: {+ database: true,+ blob: true,},nitro: {diff --git a/package.json b/package.jsonindex 2dd29d39..5ed94c48 100644--- a/package.json+++ b/package.json@@ -15,16 +15,18 @@"postinstall": "nuxt prepare"},"dependencies": {- "@aws-sdk/client-s3": "^3.872.0",- "@aws-sdk/s3-request-presigner": "^3.872.0",+ "@aws-sdk/client-s3": "^3.873.0","@chronoframe/webgl-image": "workspace:*","@nuxt/eslint": "1.9.0","@nuxt/fonts": "0.11.4","@nuxt/icon": "2.0.0","@nuxt/image": "1.11.0","@nuxt/test-utils": "3.19.2",+ "@nuxthub/core": "0.9.0","@tailwindcss/vite": "^4.1.12",+ "cloudflare": "^4.5.0","eslint": "^9.0.0",+ "motion-v": "^1.7.0","nuxt": "^4.0.3","tailwindcss": "^4.1.12","vue": "^3.5.18",@@ -33,6 +35,7 @@},"packageManager": "[email protected]+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a","devDependencies": {+ "consola": "^3.4.2","eslint-config-prettier": "^10.1.8","eslint-plugin-prettier": "^5.5.4","prettier": "^3.6.2"diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 57b3691f..e7e99265 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -9,11 +9,8 @@ importers:.:dependencies:'@aws-sdk/client-s3':- specifier: ^3.872.0- version: 3.872.0- '@aws-sdk/s3-request-presigner':- specifier: ^3.872.0- version: 3.872.0+ specifier: ^3.873.0+ version: 3.873.0'@chronoframe/webgl-image':specifier: workspace:*version: link:packages/webgl-image@@ -32,12 +29,21 @@ importers:'@nuxt/test-utils':specifier: 3.19.2version: 3.19.2([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@nuxthub/core':+ specifier: 0.9.0+ version: 0.9.0(@netlify/[email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@tailwindcss/vite':specifier: ^4.1.12version: 4.1.12([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ cloudflare:+ specifier: ^4.5.0+ version: 4.5.0eslint:specifier: ^9.0.0version: 9.33.0([email protected])+ motion-v:+ specifier: ^1.7.0+ version: 1.7.0(@vueuse/[email protected]([email protected]([email protected])))([email protected]([email protected]))nuxt:specifier: ^4.0.3version: 4.0.3(@netlify/[email protected])(@parcel/[email protected])(@types/[email protected])(@vue/[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])@@ -52,8 +58,11 @@ importers:version: 4.5.1([email protected]([email protected]))wrangler:specifier: ^4.32.0- version: 4.32.0+ version: 4.32.0(@cloudflare/[email protected])devDependencies:+ consola:+ specifier: ^3.4.2+ version: 3.4.2eslint-config-prettier:specifier: ^10.1.8version: 10.1.8([email protected]([email protected]))@@ -133,131 +142,123 @@ packages:'@aws-crypto/[email protected]':resolution: {integrity: sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-TYXRjjb6fzVzZuDK+6BNdfFLOZXazaaB5l7eESr1NYPKGQB6OxgcLC+NfaA6dKCwShpSglKUUrXFe26kX24Tcg==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-b+1lSEf+obcC508blw5qEDR1dyTiHViZXbf8G6nFospyqLJS0Vu2py+e+LG2VDVdAouZ8+RvW+uAi73KgsWl0w==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-ZCiZk4TslnhhcFbo95HfNxwtNBXJ5jE/WxhJrFJPMJfAlSuaMu3H3LdfVwgzWs9vBtk2yTRX3gF+clKtZb6D2Q==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-EmcrOgFODWe7IsLKFTeSXM9TlQ80/BO1MBISlr7w2ydnOaUYIiPGRRJnDpeIgMaNqT4Rr2cRN2RiMrbFO7gDdA==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-LFUREbobleHEln+Zf7IG83lAZwvHZG0stI7UU0CtwyuhQy5Yx0rKksHNOCmlM7MpTEbSCfntEhYi3jUaY5e5lg==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-WrROjp8X1VvmnZ4TBzwM7RF+EB3wRaY9kQJLXw+Aes0/3zRjUXvGIlseobGJMqMEGnM0YekD2F87UaVfot1xeQ==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-StJPOI2Rt8UE6lYjXUpg6tqSZaM72xg46ljPg8kIevtBAAfdtq9K20qT/kSliWGIBocMFAv0g2mC0hAa+ECyvg==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-FWj1yUs45VjCADv80JlGshAttUHBL2xtTAbJcAxkkJZzLRKVkdyrepFWhv/95MvDyzfbT6PgJiWMdW65l/8ooA==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-E/RFVxGTuGnuD+9pFPH2j4l6HvrXzPhmpL8H8nOoJUosjx7d4v93GJMbbl1v/fkDLqW9qN4Jx2cI6PAjohA6OA==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-0sIokBlXIsndjZFUfr3Xui8W6kPC4DAeBGAXxGi9qbFZ9PWJjn1vt2COLikKH3q2snchk+AsznREZG8NW6ezSg==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-OItc+c6Yu5UUTmHVXpcqiQEkOIAZMWpzM9iXlz+CtzE0njft2obvGtIWQgZl7yVuaROtin4YwPAJscWmKhsb/A==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-bQdGqh47Sk0+2S3C+N46aNQsZFzcHs7ndxYLARH/avYXf02Nl68p194eYFaAHJSQ1re5IbExU1+pbums7FJ9fA==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-VpzTBfd0a19+5y7obIXzkhjC60yHsom7JNCqymWft+eJJN/6I817ti/59vtwdtujmG/UpLtszy7YGGo8V9oF1g==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-+v/xBEB02k2ExnSDL8+1gD6UizY4Q/HaIJkNSkitFynRiiTQpVOSkCkA0iWxzksMeN8k1IHTE5gzeWpkEjNwbA==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-Zxnn1hxhq7EOqXhVYgkF4rI9MnaO3+6bSg/tErnBQ3F8kDpA7CFU24G1YxwaJXp2X4aX3LwthefmSJHwcVP/2g==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-ycFv9WN+UJF7bK/ElBq1ugWA4NMbYS//1K55bPQZb2XUpAM2TWFlEjG7DIyOhLNTdl6+CbHlCdhlKQuDGgmm0A==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-+wmvQe1D3GrgfHRvmupvSTmt76ynNrWLNm17Bg1ofeYKFThlPWUNhwZ2rFXwZadksQfdmwfPYRxjo8Eg4xogWA==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-SudkAOZmjEEYgUrqlUUjvrtbWJeI54/0Xo87KRxm4kfBtMqSx0TxbplNUAk8Gkg4XQNY0o7jpG8tK7r2Wc2+uw==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-nNcjPN4SYg8drLwqK0vgVeSvxeGQiD0FxOaT38mV2H8cu0C5NzpvA+14Xy+W6vT84dxgmJYKk71Cr5QL2Oz+rA==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-Gw2H21+VkA6AgwKkBtTtlGZ45qgyRZPSKWs0kUwXVlmGOiPz61t/lBX0vG6I06ZIz2wqeTJ5OA1pWZLqw1j0JQ==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-Wcsc7VPLjImQw+CP1/YkwyofMs9Ab6dVq96iS8p0zv0C6YTaMjvillkau4zFfrrrTshdzFWKptIFhKK8Zsei1g==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-b4bvr0QdADeTUs+lPc9Z48kXzbKHXQKgTvxx/jXDgSW9tv4KmYPO1gIj6Z9dcrBkRWQuUtSW3Tu2S5n6pe+zeg==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-oG3AaVUJ+26p0ESU4INFn6MmqqiBFZGrebST66Or+YBhteed2rbbFl7mCfjtPWUFgquQlvT1UP19P3LjQKeKpw==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-GIqoc8WgRcf/opBOZXFLmplJQKwOMjiOMmDz9gQkaJ8FiVJoAp8EGVmK2TOWZMQUYsavvHYsHaor5R2xwPoGVg==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-MvakvzPZi9uyP3YADuIqtk/FAcPFkyYFWVVMf5iFs/rCdk0CUzn02Qf4CSuyhbkS6Y0KrAsMgKR4MgklPU79Wg==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-NNiy2Y876P5cgIhsDlHopbPZS3ugdfBW1va0WdpVBviwAs6KT4irPNPAOyF1/33N/niEDKx0fKQV7ROB70nNPA==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-jDje8dCFeFHfuCAxMDXBs8hy8q9NCTlyK4ThyyfAj3U4Pixly2mmzY2u7b7AyGhWsjJNx8uhTjlYq5zkQPQCYw==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-KZ/W1uruWtMOs7D5j3KquOxzCnV79KQW9MjJFZM/M0l6KI8J6V3718MXxFHsTjUE4fpdV6SeCNLV1lwGygsjJA==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-MnwLxCw7Cc9OngEH3SHFhrLlDI9WVxaBkp3oTsdY9JE7v8OE38wQ9vtjaRsynjwu0WRtrctSHbpd7h/QVvtjyA==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-r+hIaORsW/8rq6wieDordXnA/eAu7xAPLue2InhoEX6ML7irP52BgiibHLpt9R0psiCzIHhju8qqKa4pJOrmiw==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-N/bXSJznNBR/i7Ofmf9+gM6dx/SPBK09ZWLKsW5iQjqKxAKn/2DozlnE54uiEs1saHZWoNDRg69Ww4XYYSlG1Q==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-QhNZ8X7pW68kFez9QxUSN65Um0Feo18ZmHxszQZNUhKDsXew/EG9NPQE/HgYcekcon35zHxC4xs+FeNuPurP2g==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-KVoo3IOzEkTq97YKM4uxZcYFSNnMkhW/qj22csofLegZi5fk90ztUnnaeKfaEJHfHp/tm1Y3uSoOXH45s++kKQ==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-OtgY8EXOzRdEWR//WfPkA/fXl0+WwE8hq0y9iw2caNyKPtca85dzrrZWnPqyBK/cpImosrpR1iKMYr41XshsCg==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-GjYPZ6Xnqo17NnC8NIQyvvdzzO7dm+Ks7gpxD/HsbXPmV2aEfuFveJXneGW9e1BheSKFff6FPDWu8Gaj2Iu1yg==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-bOoWGH57ORK2yKOqJMmxBV4b3yMK8Pc0/K2A98MNPuQedXaxxwzRfsT2Qw+PpfYkiijrrNFqDYmQRGntxJ2h8A==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-72VtP7DZC8lYTE2L3Efx2BrD98oe9WTK8X6hmd3WTLkbIjvgWQWIdjgaFXBs8WevsXkewIctfyA3KEezvL5ggw==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-AF55J94BoiuzN7g3hahy0dXTVZahVi8XxRBLgzNp6yQf0KTng+hb/V9UQZVYY1GZaDczvvvnqC54RGe9OZZ9zQ==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-wrddonw4EyLNSNBrApzEhpSrDwJiNfjxDm5E+bn8n32BbAojXASH8W8jNpxz/jMgNkkJNxCfyqybGKzBX0OhbQ==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-gHqAMYpWkPhZLwqB3Yj83JKdL2Vsb64sryo8LN2UdpElpS+0fT4yjqSxKTfp7gkhN6TCIxF24HQgbPk5FMYJWw==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-H1C+NjSmz2y8Tbgh7Yy89J20yD/hVyk15hNoZDbCYkXg0M358KS7KVIEYs8E2aPOCr1sK3HBE819D/yvdMgokA==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-yg8JkRHuH/xO65rtmLOWcd9XQhxX1kAonp2CliXT44eA/23OBds6XoheY44eZeHfCTgutDLTYitvy3k9fQY6ZA==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-VisR+/HuVFICrBPY+q9novEiE4b3mvDofWqyvmxHcWM7HumTz9ZQSuEtnlB/92GVM3KDUrR9EmBHNRrfXYZkcQ==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-q9sPoef+BBG6PJnc4x60vK/bfVwvRWsPgcoQyIra057S/QGjq5VkjvNk6H8xedf6vnKlXNBwq9BaANBXnldUJg==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-kbxjs4UZU4V6QEHfvO0oTZX6HqViT5fzABob78gXTf+d2cz1+lXWMLtd4avvhT9o+wISWdwYMG3idxCuMUegDQ==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-FQ5OIXw1rmDud7f/VO9y2Mg9rX1o4MnngRKUOD8mS9ALK4uxKrTczb4jA+uJLSLwTqMGs3bcB1RzbMW1zWTMwQ==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-w2HIn/WIcUyv1bmyCpRUKHXB5KdFGzyxPkp/YK5g+/FuGdnFFYWGfcO8O+How4jwrZTarBYsAHW9ggoKvwr37w==}- engines: {node: '>=18.0.0'}-- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-gTc2QHOBo05SCwVA65dUtnJC6QERvFaPiuppGDSxoF7O5AQNK0UR/kMSenwLqN8b5E1oLYvQTv3C1idJLRX0cg==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-BWOCeFeV/Ba8fVhtwUw/0Hz4wMm9fjXnMb4Z2a5he/jFlz5mt1/rr6IQ4MyKgzOaz24YrvqsJW2a0VUKOaYDvg==}engines: {node: '>=18.0.0'}'@aws-sdk/[email protected]':resolution: {integrity: sha512-Bei+RL0cDxxV+lW2UezLbCYYNeJm6Nzee0TpW0FfyTRBhH9C1XQh4+x+IClriXvgBnRquTMMYsmJfvx8iyLKrg==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-wmBJqn1DRXnZu3b4EkE6CWnoWMo1ZMvlfkqU5zPz67xx1GMaXlDCchFvKAXMjk4jn/L1O3tKnoFDNsoLV1kgNQ==}- engines: {node: '>=18.0.0'}-- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-eCZuScdE9MWWkHGM2BJxm726MCmWk/dlHjOKvkM0sN1zxBellBMw5JohNss1Z8/TUmnW2gb9XHTOiHuGjOdksA==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-qag+VTqnJWDn8zTAXX4wiVioa0hZDQMtbZcGRERVnLar4/3/VIKBhxX2XibNQXFu1ufgcRn4YntT/XEPecFWcg==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-4kd2PYUMA/fAnIcVVwBIDCa2KCuUPrS3ELgScLjBaESP0NN+K163m40U5RbzNec/elOcJHR8lEThzzSb7vXH6w==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-YByHrhjxYdjKRf/RQygRK1uh0As1FIi9+jXTcIEX/rBgN8mUByczr2u4QXBzw7ZdbdcOBMOkPnLRjNOWW1MkFg==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-zVoRfpmBVPodYlnMjgVjfGoEZagyRF5IPn3Uo6ZvOZp24chnW/FRstH7ESDHDDRga4z3V+ElUQHKpFDXWyBW5A==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-xcVhZF6svjM5Rj89T1WzkjQmrTF6dpR2UvIHPMTnSZoNe6CixejPZ6f0JJ2kAhO8H+dUHwNBlsUgOTIKiK/Syg==}engines: {node: '>=18.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-BmPTlm0r9/10MMr5ND9E92r8KMZbq5ltYXYpVcUbAsnB1RJ8ASJuRoLne5F7mB3YMx0FJoOTuSq7LdQM3LgW3Q==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-AcRdbK6o19yehEcywI43blIBhOCSo6UgyWcuOJX5CFF8k39xm1ILCjQlRRjchLAxWrm0lU0Q7XV90RiMMFMZtA==}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-d+FjUm2eJEpP+FRpVR3z6KzMdx1qwxEYDz8jzNKwxYLBBquaBaP/wfoMtMQKAcbrR7aT9FZVZF7zDgzNxUvQlQ==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-9MivTP+q9Sis71UxuBaIY3h5jxH0vN3/ZWGxO8ADL19S2OIfknrYSAfzE5fpoKROVBu0bS4VifHOFq4PY1zsxw==}engines: {node: '>=18.0.0'}peerDependencies:aws-crt: '>=1.0.0'@@ -265,8 +266,8 @@ packages:aws-crt:optional: true- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-6Ed0kmC1NMbuFTEgNmamAUU1h5gShgxL1hBVLbEzUa3trX5aJBz1vU4bXaBTvOYUAnOHtiy1Ml4AMStd6hJnFA==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-kLO7k7cGJ6KaHiExSJWojZurF7SnGMDHXRuQunFnEoD0n1yB6Lqy/S/zHiQ7oJnBhPr9q0TW9qFkrsZb1Uc54w==}engines: {node: '>=18.0.0'}'@babel/[email protected]':@@ -445,6 +446,9 @@ packages:cpu: [x64]os: [win32]+ '@cloudflare/[email protected]':+ resolution: {integrity: sha512-z5pCggF3jG//h083+GEWCyQLW0A5GHq20akG+jN6ChyHQi/yZj1FcQcMhnvbBY4PiGq+SBiEj/LClG/lDPm+jg==}+'@colors/[email protected]':resolution: {integrity: sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA==}engines: {node: '>=0.1.90'}@@ -1377,6 +1381,9 @@ packages:peerDependencies:vue: ^3.3.4+ '@nuxthub/[email protected]':+ resolution: {integrity: sha512-K8GkVcJn1ZoHV9xBiDrRPtBHxlzfysVEXGhdAJ/cR37B43UuWucl9pWKlA59f3VAf6lC8iR/hn3+2qlurcK9Ug==}+'@oxc-minify/[email protected]':resolution: {integrity: sha512-OLelUqrLkSJwNyjLZHgpKy9n0+zHQiMX8A0GFovJIwhgfPxjT/mt2JMnGkSoDlTnf9cw6nvALFzCsJZLTyl8gg==}engines: {node: '>=14.0.0'}@@ -2299,6 +2306,12 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}+ '@types/[email protected]':+ resolution: {integrity: sha512-QGpRVpzSaUs30JBSGPjOg4Uveu384erbHBoT1zeONvyCfwQxIkUshLAOqN/k9EjGviPRmWTTe6aH2qySWKTVSw==}++ '@types/[email protected]':+ resolution: {integrity: sha512-K7DIaHnh0mzVxreCR9qwgNxp3MH9dltPNIEddW9MYUlcKAzm+3grKNSTe2vCJHI1FaLpvpL5JGJrz1UZDKYvDg==}+'@types/[email protected]':resolution: {integrity: sha512-gL6z5N9Jm9mhY+U2KXZpteb+09zyffliRkZyZOHODGATyC5B1Jt/7TzuuiLkFsSUMLbS1OLmlj/E+/3KF4Q/4w==}@@ -2321,6 +2334,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==}+ '@types/[email protected]':+ resolution: {integrity: sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==}+'@types/[email protected]':resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==}@@ -2483,6 +2499,9 @@ packages:cpu: [x64]os: [win32]+ '@uploadthing/[email protected]':+ resolution: {integrity: sha512-t3tTzgwFV9+1D7lNDYc7Lr7kBwotHaX0ZsvoCGe7xGnXKo9z0jG2Sjl/msll12FeoLj77nyhsxevXyGpQDBvLg==}+'@vercel/[email protected]':resolution: {integrity: sha512-6lLqMNX3TuycBPABycx7A9F1bHQR7kiQln6abjFbPrf5C/05qHM9M5E4PeTE59c7z8g6vHnx1Ioihb2AQl7BTA==}engines: {node: '>=18'}@@ -2641,6 +2660,19 @@ packages:'@vue/[email protected]':resolution: {integrity: sha512-IhXCOn08wgKrLQxRFKKlSacWg4Goi1BolrdEeLYn6tgHjJNXVrWJ5nzoxZqNwl5p88aLlQ8LOaoMa3AYvaKJ/Q==}+ '@vueuse/[email protected]':+ resolution: {integrity: sha512-myagn09+c6BmS6yHc1gTwwsdZilAovHslMjyykmZH3JNyzI5HoWhv114IIdytXiPipdHJ2gDUx0PB93jRduJYg==}+ peerDependencies:+ vue: ^3.5.0++ '@vueuse/[email protected]':+ resolution: {integrity: sha512-8okFhS/1ite8EwUdZZfvTYowNTfXmVCOrBFlA31O0HD8HKXhY+WtTRyF0LwbpJfoFPc+s9anNJIXMVrvP7UTZg==}++ '@vueuse/[email protected]':+ resolution: {integrity: sha512-Wi2LpJi4UA9kM0OZ0FCZslACp92HlVNw1KPaDY6RAzvQ+J1s7seOtcOpmkfbD5aBSmMn9NvOakc8ZxMxmDXTIg==}+ peerDependencies:+ vue: ^3.5.0+'@whatwg-node/[email protected]':resolution: {integrity: sha512-LOtTn+JgJvX8WfBVJtF08TGrdjuFzGJc4mkP8EdDI8ADbvO7kiexYep1o8dwnt0okb0jYclCDXF13xU7Ge4zSw==}engines: {node: '>=18.0.0'}@@ -2697,6 +2729,10 @@ packages:resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==}engines: {node: '>= 14'}+ resolution: {integrity: sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==}+ engines: {node: '>= 8.0.0'}+resolution: {integrity: sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==}peerDependencies:@@ -2795,6 +2831,9 @@ packages:resolution: {integrity: sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==}+ resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}+resolution: {integrity: sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ==}engines: {node: ^10 || ^12 || >=14}@@ -2947,8 +2986,8 @@ packages:resolution: {integrity: sha512-ImpN5gLEY8gWeqfLUyEF4b7mYWcYoR2Si1VhnrbM4JizRFmfGaAQ12PhNykq6nvI4XvKLrsp8Xde74D5phJOSw==}- resolution: {integrity: sha512-48af6xm9gQK8rhIcOxWwdGzIervm8BVTin+yRp9HEvU20BtVZ2lBywlIJBzwaDtvo0FvjeL7QdCADoUoqIbV3A==}+ resolution: {integrity: sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==}engines: {node: '>=18'}@@ -2996,6 +3035,9 @@ packages:resolution: {integrity: sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==}engines: {node: '>=0.8'}+ resolution: {integrity: sha512-fPcbPKx4zF45jBvQ0z7PCdgejVAPBBCZxwqk1k7krQNfpM07Cfj97/Q6wBzvYqlWXx/zt1S9+m8vnfCe06umbQ==}+resolution: {integrity: sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==}engines: {node: '>=0.10.0'}@@ -3029,6 +3071,10 @@ packages:resolution: {integrity: sha512-BgvKJiuVu1igBUF2kEjRCZXol6wiiGbY5ipL/oVPwm0BL9sIpMIzM8IK7vwuxIIzOXMV3Ey5w+vxhm0rR/TN8w==}+ resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}+ engines: {node: '>= 0.8'}+resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==}engines: {node: '>=14'}@@ -3273,6 +3319,10 @@ packages:resolution: {integrity: sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==}+ resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==}+ engines: {node: '>=0.4.0'}+resolution: {integrity: sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==}engines: {node: '>=0.10'}@@ -3436,6 +3486,10 @@ packages:resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==}+ engines: {node: '>= 0.4'}+resolution: {integrity: sha512-8pgjLUcUjcgDg+2Q4NYXnPbo/vncAY4UmyaCm0jZevERqCHZIaWwdJHkf8XQtu4AxSKCdvrUbT0XUr1IdZzI8Q==}engines: {node: '>=18'}@@ -3768,6 +3822,17 @@ packages:resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==}engines: {node: '>=14'}+ resolution: {integrity: sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==}++ resolution: {integrity: sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==}+ engines: {node: '>= 6'}++ resolution: {integrity: sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==}+ engines: {node: '>= 12.20'}+resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==}engines: {node: '>=12.20.0'}@@ -3775,6 +3840,20 @@ packages:resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==}+ resolution: {integrity: sha512-6e78rdVtnBvlEVgu6eFEAgG9v3wLnYEboM8I5O5EXvfKC8gxGQB8wXJdhkMy10iVcn05jl6CNw7/HTsTCfwcWg==}+ peerDependencies:+ '@emotion/is-prop-valid': '*'+ react: ^18.0.0 || ^19.0.0+ react-dom: ^18.0.0 || ^19.0.0+ peerDependenciesMeta:+ '@emotion/is-prop-valid':+ optional: true+ react:+ optional: true+ react-dom:+ optional: true+resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==}engines: {node: '>= 0.8'}@@ -3910,6 +3989,10 @@ packages:resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==}+ engines: {node: '>= 0.4'}+resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==}engines: {node: '>= 0.4'}@@ -3918,6 +4001,9 @@ packages:resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==}hasBin: true+ resolution: {integrity: sha512-COpmrF2NOg4TBWUJ5UVyaCU2A88wEMkUPK4hNqyCkqHbxT92BbvfjoSozkAIIm6XhicGlJHhFdullInrdhwU8Q==}+resolution: {integrity: sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==}@@ -3944,6 +4030,9 @@ packages:resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==}engines: {node: '>=16.17.0'}+ resolution: {integrity: sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==}+resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}@@ -4399,10 +4488,18 @@ packages:resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==}engines: {node: '>=8.6'}+ resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==}+ engines: {node: '>= 0.6'}+resolution: {integrity: sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==}engines: {node: '>= 0.6'}+ resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}+ engines: {node: '>= 0.6'}+resolution: {integrity: sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA==}engines: {node: '>= 0.6'}@@ -4482,6 +4579,18 @@ packages:engines: {node: '>=18'}hasBin: true+ resolution: {integrity: sha512-RcR4fvMCTESQBD/uKQe49D5RUeDOokkGRmz4ceaJKDBgHYtZtntC/s2vLvY38gqGaytinij/yi3hMcWVcEF5Kw==}++ resolution: {integrity: sha512-eAWoPgr4eFEOFfg2WjIsMoqJTW6Z8MTUCgn/GZ3VRpClWBdnbjryiA3ZSNLyxCTmCQx4RmYX6jX1iWHbenUPNQ==}++ resolution: {integrity: sha512-5oPDF5GBpcRnIZuce7Wap09S8afH4JeBWD3VbMRg4hZKk0olQnTFuHjgQUGMpX3V1WXrZgyveoF02W51XMxx9w==}+ peerDependencies:+ '@vueuse/core': '>=10.0.0'+ vue: '>=3.0.0'+resolution: {integrity: sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==}engines: {node: '>=10'}@@ -4520,6 +4629,9 @@ packages:resolution: {integrity: sha512-Nc3loyVASW59W+8fLDZT1lncpG7llffyZ2o0UQLx/Fr20i7P8oP+lE7+TEcFvXj9IUWU6LjB9P3BH+iFGyp+mg==}engines: {node: ^14.16.0 || >=16.0.0}+ resolution: {integrity: sha512-aZfNTVdgXPQeAmXW0Tw8hm3usAHr4qVG4Bg3WhHBGeZYuXr9OyT04Ztb+STkMzhyaXvfMHViAaPUPg06iAYqag==}+resolution: {integrity: sha512-MPmPRJWTeH03f/NmpN4q3iI3Woik4uaaWIoX34W3gMJiW06Vm1te/lPzuu5EXpXOK7Q2m3FymGMPXcExqih96Q==}engines: {node: ^16.11.0 || >=17.0.0}@@ -5629,6 +5741,9 @@ packages:resolution: {integrity: sha512-AbaYw0Nm4mK4qjhns67C+kgxR2YWiwlDBPzxrN8h8C6VtAdCgditAY5Dezu3IJy4XVqAnbrXt9oQJvsn3fyozg==}+ resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}+resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}@@ -5979,6 +6094,10 @@ packages:resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==}engines: {node: '>= 8'}+ resolution: {integrity: sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==}+ engines: {node: '>= 14'}+resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==}@@ -6179,7 +6298,7 @@ snapshots:'@aws-crypto/supports-web-crypto': 5.2.0'@aws-crypto/util': 5.2.0'@aws-sdk/types': 3.862.0- '@aws-sdk/util-locate-window': 3.804.0+ '@aws-sdk/util-locate-window': 3.873.0'@smithy/util-utf8': 2.3.0tslib: 2.8.1@@ -6189,7 +6308,7 @@ snapshots:'@aws-crypto/supports-web-crypto': 5.2.0'@aws-crypto/util': 5.2.0'@aws-sdk/types': 3.862.0- '@aws-sdk/util-locate-window': 3.804.0+ '@aws-sdk/util-locate-window': 3.873.0'@smithy/util-utf8': 2.3.0tslib: 2.8.1@@ -6209,30 +6328,30 @@ snapshots:'@smithy/util-utf8': 2.3.0tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@aws-crypto/sha1-browser': 5.2.0'@aws-crypto/sha256-browser': 5.2.0'@aws-crypto/sha256-js': 5.2.0- '@aws-sdk/core': 3.864.0- '@aws-sdk/credential-provider-node': 3.872.0- '@aws-sdk/middleware-bucket-endpoint': 3.862.0- '@aws-sdk/middleware-expect-continue': 3.862.0- '@aws-sdk/middleware-flexible-checksums': 3.864.0- '@aws-sdk/middleware-host-header': 3.862.0- '@aws-sdk/middleware-location-constraint': 3.862.0- '@aws-sdk/middleware-logger': 3.862.0- '@aws-sdk/middleware-recursion-detection': 3.862.0- '@aws-sdk/middleware-sdk-s3': 3.864.0- '@aws-sdk/middleware-ssec': 3.862.0- '@aws-sdk/middleware-user-agent': 3.864.0- '@aws-sdk/region-config-resolver': 3.862.0- '@aws-sdk/signature-v4-multi-region': 3.864.0+ '@aws-sdk/core': 3.873.0+ '@aws-sdk/credential-provider-node': 3.873.0+ '@aws-sdk/middleware-bucket-endpoint': 3.873.0+ '@aws-sdk/middleware-expect-continue': 3.873.0+ '@aws-sdk/middleware-flexible-checksums': 3.873.0+ '@aws-sdk/middleware-host-header': 3.873.0+ '@aws-sdk/middleware-location-constraint': 3.873.0+ '@aws-sdk/middleware-logger': 3.873.0+ '@aws-sdk/middleware-recursion-detection': 3.873.0+ '@aws-sdk/middleware-sdk-s3': 3.873.0+ '@aws-sdk/middleware-ssec': 3.873.0+ '@aws-sdk/middleware-user-agent': 3.873.0+ '@aws-sdk/region-config-resolver': 3.873.0+ '@aws-sdk/signature-v4-multi-region': 3.873.0'@aws-sdk/types': 3.862.0- '@aws-sdk/util-endpoints': 3.862.0- '@aws-sdk/util-user-agent-browser': 3.862.0- '@aws-sdk/util-user-agent-node': 3.864.0- '@aws-sdk/xml-builder': 3.862.0+ '@aws-sdk/util-endpoints': 3.873.0+ '@aws-sdk/util-user-agent-browser': 3.873.0+ '@aws-sdk/util-user-agent-node': 3.873.0+ '@aws-sdk/xml-builder': 3.873.0'@smithy/config-resolver': 4.1.5'@smithy/core': 3.8.0'@smithy/eventstream-serde-browser': 4.0.5@@ -6272,20 +6391,20 @@ snapshots:transitivePeerDependencies:- aws-crt- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@aws-crypto/sha256-browser': 5.2.0'@aws-crypto/sha256-js': 5.2.0- '@aws-sdk/core': 3.864.0- '@aws-sdk/middleware-host-header': 3.862.0- '@aws-sdk/middleware-logger': 3.862.0- '@aws-sdk/middleware-recursion-detection': 3.862.0- '@aws-sdk/middleware-user-agent': 3.864.0- '@aws-sdk/region-config-resolver': 3.862.0+ '@aws-sdk/core': 3.873.0+ '@aws-sdk/middleware-host-header': 3.873.0+ '@aws-sdk/middleware-logger': 3.873.0+ '@aws-sdk/middleware-recursion-detection': 3.873.0+ '@aws-sdk/middleware-user-agent': 3.873.0+ '@aws-sdk/region-config-resolver': 3.873.0'@aws-sdk/types': 3.862.0- '@aws-sdk/util-endpoints': 3.862.0- '@aws-sdk/util-user-agent-browser': 3.862.0- '@aws-sdk/util-user-agent-node': 3.864.0+ '@aws-sdk/util-endpoints': 3.873.0+ '@aws-sdk/util-user-agent-browser': 3.873.0+ '@aws-sdk/util-user-agent-node': 3.873.0'@smithy/config-resolver': 4.1.5'@smithy/core': 3.8.0'@smithy/fetch-http-handler': 5.1.1@@ -6315,10 +6434,10 @@ snapshots:transitivePeerDependencies:- aws-crt- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@aws-sdk/types': 3.862.0- '@aws-sdk/xml-builder': 3.862.0+ '@aws-sdk/xml-builder': 3.873.0'@smithy/core': 3.8.0'@smithy/node-config-provider': 4.1.4'@smithy/property-provider': 4.0.5@@ -6333,17 +6452,17 @@ snapshots:fast-xml-parser: 5.2.5tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/core': 3.864.0+ '@aws-sdk/core': 3.873.0'@aws-sdk/types': 3.862.0'@smithy/property-provider': 4.0.5'@smithy/types': 4.3.2tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/core': 3.864.0+ '@aws-sdk/core': 3.873.0'@aws-sdk/types': 3.862.0'@smithy/fetch-http-handler': 5.1.1'@smithy/node-http-handler': 4.1.1@@ -6354,15 +6473,15 @@ snapshots:'@smithy/util-stream': 4.2.4tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/core': 3.864.0- '@aws-sdk/credential-provider-env': 3.864.0- '@aws-sdk/credential-provider-http': 3.864.0- '@aws-sdk/credential-provider-process': 3.864.0- '@aws-sdk/credential-provider-sso': 3.872.0- '@aws-sdk/credential-provider-web-identity': 3.864.0- '@aws-sdk/nested-clients': 3.864.0+ '@aws-sdk/core': 3.873.0+ '@aws-sdk/credential-provider-env': 3.873.0+ '@aws-sdk/credential-provider-http': 3.873.0+ '@aws-sdk/credential-provider-process': 3.873.0+ '@aws-sdk/credential-provider-sso': 3.873.0+ '@aws-sdk/credential-provider-web-identity': 3.873.0+ '@aws-sdk/nested-clients': 3.873.0'@aws-sdk/types': 3.862.0'@smithy/credential-provider-imds': 4.0.7'@smithy/property-provider': 4.0.5@@ -6372,14 +6491,14 @@ snapshots:transitivePeerDependencies:- aws-crt- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/credential-provider-env': 3.864.0- '@aws-sdk/credential-provider-http': 3.864.0- '@aws-sdk/credential-provider-ini': 3.872.0- '@aws-sdk/credential-provider-process': 3.864.0- '@aws-sdk/credential-provider-sso': 3.872.0- '@aws-sdk/credential-provider-web-identity': 3.864.0+ '@aws-sdk/credential-provider-env': 3.873.0+ '@aws-sdk/credential-provider-http': 3.873.0+ '@aws-sdk/credential-provider-ini': 3.873.0+ '@aws-sdk/credential-provider-process': 3.873.0+ '@aws-sdk/credential-provider-sso': 3.873.0+ '@aws-sdk/credential-provider-web-identity': 3.873.0'@aws-sdk/types': 3.862.0'@smithy/credential-provider-imds': 4.0.7'@smithy/property-provider': 4.0.5@@ -6389,20 +6508,20 @@ snapshots:transitivePeerDependencies:- aws-crt- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/core': 3.864.0+ '@aws-sdk/core': 3.873.0'@aws-sdk/types': 3.862.0'@smithy/property-provider': 4.0.5'@smithy/shared-ini-file-loader': 4.0.5'@smithy/types': 4.3.2tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/client-sso': 3.872.0- '@aws-sdk/core': 3.864.0- '@aws-sdk/token-providers': 3.864.0+ '@aws-sdk/client-sso': 3.873.0+ '@aws-sdk/core': 3.873.0+ '@aws-sdk/token-providers': 3.873.0'@aws-sdk/types': 3.862.0'@smithy/property-provider': 4.0.5'@smithy/shared-ini-file-loader': 4.0.5@@ -6411,10 +6530,10 @@ snapshots:transitivePeerDependencies:- aws-crt- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/core': 3.864.0- '@aws-sdk/nested-clients': 3.864.0+ '@aws-sdk/core': 3.873.0+ '@aws-sdk/nested-clients': 3.873.0'@aws-sdk/types': 3.862.0'@smithy/property-provider': 4.0.5'@smithy/types': 4.3.2@@ -6422,29 +6541,29 @@ snapshots:transitivePeerDependencies:- aws-crt- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@aws-sdk/types': 3.862.0- '@aws-sdk/util-arn-parser': 3.804.0+ '@aws-sdk/util-arn-parser': 3.873.0'@smithy/node-config-provider': 4.1.4'@smithy/protocol-http': 5.1.3'@smithy/types': 4.3.2'@smithy/util-config-provider': 4.0.0tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@aws-sdk/types': 3.862.0'@smithy/protocol-http': 5.1.3'@smithy/types': 4.3.2tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@aws-crypto/crc32': 5.2.0'@aws-crypto/crc32c': 5.2.0'@aws-crypto/util': 5.2.0- '@aws-sdk/core': 3.864.0+ '@aws-sdk/core': 3.873.0'@aws-sdk/types': 3.862.0'@smithy/is-array-buffer': 4.0.0'@smithy/node-config-provider': 4.1.4@@ -6455,37 +6574,37 @@ snapshots:'@smithy/util-utf8': 4.0.0tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@aws-sdk/types': 3.862.0'@smithy/protocol-http': 5.1.3'@smithy/types': 4.3.2tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@aws-sdk/types': 3.862.0'@smithy/types': 4.3.2tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@aws-sdk/types': 3.862.0'@smithy/types': 4.3.2tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@aws-sdk/types': 3.862.0'@smithy/protocol-http': 5.1.3'@smithy/types': 4.3.2tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/core': 3.864.0+ '@aws-sdk/core': 3.873.0'@aws-sdk/types': 3.862.0- '@aws-sdk/util-arn-parser': 3.804.0+ '@aws-sdk/util-arn-parser': 3.873.0'@smithy/core': 3.8.0'@smithy/node-config-provider': 4.1.4'@smithy/protocol-http': 5.1.3@@ -6498,36 +6617,36 @@ snapshots:'@smithy/util-utf8': 4.0.0tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@aws-sdk/types': 3.862.0'@smithy/types': 4.3.2tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/core': 3.864.0+ '@aws-sdk/core': 3.873.0'@aws-sdk/types': 3.862.0- '@aws-sdk/util-endpoints': 3.862.0+ '@aws-sdk/util-endpoints': 3.873.0'@smithy/core': 3.8.0'@smithy/protocol-http': 5.1.3'@smithy/types': 4.3.2tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@aws-crypto/sha256-browser': 5.2.0'@aws-crypto/sha256-js': 5.2.0- '@aws-sdk/core': 3.864.0- '@aws-sdk/middleware-host-header': 3.862.0- '@aws-sdk/middleware-logger': 3.862.0- '@aws-sdk/middleware-recursion-detection': 3.862.0- '@aws-sdk/middleware-user-agent': 3.864.0- '@aws-sdk/region-config-resolver': 3.862.0+ '@aws-sdk/core': 3.873.0+ '@aws-sdk/middleware-host-header': 3.873.0+ '@aws-sdk/middleware-logger': 3.873.0+ '@aws-sdk/middleware-recursion-detection': 3.873.0+ '@aws-sdk/middleware-user-agent': 3.873.0+ '@aws-sdk/region-config-resolver': 3.873.0'@aws-sdk/types': 3.862.0- '@aws-sdk/util-endpoints': 3.862.0- '@aws-sdk/util-user-agent-browser': 3.862.0- '@aws-sdk/util-user-agent-node': 3.864.0+ '@aws-sdk/util-endpoints': 3.873.0+ '@aws-sdk/util-user-agent-browser': 3.873.0+ '@aws-sdk/util-user-agent-node': 3.873.0'@smithy/config-resolver': 4.1.5'@smithy/core': 3.8.0'@smithy/fetch-http-handler': 5.1.1@@ -6557,7 +6676,7 @@ snapshots:transitivePeerDependencies:- aws-crt- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@aws-sdk/types': 3.862.0'@smithy/node-config-provider': 4.1.4@@ -6566,30 +6685,19 @@ snapshots:'@smithy/util-middleware': 4.0.5tslib: 2.8.1- '@aws-sdk/[email protected]':- dependencies:- '@aws-sdk/signature-v4-multi-region': 3.864.0- '@aws-sdk/types': 3.862.0- '@aws-sdk/util-format-url': 3.862.0- '@smithy/middleware-endpoint': 4.1.18- '@smithy/protocol-http': 5.1.3- '@smithy/smithy-client': 4.4.10- '@smithy/types': 4.3.2- tslib: 2.8.1-- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/middleware-sdk-s3': 3.864.0+ '@aws-sdk/middleware-sdk-s3': 3.873.0'@aws-sdk/types': 3.862.0'@smithy/protocol-http': 5.1.3'@smithy/signature-v4': 5.1.3'@smithy/types': 4.3.2tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/core': 3.864.0- '@aws-sdk/nested-clients': 3.864.0+ '@aws-sdk/core': 3.873.0+ '@aws-sdk/nested-clients': 3.873.0'@aws-sdk/types': 3.862.0'@smithy/property-provider': 4.0.5'@smithy/shared-ini-file-loader': 4.0.5@@ -6603,11 +6711,11 @@ snapshots:'@smithy/types': 4.3.2tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@aws-sdk/types': 3.862.0'@smithy/types': 4.3.2@@ -6615,33 +6723,26 @@ snapshots:'@smithy/util-endpoints': 3.0.7tslib: 2.8.1- '@aws-sdk/[email protected]':- dependencies:- '@aws-sdk/types': 3.862.0- '@smithy/querystring-builder': 4.0.5- '@smithy/types': 4.3.2- tslib: 2.8.1-- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@aws-sdk/types': 3.862.0'@smithy/types': 4.3.2bowser: 2.12.0tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/middleware-user-agent': 3.864.0+ '@aws-sdk/middleware-user-agent': 3.873.0'@aws-sdk/types': 3.862.0'@smithy/node-config-provider': 4.1.4'@smithy/types': 4.3.2tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@smithy/types': 4.3.2tslib: 2.8.1@@ -6864,6 +6965,8 @@ snapshots:'@cloudflare/[email protected]':optional: true+ '@cloudflare/[email protected]': {}+'@colors/[email protected]': {}'@cspotcode/[email protected]':@@ -8021,6 +8124,49 @@ snapshots:- vue-tsc- yaml+ '@nuxthub/[email protected](@netlify/[email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ dependencies:+ '@cloudflare/workers-types': 4.20250823.0+ '@nuxt/devtools-kit': 2.6.2([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@nuxt/kit': 3.18.1([email protected])+ '@uploadthing/mime-types': 0.3.6+ citty: 0.1.6+ confbox: 0.2.2+ defu: 6.1.4+ destr: 2.0.5+ h3: 1.15.4+ mime: 4.0.7+ nitro-cloudflare-dev: 0.2.2+ ofetch: 1.4.1+ pathe: 2.0.3+ pkg-types: 2.3.0+ std-env: 3.9.0+ ufo: 1.6.1+ uncrypto: 0.1.3+ zod: 3.25.76+ transitivePeerDependencies:+ - '@azure/app-configuration'+ - '@azure/cosmos'+ - '@azure/data-tables'+ - '@azure/identity'+ - '@azure/keyvault-secrets'+ - '@azure/storage-blob'+ - '@capacitor/preferences'+ - '@deno/kv'+ - '@netlify/blobs'+ - '@planetscale/database'+ - '@upstash/redis'+ - '@vercel/blob'+ - '@vercel/kv'+ - aws4fetch+ - db0+ - idb-keyval+ - ioredis+ - magicast+ - uploadthing+ - vite+'@oxc-minify/[email protected]':optional: true@@ -8858,6 +9004,15 @@ snapshots:'@types/[email protected]': {}+ '@types/[email protected]':+ dependencies:+ '@types/node': 24.3.0+ form-data: 4.0.4++ '@types/[email protected]':+ dependencies:+ undici-types: 5.26.5+'@types/[email protected]':dependencies:undici-types: 6.21.0@@ -8865,7 +9020,6 @@ snapshots:'@types/[email protected]':dependencies:undici-types: 7.10.0- optional: true'@types/[email protected]': {}@@ -8879,6 +9033,8 @@ snapshots:'@types/[email protected]': {}+ '@types/[email protected]': {}+'@types/[email protected]':dependencies:'@types/node': 22.17.2@@ -9042,6 +9198,8 @@ snapshots:'@unrs/[email protected]':optional: true+ '@uploadthing/[email protected]': {}+'@vercel/[email protected]([email protected])':dependencies:'@mapbox/node-pre-gyp': 2.0.0@@ -9089,7 +9247,7 @@ snapshots:'@types/chai': 5.2.2'@vitest/spy': 3.2.4'@vitest/utils': 3.2.4- chai: 5.3.1+ chai: 5.3.3tinyrainbow: 2.0.0optional: true@@ -9316,6 +9474,19 @@ snapshots:'@vue/[email protected]': {}+ dependencies:+ '@types/web-bluetooth': 0.0.21+ '@vueuse/metadata': 13.7.0+ '@vueuse/shared': 13.7.0([email protected]([email protected]))+ vue: 3.5.19([email protected])++ '@vueuse/[email protected]': {}++ dependencies:+ vue: 3.5.19([email protected])+'@whatwg-node/[email protected]':dependencies:'@whatwg-node/promise-helpers': 1.3.2@@ -9366,6 +9537,10 @@ snapshots:+ dependencies:+ humanize-ms: 1.2.1+optionalDependencies:ajv: 8.13.0@@ -9465,6 +9640,8 @@ snapshots:+ [email protected]: {}+dependencies:browserslist: 4.25.3@@ -9623,7 +9800,7 @@ snapshots:dependencies:assertion-error: 2.0.1check-error: 2.1.1@@ -9675,6 +9852,18 @@ snapshots:+ dependencies:+ '@types/node': 18.19.123+ '@types/node-fetch': 2.6.13+ abort-controller: 3.0.0+ agentkeepalive: 4.6.0+ form-data-encoder: 1.7.2+ formdata-node: 4.4.1+ node-fetch: 2.7.0+ transitivePeerDependencies:+ - encoding+@@ -9711,6 +9900,10 @@ snapshots:color: 3.2.1text-hex: 1.0.0+ dependencies:+ delayed-stream: 1.0.0+@@ -9927,6 +10120,8 @@ snapshots:+ [email protected]: {}+@@ -10074,6 +10269,13 @@ snapshots:dependencies:es-errors: 1.3.0+ dependencies:+ es-errors: 1.3.0+ get-intrinsic: 1.3.0+ has-tostringtag: 1.0.2+ hasown: 2.0.2+optionalDependencies:'@esbuild/aix-ppc64': 0.25.4@@ -10532,12 +10734,33 @@ snapshots:cross-spawn: 7.0.6signal-exit: 4.1.0+ [email protected]: {}++ dependencies:+ asynckit: 0.4.0+ combined-stream: 1.0.8+ es-set-tostringtag: 2.1.0+ hasown: 2.0.2+ mime-types: 2.1.35++ dependencies:+ node-domexception: 1.0.0+ web-streams-polyfill: 4.0.0-beta.3+dependencies:fetch-blob: 3.2.0+ dependencies:+ motion-dom: 12.23.12+ motion-utils: 12.23.6+ tslib: 2.8.1+@@ -10684,12 +10907,18 @@ snapshots:+ dependencies:+ has-symbols: 1.1.0+dependencies:function-bind: 1.1.2+ [email protected]: {}+@@ -10717,6 +10946,10 @@ snapshots:+ dependencies:+ ms: 2.1.3+@@ -11151,8 +11384,14 @@ snapshots:braces: 3.0.3picomatch: 2.3.1+ [email protected]: {}++ dependencies:+ mime-db: 1.52.0+dependencies:mime-db: 1.54.0@@ -11231,6 +11470,24 @@ snapshots:ast-module-types: 6.0.1node-source-walk: 7.0.1+ dependencies:+ motion-utils: 12.23.6++ [email protected]: {}++ [email protected](@vueuse/[email protected]([email protected]([email protected])))([email protected]([email protected])):+ dependencies:+ '@vueuse/core': 13.7.0([email protected]([email protected]))+ framer-motion: 12.23.12+ hey-listen: 1.0.8+ motion-dom: 12.23.12+ vue: 3.5.19([email protected])+ transitivePeerDependencies:+ - '@emotion/is-prop-valid'+ - react+ - react-dom+@@ -11259,6 +11516,12 @@ snapshots:p-wait-for: 5.0.2qs: 6.14.0+ dependencies:+ consola: 3.4.2+ mlly: 1.7.4+ pkg-types: 2.3.0+[email protected](@netlify/[email protected]):dependencies:'@cloudflare/kv-asset-handler': 0.4.0@@ -12663,10 +12926,11 @@ snapshots:magic-string: 0.30.17unplugin: 2.3.8+ [email protected]: {}+- optional: true+ [email protected]: {}@@ -13004,7 +13268,7 @@ snapshots:'@vitest/snapshot': 3.2.4'@vitest/spy': 3.2.4'@vitest/utils': 3.2.4- chai: 5.3.1+ chai: 5.3.3debug: 4.4.1expect-type: 1.2.2magic-string: 0.30.18@@ -13079,6 +13343,8 @@ snapshots:+ [email protected]: {}+@@ -13132,7 +13398,7 @@ snapshots:'@cloudflare/workerd-linux-arm64': 1.20250816.0'@cloudflare/workerd-windows-64': 1.20250816.0+ [email protected](@cloudflare/[email protected]):dependencies:'@cloudflare/kv-asset-handler': 0.4.0'@cloudflare/unenv-preset': 2.6.2([email protected])([email protected])@@ -13143,6 +13409,7 @@ snapshots:unenv: 2.0.0-rc.19workerd: 1.20250816.0optionalDependencies:+ '@cloudflare/workers-types': 4.20250823.0fsevents: 2.3.3transitivePeerDependencies:- bufferutildiff --git a/server/api/photos/[key].get.ts b/server/api/photos/[key].get.tsnew file mode 100644index 00000000..0e1bd003--- /dev/null+++ b/server/api/photos/[key].get.ts@@ -0,0 +1,14 @@+export default eventHandler(async (event) => {+ const { storageProvider } = useStorageManager(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' })+ }+ return photo+})diff --git a/server/api/photos/index.get.ts b/server/api/photos/index.get.tsnew file mode 100644index 00000000..b7823571--- /dev/null+++ b/server/api/photos/index.get.ts@@ -0,0 +1,7 @@+import { useStorageManager } from '~~/server/utils/useStorageManager'++export default eventHandler(async (event) => {+ const { storageProvider } = useStorageManager(event)+ const photos = await storageProvider.listAll()+ return photos+})diff --git a/server/api/photos/url/[key].ts b/server/api/photos/url/[key].tsnew file mode 100644index 00000000..f5628070--- /dev/null+++ b/server/api/photos/url/[key].ts@@ -0,0 +1,12 @@+export default eventHandler(async (event) => {+ const { storageProvider } = useStorageManager(event)+ const key = getRouterParam(event, 'key')++ if (!key) {+ throw createError({ statusCode: 400, statusMessage: 'Invalid key' })+ }++ const url = storageProvider.getPublicUrl(decodeURIComponent(key))++ return { url }+})diff --git a/server/plugins/storage.ts b/server/plugins/storage.tsnew file mode 100644index 00000000..fcef16b0--- /dev/null+++ b/server/plugins/storage.ts@@ -0,0 +1,33 @@+import {+ S3StorageProvider,+ StorageConfig,+ StorageManager,+} from '../services/storage'++export default nitroPlugin(async (nitroApp) => {+ const config = useRuntimeConfig()++ const devConfigs: Record<'s3' | 'r2', StorageConfig> = {+ s3: {+ provider: (config.STORAGE_PROVIDER as StorageConfig['provider']) || 's3',+ bucket: config.PROVIDER_S3_BUCKET,+ region: config.PROVIDER_S3_REGION,+ endpoint: config.PROVIDER_S3_ENDPOINT,+ prefix: config.PROVIDER_S3_PREFIX,+ cdnUrl: config.PROVIDER_S3_CDN_URL,+ accessKeyId: config.PROVIDER_S3_ACCESS_KEY_ID,+ secretAccessKey: config.PROVIDER_S3_SECRET_ACCESS_KEY,+ },+ r2: {+ provider: 'hub-r2',+ prefix: 'photos/',+ maxKeys: 100,+ },+ }++ const storageManager = new StorageManager(devConfigs.r2, logger.storage)++ nitroApp.hooks.hook('request', (event) => {+ event.context.storage = storageManager+ })+})diff --git a/server/services/storage/index.ts b/server/services/storage/index.tsnew file mode 100644index 00000000..2e13e301--- /dev/null+++ b/server/services/storage/index.ts@@ -0,0 +1,7 @@+export { StorageProvider, StorageConfig, StorageObject } from './interfaces'++export { StorageProviderFactory, StorageManager } from './manager'++export { S3StorageProvider } from './providers/s3'+export { HubR2StorageProvider } from './providers/hub-r2'+export { GitHubStorageProvider } from './providers/github'diff --git a/server/services/storage/interfaces.ts b/server/services/storage/interfaces.tsnew file mode 100644index 00000000..417eb4d3--- /dev/null+++ b/server/services/storage/interfaces.ts@@ -0,0 +1,52 @@+export interface StorageObject {+ key: string+ size?: number+ etag?: string+ lastModified?: Date+}++export type S3StorageConfig = {+ provider: 's3'+ bucket?: string+ region?: string+ endpoint?: string+ prefix?: string+ cdnUrl?: string+ accessKeyId?: string+ secretAccessKey?: string+ maxKeys?: number+}++export type HubR2StorageConfig = {+ provider: 'hub-r2'+ prefix?: string+ maxKeys?: number+ cdnUrl?: string+}++export type GitHubStorageConfig = {+ provider: 'github'+ owner?: string+ repository?: string+ branch?: string+ path?: string+ token?: string+}++export type StorageConfig = S3StorageConfig | HubR2StorageConfig | GitHubStorageConfig++export interface UploadOptions {+ contentType?: string+ metadata?: Record<string, string>+ encryption?: boolean+ ttl?: number+}++export interface StorageProvider {+ create(key: string, fileBuffer: Buffer): Promise<StorageObject>+ delete(key: string): Promise<void>+ get(key: string): Promise<Buffer | null>+ getPublicUrl(key: string): string+ listAll(): Promise<StorageObject[]>+ listImages(): Promise<StorageObject[]>+}diff --git a/server/services/storage/manager.ts b/server/services/storage/manager.tsnew file mode 100644index 00000000..50e902c9--- /dev/null+++ b/server/services/storage/manager.ts@@ -0,0 +1,44 @@+import { S3StorageProvider, StorageConfig, StorageProvider } from '.'+import type { Logger } from '../../utils/logger'+import { HubR2StorageProvider } from './providers/hub-r2'++export class StorageProviderFactory {+ static createProvider(+ config: StorageConfig,+ logger?: Logger['storage'],+ ): StorageProvider {+ switch (config.provider) {+ case 's3':+ return new S3StorageProvider(config, logger)+ case 'hub-r2':+ return new HubR2StorageProvider(config, logger)+ case 'github':+ // TODO: Implement GitHub storage provider+ throw new Error('GitHub storage provider not implemented yet')+ default:+ throw new Error(`Unknown storage provider`)+ }+ }+}++export class StorageManager {+ private provider: StorageProvider++ constructor(config: StorageConfig, logger?: Logger['storage']) {+ logger?.info(`Creating storage provider: ${config.provider}`)+ this.provider = StorageProviderFactory.createProvider(config, logger)+ }++ registerProvider(config: StorageConfig, logger?: Logger['storage']) {+ logger?.info(`Registering storage provider: ${config.provider}`)+ this.provider = StorageProviderFactory.createProvider(config, logger)+ }++ getProvider<T extends StorageProvider>() {+ if (!this.provider) {+ throw new Error(`Storage provider not registered`)+ }++ return this.provider as T+ }+}diff --git a/server/services/storage/providers/github.ts b/server/services/storage/providers/github.tsnew file mode 100644index 00000000..0ab610ac--- /dev/null+++ b/server/services/storage/providers/github.ts@@ -0,0 +1,22 @@+import { StorageObject, StorageProvider } from '../interfaces'++export class GitHubStorageProvider implements StorageProvider {+ create(key: string, data: Buffer): Promise<StorageObject> {+ throw new Error('Method not implemented.')+ }+ delete(key: string): Promise<void> {+ throw new Error('Method not implemented.')+ }+ get(key: string): Promise<Buffer | null> {+ throw new Error('Method not implemented.')+ }+ getPublicUrl(key: string): string {+ throw new Error('Method not implemented.')+ }+ listAll(): Promise<StorageObject[]> {+ throw new Error('Method not implemented.')+ }+ listImages(): Promise<StorageObject[]> {+ throw new Error('Method not implemented.')+ }+}diff --git a/server/services/storage/providers/hub-r2.ts b/server/services/storage/providers/hub-r2.tsnew file mode 100644index 00000000..caabd6aa--- /dev/null+++ b/server/services/storage/providers/hub-r2.ts@@ -0,0 +1,79 @@+import { BlobObject } from '@nuxthub/core'+import {+ HubR2StorageConfig,+ StorageObject,+ StorageProvider,+} from '../interfaces'++const convertToStorageObject = (blob: BlobObject): StorageObject => {+ return {+ key: blob.pathname,+ size: blob.size,+ lastModified: blob.uploadedAt,+ etag: blob.httpEtag,+ }+}++export class HubR2StorageProvider implements StorageProvider {+ private config: HubR2StorageConfig+ private logger?: Logger['storage']++ constructor(config: HubR2StorageConfig, logger?: Logger['storage']) {+ this.config = config+ this.logger = logger+ }++ async create(key: string, fileBuffer: Buffer): Promise<StorageObject> {+ const file = new File([new Uint8Array(fileBuffer)], key)++ if (!file || !file.size) {+ throw new Error('Invalid file')+ }++ ensureBlob(file, {+ maxSize: '128MB',+ types: ['image'],+ })++ const blob = await hubBlob().put(key, file, {+ prefix: this.config.prefix,+ })++ return convertToStorageObject(blob)+ }++ async delete(key: string): Promise<void> {+ return await hubBlob().del(key)+ }++ async get(key: string): Promise<Buffer | null> {+ const blob = await hubBlob().get(key)+ if (!blob) {+ return null+ }+ const arrayBuffer = await blob.arrayBuffer()+ return Buffer.from(arrayBuffer)+ }++ getPublicUrl(key: string): string {+ const { cdnUrl } = this.config++ if (cdnUrl) {+ return `${cdnUrl.replace(/\/+$/, '')}/${key.replace(/^\/+/, '')}`+ }++ return key+ }++ async listAll(): Promise<StorageObject[]> {+ const { blobs } = await hubBlob().list({+ prefix: this.config.prefix,+ limit: this.config.maxKeys,+ })+ return blobs.map(convertToStorageObject)+ }++ listImages(): Promise<StorageObject[]> {+ throw new Error('Method not implemented.')+ }+}diff --git a/server/services/storage/providers/s3.ts b/server/services/storage/providers/s3.tsnew file mode 100644index 00000000..875e1052--- /dev/null+++ b/server/services/storage/providers/s3.ts@@ -0,0 +1,152 @@+import {+ _Object,+ GetObjectCommand,+ ListObjectsCommand,+ S3Client,+ S3ClientConfig,+} from '@aws-sdk/client-s3'+import {+ S3StorageConfig,+ StorageObject,+ StorageProvider,+ UploadOptions,+} from '../interfaces'++const createClient = (config: S3StorageConfig): S3Client => {+ if (config.provider !== 's3') {+ throw new Error('Invalid provider for S3 client creation')+ }++ const { accessKeyId, secretAccessKey, region, endpoint } = config+ if (!accessKeyId || !secretAccessKey) {+ throw new Error('Missing required accessKeyId or secretAccessKey')+ }++ const clientConfig: S3ClientConfig = {+ endpoint,+ region,+ responseChecksumValidation: 'WHEN_REQUIRED',+ requestChecksumCalculation: 'WHEN_REQUIRED',+ credentials: {+ accessKeyId,+ secretAccessKey,+ },+ }++ return new S3Client(clientConfig)+}++const convertToStorageObject = (s3object: _Object): StorageObject => {+ return {+ key: s3object.Key || '',+ size: s3object.Size,+ lastModified: s3object.LastModified,+ etag: s3object.ETag,+ }+}++export class S3StorageProvider implements StorageProvider {+ private config: S3StorageConfig+ private logger?: Logger['storage']+ private client: S3Client++ constructor(config: S3StorageConfig, logger?: Logger['storage']) {+ this.config = config+ this.logger = logger+ this.client = createClient(config)+ }++ create(key: string, data: Buffer): Promise<StorageObject> {+ throw new Error('Method not implemented.')+ }++ delete(key: string): Promise<void> {+ throw new Error('Method not implemented.')+ }++ async get(key: string): Promise<Buffer | null> {+ try {+ const cmd = new GetObjectCommand({+ Bucket: this.config.bucket,+ Key: key,+ })++ const resp = await this.client.send(cmd)++ if (!resp.Body) {+ return null+ }++ if (resp.Body instanceof Buffer) {+ return resp.Body+ }++ const chunks: Uint8Array[] = []+ const stream = resp.Body as NodeJS.ReadableStream++ return new Promise<Buffer>((resolve, reject) => {+ stream.on('data', (chunk: Uint8Array) => {+ chunks.push(chunk)+ })++ stream.on('end', () => {+ resolve(Buffer.concat(chunks))+ })++ stream.on('error', (err) => {+ reject(err)+ })+ })+ } catch (_err) {+ return null+ }+ }++ getPublicUrl(key: string): string {+ const { cdnUrl, bucket, region, endpoint } = this.config++ if (cdnUrl) {+ return `${cdnUrl}/${key}`+ }++ if (!endpoint) {+ return `https://${bucket}.s3.${region}.amazonaws.com/${key}`+ } else if (endpoint.includes('amazonaws.com')) {+ return `https://${bucket}.s3.${region}.amazonaws.com/${key}`+ }++ return `${endpoint.replace(/\/+$/, '')}/${key}`+ }++ async getPresignedUploadUrl(+ key: string,+ expiresIn?: number,+ options?: UploadOptions,+ ): Promise<{ url: string }> {+ throw new Error('Method not implemented.')+ }++ async listAll(): Promise<StorageObject[]> {+ const cmd = new ListObjectsCommand({+ Bucket: this.config.bucket,+ Prefix: this.config.prefix,+ MaxKeys: this.config.maxKeys,+ })++ const resp = await this.client.send(cmd)+ this.logger?.log(resp.Contents?.map(convertToStorageObject))+ return resp.Contents?.map(convertToStorageObject) || []+ }++ async listImages(): Promise<StorageObject[]> {+ const cmd = new ListObjectsCommand({+ Bucket: this.config.bucket,+ Prefix: this.config.prefix,+ MaxKeys: this.config.maxKeys,+ })++ const resp = await this.client.send(cmd)+ // TODO: filter supported image format+ return resp.Contents?.map(convertToStorageObject) || []+ }+}diff --git a/server/utils/logger.ts b/server/utils/logger.tsnew file mode 100644index 00000000..392bc80b--- /dev/null+++ b/server/utils/logger.ts@@ -0,0 +1,19 @@+import { createConsola } from 'consola'++const mConsola = createConsola({+ formatOptions: {+ date: true,+ colors: true,+ compact: false,+ },+})++export const logger = {+ chrono: mConsola.withTag('CHRONO'),+ storage: mConsola.withTag('STORAGE'),+ fs: mConsola.withTag('FS'),+ dynamic: (id: string) => mConsola.withTag(id.toUpperCase()),+}++export type Logger = typeof logger+export type DynamicLogger = typeof logger.dynamicdiff --git a/server/utils/useStorageManager.ts b/server/utils/useStorageManager.tsnew file mode 100644index 00000000..64acf8bf--- /dev/null+++ b/server/utils/useStorageManager.ts@@ -0,0 +1,11 @@+import { H3Event, EventHandlerRequest } from 'h3'+import { StorageProvider } from '../services/storage'++export const useStorageManager = (event: H3Event<EventHandlerRequest>) => {+ const storageProvider =+ event.context?.storage?.getProvider() as StorageProvider+ if (!storageProvider) {+ throw new Error('Storage provider not found')+ }+ return { storageProvider }+}diff --git a/shared/types/config.ts b/shared/types/config.tsnew file mode 100644index 00000000..2a142ffc--- /dev/null+++ b/shared/types/config.ts@@ -0,0 +1,5 @@+import type { StorageConfig } from '../../server/services/storage'++export interface ChronoConfig {+ storage: StorageConfig+}