fix and add test (#44286)

This commit is contained in:
Will Browne
2022-01-21 11:00:20 +01:00
committed by GitHub
parent 1ae155d2b1
commit 3cb0fb3ddc
5 changed files with 269 additions and 4 deletions
@@ -0,0 +1,29 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
{
"manifestVersion": "2.0.0",
"signatureType": "grafana",
"signedByOrg": "grafana",
"signedByOrgName": "Grafana Labs",
"rootUrls": [],
"plugin": "myorgid-simple-app",
"version": "%VERSION%",
"time": 1642614241713,
"keyId": "7e4d0c6a708866e7",
"files": {
"plugin.json": "1abecfd0229814f6c284ff3c8dd744548f8d676ab3250cd7902c99dabf11480e",
"child/plugin.json": "66ba0dffaf3b1bfa17eb9a8672918fc66d1001f465b1061f4fc19c2f2c100f51"
}
}
-----BEGIN PGP SIGNATURE-----
Version: OpenPGP.js v4.10.1
Comment: https://openpgpjs.org
wqEEARMKAAYFAmHoTeEACgkQfk0ManCIZudvLwIJAQcy8NwEZZb58SuD9fhS
kaWb9mxvhdAL6Zau+AZKQ3w2ZKzynwgKK/xwDSnX8BNI5UjcCh+0WxkpiAHL
bm6/dhzdAgi7Mo/W5IyXqMt9/0AyyFNA1wVlLCj47C+4op4hIw054ZJ9u2j9
KCVjajZ9bGaV6ucBnG5/l4MLFhUK1M0slI2qvw==
=atro
-----END PGP SIGNATURE-----
@@ -0,0 +1,30 @@
{
"$schema": "https://raw.githubusercontent.com/grafana/grafana/master/docs/sources/developers/plugins/plugin.schema.json",
"type": "panel",
"name": "Grafana Panel Plugin Template",
"id": "myorgid-simple-panel",
"info": {
"description": "Grafana Panel Plugin Template",
"author": {
"name": "Your Name"
},
"keywords": ["panel", "template"],
"logos": {
"small": "img/logo.svg",
"large": "img/logo.svg"
},
"links": [
{"name": "Website", "url": "https://github.com/grafana/grafana-starter-panel"},
{"name": "License", "url": "https://github.com/grafana/grafana-starter-panel/blob/master/LICENSE"}
],
"screenshots": [],
"version": "%VERSION%",
"updated": "%TODAY%"
},
"dependencies": {
"grafanaDependency": ">=7.0.0",
"plugins": []
}
}
@@ -0,0 +1,66 @@
{
"$schema": "https://raw.githubusercontent.com/grafana/grafana/master/docs/sources/developers/plugins/plugin.schema.json",
"type": "app",
"name": "Simple App",
"id": "myorgid-simple-app",
"info": {
"description": "Grafana App Plugin Template",
"author": {
"name": "Your Name"
},
"keywords": ["panel", "template"],
"logos": {
"small": "img/logo.svg",
"large": "img/logo.svg"
},
"links": [
{ "name": "Website", "url": "https://github.com/grafana/grafana-starter-app" },
{ "name": "License", "url": "https://github.com/grafana/grafana-starter-app/blob/master/LICENSE" }
],
"screenshots": [],
"version": "%VERSION%",
"updated": "%TODAY%"
},
"includes": [
{
"type": "page",
"name": "Root Page (react)",
"path": "/a/myorgid-simple-app",
"role": "Viewer",
"addToNav": true,
"defaultNav": true
},
{
"type": "page",
"name": "Root Page (Tab B)",
"path": "/a/myorgid-simple-app/?tab=b",
"role": "Viewer",
"addToNav": true
},
{
"type": "page",
"name": "React Config",
"path": "/plugins/myorgid-simple-app/?page=page2",
"role": "Admin",
"addToNav": true
},
{
"type": "dashboard",
"name": "Streaming Example",
"path": "dashboards/streaming.json"
},
{
"type": "dashboard",
"name": "Lots of Stats",
"path": "dashboards/stats.json"
}
],
"dependencies": {
"grafanaDependency": ">=7.0.0",
"grafanaVersion": "7.0.0",
"plugins": []
}
}