Files
lunch/lib/categories.ts
kai 3093dc3897
release / which version (push) Successful in 2s
release / olares chart · sanity (push) Successful in 4s
release / app (push) Successful in 53s
release / tag and release (push) Successful in 2s
Seed: ingredients, starters, store layouts; browser tests (26.11.5) (#6)
2026-11-06 21:30:09 +00:00

39 lines
1.5 KiB
TypeScript

// Kategorien der kanonischen Zutaten. Sie verbinden Zutaten mit den Gängen
// eines Ladens (store_aisles.ingredient_categories) und ordnen die
// Einkaufsliste. Der Schlüssel ist fest; die Bezeichnung kommt aus messages/*.json.
export const CATEGORIES = [
"vegetables", // Gemüse
"fruit", // Obst
"herbs", // frische Kräuter
"bakery", // Brot und Backwaren
"meat", // Fleisch
"poultry", // Geflügel
"sausage", // Wurst und Aufschnitt
"fish", // Fisch und Meeresfrüchte
"dairy", // Milch, Sahne, Joghurt, Butter
"cheese", // Käse
"eggs", // Eier
"chilled", // Kühlregal: Tofu, frische Nudeln, Teige
"frozen", // Tiefkühl
"pasta_rice", // Nudeln, Reis, Getreide, Hülsenfrüchte trocken
"canned", // Konserven und Gläser
"sauces", // Saucen, Senf, Brühe, Würzpasten
"spices", // Gewürze und Salz
"oil_vinegar", // Öl und Essig
"baking", // Mehl, Zucker, Backzutaten
"breakfast", // Müsli, Aufstriche, Honig
"nuts", // Nüsse, Saaten, Trockenobst
"sweets", // Süßes und Snacks
"drinks", // Getränke
] as const;
export type Category = (typeof CATEGORIES)[number];
export const UNITS = ["g", "ml", "piece"] as const;
export type Unit = (typeof UNITS)[number];
// Schlagworte an Gerichten (Konzept: schnell, vegetarisch, Kinderliebling …).
export const TAGS = ["quick", "vegetarian", "vegan", "kids_favorite", "fish", "oven", "one_pot", "soup", "sweet"] as const;
export type Tag = (typeof TAGS)[number];
export const BASES = ["pasta", "rice", "potato", "bread", "grain", "none"] as const;