1
0
Fork 0
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:
Hayden 2022-05-01 12:45:50 -08:00 committed by GitHub
parent 67178f9b74
commit d6e2b4ab85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
60 changed files with 478 additions and 172 deletions

View file

@ -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;
}

View file

@ -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;
}

View file

@ -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;

View file

@ -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;
}

View file

@ -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;

View file

@ -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;
}