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
691b763c
Commit
691b763c
authored
Dec 24, 2013
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added text edit mode to targets
parent
8308d95e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
3 deletions
+16
-3
src/app/controllers/graphiteTarget.js
+1
-0
src/app/panels/graphite/editor.html
+6
-3
src/css/bootstrap.dark.min.css
+0
-0
src/vendor/bootstrap/less/grafana.less
+9
-0
No files found.
src/app/controllers/graphiteTarget.js
View file @
691b763c
...
...
@@ -16,6 +16,7 @@ function (angular, _, config, graphiteFunctions, Parser) {
$scope
.
functions
=
[];
$scope
.
segments
=
[];
$scope
.
funcDefs
=
graphiteFunctions
;
$scope
.
showTextEditor
=
false
;
var
parser
=
new
Parser
(
$scope
.
target
.
target
);
var
astNode
=
parser
.
getAst
();
...
...
src/app/panels/graphite/editor.html
View file @
691b763c
...
...
@@ -6,7 +6,10 @@
<span
class=
"grafana-target-onoff"
>
<i
class=
"icon-eye-open"
></i>
</span>
<ul
class=
"grafana-segment-list"
role=
"menu"
>
<input
type=
"text"
class=
"grafana-target-text-input"
ng-model=
"target.target"
focus-me=
"showTextEditor"
ng-blur=
"showTextEditor = false"
ng-show=
"showTextEditor"
/>
<ul
class=
"grafana-segment-list"
role=
"menu"
ng-hide=
"showTextEditor"
>
<li
class=
"dropdown"
ng-repeat=
"segment in segments"
role=
"menuitem"
>
<a
tabindex=
"1"
class=
"grafana-target-segment dropdown-toggle"
...
...
@@ -24,7 +27,7 @@
</ul>
<ul
class=
"grafana-target-controls"
>
<li>
<a
class=
"pointer"
tabindex=
"1"
ng-click=
"
enableTextEditor()
"
>
<a
class=
"pointer"
tabindex=
"1"
ng-click=
"
showTextEditor = true
"
>
<i
class=
"icon-pencil"
></i>
</a>
</li>
...
...
@@ -43,7 +46,7 @@
</div>
</div>
<div
class=
"grafana-target-func-panel-wrapper"
>
<div
class=
"grafana-target-func-panel-wrapper"
ng-hide=
"showTextEditor"
>
<div
class=
"grafana-target-func-panel"
>
<span
class=
"grafana-target-func-panel-icon"
>
...
...
src/css/bootstrap.dark.min.css
View file @
691b763c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/vendor/bootstrap/less/grafana.less
View file @
691b763c
...
...
@@ -155,6 +155,15 @@
}
}
input[type=text].grafana-target-text-input {
padding: 2px 6px;
margin: 2px;
background: transparent;
width: 80%;
float: left;
border: none;
}
.grafana-target .dropdown {
padding: 0; margin: 0;
}
...
...
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