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
9c1217cd
Commit
9c1217cd
authored
Jan 27, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated
parent
f1efce56
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 additions
and
61 deletions
+1
-61
public/app/plugins/panel/test/module.html
+0
-5
public/app/plugins/panel/test/module.ts
+0
-35
public/app/plugins/panel/test/plugin.json
+0
-18
public/app/plugins/panel/text/module.ts
+1
-3
No files found.
public/app/plugins/panel/test/module.html
deleted
100644 → 0
View file @
f1efce56
<h2
class=
"text-center"
>
Test panel!
panel.id: {{ctrl.panel.id}}
data: {{ctrl.data}}
</h2>
public/app/plugins/panel/test/module.ts
deleted
100644 → 0
View file @
f1efce56
///<reference path="../../../headers/common.d.ts" />
import
{
PanelDirective
,
MetricsPanelCtrl
}
from
'../../../features/panel/panel'
;
function
optionsTab
()
{
return
{
template
:
'<h2>options!</h2>'
};
}
export
class
TestPanelCtrl
extends
MetricsPanelCtrl
{
data
:
any
;
constructor
(
$scope
,
$injector
)
{
super
(
$scope
,
$injector
);
}
refreshData
(
data
)
{
return
this
.
issueQueries
().
then
(
res
=>
{
this
.
data
=
res
.
data
[
0
].
target
;
console
.
log
(
'issueQueries'
,
res
);
}).
catch
(
err
=>
{
console
.
log
(
'Errrrr! in test panel'
,
err
);
});
}
}
class
TestPanel
extends
PanelDirective
{
templateUrl
=
`app/plugins/panel/test/module.html`
;
controller
=
TestPanelCtrl
;
link
(
scope
,
elem
)
{
console
.
log
(
'test panel linking:'
,
scope
);
}
}
export
{
TestPanel
as
Panel
}
public/app/plugins/panel/test/plugin.json
deleted
100644 → 0
View file @
f1efce56
{
"type"
:
"panel"
,
"name"
:
"Test"
,
"id"
:
"test"
,
"info"
:
{
"description"
:
"Test panel"
,
"author"
:
{
"name"
:
"Core Grafana Team."
,
"url"
:
"http://grafana.org"
},
"logos"
:
{
"icon"
:
"fa fa-fw th-large"
,
"small"
:
"img/logo_small.png"
,
"large"
:
"img/logo_large.png"
}
}
}
public/app/plugins/panel/text/module.ts
View file @
9c1217cd
...
...
@@ -22,9 +22,7 @@ export class TextPanelCtrl extends PanelCtrl {
initEditMode
()
{
this
.
icon
=
'fa fa-text-width'
;
this
.
addEditorTab
(
'Options'
,
()
=>
{
return
{
templateUrl
:
'public/app/plugins/panel/text/editor.html'
};
});
this
.
addEditorTab
(
'Options'
,
'public/app/plugins/panel/text/editor.html'
);
}
refresh
()
{
...
...
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