module.ts 470 B

1234567891011121314
  1. import { DataSourcePlugin } from '@grafana/data';
  2. import { ConfigEditor } from './components/ConfigEditor';
  3. import OpenTsDatasource from './datasource';
  4. import { OpenTsQueryCtrl } from './query_ctrl';
  5. class AnnotationsQueryCtrl {
  6. static templateUrl = 'partials/annotations.editor.html';
  7. }
  8. export const plugin = new DataSourcePlugin(OpenTsDatasource)
  9. .setQueryCtrl(OpenTsQueryCtrl)
  10. .setConfigEditor(ConfigEditor)
  11. .setAnnotationQueryCtrl(AnnotationsQueryCtrl);