MCPcopy Create free account
hub / github.com/bytebase/bytebase / rootTreeNodeFor

Function rootTreeNodeFor

frontend/src/views/sql-editor/Sheet/context.ts:418–424  ·  view source on GitHub ↗
(view: SheetViewMode)

Source from the content-addressed store, hash-verified

416};
417
418const rootTreeNodeFor = (view: SheetViewMode): WorksheetFolderNode => ({
419 isLeaf: false,
420 children: [],
421 key: rootPathFor(view),
422 label: rootLabelFor(view),
423 editable: false,
424});
425
426const ensureFolderPath = (view: SheetViewMode, path: string): string => {
427 const root = rootPathFor(view);

Callers 2

rebuildTreeImplFunction · 0.85
folderTreeFunction · 0.85

Calls 2

rootPathForFunction · 0.85
rootLabelForFunction · 0.85

Tested by

no test coverage detected