Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
test
/
fixtures
/
File Content:
panelModel.fixture.ts
import { Chance } from 'chance'; import { PanelModel } from '@grafana/data'; export function wellFormedPanelModel<T extends object>(panelOptions: T, seed = 1): PanelModel<T> { const random = Chance(seed); return { id: random.integer(), type: random.word(), title: random.sentence({ words: 3 }), description: random.sentence({ words: 10 }), options: panelOptions, fieldConfig: { defaults: {}, overrides: [], }, pluginVersion: '9.5.0', targets: [], }; }
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
panelModel.fixture.ts
509 bytes
0644
N4ST4R_ID | Naxtarrr