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
df615580
Commit
df615580
authored
Oct 10, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grid: fixed geting started panel pos
parent
2e77bd0c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
pkg/api/dashboard.go
+8
-6
public/dashboards/home.json
+1
-1
No files found.
pkg/api/dashboard.go
View file @
df615580
...
@@ -278,12 +278,14 @@ func addGettingStartedPanelToHomeDashboard(dash *simplejson.Json) {
...
@@ -278,12 +278,14 @@ func addGettingStartedPanelToHomeDashboard(dash *simplejson.Json) {
panels
:=
dash
.
Get
(
"panels"
)
.
MustArray
()
panels
:=
dash
.
Get
(
"panels"
)
.
MustArray
()
newpanel
:=
simplejson
.
NewFromAny
(
map
[
string
]
interface
{}{
newpanel
:=
simplejson
.
NewFromAny
(
map
[
string
]
interface
{}{
"type"
:
"gettingstarted"
,
"type"
:
"gettingstarted"
,
"id"
:
123123
,
"id"
:
123123
,
"x"
:
0
,
"gridPos"
:
map
[
string
]
interface
{}{
"y"
:
3
,
"x"
:
0
,
"width"
:
12
,
"y"
:
3
,
"height"
:
4
,
"w"
:
12
,
"h"
:
4
,
},
})
})
panels
=
append
(
panels
,
newpanel
)
panels
=
append
(
panels
,
newpanel
)
...
...
public/dashboards/home.json
View file @
df615580
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
}
}
],
],
"rows"
:
[],
"rows"
:
[],
"schemaVersion"
:
1
5
,
"schemaVersion"
:
1
6
,
"style"
:
"dark"
,
"style"
:
"dark"
,
"tags"
:
[],
"tags"
:
[],
"templating"
:
{
"templating"
:
{
...
...
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