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
0a4ccdce
Commit
0a4ccdce
authored
Dec 30, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved all graphite code into features/graphite
parent
599a77c7
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
18 additions
and
18 deletions
+18
-18
src/app/controllers/all.js
+0
-1
src/app/directives/addGraphiteFunc.js
+1
-1
src/app/features/all.js
+1
-0
src/app/features/graphite/datasource.js
+4
-3
src/app/features/graphite/gfunc.js
+0
-0
src/app/features/graphite/lexer.js
+0
-0
src/app/features/graphite/parser.js
+0
-0
src/app/features/graphite/partials/annotations.editor.html
+0
-0
src/app/features/graphite/partials/query.editor.html
+1
-1
src/app/features/graphite/queryCtrl.js
+3
-3
src/app/services/datasourceSrv.js
+0
-1
src/test/specs/gfunc-specs.js
+1
-1
src/test/specs/graphiteDatasource-specs.js
+1
-1
src/test/specs/graphiteTargetCtrl-specs.js
+4
-4
src/test/specs/lexer-specs.js
+1
-1
src/test/specs/parser-specs.js
+1
-1
No files found.
src/app/controllers/all.js
View file @
0a4ccdce
...
...
@@ -7,7 +7,6 @@ define([
'./pulldown'
,
'./search'
,
'./metricKeys'
,
'./graphiteTarget'
,
'./graphiteImport'
,
'./influxTargetCtrl'
,
'./playlistCtrl'
,
...
...
src/app/directives/addGraphiteFunc.js
View file @
0a4ccdce
...
...
@@ -3,7 +3,7 @@ define([
'app'
,
'lodash'
,
'jquery'
,
'../
servic
es/graphite/gfunc'
,
'../
featur
es/graphite/gfunc'
,
],
function
(
angular
,
app
,
_
,
$
,
gfunc
)
{
'use strict'
;
...
...
src/app/features/all.js
View file @
0a4ccdce
define
([
'./panellinkeditor/module'
,
'./graphite/datasource'
,
],
function
()
{});
src/app/
services/graphite/graphiteD
atasource.js
→
src/app/
features/graphite/d
atasource.js
View file @
0a4ccdce
...
...
@@ -4,7 +4,8 @@ define([
'jquery'
,
'config'
,
'kbn'
,
'moment'
'moment'
,
'./queryCtrl'
,
],
function
(
angular
,
_
,
$
,
config
,
kbn
,
moment
)
{
'use strict'
;
...
...
@@ -17,12 +18,12 @@ function (angular, _, $, config, kbn, moment) {
this
.
type
=
'graphite'
;
this
.
basicAuth
=
datasource
.
basicAuth
;
this
.
url
=
datasource
.
url
;
this
.
editorSrc
=
'app/
partials/graphite/
editor.html'
;
this
.
editorSrc
=
'app/
features/graphite/partials/query.
editor.html'
;
this
.
name
=
datasource
.
name
;
this
.
render_method
=
datasource
.
render_method
||
'POST'
;
this
.
supportAnnotations
=
true
;
this
.
supportMetrics
=
true
;
this
.
annotationEditorSrc
=
'app/
partials/graphite/annotation_
editor.html'
;
this
.
annotationEditorSrc
=
'app/
features/graphite/partials/annotation.
editor.html'
;
this
.
cacheTimeout
=
datasource
.
cacheTimeout
;
this
.
withCredentials
=
datasource
.
withCredentials
;
}
...
...
src/app/
servic
es/graphite/gfunc.js
→
src/app/
featur
es/graphite/gfunc.js
View file @
0a4ccdce
File moved
src/app/
servic
es/graphite/lexer.js
→
src/app/
featur
es/graphite/lexer.js
View file @
0a4ccdce
File moved
src/app/
servic
es/graphite/parser.js
→
src/app/
featur
es/graphite/parser.js
View file @
0a4ccdce
File moved
src/app/
partials/graphite/annotation_
editor.html
→
src/app/
features/graphite/partials/annotations.
editor.html
View file @
0a4ccdce
File moved
src/app/
partials/graphite/
editor.html
→
src/app/
features/graphite/partials/query.
editor.html
View file @
0a4ccdce
...
...
@@ -3,7 +3,7 @@
<div
ng-repeat=
"target in panel.targets"
class=
"grafana-target"
ng-class=
"{'grafana-target-hidden': target.hide}"
ng-controller=
"Graphite
Target
Ctrl"
ng-controller=
"Graphite
Query
Ctrl"
ng-init=
"init()"
>
<div
class=
"grafana-target-inner"
>
...
...
src/app/
controllers/graphiteTarget
.js
→
src/app/
features/graphite/queryCtrl
.js
View file @
0a4ccdce
...
...
@@ -2,8 +2,8 @@ define([
'angular'
,
'lodash'
,
'config'
,
'.
./services/graphite
/gfunc'
,
'.
./services/graphite
/parser'
'./gfunc'
,
'./parser'
],
function
(
angular
,
_
,
config
,
gfunc
,
Parser
)
{
'use strict'
;
...
...
@@ -11,7 +11,7 @@ function (angular, _, config, gfunc, Parser) {
var
module
=
angular
.
module
(
'grafana.controllers'
);
var
targetLetters
=
[
'A'
,
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
'G'
,
'H'
,
'I'
,
'J'
,
'K'
,
'L'
,
'M'
,
'N'
,
'O'
];
module
.
controller
(
'Graphite
Target
Ctrl'
,
function
(
$scope
,
$sce
,
templateSrv
)
{
module
.
controller
(
'Graphite
Query
Ctrl'
,
function
(
$scope
,
$sce
,
templateSrv
)
{
$scope
.
init
=
function
()
{
$scope
.
target
.
target
=
$scope
.
target
.
target
||
''
;
...
...
src/app/services/datasourceSrv.js
View file @
0a4ccdce
...
...
@@ -2,7 +2,6 @@ define([
'angular'
,
'lodash'
,
'config'
,
'./graphite/graphiteDatasource'
,
'./influxdb/influxdbDatasource'
,
'./opentsdb/opentsdbDatasource'
,
'./elasticsearch/es-datasource'
,
...
...
src/test/specs/gfunc-specs.js
View file @
0a4ccdce
define
([
'
servic
es/graphite/gfunc'
'
featur
es/graphite/gfunc'
],
function
(
gfunc
)
{
'use strict'
;
...
...
src/test/specs/graphiteDatasource-specs.js
View file @
0a4ccdce
define
([
'helpers'
,
'
services/graphite/graphiteD
atasource'
'
features/graphite/d
atasource'
],
function
(
helpers
)
{
'use strict'
;
...
...
src/test/specs/graphiteTargetCtrl-specs.js
View file @
0a4ccdce
define
([
'helpers'
,
'
servic
es/graphite/gfunc'
,
'
controllers/graphiteTarget
'
'
featur
es/graphite/gfunc'
,
'
features/graphite/queryCtrl
'
],
function
(
helpers
,
gfunc
)
{
'use strict'
;
describe
(
'Graphite
Target
Ctrl'
,
function
()
{
describe
(
'Graphite
Query
Ctrl'
,
function
()
{
var
ctx
=
new
helpers
.
ControllerTestContext
();
beforeEach
(
module
(
'grafana.controllers'
));
beforeEach
(
ctx
.
providePhase
());
beforeEach
(
ctx
.
createControllerPhase
(
'Graphite
Target
Ctrl'
));
beforeEach
(
ctx
.
createControllerPhase
(
'Graphite
Query
Ctrl'
));
beforeEach
(
function
()
{
ctx
.
scope
.
target
=
{
...
...
src/test/specs/lexer-specs.js
View file @
0a4ccdce
define
([
'
servic
es/graphite/lexer'
'
featur
es/graphite/lexer'
],
function
(
Lexer
)
{
'use strict'
;
...
...
src/test/specs/parser-specs.js
View file @
0a4ccdce
define
([
'
servic
es/graphite/parser'
'
featur
es/graphite/parser'
],
function
(
Parser
)
{
'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