Working on #142 - fixed plugin.json and

datasource constructor (module.js).
This commit is contained in:
Alexander Zobnin
2016-01-16 13:42:12 +03:00
parent c48cbd3dc4
commit ca5d68a1c8
4 changed files with 71 additions and 61 deletions

View File

@@ -0,0 +1,30 @@
define([
'./datasource',
],
function (ZabbixAPIDatasource) {
'use strict';
function metricsQueryEditor() {
return {controller: 'ZabbixAPIQueryCtrl', templateUrl: 'public/plugins/zabbix/partials/query.editor.html'};
}
function metricsQueryOptions() {
return {templateUrl: 'public/plugins/zabbix/partials/query.options.html'};
}
function annotationsQueryEditor() {
return {templateUrl: 'public/plugins/zabbix/partials/annotations.editor.html'};
}
function configView() {
return {templateUrl: 'public/plugins/zabbix/partials/config.html'};
}
return {
Datasource: ZabbixAPIDatasource,
configView: configView,
annotationsQueryEditor: annotationsQueryEditor,
metricsQueryEditor: metricsQueryEditor,
metricsQueryOptions: metricsQueryOptions,
};
});