Skip to content

Commit

Permalink
examples(plugin.json): add includes info
Browse files Browse the repository at this point in the history
  • Loading branch information
bergquist committed Mar 8, 2016
1 parent 138c738 commit 0ec7476
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/nginx-app/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
"updated": "2015-02-10"
},

"includes": [
{"type": "panel", "name": "Nginx Panel"},
{"type": "datasource", "name": "Nginx Datasource"}
],

"dependencies": {
"grafanaVersion": "3.x.x",
"plugins": [
Expand Down
12 changes: 12 additions & 0 deletions examples/nginx-app/src/datasource/datasource.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export default class NginxDatasource {

constructor() {}

query(options) {
return [];
}

testDatasource() {
return false;
}
}
5 changes: 5 additions & 0 deletions examples/nginx-app/src/datasource/module.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {Datasource} from './datasource';

export {
Datasource
};
5 changes: 5 additions & 0 deletions examples/nginx-app/src/datasource/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"type": "datasource",
"name": "Nginx Datasource",
"id": "nginx-datasource"
}

0 comments on commit 0ec7476

Please sign in to comment.