@spalger/kibana
Version:
Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic
29 lines (24 loc) • 617 B
JavaScript
require('plugins/appSwitcher/appSwitcher.less');
var kibanaLogoUrl = require('ui/images/kibana.png');
require('ui/chrome')
.setLogo('url(' + kibanaLogoUrl + ') left no-repeat', true)
.setShowAppsLink(false)
.setTabs([
{
id: '',
title: 'Apps',
activeIndicatorColor: '#ecf0f1'
}
])
.setRootTemplate(require('plugins/appSwitcher/appSwitcher.html'))
.setRootController('switcher', function SwitcherController($http) {
var switcher = {
loading: true
};
$http.get('/api/apps')
.then(function (resp) {
switcher.loading = false;
switcher.apps = resp.data;
});
return switcher;
});