mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 15:49:42 +02:00
feat: add unit abbreviation support (#1332)
* add 'use-abbreviation' db column * type generation * add view and edit elements * check for use_abbreviation to display * fix: alembic version check * test: add use_abbreviation prop tests
This commit is contained in:
parent
592b1de39d
commit
52fbf6b833
13 changed files with 77 additions and 9 deletions
|
@ -133,6 +133,7 @@ export interface IngredientUnit {
|
|||
description?: string;
|
||||
fraction?: boolean;
|
||||
abbreviation?: string;
|
||||
useAbbreviation?: boolean;
|
||||
id: string;
|
||||
}
|
||||
export interface CreateIngredientUnit {
|
||||
|
@ -140,6 +141,7 @@ export interface CreateIngredientUnit {
|
|||
description?: string;
|
||||
fraction?: boolean;
|
||||
abbreviation?: string;
|
||||
useAbbreviation?: boolean;
|
||||
}
|
||||
export interface IngredientFood {
|
||||
name: string;
|
||||
|
|
|
@ -112,6 +112,7 @@ export interface IngredientUnit {
|
|||
description?: string;
|
||||
fraction?: boolean;
|
||||
abbreviation?: string;
|
||||
useAbbreviation?: boolean;
|
||||
id: string;
|
||||
}
|
||||
export interface CreateIngredientUnit {
|
||||
|
@ -119,6 +120,7 @@ export interface CreateIngredientUnit {
|
|||
description?: string;
|
||||
fraction?: boolean;
|
||||
abbreviation?: string;
|
||||
useAbbreviation?: boolean;
|
||||
}
|
||||
export interface IngredientFood {
|
||||
name: string;
|
||||
|
|
|
@ -207,6 +207,7 @@ export interface IngredientUnit {
|
|||
description?: string;
|
||||
fraction?: boolean;
|
||||
abbreviation?: string;
|
||||
useAbbreviation?: boolean;
|
||||
id: string;
|
||||
}
|
||||
export interface ReadGroupPreferences {
|
||||
|
@ -287,6 +288,7 @@ export interface CreateIngredientUnit {
|
|||
description?: string;
|
||||
fraction?: boolean;
|
||||
abbreviation?: string;
|
||||
useAbbreviation?: boolean;
|
||||
}
|
||||
export interface CreateIngredientFood {
|
||||
name: string;
|
||||
|
|
|
@ -148,6 +148,7 @@ export interface IngredientUnit {
|
|||
description?: string;
|
||||
fraction?: boolean;
|
||||
abbreviation?: string;
|
||||
useAbbreviation?: boolean;
|
||||
id: string;
|
||||
}
|
||||
export interface CreateIngredientUnit {
|
||||
|
@ -155,6 +156,7 @@ export interface CreateIngredientUnit {
|
|||
description?: string;
|
||||
fraction?: boolean;
|
||||
abbreviation?: string;
|
||||
useAbbreviation?: boolean;
|
||||
}
|
||||
export interface IngredientFood {
|
||||
name: string;
|
||||
|
|
|
@ -49,6 +49,7 @@ export interface CreateIngredientUnit {
|
|||
description?: string;
|
||||
fraction?: boolean;
|
||||
abbreviation?: string;
|
||||
useAbbreviation?: boolean;
|
||||
}
|
||||
export interface CreateRecipe {
|
||||
name: string;
|
||||
|
@ -117,6 +118,7 @@ export interface IngredientUnit {
|
|||
description?: string;
|
||||
fraction?: boolean;
|
||||
abbreviation?: string;
|
||||
useAbbreviation?: boolean;
|
||||
id: string;
|
||||
}
|
||||
export interface IngredientsRequest {
|
||||
|
@ -340,6 +342,7 @@ export interface SaveIngredientUnit {
|
|||
description?: string;
|
||||
fraction?: boolean;
|
||||
abbreviation?: string;
|
||||
useAbbreviation?: boolean;
|
||||
groupId: string;
|
||||
}
|
||||
export interface ScrapeRecipe {
|
||||
|
|
|
@ -164,6 +164,7 @@ export interface IngredientUnit {
|
|||
description?: string;
|
||||
fraction?: boolean;
|
||||
abbreviation?: string;
|
||||
useAbbreviation?: boolean;
|
||||
id: string;
|
||||
}
|
||||
export interface CreateIngredientUnit {
|
||||
|
@ -171,6 +172,7 @@ export interface CreateIngredientUnit {
|
|||
description?: string;
|
||||
fraction?: boolean;
|
||||
abbreviation?: string;
|
||||
useAbbreviation?: boolean;
|
||||
}
|
||||
export interface IngredientFood {
|
||||
name: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue