diff --git a/x-pack/plugins/ml/_index.ts b/x-pack/plugins/ml/_index.ts deleted file mode 100755 index abde642a9b5276d..000000000000000 --- a/x-pack/plugins/ml/_index.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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. - */ - -// /* -// * 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 { resolve } from 'path'; -// import { i18n } from '@kbn/i18n'; -// import { Server } from 'src/legacy/server/kbn_server'; -// import { DEFAULT_APP_CATEGORIES } from '../../../../src/core/utils'; -// // @ts-ignore: could not find declaration file for module -// import { mirrorPluginStatus } from '../../server/lib/mirror_plugin_status'; -// // @ts-ignore: importing JSON file -// import mappings from './mappings'; - -// export const ml = (kibana: any) => { -// return new kibana.Plugin({ -// require: ['kibana', 'elasticsearch', 'xpack_main'], -// id: 'ml', -// configPrefix: 'xpack.ml', -// publicDir: resolve(__dirname, 'public'), - -// uiExports: { -// managementSections: ['plugins/ml/application/management'], -// app: { -// title: i18n.translate('xpack.ml.mlNavTitle', { -// defaultMessage: 'Machine Learning', -// }), -// description: i18n.translate('xpack.ml.mlNavDescription', { -// defaultMessage: 'Machine Learning for the Elastic Stack', -// }), -// icon: 'plugins/ml/application/ml.svg', -// euiIconType: 'machineLearningApp', -// main: 'plugins/ml/legacy', -// category: DEFAULT_APP_CATEGORIES.analyze, -// }, -// styleSheetPaths: resolve(__dirname, 'public/application/index.scss'), -// savedObjectSchemas: { -// 'ml-telemetry': { -// isNamespaceAgnostic: true, -// }, -// }, -// mappings, -// home: ['plugins/ml/register_feature'], -// injectDefaultVars(server: any) { -// const config = server.config(); -// return { -// mlEnabled: config.get('xpack.ml.enabled'), -// }; -// }, -// }, - -// async init(server: Server) { -// mirrorPluginStatus(server.plugins.xpack_main, this); -// }, -// }); -// }; diff --git a/x-pack/plugins/ml/shared_imports.ts b/x-pack/plugins/ml/shared_imports.ts index 8b688b71c53a94c..94ce8c82f1d95ec 100644 --- a/x-pack/plugins/ml/shared_imports.ts +++ b/x-pack/plugins/ml/shared_imports.ts @@ -4,9 +4,9 @@ * you may not use this file except in compliance with the Elastic License. */ -export { XJsonMode } from '../../es_ui_shared/console_lang/ace/modes/x_json'; +export { XJsonMode } from '../../../src/plugins/es_ui_shared/console_lang/ace/modes/x_json'; export { collapseLiteralStrings, expandLiteralStrings, -} from '../../../../src/plugins/es_ui_shared/console_lang/lib'; +} from '../../../src/plugins/es_ui_shared/console_lang/lib';