mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-04 00:30:27 +00:00
store item display preferences
This commit is contained in:
parent
1c845f442e
commit
1aeab60045
1 changed files with 4 additions and 0 deletions
|
@ -1,10 +1,13 @@
|
||||||
import { Ref } from "vue";
|
import { Ref } from "vue";
|
||||||
import { DaisyTheme } from "~~/lib/data/themes";
|
import { DaisyTheme } from "~~/lib/data/themes";
|
||||||
|
|
||||||
|
export type ViewType = "table" | "card" | "tree";
|
||||||
|
|
||||||
export type LocationViewPreferences = {
|
export type LocationViewPreferences = {
|
||||||
showDetails: boolean;
|
showDetails: boolean;
|
||||||
showEmpty: boolean;
|
showEmpty: boolean;
|
||||||
editorAdvancedView: boolean;
|
editorAdvancedView: boolean;
|
||||||
|
itemDisplayView: ViewType;
|
||||||
theme: DaisyTheme;
|
theme: DaisyTheme;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -19,6 +22,7 @@ export function useViewPreferences(): Ref<LocationViewPreferences> {
|
||||||
showDetails: true,
|
showDetails: true,
|
||||||
showEmpty: true,
|
showEmpty: true,
|
||||||
editorAdvancedView: false,
|
editorAdvancedView: false,
|
||||||
|
itemDisplayView: "card",
|
||||||
theme: "homebox",
|
theme: "homebox",
|
||||||
},
|
},
|
||||||
{ mergeDefaults: true }
|
{ mergeDefaults: true }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue