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
f9b0a01c
Commit
f9b0a01c
authored
Dec 30, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restructuring
parent
0a4ccdce
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
19 additions
and
18 deletions
+19
-18
src/app/controllers/all.js
+0
-1
src/app/directives/all.js
+0
-3
src/app/features/all.js
+1
-0
src/app/features/graphite/addGraphiteFunc.js
+1
-1
src/app/features/graphite/datasource.js
+6
-3
src/app/features/graphite/funcEditor.js
+0
-0
src/app/features/influxdb/datasource.js
+6
-4
src/app/features/influxdb/funcEditor.js
+0
-0
src/app/features/influxdb/influxSeries.js
+0
-0
src/app/features/influxdb/partials/annotations.editor.html
+0
-0
src/app/features/influxdb/partials/query.editor.html
+1
-1
src/app/features/influxdb/queryBuilder.js
+0
-0
src/app/features/influxdb/queryCtrl.js
+1
-1
src/app/services/datasourceSrv.js
+0
-1
src/test/specs/influxQueryBuilder-specs.js
+1
-1
src/test/specs/influxSeries-specs.js
+1
-1
src/test/specs/influxdb-datasource-specs.js
+1
-1
No files found.
src/app/controllers/all.js
View file @
f9b0a01c
...
@@ -8,7 +8,6 @@ define([
...
@@ -8,7 +8,6 @@ define([
'./search'
,
'./search'
,
'./metricKeys'
,
'./metricKeys'
,
'./graphiteImport'
,
'./graphiteImport'
,
'./influxTargetCtrl'
,
'./playlistCtrl'
,
'./playlistCtrl'
,
'./inspectCtrl'
,
'./inspectCtrl'
,
'./opentsdbTargetCtrl'
,
'./opentsdbTargetCtrl'
,
...
...
src/app/directives/all.js
View file @
f9b0a01c
...
@@ -12,11 +12,8 @@ define([
...
@@ -12,11 +12,8 @@ define([
'./spectrumPicker'
,
'./spectrumPicker'
,
'./bootstrap-tagsinput'
,
'./bootstrap-tagsinput'
,
'./bodyClass'
,
'./bodyClass'
,
'./addGraphiteFunc'
,
'./graphiteFuncEditor'
,
'./templateParamSelector'
,
'./templateParamSelector'
,
'./graphiteSegment'
,
'./graphiteSegment'
,
'./grafanaVersionCheck'
,
'./grafanaVersionCheck'
,
'./dropdown.typeahead'
,
'./dropdown.typeahead'
,
'./influxdbFuncEditor'
],
function
()
{});
],
function
()
{});
src/app/features/all.js
View file @
f9b0a01c
define
([
define
([
'./panellinkeditor/module'
,
'./panellinkeditor/module'
,
'./graphite/datasource'
,
'./graphite/datasource'
,
'./influxdb/datasource'
,
],
function
()
{});
],
function
()
{});
src/app/
directives
/addGraphiteFunc.js
→
src/app/
features/graphite
/addGraphiteFunc.js
View file @
f9b0a01c
...
@@ -3,7 +3,7 @@ define([
...
@@ -3,7 +3,7 @@ define([
'app'
,
'app'
,
'lodash'
,
'lodash'
,
'jquery'
,
'jquery'
,
'.
./features/graphite
/gfunc'
,
'./gfunc'
,
],
],
function
(
angular
,
app
,
_
,
$
,
gfunc
)
{
function
(
angular
,
app
,
_
,
$
,
gfunc
)
{
'use strict'
;
'use strict'
;
...
...
src/app/features/graphite/datasource.js
View file @
f9b0a01c
...
@@ -6,6 +6,8 @@ define([
...
@@ -6,6 +6,8 @@ define([
'kbn'
,
'kbn'
,
'moment'
,
'moment'
,
'./queryCtrl'
,
'./queryCtrl'
,
'./funcEditor'
,
'./addGraphiteFunc'
,
],
],
function
(
angular
,
_
,
$
,
config
,
kbn
,
moment
)
{
function
(
angular
,
_
,
$
,
config
,
kbn
,
moment
)
{
'use strict'
;
'use strict'
;
...
@@ -18,14 +20,15 @@ function (angular, _, $, config, kbn, moment) {
...
@@ -18,14 +20,15 @@ function (angular, _, $, config, kbn, moment) {
this
.
type
=
'graphite'
;
this
.
type
=
'graphite'
;
this
.
basicAuth
=
datasource
.
basicAuth
;
this
.
basicAuth
=
datasource
.
basicAuth
;
this
.
url
=
datasource
.
url
;
this
.
url
=
datasource
.
url
;
this
.
editorSrc
=
'app/features/graphite/partials/query.editor.html'
;
this
.
name
=
datasource
.
name
;
this
.
name
=
datasource
.
name
;
this
.
cacheTimeout
=
datasource
.
cacheTimeout
;
this
.
withCredentials
=
datasource
.
withCredentials
;
this
.
render_method
=
datasource
.
render_method
||
'POST'
;
this
.
render_method
=
datasource
.
render_method
||
'POST'
;
this
.
supportAnnotations
=
true
;
this
.
supportAnnotations
=
true
;
this
.
supportMetrics
=
true
;
this
.
supportMetrics
=
true
;
this
.
editorSrc
=
'app/features/graphite/partials/query.editor.html'
;
this
.
annotationEditorSrc
=
'app/features/graphite/partials/annotation.editor.html'
;
this
.
annotationEditorSrc
=
'app/features/graphite/partials/annotation.editor.html'
;
this
.
cacheTimeout
=
datasource
.
cacheTimeout
;
this
.
withCredentials
=
datasource
.
withCredentials
;
}
}
GraphiteDatasource
.
prototype
.
query
=
function
(
options
)
{
GraphiteDatasource
.
prototype
.
query
=
function
(
options
)
{
...
...
src/app/
directives/graphiteF
uncEditor.js
→
src/app/
features/graphite/f
uncEditor.js
View file @
f9b0a01c
File moved
src/app/
services/influxdb/influxdbD
atasource.js
→
src/app/
features/influxdb/d
atasource.js
View file @
f9b0a01c
...
@@ -3,7 +3,9 @@ define([
...
@@ -3,7 +3,9 @@ define([
'lodash'
,
'lodash'
,
'kbn'
,
'kbn'
,
'./influxSeries'
,
'./influxSeries'
,
'./influxQueryBuilder'
'./queryBuilder'
,
'./queryCtrl'
,
'./funcEditor'
,
],
],
function
(
angular
,
_
,
kbn
,
InfluxSeries
,
InfluxQueryBuilder
)
{
function
(
angular
,
_
,
kbn
,
InfluxSeries
,
InfluxQueryBuilder
)
{
'use strict'
;
'use strict'
;
...
@@ -14,20 +16,20 @@ function (angular, _, kbn, InfluxSeries, InfluxQueryBuilder) {
...
@@ -14,20 +16,20 @@ function (angular, _, kbn, InfluxSeries, InfluxQueryBuilder) {
function
InfluxDatasource
(
datasource
)
{
function
InfluxDatasource
(
datasource
)
{
this
.
type
=
'influxDB'
;
this
.
type
=
'influxDB'
;
this
.
editorSrc
=
'app/partials/influxdb/editor.html'
;
this
.
urls
=
datasource
.
urls
;
this
.
urls
=
datasource
.
urls
;
this
.
username
=
datasource
.
username
;
this
.
username
=
datasource
.
username
;
this
.
password
=
datasource
.
password
;
this
.
password
=
datasource
.
password
;
this
.
name
=
datasource
.
name
;
this
.
name
=
datasource
.
name
;
this
.
basicAuth
=
datasource
.
basicAuth
;
this
.
basicAuth
=
datasource
.
basicAuth
;
this
.
grafanaDB
=
datasource
.
grafanaDB
;
this
.
saveTemp
=
_
.
isUndefined
(
datasource
.
save_temp
)
?
true
:
datasource
.
save_temp
;
this
.
saveTemp
=
_
.
isUndefined
(
datasource
.
save_temp
)
?
true
:
datasource
.
save_temp
;
this
.
saveTempTTL
=
_
.
isUndefined
(
datasource
.
save_temp_ttl
)
?
'30d'
:
datasource
.
save_temp_ttl
;
this
.
saveTempTTL
=
_
.
isUndefined
(
datasource
.
save_temp_ttl
)
?
'30d'
:
datasource
.
save_temp_ttl
;
this
.
grafanaDB
=
datasource
.
grafanaDB
;
this
.
supportAnnotations
=
true
;
this
.
supportAnnotations
=
true
;
this
.
supportMetrics
=
true
;
this
.
supportMetrics
=
true
;
this
.
annotationEditorSrc
=
'app/partials/influxdb/annotation_editor.html'
;
this
.
editorSrc
=
'app/features/influxdb/partials/query.editor.html'
;
this
.
annotationEditorSrc
=
'app/features/influxdb/partials/annotations.editor.html'
;
}
}
InfluxDatasource
.
prototype
.
query
=
function
(
options
)
{
InfluxDatasource
.
prototype
.
query
=
function
(
options
)
{
...
...
src/app/
directives/influxdbF
uncEditor.js
→
src/app/
features/influxdb/f
uncEditor.js
View file @
f9b0a01c
File moved
src/app/
servic
es/influxdb/influxSeries.js
→
src/app/
featur
es/influxdb/influxSeries.js
View file @
f9b0a01c
File moved
src/app/
partials/influxdb/annotation_
editor.html
→
src/app/
features/influxdb/partials/annotations.
editor.html
View file @
f9b0a01c
File moved
src/app/
partials/influxdb/
editor.html
→
src/app/
features/influxdb/partials/query.
editor.html
View file @
f9b0a01c
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
ng-repeat=
"target in panel.targets"
<div
ng-repeat=
"target in panel.targets"
class=
"grafana-target"
class=
"grafana-target"
ng-class=
"{'grafana-target-hidden': target.hide}"
ng-class=
"{'grafana-target-hidden': target.hide}"
ng-controller=
"Influx
Target
Ctrl"
ng-controller=
"Influx
Query
Ctrl"
ng-init=
"init()"
>
ng-init=
"init()"
>
<div
class=
"grafana-target-inner-wrapper"
>
<div
class=
"grafana-target-inner-wrapper"
>
...
...
src/app/
services/influxdb/influxQ
ueryBuilder.js
→
src/app/
features/influxdb/q
ueryBuilder.js
View file @
f9b0a01c
File moved
src/app/
controllers/influxTarget
Ctrl.js
→
src/app/
features/influxdb/query
Ctrl.js
View file @
f9b0a01c
...
@@ -9,7 +9,7 @@ function (angular, _) {
...
@@ -9,7 +9,7 @@ function (angular, _) {
var
seriesList
=
null
;
var
seriesList
=
null
;
module
.
controller
(
'Influx
Target
Ctrl'
,
function
(
$scope
,
$timeout
)
{
module
.
controller
(
'Influx
Query
Ctrl'
,
function
(
$scope
,
$timeout
)
{
$scope
.
init
=
function
()
{
$scope
.
init
=
function
()
{
var
target
=
$scope
.
target
;
var
target
=
$scope
.
target
;
...
...
src/app/services/datasourceSrv.js
View file @
f9b0a01c
...
@@ -2,7 +2,6 @@ define([
...
@@ -2,7 +2,6 @@ define([
'angular'
,
'angular'
,
'lodash'
,
'lodash'
,
'config'
,
'config'
,
'./influxdb/influxdbDatasource'
,
'./opentsdb/opentsdbDatasource'
,
'./opentsdb/opentsdbDatasource'
,
'./elasticsearch/es-datasource'
,
'./elasticsearch/es-datasource'
,
],
],
...
...
src/test/specs/influxQueryBuilder-specs.js
View file @
f9b0a01c
define
([
define
([
'
services/influxdb/influxQ
ueryBuilder'
'
features/influxdb/q
ueryBuilder'
],
function
(
InfluxQueryBuilder
)
{
],
function
(
InfluxQueryBuilder
)
{
'use strict'
;
'use strict'
;
...
...
src/test/specs/influxSeries-specs.js
View file @
f9b0a01c
define
([
define
([
'
servic
es/influxdb/influxSeries'
'
featur
es/influxdb/influxSeries'
],
function
(
InfluxSeries
)
{
],
function
(
InfluxSeries
)
{
'use strict'
;
'use strict'
;
...
...
src/test/specs/influxdb-datasource-specs.js
View file @
f9b0a01c
define
([
define
([
'helpers'
,
'helpers'
,
'
services/influxdb/influxdbD
atasource'
'
features/influxdb/d
atasource'
],
function
(
helpers
)
{
],
function
(
helpers
)
{
'use strict'
;
'use strict'
;
...
...
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