mirror of
https://github.com/hay-kot/mealie.git
synced 2025-07-10 23:33:41 -07:00
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:
parent
34f52c06a6
commit
1b83c82997
7 changed files with 133 additions and 66 deletions
|
@ -1,4 +1,5 @@
|
|||
import { Plugin } from "@nuxt/types"
|
||||
import { Plugin } from "@nuxt/types";
|
||||
import { Framework } from "vuetify";
|
||||
import { icons } from "~/utils/icons";
|
||||
import { Icon } from "~/utils/icons/icon-type";
|
||||
|
||||
|
@ -15,13 +16,14 @@ declare module "vue/types/vue" {
|
|||
declare module "@nuxt/types" {
|
||||
interface Context {
|
||||
$globals: Globals;
|
||||
$vuetify: Framework;
|
||||
}
|
||||
}
|
||||
|
||||
const globalsPlugin: Plugin = (_, inject) => {
|
||||
inject("globals", {
|
||||
icons
|
||||
icons,
|
||||
});
|
||||
};
|
||||
|
||||
export default globalsPlugin
|
||||
export default globalsPlugin;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue