mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(plugins): migrating graphite query editor to new model
This commit is contained in:
51
public/app/plugins/datasource/graphite/module.ts
Normal file
51
public/app/plugins/datasource/graphite/module.ts
Normal file
@@ -0,0 +1,51 @@
|
||||
import {GraphiteDatasource} from './datasource';
|
||||
import {GraphiteQueryCtrl} from './query_ctrl';
|
||||
|
||||
class GraphiteConfigView {
|
||||
static templateUrl = 'public/app/plugins/datasource/graphite/partials/config.html';
|
||||
}
|
||||
|
||||
export {
|
||||
GraphiteDatasource as Datasource,
|
||||
GraphiteQueryCtrl as QueryCtrl,
|
||||
GraphiteConfigView as ConfigView
|
||||
};
|
||||
|
||||
// define([
|
||||
// './datasource',
|
||||
// ],
|
||||
// function (GraphiteDatasource) {
|
||||
// 'use strict';
|
||||
//
|
||||
// function metricsQueryEditor() {
|
||||
// return {
|
||||
// controller: 'GraphiteQueryCtrl',
|
||||
// templateUrl: 'public/app/plugins/datasource/graphite/partials/query.editor.html'
|
||||
// };
|
||||
// }
|
||||
//
|
||||
// function metricsQueryOptions() {
|
||||
// return {templateUrl: 'public/app/plugins/datasource/graphite/partials/query.options.html'};
|
||||
// }
|
||||
//
|
||||
// function annotationsQueryEditor() {
|
||||
// return {templateUrl: 'public/app/plugins/datasource/graphite/partials/annotations.editor.html'};
|
||||
// }
|
||||
//
|
||||
// function configView() {
|
||||
// return {templateUrl: 'public/app/plugins/datasource/graphite/partials/config.html'};
|
||||
// }
|
||||
//
|
||||
// function ConfigView() {
|
||||
// }
|
||||
// ConfigView.templateUrl = 'public/app/plugins/datasource/graphite/partials/config.html';
|
||||
//
|
||||
// return {
|
||||
// Datasource: GraphiteDatasource,
|
||||
// configView: configView,
|
||||
// annotationsQueryEditor: annotationsQueryEditor,
|
||||
// metricsQueryEditor: metricsQueryEditor,
|
||||
// metricsQueryOptions: metricsQueryOptions,
|
||||
// ConfigView: ConfigView
|
||||
// };
|
||||
// });
|
||||
Reference in New Issue
Block a user