Commit Graph

104 Commits

Author SHA1 Message Date
Hayden
ef87f2231d feature/mealplanner-rewrite (#417)
* multiple recipes per day

* fix update

* meal-planner rewrite

* disable meal-tests

* spacing

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-05-22 21:04:19 -08:00
hay-kot
da9826dc7c image bug fix 2021-05-20 21:18:58 -07:00
Hayden
53e97c5315 fallback to icon when no image (#414)
Co-authored-by: hay-kot <hay-kot@pm.me>
2021-05-20 19:48:29 -08:00
Hayden
dcd9567059 notification import/export (#413)
Co-authored-by: hay-kot <hay-kot@pm.me>
2021-05-20 19:16:42 -08:00
Hayden
3804e1d52c add print-view component (#407)
Co-authored-by: hay-kot <hay-kot@pm.me>
2021-05-14 21:10:03 -08:00
Hayden
5f074fe5d9 Feature/copy icon (#406)
* add copy tooltip

* transparent scrollbar

* add version to header

* localize

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-05-11 20:56:30 -08:00
Hayden
a1dd6c941b Bug/misc bug fixes (#400)
* potentiall fix #329

* typo

* auto purge events

* image error

* update import dialog

* fix scheduler interval time

* adjust icon position

* check for property

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-05-08 21:31:19 -08:00
Hayden
14b6ab7ec7 Feature/event notifications (#399)
* additional server events

* sort 'recent recipes' by updated

* remove duplicate code

* fixes #396

* set color

* consolidate tag/category pages

* set colors

* list unorganized recipes

* cleanup old code

* remove flash message, switch to global snackbar

* cancel to close

* cleanup

* notifications first pass

* test notification

* complete notification feature

* use background tasks

* add url param

* update documentation

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-05-08 18:29:31 -08:00
Hayden
466997febc backend-events + code-cleanup (#395)
* additional server events

* sort 'recent recipes' by updated

* remove duplicate code

* fixes #396

* set color

* consolidate tag/category pages

* set colors

* list unorganized recipes

* cleanup old code

* remove flash message, switch to global snackbar

* cancel to close

* cleanup

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-05-07 14:33:20 -08:00
sephrat
96919319b1 More localization (#393)
* Translate sidebar

* Do not force 12-hour format worldwide

Vue-i18n knows which locales prefer 12-hour format over 24-hour format

* Translate new tiles in profile page

* Translate new tiles in dashboard
2021-05-07 08:45:58 -08:00
Hayden
95ec13161f feature/profile-cards (#391)
* unify format

* pass variables

* remove namespace

* rename

* group-card init

* shuffle + icons

* remove console.logs

* token CRUD

* update changelog

* add profile link

* consolidate mealplan to profile dashboard

* update docs

* add query parameter to search page

* update test routes

* update python depts

* basic token tests

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-05-06 21:08:27 -08:00
Hayden
1b0de02b71 feature/new-feature-cleanup (#389)
* add json editor to theme editor

* add toolbars tools to recipe sections

* fix recipe yield

* add updated_date to recipe schema

* update time cards

* fix mobile buttons

* fix asset URL

* fix PG errors CRUD

* remove -d from docker-pro

* fix theme tests

* remvoe old typing

* abstract count function

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-05-05 14:08:13 -08:00
Hayden
c1370afb16 Refactor/backend routers (#388)
* update router

* update caddy file

* setup depends in docker-fole

* make changes for serving on subpath

* set dev config

* fix router signups

* consolidate links

* backup-functionality to dashboard

* new user card

* consolidate theme into profile

* fix theme tests

* fix pg tests

* fix pg tests

* remove unused import

* mobile margin

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-05-04 20:45:11 -08:00
Hayden
5580d177c3 feature/finish-recipe-assets (#384)
* add features to readme

* Copy markdown reference

* prop as whole recipe

* parameter as url instead of query

* add card styling to editor

* move images to /recipes/{slug}/images

* add image to breaking changes

* fix delete and import errors

* fix debug/about response

* logger updates

* dashboard ui

* add server side events

* unorganized routes

* default slot

* add backup viewer to dashboard

* format

* add dialog to backup imports

* initial event support

* delete assets when removed

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-05-03 19:32:37 -08:00
Hayden
be378cb20c feature/recipe-patch-improvements (#382)
* automated docs update

* recipe rating component

* recipe partial updates - closes #25

* use Vue.delete to update store

* format

* arrow functions

* fix tests

* format

* initial context menu

* localize

* add confirmation dialog

* context menu

* fix bare exception

* update line length

* format all file with prettier

* update changelog

* download as json

* update python dependencies

* update javascript dependencies

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-05-01 20:46:02 -08:00
sephrat
72bc97eb24 Shopping list fixes (#376)
* Refactor recipe to snake case

* Initialize raw ingredients

Fixes #356
2021-04-30 08:44:24 -08:00
sephrat
b302e0ffd8 More localization (#373)
* Translate missing string

* Display language in original language + English

* Translate assets

* Translate recipe settings
2021-04-30 08:44:03 -08:00
sephrat
d2e56cf233 Api refactoring fixes (#372)
* Fix JS error when logging in with bad credentials

* Remove duplicate error message if bad credentials

Error is already nicely displayed in LoginForm
2021-04-30 08:43:30 -08:00
Hayden
1dc051f562 Refactor/recipe routes (#370)
* format with black

* black format

* flake8

* remove bar exceptions

* remove test for depreciated route

* recipe settings editr

* add sqlite

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-04-29 21:46:27 -08:00
sephrat
1e5edc7434 More localization (#358)
* Translate missing items on About page

* Localize import summary dialog

* Make site menu translation reactive

* Localize import options

* Include semi colon in string

* Move API texts to frontend + better status codes

* Provide feedback to user when no meal is planned

* Fix API tests after latest rework

* Add warning for API changes in changelog

* Refactor API texts handling

* Refactor API texts handling #2

* Better API feedback

* Rearrange strings hierarchy

* Add messages upon recipe updated

* Fix 'recipe effected' typo

* Remove snackbar usage in backend

* Translate toolbox

* Provide feedback for tags CRUD

* Fix messed up merge

* Translate sign-up form

* Better feedback for sign-up CRUD

* Refactor log-in API texts handling

* No error message when user is not authenticated

* Remove unimportant console log
2021-04-29 08:22:45 -08:00
hay-kot
861020ffe0 fix missed commits 2021-04-28 21:31:39 -08:00
Hayden
61e0a52100 refactor/recipe-to-snake-case (#364)
* formatting

* snake case all recipes entries

* set foreign key to int

* run scheduler at startup and not import

* set SQLite file path before imports

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-04-28 21:17:49 -08:00
Hayden
04255e285f feature/new-recipe-features (#360)
* unify button styles

* fix drag on mobile

* recipe instructions section

* add carbs

* refactor component location

* asset start

* consolidate view/edit components

* asset api

* base dialog event

* Remove 'content'

* remove console.log

* add slug prop

* remove console.log

* recipe assets first pass

* add recipeSettings model

* fix hide/show when no tags/categories

* fix typo

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-04-28 18:59:37 -08:00
Hayden
846d1eda5b feature/category-tag-crud (#354)
* update tag route

* search.and

* offset for mobile

* relative imports

* get settings

* new page

* category/tag CRUD

* bulk assign frontend

* Bulk assign

* debounce search

* remove dev data

* recipe store refactor

* fix mobile view

* fix failing tests

* commit test data

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-04-27 11:17:00 -08:00
Hayden
d5a340bde1 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 <hay-kot@pm.me>
2021-04-25 13:47:08 -08:00
sephrat
cfbf51072b More localization (#348)
* Translate about page

* Sort messages by keys

* Remove unused strings

* Localize date in meal planner

* Fix quick week not starting on Monday for UTC+x
2021-04-24 12:16:07 -08:00
sephrat
21d2fb4b93 Fix infinite loop in meal planner randomizer (#346)
Infinite loop would happen if there were more days than recipes
2021-04-23 14:31:21 -08:00
sephrat
df1bca6c6a Fix ingredients not refreshed upon recipe change (#343) 2021-04-22 22:15:25 -08:00
Hayden
8e4b951ecc Get Recipes Route Rewrite (#339)
* deprecate old route

* auto-gen

* recipe card infinite scroll

* fix datatable

* set hard-limit option

* add loader

* set scroll on navigation

* add auto-import

* fix slow initial load

* remove console.logs

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-04-22 22:13:55 -08:00
sephrat
80f8806604 Localize more dates and texts (#341)
* Localize more dates and texts

* Adapt source language to 4-letter code for VS code

* Make page titles more reactive to language change

* Translate missing text + fix missed refactoring

* Fix missed page titles refactoring

* Translate nutrition view

* Translate Image upload vue

* Fix default text being defined twice in upload btn
2021-04-22 22:13:00 -08:00
Hayden
284df44209 feature/editor-improvements (#289)
* pin editor buttons on scroll

* scaler scratch

* fix langauge assignment 1st pass

* set lang on navigate

* refactor/breakup router

* unify style for language selectro

* refactor/code-cleanup

* refactor/page specific components to page folder

* Fix time card layout issue

* fix timecard display

* update mobile cards / fix overflow errors

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-04-21 21:52:12 -08:00
sephrat
29b9c231d3 Fix date picker not properly localized (#330)
* Fix language in date picker

Vuetify allows custom-named locales,
but the date-picker really only works with BCP 47 language tag

* Save lang at proper time + Update Vuetify lang on the fly
2021-04-21 08:36:49 -08:00
sephrat
8e27d0b83f Make first day of week in calendar view customizable (#263)
* Make first day of the week customizable

New settings section 'Locale settings'
New setting 'First day of week'
New date picker reusable UI that uses the new setting
Meal planner now uses this new date picker

* Clean up unused code in settings page

* Fix First day of week mapping

* Replace missing v-date-picker with custom card DatePicker

* Mention first day of the week feature in change log
2021-04-20 22:43:36 -08:00
hay-kot
601cd12e9c fixes #315 2021-04-19 19:48:16 -08:00
hay-kot
fbf4282063 fix broken upload button on migrations 2021-04-18 17:43:32 -08:00
hay-kot
335807637a fixes #297 2021-04-16 21:15:57 -08:00
sephrat
4b09497c3d Localize custom pages and search page (#299)
* Localize custom pages and search page

* Fix FR translation for step
2021-04-14 08:06:54 -08:00
sephrat
2e339ee996 Fix ingredient checkbox click (#305)
Fixes #304
v-list-item already flips the checkbox
2021-04-14 07:14:21 -08:00
sephrat
f3ea467e20 Enrich page title with context (#296)
- Static pages have their own titles
- The name of the recipe is displayed when viewing it
2021-04-14 07:12:22 -08:00
sephrat
2c3fa81227 Display categories in sidebar if no pages set (#292)
Fixes  #291
2021-04-14 07:11:55 -08:00
hay-kot
b726c9a886 fix page creation fixes #290 2021-04-12 08:15:56 -08:00
Hayden
406dae6e97 Basic nutrition editor (#288)
* Basic nutrition editor

* fix no image on scrape

* nutrition display

* add recipe images

* update by url

* new upload options

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-04-11 13:16:33 -08:00
Hayden
2a158ab290 feature/debug-info (#286)
* rename 'ENV' to 'PRODUCTION' and default to true

* set env PRODUCTION

* refactor file download process

* add last_recipe.json and log downloads

* changelog + version bump

* set env on workflows

* bump version

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-04-10 21:42:04 -08:00
Hayden
42deb5ad10 Feature/migration-rewrite (#278)
* start

* migration rewrite

* update name

* convert chowdown to new methods

* refactor/remove duplicate code

* refactor to unify logger + log to file

* remove toolbox

* Display report on UI

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-04-10 15:09:06 -08:00
Hayden
f09960f52c bug-fixes/category-tag-creator (#266)
* fix category labels

* set loader for migration

* v0.4.1

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-04-07 17:20:19 -08:00
Hayden
1cf95bb3b0 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 <hay-kot@pm.me>
2021-04-06 22:29:02 -08:00
sephrat
6706918736 Do not force theme settings on login form (#260) 2021-04-04 20:45:19 -08:00
Hayden
6d5f3e7496 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 <hay-kot@pm.me>
2021-04-03 17:18:01 -08:00
Hayden
764f85fb40 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 <hay-kot@pm.me>
2021-04-03 11:25:57 -08:00
Hayden
95213fa41b 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 <hay-kot@pm.me>
2021-04-02 21:54:46 -08:00