mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(plugins): base clases are now in app/plugins/sdk
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
///<reference path="../../headers/common.d.ts" />
|
||||
|
||||
import config from 'app/core/config';
|
||||
|
||||
import {PanelCtrl} from './panel_ctrl';
|
||||
import {MetricsPanelCtrl} from './metrics_panel_ctrl';
|
||||
import {QueryCtrl} from './query_ctrl';
|
||||
|
||||
export {
|
||||
PanelCtrl,
|
||||
MetricsPanelCtrl,
|
||||
QueryCtrl,
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import './query_parameter_ctrl';
|
||||
import _ from 'lodash';
|
||||
import {QueryCtrl} from 'app/features/panel/panel';
|
||||
import {QueryCtrl} from 'app/plugins/sdk';
|
||||
|
||||
export class CloudWatchQueryCtrl extends QueryCtrl {
|
||||
static templateUrl = 'public/app/plugins/datasource/cloudwatch/partials/query.editor.html';
|
||||
|
||||
@@ -5,7 +5,7 @@ import './metric_agg';
|
||||
|
||||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
import {QueryCtrl} from 'app/features/panel/panel';
|
||||
import {QueryCtrl} from 'app/plugins/sdk';
|
||||
|
||||
export class ElasticQueryCtrl extends QueryCtrl {
|
||||
static templateUrl = 'public/app/plugins/datasource/elasticsearch/partials/query.editor.html';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import angular from 'angular';
|
||||
import {GrafanaDatasource} from './datasource';
|
||||
import {QueryCtrl} from 'app/features/panel/panel';
|
||||
import {QueryCtrl} from 'app/plugins/sdk';
|
||||
|
||||
class GrafanaQueryCtrl extends QueryCtrl {
|
||||
static templateUrl = 'public/app/plugins/datasource/grafana/partials/query.editor.html';
|
||||
|
||||
@@ -8,7 +8,7 @@ import _ from 'lodash';
|
||||
import moment from 'moment';
|
||||
import gfunc from './gfunc';
|
||||
import {Parser} from './parser';
|
||||
import {QueryCtrl} from 'app/features/panel/panel';
|
||||
import {QueryCtrl} from 'app/plugins/sdk';
|
||||
|
||||
export class GraphiteQueryCtrl extends QueryCtrl {
|
||||
static templateUrl = 'public/app/plugins/datasource/graphite/partials/query.editor.html';
|
||||
|
||||
@@ -8,7 +8,7 @@ import _ from 'lodash';
|
||||
import InfluxQueryBuilder from './query_builder';
|
||||
import InfluxQuery from './influx_query';
|
||||
import queryPart from './query_part';
|
||||
import {QueryCtrl} from 'app/features/panel/panel';
|
||||
import {QueryCtrl} from 'app/plugins/sdk';
|
||||
|
||||
export class InfluxQueryCtrl extends QueryCtrl {
|
||||
static templateUrl = 'public/app/plugins/datasource/influxdb/partials/query.editor.html';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import _ from 'lodash';
|
||||
import kbn from 'app/core/utils/kbn';
|
||||
import {QueryCtrl} from 'app/features/panel/panel';
|
||||
import {QueryCtrl} from 'app/plugins/sdk';
|
||||
|
||||
export class OpenTsQueryCtrl extends QueryCtrl {
|
||||
static templateUrl = 'public/app/plugins/datasource/opentsdb/partials/query.editor.html';
|
||||
|
||||
@@ -5,7 +5,7 @@ import _ from 'lodash';
|
||||
import moment from 'moment';
|
||||
|
||||
import * as dateMath from 'app/core/utils/datemath';
|
||||
import {QueryCtrl} from 'app/features/panel/panel';
|
||||
import {QueryCtrl} from 'app/plugins/sdk';
|
||||
|
||||
class PrometheusQueryCtrl extends QueryCtrl {
|
||||
static templateUrl = 'public/app/plugins/datasource/prometheus/partials/query.editor.html';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import _ from 'lodash';
|
||||
import config from 'app/core/config';
|
||||
import {PanelCtrl} from '../../../features/panel/panel';
|
||||
import {PanelCtrl} from 'app/plugins/sdk';
|
||||
|
||||
// Set and populate defaults
|
||||
var panelDefaults = {
|
||||
|
||||
@@ -7,9 +7,9 @@ import './seriesOverridesCtrl';
|
||||
import moment from 'moment';
|
||||
import kbn from 'app/core/utils/kbn';
|
||||
import _ from 'lodash';
|
||||
import TimeSeries from '../../../core/time_series2';
|
||||
import * as fileExport from '../../../core/utils/file_export';
|
||||
import {MetricsPanelCtrl} from '../../../features/panel/panel';
|
||||
import TimeSeries from 'app/core/time_series2';
|
||||
import * as fileExport from 'app/core/utils/file_export';
|
||||
import {MetricsPanelCtrl} from 'app/plugins/sdk';
|
||||
|
||||
var panelDefaults = {
|
||||
// datasource name, null = default datasource
|
||||
|
||||
@@ -6,8 +6,8 @@ import $ from 'jquery';
|
||||
import 'jquery.flot';
|
||||
|
||||
import kbn from 'app/core/utils/kbn';
|
||||
import TimeSeries from '../../../core/time_series2';
|
||||
import {MetricsPanelCtrl} from '../../../features/panel/panel';
|
||||
import TimeSeries from 'app/core/time_series2';
|
||||
import {MetricsPanelCtrl} from 'app/plugins/sdk';
|
||||
|
||||
// Set and populate defaults
|
||||
var panelDefaults = {
|
||||
|
||||
@@ -5,7 +5,7 @@ import _ from 'lodash';
|
||||
import $ from 'jquery';
|
||||
import moment from 'moment';
|
||||
import * as FileExport from 'app/core/utils/file_export';
|
||||
import {MetricsPanelCtrl} from '../../../features/panel/panel';
|
||||
import {MetricsPanelCtrl} from 'app/plugins/sdk';
|
||||
import {transformDataToTable} from './transformers';
|
||||
import {tablePanelEditor} from './editor';
|
||||
import {TableRenderer} from './renderer';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
///<reference path="../../../headers/common.d.ts" />
|
||||
|
||||
import _ from 'lodash';
|
||||
import {PanelCtrl} from 'app/features/panel/panel';
|
||||
import {PanelCtrl} from 'app/plugins/sdk';
|
||||
|
||||
// Set and populate defaults
|
||||
var panelDefaults = {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
///<reference path="../../../headers/common.d.ts" />
|
||||
|
||||
import {PanelCtrl} from '../../../features/panel/panel';
|
||||
import {PanelCtrl} from 'app/plugins/sdk';
|
||||
|
||||
export class UnknownPanelCtrl extends PanelCtrl {
|
||||
static templateUrl = 'public/app/plugins/panel/unknown/module.html';
|
||||
|
||||
9
public/app/plugins/sdk.ts
Normal file
9
public/app/plugins/sdk.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import {PanelCtrl} from 'app/features/panel/panel_ctrl';
|
||||
import {MetricsPanelCtrl} from 'app/features/panel/metrics_panel_ctrl';
|
||||
import {QueryCtrl} from 'app/features/panel/query_ctrl';
|
||||
|
||||
export {
|
||||
PanelCtrl,
|
||||
MetricsPanelCtrl,
|
||||
QueryCtrl,
|
||||
}
|
||||
Reference in New Issue
Block a user