From 07fef8af9f0c328e095f1e3c9c6bae721b7c0243 Mon Sep 17 00:00:00 2001 From: Michael Genson <71845777+michael-genson@users.noreply.github.com> Date: Tue, 26 Jul 2022 21:08:56 -0500 Subject: [PATCH] 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> --- .../Domain/Recipe/RecipeCardSection.vue | 209 ++++++++++++++++-- frontend/composables/recipes/use-recipes.ts | 6 +- frontend/pages/recipes/all.vue | 47 ++-- frontend/pages/recipes/categories/index.vue | 2 +- 4 files changed, 211 insertions(+), 53 deletions(-) diff --git a/frontend/components/Domain/Recipe/RecipeCardSection.vue b/frontend/components/Domain/Recipe/RecipeCardSection.vue index 343f385657f5..a77ddf0be521 100644 --- a/frontend/components/Domain/Recipe/RecipeCardSection.vue +++ b/frontend/components/Domain/Recipe/RecipeCardSection.vue @@ -14,18 +14,50 @@ {{ $vuetify.breakpoint.xsOnly ? null : $t("general.random") }} - + + + + + + {{ $globals.icons.orderAlphabeticalAscending }} + + {{ $t("general.sort-alphabetically") }} + + + + {{ $globals.icons.star }} + + {{ $t("general.rating") }} + + + + {{ $globals.icons.newBox }} + + {{ $t("general.created") }} + + + + {{ $globals.icons.update }} + + {{ $t("general.updated") }} + + + + {{ $globals.icons.shuffleVariant }} + + {{ $t("general.shuffle") }} + + + +