-
-
Notifications
You must be signed in to change notification settings - Fork 767
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.4.1 - Frontend/UI Improvements (#267)
* fix links * actually fix #238 * Feature/mkdocs version bump (#240) * fix links (#239) Co-authored-by: hay-kot <[email protected]> * fix #238 * bump mkdocs version * light/dark toggle * light/dark mode css * API_DOCS defaults to True * disable build on push for master Co-authored-by: hay-kot <[email protected]> * Feature/recipe viewer (#244) * fix dialog placement * markdown support in ingredients * fix line render issue * fix tag rendering bug * change ingredients to text area * no slug error * add tag pages * remove console.logs Co-authored-by: hay-kot <[email protected]> * changelog v0.4.1 * bug/backup-download (#245) * fix blocked download * + download blocked Co-authored-by: hay-kot <[email protected]> * Feature/meal planner (#246) * fixes duplicate recipes in meal-plan #221 * add quick week option * scope css * add mealplanner info Co-authored-by: hay-kot <[email protected]> * Nextcloud Import Bugs - #248 (#250) * parses datetime properly + clean category - #248 * add default credentials to docs Co-authored-by: hay-kot <[email protected]> * Add bulk import examples to docs. (#252) * Add bulk import examples to docs. * Update api-usage.md * Add Python example for bulk import. * Change IP address in API example. * Refactor/app settings (#251) * fix env setup bugs * remove unused import * fix layout issues * changelog Co-authored-by: hay-kot <[email protected]> * env setup fixes * Feature/about api (#253) * fix settings * app info cleanup Co-authored-by: hay-kot <[email protected]> * Feature/image minify (#256) * fix settings * app info cleanup * bottom-bar experiment * remove dup key * type hints * add dependency * updated image with query parameters * read image options * add image minification * add image minification step * alt image routes * add image minification * set mobile bar to top Co-authored-by: hay-kot <[email protected]> * Feature/additional endpoints (#257) * new recipe summary route * add categories to cards * add pillow * show tags instead of categories * additional debug info * add todays meal image url * about page * fix reactive tag * changelog + docs * bump version Co-authored-by: hay-kot <[email protected]> * add pillow dependencies (#258) Co-authored-by: hay-kot <[email protected]> * Feature/search page (#259) * add pillow dependencies * advanced search page * advanced search apge * remove extra dependencies * add pre-run script Co-authored-by: hay-kot <[email protected]> * no image assignment * advanced search * fix docker dev build * Do not force theme settings on login form (#260) * Fix docker dev db persistence (#264) * Fix docker dev db persistence * Make run.sh the only startup script for prod + dev Credits to @hay-kot for run.sh script logic * Restore dev backend initialization in non-docker setup * Make run.sh POSIX-friendly * Allow dev backend to auto-reload in Docker * Frontend Refactor + Bug Fixes * merge category and tag selector * unifiy category selector * add hint * spacing * fix nextcloud migration * simplify email validator #261 * formatting * cleanup * auto-gen * format * update run script * unified category/tag selector * rename component * Add advanced search link * remove old code * convert keywords to tags * add proper behavior on rename * proper image name association on rename * fix test cleanup * changelog * set docker comppand * minify on migration Co-authored-by: hay-kot <[email protected]> * bug-fixes/category-tag-creator (#266) * fix category labels * set loader for migration * v0.4.1 Co-authored-by: hay-kot <[email protected]> Co-authored-by: hay-kot <[email protected]> Co-authored-by: Nat <[email protected]> Co-authored-by: sephrat <[email protected]>
- Loading branch information
1 parent
b8cddfd
commit 9c379df
Showing
89 changed files
with
1,996 additions
and
705 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# v0.4.1 | ||
|
||
**App Version: v0.4.1** | ||
|
||
**Database Version: v0.4.0** | ||
|
||
!!! error "Breaking Changes" | ||
|
||
#### Recipe Images | ||
While it *shouldn't* be a breaking change, I feel it is important to note that you may experience issues with the new image migration. Recipe images are now minified, this is done on start-up, import, migration, and when a new recipe is created. The initial boot or load may be a bit slow if you have lots of recipes but you likely won't notice. What you may notice is that if your recipe slug and the image name do not match, you will encounter issues with your images showing up. This can be resolved by finding the image directory and rename it to the appropriate slug. I did fix multiple edge cases, but it is likely more exists. As always make a backup before you update! | ||
|
||
On the plus side, this comes with a huge performance increase! 🎉 | ||
|
||
- Add markdown support for ingredients - Resolves #32 | ||
- Ingredients editor improvements | ||
- Fix Tags/Categories render problems on recipes | ||
- Tags redirect to new tag pages | ||
- Categories redirect to category pages | ||
- Fix Backup download blocked by authentication | ||
- Random meal-planner will no longer duplicate recipes unless no other options | ||
- New Quick Week button to generate next 5 day week of recipe slots. | ||
- Minor UI tweaks | ||
- Recipe Cards now display 2 recipe tags | ||
- Recipe images are now minified. This comes with a serious performance improvement. On initial startup you may experience some delays. Images are migrated to the new structure on startup, depending on the size of your database this can take some time. | ||
- Note that original images are still kept for large displays like on the individual recipe pages. | ||
- A smaller image is used for recipe cards | ||
- A 'tiny' image is used for search images. | ||
- Advanced Search Page. You can now use the search page to filter recipes to include/exclude tags and categories as well as select And/Or matching criteria. | ||
- Added link to advanced search on quick search | ||
- Better support for NextCloud imports | ||
- Translate keywords to tags | ||
- Fix rollback on failure | ||
- Recipe Tag/Category Input components have been unified and now share a single way to interact. To add a new category in the recipe editor you need to click to '+' icon next to the input and fill out the form. This is the same for adding a Tag. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,94 @@ For example you could add `{"message": "Remember to thaw the chicken"}` to a rec | |
|
||
|
||
## Examples | ||
### Bulk import | ||
Recipes can be imported in bulk from a file containing a list of URLs. This can be done using the following bash or python scripts with the `list` file containing one URL per line. | ||
|
||
Have Ideas? Submit a PR! | ||
#### Bash | ||
```bash | ||
#!/bin/bash | ||
|
||
function authentification () { | ||
auth=$(curl -X 'POST' \ | ||
"$3/api/auth/token" \ | ||
-H 'accept: application/json' \ | ||
-H 'Content-Type: application/x-www-form-urlencoded' \ | ||
-d 'grant_type=&username='$1'&password='$2'&scope=&client_id=&client_secret=') | ||
|
||
echo $auth | sed -e 's/.*token":"\(.*\)",.*/\1/' | ||
} | ||
|
||
function import_from_file () { | ||
while IFS= read -r line | ||
do | ||
echo $line | ||
curl -X 'POST' \ | ||
"$3/api/recipes/create-url" \ | ||
-H "Authorization: Bearer $2" \ | ||
-H 'accept: application/json' \ | ||
-H 'Content-Type: application/json' \ | ||
-d '{"url": "'$line'" }' | ||
echo | ||
done < "$1" | ||
} | ||
|
||
input="list" | ||
mail="[email protected]" | ||
password="MyPassword" | ||
mealie_url=http://localhost:9000 | ||
|
||
|
||
token=$(authentification $mail $password $mealie_url) | ||
import_from_file $input $token $mealie_url | ||
|
||
``` | ||
|
||
#### Python | ||
```python | ||
import requests | ||
import re | ||
|
||
def authentification(mail, password, mealie_url): | ||
headers = { | ||
'accept': 'application/json', | ||
'Content-Type': 'application/x-www-form-urlencoded', | ||
} | ||
data = { | ||
'grant_type': '', | ||
'username': mail, | ||
'password': password, | ||
'scope': '', | ||
'client_id': '', | ||
'client_secret': '' | ||
} | ||
auth = requests.post(mealie_url + "/api/auth/token", headers=headers, data=data) | ||
token = re.sub(r'.*token":"(.*)",.*', r'\1', auth.text) | ||
return token | ||
|
||
def import_from_file(input_file, token, mealie_url): | ||
with open(input_file) as fp: | ||
for l in fp: | ||
line = re.sub(r'(.*)\n', r'\1', l) | ||
print(line) | ||
headers = { | ||
'Authorization': "Bearer " + token, | ||
'accept': 'application/json', | ||
'Content-Type': 'application/json' | ||
} | ||
data = { | ||
'url': line | ||
} | ||
response = requests.post(mealie_url + "/api/recipes/create-url", headers=headers, json=data) | ||
print(response.text) | ||
|
||
input_file="list" | ||
mail="[email protected]" | ||
password="MyPassword" | ||
mealie_url="http://localhost:9000" | ||
|
||
|
||
token = authentification(mail, password, mealie_url) | ||
import_from_file(input_file, token, mealie_url) | ||
``` | ||
|
||
Have Ideas? Submit a PR! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,11 @@ docker run \ | |
|
||
``` | ||
|
||
!!! tip "Default Credentials" | ||
**Username:** [email protected] | ||
|
||
**Password:** MyPassword | ||
|
||
## Docker Compose with SQLite | ||
Deployment with docker-compose is the recommended method for deployment. The example below will create an instance of mealie available on port `9925` with the data volume mounted from the local directory. To use, create a docker-compose.yml file, paste the contents below and save. In the terminal run `docker-compose up -d` to start the container. | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.