Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
browse-dashboards
/
fixtures
/
File Content:
folder.fixture.ts
import { Chance } from 'chance'; import { FolderDTO } from 'app/types'; export function mockFolderDTO(seed = 1, partial?: Partial<FolderDTO>): FolderDTO { const random = Chance(seed); const uid = random.guid(); return { canAdmin: true, canDelete: true, canEdit: true, canSave: true, created: new Date(random.timestamp()).toISOString(), createdBy: '', hasAcl: true, id: 1, title: random.sentence({ words: 3 }), uid, updated: new Date(random.timestamp()).toISOString(), updatedBy: '', url: `/dashboards/f/${uid}`, version: 1, ...partial, }; }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
alertRules.fixture.ts
2954 bytes
0644
dashboardsTreeItem.fixture.ts
3903 bytes
0644
folder.fixture.ts
611 bytes
0644
libraryElements.fixture.ts
977 bytes
0644
state.fixtures.ts
505 bytes
0644
N4ST4R_ID | Naxtarrr