-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release files to the repo to register the plugin
- Loading branch information
Showing
8 changed files
with
780 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Simple Button Panel | ||
|
||
A simple panel that shows only one button - to integrate with any kind of HTTP/REST API: | ||
|
||
* Support `GET` and `POST` HTTP verb | ||
* Support API key via header `X-API-Key` or query parameter `?api-key` | ||
* Custom label text & Grafana template design | ||
|
||
![Screenshot](img/screenshot.png) | ||
|
||
## Install | ||
|
||
Use [Grafana's environment variable](https://grafana.com/docs/grafana/latest/installation/docker/#build-and-run-a-docker-image-with-pre-installed-plugins) to add this plugin to your installation: | ||
|
||
``` | ||
GF_INSTALL_PLUGINS="https://github.com/cloudspout/cloudspout-button-panel/releases/download/1.0.3/cloudspout-button-panel.zip;cloudspout-button-panel" | ||
``` | ||
|
||
|
||
## Build | ||
First, install dependencies. | ||
Node 12.x is required | ||
|
||
```BASH | ||
yarn install | ||
``` | ||
|
||
To work with this plugin run: | ||
|
||
```BASH | ||
yarn watch | ||
``` | ||
|
||
This will run linting tools and apply prettier fix. | ||
|
||
Use an actual Docker container in parallel to test: | ||
|
||
```BASH | ||
docker run -d -p 3000:3000 -v "$(pwd)"/dist:/var/lib/grafana/plugins/cloudspout-button-panel --name=grafana grafana/grafana | ||
``` | ||
|
||
To build the plugin run: | ||
|
||
```BASH | ||
npm run dist | ||
``` | ||
|
||
## Deploy | ||
|
||
```BASH | ||
GITHUB_TOKEN=... npm run release | ||
``` | ||
|
||
## License | ||
|
||
GPL v3 | ||
|
||
Icons made by [Pixel perfect](https://www.flaticon.com/authors/pixel-perfect) from [www.flaticon.com](https://www.flaticon.com/) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"type": "panel", | ||
"name": "Button Panel", | ||
"id": "cloudspout-button-panel", | ||
"info": { | ||
"description": "Panel for a single button", | ||
"author": { | ||
"name": "CloudSpout LLC", | ||
"url": "https://github.com/cloudspout/cloudspout-button-panel/" | ||
}, | ||
"keywords": [ | ||
|
||
], | ||
"logos": { | ||
"small": "img/logo.svg", | ||
"large": "img/logo.svg" | ||
}, | ||
"links": [ | ||
{ | ||
"name": "Website", | ||
"url": "https://github.com/cloudspout/cloudspout-button-panel" | ||
}, | ||
{ | ||
"name": "License", | ||
"url": "https://github.com/cloudspout/cloudspout-button-panel/blob/master/LICENSE" | ||
} | ||
], | ||
"screenshots": [], | ||
"version": "7.0.0", | ||
"updated": "2020-06-20" | ||
}, | ||
"dependencies": { | ||
"grafanaVersion": "6.3.x", | ||
"plugins": [] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@keyframes spin { | ||
from { transform: scale(1) rotate(0deg); } | ||
to { transform: scale(1) rotate(360deg); } | ||
} | ||
.spinning > * > *:first-child { | ||
animation: spin 1s infinite linear; | ||
} |