Initial commit of counter
This commit is contained in:
+227
@@ -0,0 +1,227 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Built-in meal library used by the planner. Values are per serving and are
|
||||
* approximations for planning, not a nutritional database. Log real products
|
||||
* (or your own cooking) for accurate tracking.
|
||||
*/
|
||||
|
||||
const RECIPES = [
|
||||
// Breakfast
|
||||
{
|
||||
id: 'greek-yogurt-bowl', meal: 'breakfast', name: 'Greek yogurt berry bowl',
|
||||
kcal: 380, protein_g: 28, carbs_g: 45, fat_g: 10,
|
||||
tags: ['vegetarian', 'high_protein', 'quick'], prep: 5,
|
||||
ingredients: ['200 g Greek yogurt', '1 cup mixed berries', '30 g granola', '1 tsp honey'],
|
||||
},
|
||||
{
|
||||
id: 'egg-white-omelet', meal: 'breakfast', name: 'Veggie omelet with toast',
|
||||
kcal: 320, protein_g: 27, carbs_g: 28, fat_g: 11,
|
||||
tags: ['vegetarian', 'high_protein', 'quick'], prep: 10,
|
||||
ingredients: ['3 eggs + 2 egg whites', 'Spinach, peppers, onion', '1 slice whole-grain toast'],
|
||||
},
|
||||
{
|
||||
id: 'overnight-oats', meal: 'breakfast', name: 'Overnight oats with chia and banana',
|
||||
kcal: 420, protein_g: 15, carbs_g: 62, fat_g: 13,
|
||||
tags: ['vegetarian', 'quick'], prep: 5,
|
||||
ingredients: ['50 g rolled oats', '200 ml milk', '1 tbsp chia', '1 banana'],
|
||||
},
|
||||
{
|
||||
id: 'tofu-scramble', meal: 'breakfast', name: 'Tofu scramble with spinach',
|
||||
kcal: 350, protein_g: 24, carbs_g: 18, fat_g: 20,
|
||||
tags: ['vegan', 'high_protein'], prep: 12,
|
||||
ingredients: ['200 g firm tofu', 'Spinach', 'Turmeric, nutritional yeast', '1 slice rye bread'],
|
||||
},
|
||||
{
|
||||
id: 'pb-smoothie', meal: 'breakfast', name: 'Peanut butter banana smoothie',
|
||||
kcal: 400, protein_g: 20, carbs_g: 45, fat_g: 16,
|
||||
tags: ['vegan', 'quick'], prep: 5,
|
||||
ingredients: ['1 banana', '2 tbsp peanut butter', '300 ml soy milk', '1 scoop oats'],
|
||||
},
|
||||
{
|
||||
id: 'salmon-bagel', meal: 'breakfast', name: 'Smoked salmon bagel',
|
||||
kcal: 450, protein_g: 25, carbs_g: 50, fat_g: 16,
|
||||
tags: ['quick'], prep: 6,
|
||||
ingredients: ['1 bagel', '60 g smoked salmon', 'Light cream cheese', 'Capers, red onion'],
|
||||
},
|
||||
{
|
||||
id: 'protein-pancakes', meal: 'breakfast', name: 'Protein pancakes with berries',
|
||||
kcal: 430, protein_g: 32, carbs_g: 48, fat_g: 12,
|
||||
tags: ['vegetarian', 'high_protein'], prep: 15,
|
||||
ingredients: ['40 g oat flour', '1 scoop protein powder', '1 egg', 'Blueberries, maple syrup'],
|
||||
},
|
||||
|
||||
// Lunch
|
||||
{
|
||||
id: 'chicken-quinoa-bowl', meal: 'lunch', name: 'Grilled chicken quinoa bowl',
|
||||
kcal: 560, protein_g: 45, carbs_g: 55, fat_g: 16,
|
||||
tags: ['high_protein'], prep: 20,
|
||||
ingredients: ['150 g chicken breast', '1 cup cooked quinoa', 'Roast vegetables', 'Tahini drizzle'],
|
||||
},
|
||||
{
|
||||
id: 'turkey-wrap', meal: 'lunch', name: 'Turkey avocado wrap',
|
||||
kcal: 480, protein_g: 32, carbs_g: 42, fat_g: 20,
|
||||
tags: ['quick'], prep: 8,
|
||||
ingredients: ['1 whole-wheat tortilla', '100 g turkey', '1/2 avocado', 'Lettuce, tomato'],
|
||||
},
|
||||
{
|
||||
id: 'lentil-soup', meal: 'lunch', name: 'Lentil and vegetable soup with a roll',
|
||||
kcal: 420, protein_g: 22, carbs_g: 60, fat_g: 9,
|
||||
tags: ['vegan'], prep: 30,
|
||||
ingredients: ['1 cup lentils', 'Carrot, celery, onion, tomato', 'Vegetable stock', '1 whole-grain roll'],
|
||||
},
|
||||
{
|
||||
id: 'chickpea-salad', meal: 'lunch', name: 'Chickpea salad with feta',
|
||||
kcal: 450, protein_g: 20, carbs_g: 45, fat_g: 20,
|
||||
tags: ['vegetarian', 'quick'], prep: 10,
|
||||
ingredients: ['1 can chickpeas', 'Cucumber, tomato, red onion', '40 g feta', 'Lemon and olive oil'],
|
||||
},
|
||||
{
|
||||
id: 'tuna-pasta', meal: 'lunch', name: 'Tuna pasta salad',
|
||||
kcal: 520, protein_g: 34, carbs_g: 58, fat_g: 16,
|
||||
tags: ['quick'], prep: 15,
|
||||
ingredients: ['80 g dry pasta', '1 can tuna', 'Sweetcorn, peas', 'Light mayo and lemon'],
|
||||
},
|
||||
{
|
||||
id: 'chicken-burrito-bowl', meal: 'lunch', name: 'Chicken burrito bowl',
|
||||
kcal: 620, protein_g: 42, carbs_g: 66, fat_g: 20,
|
||||
tags: ['high_protein'], prep: 20,
|
||||
ingredients: ['150 g chicken', '1 cup rice', 'Black beans', 'Salsa, cheese, lettuce'],
|
||||
},
|
||||
{
|
||||
id: 'hummus-pita', meal: 'lunch', name: 'Hummus and veggie pita',
|
||||
kcal: 440, protein_g: 16, carbs_g: 58, fat_g: 16,
|
||||
tags: ['vegan', 'quick'], prep: 7,
|
||||
ingredients: ['1 whole-wheat pita', '4 tbsp hummus', 'Cucumber, carrot, pepper', 'Olives'],
|
||||
},
|
||||
{
|
||||
id: 'beef-broccoli', meal: 'lunch', name: 'Beef and broccoli rice bowl',
|
||||
kcal: 580, protein_g: 40, carbs_g: 60, fat_g: 18,
|
||||
tags: ['high_protein'], prep: 20,
|
||||
ingredients: ['130 g lean beef', 'Broccoli, onion', 'Soy, ginger, garlic', '1 cup rice'],
|
||||
},
|
||||
|
||||
// Dinner
|
||||
{
|
||||
id: 'baked-salmon', meal: 'dinner', name: 'Baked salmon with potatoes and greens',
|
||||
kcal: 600, protein_g: 42, carbs_g: 45, fat_g: 26,
|
||||
tags: [], prep: 30,
|
||||
ingredients: ['160 g salmon', '250 g potatoes', 'Green beans', 'Lemon and dill'],
|
||||
},
|
||||
{
|
||||
id: 'chicken-stirfry', meal: 'dinner', name: 'Chicken stir-fry with rice',
|
||||
kcal: 560, protein_g: 40, carbs_g: 62, fat_g: 14,
|
||||
tags: ['high_protein', 'quick'], prep: 18,
|
||||
ingredients: ['150 g chicken thigh', 'Mixed stir-fry vegetables', 'Soy, ginger, sesame', '1 cup rice'],
|
||||
},
|
||||
{
|
||||
id: 'black-bean-chili', meal: 'dinner', name: 'Black bean chili with rice',
|
||||
kcal: 520, protein_g: 22, carbs_g: 78, fat_g: 12,
|
||||
tags: ['vegan'], prep: 30,
|
||||
ingredients: ['2 cans black beans', 'Tomatoes, onion, pepper', 'Cumin, chili, smoked paprika', '1 cup rice'],
|
||||
},
|
||||
{
|
||||
id: 'turkey-meatballs', meal: 'dinner', name: 'Turkey meatballs with spaghetti',
|
||||
kcal: 640, protein_g: 40, carbs_g: 72, fat_g: 18,
|
||||
tags: ['high_protein'], prep: 30,
|
||||
ingredients: ['150 g ground turkey', '80 g dry spaghetti', 'Tomato sauce', 'Parmesan, basil'],
|
||||
},
|
||||
{
|
||||
id: 'shrimp-tacos', meal: 'dinner', name: 'Shrimp tacos',
|
||||
kcal: 520, protein_g: 32, carbs_g: 48, fat_g: 20,
|
||||
tags: ['quick'], prep: 15,
|
||||
ingredients: ['150 g shrimp', '2 corn tortillas', 'Cabbage slaw', 'Yogurt-lime sauce'],
|
||||
},
|
||||
{
|
||||
id: 'tofu-curry', meal: 'dinner', name: 'Tofu coconut curry with rice',
|
||||
kcal: 580, protein_g: 22, carbs_g: 64, fat_g: 24,
|
||||
tags: ['vegan'], prep: 25,
|
||||
ingredients: ['200 g tofu', 'Light coconut milk', 'Curry paste, vegetables', '1 cup rice'],
|
||||
},
|
||||
{
|
||||
id: 'steak-sweet-potato', meal: 'dinner', name: 'Steak, sweet potato and broccoli',
|
||||
kcal: 650, protein_g: 45, carbs_g: 45, fat_g: 28,
|
||||
tags: ['high_protein'], prep: 25,
|
||||
ingredients: ['150 g sirloin', '1 large sweet potato', 'Broccoli', 'Butter and garlic'],
|
||||
},
|
||||
{
|
||||
id: 'mushroom-risotto', meal: 'dinner', name: 'Mushroom risotto with peas',
|
||||
kcal: 540, protein_g: 18, carbs_g: 78, fat_g: 16,
|
||||
tags: ['vegetarian'], prep: 35,
|
||||
ingredients: ['80 g arborio rice', 'Mushrooms', 'Peas, parmesan', 'Vegetable stock'],
|
||||
},
|
||||
|
||||
// Snacks
|
||||
{
|
||||
id: 'apple-pb', meal: 'snack', name: 'Apple with peanut butter',
|
||||
kcal: 220, protein_g: 6, carbs_g: 25, fat_g: 11,
|
||||
tags: ['vegan', 'quick'], prep: 2,
|
||||
ingredients: ['1 apple', '1.5 tbsp peanut butter'],
|
||||
},
|
||||
{
|
||||
id: 'yogurt-honey', meal: 'snack', name: 'Greek yogurt with honey',
|
||||
kcal: 160, protein_g: 15, carbs_g: 18, fat_g: 2,
|
||||
tags: ['vegetarian', 'quick', 'high_protein'], prep: 2,
|
||||
ingredients: ['150 g Greek yogurt', '1 tsp honey'],
|
||||
},
|
||||
{
|
||||
id: 'protein-shake', meal: 'snack', name: 'Protein shake',
|
||||
kcal: 180, protein_g: 30, carbs_g: 8, fat_g: 3,
|
||||
tags: ['quick', 'high_protein'], prep: 3,
|
||||
ingredients: ['1 scoop whey or plant protein', '300 ml milk or water'],
|
||||
},
|
||||
{
|
||||
id: 'almonds', meal: 'snack', name: 'Handful of almonds',
|
||||
kcal: 170, protein_g: 6, carbs_g: 6, fat_g: 15,
|
||||
tags: ['vegan', 'quick'], prep: 1,
|
||||
ingredients: ['28 g almonds'],
|
||||
},
|
||||
{
|
||||
id: 'cottage-pineapple', meal: 'snack', name: 'Cottage cheese with pineapple',
|
||||
kcal: 190, protein_g: 20, carbs_g: 18, fat_g: 3,
|
||||
tags: ['vegetarian', 'quick', 'high_protein'], prep: 3,
|
||||
ingredients: ['150 g cottage cheese', '1/2 cup pineapple'],
|
||||
},
|
||||
{
|
||||
id: 'dark-chocolate', meal: 'snack', name: 'Dark chocolate square with tea',
|
||||
kcal: 90, protein_g: 2, carbs_g: 10, fat_g: 6,
|
||||
tags: ['vegetarian', 'quick'], prep: 2,
|
||||
ingredients: ['20 g 85% dark chocolate', '1 cup tea'],
|
||||
},
|
||||
{
|
||||
id: 'rice-cakes-avocado', meal: 'snack', name: 'Rice cakes with avocado',
|
||||
kcal: 160, protein_g: 4, carbs_g: 18, fat_g: 9,
|
||||
tags: ['vegan', 'quick'], prep: 4,
|
||||
ingredients: ['2 rice cakes', '1/2 avocado', 'Chili flakes, salt'],
|
||||
},
|
||||
{
|
||||
id: 'edamame', meal: 'snack', name: 'Salted edamame',
|
||||
kcal: 190, protein_g: 17, carbs_g: 15, fat_g: 8,
|
||||
tags: ['vegan', 'quick', 'high_protein'], prep: 5,
|
||||
ingredients: ['1 cup shelled edamame', 'Sea salt'],
|
||||
},
|
||||
];
|
||||
|
||||
const MET_PRESETS = [
|
||||
{ id: 'walk', label: 'Walking (brisk)', met: 4.3 },
|
||||
{ id: 'run', label: 'Running', met: 9.0 },
|
||||
{ id: 'cycle', label: 'Cycling', met: 7.5 },
|
||||
{ id: 'swim', label: 'Swimming', met: 6.0 },
|
||||
{ id: 'weights', label: 'Strength training', met: 5.0 },
|
||||
{ id: 'hiit', label: 'HIIT', met: 8.0 },
|
||||
{ id: 'yoga', label: 'Yoga', met: 2.5 },
|
||||
{ id: 'hike', label: 'Hiking', met: 6.0 },
|
||||
{ id: 'row', label: 'Rowing machine', met: 7.0 },
|
||||
{ id: 'sport', label: 'Team sport', met: 7.0 },
|
||||
{ id: 'dance', label: 'Dance', met: 5.5 },
|
||||
{ id: 'elliptical', label: 'Elliptical', met: 5.0 },
|
||||
];
|
||||
|
||||
const STYLES = [
|
||||
{ id: 'any', label: 'Anything' },
|
||||
{ id: 'vegetarian', label: 'Vegetarian' },
|
||||
{ id: 'vegan', label: 'Vegan' },
|
||||
{ id: 'high_protein', label: 'High protein' },
|
||||
];
|
||||
|
||||
module.exports = { RECIPES, MET_PRESETS, STYLES };
|
||||
Reference in New Issue
Block a user