Use data directory to save images

This commit is contained in:
DerTyp7
2025-10-09 14:32:05 +02:00
parent 67e986ab07
commit 7350cec32c
8 changed files with 60 additions and 11 deletions
+4
View File
@@ -23,6 +23,10 @@ export async function getImageData(): Promise<ImageMeta[]> {
}
}
export async function getImageDataById(id: string): Promise<ImageMeta | undefined> {
return (await getImageData()).find((image) => image.id === id);
}
export function stringToTags(string: string): string[] {
return string
? string