1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-25 08:09:41 +02:00
mealie/frontend/components/Domain/Recipe
Hayden 9ecef4c25f
chore: file generation cleanup (#1736)
This PR does too many things :( 

1. Major refactoring of the dev/scripts and dev/code-generation folders. 

Primarily this was removing duplicate code and cleaning up some poorly written code snippets as well as making them more idempotent so then can be re-run over and over again but still maintain the same results. This is working on my machine, but I've been having problems in CI and comparing diffs so running generators in CI will have to wait. 

2. Re-Implement using the generated api routes for testing

This was a _huge_ refactor that touched damn near every test file but now we have auto-generated typed routes with inline hints and it's used for nearly every test excluding a few that use classes for better parameterization. This should greatly reduce errors when writing new tests. 

3. Minor Perf improvements for the All Recipes endpoint

  A. Removed redundant loops
  B. Uses orjson to do the encoding directly and returns a byte response instead of relying on the default 
       jsonable_encoder.

4. Fix some TS type errors that cropped up for seemingly no reason half way through the PR.

See this issue https://github.com/phillipdupuis/pydantic-to-typescript/issues/28

Basically, the generated TS type is not-correct since Pydantic will automatically fill in null fields. The resulting TS type is generated with a ? to indicate it can be null even though we _know_ that i can't be.
2022-10-18 14:49:41 -08:00
..
RecipeOcrEditorPage chore: file generation cleanup (#1736) 2022-10-18 14:49:41 -08:00
RecipePage feat (WIP): bring png OCR scanning support (#1670) 2022-09-25 15:00:45 -08:00
RecipeActionMenu.vue feat (WIP): bring png OCR scanning support (#1670) 2022-09-25 15:00:45 -08:00
RecipeAssets.vue fix: unsafe window access on recipe assets (#1613) 2022-08-28 13:54:32 -08:00
RecipeCard.vue feat: public recipe access (#1610) 2022-08-28 20:08:33 -08:00
RecipeCardImage.vue feature: proper multi-tenant-support (#969)(WIP) 2022-02-13 12:23:42 -09:00
RecipeCardMobile.vue feat: public recipe access (#1610) 2022-08-28 20:08:33 -08:00
RecipeCardSection.vue feat: added "cookbook" filter to recipe pagination to serve frontend (#1609) 2022-09-10 08:59:30 -08:00
RecipeChips.vue Fix/category link (#1087) 2022-03-22 21:08:06 -08:00
RecipeComments.vue chore: make vue domain components localizable (#1532) 2022-08-09 21:12:45 -08:00
RecipeContextMenu.vue feat: public recipe access (#1610) 2022-08-28 20:08:33 -08:00
RecipeDataTable.vue chore: make vue domain components localizable (#1532) 2022-08-09 21:12:45 -08:00
RecipeDialogBulkAdd.vue feat (WIP): bring png OCR scanning support (#1670) 2022-09-25 15:00:45 -08:00
RecipeDialogSearch.vue chore: make vue domain components localizable (#1532) 2022-08-09 21:12:45 -08:00
RecipeDialogShare.vue feat: public recipe access (#1610) 2022-08-28 20:08:33 -08:00
RecipeFavoriteBadge.vue Fix/multiple bug reports (#1002) 2022-02-23 15:04:45 -09:00
RecipeImageUploadBtn.vue Use composition API for more components, enable more type checking (#914) 2022-01-08 21:15:23 -09:00
RecipeIngredientEditor.vue feat (WIP): bring png OCR scanning support (#1670) 2022-09-25 15:00:45 -08:00
RecipeIngredientHtml.vue refactor: recipe-page (#1587) 2022-08-27 10:44:58 -08:00
RecipeIngredients.vue security: multiple reported CVE fixes (#1515) 2022-07-31 13:10:20 -08:00
RecipeInstructions.vue feat (WIP): bring png OCR scanning support (#1670) 2022-09-25 15:00:45 -08:00
RecipeList.vue Feature/shopping lists second try (#927) 2022-01-16 15:24:24 -09:00
RecipeNotes.vue refactor: recipe-page (#1587) 2022-08-27 10:44:58 -08:00
RecipeNutrition.vue fix: entry nutrition checker (#1448) 2022-06-25 12:19:04 -08:00
RecipeOrganizerDialog.vue chore: make vue domain components localizable (#1532) 2022-08-09 21:12:45 -08:00
RecipeOrganizerPage.vue chore: make vue domain components localizable (#1532) 2022-08-09 21:12:45 -08:00
RecipeOrganizerSelector.vue chore: make vue domain components localizable (#1532) 2022-08-09 21:12:45 -08:00
RecipePrintView.vue fix: print view for recipes with multiple ingredient sections (#1580) 2022-08-19 23:01:55 -08:00
RecipeRating.vue Use composition API for more components, enable more type checking (#914) 2022-01-08 21:15:23 -09:00
RecipeScaleEditButton.vue chore: make vue domain components localizable (#1532) 2022-08-09 21:12:45 -08:00
RecipeSearchFilterSelector.vue feat: add peak toggle for seeing original ingredient txt (#1111) 2022-03-29 09:38:23 -08:00
RecipeSettingsMenu.vue feat: bulk recipe settings update (#1557) 2022-08-14 10:37:44 -08:00
RecipeSettingsSwitches.vue feat: bulk recipe settings update (#1557) 2022-08-14 10:37:44 -08:00
RecipeTimeCard.vue Style/update mobile styles (#1008) 2022-02-26 14:00:55 -09:00
RecipeTools.vue chore: make vue domain components localizable (#1532) 2022-08-09 21:12:45 -08:00