feat: add thumbhashes to images closes #6

This commit is contained in:
2023-08-11 16:13:20 +02:00
parent 6dd8575b15
commit 0acbbd6905
22 changed files with 489 additions and 51 deletions

View File

@@ -37,6 +37,7 @@ export type Recipe = {
rating?: number;
portion?: number;
author?: string;
thumbnail?: string;
};
};
@@ -186,6 +187,7 @@ export function parseRecipe(original: string, id: string): Recipe {
const crud = createCrud<Recipe>({
prefix: `Recipes/`,
parse: parseRecipe,
hasThumbnails: true,
});
export const getAllRecipes = crud.readAll;