mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-11 18:33:11 -05:00
Feature/user photo storage (#877)
* add default assets for user profile * add recipe avatar * change user_id to UUID * add profile image upload * setup image cache keys * cleanup tests and add image tests * purge user data on delete * new user repository tests * add user_id validator for int -> UUID conversion * delete depreciated route * force set content type * refactor tests to use temp directory * validate parent exists before createing * set user_id to correct type * update instruction id * reset primary key on migration
This commit is contained in:
0
mealie/assets/__init__.py
Normal file
0
mealie/assets/__init__.py
Normal file
5
mealie/assets/templates/__init__.py
Normal file
5
mealie/assets/templates/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from pathlib import Path
|
||||
|
||||
CWD = Path(__file__).parent
|
||||
|
||||
recipes_markdown = CWD / "recipes.md"
|
||||
24
mealie/assets/templates/recipes.md
Normal file
24
mealie/assets/templates/recipes.md
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
|
||||

|
||||
|
||||
# {{ recipe.name }}
|
||||
{{ recipe.description }}
|
||||
|
||||
## Ingredients
|
||||
{% for ingredient in recipe.recipeIngredient %}
|
||||
- [ ] {{ ingredient }} {% endfor %}
|
||||
|
||||
## Instructions
|
||||
{% for step in recipe.recipeInstructions %}
|
||||
- [ ] {{ step.text }} {% endfor %}
|
||||
|
||||
{% for note in recipe.notes %}
|
||||
**{{ note.title }}:** {{ note.text }}
|
||||
{% endfor %}
|
||||
|
||||
---
|
||||
|
||||
Tags: {{ recipe.tags }}
|
||||
Categories: {{ recipe.categories }}
|
||||
Original URL: {{ recipe.orgURL }}
|
||||
7
mealie/assets/users/__init__.py
Normal file
7
mealie/assets/users/__init__.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from pathlib import Path
|
||||
|
||||
CWD = Path(__file__).parent
|
||||
|
||||
img_random_1 = CWD / "random_1.webp"
|
||||
img_random_2 = CWD / "random_2.webp"
|
||||
img_random_3 = CWD / "random_3.webp"
|
||||
BIN
mealie/assets/users/random_1.webp
Normal file
BIN
mealie/assets/users/random_1.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
BIN
mealie/assets/users/random_2.webp
Normal file
BIN
mealie/assets/users/random_2.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
BIN
mealie/assets/users/random_3.webp
Normal file
BIN
mealie/assets/users/random_3.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Reference in New Issue
Block a user