mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* TestData: added support for nested data source variable queries, and test dashboard * Added drilldown dashboards * Fixed typescript issue
23 lines
672 B
TypeScript
23 lines
672 B
TypeScript
import { DataSourcePlugin } from '@grafana/ui';
|
|
import { TestDataDataSource } from './datasource';
|
|
import { TestDataQueryCtrl } from './query_ctrl';
|
|
import { TestInfoTab } from './TestInfoTab';
|
|
import { ConfigEditor } from './ConfigEditor';
|
|
|
|
class TestDataAnnotationsQueryCtrl {
|
|
annotation: any;
|
|
constructor() {}
|
|
static template = '<h2>Annotation scenario</h2>';
|
|
}
|
|
|
|
export const plugin = new DataSourcePlugin(TestDataDataSource)
|
|
.setConfigEditor(ConfigEditor)
|
|
.setQueryCtrl(TestDataQueryCtrl)
|
|
.setAnnotationQueryCtrl(TestDataAnnotationsQueryCtrl)
|
|
.addConfigPage({
|
|
title: 'Setup',
|
|
icon: 'fa fa-list-alt',
|
|
body: TestInfoTab,
|
|
id: 'setup',
|
|
});
|