mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-30 08:20:33 +00:00
feat: add connection group management and sidebar layout persistence
This commit is contained in:
+16
-1
@@ -80,12 +80,27 @@ export interface QueryResult {
|
||||
}
|
||||
|
||||
export type TreeNodeType =
|
||||
| "connection" | "database" | "schema" | "table" | "view"
|
||||
| "connection" | "connection-group" | "database" | "schema" | "table" | "view"
|
||||
| "group-columns" | "group-indexes" | "group-fkeys" | "group-triggers"
|
||||
| "column" | "index" | "fkey" | "trigger"
|
||||
| "redis-db"
|
||||
| "mongo-db" | "mongo-collection";
|
||||
|
||||
export interface ConnectionGroup {
|
||||
id: string;
|
||||
name: string;
|
||||
collapsed: boolean;
|
||||
}
|
||||
|
||||
export type SidebarOrderEntry =
|
||||
| { type: "group"; id: string; connectionIds: string[] }
|
||||
| { type: "connection"; id: string };
|
||||
|
||||
export interface SidebarLayout {
|
||||
groups: ConnectionGroup[];
|
||||
order: SidebarOrderEntry[];
|
||||
}
|
||||
|
||||
export interface TreeNode {
|
||||
id: string;
|
||||
label: string;
|
||||
|
||||
Reference in New Issue
Block a user