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
36ebfc74
Commit
36ebfc74
authored
Jan 09, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(plugins): more upgrading work
parent
bc328cbe
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
52 deletions
+58
-52
public/app/plugins/datasource/elasticsearch/directives.js
+56
-0
public/app/plugins/datasource/grafana/datasource.js
+0
-30
public/app/plugins/datasource/grafana/directives.js
+0
-13
public/app/plugins/datasource/grafana/plugin.json
+2
-4
public/app/plugins/datasource/mixed/datasource.ts
+0
-5
No files found.
public/app/plugins/datasource/elasticsearch/directives.js
0 → 100644
View file @
36ebfc74
define
([
'angular'
,
'./bucket_agg'
,
'./metric_agg'
,
],
function
(
angular
)
{
'use strict'
;
var
module
=
angular
.
module
(
'grafana.directives'
);
module
.
directive
(
'metricQueryEditorElasticsearch'
,
function
()
{
return
{
controller
:
'ElasticQueryCtrl'
,
templateUrl
:
'app/plugins/datasource/elasticsearch/partials/query.editor.html'
};
});
module
.
directive
(
'metricQueryOptionsElasticsearch'
,
function
()
{
return
{
templateUrl
:
'app/plugins/datasource/elasticsearch/partials/query.options.html'
};
});
module
.
directive
(
'annotationsQueryEditorElasticsearch'
,
function
()
{
return
{
templateUrl
:
'app/plugins/datasource/elasticsearch/partials/annotations.editor.html'
};
});
module
.
directive
(
'elastic'
,
function
()
{
return
{
templateUrl
:
'app/plugins/datasource/elasticsearch/partials/config.html'
};
});
module
.
directive
(
'elasticMetricAgg'
,
function
()
{
return
{
templateUrl
:
'app/plugins/datasource/elasticsearch/partials/metric_agg.html'
,
controller
:
'ElasticMetricAggCtrl'
,
restrict
:
'E'
,
scope
:
{
target
:
"="
,
index
:
"="
,
onChange
:
"&"
,
getFields
:
"&"
,
esVersion
:
'='
}
};
});
module
.
directive
(
'elasticBucketAgg'
,
function
()
{
return
{
templateUrl
:
'app/plugins/datasource/elasticsearch/partials/bucket_agg.html'
,
controller
:
'ElasticBucketAggCtrl'
,
restrict
:
'E'
,
scope
:
{
target
:
"="
,
index
:
"="
,
onChange
:
"&"
,
getFields
:
"&"
,
}
};
});
});
public/app/plugins/datasource/grafana/datasource.js
deleted
100644 → 0
View file @
bc328cbe
define
([
'angular'
],
function
(
angular
)
{
'use strict'
;
var
module
=
angular
.
module
(
'grafana.services'
);
module
.
factory
(
'GrafanaDatasource'
,
function
(
$q
,
backendSrv
)
{
function
GrafanaDatasource
()
{
}
GrafanaDatasource
.
prototype
.
query
=
function
(
options
)
{
return
backendSrv
.
get
(
'/api/metrics/test'
,
{
from
:
options
.
range
.
from
.
valueOf
(),
to
:
options
.
range
.
to
.
valueOf
(),
maxDataPoints
:
options
.
maxDataPoints
});
};
GrafanaDatasource
.
prototype
.
metricFindQuery
=
function
()
{
return
$q
.
when
([]);
};
return
GrafanaDatasource
;
});
});
public/app/plugins/datasource/grafana/directives.js
deleted
100644 → 0
View file @
bc328cbe
define
([
'angular'
,
],
function
(
angular
)
{
'use strict'
;
var
module
=
angular
.
module
(
'grafana.directives'
);
module
.
directive
(
'metricQueryEditorGrafana'
,
function
()
{
return
{
templateUrl
:
'app/plugins/datasource/grafana/partials/query.editor.html'
};
});
});
public/app/plugins/datasource/grafana/plugin.json
View file @
36ebfc74
...
...
@@ -3,10 +3,8 @@
"name"
:
"Grafana"
,
"id"
:
"grafana"
,
"builtIn"
:
true
,
"serviceName"
:
"GrafanaDatasource"
,
"module"
:
"app/plugins/datasource/grafana/module"
,
"
module"
:
"app/plugins/datasource/grafana/datasource"
,
"
builtIn"
:
true
,
"metrics"
:
true
}
public/app/plugins/datasource/mixed/datasource.ts
View file @
36ebfc74
...
...
@@ -30,8 +30,3 @@ class MixedDatasource {
}
export
{
MixedDatasource
,
MixedDatasource
as
Datasource
}
// var module = angular.module('grafana.services');
// module.factory('MixedDatasource', MixedDatasource);
//
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