cleanup: removed unused typescript typings import

pull/10442/head
Torkel Ödegaard 8 years ago
parent c42a232644
commit 27835f373e
  1. 2
      public/app/app.ts
  2. 2
      public/app/core/components/gf_page.ts
  3. 2
      public/app/core/components/help/help.ts
  4. 2
      public/app/core/components/info_popover.ts
  5. 2
      public/app/core/components/org_switcher.ts
  6. 2
      public/app/core/components/query_part/query_part.ts
  7. 2
      public/app/core/components/query_part/query_part_editor.ts
  8. 2
      public/app/core/components/switch.ts
  9. 2
      public/app/core/controllers/signup_ctrl.ts
  10. 2
      public/app/core/directives/array_join.ts
  11. 2
      public/app/core/directives/diff-view.ts
  12. 2
      public/app/core/directives/give_focus.ts
  13. 2
      public/app/core/filters/filters.ts
  14. 2
      public/app/core/services/alert_srv.ts
  15. 2
      public/app/core/services/backend_srv.ts
  16. 2
      public/app/core/services/dynamic_directive_srv.ts
  17. 2
      public/app/core/services/popover_srv.ts
  18. 2
      public/app/core/services/util_srv.ts
  19. 2
      public/app/core/utils/css_loader.ts
  20. 2
      public/app/core/utils/datemath.ts
  21. 2
      public/app/core/utils/emitter.ts
  22. 2
      public/app/core/utils/rangeutil.ts
  23. 2
      public/app/features/alerting/alert_tab_ctrl.ts
  24. 2
      public/app/features/alerting/notification_edit_ctrl.ts
  25. 2
      public/app/features/alerting/notifications_list_ctrl.ts
  26. 2
      public/app/features/dashboard/acl/acl.ts
  27. 2
      public/app/features/dashboard/ad_hoc_filters.ts
  28. 2
      public/app/features/dashboard/alerting_srv.ts
  29. 2
      public/app/features/dashboard/save_modal.ts
  30. 2
      public/app/features/dashboard/submenu/submenu.ts
  31. 2
      public/app/features/dashboard/time_srv.ts
  32. 2
      public/app/features/dashboard/unsaved_changes_modal.ts
  33. 2
      public/app/features/dashboard/upload.ts
  34. 2
      public/app/features/org/prefs_control.ts
  35. 2
      public/app/features/org/teams_ctrl.ts
  36. 2
      public/app/features/panel/panel_editor_tab.ts
  37. 2
      public/app/features/panel/panel_header.ts
  38. 2
      public/app/features/panel/query_ctrl.ts
  39. 2
      public/app/features/panel/query_editor_row.ts
  40. 2
      public/app/features/panel/query_troubleshooter.ts
  41. 2
      public/app/features/playlist/playlist_search.ts
  42. 2
      public/app/features/playlist/playlist_srv.ts
  43. 2
      public/app/features/playlist/playlists_ctrl.ts
  44. 2
      public/app/features/plugins/import_list/import_list.ts
  45. 2
      public/app/features/plugins/plugin_edit_ctrl.ts
  46. 2
      public/app/features/plugins/row_ctrl.ts
  47. 2
      public/app/features/snapshot/snapshot_ctrl.ts
  48. 2
      public/app/features/templating/constant_variable.ts
  49. 2
      public/app/features/templating/custom_variable.ts
  50. 2
      public/app/features/templating/datasource_variable.ts
  51. 2
      public/app/features/templating/interval_variable.ts
  52. 2
      public/app/features/templating/variable_srv.ts
  53. 11
      public/app/headers/common.d.ts
  54. 2
      public/app/plugins/app/testdata/module.ts
  55. 2
      public/app/plugins/datasource/cloudwatch/config_ctrl.ts
  56. 2
      public/app/plugins/datasource/cloudwatch/query_ctrl.ts
  57. 2
      public/app/plugins/datasource/elasticsearch/datasource.ts
  58. 2
      public/app/plugins/datasource/elasticsearch/elastic_response.ts
  59. 2
      public/app/plugins/datasource/elasticsearch/query_ctrl.ts
  60. 2
      public/app/plugins/datasource/elasticsearch/query_def.ts
  61. 2
      public/app/plugins/datasource/grafana-live/datasource.ts
  62. 2
      public/app/plugins/datasource/grafana-live/module.ts
  63. 2
      public/app/plugins/datasource/graphite/config_ctrl.ts
  64. 2
      public/app/plugins/datasource/graphite/datasource.ts
  65. 2
      public/app/plugins/datasource/graphite/lexer.ts
  66. 2
      public/app/plugins/datasource/influxdb/influx_query.ts
  67. 2
      public/app/plugins/datasource/influxdb/query_part.ts
  68. 2
      public/app/plugins/datasource/mixed/datasource.ts
  69. 2
      public/app/plugins/datasource/mixed/module.ts
  70. 2
      public/app/plugins/datasource/mysql/datasource.ts
  71. 2
      public/app/plugins/datasource/mysql/module.ts
  72. 2
      public/app/plugins/datasource/mysql/query_ctrl.ts
  73. 2
      public/app/plugins/datasource/mysql/response_parser.ts
  74. 2
      public/app/plugins/datasource/opentsdb/config_ctrl.ts
  75. 2
      public/app/plugins/datasource/opentsdb/query_ctrl.ts
  76. 2
      public/app/plugins/datasource/postgres/datasource.ts
  77. 2
      public/app/plugins/datasource/postgres/module.ts
  78. 2
      public/app/plugins/datasource/postgres/query_ctrl.ts
  79. 2
      public/app/plugins/datasource/postgres/response_parser.ts
  80. 2
      public/app/plugins/datasource/prometheus/completer.ts
  81. 2
      public/app/plugins/panel/alertlist/module.ts
  82. 2
      public/app/plugins/panel/gettingstarted/module.ts
  83. 2
      public/app/plugins/panel/graph/axes_editor.ts
  84. 2
      public/app/plugins/panel/graph/module.ts
  85. 2
      public/app/plugins/panel/graph/specs/graph_ctrl_specs.ts
  86. 2
      public/app/plugins/panel/graph/specs/graph_specs.ts
  87. 2
      public/app/plugins/panel/graph/specs/threshold_manager_specs.ts
  88. 2
      public/app/plugins/panel/graph/specs/tooltip_specs.ts
  89. 2
      public/app/plugins/panel/graph/thresholds_form.ts
  90. 2
      public/app/plugins/panel/heatmap/axes_editor.ts
  91. 2
      public/app/plugins/panel/heatmap/display_editor.ts
  92. 2
      public/app/plugins/panel/heatmap/specs/heatmap_ctrl_specs.ts
  93. 2
      public/app/plugins/panel/heatmap/specs/renderer_specs.ts
  94. 2
      public/app/plugins/panel/table/column_options.ts
  95. 2
      public/app/plugins/panel/table/editor.ts
  96. 2
      public/app/plugins/panel/table/module.ts
  97. 11
      public/app/plugins/panel/text/module.ts

@ -29,6 +29,8 @@ _.move = function(array, fromIndex, toIndex) {
import { coreModule, registerAngularDirectives } from './core/core';
import { setupAngularRoutes } from './routes/routes';
declare var System: any;
export class GrafanaApp {
registerFunctions: any;
ngModuleDependencies: any[];

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import coreModule from 'app/core/core_module';
const template = `

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import coreModule from '../../core_module';
import appEvents from 'app/core/app_events';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import _ from 'lodash';
import coreModule from 'app/core/core_module';
import Drop from 'tether-drop';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import coreModule from 'app/core/core_module';
import { contextSrv } from 'app/core/services/context_srv';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
export class QueryPartDef {

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
import $ from 'jquery';
import coreModule from 'app/core/core_module';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import coreModule from 'app/core/core_module';
var template = `

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import config from 'app/core/config';
import coreModule from '../core_module';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import _ from 'lodash';
import coreModule from '../core_module';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import angular from 'angular';
import coreModule from '../core_module';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import coreModule from '../core_module';
coreModule.directive('giveFocus', function() {

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import _ from 'lodash';
import angular from 'angular';
import moment from 'moment';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import angular from 'angular';
import _ from 'lodash';
import coreModule from 'app/core/core_module';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import _ from 'lodash';
import coreModule from 'app/core/core_module';
import appEvents from 'app/core/app_events';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import angular from 'angular';
import coreModule from '../core_module';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import _ from 'lodash';
import coreModule from 'app/core/core_module';
import Drop from 'tether-drop';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import coreModule from 'app/core/core_module';
import appEvents from 'app/core/app_events';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
var waitSeconds = 100;
var head = document.getElementsByTagName('head')[0];

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import _ from 'lodash';
import moment from 'moment';

@ -1,4 +1,4 @@
import EventEmitter from 'eventemitter3';
import { EventEmitter } from 'eventemitter3';
export class Emitter {
emitter: any;

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import _ from 'lodash';
import moment from 'moment';
import * as dateMath from './datemath';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import _ from 'lodash';
import { ThresholdMapper } from './threshold_mapper';
import { QueryPart } from 'app/core/components/query_part/query_part';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import _ from 'lodash';
import { appEvents, coreModule } from 'app/core/core';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import { coreModule } from 'app/core/core';
export class AlertNotificationsListCtrl {

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import coreModule from 'app/core/core_module';
import _ from 'lodash';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import _ from 'lodash';
import angular from 'angular';
import coreModule from 'app/core/core_module';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import coreModule from 'app/core/core_module';
export class AlertingSrv {

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import coreModule from 'app/core/core_module';
const template = `

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import angular from 'angular';
import _ from 'lodash';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import moment from 'moment';
import _ from 'lodash';
import coreModule from 'app/core/core_module';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import coreModule from 'app/core/core_module';
const template = `

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import coreModule from 'app/core/core_module';
var template = `

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import config from 'app/core/config';
import coreModule from 'app/core/core_module';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import coreModule from 'app/core/core_module';
import appEvents from 'app/core/app_events';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import angular from 'angular';
var directiveModule = angular.module('grafana.directives');

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import $ from 'jquery';
import { coreModule } from 'app/core/core';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import _ from 'lodash';
export class QueryCtrl {

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import angular from 'angular';
var module = angular.module('grafana.directives');

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import _ from 'lodash';
import appEvents from 'app/core/app_events';
import { coreModule, JsonExplorer } from 'app/core/core';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import coreModule from '../../core/core_module';
export class PlaylistSearchCtrl {

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import coreModule from '../../core/core_module';
import kbn from 'app/core/utils/kbn';
import appEvents from 'app/core/app_events';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import _ from 'lodash';
import coreModule from '../../core/core_module';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
import coreModule from 'app/core/core_module';
import appEvents from 'app/core/app_events';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import angular from 'angular';
import _ from 'lodash';
import Remarkable from 'remarkable';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import _ from 'lodash';
export class DashboardRowCtrl {

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import angular from 'angular';
import _ from 'lodash';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import { Variable, assignModelProperties, variableTypes } from './variable';
export class ConstantVariable implements Variable {

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import _ from 'lodash';
import { Variable, assignModelProperties, variableTypes } from './variable';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import kbn from 'app/core/utils/kbn';
import { Variable, containsVariable, assignModelProperties, variableTypes } from './variable';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import _ from 'lodash';
import kbn from 'app/core/utils/kbn';
import { Variable, assignModelProperties, variableTypes } from './variable';

@ -1,5 +1,3 @@
///<reference path="../../headers/common.d.ts" />
import angular from 'angular';
import _ from 'lodash';
import coreModule from 'app/core/core_module';

@ -1,11 +0,0 @@
declare var System: any;
declare module 'eventemitter3' {
var config: any;
export default config;
}
declare module 'gemini-scrollbar' {
var d3: any;
export default d3;
}

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
export class ConfigCtrl {
static template = '';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
export class CloudWatchConfigCtrl {
static templateUrl = 'partials/config.html';
current: any;

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import './query_parameter_ctrl';
import { QueryCtrl } from 'app/plugins/sdk';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import angular from 'angular';
import _ from 'lodash';
import moment from 'moment';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
import * as queryDef from './query_def';
import TableModel from 'app/core/table_model';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import './bucket_agg';
import './metric_agg';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
export const metricAggTypes = [

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import { liveSrv } from 'app/core/core';
class DataObservable {

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import { GrafanaStreamDS } from './datasource';
import { QueryCtrl } from 'app/plugins/sdk';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
export class GraphiteConfigCtrl {
static templateUrl = 'public/app/plugins/datasource/graphite/partials/config.html';
datasourceSrv: any;

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
import * as dateMath from 'app/core/utils/datemath';
import { isVersionGtOrEq, SemVersion } from 'app/core/utils/version';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
// This is auto generated from the unicode tables.

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
import queryPart from './query_part';
import kbn from 'app/core/utils/kbn';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
import { QueryPartDef, QueryPart, functionRenderer, suffixRenderer } from 'app/core/components/query_part/query_part';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import angular from 'angular';
import _ from 'lodash';

@ -1,4 +1,2 @@
///<reference path="../../../headers/common.d.ts" />
import { MixedDatasource } from './datasource';
export { MixedDatasource, MixedDatasource as Datasource };

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
import ResponseParser from './response_parser';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import { MysqlDatasource } from './datasource';
import { MysqlQueryCtrl } from './query_ctrl';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
import { QueryCtrl } from 'app/plugins/sdk';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
export default class ResponseParser {

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
export class OpenTsConfigCtrl {
static templateUrl = 'public/app/plugins/datasource/opentsdb/partials/config.html';
current: any;

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
import kbn from 'app/core/utils/kbn';
import { QueryCtrl } from 'app/plugins/sdk';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
import ResponseParser from './response_parser';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import { PostgresDatasource } from './datasource';
import { PostgresQueryCtrl } from './query_ctrl';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
import { QueryCtrl } from 'app/plugins/sdk';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
export default class ResponseParser {

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import { PrometheusDatasource } from './datasource';
import _ from 'lodash';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
import moment from 'moment';
import alertDef from '../../../features/alerting/alert_def';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import { PanelCtrl } from 'app/plugins/sdk';
import { contextSrv } from 'app/core/core';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import kbn from 'app/core/utils/kbn';
export class AxesEditorCtrl {

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import './graph';
import './legend';
import './series_overrides_ctrl';

@ -1,5 +1,3 @@
///<reference path="../../../../headers/common.d.ts" />
import { describe, beforeEach, it, expect, angularMocks } from '../../../../../test/lib/common';
import moment from 'moment';

@ -1,5 +1,3 @@
///<reference path="../../../../headers/common.d.ts" />
import { describe, beforeEach, it, sinon, expect, angularMocks } from '../../../../../test/lib/common';
import '../module';

@ -1,5 +1,3 @@
///<reference path="../../../../headers/common.d.ts" />
import { describe, it, expect } from '../../../../../test/lib/common';
import { ThresholdManager } from '../threshold_manager';

@ -1,5 +1,3 @@
///<reference path="../../../../headers/common.d.ts" />
import { describe, beforeEach, it, sinon, expect } from '../../../../../test/lib/common';
import $ from 'jquery';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import coreModule from 'app/core/core_module';
export class ThresholdFormCtrl {

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import kbn from 'app/core/utils/kbn';
export class AxesEditorCtrl {

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
export class HeatmapDisplayEditorCtrl {
panel: any;
panelCtrl: any;

@ -1,5 +1,3 @@
///<reference path="../../../../headers/common.d.ts" />
import { describe, beforeEach, it, expect, angularMocks } from '../../../../../test/lib/common';
import moment from 'moment';

@ -1,5 +1,3 @@
///<reference path="../../../../headers/common.d.ts" />
import { describe, beforeEach, it, sinon, expect, angularMocks } from '../../../../../test/lib/common';
import '../module';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
import kbn from 'app/core/utils/kbn';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
import { transformers } from './transformers';

@ -1,5 +1,3 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
import $ from 'jquery';
import { MetricsPanelCtrl } from 'app/plugins/sdk';

@ -1,7 +1,6 @@
///<reference path="../../../headers/common.d.ts" />
import _ from 'lodash';
import { PanelCtrl } from 'app/plugins/sdk';
import Remarkable from 'remarkable';
export class TextPanelCtrl extends PanelCtrl {
static templateUrl = `public/app/plugins/panel/text/module.html`;
@ -66,11 +65,9 @@ export class TextPanelCtrl extends PanelCtrl {
renderMarkdown(content) {
if (!this.remarkable) {
return System.import('remarkable').then(Remarkable => {
this.remarkable = new Remarkable();
this.$scope.$apply(() => {
this.updateContent(this.remarkable.render(content));
});
this.remarkable = new Remarkable();
this.$scope.$apply(() => {
this.updateContent(this.remarkable.render(content));
});
}

Loading…
Cancel
Save