mirror of
https://github.com/timberjoegithub/grafana-statusmap.git
synced 2026-07-23 16:13:09 +00:00
feat: use grafana-toolkit to build a plugin
- fix linter warnings - use yarn: remove Gruntfile.js and package-lock.json ++
This commit is contained in:
@@ -5,13 +5,14 @@ let emptyTooltipItem = {
|
||||
urlTemplate: '',
|
||||
urlIcon: 'external-link',
|
||||
urlToLowerCase: true,
|
||||
valueDateFormat: ''
|
||||
valueDateFormat: '',
|
||||
};
|
||||
|
||||
export class TooltipEditorCtrl {
|
||||
panel: any;
|
||||
panelCtrl: StatusHeatmapCtrl;
|
||||
|
||||
/** @ngInject */
|
||||
constructor($scope: any) {
|
||||
$scope.editor = this;
|
||||
this.panelCtrl = $scope.ctrl as StatusHeatmapCtrl;
|
||||
@@ -42,11 +43,7 @@ export class TooltipEditorCtrl {
|
||||
}
|
||||
|
||||
getValueDateFormats() {
|
||||
return [
|
||||
'YYYY/MM/DD/HH_mm_ss',
|
||||
'YYYYMMDDHHmmss',
|
||||
'YYYY-MM-DD-HH-mm-ss'
|
||||
];
|
||||
return ['YYYY/MM/DD/HH_mm_ss', 'YYYYMMDDHHmmss', 'YYYY-MM-DD-HH-mm-ss'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user