Add products
This commit is contained in:
@@ -19,8 +19,8 @@ export const CATEGORY_LABELS = {
|
||||
/**
|
||||
* @typedef {{ kcal: number, protein: number, fat: number, carbs: number }} NutritionPer100
|
||||
* @typedef {{ amount: number, label?: string }} PurchasePack
|
||||
* @typedef {{ id: string, name: string, category: keyof typeof CATEGORY_LABELS, pantryUnit: 'g'|'ml'|'szt', purchasePack?: PurchasePack, nutritionPer100g?: NutritionPer100 }} IngredientDef
|
||||
* @typedef {{ id: string, ingredientId: string, name: string, brand?: string, packSize: number, packLabel?: string, nutritionPer100g: NutritionPer100 }} ProductDef
|
||||
* @typedef {{ id: string, name: string, category: keyof typeof CATEGORY_LABELS, pantryUnit: 'g'|'ml'|'szt', purchasePack?: PurchasePack, nutritionPer100g?: NutritionPer100, image?: string }} IngredientDef
|
||||
* @typedef {{ id: string, ingredientId: string, name: string, brand?: string, packSize: number, packLabel?: string, nutritionPer100g: NutritionPer100, image?: string }} ProductDef
|
||||
*/
|
||||
|
||||
/** @type {Record<string, IngredientDef>} */
|
||||
@@ -38,6 +38,7 @@ export const INGREDIENTS = {
|
||||
/* ── Nabiał ───────────────────────────────────────── */
|
||||
jajko: {
|
||||
id: 'jajko',
|
||||
image: 'images/ingredients/jajko.jpg',
|
||||
name: 'Jajka',
|
||||
category: 'nabial',
|
||||
pantryUnit: 'szt',
|
||||
@@ -103,6 +104,7 @@ export const INGREDIENTS = {
|
||||
},
|
||||
losos_wedzony: {
|
||||
id: 'losos_wedzony',
|
||||
image: 'images/ingredients/losos_wedzony.jpg',
|
||||
name: 'Łosoś wędzony',
|
||||
category: 'mieso_ryby',
|
||||
pantryUnit: 'g',
|
||||
@@ -112,6 +114,7 @@ export const INGREDIENTS = {
|
||||
/* ── Warzywa ──────────────────────────────────────── */
|
||||
pomidor: {
|
||||
id: 'pomidor',
|
||||
image: 'images/ingredients/pomidor.jpg',
|
||||
name: 'Pomidor',
|
||||
category: 'warzywa',
|
||||
pantryUnit: 'szt',
|
||||
@@ -120,6 +123,7 @@ export const INGREDIENTS = {
|
||||
},
|
||||
pomidorki_koktajlowe: {
|
||||
id: 'pomidorki_koktajlowe',
|
||||
image: 'images/ingredients/pomidorki_koktajlowe.jpg',
|
||||
name: 'Pomidorki koktajlowe',
|
||||
category: 'warzywa',
|
||||
pantryUnit: 'g',
|
||||
@@ -128,6 +132,7 @@ export const INGREDIENTS = {
|
||||
},
|
||||
papryka_czerwona: {
|
||||
id: 'papryka_czerwona',
|
||||
image: 'images/ingredients/papryka_czerwona.jpg',
|
||||
name: 'Papryka czerwona',
|
||||
category: 'warzywa',
|
||||
pantryUnit: 'szt',
|
||||
@@ -136,6 +141,7 @@ export const INGREDIENTS = {
|
||||
},
|
||||
ogorek: {
|
||||
id: 'ogorek',
|
||||
image: 'images/ingredients/ogorek.jpg',
|
||||
name: 'Ogórek',
|
||||
category: 'warzywa',
|
||||
pantryUnit: 'szt',
|
||||
@@ -144,6 +150,7 @@ export const INGREDIENTS = {
|
||||
},
|
||||
czosnek: {
|
||||
id: 'czosnek',
|
||||
image: 'images/ingredients/czosnek.jpg',
|
||||
name: 'Czosnek',
|
||||
category: 'warzywa',
|
||||
pantryUnit: 'szt',
|
||||
@@ -160,6 +167,7 @@ export const INGREDIENTS = {
|
||||
/* ── Owoce ────────────────────────────────────────── */
|
||||
truskawki: {
|
||||
id: 'truskawki',
|
||||
image: 'images/ingredients/truskawki.jpg',
|
||||
name: 'Truskawki',
|
||||
category: 'owoce',
|
||||
pantryUnit: 'g',
|
||||
@@ -167,6 +175,7 @@ export const INGREDIENTS = {
|
||||
},
|
||||
borowki_amerykanskie: {
|
||||
id: 'borowki_amerykanskie',
|
||||
image: 'images/ingredients/borowki_amerykanskie.jpg',
|
||||
name: 'Borówki amerykańskie',
|
||||
category: 'owoce',
|
||||
pantryUnit: 'g',
|
||||
@@ -174,6 +183,7 @@ export const INGREDIENTS = {
|
||||
},
|
||||
banany: {
|
||||
id: 'banany',
|
||||
image: 'images/ingredients/banany.jpg',
|
||||
name: 'Banany',
|
||||
category: 'owoce',
|
||||
pantryUnit: 'g',
|
||||
@@ -181,6 +191,7 @@ export const INGREDIENTS = {
|
||||
},
|
||||
jagody: {
|
||||
id: 'jagody',
|
||||
image: 'images/ingredients/jagody.jpg',
|
||||
name: 'Jagody',
|
||||
category: 'owoce',
|
||||
pantryUnit: 'g',
|
||||
@@ -196,6 +207,7 @@ export const INGREDIENTS = {
|
||||
/* ── Suche i kasze ────────────────────────────────── */
|
||||
makaron_suchy: {
|
||||
id: 'makaron_suchy',
|
||||
image: 'images/ingredients/makaron_suchy.jpg',
|
||||
name: 'Makaron',
|
||||
category: 'suche',
|
||||
pantryUnit: 'g',
|
||||
@@ -231,6 +243,7 @@ export const INGREDIENTS = {
|
||||
},
|
||||
migdaly: {
|
||||
id: 'migdaly',
|
||||
image: 'images/ingredients/migdaly.jpg',
|
||||
name: 'Migdały',
|
||||
category: 'suche',
|
||||
pantryUnit: 'g',
|
||||
@@ -289,6 +302,7 @@ export const INGREDIENTS = {
|
||||
},
|
||||
oliwa: {
|
||||
id: 'oliwa',
|
||||
image: 'images/ingredients/oliwa.jpg',
|
||||
name: 'Oliwa z oliwek',
|
||||
category: 'inne',
|
||||
pantryUnit: 'ml',
|
||||
@@ -296,6 +310,7 @@ export const INGREDIENTS = {
|
||||
},
|
||||
hummus: {
|
||||
id: 'hummus',
|
||||
image: 'images/ingredients/hummus.jpg',
|
||||
name: 'Hummus',
|
||||
category: 'inne',
|
||||
pantryUnit: 'g',
|
||||
|
||||
Reference in New Issue
Block a user