UNPKG

@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

46 lines (37 loc) 1 kB
var _ = require('lodash'); var $ = require('jquery'); var angular = require('angular'); require('ui/timefilter'); require('ui/private'); require('ui/promises'); var TabCollection = require('ui/chrome/TabCollection'); var chrome = { navBackground: '#222222', logo: null, smallLogo: null }; var internals = _.assign( _.cloneDeep(window.__KBN__ || {}), { tabs: new TabCollection(), rootController: null, rootTemplate: null, showAppsLink: null, brand: null } ); $('<link>').attr({ href: require('ui/images/elk.ico'), rel: 'shortcut icon' }).appendTo('head'); require('./api/apps')(chrome, internals); require('./api/angular')(chrome, internals); require('./api/tabs')(chrome, internals); require('./api/template')(chrome, internals); require('./api/theme')(chrome, internals); chrome.bootstrap = function () { chrome.setupAngular(); angular.bootstrap(document, ['kibana']); $(document.body).children(':not(style-compile)').show(); }; module.exports = chrome;