* Explicit dependencies to doc_title * Explicit dependencies to - kbn_top_nav - saved_object_save_as_checkbox * Explicit dependencies to filter_bar * Explicit dependency to query_bar * Removed modules from autoloades that never used implicitly: - bound_to_config_obj - debounce - filter_manager - index_patterns - parse_query - persisted_log - timefilter * Removed modules from autoload (never used implicitly) - events * Explicit dependency to bind + typo fix * Explicit dependency to fancy_forms * Explicit dependency to $listen * Explicit dependency to timepicker * Moved kbn-infinite-scroll directive to doc_table * Explicit dependency on directives - css truncate - inequality * Explicit dependecy to input_focus directive * Explicit dependency to json-input directive * Explicit dependency on directives: - input_focus - paginate * Explicit dependency on paginated-selectable-list directive * Explicit dependency on saved-object-finder directive * Moved validate_json directive into agg_types * Don't include directives implicitly
38 lines
1.2 KiB
JavaScript
38 lines
1.2 KiB
JavaScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
import uiRoutes from 'ui/routes';
|
|
import chrome from 'ui/chrome';
|
|
import 'ui/kbn_top_nav';
|
|
import 'ui/autoload/all';
|
|
import 'plugins/monitoring/filters';
|
|
import 'plugins/monitoring/services/clusters';
|
|
import 'plugins/monitoring/services/features';
|
|
import 'plugins/monitoring/services/executor';
|
|
import 'plugins/monitoring/services/license';
|
|
import 'plugins/monitoring/services/title';
|
|
import 'plugins/monitoring/services/breadcrumbs';
|
|
import 'plugins/monitoring/directives/all';
|
|
import 'plugins/monitoring/views/all';
|
|
|
|
const uiSettings = chrome.getUiSettingsClient();
|
|
|
|
// default timepicker default to the last hour
|
|
uiSettings.overrideLocalDefault('timepicker:timeDefaults', JSON.stringify({
|
|
from: 'now-1h',
|
|
to: 'now',
|
|
mode: 'quick'
|
|
}));
|
|
|
|
// default autorefresh to active and refreshing every 10 seconds
|
|
uiSettings.overrideLocalDefault('timepicker:refreshIntervalDefaults', JSON.stringify({
|
|
display: '10 seconds',
|
|
pause: false,
|
|
value: 10000
|
|
}));
|
|
|
|
// Enable Angular routing
|
|
uiRoutes.enable();
|