1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-05 05:25:26 +02:00
This commit is contained in:
Hayden 2020-12-24 16:37:38 -09:00
commit beed8576c2
137 changed files with 40218 additions and 0 deletions

78
dev/README.md Normal file
View file

@ -0,0 +1,78 @@
# Mealie Development Notes
[toc]
## Feature List (TODOs)
### Frontend Tasks
- [x] Fix Menu Links
- [ ] 404 Page
- [x] Refactor API / Split Code
- [ ] Form Validation
- [x] Admin
- [x] Backups
- [x] Themes
- [ ] Recipe Viewer
- [ ] notes Hidden/Not Hidden
- [ ] Total Time Indicator
- [ ] BakeTime
- [x] Proper Response Handling
- [x] Recipe Created URL Feedback
- [x] Recipe Deleted
- [x] Backup Creation
- [x] Backup Deleted
- [x] Meal Plan
- [x] Empty Response Bug
- [x] Breakup Vue Componenets for Reusability
- [x] Meal Cards
- [x] Editor Button
- [x] Recipe Editor
- [x] New Recipe File Upload
- [x] Bulk Import for Ingredients / Instructions
- [x] Meal Plan
- [x] Creator
- [x] UI
- [x] Requests / Response
- [x] Timeline
- [x] View
- [x] Delete
- [x] Edit Existing
- [x] Random Meal Generator
- [x] Whats For Dinner Page
- [x] Current Meal Plan
- [ ] Include Lunch / Dinner / Breaksfast Categories Option
- [x] Admin Settings
- [x] Site Settings
- [x] Webhooks
- [x] Dark Mode - Cookies
- [x] Color Themes - Cookies
### Backend Tasks
- [x] Proper Response Handling
- [ ] Backup Options
- [ ] Force Update
- [ ] Rebuild
- [ ] Meal Planner
- [x] Scheduler
- [x] Webhooks
- [ ] Recipe Data
- [ ] Better Scraper
- [ ] Image Minification
- [ ] Scraper Data Validation
- [ ] Category Management
- Lunch / Dinner / Breakfast <- Meal Generation
- Dessert / Side / Appetizer / Bread / Drinks /
## v1.0 Roadmad
Frontend
- [ ] Login / Logout Navigation
- [ ] Initial Page
- [ ] Logic / Function Calls
Backend
- [ ] User Setup
- [ ] Authentication
- [ ] Default Admin/Superuser Account
- [ ] User Accounts
- [ ] Edit / Delete Lock

32
dev/build.py Normal file
View file

@ -0,0 +1,32 @@
import requests
import json
POST_URL = "http://localhost:9921/api/recipe/create-url"
URL_LIST = [
"https://www.bonappetit.com/recipe/hallacas"
"https://www.bonappetit.com/recipe/oat-and-pecan-brittle-cookies",
"https://www.bonappetit.com/recipe/tequila-beer-and-citrus-cocktail",
"https://www.bonappetit.com/recipe/corn-and-crab-beignets-with-yaji-aioli",
"https://www.bonappetit.com/recipe/nan-e-berenji",
"https://www.bonappetit.com/recipe/ginger-citrus-cookies",
"https://www.bonappetit.com/recipe/chocolate-pizzettes-cookies",
"https://www.bonappetit.com/recipe/swedish-glogg",
"https://www.bonappetit.com/recipe/roasted-beets-with-dukkah-and-sage",
"https://www.bonappetit.com/recipe/collard-greens-salad-with-pickled-fennel-and-coconut"
"https://www.bonappetit.com/recipe/sparkling-wine-cocktail",
"https://www.bonappetit.com/recipe/pretzel-and-potato-chip-moon-pies",
"https://www.bonappetit.com/recipe/coffee-hazlenut-biscotti",
"https://www.bonappetit.com/recipe/curry-cauliflower-rice",
"https://www.bonappetit.com/recipe/life-of-the-party-layer-cake",
"https://www.bonappetit.com/recipe/marranitos-enfiestados",
]
if __name__ == "__main__":
for url in URL_LIST:
data = {"url": url}
data = json.dumps(data)
try:
response = requests.post(POST_URL, data)
except:
continue

View file

@ -0,0 +1 @@
docker-compose -f docker-compose.dev.yml build && docker-compose -f docker-compose.dev.yml -p dev-mealie up -d

1
dev/scripts/docker-compose.sh Executable file
View file

@ -0,0 +1 @@
docker-compose build && docker-compose -p mealie up -d

View file

@ -0,0 +1,17 @@
$CWD = Get-Location
$pyFolder = Join-Path -Path $CWD -ChildPath "mealie"
$pyVenv = Join-Path -Path $CWD -ChildPath "/venv/Scripts/python.exe"
$pyScript = Join-Path -Path $CWD -ChildPath "/mealie/app.py"
$pythonCommand = "powershell.exe -NoExit -Command $pyVenv $pyScript"
$vuePath = Join-Path -Path $CWD -ChildPath "/frontend"
$npmCommand = "powershell.exe -NoExit -Command npm run serve"
wt -d $pyFolder "powershell.exe" $pythonCommand `; split-pane -d $vuePath "powershell.exe" $npmCommand
Start-Process chrome "http://127.0.0.1:8000/docs"
Start-Process chrome "http://127.0.0.1:8080
"

40
dev/write_settings.py Normal file
View file

@ -0,0 +1,40 @@
import json
import requests
POST_URL = "http://localhost:9921/api/site-settings/themes/create/"
GET_URL = "http://localhost:9921/api/site-settings/themes/"
SITE_SETTINGS = [
{
"name": "default",
"colors": {
"primary": "#E58325",
"accent": "#00457A",
"secondary": "#973542",
"success": "#5AB1BB",
"info": "#FFFD99",
"warning": "#FF4081",
"error": "#EF5350",
},
},
{
"name": "purple",
"colors": {
"accent": "#4527A0",
"primary": "#FF4081",
"secondary": "#26C6DA",
"success": "#4CAF50",
"info": "#2196F3",
"warning": "#FB8C00",
"error": "#FF5252",
},
},
]
if __name__ == "__main__":
for theme in SITE_SETTINGS:
data = json.dumps(theme)
response = requests.post(POST_URL, data)
response = requests.get(GET_URL)
print(response.text)