mirror of
https://github.com/timberjoegithub/grafana-statusmap.git
synced 2026-07-21 23:42:03 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc96037286 | ||
|
|
ba27b10638 | ||
|
|
c943700efb | ||
|
|
1a8a281d28 | ||
|
|
36042a6daf | ||
|
|
0b5ce0831e | ||
|
|
c1a3b91082 | ||
|
|
3f8929f672 | ||
|
|
26cbec8efd | ||
|
|
74dd7ca41e | ||
|
|
d5bf7d6f54 | ||
|
|
e63246c04c | ||
|
|
a1710ef8f1 | ||
|
|
f55406def3 | ||
|
|
a3983b8378 | ||
|
|
e95cd6095a | ||
|
|
93b92b1570 | ||
|
|
e2c3766650 | ||
|
|
6c887e5ba4 | ||
|
|
6d1fc9c012 |
@@ -12,10 +12,10 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2.3.4
|
||||||
|
|
||||||
- name: Setup Node.js environment
|
- name: Setup Node.js environment
|
||||||
uses: actions/setup-node@v2.1.4
|
uses: actions/setup-node@v2.2.0
|
||||||
with:
|
with:
|
||||||
node-version: "14.x"
|
node-version: "14.x"
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||||
|
|
||||||
- name: Cache yarn cache
|
- name: Cache yarn cache
|
||||||
uses: actions/cache@v2.1.4
|
uses: actions/cache@v2.1.6
|
||||||
id: cache-yarn-cache
|
id: cache-yarn-cache
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||||
@@ -34,7 +34,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Cache node_modules
|
- name: Cache node_modules
|
||||||
id: cache-node-modules
|
id: cache-node-modules
|
||||||
uses: actions/cache@v2.1.4
|
uses: actions/cache@v2.1.6
|
||||||
with:
|
with:
|
||||||
path: node_modules
|
path: node_modules
|
||||||
key: ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2.3.4
|
||||||
|
|
||||||
- name: Setup Node.js environment
|
- name: Setup Node.js environment
|
||||||
uses: actions/setup-node@v2.1.4
|
uses: actions/setup-node@v2.2.0
|
||||||
with:
|
with:
|
||||||
node-version: "14.x"
|
node-version: "14.x"
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ jobs:
|
|||||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||||
|
|
||||||
- name: Cache yarn cache
|
- name: Cache yarn cache
|
||||||
uses: actions/cache@v2.1.4
|
uses: actions/cache@v2.1.6
|
||||||
id: cache-yarn-cache
|
id: cache-yarn-cache
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Cache node_modules
|
- name: Cache node_modules
|
||||||
id: cache-node-modules
|
id: cache-node-modules
|
||||||
uses: actions/cache@v2.1.4
|
uses: actions/cache@v2.1.6
|
||||||
with:
|
with:
|
||||||
path: node_modules
|
path: node_modules
|
||||||
key: ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-${{ hashFiles('**/yarn.lock') }}
|
||||||
@@ -110,7 +110,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1.1.4
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
@@ -121,7 +121,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Add plugin to release
|
- name: Add plugin to release
|
||||||
id: upload-plugin-asset
|
id: upload-plugin-asset
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1.0.2
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
@@ -132,7 +132,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Add checksum to release
|
- name: Add checksum to release
|
||||||
id: upload-checksum-asset
|
id: upload-checksum-asset
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1.0.2
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ Each URL has a template, icon, label and formating options: lowercase and date f
|
|||||||
|
|
||||||
* [Changelog](https://github.com/flant/grafana-statusmap/blob/master/CHANGELOG.md)
|
* [Changelog](https://github.com/flant/grafana-statusmap/blob/master/CHANGELOG.md)
|
||||||
* Use [GitHub Discussions](https://github.com/flant/grafana-statusmap/discussions) to ask for help.
|
* Use [GitHub Discussions](https://github.com/flant/grafana-statusmap/discussions) to ask for help.
|
||||||
* [Installation](https://grafana.com/grafana/plugins/flant-statusmap-panel/installation)
|
* [Installation](https://grafana.com/grafana/plugins/flant-statusmap-panel/?tab=installation)
|
||||||
* Setup [development](https://github.com/flant/grafana-statusmap/blob/master/DEVELOPMENT.md) environment to help us improve the plugin.
|
* Setup [development](https://github.com/flant/grafana-statusmap/blob/master/DEVELOPMENT.md) environment to help us improve the plugin.
|
||||||
|
|
||||||
## Acknowledgements
|
## Acknowledgements
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@
|
|||||||
"@types/lodash": "4.14.123",
|
"@types/lodash": "4.14.123",
|
||||||
"d3": "4.13.0",
|
"d3": "4.13.0",
|
||||||
"emotion": "10.0.27",
|
"emotion": "10.0.27",
|
||||||
"lodash": "4.17.19"
|
"lodash": "4.17.21"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"d3-scale-chromatic": "^2"
|
"d3-scale-chromatic": "^2"
|
||||||
|
|||||||
@@ -578,6 +578,10 @@ export class StatusmapRenderer {
|
|||||||
if (this.panel.color.mode === 'opacity') {
|
if (this.panel.color.mode === 'opacity') {
|
||||||
return this.panel.color.cardColor;
|
return this.panel.color.cardColor;
|
||||||
} else if (this.panel.color.mode === 'spectrum') {
|
} else if (this.panel.color.mode === 'spectrum') {
|
||||||
|
if (!bucket.value && this.panel.nullPointMode === 'as zero') {
|
||||||
|
// bucket.value === 0 falls here, but it is fine.
|
||||||
|
return this.colorScale(0);
|
||||||
|
}
|
||||||
return this.colorScale(bucket.value);
|
return this.colorScale(bucket.value);
|
||||||
} else if (this.panel.color.mode === 'discrete') {
|
} else if (this.panel.color.mode === 'discrete') {
|
||||||
if (this.panel.seriesFilterIndex !== null && this.panel.seriesFilterIndex !== -1) {
|
if (this.panel.seriesFilterIndex !== null && this.panel.seriesFilterIndex !== -1) {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
right: 0;
|
right: 0;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
opacity: 0.15;
|
opacity: $branding-opacity;
|
||||||
|
|
||||||
:hover > & {
|
:hover > & {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
|||||||
@@ -7,3 +7,5 @@ $warning-bg: #333333; // $dark-4
|
|||||||
$theme-name: dark;
|
$theme-name: dark;
|
||||||
$white: #fff;
|
$white: #fff;
|
||||||
$red: #d44a3a;
|
$red: #d44a3a;
|
||||||
|
|
||||||
|
$branding-opacity: 0.5;
|
||||||
|
|||||||
@@ -8,3 +8,4 @@ $theme-name: light;
|
|||||||
$white: #fff;
|
$white: #fff;
|
||||||
$red: #d44939;
|
$red: #d44939;
|
||||||
|
|
||||||
|
$branding-opacity: 0.33;
|
||||||
|
|||||||
@@ -8206,10 +8206,10 @@ lodash@4.17.19:
|
|||||||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b"
|
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b"
|
||||||
integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==
|
integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==
|
||||||
|
|
||||||
lodash@^4.0.0, lodash@^4.0.1, lodash@^4.1.1, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.17.5, lodash@~4.17.10:
|
lodash@4.17.21, lodash@^4.0.0, lodash@^4.0.1, lodash@^4.1.1, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.17.5, lodash@~4.17.10:
|
||||||
version "4.17.20"
|
version "4.17.21"
|
||||||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52"
|
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
|
||||||
integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==
|
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
|
||||||
|
|
||||||
log-symbols@^3.0.0:
|
log-symbols@^3.0.0:
|
||||||
version "3.0.0"
|
version "3.0.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user