* Move file upload to np. Some additional mods & removals * Consume file upload from NP in maps and pass to kibana services * Register telemetry mappings * Init indexPatternService in start method * Fix type check issues. Add missing prop to telemetry * Update i18n path * Review feedback
21 lines
646 B
JavaScript
21 lines
646 B
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.
|
|
*/
|
|
|
|
export let indexPatternService;
|
|
export let savedObjectsClient;
|
|
export let basePath;
|
|
export let kbnFetch;
|
|
|
|
export const setupInitServicesAndConstants = ({ http }) => {
|
|
basePath = http.basePath.basePath;
|
|
kbnFetch = http.fetch;
|
|
};
|
|
|
|
export const startInitServicesAndConstants = ({ savedObjects }, { data }) => {
|
|
indexPatternService = data.indexPatterns;
|
|
savedObjectsClient = savedObjects.client;
|
|
};
|