cleanup: removed unused typescript typings import

This commit is contained in:
Torkel Ödegaard 2018-01-04 10:12:02 +01:00
parent c42a232644
commit 27835f373e
97 changed files with 7 additions and 205 deletions

View File

@ -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[];

View File

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

View File

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

View File

@ -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';

View File

@ -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';

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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';

View File

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

View File

@ -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';

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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';

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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';

View File

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

View File

@ -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';

View File

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

View File

@ -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';

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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';

View File

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

View File

@ -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;
}

View File

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

View File

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

View File

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

View File

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

View File

@ -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';

View File

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

View File

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

View File

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

View File

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

View File

@ -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;

View File

@ -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';

View File

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

View File

@ -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';

View File

@ -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';

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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;

View File

@ -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';

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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));
});
}