New Grafana plugin api: fixed module.js.
This commit is contained in:
@@ -1,30 +1,30 @@
|
|||||||
define([
|
define([
|
||||||
'./datasource',
|
'./datasource'
|
||||||
],
|
],
|
||||||
function (ZabbixAPIDatasource) {
|
function (ZabbixAPIDatasource) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function metricsQueryEditor() {
|
function ZabbixQueryCtrl() {
|
||||||
return {controller: 'ZabbixAPIQueryCtrl', templateUrl: 'public/plugins/zabbix/partials/query.editor.html'};
|
return {controller: 'ZabbixAPIQueryCtrl', templateUrl: 'public/plugins/zabbix/partials/query.editor.html'};
|
||||||
}
|
}
|
||||||
|
|
||||||
function metricsQueryOptions() {
|
function ZabbixQueryOptionsCtrl() {
|
||||||
return {templateUrl: 'public/plugins/zabbix/partials/query.options.html'};
|
return {templateUrl: 'public/plugins/zabbix/partials/query.options.html'};
|
||||||
}
|
}
|
||||||
|
|
||||||
function annotationsQueryEditor() {
|
function ZabbixAnnotationsQueryCtrl() {
|
||||||
return {templateUrl: 'public/plugins/zabbix/partials/annotations.editor.html'};
|
return {templateUrl: 'public/plugins/zabbix/partials/annotations.editor.html'};
|
||||||
}
|
}
|
||||||
|
|
||||||
function configView() {
|
function ZabbixConfigCtrl() {
|
||||||
return {templateUrl: 'public/plugins/zabbix/partials/config.html'};
|
return {templateUrl: 'public/plugins/zabbix/partials/config.html'};
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
Datasource: ZabbixAPIDatasource,
|
Datasource: ZabbixAPIDatasource,
|
||||||
configView: configView,
|
ConfigCtrl: ZabbixConfigCtrl,
|
||||||
annotationsQueryEditor: annotationsQueryEditor,
|
QueryCtrl: ZabbixQueryCtrl,
|
||||||
metricsQueryEditor: metricsQueryEditor,
|
QueryOptionsCtrl: ZabbixQueryOptionsCtrl,
|
||||||
metricsQueryOptions: metricsQueryOptions,
|
AnnotationsQueryCtrl: ZabbixAnnotationsQueryCtrl
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user