mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-04 08:40:28 +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 { DaisyTheme } from "~~/lib/data/themes";
|
||||
|
||||
export type ViewType = "table" | "card" | "tree";
|
||||
|
||||
export type LocationViewPreferences = {
|
||||
showDetails: boolean;
|
||||
showEmpty: boolean;
|
||||
editorAdvancedView: boolean;
|
||||
itemDisplayView: ViewType;
|
||||
theme: DaisyTheme;
|
||||
};
|
||||
|
||||
|
@ -19,6 +22,7 @@ export function useViewPreferences(): Ref<LocationViewPreferences> {
|
|||
showDetails: true,
|
||||
showEmpty: true,
|
||||
editorAdvancedView: false,
|
||||
itemDisplayView: "card",
|
||||
theme: "homebox",
|
||||
},
|
||||
{ mergeDefaults: true }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue