module.ts 891 B

123456789101112131415161718192021222324252627282930
  1. import InfluxDatasource from './datasource';
  2. import { InfluxQueryCtrl } from './query_ctrl';
  3. import {
  4. createChangeHandler,
  5. createResetHandler,
  6. PasswordFieldEnum,
  7. } from '../../../features/datasources/utils/passwordHandlers';
  8. class InfluxConfigCtrl {
  9. static templateUrl = 'partials/config.html';
  10. current: any;
  11. onPasswordReset: ReturnType<typeof createResetHandler>;
  12. onPasswordChange: ReturnType<typeof createChangeHandler>;
  13. constructor() {
  14. this.onPasswordReset = createResetHandler(this, PasswordFieldEnum.Password);
  15. this.onPasswordChange = createChangeHandler(this, PasswordFieldEnum.Password);
  16. }
  17. }
  18. class InfluxAnnotationsQueryCtrl {
  19. static templateUrl = 'partials/annotations.editor.html';
  20. }
  21. export {
  22. InfluxDatasource as Datasource,
  23. InfluxQueryCtrl as QueryCtrl,
  24. InfluxConfigCtrl as ConfigCtrl,
  25. InfluxAnnotationsQueryCtrl as AnnotationsQueryCtrl,
  26. };