mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 07:39:41 +02:00
Feature/user seedable foods (#1176)
* remove odd ingredients * UI Elements for food * update translated percentage * spek -> speck * generate types * seeder api endpoints + tests * implement foods seeder UI * localize some food strings
This commit is contained in:
parent
67178f9b74
commit
d6e2b4ab85
60 changed files with 478 additions and 172 deletions
|
@ -103,13 +103,11 @@ export interface RecipeSummary {
|
|||
}
|
||||
export interface RecipeCategory {
|
||||
id?: string;
|
||||
groupId: string;
|
||||
name: string;
|
||||
slug: string;
|
||||
}
|
||||
export interface RecipeTag {
|
||||
id?: string;
|
||||
groupId: string;
|
||||
name: string;
|
||||
slug: string;
|
||||
}
|
||||
|
|
|
@ -89,13 +89,11 @@ export interface RecipeSummary {
|
|||
}
|
||||
export interface RecipeCategory {
|
||||
id?: string;
|
||||
groupId: string;
|
||||
name: string;
|
||||
slug: string;
|
||||
}
|
||||
export interface RecipeTag {
|
||||
id?: string;
|
||||
groupId: string;
|
||||
name: string;
|
||||
slug: string;
|
||||
}
|
||||
|
|
|
@ -258,13 +258,11 @@ export interface RecipeSummary {
|
|||
}
|
||||
export interface RecipeCategory {
|
||||
id?: string;
|
||||
groupId: string;
|
||||
name: string;
|
||||
slug: string;
|
||||
}
|
||||
export interface RecipeTag {
|
||||
id?: string;
|
||||
groupId: string;
|
||||
name: string;
|
||||
slug: string;
|
||||
}
|
||||
|
@ -307,6 +305,9 @@ export interface SaveWebhook {
|
|||
time?: string;
|
||||
groupId: string;
|
||||
}
|
||||
export interface SeederConfig {
|
||||
locale: string;
|
||||
}
|
||||
export interface SetPermissions {
|
||||
userId: string;
|
||||
canManage?: boolean;
|
||||
|
|
|
@ -119,13 +119,11 @@ export interface RecipeSummary {
|
|||
}
|
||||
export interface RecipeCategory {
|
||||
id?: string;
|
||||
groupId: string;
|
||||
name: string;
|
||||
slug: string;
|
||||
}
|
||||
export interface RecipeTag {
|
||||
id?: string;
|
||||
groupId: string;
|
||||
name: string;
|
||||
slug: string;
|
||||
}
|
||||
|
|
|
@ -42,6 +42,7 @@ export interface CategoryOut {
|
|||
name: string;
|
||||
id: string;
|
||||
slug: string;
|
||||
groupId: string;
|
||||
}
|
||||
export interface CategorySave {
|
||||
name: string;
|
||||
|
@ -68,19 +69,14 @@ export interface CreateRecipeBulk {
|
|||
}
|
||||
export interface RecipeCategory {
|
||||
id?: string;
|
||||
groupId: string;
|
||||
name: string;
|
||||
slug: string;
|
||||
}
|
||||
export interface RecipeTag {
|
||||
id?: string;
|
||||
groupId: string;
|
||||
name: string;
|
||||
slug: string;
|
||||
}
|
||||
export interface CreateRecipeByUrl {
|
||||
url: string;
|
||||
}
|
||||
export interface CreateRecipeByUrlBulk {
|
||||
imports: CreateRecipeBulk[];
|
||||
}
|
||||
|
@ -115,10 +111,6 @@ export interface MultiPurposeLabelSummary {
|
|||
groupId: string;
|
||||
id: string;
|
||||
}
|
||||
export interface IngredientMerge {
|
||||
fromFood: string;
|
||||
toFood: string;
|
||||
}
|
||||
/**
|
||||
* A list of ingredient references.
|
||||
*/
|
||||
|
@ -140,6 +132,14 @@ export interface IngredientsRequest {
|
|||
parser?: RegisteredParser & string;
|
||||
ingredients: string[];
|
||||
}
|
||||
export interface MergeFood {
|
||||
fromFood: string;
|
||||
toFood: string;
|
||||
}
|
||||
export interface MergeUnit {
|
||||
fromUnit: string;
|
||||
toUnit: string;
|
||||
}
|
||||
export interface Nutrition {
|
||||
calories?: string;
|
||||
fatContent?: string;
|
||||
|
@ -348,6 +348,13 @@ export interface SaveIngredientUnit {
|
|||
abbreviation?: string;
|
||||
groupId: string;
|
||||
}
|
||||
export interface ScrapeRecipe {
|
||||
url: string;
|
||||
includeTags?: boolean;
|
||||
}
|
||||
export interface ScrapeRecipeTest {
|
||||
url: string;
|
||||
}
|
||||
export interface SlugResponse {}
|
||||
export interface TagIn {
|
||||
name: string;
|
||||
|
|
|
@ -132,13 +132,11 @@ export interface RecipeSummary {
|
|||
}
|
||||
export interface RecipeCategory {
|
||||
id?: string;
|
||||
groupId: string;
|
||||
name: string;
|
||||
slug: string;
|
||||
}
|
||||
export interface RecipeTag {
|
||||
id?: string;
|
||||
groupId: string;
|
||||
name: string;
|
||||
slug: string;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue