feat: add recipes module with CRUD functionality and integrate with meals
- Implemented new recipes page with UI for managing recipes. - Added REST API routes for recipes including create, read, update, and delete operations. - Introduced database schema for recipes and recipe ingredients. - Updated meals to link with recipes, allowing meals to reference specific recipes. - Enhanced validation for recipe-related fields in meals. - Added styles for the recipes page and components.
This commit is contained in:
committed by
Ulas Kalayci
parent
41467a84b6
commit
0b54fe255b
+31
-2
@@ -42,7 +42,8 @@
|
||||
"settings": "الإعدادات",
|
||||
"main": "القائمة الرئيسية",
|
||||
"navigation": "التنقل",
|
||||
"quickActions": "الإجراءات السريعة"
|
||||
"quickActions": "الإجراءات السريعة",
|
||||
"recipes": "Recipes"
|
||||
},
|
||||
"dashboard": {
|
||||
"title": "لوحة التحكم",
|
||||
@@ -242,7 +243,11 @@
|
||||
"loadingIndicator": "جارٍ التحميل…",
|
||||
"recipeUrlLabel": "رابط الوصفة (اختياري)",
|
||||
"recipeUrlPlaceholder": "https://…",
|
||||
"openRecipe": "فتح الوصفة"
|
||||
"openRecipe": "فتح الوصفة",
|
||||
"savedRecipeLabel": "Saved recipe",
|
||||
"savedRecipePlaceholder": "Select recipe",
|
||||
"saveAsRecipe": "Save as recipe",
|
||||
"recipeScaleLabel": "Scale ingredients"
|
||||
},
|
||||
"calendar": {
|
||||
"title": "التقويم",
|
||||
@@ -604,5 +609,29 @@
|
||||
"unitWeeks": "أسابيع",
|
||||
"unitMonth": "شهر",
|
||||
"unitMonths": "أشهر"
|
||||
},
|
||||
"recipes": {
|
||||
"title": "Recipes",
|
||||
"addRecipe": "Add recipe",
|
||||
"editRecipe": "Edit recipe",
|
||||
"emptyTitle": "No recipes yet",
|
||||
"emptyDescription": "Save your favorite recipes and reuse them in meal planning.",
|
||||
"titleLabel": "Title *",
|
||||
"titlePlaceholder": "e.g. Pasta Carbonara",
|
||||
"notesLabel": "Notes",
|
||||
"notesPlaceholder": "Optional...",
|
||||
"urlLabel": "Recipe link",
|
||||
"urlPlaceholder": "https://...",
|
||||
"ingredientsLabel": "Ingredients",
|
||||
"addToMeals": "Add to meal plan",
|
||||
"openLink": "Open recipe link",
|
||||
"deleteConfirm": "Delete recipe \"{{title}}\"?",
|
||||
"created": "Recipe saved.",
|
||||
"updated": "Recipe updated.",
|
||||
"deleted": "Recipe deleted.",
|
||||
"titleRequired": "Title is required",
|
||||
"duplicate": "Duplicate",
|
||||
"duplicated": "Recipe duplicated.",
|
||||
"copySuffix": "copy"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user