module.ts 783 B

123456789101112131415161718192021222324252627282930313233343536
  1. ///<reference path="../../../headers/common.d.ts" />
  2. import angular from 'angular';
  3. import {MysqlDatasource} from './datasource';
  4. import {QueryCtrl} from 'app/plugins/sdk';
  5. class MysqlQueryCtrl extends QueryCtrl {
  6. static templateUrl = 'partials/query.editor.html';
  7. resultFormats: any;
  8. target: any;
  9. constructor($scope, $injector) {
  10. super($scope, $injector);
  11. this.target.resultFormat = 'time_series';
  12. this.target.alias = "";
  13. this.resultFormats = [
  14. {text: 'Time series', value: 'time_series'},
  15. {text: 'Table', value: 'table'},
  16. ];
  17. }
  18. }
  19. class MysqlConfigCtrl {
  20. static templateUrl = 'partials/config.html';
  21. }
  22. export {
  23. MysqlDatasource,
  24. MysqlDatasource as Datasource,
  25. MysqlQueryCtrl as QueryCtrl,
  26. MysqlConfigCtrl as ConfigCtrl,
  27. };