From d5a340bde110eb6378fabfc84e6daf8c795b03f2 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Sun, 25 Apr 2021 13:47:08 -0800 Subject: [PATCH] App Bar Rewrite (#347) * Dummy Commit * consolidate sidebar and app bar * fix image error * consolidate sidebar * new icon for user menu * fixes #329 * fix double click on mobile * swap to computed properties * fix open/close bug * rewrite search for mobile * fix ingredient checkbox * cleanup console.logs * set default lang + bump version * draft changelog * reword * update env variables Co-authored-by: hay-kot --- docs/docs/changelog/template.md | 30 +++ docs/docs/changelog/v0.5.0.md | 35 ++++ docs/docs/getting-started/install.md | 17 +- docs/mkdocs.yml | 1 + frontend/src/App.vue | 16 +- .../Recipe/RecipeViewer/Ingredients.vue | 26 +-- .../src/components/UI/CategorySidebar.vue | 110 ---------- .../src/components/UI/Search/SearchBar.vue | 82 ++++++-- .../src/components/UI/Search/SearchDialog.vue | 57 +++-- frontend/src/components/UI/TheAppBar.vue | 96 ++++----- frontend/src/components/UI/TheRecipeFab.vue | 27 ++- .../AdminSidebar.vue => UI/TheSidebar.vue} | 197 +++++++++++------- frontend/src/components/UI/TheSiteMenu.vue | 2 +- frontend/src/locales/messages/en-US.json | 9 +- frontend/src/pages/Admin/index.vue | 9 +- frontend/src/pages/HomePage.vue | 5 +- frontend/src/pages/MealPlan/Planner.vue | 2 +- frontend/src/pages/MealPlan/ThisWeek.vue | 2 +- frontend/src/pages/Recipes/AllRecipes.vue | 4 +- frontend/src/pages/Recipes/CategoryPage.vue | 3 - frontend/src/pages/Recipes/CustomPage.vue | 3 - frontend/src/pages/Recipes/TagPage.vue | 3 - frontend/src/pages/SearchPage/index.vue | 3 - frontend/src/store/modules/siteSettings.js | 9 + mealie/core/config.py | 4 +- mealie/schema/settings.py | 2 +- 26 files changed, 384 insertions(+), 370 deletions(-) create mode 100644 docs/docs/changelog/template.md create mode 100644 docs/docs/changelog/v0.5.0.md delete mode 100644 frontend/src/components/UI/CategorySidebar.vue rename frontend/src/components/{Admin/AdminSidebar.vue => UI/TheSidebar.vue} (63%) diff --git a/docs/docs/changelog/template.md b/docs/docs/changelog/template.md new file mode 100644 index 000000000000..3d69c147c566 --- /dev/null +++ b/docs/docs/changelog/template.md @@ -0,0 +1,30 @@ +# vx.x.x COOL TITLE GOES HERE + +**App Version: vx.x.x** + +**Database Version: vx.x.x** + +## Breaking Changes + +!!! error "Breaking Changes" + + #### Database + + #### ENV Variables + + +## Bug Fixes +- Fixed ... + +## Features and Improvements + +### General +- New Thing 1 + + +### UI Improvements +- + + +### Behind the Scenes +- Refactoring... \ No newline at end of file diff --git a/docs/docs/changelog/v0.5.0.md b/docs/docs/changelog/v0.5.0.md new file mode 100644 index 000000000000..930b272ec685 --- /dev/null +++ b/docs/docs/changelog/v0.5.0.md @@ -0,0 +1,35 @@ +# v0.5.0 COOL TITLE GOES HERE + +**App Version: v0.5.0** + +**Database Version: v0.5.0** + +## Breaking Changes + +!!! error "Breaking Changes" + + #### Database + Database version has been bumped from v0.4.x -> v0.5.0. You will need to export and import your data. + + +## Bug Fixes +- Fixed #332 - Language settings are saved for one browser +- Fixes #281 - Slow Handling of Large Sets of Recipes + +## Features and Improvements + +### General +- More localization +- Start date for Week is now selectable +- Languages are now managed through Crowdin +- The main App bar went through a major overhaul + - Sidebar can now be toggled everywhere. + - New and improved mobile friendly bottom bar + - Improved styling for search bar in desktop + - Improved search layout on mobile +- Profile image now shown on all sidebars + + +### Behind the Scenes +- Unified Sidebar Components +- Refactor UI components to fit Vue best practices (WIP) \ No newline at end of file diff --git a/docs/docs/getting-started/install.md b/docs/docs/getting-started/install.md index 37fc56f996db..c89b7349f08b 100644 --- a/docs/docs/getting-started/install.md +++ b/docs/docs/getting-started/install.md @@ -10,12 +10,15 @@ To deploy docker on your local network it is highly recommended to use docker to - linux/arm/v7 - linux/arm64 -!!! tip "Fix for linux/arm/v7 container on Raspberry Pi 4: 'Fatal Python error: init_interp_main: can't initialize time'" - Update the host RP4 using [instructions](linuxserver/docker-papermerge#4 (comment)), summarized here: -```shell - wget http://ftp.us.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.5.1-1_armhf.deb - sudo dpkg -i libseccomp2_2.5.1-1_armhf.deb -``` +!!! tip "Fatal Python error: init_interp_main: can't initialize time" + Some users experience an problem with running the linux/arm/v7 container on Raspberry Pi 4. This is not a problem with the Mealie container, but with a bug in the hosts Docker installation. + + Update the host RP4 using [instructions](linuxserver/docker-papermerge#4 (comment)), summarized here: + + ```shell + wget http://ftp.us.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.5.1-1_armhf.deb + sudo dpkg -i libseccomp2_2.5.1-1_armhf.deb + ``` ## Quick Start - Docker CLI Deployment with the Docker CLI can be done with `docker run` and specify the database type, in this case `sqlite`, setting the exposed port `9925`, mounting the current directory, and pull the latest image. After the image is up an running you can navigate to http://your.ip.addres:9925 and you'll should see mealie up and running! @@ -60,7 +63,7 @@ services: | ---------------- | ------------------ | ----------------------------------------------------------------------------------- | | DB_TYPE | sqlite | The database type to be used. Current Options 'sqlite' | | DEFAULT_GROUP | Home | The default group for users | -| DEFAULT_USERNAME | changeme@email.com | The default username for the superuser | +| DEFAULT_EMAIL | changeme@email.com | The default username for the superuser | | DEFAULT_PASSWORD | MyPassword | The default password for the superuser | | TOKEN_TIME | 2 | The time in hours that a login/auth token is valid | | API_PORT | 9000 | The port exposed by backend API. **do not change this if you're running in docker** | diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index df5127f45994..90b2c871966a 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -77,6 +77,7 @@ nav: - Guidelines: "contributors/developers-guide/general-guidelines.md" - Development Road Map: "roadmap.md" - Change Log: + - v0.5.0 General Upgrades: "changelog/v0.5.0.md" - v0.4.3 Hot Fix: "changelog/v0.4.3.md" - v0.4.2 Backend/Migrations: "changelog/v0.4.2.md" - v0.4.1 Frontend/UI: "changelog/v0.4.1.md" diff --git a/frontend/src/App.vue b/frontend/src/App.vue index d9df8bf27cc5..b3474e9eb970 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,5 +1,6 @@