feat: rebuild search UI w/ new filters (#269)

This commit is contained in:
Hayden
2023-02-09 17:47:41 -09:00
committed by GitHub
parent ce2fc7712a
commit ab22ea6a25
10 changed files with 524 additions and 134 deletions

View File

@@ -4,7 +4,7 @@ import { TreeItem } from "~~/lib/api/types/data-contracts";
export interface FlatTreeItem {
id: string;
name: string;
display: string;
treeString: string;
}
export function flatTree(tree: TreeItem[]): Ref<FlatTreeItem[]> {
@@ -18,7 +18,7 @@ export function flatTree(tree: TreeItem[]): Ref<FlatTreeItem[]> {
v.value.push({
id: item.id,
name: item.name,
display: display + item.name,
treeString: display + item.name,
});
if (item.children) {
flatten(item.children, display + item.name + " > ");