Hayden
7adcc86d03
feat: bulk recipe settings update ( #1557 )
...
* extract switches from menu component
* implement bulk updater for settings
* fix browser cache api calls issue
* add frontend for bulk settings modifications
2022-08-14 10:37:44 -08:00
Michael Genson
5cfff75dbe
moved header out of "cook mode" conditional block ( #1556 )
2022-08-14 08:04:09 -08:00
Hayden
3b45da274c
New Crowdin updates ( #1553 )
...
* New translations en-US.json (Ukrainian)
* New translations en-US.json (Ukrainian)
2022-08-13 21:44:27 -08:00
Michael Genson
238f555f5e
fix: general bug fixes ( #1547 )
...
* grouped "instructions" header with first section
* fixed sort by last updated date
* somewhat-hacky bugfix for large screens
* modified page size to be divisible by 4
* fixed missing export for new data forms
2022-08-13 21:44:11 -08:00
Hayden
54c4f19a5c
security: enforce min length for user password ( #1555 )
...
* fix typing on auth context
* extract user password strength meter
* fix broken useToggle method
* extend form to accept arguments for validators
* enforce password length on update
* fix user password change form
2022-08-13 21:38:26 -08:00
Hayden
b3c41a4bd0
security: implement user lockout ( #1552 )
...
* add data-types required for login security
* implement user lockout checking at login
* cleanup legacy patterns
* expose passwords in test_user
* test user lockout after bad attempts
* test user service
* bump alembic version
* save increment to database
* add locked_at to datetime transformer on import
* do proper test cleanup
* implement scheduled task
* spelling
* document env variables
* implement context manager for session
* use context manager
* implement reset script
* cleanup generator
* run generator
* implement API endpoint for resetting locked users
* add button to reset all locked users
* add info when account is locked
* use ignore instead of expect-error
2022-08-13 13:18:12 -08:00
Daniel Palstra
ca64584fd1
feat: add the RecipeCardMenu to the recipe in a mealplan ( #1551 )
...
* Add the RecipeCardMenu to the recipe in a mealplan
* fix parameter naming
Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
2022-08-12 09:02:08 -08:00
Bryce Willey
553325ed09
fix: use flex-basis
, not width to fix min size bug ( #1548 )
...
On mobile screens when following a registration invite link, the page
would be too wide to interact with, extending well over the sides of the
phone.
This is because the minimum size of content is set to `auto` (by
default), and accord to the spec (https://www.w3.org/TR/css-flexbox-1/#specified-size-suggestion )
the minimum size of the element is the mimimum size of it's content. The
password strength element in the panel had a width of 500px, making the
entire component overflow the screen.
Changing the width to `flex-basis` instead, allows for the password
strength element to shrink if it overflows the screen.
2022-08-12 08:59:34 -08:00
Ryan Quinn
ff2334a489
fix: email typos ( #1549 )
...
* "your" -> "you're" in invitation email
* "below" -> "above" in all emails
2022-08-12 08:54:41 -08:00
Hayden
71d3db7aef
refactor: move dependencies to controllers ( #1550 )
...
* Moves dependencies directly to controllers
* Reduces use of @cached_property - (I have a suspicion that this is a factor in memory usage)
* reduce duplicate ways to access the same property on a controller.
2022-08-11 20:13:22 -08:00
Hayden
8a98288248
New Crowdin updates ( #1546 )
...
* New translations en-US.json (Czech)
* New translations en-US.json (Swedish)
* New translations en-US.json (Polish)
* New translations en-US.json (Portuguese)
* New translations en-US.json (Russian)
* New translations en-US.json (Slovak)
* New translations en-US.json (Slovenian)
* New translations en-US.json (Serbian (Cyrillic))
* New translations en-US.json (Turkish)
* New translations en-US.json (Dutch)
* New translations en-US.json (Ukrainian)
* New translations en-US.json (Chinese Simplified)
* New translations en-US.json (Chinese Traditional)
* New translations en-US.json (Vietnamese)
* New translations en-US.json (Portuguese, Brazilian)
* New translations en-US.json (English, United Kingdom)
* New translations en-US.json (Norwegian)
* New translations en-US.json (Lithuanian)
* New translations en-US.json (Romanian)
* New translations en-US.json (Danish)
* New translations en-US.json (French)
* New translations en-US.json (Spanish)
* New translations en-US.json (Afrikaans)
* New translations en-US.json (Arabic)
* New translations en-US.json (Bulgarian)
* New translations en-US.json (Catalan)
* New translations en-US.json (German)
* New translations en-US.json (Korean)
* New translations en-US.json (Greek)
* New translations en-US.json (Finnish)
* New translations en-US.json (Hebrew)
* New translations en-US.json (Hungarian)
* New translations en-US.json (Italian)
* New translations en-US.json (Japanese)
* New translations en-US.json (French, Canada)
* New translations en-US.json (Dutch)
2022-08-10 16:03:01 -08:00
dependabot[bot]
03147c8723
fix(deps): bump vuetify from 2.6.8 to 2.6.9 in /frontend ( #1543 )
...
Bumps [vuetify](https://github.com/vuetifyjs/vuetify/tree/HEAD/packages/vuetify ) from 2.6.8 to 2.6.9.
- [Release notes](https://github.com/vuetifyjs/vuetify/releases )
- [Commits](https://github.com/vuetifyjs/vuetify/commits/v2.6.9/packages/vuetify )
---
updated-dependencies:
- dependency-name: vuetify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-09 21:23:02 -08:00
Philipp Fischbeck
32244988d2
chore: make vue domain components localizable ( #1532 )
2022-08-09 21:12:45 -08:00
Hayden
e5bf7bce17
fix: case-sensitive-password-reset ( #1545 )
...
* make password reset case insensitive
* update test to check for case insensitive
2022-08-09 21:10:00 -08:00
Hayden
ef24705cfa
fix: ignore-place-in-search ( #1544 )
...
* pin i18n since it breaks things
* set ignoreLocation to true
* revert composition api demotion
* bump slugify
2022-08-09 20:34:08 -08:00
Michael Genson
f45e2587a0
feat: category and tag filters to recipe pagination route ( #1508 )
...
* fixed incorrect response model
* added category and tag filters
* moved categories and tags params to route and
changed to query array param
* type fixes
* added category and tag tests
2022-08-09 14:01:59 -08:00
Hayden
e82e7d0fb3
New Crowdin updates ( #1527 )
...
* New translations en-US.json (Swedish)
* New translations en-US.json (Swedish)
* New translations en-US.json (Slovak)
* New translations en-US.json (Slovak)
* New translations en-US.json (Slovak)
* New translations en-US.json (Slovak)
* New translations en-US.json (Slovak)
* New translations en-US.json (Dutch)
* New translations en-US.json (Dutch)
2022-08-08 18:42:09 -08:00
Maka0
a7c6e89dfa
feat: added gosu & updated run.sh to switch to the dedicated user ( #1395 )
...
Co-authored-by: Maka0 <360614-Maka0@users.noreply.gitlab.com>
2022-08-08 18:39:59 -08:00
Hayden
7ce02c31d5
chore: bump build deps ( #1541 )
...
* bump build deps
* typescript nonsense
* bump prettier
2022-08-08 18:38:18 -08:00
dependabot[bot]
95b1b8bbdc
fix(deps): bump @vueuse/core from 9.0.2 to 9.1.0 in /frontend ( #1535 )
...
Bumps [@vueuse/core](https://github.com/vueuse/vueuse/tree/HEAD/packages/core ) from 9.0.2 to 9.1.0.
- [Release notes](https://github.com/vueuse/vueuse/releases )
- [Commits](https://github.com/vueuse/vueuse/commits/v9.1.0/packages/core )
---
updated-dependencies:
- dependency-name: "@vueuse/core"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-08 18:11:17 -08:00
dependabot[bot]
f5040af8bb
chore(deps-dev): bump @babel/eslint-parser in /frontend ( #1538 )
...
Bumps [@babel/eslint-parser](https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser ) from 7.18.2 to 7.18.9.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.18.9/eslint/babel-eslint-parser )
---
updated-dependencies:
- dependency-name: "@babel/eslint-parser"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-08 18:11:03 -08:00
dependabot[bot]
5fd79457dd
fix(deps): bump date-fns from 2.28.0 to 2.29.1 in /frontend ( #1542 )
...
Bumps [date-fns](https://github.com/date-fns/date-fns ) from 2.28.0 to 2.29.1.
- [Release notes](https://github.com/date-fns/date-fns/releases )
- [Changelog](https://github.com/date-fns/date-fns/blob/main/CHANGELOG.md )
- [Commits](https://github.com/date-fns/date-fns/compare/v2.28.0...v2.29.1 )
---
updated-dependencies:
- dependency-name: date-fns
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-08 18:10:41 -08:00
dependabot[bot]
75d4d9658c
fix(deps): bump vuetify from 2.6.6 to 2.6.8 in /frontend ( #1540 )
...
Bumps [vuetify](https://github.com/vuetifyjs/vuetify/tree/HEAD/packages/vuetify ) from 2.6.6 to 2.6.8.
- [Release notes](https://github.com/vuetifyjs/vuetify/releases )
- [Commits](https://github.com/vuetifyjs/vuetify/commits/v2.6.8/packages/vuetify )
---
updated-dependencies:
- dependency-name: vuetify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-08 18:04:53 -08:00
dependabot[bot]
9907b9d625
fix(deps): bump @mdi/js from 6.7.96 to 7.0.96 in /frontend ( #1539 )
...
Bumps [@mdi/js](https://github.com/Templarian/MaterialDesign-JS ) from 6.7.96 to 7.0.96.
- [Release notes](https://github.com/Templarian/MaterialDesign-JS/releases )
- [Commits](https://github.com/Templarian/MaterialDesign-JS/compare/v6.7.96...v7.0.96 )
---
updated-dependencies:
- dependency-name: "@mdi/js"
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-08 18:04:44 -08:00
Hayden
60ecba2f92
chore: deps-dev-bump ( #1533 )
...
* bump dev dependencies
* fix/generate font sheets
* bump python deps to nuke cache
2022-08-08 17:58:10 -08:00
Philipp Fischbeck
34cd6eb687
fix: validate OpenAPI spec ( #1528 )
...
* init api check test
* Fix openAPI issues
Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
2022-08-06 16:54:29 -08:00
zierbeek
505e594758
fix (possible): PWA white screen ( #1526 )
...
Possible fix #1077 on iOS, as referenced in discussion. Should be enabled by default normally..
https://pwa.nuxtjs.org/workbox#skipwaiting
2022-08-04 10:42:41 -08:00
zierbeek
ea42350244
fix (possible): PWA blank screen ( #1523 )
...
Possible fix for blank screen on PWA. #1077
https://stackoverflow.com/questions/54928050/vue-pwa-blank-screen-after-closing-the-app
2022-08-02 14:06:26 -08:00
Hayden
11478134a1
security: restrict backup file upload ( #1522 )
2022-08-02 12:53:58 -08:00
Hayden
6649ccf224
lang: options updates + gen utils cleanup ( #1520 )
...
* generate new langs
* add to nuxt
* cleanup generator code
* additional cleanups
2022-08-02 10:41:44 -08:00
Hayden
5fca94dd45
New Crowdin updates ( #1519 )
...
* New translations en-US.json (French, Canada)
* New translations en-US.json (Slovak)
* New translations en-US.json (Slovak)
* New translations en-US.json (Slovak)
* New translations en-US.json (Slovak)
2022-08-02 10:29:45 -08:00
Hayden
13850cda1f
security: multiple reported CVE fixes ( #1515 )
...
* update out of date license
* update typing / refactor
* fix arbitrarty path injection
* use markdown sanatizer to prevent XSS CWE-79
* fix CWE-918 SSRF by validating url and mime type
* add security docs
* update recipe-scrapers
* resolve DOS from arbitrary url
* update changelog
* bump version
* add ref to #1506
* add #1511 to changelog
* use requests decoder
* actually fix encoding issue
2022-07-31 13:10:20 -08:00
Michael Genson
483f789b8e
feat: create new foods and units from their Data Management pages ( #1511 )
...
* added create dialogs to food and unit pages
* minor css tweaks
* properly reset create form
* added placeholder name attribute for type checking
* removed unnecessary value assignment
* type fixes
* corrected comment
* add autofocus and use ref<VForm> for form refs
Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
2022-07-31 12:31:20 -08:00
Michael Genson
1b83c82997
feat: implement local storage for sorting and dynamic sort icons on the new recipe sort card ( #1506 )
...
* added new sort icons
* added dynamic sort icons
* implemented local storage for sorting
and mobile card view
* fixed bug with local storage booleans
* added type hints
* bum vue use to use merge defaults
* use reactive localstorage
* add $vuetify type
* sort returns
* fix type error
Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
2022-07-31 11:39:35 -08:00
Philipp Fischbeck
34f52c06a6
fix: properly use pagination for group event notifiers ( #1512 )
2022-07-31 10:08:48 -08:00
Michael Genson
07fef8af9f
feat: restore frontend sorting for all recipes ( #1497 )
...
* fixed typo
* merged "all recipes" pagination into recipe card
created custom sort card for all recipes
refactored backend calls for all recipes to sort/paginate
* frontend lint fixes
* restored recipes reference
* replaced "this" with reference
* fix linting errors
* re-order context menu
* add todo
Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
2022-07-26 18:08:56 -08:00
Michael Genson
703ee32653
docs: pagination and filtering, and fixed a few broken links ( #1488 )
...
* fixed broken links
* added docs for pagination and filtering
* small revision to pagination response example
2022-07-26 17:45:34 -08:00
Michael Genson
3d4e5441dd
chore: backend page_all route cleanup ( #1483 )
...
* refactored to remove duplicate code
* refactored meal plan slice to use a query filter
2022-07-26 17:43:25 -08:00
Hayden
f00280e32b
New Crowdin updates ( #1480 )
...
* New translations en-US.json (Dutch)
* New translations en-US.json (Czech)
* New translations en-US.json (German)
2022-07-26 17:41:33 -08:00
Hayden
9e6a720cf1
New Crowdin updates ( #1455 )
...
* New translations en-US.json (Swedish)
* New translations en-US.json (Swedish)
* New translations en-US.json (Swedish)
* New translations en-US.json (Lithuanian)
* New translations en-US.json (Lithuanian)
* New translations en-US.json (Lithuanian)
* New translations en-US.json (Lithuanian)
* New translations en-US.json (Lithuanian)
* New translations en-US.json (Slovenian)
* New translations en-US.json (Slovenian)
* New translations en-US.json (Slovenian)
* New translations en-US.json (Slovenian)
* New translations en-US.json (Slovenian)
* New translations en-US.json (Swedish)
* New translations en-US.json (Swedish)
* New translations en-US.json (Slovenian)
* New translations en-US.json (Slovenian)
* New translations en-US.json (Slovenian)
* New translations en-US.json (Slovenian)
* New translations en-US.json (Slovenian)
* New translations en-US.json (Slovenian)
* New translations en-US.json (Slovenian)
* New translations en-US.json (Slovenian)
* New translations en-US.json (Slovenian)
* New translations en-US.json (French, Canada)
* New translations en-US.json (French, Canada)
* New translations en-US.json (French, Canada)
2022-07-09 21:17:34 -08:00
Michael Genson
7f50071312
feat: advanced filtering API ( #1468 )
...
* created query filter classes
* extended pagination to include query filtering
* added filtering tests
* type improvements
* move type help to dev depedency
* minor type and perf fixes
* breakup test cases
Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
2022-07-09 20:57:09 -08:00
Miroito
c64da1fdb7
Feature: Toggle display of ingredient references in recipe instructions ( #1268 )
...
* Better cooking mode
* Fix wrong event sent
* feat/cookmode recipe page integration
* implement scaling in cook mode + minor padding
Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
2022-07-09 20:28:34 -08:00
Michael Genson
2809cef3b1
fix: mealplan pagination ( #1464 )
...
* added pagination to get_slice route
* updated mealplan tests
* renamed vars to match pagination query
2022-07-02 09:44:01 -08:00
Benjamin Pabst
2f7ff6d178
fix: use mtime
instead of ctime
for backup dates ( #1461 )
2022-06-27 07:57:09 -08:00
Hayden
c05e048b65
docs: fix old link
2022-06-26 19:39:35 -08:00
Hayden
157bad0e29
fix: use == operator instead of is_ for sql queries ( #1453 )
2022-06-26 12:42:13 -08:00
Hayden
f96a584a5d
New Crowdin updates ( #1452 )
...
* New translations en-US.json (French)
* New translations en-US.json (French)
* New translations en-US.json (French)
* New translations en-US.json (French)
* New translations en-US.json (Danish)
* New translations en-US.json (Italian)
* New translations en-US.json (Italian)
* New translations en-US.json (Italian)
* New translations en-US.json (Greek)
* New translations en-US.json (Greek)
2022-06-26 11:21:57 -08:00
Miroito
151e20489a
ui: Improve parser ui text display ( #1437 )
...
move text display when open to be below the ingredient portion
2022-06-26 11:20:38 -08:00
Hayden
7dbb0858bd
New Crowdin updates ( #1439 )
...
* New translations en-US.json (Dutch)
* New translations en-US.json (Czech)
* New translations en-US.json (Czech)
* New translations en-US.json (Czech)
2022-06-25 12:20:44 -08:00
Hayden
b921e95163
fix: entry nutrition checker ( #1448 )
2022-06-25 12:19:04 -08:00