mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
3c6e0e8ef8
* Add and configure eslint-plugin-import * Fix the lint:ts npm command * Autofix + prettier all the files * Manually fix remaining files * Move jquery code in jest-setup to external file to safely reorder imports * Resolve issue caused by circular dependencies within Prometheus * Update .betterer.results * Fix missing // @ts-ignore * ignore iconBundle.ts * Fix missing // @ts-ignore
27 lines
832 B
TypeScript
27 lines
832 B
TypeScript
import { Registry } from '@grafana/data';
|
|
|
|
import { CanvasElementItem, CanvasElementOptions } from './element';
|
|
import { buttonItem } from './elements/button';
|
|
import { droneFrontItem } from './elements/droneFront';
|
|
import { droneSideItem } from './elements/droneSide';
|
|
import { droneTopItem } from './elements/droneTop';
|
|
import { iconItem } from './elements/icon';
|
|
import { textBoxItem } from './elements/textBox';
|
|
import { windTurbineItem } from './elements/windTurbine';
|
|
|
|
export const DEFAULT_CANVAS_ELEMENT_CONFIG: CanvasElementOptions = {
|
|
...iconItem.getNewOptions(),
|
|
type: iconItem.id,
|
|
name: `Element 1`,
|
|
};
|
|
|
|
export const canvasElementRegistry = new Registry<CanvasElementItem>(() => [
|
|
iconItem, // default for now
|
|
textBoxItem,
|
|
buttonItem,
|
|
droneTopItem,
|
|
droneFrontItem,
|
|
droneSideItem,
|
|
windTurbineItem,
|
|
]);
|