Replace ingredients images with SVGs
This commit is contained in:
@@ -38,7 +38,6 @@ export const INGREDIENTS = {
|
||||
/* ── Nabiał ───────────────────────────────────────── */
|
||||
jajko: {
|
||||
id: 'jajko',
|
||||
image: 'images/ingredients/jajko.jpg',
|
||||
name: 'Jajka',
|
||||
category: 'nabial',
|
||||
pantryUnit: 'szt',
|
||||
@@ -120,7 +119,6 @@ export const INGREDIENTS = {
|
||||
},
|
||||
losos_wedzony: {
|
||||
id: 'losos_wedzony',
|
||||
image: 'images/ingredients/losos_wedzony.jpg',
|
||||
name: 'Łosoś wędzony',
|
||||
category: 'mieso_ryby',
|
||||
pantryUnit: 'g',
|
||||
@@ -138,7 +136,6 @@ export const INGREDIENTS = {
|
||||
/* ── Warzywa ──────────────────────────────────────── */
|
||||
pomidor: {
|
||||
id: 'pomidor',
|
||||
image: 'images/ingredients/pomidor.jpg',
|
||||
name: 'Pomidor',
|
||||
category: 'warzywa',
|
||||
pantryUnit: 'szt',
|
||||
@@ -147,7 +144,6 @@ export const INGREDIENTS = {
|
||||
},
|
||||
pomidorki_koktajlowe: {
|
||||
id: 'pomidorki_koktajlowe',
|
||||
image: 'images/ingredients/pomidorki_koktajlowe.jpg',
|
||||
name: 'Pomidorki koktajlowe',
|
||||
category: 'warzywa',
|
||||
pantryUnit: 'g',
|
||||
@@ -156,7 +152,6 @@ export const INGREDIENTS = {
|
||||
},
|
||||
papryka_czerwona: {
|
||||
id: 'papryka_czerwona',
|
||||
image: 'images/ingredients/papryka_czerwona.jpg',
|
||||
name: 'Papryka czerwona',
|
||||
category: 'warzywa',
|
||||
pantryUnit: 'szt',
|
||||
@@ -165,7 +160,6 @@ export const INGREDIENTS = {
|
||||
},
|
||||
ogorek: {
|
||||
id: 'ogorek',
|
||||
image: 'images/ingredients/ogorek.jpg',
|
||||
name: 'Ogórek',
|
||||
category: 'warzywa',
|
||||
pantryUnit: 'szt',
|
||||
@@ -174,7 +168,6 @@ export const INGREDIENTS = {
|
||||
},
|
||||
czosnek: {
|
||||
id: 'czosnek',
|
||||
image: 'images/ingredients/czosnek.jpg',
|
||||
name: 'Czosnek',
|
||||
category: 'warzywa',
|
||||
pantryUnit: 'szt',
|
||||
@@ -253,7 +246,6 @@ export const INGREDIENTS = {
|
||||
/* ── Owoce ────────────────────────────────────────── */
|
||||
truskawki: {
|
||||
id: 'truskawki',
|
||||
image: 'images/ingredients/truskawki.jpg',
|
||||
name: 'Truskawki',
|
||||
category: 'owoce',
|
||||
pantryUnit: 'g',
|
||||
@@ -261,7 +253,6 @@ export const INGREDIENTS = {
|
||||
},
|
||||
borowki_amerykanskie: {
|
||||
id: 'borowki_amerykanskie',
|
||||
image: 'images/ingredients/borowki_amerykanskie.jpg',
|
||||
name: 'Borówki amerykańskie',
|
||||
category: 'owoce',
|
||||
pantryUnit: 'g',
|
||||
@@ -269,7 +260,6 @@ export const INGREDIENTS = {
|
||||
},
|
||||
banany: {
|
||||
id: 'banany',
|
||||
image: 'images/ingredients/banany.jpg',
|
||||
name: 'Banany',
|
||||
category: 'owoce',
|
||||
pantryUnit: 'g',
|
||||
@@ -277,7 +267,6 @@ export const INGREDIENTS = {
|
||||
},
|
||||
jagody: {
|
||||
id: 'jagody',
|
||||
image: 'images/ingredients/jagody.jpg',
|
||||
name: 'Jagody',
|
||||
category: 'owoce',
|
||||
pantryUnit: 'g',
|
||||
@@ -301,7 +290,6 @@ export const INGREDIENTS = {
|
||||
/* ── Suche i kasze ────────────────────────────────── */
|
||||
makaron_suchy: {
|
||||
id: 'makaron_suchy',
|
||||
image: 'images/ingredients/makaron_suchy.jpg',
|
||||
name: 'Makaron',
|
||||
category: 'suche',
|
||||
pantryUnit: 'g',
|
||||
@@ -337,7 +325,6 @@ export const INGREDIENTS = {
|
||||
},
|
||||
migdaly: {
|
||||
id: 'migdaly',
|
||||
image: 'images/ingredients/migdaly.jpg',
|
||||
name: 'Migdały',
|
||||
category: 'suche',
|
||||
pantryUnit: 'g',
|
||||
@@ -448,7 +435,6 @@ export const INGREDIENTS = {
|
||||
},
|
||||
oliwa: {
|
||||
id: 'oliwa',
|
||||
image: 'images/ingredients/oliwa.jpg',
|
||||
name: 'Oliwa z oliwek',
|
||||
category: 'inne',
|
||||
pantryUnit: 'ml',
|
||||
@@ -456,7 +442,6 @@ export const INGREDIENTS = {
|
||||
},
|
||||
hummus: {
|
||||
id: 'hummus',
|
||||
image: 'images/ingredients/hummus.jpg',
|
||||
name: 'Hummus',
|
||||
category: 'inne',
|
||||
pantryUnit: 'g',
|
||||
@@ -528,6 +513,10 @@ export const INGREDIENTS = {
|
||||
},
|
||||
};
|
||||
|
||||
for (const [id, def] of Object.entries(INGREDIENTS)) {
|
||||
def.image = `icons/ingredients/${id}.svg`;
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef {{ ingredientId: string, amount: number, unit: string, alternatives?: string[] }} RecipeIngredientDef
|
||||
* @typedef {{ id: string, title: string, minutes: number, thumbLabel: string, image?: string, allowedSlots: string[], tags?: string[], nutritionPerServing: NutritionPer100, ingredients: RecipeIngredientDef[], steps: string[] }} RecipeDef
|
||||
|
||||
Reference in New Issue
Block a user