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
fee44d83
Commit
fee44d83
authored
Aug 06, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small timepicker angular binding perf improvement
parent
d70c81f0
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
7 deletions
+19
-7
src/app/controllers/dash.js
+1
-0
src/app/panels/text/module.html
+1
-1
src/app/panels/timepicker/editor.html
+6
-0
src/app/panels/timepicker/module.html
+8
-4
src/app/partials/dashboard.html
+3
-2
No files found.
src/app/controllers/dash.js
View file @
fee44d83
...
@@ -14,6 +14,7 @@ function (angular, $, config, _) {
...
@@ -14,6 +14,7 @@ function (angular, $, config, _) {
$scope
,
$rootScope
,
dashboardKeybindings
,
filterSrv
,
dashboard
,
panelMoveSrv
,
timer
)
{
$scope
,
$rootScope
,
dashboardKeybindings
,
filterSrv
,
dashboard
,
panelMoveSrv
,
timer
)
{
$scope
.
editor
=
{
index
:
0
};
$scope
.
editor
=
{
index
:
0
};
$scope
.
panelNames
=
config
.
panels
;
$scope
.
init
=
function
()
{
$scope
.
init
=
function
()
{
$scope
.
availablePanels
=
config
.
panels
;
$scope
.
availablePanels
=
config
.
panels
;
...
...
src/app/panels/text/module.html
View file @
fee44d83
<div
ng-controller=
'text'
ng-init=
"init()"
style=
"min-height:{{panel.height || row.height}}"
ng-dblclick=
"openEditor()"
>
<div
ng-controller=
'text'
ng-init=
"init()"
style=
"min-height:{{panel.height || row.height}}"
>
<p
ng-bind-html=
"content"
>
<p
ng-bind-html=
"content"
>
</p>
</p>
</div>
</div>
src/app/panels/timepicker/editor.html
View file @
fee44d83
...
@@ -8,5 +8,11 @@
...
@@ -8,5 +8,11 @@
<label
class=
"small"
>
Auto-refresh options
<small>
comma seperated
</small></label>
<label
class=
"small"
>
Auto-refresh options
<small>
comma seperated
</small></label>
<input
type=
"text"
array-join
class=
"input-xlarge"
ng-model=
"panel.refresh_intervals"
>
<input
type=
"text"
array-join
class=
"input-xlarge"
ng-model=
"panel.refresh_intervals"
>
</div>
</div>
<p>
<br>
<i
class=
"icon-info-sign"
></i>
For these changes to fully take effect save and reload the dashboard.
</i>
</div>
</div>
</div>
</div>
src/app/panels/timepicker/module.html
View file @
fee44d83
...
@@ -31,16 +31,20 @@
...
@@ -31,16 +31,20 @@
<ul
class=
"dropdown-menu"
>
<ul
class=
"dropdown-menu"
>
<!-- Relative time options -->
<!-- Relative time options -->
<li
ng-repeat=
'timespan in panel.time_options track by $index'
>
<li
bindonce
ng-repeat=
'timespan in panel.time_options track by $index'
>
<a
ng-click=
"setRelativeFilter(timespan)"
>
Last {{timespan}}
</a>
<a
ng-click=
"setRelativeFilter(timespan)"
bo-text=
"'Last ' + timespan"
>
</a>
</li>
</li>
<!-- Auto refresh submenu -->
<!-- Auto refresh submenu -->
<li
class=
"dropdown-submenu"
>
<li
class=
"dropdown-submenu"
>
<a
href=
"#"
>
Auto-Refresh
</a>
<a
href=
"#"
>
Auto-Refresh
</a>
<ul
class=
"dropdown-menu"
>
<ul
class=
"dropdown-menu"
>
<li><a
ng-click=
"dashboard.set_interval(false)"
>
Off
</a></li>
<li>
<li
ng-repeat=
"interval in panel.refresh_intervals track by $index"
><a
ng-click=
"dashboard.set_interval(interval)"
>
Every {{interval}}
</a></li>
<a
ng-click=
"dashboard.set_interval(false)"
>
Off
</a>
</li>
<li
bindonce
ng-repeat=
"interval in panel.refresh_intervals track by $index"
>
<a
ng-click=
"dashboard.set_interval(interval)"
bo-text=
"'Every ' + interval"
></a>
</li>
</ul>
</ul>
</li>
</li>
<li><a
ng-click=
"customTime()"
>
Custom
</a></li>
<li><a
ng-click=
"customTime()"
>
Custom
</a></li>
...
...
src/app/partials/dashboard.html
View file @
fee44d83
...
@@ -53,8 +53,9 @@
...
@@ -53,8 +53,9 @@
<li
class=
"dropdown-submenu"
>
<li
class=
"dropdown-submenu"
>
<a
href=
"javascript:void(0);"
>
Add Panel
</a>
<a
href=
"javascript:void(0);"
>
Add Panel
</a>
<ul
class=
"dropdown-menu"
>
<ul
class=
"dropdown-menu"
>
<li><a
ng-click=
"add_panel_default('graph')"
>
Graph
</a></li>
<li
bindonce
ng-repeat=
"name in panelNames"
>
<li><a
ng-click=
"add_panel_default('text')"
>
Text
</a></li>
<a
ng-click=
"add_panel_default(name)"
bo-text=
"name"
></a>
</li>
</ul>
</ul>
</li>
</li>
<li
class=
"dropdown-submenu"
>
<li
class=
"dropdown-submenu"
>
...
...
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