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>
This commit is contained in:
Michael Genson
2022-07-31 14:39:35 -05:00
committed by GitHub
parent 34f52c06a6
commit 1b83c82997
7 changed files with 133 additions and 66 deletions

View File

@@ -78,6 +78,14 @@ export interface Icon {
shareVariant: string;
shuffleVariant: string;
sort: string;
sortAscending: string;
sortDescending: string;
sortAlphabeticalAscending: string;
sortAlphabeticalDescending: string;
sortCalendarAscending: string;
sortCalendarDescending: string;
sortClockAscending: string;
sortClockDescending: string;
star: string;
testTube: string;
tools: string;

View File

@@ -45,6 +45,14 @@ import {
mdiCodeJson,
mdiCog,
mdiSort,
mdiSortAscending,
mdiSortDescending,
mdiSortAlphabeticalAscending,
mdiSortAlphabeticalDescending,
mdiSortCalendarAscending,
mdiSortCalendarDescending,
mdiSortClockAscending,
mdiSortClockDescending,
mdiOrderAlphabeticalAscending,
mdiStar,
mdiNewBox,
@@ -194,6 +202,14 @@ export const icons = {
shareVariant: mdiShareVariant,
shuffleVariant: mdiShuffleVariant,
sort: mdiSort,
sortAscending: mdiSortAscending,
sortDescending: mdiSortDescending,
sortAlphabeticalAscending: mdiSortAlphabeticalAscending,
sortAlphabeticalDescending: mdiSortAlphabeticalDescending,
sortCalendarAscending: mdiSortCalendarAscending,
sortCalendarDescending: mdiSortCalendarDescending,
sortClockAscending: mdiSortClockAscending,
sortClockDescending: mdiSortClockDescending,
star: mdiStar,
testTube: mdiTestTube,
tools: mdiTools,