Procházet zdrojové kódy

examples(plugin.json): add includes info

bergquist před 9 roky
rodič
revize
0ec747630d

+ 5 - 0
examples/nginx-app/plugin.json

@@ -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": [

+ 12 - 0
examples/nginx-app/src/datasource/datasource.js

@@ -0,0 +1,12 @@
+export default class NginxDatasource {
+
+  constructor() {}
+
+  query(options) {
+    return [];
+  }
+
+  testDatasource() {
+    return false;
+  }
+}

+ 5 - 0
examples/nginx-app/src/datasource/module.js

@@ -0,0 +1,5 @@
+import {Datasource} from  './datasource';
+
+export {
+  Datasource
+};

+ 5 - 0
examples/nginx-app/src/datasource/plugin.json

@@ -0,0 +1,5 @@
+{
+  "type": "datasource",
+  "name": "Nginx Datasource",
+  "id": "nginx-datasource"
+}