mirror of
https://github.com/Afilmory/afilmory
synced 2026-02-01 22:48:17 +00:00
@@ -38,8 +38,10 @@
|
||||
"consola": "3.4.2",
|
||||
"dotenv": "16.5.0",
|
||||
"es-toolkit": "1.39.3",
|
||||
"foxact": "0.2.46",
|
||||
"exif-reader": "2.0.2",
|
||||
"foxact": "0.2.49",
|
||||
"fuji-recipes": "1.0.2",
|
||||
"heic-to": "1.1.13",
|
||||
"immer": "10.1.1",
|
||||
"jotai": "2.12.5",
|
||||
"masonic": "4.1.0",
|
||||
@@ -90,4 +92,4 @@
|
||||
"tailwindcss-uikit-colors": "1.0.0-alpha.1",
|
||||
"vite-plugin-html": "3.2.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,4 +56,4 @@
|
||||
"eslint --fix"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
".": "./src/index.ts",
|
||||
"./*": "./src/*"
|
||||
},
|
||||
"scripts": {
|
||||
"cli": "tsx src/cli.ts"
|
||||
@@ -20,4 +21,4 @@
|
||||
"heic-to": "1.1.13",
|
||||
"sharp": "0.34.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,18 +1,13 @@
|
||||
import fs from 'node:fs/promises'
|
||||
import path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
|
||||
import { workdir } from '@photo-gallery/builder/path.js'
|
||||
import sharp from 'sharp'
|
||||
|
||||
import { workdir } from '~/path.js'
|
||||
|
||||
import type { Logger } from '../logger/index.js'
|
||||
import type { ThumbnailResult } from '../types/photo.js'
|
||||
import { generateBlurhash } from './blurhash.js'
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url)
|
||||
const __dirname = path.dirname(__filename)
|
||||
|
||||
// 检查缩略图是否存在
|
||||
export async function thumbnailExists(photoId: string): Promise<boolean> {
|
||||
try {
|
||||
|
||||
@@ -2,8 +2,7 @@ import fs from 'node:fs/promises'
|
||||
import path from 'node:path'
|
||||
|
||||
import type { _Object } from '@aws-sdk/client-s3'
|
||||
|
||||
import { workdir } from '~/path.js'
|
||||
import { workdir } from '@photo-gallery/builder/path.js'
|
||||
|
||||
import type { Logger } from '../logger/index.js'
|
||||
import type { PhotoManifestItem } from '../types/photo.js'
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import path from 'node:path'
|
||||
|
||||
import type { _Object } from '@aws-sdk/client-s3'
|
||||
import { workdir } from '@photo-gallery/builder/path.js'
|
||||
import type { Exif } from 'exif-reader'
|
||||
import sharp from 'sharp'
|
||||
|
||||
import { workdir } from '~/path.js'
|
||||
|
||||
import { HEIC_FORMATS } from '../constants/index.js'
|
||||
import { extractExifData } from '../image/exif.js'
|
||||
import {
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"noEmit": true,
|
||||
"jsx": "preserve",
|
||||
"paths": {
|
||||
"~/*": [
|
||||
"@photo-gallery/builder/*": [
|
||||
"./src/*"
|
||||
],
|
||||
"@pkg": [
|
||||
|
||||
16
pnpm-lock.yaml
generated
16
pnpm-lock.yaml
generated
@@ -172,12 +172,18 @@ importers:
|
||||
es-toolkit:
|
||||
specifier: 1.39.3
|
||||
version: 1.39.3
|
||||
exif-reader:
|
||||
specifier: 2.0.2
|
||||
version: 2.0.2
|
||||
foxact:
|
||||
specifier: 0.2.46
|
||||
version: 0.2.46(react@19.1.0)
|
||||
specifier: 0.2.49
|
||||
version: 0.2.49(react@19.1.0)
|
||||
fuji-recipes:
|
||||
specifier: 1.0.2
|
||||
version: 1.0.2
|
||||
heic-to:
|
||||
specifier: 1.1.13
|
||||
version: 1.1.13
|
||||
immer:
|
||||
specifier: 10.1.1
|
||||
version: 10.1.1
|
||||
@@ -4305,8 +4311,8 @@ packages:
|
||||
resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==}
|
||||
engines: {node: '>=14'}
|
||||
|
||||
foxact@0.2.46:
|
||||
resolution: {integrity: sha512-HgPDumCL8/kkLQ+zd9B9Z8uOnjkLzLLimO3u/W5ApRP7aC6PwNM651x1ueukoJLXooH82COF8y1iEJ79He2ftA==}
|
||||
foxact@0.2.49:
|
||||
resolution: {integrity: sha512-9Pbu4IbkaNqtS/H4887/QWegclMpBn54mzbPp3t1mg0iJuB83jpQGBY2fshal50NmchlAFIT/GSWBFsa0YI31Q==}
|
||||
peerDependencies:
|
||||
react: '*'
|
||||
peerDependenciesMeta:
|
||||
@@ -11011,7 +11017,7 @@ snapshots:
|
||||
cross-spawn: 7.0.6
|
||||
signal-exit: 4.1.0
|
||||
|
||||
foxact@0.2.46(react@19.1.0):
|
||||
foxact@0.2.49(react@19.1.0):
|
||||
dependencies:
|
||||
client-only: 0.0.1
|
||||
server-only: 0.0.1
|
||||
|
||||
Reference in New Issue
Block a user