mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-26 07:13:37 +01:00
feat: locations tree viewer (#248)
* location tree API * test fixes * initial tree location elements * locations tree page * update meta-data * code-gen * store item display preferences * introduce basic table/card view elements * codegen * set parent location during location creation * add item support for tree query * refactor tree view * wip: location selector improvements * type gen * rename items -> search * remove various log statements * fix markdown rendering for description * update location selectors * fix tests * fix currency tests * formatting
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user