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
4fd5552d
Commit
4fd5552d
authored
Apr 09, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pluginlist' of github.com:grafana/grafana into pluginlist
parents
12800f83
cf750c53
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
106 additions
and
15 deletions
+106
-15
public/app/plugins/panel/pluginlist/module.html
+25
-12
public/dashboards/home.json
+12
-2
public/sass/_grafana.scss
+1
-0
public/sass/components/_cards.scss
+8
-1
public/sass/components/_panel_pluginlist.scss
+60
-0
No files found.
public/app/plugins/panel/pluginlist/module.html
View file @
4fd5552d
<div
class=
"dashlist"
>
<div
class=
"pluginlist"
>
<div
class=
"dashlist-item"
ng-repeat=
"plugin in ctrl.pluginList"
>
<h5
class=
"pluginlist-section-header pluginlist-section-header--first"
><i
class=
"icon-gf icon-gf-apps pluginlist-icon"
></i>
Installed Apps
</h5>
<a
class=
"dashlist-link dashlist-link-{{plugin.state}}"
href=
"plugins/{{plugin.id}}/edit"
>
<div
class=
"pluginlist-item"
ng-repeat=
"plugin in ctrl.pluginList"
>
<img
ng-src=
"{{plugin.info.logos.small}}"
style=
"width: 24px"
>
<a
class=
"pluginlist-link pluginlist-link-{{plugin.state}}"
href=
"plugins/{{plugin.id}}/edit"
>
<span
class=
"dashlist-title"
>
<img
ng-src=
"{{plugin.info.logos.small}}"
class=
"pluginlist-image"
>
{{plugin.name}}
<span
class=
"pluginlist-title"
>
{{plugin.name}}
</span>
<span
class=
"pluginlist-version"
>
v{{plugin.info.version}}
</span>
<span
class=
"pluginlist-message pluginlist-message--update"
ng-show=
"plugin.hasUpdate"
>
Update available!
</span>
</span>
<span
class=
"dashlist-update"
ng-show=
"plugin.hasUpdate"
>
<span
class=
"pluginlist-message pluginlist-message--enable"
ng-show=
"!plugin.enabled"
>
<i
class=
"fa fa-exclamation"
></i>
Update available
</span>
<span
class=
"dashlist-update"
ng-show=
"!plugin.enabled"
>
<i
class=
"fa fa-exclamation"
></i>
Enable now
Enable now
</span>
</span>
<span
class=
"pluginlist-message pluginlist-message--no-update"
ng-show=
"plugin.enabled && !plugin.hasUpdate"
>
Up to date
</span>
</a>
</div>
<h5
class=
"pluginlist-section-header"
><i
class=
"icon-gf icon-gf-panel pluginlist-icon"
></i>
Installed Panels
</h5>
<div
class=
"pluginlist-item"
>
<a
class=
"pluginlist-link pluginlist-link-{{plugin.state}}"
href=
"http://grafana/net/plugins/"
>
<span
class=
"pluginlist-none-installed"
>
No additional panels installed.
<span
class=
"pluginlist-emphasis"
>
Browse Grafana.net
</span></span>
</a>
</div>
<h5
class=
"pluginlist-section-header"
><i
class=
"icon-gf icon-gf-datasources pluginlist-icon"
></i>
Installed Data Sources
</h5>
<div
class=
"pluginlist-item"
>
<a
class=
"pluginlist-link pluginlist-link-{{plugin.state}}"
href=
"http://grafana/net/plugins/"
>
<span
class=
"pluginlist-none-installed"
>
No additional data sources installed.
<span
class=
"pluginlist-emphasis"
>
Browse Grafana.net
</span></span>
</a>
</a>
</div>
</div>
</div>
</div>
public/dashboards/home.json
View file @
4fd5552d
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
"limit"
:
10
,
"limit"
:
10
,
"mode"
:
"starred"
,
"mode"
:
"starred"
,
"query"
:
""
,
"query"
:
""
,
"span"
:
6
,
"span"
:
3.75
,
"tags"
:
[],
"tags"
:
[],
"title"
:
"Starred dashboards"
,
"title"
:
"Starred dashboards"
,
"type"
:
"dashlist"
"type"
:
"dashlist"
...
@@ -49,10 +49,20 @@
...
@@ -49,10 +49,20 @@
"limit"
:
10
,
"limit"
:
10
,
"mode"
:
"recently viewed"
,
"mode"
:
"recently viewed"
,
"query"
:
""
,
"query"
:
""
,
"span"
:
6
,
"span"
:
3.75
,
"tags"
:
[],
"tags"
:
[],
"title"
:
"Recently viewed dashboards"
,
"title"
:
"Recently viewed dashboards"
,
"type"
:
"dashlist"
"type"
:
"dashlist"
},
{
"title"
:
""
,
"error"
:
false
,
"span"
:
4.5
,
"editable"
:
true
,
"type"
:
"pluginlist"
,
"isNew"
:
true
,
"id"
:
4
,
"links"
:
[]
}
}
],
],
"title"
:
"Row"
"title"
:
"Row"
...
...
public/sass/_grafana.scss
View file @
4fd5552d
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
@import
"components/panel_graph"
;
@import
"components/panel_graph"
;
@import
"components/submenu"
;
@import
"components/submenu"
;
@import
"components/panel_dashlist"
;
@import
"components/panel_dashlist"
;
@import
"components/panel_pluginlist"
;
@import
"components/panel_singlestat"
;
@import
"components/panel_singlestat"
;
@import
"components/panel_table"
;
@import
"components/panel_table"
;
@import
"components/panel_text"
;
@import
"components/panel_text"
;
...
...
public/sass/components/_cards.scss
View file @
4fd5552d
...
@@ -116,6 +116,10 @@
...
@@ -116,6 +116,10 @@
padding
:
0
1
.5rem
1
.5rem
0rem
;
padding
:
0
1
.5rem
1
.5rem
0rem
;
}
}
.card-item-wrapper--clickable
{
cursor
:
pointer
;
}
.card-item-figure
{
.card-item-figure
{
margin
:
0
$spacer
$spacer
0
;
margin
:
0
$spacer
$spacer
0
;
height
:
6rem
;
height
:
6rem
;
...
@@ -157,6 +161,10 @@
...
@@ -157,6 +161,10 @@
width
:
100%
;
width
:
100%
;
}
}
.card-item-wrapper--clickable
{
cursor
:
pointer
;
}
.card-item
{
.card-item
{
border-bottom
:
.2rem
solid
$page-bg
;
border-bottom
:
.2rem
solid
$page-bg
;
border-radius
:
0
;
border-radius
:
0
;
...
@@ -186,4 +194,3 @@
...
@@ -186,4 +194,3 @@
margin-right
:
0
;
margin-right
:
0
;
}
}
}
}
public/sass/components/_panel_pluginlist.scss
0 → 100644
View file @
4fd5552d
.pluginlist-section-header
{
margin
:
(
$spacer
*
2
)
0
$spacer
0
;
color
:
$text-color-weak
;
}
.pluginlist-section-header--first
{
margin-top
:
$spacer
/
2
;
}
.pluginlist-link
{
display
:
block
;
margin
:
5px
;
padding
:
7px
;
background-color
:
$tight-form-bg
;
&
:hover
{
background-color
:
$tight-form-func-bg
;
}
}
.pluginlist-icon
{
vertical-align
:
sub
;
font-size
:
$font-size-h1
;
margin-right
:
$spacer
/
2
;
}
.pluginlist-image
{
width
:
20px
;
}
.pluginlist-title
{
margin-right
:
$spacer
/
3
;
}
.pluginlist-version
{
font-size
:
$font-size-sm
;
color
:
$text-color-weak
;
}
.pluginlist-message
{
float
:
right
;
font-size
:
$font-size-sm
;
}
.pluginlist-message--enable
{
color
:
$brand-success
;
}
.pluginlist-message--no-update
{
color
:
$text-color-weak
;
}
.pluginlist-emphasis
{
font-weight
:
600
;
}
.pluginlist-none-installed
{
color
:
$text-color-weak
;
font-size
:
$font-size-sm
;
}
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