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
db986320
Commit
db986320
authored
Mar 08, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(plugins): progress on plugins page
parent
f80c2406
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
7 deletions
+24
-7
public/app/features/plugins/edit_ctrl.ts
+7
-3
public/app/features/plugins/partials/edit.html
+0
-0
public/sass/_variables.scss
+2
-2
public/sass/pages/_plugins.scss
+15
-2
No files found.
public/app/features/plugins/edit_ctrl.ts
View file @
db986320
...
...
@@ -7,7 +7,7 @@ export class PluginEditCtrl {
model
:
any
;
pluginIcon
:
string
;
pluginId
:
any
;
include
dPanel
s
:
any
;
includes
:
any
;
readmeHtml
:
any
;
includedDatasources
:
any
;
tabIndex
:
number
;
...
...
@@ -24,14 +24,17 @@ export class PluginEditCtrl {
init
()
{
return
this
.
backendSrv
.
get
(
`/api/org/plugins/
${
this
.
pluginId
}
/settings`
).
then
(
result
=>
{
this
.
model
=
result
;
this
.
includedPanels
=
_
.
where
(
result
.
includes
,
{
type
:
'panel'
});
this
.
includedDatasources
=
_
.
where
(
result
.
includes
,
{
type
:
'datasource'
});
this
.
pluginIcon
=
this
.
getPluginIcon
(
this
.
model
.
type
);
this
.
model
.
dependencies
.
plugins
.
forEach
(
plug
=>
{
plug
.
icon
=
this
.
getPluginIcon
(
plug
.
type
);
});
this
.
includes
=
_
.
map
(
result
.
includes
,
plug
=>
{
plug
.
icon
=
this
.
getPluginIcon
(
plug
.
type
);
return
plug
;
});
return
this
.
initReadme
();
});
}
...
...
@@ -50,6 +53,7 @@ export class PluginEditCtrl {
case
'datasource'
:
return
'icon-gf icon-gf-datasources'
;
case
'panel'
:
return
'icon-gf icon-gf-panel'
;
case
'app'
:
return
'icon-gf icon-gf-apps'
;
case
'page'
:
return
'icon-gf icon-gf-share'
;
}
}
...
...
public/app/features/plugins/partials/edit.html
View file @
db986320
This diff is collapsed.
Click to expand it.
public/sass/_variables.scss
View file @
db986320
...
...
@@ -143,8 +143,8 @@ $caret-width-lg: $caret-width !default;
// Page
$page-sidebar-width
:
1
0
rem
;
$page-sidebar-margin
:
5
rem
;
$page-sidebar-width
:
1
1
rem
;
$page-sidebar-margin
:
4
rem
;
// Links
// -------------------------
...
...
public/sass/pages/_plugins.scss
View file @
db986320
...
...
@@ -15,7 +15,7 @@
}
.plugin-header-info-block
{
padding-top
:
$spacer
;
float
:
left
;
}
.plugin-header-author
{
...
...
@@ -26,10 +26,23 @@
text-transform
:
uppercase
;
}
.plugin-
dependency-icon
{
.plugin-
info-list-item
{
img
{
width
:
16px
;
}
white-space
:
nowrap
;
max-width
:
$page-sidebar-width
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
}
.plugin-markdown-readme
{
img
{
max-width
:
100%
;
}
ul
{
padding-left
:
$spacer
*
1
.5
;
}
}
// .app-edit-logo-box {
...
...
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