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
69de3bcf
Commit
69de3bcf
authored
Aug 22, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(example): remove example file and add links
parent
3077f992
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
73 deletions
+3
-73
examples/README.md
+3
-3
examples/boilerplate-es5-panel/css/styles.css
+0
-4
examples/boilerplate-es5-panel/module.js
+0
-53
examples/boilerplate-es5-panel/panel.html
+0
-7
examples/boilerplate-es5-panel/plugin.json
+0
-6
No files found.
examples/README.md
View file @
69de3bcf
## Example plugin implementations
datasource:
[
simple-json-datasource
](
https://github.com/grafana/simple-json-datasource
)
app:
[
example-app
](
https://github.com/grafana/example-app
)
\ No newline at end of file
datasource:
[
simple-json-datasource
](
https://github.com/grafana/grafana-simple-json-datasource
)
app:
[
example-app
](
https://github.com/grafana/grafana-example-app
)
panel:
[
grafana-piechart-panel
](
https://github.com/grafana/piechart-panel
)
examples/boilerplate-es5-panel/css/styles.css
deleted
100644 → 0
View file @
3077f992
.panel-boilerplate-values
{
text-align
:
center
;
}
\ No newline at end of file
examples/boilerplate-es5-panel/module.js
deleted
100644 → 0
View file @
3077f992
define
([
'app/plugins/sdk'
,
'lodash'
,
'./css/styles.css!'
],
function
(
sdk
,
_
)
{
var
BoilerPlatePanelCtrl
=
(
function
(
_super
)
{
var
self
;
function
BoilerPlatePanelCtrl
(
$scope
,
$injector
)
{
_super
.
call
(
this
,
$scope
,
$injector
);
this
.
results
=
[]
self
=
this
;
}
// you do not need a templateUrl, you can use a inline template here
// BoilerPlatePanelCtrl.template = '<h2>boilerplate</h2>';
// all panel static assets can be accessed via 'public/plugins/<plugin-id>/<file>
BoilerPlatePanelCtrl
.
templateUrl
=
'panel.html'
;
BoilerPlatePanelCtrl
.
prototype
=
Object
.
create
(
_super
.
prototype
);
BoilerPlatePanelCtrl
.
prototype
.
constructor
=
BoilerPlatePanelCtrl
;
BoilerPlatePanelCtrl
.
prototype
.
refreshData
=
function
(
datasource
)
{
this
.
issueQueries
(
datasource
)
.
then
(
function
(
result
)
{
self
.
results
=
[];
_
.
each
(
result
.
data
,
function
(
target
)
{
var
last
=
_
.
last
(
target
.
datapoints
)
self
.
results
.
push
(
last
[
0
]);
});
self
.
render
();
});
}
BoilerPlatePanelCtrl
.
prototype
.
render
=
function
()
{
this
.
values
=
this
.
results
.
join
(
','
);
}
return
BoilerPlatePanelCtrl
;
})(
sdk
.
MetricsPanelCtrl
);
return
{
PanelCtrl
:
BoilerPlatePanelCtrl
};
});
examples/boilerplate-es5-panel/panel.html
deleted
100644 → 0
View file @
3077f992
<h2
class=
"text-center"
>
Basic panel
</h2>
<p
class=
"panel-boilerplate-values"
>
{{ctrl.values}}
</p>
examples/boilerplate-es5-panel/plugin.json
deleted
100644 → 0
View file @
3077f992
{
"type"
:
"panel"
,
"name"
:
"Panel Boilerplate"
,
"id"
:
"panel-boilerplate-es5"
,
"staticRoot"
:
"."
}
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