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
273fbaac
Commit
273fbaac
authored
Feb 05, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(): minor changes
parent
f1889003
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
10 deletions
+6
-10
pkg/api/index.go
+1
-1
public/app/core/routes/all.js
+1
-1
public/app/features/panel/metrics_panel_ctrl.ts
+2
-5
public/app/features/snapshot/partials/snapshots.html
+1
-1
public/app/plugins/datasource/prometheus/query_ctrl.ts
+1
-0
public/app/plugins/panel/graph/module.ts
+0
-1
public/app/plugins/panel/singlestat/module.ts
+0
-1
No files found.
pkg/api/index.go
View file @
273fbaac
...
@@ -62,7 +62,7 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) {
...
@@ -62,7 +62,7 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) {
data
.
MainNavLinks
=
append
(
data
.
MainNavLinks
,
&
dtos
.
NavLink
{
data
.
MainNavLinks
=
append
(
data
.
MainNavLinks
,
&
dtos
.
NavLink
{
Text
:
"Snapshots"
,
Text
:
"Snapshots"
,
Icon
:
"fa
fa-fw fa-camera-retro
"
,
Icon
:
"fa
-fw icon-gf icon-gf-snapshot
"
,
Url
:
"/dashboard/snapshots"
,
Url
:
"/dashboard/snapshots"
,
})
})
...
...
public/app/core/routes/all.js
View file @
273fbaac
...
@@ -138,7 +138,7 @@ define([
...
@@ -138,7 +138,7 @@ define([
controller
:
'ResetPasswordCtrl'
,
controller
:
'ResetPasswordCtrl'
,
})
})
.
when
(
'/dashboard/snapshots'
,
{
.
when
(
'/dashboard/snapshots'
,
{
templateUrl
:
'app/features/snapshot/partials/snapshots.html'
,
templateUrl
:
'
public/
app/features/snapshot/partials/snapshots.html'
,
controller
:
'SnapshotsCtrl'
,
controller
:
'SnapshotsCtrl'
,
controllerAs
:
'ctrl'
,
controllerAs
:
'ctrl'
,
})
})
...
...
public/app/features/panel/metrics_panel_ctrl.ts
View file @
273fbaac
...
@@ -47,10 +47,6 @@ class MetricsPanelCtrl extends PanelCtrl {
...
@@ -47,10 +47,6 @@ class MetricsPanelCtrl extends PanelCtrl {
this
.
datasources
=
this
.
datasourceSrv
.
getMetricSources
();
this
.
datasources
=
this
.
datasourceSrv
.
getMetricSources
();
}
}
refresh
()
{
this
.
getData
();
}
refreshData
(
data
)
{
refreshData
(
data
)
{
// null op
// null op
return
this
.
$q
.
when
(
data
);
return
this
.
$q
.
when
(
data
);
...
@@ -61,13 +57,14 @@ class MetricsPanelCtrl extends PanelCtrl {
...
@@ -61,13 +57,14 @@ class MetricsPanelCtrl extends PanelCtrl {
return
data
;
return
data
;
}
}
getData
()
{
refresh
()
{
// ignore fetching data if another panel is in fullscreen
// ignore fetching data if another panel is in fullscreen
if
(
this
.
otherPanelInFullscreenMode
())
{
return
;
}
if
(
this
.
otherPanelInFullscreenMode
())
{
return
;
}
// if we have snapshot data use that
// if we have snapshot data use that
if
(
this
.
panel
.
snapshotData
)
{
if
(
this
.
panel
.
snapshotData
)
{
if
(
this
.
loadSnapshot
)
{
if
(
this
.
loadSnapshot
)
{
this
.
updateTimeRange
();
this
.
loadSnapshot
(
this
.
panel
.
snapshotData
);
this
.
loadSnapshot
(
this
.
panel
.
snapshotData
);
}
}
return
;
return
;
...
...
public/app/features/snapshot/partials/snapshots.html
View file @
273fbaac
<navbar
icon=
"
fa fa-fw fa-camera-retro
"
title=
"Dashboard snapshots"
></navbar>
<navbar
icon=
"
icon-gf icon-gf-snapshot
"
title=
"Dashboard snapshots"
></navbar>
<div
class=
"page-container"
>
<div
class=
"page-container"
>
<div
class=
"page-wide"
>
<div
class=
"page-wide"
>
...
...
public/app/plugins/datasource/prometheus/query_ctrl.ts
View file @
273fbaac
...
@@ -9,6 +9,7 @@ import {QueryCtrl} from 'app/features/panel/panel';
...
@@ -9,6 +9,7 @@ import {QueryCtrl} from 'app/features/panel/panel';
class
PrometheusQueryCtrl
extends
QueryCtrl
{
class
PrometheusQueryCtrl
extends
QueryCtrl
{
static
templateUrl
=
'public/app/plugins/datasource/prometheus/partials/query.editor.html'
;
static
templateUrl
=
'public/app/plugins/datasource/prometheus/partials/query.editor.html'
;
metric
:
any
;
metric
:
any
;
resolutions
:
any
;
resolutions
:
any
;
oldTarget
:
any
;
oldTarget
:
any
;
...
...
public/app/plugins/panel/graph/module.ts
View file @
273fbaac
...
@@ -152,7 +152,6 @@ class GraphCtrl extends MetricsPanelCtrl {
...
@@ -152,7 +152,6 @@ class GraphCtrl extends MetricsPanelCtrl {
}
}
loadSnapshot
(
snapshotData
)
{
loadSnapshot
(
snapshotData
)
{
this
.
updateTimeRange
();
this
.
annotationsPromise
=
this
.
annotationsSrv
.
getAnnotations
(
this
.
dashboard
);
this
.
annotationsPromise
=
this
.
annotationsSrv
.
getAnnotations
(
this
.
dashboard
);
this
.
dataHandler
(
snapshotData
);
this
.
dataHandler
(
snapshotData
);
}
}
...
...
public/app/plugins/panel/singlestat/module.ts
View file @
273fbaac
...
@@ -79,7 +79,6 @@ class SingleStatCtrl extends MetricsPanelCtrl {
...
@@ -79,7 +79,6 @@ class SingleStatCtrl extends MetricsPanelCtrl {
}
}
loadSnapshot
(
snapshotData
)
{
loadSnapshot
(
snapshotData
)
{
this
.
updateTimeRange
();
this
.
dataHandler
(
snapshotData
);
this
.
dataHandler
(
snapshotData
);
}
}
...
...
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