Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
a2335707
Commit
a2335707
authored
Jan 14, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(plugins): upgraded opentsdb and prometheus to new plugin module return format
parent
6fae2642
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
26 deletions
+17
-26
public/app/plugins/datasource/mixed/module.ts
+0
-7
public/app/plugins/datasource/opentsdb/module.js
+8
-9
public/app/plugins/datasource/prometheus/module.js
+8
-9
tslint.json
+1
-1
No files found.
public/app/plugins/datasource/mixed/module.ts
View file @
a2335707
...
...
@@ -3,12 +3,5 @@
import
angular
from
'angular'
;
import
{
MixedDatasource
}
from
'./datasource'
;
var
module
=
angular
.
module
(
'grafana.directives'
);
module
.
directive
(
'metricQueryEditorMixed'
,
function
()
{
return
{
templateUrl
:
'app/plugins/datasource/mixed/partials/query.editor.html'
};
});
export
{
MixedDatasource
,
MixedDatasource
as
Datasource
};
public/app/plugins/datasource/opentsdb/module.js
View file @
a2335707
define
([
'angular'
,
'./datasource'
,
],
function
(
angular
,
OpenTsDatasource
)
{
function
(
OpenTsDatasource
)
{
'use strict'
;
var
module
=
angular
.
module
(
'grafana.directives'
);
module
.
directive
(
'metricQueryEditorOpentsdb'
,
function
()
{
function
metricsQueryEditor
()
{
return
{
controller
:
'OpenTSDBQueryCtrl'
,
templateUrl
:
'app/plugins/datasource/opentsdb/partials/query.editor.html'
,
};
}
);
}
module
.
directive
(
'datasourceCustomSettingsViewOpentsdb'
,
function
()
{
function
configView
()
{
return
{
templateUrl
:
'app/plugins/datasource/opentsdb/partials/config.html'
};
}
);
}
return
{
Datasource
:
OpenTsDatasource
Datasource
:
OpenTsDatasource
,
metricsQueryEditor
:
metricsQueryEditor
,
configView
:
configView
,
};
});
public/app/plugins/datasource/prometheus/module.js
View file @
a2335707
define
([
'angular'
,
'./datasource'
,
],
function
(
angular
,
PromDatasource
)
{
function
(
PromDatasource
)
{
'use strict'
;
var
module
=
angular
.
module
(
'grafana.directives'
);
module
.
directive
(
'metricQueryEditorPrometheus'
,
function
()
{
function
metricsQueryEditor
()
{
return
{
controller
:
'PrometheusQueryCtrl'
,
templateUrl
:
'app/plugins/datasource/prometheus/partials/query.editor.html'
};
}
);
}
module
.
directive
(
'datasourceCustomSettingsViewPrometheus'
,
function
()
{
function
configView
()
{
return
{
templateUrl
:
'app/plugins/datasource/prometheus/partials/config.html'
};
}
);
}
return
{
Datasource
:
PromDatasource
Datasource
:
PromDatasource
,
metricsQueryEditor
:
metricsQueryEditor
,
configView
:
configView
,
};
});
tslint.json
View file @
a2335707
...
...
@@ -52,7 +52,7 @@
"property-declaration"
:
"nospace"
,
"variable-declaration"
:
"nospace"
}],
"variable-name"
:
false
,
"variable-name"
:
[
true
,
"ban-keywords"
]
,
"whitespace"
:
[
true
,
"check-branch"
,
"check-decl"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment