Hayden
13e157827c
Fix/fix block registration ( #1059 )
...
* fix disable button
* add backend env for restricting registration
* update state management
* add allow_signup to app info
* move allow_signup to backend only
* cleanup docker-compose
* potential darkmode fix
* fix missing variable
* add banner on login page
* use random bools for tests
* fix initial state bug
* fix state reset
2022-03-15 17:34:53 -08:00
Hayden
3c2744a3da
improve developer tooling (backend) ( #1051 )
...
* add basic pre-commit file
* add flake8
* add isort
* add pep585-upgrade (typing upgrades)
* use namespace for import
* add mypy
* update ci for backend
* flake8 scope
* fix version format
* update makefile
* disable strict option (temporary)
* fix mypy issues
* upgrade type hints (pre-commit)
* add vscode typing check
* add types to dev deps
* remote container draft
* update setup script
* update compose version
* run setup on create
* dev containers update
* remove unused pages
* update setup tips
* expose ports
* Update pre-commit to include flask8-print (#1053 )
* Add in flake8-print to pre-commit
* pin version of flake8-print
* formatting
* update getting strated docs
* add mypy to pre-commit
* purge .mypy_cache on clean
* drop mypy
Co-authored-by: zackbcom <zackbcom@users.noreply.github.com>
2022-03-15 15:01:56 -08:00
Hayden
602f248541
feature/multi-tenancy and move caddy server ( #980 )
...
* update to GUIDs
* fix cookbook id relationships
* update webhook keys
* cleanup naming and attribute orders
* remove old database tables
* fix meal-plan images
* remove dashbaord and events api
* use recipe-id instead of id
* cleanup documentation assets
* cleanup docs for v1 beta-release
* add depends_on for docker-compose
* use docker volumes for examples
* move caddy to frontend container
2022-02-20 14:17:51 -09:00
Hayden
5454d2c8b8
fix sharing errors
2021-12-05 13:35:16 -09:00
Hayden
b7b8aa9a08
Feature/email support ( #720 )
...
* feat(frontend): ✨ add UI for testing email configuration
* feat(backend): ✨ add email service with common templates (WIP)
* test(backend): ✅ add basic tests for email configuration
* set defaults
* add email variables
Co-authored-by: Hayden <hay-kot@pm.me>
2021-10-03 18:38:45 -08:00
Hayden
c0dd07f9e7
Feature/infinite scroll ( #719 )
...
* feat(frontend): ✨ lazy-load all recipes page
* feat(frontend): ✨ enable runtime theme through env-variables
* docs(docs): 📝 update v1 changelog
* bump version
Co-authored-by: Hayden <hay-kot@pm.me>
2021-10-03 14:07:18 -08:00
Hayden
476aefeeb0
refactor(backend): ♻️ cleanup HTTP service classes and remove database singleton ( #687 )
...
* refactor(backend): ♻️ cleanup duplicate code in http services
* refactor(backend): ♻️ refactor database away from singleton design
removed the database single and instead injected the session into a new Database class that is created during each request life-cycle. Now sessions no longer need to be passed into each method on the database
All tests pass, but there are likely some hidden breaking changes that were not discovered.
* fix venv
* disable venv cache
* fix install script
* bump poetry version
* postgres fixes
* revert install
* fix db initialization for postgres
* add postgres to docker
* refactor(backend): ♻️ cleanup unused and duplicate code in http services
* refactor(backend): remove sessions from arguments
* refactor(backend): ♻️ convert units and ingredients to use http service class
* test(backend): ✅ add unit and food tests
* lint
* update tags
* re-enable cache
* fix missing fraction in db
* fix lint
Co-authored-by: hay-kot <hay-kot@pm.me>
2021-09-19 15:31:34 -08:00
hay-kot
1338c42420
fix caddy configuration
2021-08-09 17:37:13 -08:00
hay-kot
fcee79a3e7
fix subpath config
2021-08-08 11:17:03 -08:00
hay-kot
ff2b681980
add nightly CI/CD
2021-08-07 20:22:22 -08:00
Hayden
8a2ed0bd78
use class for conf ( #607 )
...
Co-authored-by: hay-kot <hay-kot@pm.me>
2021-07-01 15:58:50 -08:00
wengtad
7d3983d2ec
remove tmpfs ( #603 )
2021-07-01 12:42:40 -08:00
wengtad
999d0d4322
Optimize Docker ( #575 )
...
* reduce docker dev size
* reduce docker prod size
* fix lint
* add gunicorn
* fix bandit reported issues
* add docs external link icon
* add env vars to docs
* add permission to docker
* merge to one backend Dockerfile
* fix codefactor issues
* add docs for puid/pgid
* add docker healthcheck
2021-06-22 10:22:31 -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
c196445e61
feature/additional-db ( #371 )
...
* add support for setting db_url
* fix tests
* add db_username/password env variables
* init db if super user doesn't exist
* fix tests
* fix tests
* set SQLite default DB_URL
* don't run tests on draft PRs
* add lint/black tests
* add test-all
* spell check settings
* black/flake8
* check format fail
* new badges
* rename workflow
* fix formatting
* remove white-space
* test connection arguments for pg
* format
* add new values to template
* format
* remove old script
* monkeypatch test db
* working docker-compose for postgres
* update docs
* test pg workflow
* format
* add driver
* install w/ poetry
* setup container
* change image
* set database to localhost
* update tests
* set url
* fix url path
* disable cache
* database init
* bust cache
* get by name
Co-authored-by: hay-kot <hay-kot@pm.me>
2021-05-01 13:35:57 -08:00
Hayden
b3573dc078
v0.2.0 ( #143 )
...
* Changed uvicorn port to 80
* Changed port in docker-compose to match dockerfile
* Readded environment variables in docker-compose
* production image rework
* Use opengraph metadata to make basic recipe cards when full recipe metadata is not available
* fixed instrucitons on parse
* add last_recipe
* automated testing
* roadmap update
* Sqlite (#75 )
* file structure
* auto-test
* take 2
* refactor ap scheduler and startup process
* fixed scraper error
* database abstraction
* database abstraction
* port recipes over to new schema
* meal migration
* start settings migration
* finale mongo port
* backup improvements
* migration imports to new DB structure
* unused import cleanup
* docs strings
* settings and theme import logic
* cleanup
* fixed tinydb error
* requirements
* fuzzy search
* remove scratch file
* sqlalchemy models
* improved search ui
* recipe models almost done
* sql modal population
* del scratch
* rewrite database model mixins
* mostly grabage
* recipe updates
* working sqllite
* remove old files and reorganize
* final cleanup
Co-authored-by: Hayden <hay-kot@pm.me>
* Backup card (#78 )
* backup / import dialog
* upgrade to new tag method
* New import card
* rename settings.py to app_config.py
* migrate to poetry for development
* fix failing test
Co-authored-by: Hayden <hay-kot@pm.me>
* added mkdocs to docker-compose
* Translations (#72 )
* Translations + danish
* changed back proxy target to use ENV
* Resolved more merge conflicts
* Removed test in translation
* Documentation of translations
* Updated translations
* removed old packages
Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
* fail to start bug fixes
* feature: prep/cook/total time slots (#80 )
Co-authored-by: Hayden <hay-kot@pm.me>
* missing bind attributes
* Bug fixes (#81 )
* fix: url remains after succesful import
* docs: changelog + update todos
* arm image
* arm compose
* compose updates
* update poetry
* arm support
Co-authored-by: Hayden <hay-kot@pm.me>
* dockerfile hotfix
* dockerfile hotfix
* Version Release Final Touches (#84 )
* Remove slim
* bug: opacity issues
* bug: startup failure with no database
* ci/cd on dev branch
* formatting
* v0.1.0 documentation
Co-authored-by: Hayden <hay-kot@pm.me>
* db init hotfix
* bug: fix crash in mongo
* fix mongo bug
* fixed version notifier
* finale changelog
* Dropping Mongo From Dev Branch (#89 )
* Fix link to Docker Hub
Found an extra s. DESTROYED it.
* initial pass
* second pass cleanup
* backup card framework
* backup card functionality
* translation
* upload button vile creation
* Release v0.1.0 Candidate (#85 )
* Changed uvicorn port to 80
* Changed port in docker-compose to match dockerfile
* Readded environment variables in docker-compose
* production image rework
* Use opengraph metadata to make basic recipe cards when full recipe metadata is not available
* fixed instrucitons on parse
* add last_recipe
* automated testing
* roadmap update
* Sqlite (#75 )
* file structure
* auto-test
* take 2
* refactor ap scheduler and startup process
* fixed scraper error
* database abstraction
* database abstraction
* port recipes over to new schema
* meal migration
* start settings migration
* finale mongo port
* backup improvements
* migration imports to new DB structure
* unused import cleanup
* docs strings
* settings and theme import logic
* cleanup
* fixed tinydb error
* requirements
* fuzzy search
* remove scratch file
* sqlalchemy models
* improved search ui
* recipe models almost done
* sql modal population
* del scratch
* rewrite database model mixins
* mostly grabage
* recipe updates
* working sqllite
* remove old files and reorganize
* final cleanup
Co-authored-by: Hayden <hay-kot@pm.me>
* Backup card (#78 )
* backup / import dialog
* upgrade to new tag method
* New import card
* rename settings.py to app_config.py
* migrate to poetry for development
* fix failing test
Co-authored-by: Hayden <hay-kot@pm.me>
* added mkdocs to docker-compose
* Translations (#72 )
* Translations + danish
* changed back proxy target to use ENV
* Resolved more merge conflicts
* Removed test in translation
* Documentation of translations
* Updated translations
* removed old packages
Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
* fail to start bug fixes
* feature: prep/cook/total time slots (#80 )
Co-authored-by: Hayden <hay-kot@pm.me>
* missing bind attributes
* Bug fixes (#81 )
* fix: url remains after succesful import
* docs: changelog + update todos
* arm image
* arm compose
* compose updates
* update poetry
* arm support
Co-authored-by: Hayden <hay-kot@pm.me>
* dockerfile hotfix
* dockerfile hotfix
* Version Release Final Touches (#84 )
* Remove slim
* bug: opacity issues
* bug: startup failure with no database
* ci/cd on dev branch
* formatting
* v0.1.0 documentation
Co-authored-by: Hayden <hay-kot@pm.me>
* db init hotfix
* bug: fix crash in mongo
* fix mongo bug
* fixed version notifier
* finale changelog
Co-authored-by: kentora <=>
Co-authored-by: Hayden <hay-kot@pm.me>
Co-authored-by: Richard Mitic <richard.h.mitic@gmail.com>
Co-authored-by: kentora <kentora@kentora.dk>
* build container
* webscraper hotfix
* dev bug: change data location to prevent reloads
* api docs
* api docs bug
* workflow update
Co-authored-by: David Young <davidy@funkypenguin.co.nz>
Co-authored-by: Hayden <hay-kot@pm.me>
Co-authored-by: Richard Mitic <richard.h.mitic@gmail.com>
Co-authored-by: kentora <kentora@kentora.dk>
* Add French Translation (#93 )
* New tests (#94 )
* dev-bug: fixed vscode freezes
* test: refactor database init to support tests
Co-authored-by: Hayden <hay-kot@pm.me>
* Mealplan CRUD Tests (#95 )
* dev-bug: fixed vscode freezes
* test: refactor database init to support tests
* mealplan CRUD testing
Co-authored-by: Hayden <hay-kot@pm.me>
* Fix typos (#96 )
* Settings, Themes and Migration Route Tests (#100 )
* dev-bug: fixed vscode freezes
* test: refactor database init to support tests
* mealplan CRUD testing
* restructure test folder
* git attributes
* tests: migration, settings, theme routes testing
Co-authored-by: Hayden <hay-kot@pm.me>
* Refactor + New Docker File (#105 )
* dev-bug: fixed vscode freezes
* test: refactor database init to support tests
* mealplan CRUD testing
* restructure test folder
* git attributes
* tests: migration, settings, theme routes testing
* docker-file shrink
* rebuild
* refactor: moving directories around
* adding funding
Co-authored-by: Hayden <hay-kot@pm.me>
* Meal planner improvements (#107 )
* dev-bug: fixed vscode freezes
* test: refactor database init to support tests
* mealplan CRUD testing
* restructure test folder
* git attributes
* tests: migration, settings, theme routes testing
* docker-file shrink
* rebuild
* refactor: moving directories around
* adding funding
* mealplan redesign
Co-authored-by: Hayden <hay-kot@pm.me>
* Upload component (#108 )
* unified upload button + download backups
* javascript toolings
* fix vuetur config
* fixed type check error
* refactor: clean up bag javascript
Co-authored-by: Hayden <hay-kot@pm.me>
* Upload component (#113 )
* unified upload button + download backups
* javascript toolings
* fix vuetur config
* fixed type check error
* refactor: clean up bag javascript
* UI updates + name validation
* docs: changelog + sp
* fixed route links
* changelog
Co-authored-by: Hayden <hay-kot@pm.me>
* fixed menu links
* fixed poetry install on docker.dev build
* Migration redesign (#119 )
* migration redesign init
* new color picker
* changelog
* added UI language selection
* fix layout issue on recipe editor
* remove git as dependency
* added UI editor for original URL
* CI/CD Tests
* test: fixed migration routes
Co-authored-by: Hayden <hay-kot@pm.me>
* Fix link to dev-notes.md (#110 )
* translation: add swedish (#128 )
* language: da is Danish
* translations: add swedish
* scraper: unescape html in instructions (#129 )
Some urls erroneously deliver escaped html their instructions,
sometimes they are even escaped on multiple levels like here:
https://www.ica.se/recept/kladdig-kladdkaka-722982/
```
>>> normalize_instruction("S&auml;tt ugnen p&aring; 200&deg;C.")
'Sätt ugnen på 200°C.'
```
* v0.2.0 Updates (#130 )
* migration redesign init
* new color picker
* changelog
* added UI language selection
* fix layout issue on recipe editor
* remove git as dependency
* added UI editor for original URL
* CI/CD Tests
* test: fixed migration routes
* test todos
* bug/added docker volume
* chowdow test data
* partial image recipe image testing
* added card section card
* settings form
* homepage cetegory ui
* frontend category placeholder
* fixed broken scheduler
* remove old files
* removed temp test
Co-authored-by: Hayden <hay-kot@pm.me>
* Fix missing translations key (#133 )
* translation: add simplified & traditional chinese
* Fix missing translations
* fix chinese translations
* v0.2.0 Release Candidate (#141 )
* Fix link to Docker Hub
Found an extra s. DESTROYED it.
* Release v0.1.0 Candidate (#85 )
* Changed uvicorn port to 80
* Changed port in docker-compose to match dockerfile
* Readded environment variables in docker-compose
* production image rework
* Use opengraph metadata to make basic recipe cards when full recipe metadata is not available
* fixed instrucitons on parse
* add last_recipe
* automated testing
* roadmap update
* Sqlite (#75 )
* file structure
* auto-test
* take 2
* refactor ap scheduler and startup process
* fixed scraper error
* database abstraction
* database abstraction
* port recipes over to new schema
* meal migration
* start settings migration
* finale mongo port
* backup improvements
* migration imports to new DB structure
* unused import cleanup
* docs strings
* settings and theme import logic
* cleanup
* fixed tinydb error
* requirements
* fuzzy search
* remove scratch file
* sqlalchemy models
* improved search ui
* recipe models almost done
* sql modal population
* del scratch
* rewrite database model mixins
* mostly grabage
* recipe updates
* working sqllite
* remove old files and reorganize
* final cleanup
Co-authored-by: Hayden <hay-kot@pm.me>
* Backup card (#78 )
* backup / import dialog
* upgrade to new tag method
* New import card
* rename settings.py to app_config.py
* migrate to poetry for development
* fix failing test
Co-authored-by: Hayden <hay-kot@pm.me>
* added mkdocs to docker-compose
* Translations (#72 )
* Translations + danish
* changed back proxy target to use ENV
* Resolved more merge conflicts
* Removed test in translation
* Documentation of translations
* Updated translations
* removed old packages
Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
* fail to start bug fixes
* feature: prep/cook/total time slots (#80 )
Co-authored-by: Hayden <hay-kot@pm.me>
* missing bind attributes
* Bug fixes (#81 )
* fix: url remains after succesful import
* docs: changelog + update todos
* arm image
* arm compose
* compose updates
* update poetry
* arm support
Co-authored-by: Hayden <hay-kot@pm.me>
* dockerfile hotfix
* dockerfile hotfix
* Version Release Final Touches (#84 )
* Remove slim
* bug: opacity issues
* bug: startup failure with no database
* ci/cd on dev branch
* formatting
* v0.1.0 documentation
Co-authored-by: Hayden <hay-kot@pm.me>
* db init hotfix
* bug: fix crash in mongo
* fix mongo bug
* fixed version notifier
* finale changelog
Co-authored-by: kentora <=>
Co-authored-by: Hayden <hay-kot@pm.me>
Co-authored-by: Richard Mitic <richard.h.mitic@gmail.com>
Co-authored-by: kentora <kentora@kentora.dk>
* build container
* webscraper hotfix
* notes hot fix
* bug: mongo updates fail #99
* Fix error message (#101 )
* gh funding
* Create Issue Templates (#125 )
* Create bug_report.md
* Create config.yml
Included a link to feature requests.
* Update config.yml
Fixed link I had for testing to the actual link
* Update bug_report.md
fix capitalization
* Update .github/ISSUE_TEMPLATE/bug_report.md
Co-authored-by: Stephen Brown II <Stephen.Brown2@gmail.com>
Co-authored-by: Stephen Brown II <Stephen.Brown2@gmail.com>
* merge kentors changes
* refactor/recipe routers
* category/tag database relationship and endpoints
* frontend category management
* update branch todos
* bug/normalize recipe steps html
* remove console.log + refactor categories
* fix categories database errors
* refactor/ router endpoint
* refactor/ remove old code
* drag and drop ingredients
* general cleanup
* route refactoring
* changelog
* api refactoring + random cleanup
* fixed backwards sort
* Update mkdocs.yml (#137 )
Fix warning from Deploy Docs github action
* fixed navigate on enter in search
* refactor/create global css
* added category scroll
* cleanup todos
* debug routes
* docs/new gifs & general updates
* cleanup
* fix list test
Co-authored-by: David Young <davidy@funkypenguin.co.nz>
Co-authored-by: Hayden <hay-kot@pm.me>
Co-authored-by: Richard Mitic <richard.h.mitic@gmail.com>
Co-authored-by: kentora <kentora@kentora.dk>
Co-authored-by: Alexei Pesic <pesic.alexei@gmail.com>
Co-authored-by: Andrew <dpieski@gmail.com>
Co-authored-by: Stephen Brown II <Stephen.Brown2@gmail.com>
* fix build
* fix duplicate editor
* fixed docker mount problem
* python 3.9
* added tasks for non-docker development
* remove old scripts
* dev updates
* fixed no image upload option
* get version from backend
* final docs pass
* .gitignore
Co-authored-by: kentora <=>
Co-authored-by: Hayden <hay-kot@pm.me>
Co-authored-by: Richard Mitic <richard.h.mitic@gmail.com>
Co-authored-by: kentora <kentora@kentora.dk>
Co-authored-by: David Young <davidy@funkypenguin.co.nz>
Co-authored-by: Bastien <43323819+Batgame@users.noreply.github.com>
Co-authored-by: sephrat <34862846+sephrat@users.noreply.github.com>
Co-authored-by: Nick CJ <17556895+nickcj931@users.noreply.github.com>
Co-authored-by: dekvall <dkvldev@gmail.com>
Co-authored-by: wengtad <wengtad93@gmail.com>
Co-authored-by: Alexei Pesic <pesic.alexei@gmail.com>
Co-authored-by: Andrew <dpieski@gmail.com>
Co-authored-by: Stephen Brown II <Stephen.Brown2@gmail.com>
2021-02-08 09:47:40 -09:00
Hayden
81fc0c6cb2
bug: mongo updates fail #99
2021-01-19 16:59:26 -09:00
Hayden
88dfd40b8d
Release v0.1.0 Candidate ( #85 )
...
* Changed uvicorn port to 80
* Changed port in docker-compose to match dockerfile
* Readded environment variables in docker-compose
* production image rework
* Use opengraph metadata to make basic recipe cards when full recipe metadata is not available
* fixed instrucitons on parse
* add last_recipe
* automated testing
* roadmap update
* Sqlite (#75 )
* file structure
* auto-test
* take 2
* refactor ap scheduler and startup process
* fixed scraper error
* database abstraction
* database abstraction
* port recipes over to new schema
* meal migration
* start settings migration
* finale mongo port
* backup improvements
* migration imports to new DB structure
* unused import cleanup
* docs strings
* settings and theme import logic
* cleanup
* fixed tinydb error
* requirements
* fuzzy search
* remove scratch file
* sqlalchemy models
* improved search ui
* recipe models almost done
* sql modal population
* del scratch
* rewrite database model mixins
* mostly grabage
* recipe updates
* working sqllite
* remove old files and reorganize
* final cleanup
Co-authored-by: Hayden <hay-kot@pm.me>
* Backup card (#78 )
* backup / import dialog
* upgrade to new tag method
* New import card
* rename settings.py to app_config.py
* migrate to poetry for development
* fix failing test
Co-authored-by: Hayden <hay-kot@pm.me>
* added mkdocs to docker-compose
* Translations (#72 )
* Translations + danish
* changed back proxy target to use ENV
* Resolved more merge conflicts
* Removed test in translation
* Documentation of translations
* Updated translations
* removed old packages
Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
* fail to start bug fixes
* feature: prep/cook/total time slots (#80 )
Co-authored-by: Hayden <hay-kot@pm.me>
* missing bind attributes
* Bug fixes (#81 )
* fix: url remains after succesful import
* docs: changelog + update todos
* arm image
* arm compose
* compose updates
* update poetry
* arm support
Co-authored-by: Hayden <hay-kot@pm.me>
* dockerfile hotfix
* dockerfile hotfix
* Version Release Final Touches (#84 )
* Remove slim
* bug: opacity issues
* bug: startup failure with no database
* ci/cd on dev branch
* formatting
* v0.1.0 documentation
Co-authored-by: Hayden <hay-kot@pm.me>
* db init hotfix
* bug: fix crash in mongo
* fix mongo bug
* fixed version notifier
* finale changelog
Co-authored-by: kentora <=>
Co-authored-by: Hayden <hay-kot@pm.me>
Co-authored-by: Richard Mitic <richard.h.mitic@gmail.com>
Co-authored-by: kentora <kentora@kentora.dk>
2021-01-17 22:22:54 -09:00
Hayden
d81ea8ead5
docker image updates
2021-01-09 13:13:16 -09:00
Hayden
8631152aa3
docker file
2021-01-01 16:56:19 -09:00
Hayden
beed8576c2
init 2
2020-12-24 16:37:38 -09:00