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
a3dd29fb
Commit
a3dd29fb
authored
Dec 08, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of github.com:grafana/grafana into develop
parents
1bb535bb
912dc0f2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
47 deletions
+21
-47
public/app/features/panel/panel_editor_tab.ts
+6
-1
public/app/plugins/panel/graph/module.ts
+1
-0
public/app/plugins/panel/graph/tab_display.html
+9
-43
public/app/plugins/panel/graph/tab_thresholds_time_regions.html
+3
-0
public/app/plugins/panel/graph/thresholds_form.html
+0
-1
public/app/plugins/panel/graph/time_regions_form.html
+2
-2
No files found.
public/app/features/panel/panel_editor_tab.ts
View file @
a3dd29fb
...
@@ -12,7 +12,12 @@ function panelEditorTab(dynamicDirectiveSrv) {
...
@@ -12,7 +12,12 @@ function panelEditorTab(dynamicDirectiveSrv) {
},
},
directive
:
scope
=>
{
directive
:
scope
=>
{
const
pluginId
=
scope
.
ctrl
.
pluginId
;
const
pluginId
=
scope
.
ctrl
.
pluginId
;
const
tabName
=
scope
.
editorTab
.
title
.
toLowerCase
().
replace
(
' '
,
'-'
);
const
tabName
=
scope
.
editorTab
.
title
.
toLowerCase
()
.
replace
(
' '
,
'-'
)
.
replace
(
'&'
,
''
)
.
replace
(
' '
,
''
)
.
replace
(
' '
,
'-'
);
if
(
directiveCache
[
pluginId
])
{
if
(
directiveCache
[
pluginId
])
{
if
(
directiveCache
[
pluginId
][
tabName
])
{
if
(
directiveCache
[
pluginId
][
tabName
])
{
...
...
public/app/plugins/panel/graph/module.ts
View file @
a3dd29fb
...
@@ -138,6 +138,7 @@ class GraphCtrl extends MetricsPanelCtrl {
...
@@ -138,6 +138,7 @@ class GraphCtrl extends MetricsPanelCtrl {
this
.
addEditorTab
(
'Display options'
,
'public/app/plugins/panel/graph/tab_display.html'
);
this
.
addEditorTab
(
'Display options'
,
'public/app/plugins/panel/graph/tab_display.html'
);
this
.
addEditorTab
(
'Axes'
,
axesEditorComponent
);
this
.
addEditorTab
(
'Axes'
,
axesEditorComponent
);
this
.
addEditorTab
(
'Legend'
,
'public/app/plugins/panel/graph/tab_legend.html'
);
this
.
addEditorTab
(
'Legend'
,
'public/app/plugins/panel/graph/tab_legend.html'
);
this
.
addEditorTab
(
'Thresholds & Time Regions'
,
'public/app/plugins/panel/graph/tab_thresholds_time_regions.html'
);
this
.
subTabIndex
=
0
;
this
.
subTabIndex
=
0
;
}
}
...
...
public/app/plugins/panel/graph/tab_display.html
View file @
a3dd29fb
<div
class=
"edit-tab-with-sidemenu"
>
<aside
class=
"edit-sidemenu-aside"
>
<ul
class=
"edit-sidemenu"
>
<li
ng-class=
"{active: ctrl.subTabIndex === 0}"
>
<a
ng-click=
"ctrl.subTabIndex = 0"
>
Draw options
</a>
</li>
<li
ng-class=
"{active: ctrl.subTabIndex === 1}"
>
<a
ng-click=
"ctrl.subTabIndex = 1"
>
Series overrides
<span
class=
"muted"
>
({{ctrl.panel.seriesOverrides.length}})
</span>
</a>
</li>
<li
ng-class=
"{active: ctrl.subTabIndex === 2}"
>
<a
ng-click=
"ctrl.subTabIndex = 2"
>
Thresholds
<span
class=
"muted"
>
({{ctrl.panel.thresholds.length}})
</span>
</a>
</li>
<li
ng-class=
"{active: ctrl.subTabIndex === 3}"
>
<a
ng-click=
"ctrl.subTabIndex = 3"
>
Time regions
<span
class=
"muted"
>
({{ctrl.panel.timeRegions.length}})
</span>
</a>
</li>
</ul>
</aside>
<div
class=
"edit
-tab-content"
ng-if=
"ctrl.subTabIndex === 0
"
>
<div
class=
"edit
or-row
"
>
<div
class=
"section gf-form-group"
>
<div
class=
"section gf-form-group"
>
<h5
class=
"section-heading"
>
Draw Modes
</h5>
<h5
class=
"section-heading"
>
Draw Modes
</h5>
<gf-form-switch
class=
"gf-form"
label=
"Bars"
label-class=
"width-5"
checked=
"ctrl.panel.bars"
on-change=
"ctrl.render()"
></gf-form-switch>
<gf-form-switch
class=
"gf-form"
label=
"Bars"
label-class=
"width-5"
checked=
"ctrl.panel.bars"
on-change=
"ctrl.render()"
></gf-form-switch>
...
@@ -89,9 +66,7 @@
...
@@ -89,9 +66,7 @@
</div>
</div>
</div>
</div>
<div
class=
"edit-tab-content"
ng-if=
"ctrl.subTabIndex === 1"
>
<div
class=
"gf-form-group"
>
<div
class=
"gf-form-group"
>
<h5>
Series specific overrides
<tip>
Regex match example: /server[0-3]/i
</tip></h5>
<div
class=
"gf-form-inline"
ng-repeat=
"override in ctrl.panel.seriesOverrides"
ng-controller=
"SeriesOverridesCtrl"
>
<div
class=
"gf-form-inline"
ng-repeat=
"override in ctrl.panel.seriesOverrides"
ng-controller=
"SeriesOverridesCtrl"
>
<div
class=
"gf-form"
>
<div
class=
"gf-form"
>
<label
class=
"gf-form-label"
>
alias or regex
</label>
<label
class=
"gf-form-label"
>
alias or regex
</label>
...
@@ -110,35 +85,26 @@
...
@@ -110,35 +85,26 @@
</span>
</span>
</label>
</label>
</div>
</div>
<div
class=
"gf-form"
>
<div
class=
"gf-form"
>
<span
class=
"dropdown"
dropdown-typeahead=
"overrideMenu"
dropdown-typeahead-on-select=
"setOverride($item, $subItem)"
>
<span
class=
"dropdown"
dropdown-typeahead=
"overrideMenu"
dropdown-typeahead-on-select=
"setOverride($item, $subItem)"
>
</span>
</span>
</div>
</div>
<div
class=
"gf-form gf-form--grow"
>
<div
class=
"gf-form gf-form--grow"
>
<div
class=
"gf-form-label gf-form-label--grow"
></div>
<div
class=
"gf-form-label gf-form-label--grow"
></div>
</div>
</div>
<div
class=
"gf-form"
>
<div
class=
"gf-form"
>
<label
class=
"gf-form-label"
>
<label
class=
"gf-form-label"
>
<i
class=
"fa fa-trash pointer"
ng-click=
"ctrl.removeSeriesOverride(override)"
></i>
<i
class=
"fa fa-trash pointer"
ng-click=
"ctrl.removeSeriesOverride(override)"
></i>
</label>
</label>
</div>
</div>
</div>
</div>
<div
class=
"gf-form-button-row"
>
<button
class=
"btn btn-inverse"
ng-click=
"ctrl.addSeriesOverride()"
>
<i
class=
"fa fa-plus"
></i>
Add series override
<tip>
Regex match example: /server[0-3]/i
</tip>
</button>
</div>
</div>
</div>
<button
class=
"btn btn-inverse"
ng-click=
"ctrl.addSeriesOverride()"
>
<i
class=
"fa fa-plus"
></i>
Add override
</button>
</div>
<div
class=
"edit-tab-content"
ng-if=
"ctrl.subTabIndex === 2"
>
<graph-threshold-form
panel-ctrl=
"ctrl"
></graph-threshold-form>
</div>
<div
class=
"edit-tab-content"
ng-if=
"ctrl.subTabIndex === 3"
>
<graph-time-region-form
panel-ctrl=
"ctrl"
></graph-time-region-form>
</div>
</div>
public/app/plugins/panel/graph/tab_thresholds_time_regions.html
0 → 100644
View file @
a3dd29fb
<graph-threshold-form
panel-ctrl=
"ctrl"
></graph-threshold-form>
<graph-time-region-form
panel-ctrl=
"ctrl"
></graph-time-region-form>
\ No newline at end of file
public/app/plugins/panel/graph/thresholds_form.html
View file @
a3dd29fb
<div
class=
"gf-form-group"
>
<div
class=
"gf-form-group"
>
<h5>
Thresholds
</h5>
<p
class=
"muted"
ng-show=
"ctrl.disabled"
>
<p
class=
"muted"
ng-show=
"ctrl.disabled"
>
Visual thresholds options
<strong>
disabled.
</strong>
Visual thresholds options
<strong>
disabled.
</strong>
Visit the Alert tab update your thresholds.
<br>
Visit the Alert tab update your thresholds.
<br>
...
...
public/app/plugins/panel/graph/time_regions_form.html
View file @
a3dd29fb
<div
class=
"gf-form-group"
>
<div
class=
"gf-form-group"
>
<h5>
Time regions
<tip>
All configured time regions refers to UTC time
</tip></h5>
<div
class=
"gf-form-inline"
ng-repeat=
"timeRegion in ctrl.panel.timeRegions"
>
<div
class=
"gf-form-inline"
ng-repeat=
"timeRegion in ctrl.panel.timeRegions"
>
<div
class=
"gf-form"
>
<div
class=
"gf-form"
>
<label
class=
"gf-form-label"
>
T{{$index+1}}
</label>
<label
class=
"gf-form-label"
>
T{{$index+1}}
</label>
...
@@ -58,7 +57,7 @@
...
@@ -58,7 +57,7 @@
<div
class=
"gf-form-button-row"
>
<div
class=
"gf-form-button-row"
>
<button
class=
"btn btn-inverse"
ng-click=
"ctrl.addTimeRegion()"
>
<button
class=
"btn btn-inverse"
ng-click=
"ctrl.addTimeRegion()"
>
<i
class=
"fa fa-plus"
></i>
Add time region
<i
class=
"fa fa-plus"
></i>
Add time region
<tip>
All configured time regions refers to UTC time
</tip>
</button>
</button>
</div>
</div>
</div>
</div>
\ No newline at end of file
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