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
0583ec0f
Commit
0583ec0f
authored
Feb 01, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(plugins): more work on plugin directives and isolation
parent
12f487e2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
6 deletions
+8
-6
public/app/core/directives/plugin_directive_loader.ts
+0
-1
public/app/features/datasources/edit_ctrl.js
+4
-1
public/app/features/datasources/partials/edit.html
+0
-2
public/app/plugins/datasource/graphite/partials/config.html
+2
-1
public/app/plugins/datasource/prometheus/partials/config.html
+2
-1
No files found.
public/app/core/directives/plugin_directive_loader.ts
View file @
0583ec0f
...
...
@@ -56,7 +56,6 @@ function pluginDirectiveLoader($compile, datasourceSrv) {
}
function
appendAndCompile
(
scope
,
elem
,
componentInfo
)
{
console
.
log
(
'compile'
,
elem
,
componentInfo
);
var
child
=
angular
.
element
(
document
.
createElement
(
componentInfo
.
name
));
_
.
each
(
componentInfo
.
attrs
,
(
value
,
key
)
=>
{
child
.
attr
(
key
,
value
);
...
...
public/app/features/datasources/edit_ctrl.js
View file @
0583ec0f
...
...
@@ -10,7 +10,10 @@ function (angular, _, config) {
var
datasourceTypes
=
[];
module
.
directive
(
'datasourceHttpSettings'
,
function
()
{
return
{
templateUrl
:
'public/app/features/datasources/partials/http_settings.html'
};
return
{
scope
:
{
current
:
"="
},
templateUrl
:
'public/app/features/datasources/partials/http_settings.html'
};
});
module
.
controller
(
'DataSourceEditCtrl'
,
function
(
$scope
,
$q
,
backendSrv
,
$routeParams
,
$location
,
datasourceSrv
)
{
...
...
public/app/features/datasources/partials/edit.html
View file @
0583ec0f
...
...
@@ -46,8 +46,6 @@
</plugin-directive-loader>
</div>
<!-- <ds-config-view ds-meta="datasourceMeta" current="current"></ds-config-view> -->
<div
ng-if=
"testing"
style=
"margin-top: 25px"
>
<h5
ng-show=
"!testing.done"
>
Testing....
<i
class=
"fa fa-spiner fa-spin"
></i></h5>
<h5
ng-show=
"testing.done"
>
Test results
</h5>
...
...
public/app/plugins/datasource/graphite/partials/config.html
View file @
0583ec0f
<datasource-http-settings></datasource-http-settings>
<datasource-http-settings
current=
"ctrl.current"
>
</datasource-http-settings>
public/app/plugins/datasource/prometheus/partials/config.html
View file @
0583ec0f
<datasource-http-settings></datasource-http-settings>
<datasource-http-settings
current=
"ctrl.current"
>
</datasource-http-settings>
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