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
bc3cad20
Commit
bc3cad20
authored
Dec 24, 2013
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
integrated parser into graphite target editor
parent
dd902d5a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
9 deletions
+2
-9
src/app/controllers/graphiteTarget.js
+1
-1
src/app/services/graphite/lexer.js
+1
-3
src/app/services/graphite/parser.js
+0
-5
No files found.
src/app/controllers/graphiteTarget.js
View file @
bc3cad20
...
...
@@ -32,7 +32,7 @@ function (angular, _, config, graphiteFunctions, Parser) {
if
(
astNode
.
type
===
'function'
)
{
var
innerFunc
=
{};
innerFunc
.
def
=
_
.
findWhere
(
$scope
.
funcDefs
,
{
name
:
astNode
.
name
})
innerFunc
.
def
=
_
.
findWhere
(
$scope
.
funcDefs
,
{
name
:
astNode
.
name
})
;
innerFunc
.
params
=
innerFunc
.
def
.
defaultParams
;
_
.
each
(
astNode
.
params
,
function
(
param
,
index
)
{
...
...
src/app/services/graphite/lexer.js
View file @
bc3cad20
...
...
@@ -577,7 +577,7 @@ define([
* var str = "
hello
\
*
world
";
*/
scanStringLiteral: function (
checks
) {
scanStringLiteral: function () {
/*jshint loopfunc:true */
var quote = this.peek();
...
...
@@ -587,8 +587,6 @@ define([
}
var
value
=
""
;
var
startLine
=
this
.
line
;
var
startChar
=
this
.
char
;
this
.
skip
();
...
...
src/app/services/graphite/parser.js
View file @
bc3cad20
...
...
@@ -11,11 +11,6 @@ define([
StringLiteral
:
6
};
function
Node
(
type
,
value
)
{
this
.
type
=
type
;
this
.
value
=
value
;
}
function
Parser
(
expression
)
{
this
.
expression
=
expression
;
this
.
lexer
=
new
Lexer
(
expression
);
...
...
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