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
d55dc925
Commit
d55dc925
authored
Feb 26, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(plugins): restored config view functionality to plugin page
parent
c148d890
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
7 deletions
+25
-7
public/app/core/directives/plugin_component.ts
+5
-5
public/app/features/plugins/partials/edit.html
+19
-1
public/sass/_variables.dark.scss
+1
-1
No files found.
public/app/core/directives/plugin_component.ts
View file @
d55dc925
...
...
@@ -160,13 +160,13 @@ function pluginDirectiveLoader($compile, datasourceSrv, $rootScope, $q, $http, $
}
// AppConfigCtrl
case
'app-config-ctrl'
:
{
let
appModel
=
scope
.
ctrl
.
appM
odel
;
return
System
.
import
(
appM
odel
.
module
).
then
(
function
(
appModule
)
{
let
model
=
scope
.
ctrl
.
m
odel
;
return
System
.
import
(
m
odel
.
module
).
then
(
function
(
appModule
)
{
return
{
baseUrl
:
appM
odel
.
baseUrl
,
name
:
'app-config-'
+
appModel
.
app
Id
,
baseUrl
:
m
odel
.
baseUrl
,
name
:
'app-config-'
+
model
.
plugin
Id
,
bindings
:
{
appModel
:
"="
,
appEditCtrl
:
"="
},
attrs
:
{
"app-model"
:
"ctrl.
appM
odel"
,
"app-edit-ctrl"
:
"ctrl"
},
attrs
:
{
"app-model"
:
"ctrl.
m
odel"
,
"app-edit-ctrl"
:
"ctrl"
},
Component
:
appModule
.
ConfigCtrl
,
};
});
...
...
public/app/features/plugins/partials/edit.html
View file @
d55dc925
...
...
@@ -47,6 +47,13 @@
<editor-checkbox
text=
"Pinned"
model=
"ctrl.model.pinned"
change=
"ctrl.togglePinned()"
></editor-checkbox>
</div>
</div>
<div
ng-if=
"ctrl.model.pluginId"
>
<plugin-component
type=
"app-config-ctrl"
></plugin-component>
<div
class=
"clearfix"
></div>
<button
type=
"submit"
class=
"btn btn-success"
ng-click=
"ctrl.update()"
>
Save
</button>
</div>
</div>
<aside
class=
"page-sidebar"
>
...
...
@@ -56,7 +63,18 @@
</section>
<section
class=
"page-sidebar-section"
ng-show=
"ctrl.model.type === 'app'"
>
<h5>
Includes
</h4>
<span>
TODO
</span>
<ul
class=
"ui-list"
>
<li
ng-show=
"!ctrl.includedPanels.length"
><em>
None
</em></li>
<li
ng-repeat=
"panel in ctrl.includedPanels"
>
{{panel.name}}
</li>
<li
ng-repeat=
"ds in ctrl.includedDatasources"
>
{{ds.name}}
</li>
<li
ng-repeat=
"page in ctrl.model.pages"
>
<a
href=
"apps/{{ctrl.appId}}/page/{{page.slug}}"
class=
"external-link"
>
{{page.name}}
</a>
</li>
</ul>
</section>
<section
class=
"page-sidebar-section"
>
<h5>
Dependencies
</h4>
...
...
public/sass/_variables.dark.scss
View file @
d55dc925
...
...
@@ -53,7 +53,7 @@ $page-bg: $dark-2;
$body-color
:
$gray-4
;
$text-color
:
$gray-4
;
$text-color-strong
:
$white
;
$text-color-weak
:
$gray-
1
;
$text-color-weak
:
$gray-
2
;
// gradients
$brand-gradient
:
linear-gradient
(
to
right
,
rgba
(
255
,
213
,
0
,
0
.7
)
0%
,
rgba
(
255
,
68
,
0
,
0
.7
)
99%
,
rgba
(
255
,
68
,
0
,
0
.7
)
100%
);
...
...
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