module.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import {InfluxDatasource} from './datasource';
  2. import {InfluxQueryCtrl} from './query_ctrl';
  3. class InfluxConfigCtrl {
  4. static templateUrl = 'public/app/plugins/datasource/influxdb/partials/config.html';
  5. }
  6. class InfluxQueryOptionsCtrl {
  7. static templateUrl = 'public/app/plugins/datasource/influxdb/partials/query.options.html';
  8. }
  9. class InfluxAnnotationsQueryCtrl {
  10. static templateUrl = 'public/app/plugins/datasource/influxdb/partials/annotations.editor.html';
  11. }
  12. export {
  13. InfluxDatasource as Datasource,
  14. InfluxQueryCtrl as QueryCtrl,
  15. InfluxConfigCtrl as ConfigCtrl,
  16. InfluxQueryOptionsCtrl as QueryOptionsCtrl,
  17. InfluxAnnotationsQueryCtrl as AnnotationsQueryCtrl,
  18. };
  19. // define([
  20. // './datasource',
  21. // ],
  22. // function (InfluxDatasource) {
  23. // 'use strict';
  24. //
  25. // function influxMetricsQueryEditor() {
  26. // return {controller: 'InfluxQueryCtrl', templateUrl: 'public/app/plugins/datasource/influxdb/partials/query.editor.html'};
  27. // }
  28. //
  29. // function influxMetricsQueryOptions() {
  30. // return {templateUrl: 'public/app/plugins/datasource/influxdb/partials/query.options.html'};
  31. // }
  32. //
  33. // function influxAnnotationsQueryEditor() {
  34. // return {templateUrl: 'public/app/plugins/datasource/influxdb/partials/annotations.editor.html'};
  35. // }
  36. //
  37. // function influxConfigView() {
  38. // return {templateUrl: 'public/app/plugins/datasource/influxdb/partials/config.html'};
  39. // }
  40. //
  41. // return {
  42. // Datasource: InfluxDatasource,
  43. // metricsQueryEditor: influxMetricsQueryEditor,
  44. // metricsQueryOptions: influxMetricsQueryOptions,
  45. // annotationsQueryEditor: influxAnnotationsQueryEditor,
  46. // configView: influxConfigView,
  47. // };
  48. // });