module.js 955 B

123456789101112131415161718192021222324252627282930
  1. define([
  2. './datasource',
  3. ],
  4. function (InfluxDatasource) {
  5. 'use strict';
  6. function influxMetricsQueryEditor() {
  7. return {controller: 'InfluxQueryCtrl', templateUrl: 'public/app/plugins/datasource/influxdb/partials/query.editor.html'};
  8. }
  9. function influxMetricsQueryOptions() {
  10. return {templateUrl: 'public/app/plugins/datasource/influxdb/partials/query.options.html'};
  11. }
  12. function influxAnnotationsQueryEditor() {
  13. return {templateUrl: 'public/app/plugins/datasource/influxdb/partials/annotations.editor.html'};
  14. }
  15. function influxConfigView() {
  16. return {templateUrl: 'public/app/plugins/datasource/influxdb/partials/config.html'};
  17. }
  18. return {
  19. Datasource: InfluxDatasource,
  20. metricsQueryEditor: influxMetricsQueryEditor,
  21. metricsQueryOptions: influxMetricsQueryOptions,
  22. annotationsQueryEditor: influxAnnotationsQueryEditor,
  23. configView: influxConfigView,
  24. };
  25. });