Skip to content

Commit

Permalink
Chore: build with toolkit 7.3 (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantxu authored Nov 19, 2020
1 parent 393f86a commit 185e241
Show file tree
Hide file tree
Showing 5 changed files with 2,580 additions and 1,937 deletions.
80 changes: 80 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@

#### Changelog


##### v0.1.1

- Added MANIFEST


##### v0.1.0

- works with Grafana 7 (naming fixed)
- Building with `@grafana/toolkit`
- Supports DataFrame directly for 6.4+


##### v0.0.9

- Remove `dist` from master
- Use webpack build
- FIX: Use background color to clear the background
- Configurable duration resolution option (thanks @clink-aaron)
- deploy using release-it
- Don't hide series names on hover

##### v0.0.8

- Support Snapshots (thanks @londonanthonyoleary)
- Direct link rendered image now works.
- Support UTC date display
- Fix display issue with 5.1
- Merge distinct values in legend unless showing the name
- Basic Annotation Support
- Fix mapping numeric data to text

##### v0.0.7

- Switch to typescript
- Override applyPanelTimeOverrides rather than issueQueries to extend time
- Support numeric unit conversion
- New rendering pipeline (thanks @jonyrock)
- Don't detect duplicate colors from metrics
- Formatting with prettier.js
- Only hide hover text when it collides
- Show time axis (copied from novatec-grafana-discrete-panel)
- Improved text collision behavior

##### v0.0.6

- Fix for grafana 4.5 (thanks @alin-amana)

##### v0.0.5

- Support results from the table format
- Support results in ascending or decending order
- Configure legend percentage decimal points
- Legend can show transition count and distinct value count
- Clamp percentage stats within the query time window
- Changed the grafana dependency version to 4.x.x, since 3.x.x was not really supported
- Fixed issues with tooltip hover position
- Option to expand 'from' query so the inital state can avoid 'null'

##### v0.0.4

- Support shared tooltips (not just crosshair)

##### v0.0.3

- Configure more colors (retzkek)
- Fix tooltips (retzkek)
- Configure Text Size
- Support shared crosshair

##### v0.0.2

- Use the panel time shift.

##### v0.0.1

- First working version
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
"url": "https://github.com/NatelEnergy/grafana-discrete-panel.git"
},
"devDependencies": {
"@grafana/toolkit": "latest",
"@grafana/data": "latest",
"@grafana/ui": "latest",
"@types/grafana": "github:CorpGlory/types-grafana.git",
"@types/lodash": "4.14.149",
"@types/lodash": "latest",
"jquery": "^3.2.1",
"lodash": "^4.17.10",
"moment": "^2.22.1"
"moment": "^2.22.1",
"@grafana/data": "latest",
"@grafana/toolkit": "latest",
"@grafana/ui": "latest"
}
}
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ class DiscretePanelCtrl extends CanvasPanelCtrl {

getCorrectTime(ts: number) {
const from = moment(this.range.from).valueOf();
return (ts < from ? from : ts);
return ts < from ? from : ts;
}

onGraphHover(evt, showTT, isExternal) {
Expand Down
1 change: 1 addition & 0 deletions src/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

"dependencies": {
"grafanaVersion": "6.4.x",
"grafanaDependency": ">=6.5",
"plugins": [ ]
}
}
Loading

0 comments on commit 185e241

Please sign in to comment.