mirror of https://github.com/grafana/grafana
parent
bc673fd969
commit
9d5979c01d
@ -0,0 +1,3 @@ |
||||
<grafana-panel> |
||||
<h2>Starred</h2> |
||||
</grafana-panel> |
||||
@ -0,0 +1,33 @@ |
||||
define([ |
||||
'angular', |
||||
'app', |
||||
'components/panelmeta', |
||||
], |
||||
function (angular, app, PanelMeta) { |
||||
'use strict'; |
||||
|
||||
var module = angular.module('grafana.panels.starred', []); |
||||
app.useModule(module); |
||||
|
||||
module.directive('grafanaPanelStarred', function() { |
||||
return { |
||||
controller: 'StarredPanelCtrl', |
||||
templateUrl: 'app/panels/starred/module.html', |
||||
}; |
||||
}); |
||||
|
||||
module.controller('StarredPanelCtrl', function($scope, panelSrv) { |
||||
|
||||
$scope.panelMeta = new PanelMeta({ |
||||
panelName: 'Starred', |
||||
editIcon: "fa fa-star", |
||||
fullscreen: true, |
||||
}); |
||||
|
||||
$scope.init = function() { |
||||
panelSrv.init($scope); |
||||
}; |
||||
|
||||
$scope.init(); |
||||
}); |
||||
}); |
||||
@ -0,0 +1,78 @@ |
||||
{ |
||||
"title": "Grafana Home", |
||||
"tags": [], |
||||
"style": "dark", |
||||
"timezone": "browser", |
||||
"editable": true, |
||||
"rows": [ |
||||
{ |
||||
"title": "New row", |
||||
"height": "150px", |
||||
"collapse": false, |
||||
"editable": true, |
||||
"panels": [ |
||||
{ |
||||
"id": 1, |
||||
"span": 12, |
||||
"editable": true, |
||||
"type": "text", |
||||
"mode": "html", |
||||
"content": "<div class=\"text-center\" style=\"padding-top: 15px\">\n<img src=\"img/logo_transparent_200x.png\"> \n</div>", |
||||
"style": {}, |
||||
"title": "Welcome to" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"height": "210px", |
||||
"panels": [ |
||||
{ |
||||
"id": 2, |
||||
"span": 6, |
||||
"type": "starred", |
||||
"title": "Starred dashboards" |
||||
} |
||||
] |
||||
} |
||||
], |
||||
"nav": [ |
||||
{ |
||||
"type": "timepicker", |
||||
"collapse": false, |
||||
"enable": true, |
||||
"status": "Stable", |
||||
"time_options": [ |
||||
"5m", |
||||
"15m", |
||||
"1h", |
||||
"6h", |
||||
"12h", |
||||
"24h", |
||||
"2d", |
||||
"7d", |
||||
"30d" |
||||
], |
||||
"refresh_intervals": [ |
||||
"5s", |
||||
"10s", |
||||
"30s", |
||||
"1m", |
||||
"5m", |
||||
"15m", |
||||
"30m", |
||||
"1h", |
||||
"2h", |
||||
"1d" |
||||
], |
||||
"now": true |
||||
} |
||||
], |
||||
"time": { |
||||
"from": "now-6h", |
||||
"to": "now" |
||||
}, |
||||
"templating": { |
||||
"list": [] |
||||
}, |
||||
"version": 5 |
||||
} |
||||
Loading…
Reference in new issue