From d2200c660d5eeae40bf612d6f39c489de420c05e Mon Sep 17 00:00:00 2001 From: Tyler Smalley Date: Fri, 18 Aug 2017 10:10:32 -0700 Subject: [PATCH] Removes webpack-directory-name-as-main dependency Signed-off-by: Tyler Smalley --- package.json | 1 - .../console/public/tests/index.js | 1 + .../ui-bootstrap-custom.js | 0 .../highlight/{highlight.js => index.js} | 0 .../components/loading_button/index.js | 1 + .../context/components/size_picker/index.js | 1 + .../kibana/public/dashboard/panel/index.js | 1 + .../public/discover/saved_searches/index.js | 1 + .../visualize/saved_visualizations/index.js | 1 + src/optimize/base_optimizer.js | 4 -- src/ui/public/agg_response/geo_json/index.js | 1 + .../public/agg_response/point_series/index.js | 1 + src/ui/public/agg_response/tabify/index.js | 1 + src/ui/public/agg_table/index.js | 1 + src/ui/public/angular-bootstrap/index.js | 39 +++++++++---------- src/ui/public/bind/index.js | 1 + src/ui/public/binder/index.js | 1 + src/ui/public/chrome/chrome.js | 5 +-- .../global_nav/app_switcher/index.js | 1 + .../global_nav/global_nav_link/index.js | 1 + .../chrome/directives/global_nav/index.js | 1 + .../directives/loading_indicator/index.js | 1 + src/ui/public/chrome/index.js | 4 ++ src/ui/public/collapsible_sidebar/index.js | 1 + src/ui/public/config/index.js | 1 + src/ui/public/courier/fetch/index.js | 1 + src/ui/public/courier/fetch/request/index.js | 1 + src/ui/public/courier/index.js | 1 + src/ui/public/courier/saved_object/index.js | 1 + src/ui/public/debounce/index.js | 1 + src/ui/public/doc_table/index.js | 1 + src/ui/public/doc_title/index.js | 3 ++ src/ui/public/doc_viewer/index.js | 1 + src/ui/public/error_url_overflow/index.js | 2 + src/ui/public/fancy_forms/index.js | 1 + src/ui/public/field_editor/index.js | 1 + .../editors/color/index.js | 1 + .../field_format_editor/editors/date/index.js | 1 + .../editors/duration/index.js | 1 + .../editors/string/index.js | 1 + .../editors/truncate/index.js | 1 + .../field_format_editor/editors/url/index.js | 1 + src/ui/public/field_format_editor/index.js | 1 + .../field_format_editor/pattern/index.js | 1 + .../field_format_editor/samples/index.js | 1 + src/ui/public/field_wildcard/index.js | 1 + src/ui/public/filter_bar/filter_pill/index.js | 1 + src/ui/public/filter_bar/index.js | 3 ++ src/ui/public/filter_editor/index.js | 1 + src/ui/public/filter_manager/index.js | 1 + src/ui/public/index_patterns/index.js | 2 + .../public/index_patterns/index_patterns.js | 2 - src/ui/public/indexed_array/index.js | 1 + .../public/kbn_top_nav/bread_crumbs/index.js | 1 + src/ui/public/kbn_top_nav/index.js | 1 + src/ui/public/listen/index.js | 1 + src/ui/public/notify/index.js | 2 + src/ui/public/notify/notify.js | 1 - src/ui/public/number_list/index.js | 1 + .../tool_bar_pager_buttons/index.js | 1 + .../components/tool_bar_pager_text/index.js | 1 + src/ui/public/paginated_table/index.js | 1 + src/ui/public/parse_query/index.js | 1 + src/ui/public/pattern_checker/index.js | 1 + src/ui/public/persisted_log/index.js | 1 + src/ui/public/private/index.js | 1 + src/ui/public/render_directive/index.js | 1 + src/ui/public/routes/index.js | 4 ++ src/ui/public/routes/routes.js | 3 +- src/ui/public/storage/index.js | 1 + src/ui/public/style_compile/index.js | 1 + src/ui/public/system_api/index.js | 1 + src/ui/public/test_harness/index.js | 3 ++ src/ui/public/time_buckets/index.js | 1 + src/ui/public/timefilter/index.js | 1 + src/ui/public/timepicker/index.js | 1 + src/ui/public/tooltip/index.js | 1 + src/ui/public/typeahead/index.js | 1 + src/ui/public/vis/components/color/index.js | 1 + src/ui/public/vis/components/tooltip/index.js | 1 + src/ui/public/vis/index.js | 1 + .../public/vislib/components/labels/index.js | 1 + src/ui/public/vislib/index.js | 4 ++ src/ui/public/vislib/lib/axis/index.js | 1 + src/ui/public/vislib/lib/layout/index.js | 1 + src/ui/public/vislib/vislib.js | 3 +- src/ui/public/visualize/index.js | 1 + src/ui/public/watch_multi/index.js | 1 + webpackShims/ui-bootstrap.js | 2 +- 89 files changed, 119 insertions(+), 37 deletions(-) create mode 100644 src/core_plugins/console/public/tests/index.js rename src/core_plugins/console/public/webpackShims/{ui-bootstrap-custom => }/ui-bootstrap-custom.js (100%) rename src/core_plugins/kibana/common/highlight/{highlight.js => index.js} (100%) create mode 100644 src/core_plugins/kibana/public/context/components/loading_button/index.js create mode 100644 src/core_plugins/kibana/public/context/components/size_picker/index.js create mode 100644 src/core_plugins/kibana/public/dashboard/panel/index.js create mode 100644 src/core_plugins/kibana/public/discover/saved_searches/index.js create mode 100644 src/core_plugins/kibana/public/visualize/saved_visualizations/index.js create mode 100644 src/ui/public/agg_response/geo_json/index.js create mode 100644 src/ui/public/agg_response/point_series/index.js create mode 100644 src/ui/public/agg_response/tabify/index.js create mode 100644 src/ui/public/agg_table/index.js create mode 100644 src/ui/public/bind/index.js create mode 100644 src/ui/public/binder/index.js create mode 100644 src/ui/public/chrome/directives/global_nav/app_switcher/index.js create mode 100644 src/ui/public/chrome/directives/global_nav/global_nav_link/index.js create mode 100644 src/ui/public/chrome/directives/global_nav/index.js create mode 100644 src/ui/public/chrome/directives/loading_indicator/index.js create mode 100644 src/ui/public/chrome/index.js create mode 100644 src/ui/public/collapsible_sidebar/index.js create mode 100644 src/ui/public/config/index.js create mode 100644 src/ui/public/courier/fetch/index.js create mode 100644 src/ui/public/courier/fetch/request/index.js create mode 100644 src/ui/public/courier/index.js create mode 100644 src/ui/public/courier/saved_object/index.js create mode 100644 src/ui/public/debounce/index.js create mode 100644 src/ui/public/doc_table/index.js create mode 100644 src/ui/public/doc_title/index.js create mode 100644 src/ui/public/doc_viewer/index.js create mode 100644 src/ui/public/error_url_overflow/index.js create mode 100644 src/ui/public/fancy_forms/index.js create mode 100644 src/ui/public/field_editor/index.js create mode 100644 src/ui/public/field_format_editor/editors/color/index.js create mode 100644 src/ui/public/field_format_editor/editors/date/index.js create mode 100644 src/ui/public/field_format_editor/editors/duration/index.js create mode 100644 src/ui/public/field_format_editor/editors/string/index.js create mode 100644 src/ui/public/field_format_editor/editors/truncate/index.js create mode 100644 src/ui/public/field_format_editor/editors/url/index.js create mode 100644 src/ui/public/field_format_editor/index.js create mode 100644 src/ui/public/field_format_editor/pattern/index.js create mode 100644 src/ui/public/field_format_editor/samples/index.js create mode 100644 src/ui/public/field_wildcard/index.js create mode 100644 src/ui/public/filter_bar/filter_pill/index.js create mode 100644 src/ui/public/filter_bar/index.js create mode 100644 src/ui/public/filter_editor/index.js create mode 100644 src/ui/public/filter_manager/index.js create mode 100644 src/ui/public/index_patterns/index.js create mode 100644 src/ui/public/indexed_array/index.js create mode 100644 src/ui/public/kbn_top_nav/bread_crumbs/index.js create mode 100644 src/ui/public/kbn_top_nav/index.js create mode 100644 src/ui/public/listen/index.js create mode 100644 src/ui/public/notify/index.js create mode 100644 src/ui/public/number_list/index.js create mode 100644 src/ui/public/pager_control/components/tool_bar_pager_buttons/index.js create mode 100644 src/ui/public/pager_control/components/tool_bar_pager_text/index.js create mode 100644 src/ui/public/paginated_table/index.js create mode 100644 src/ui/public/parse_query/index.js create mode 100644 src/ui/public/pattern_checker/index.js create mode 100644 src/ui/public/persisted_log/index.js create mode 100644 src/ui/public/private/index.js create mode 100644 src/ui/public/render_directive/index.js create mode 100644 src/ui/public/routes/index.js create mode 100644 src/ui/public/storage/index.js create mode 100644 src/ui/public/style_compile/index.js create mode 100644 src/ui/public/system_api/index.js create mode 100644 src/ui/public/test_harness/index.js create mode 100644 src/ui/public/time_buckets/index.js create mode 100644 src/ui/public/timefilter/index.js create mode 100644 src/ui/public/timepicker/index.js create mode 100644 src/ui/public/tooltip/index.js create mode 100644 src/ui/public/typeahead/index.js create mode 100644 src/ui/public/vis/components/color/index.js create mode 100644 src/ui/public/vis/components/tooltip/index.js create mode 100644 src/ui/public/vis/index.js create mode 100644 src/ui/public/vislib/components/labels/index.js create mode 100644 src/ui/public/vislib/index.js create mode 100644 src/ui/public/vislib/lib/axis/index.js create mode 100644 src/ui/public/vislib/lib/layout/index.js create mode 100644 src/ui/public/visualize/index.js create mode 100644 src/ui/public/watch_multi/index.js diff --git a/package.json b/package.json index bbf839066db67..96e471c755f4b 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,6 @@ "@elastic/numeral": "2.2.1", "@elastic/test-subj-selector": "0.2.1", "@elastic/ui-ace": "0.2.3", - "@elastic/webpack-directory-name-as-main": "2.0.2", "JSONStream": "1.1.1", "accept-language-parser": "1.2.0", "angular": "1.4.7", diff --git a/src/core_plugins/console/public/tests/index.js b/src/core_plugins/console/public/tests/index.js new file mode 100644 index 0000000000000..13a6f6b51bfb2 --- /dev/null +++ b/src/core_plugins/console/public/tests/index.js @@ -0,0 +1 @@ +import './tests'; diff --git a/src/core_plugins/console/public/webpackShims/ui-bootstrap-custom/ui-bootstrap-custom.js b/src/core_plugins/console/public/webpackShims/ui-bootstrap-custom.js similarity index 100% rename from src/core_plugins/console/public/webpackShims/ui-bootstrap-custom/ui-bootstrap-custom.js rename to src/core_plugins/console/public/webpackShims/ui-bootstrap-custom.js diff --git a/src/core_plugins/kibana/common/highlight/highlight.js b/src/core_plugins/kibana/common/highlight/index.js similarity index 100% rename from src/core_plugins/kibana/common/highlight/highlight.js rename to src/core_plugins/kibana/common/highlight/index.js diff --git a/src/core_plugins/kibana/public/context/components/loading_button/index.js b/src/core_plugins/kibana/public/context/components/loading_button/index.js new file mode 100644 index 0000000000000..6ae1e9a314de6 --- /dev/null +++ b/src/core_plugins/kibana/public/context/components/loading_button/index.js @@ -0,0 +1 @@ +import './loading_button'; diff --git a/src/core_plugins/kibana/public/context/components/size_picker/index.js b/src/core_plugins/kibana/public/context/components/size_picker/index.js new file mode 100644 index 0000000000000..3af7fe39e5979 --- /dev/null +++ b/src/core_plugins/kibana/public/context/components/size_picker/index.js @@ -0,0 +1 @@ +import './size_picker'; diff --git a/src/core_plugins/kibana/public/dashboard/panel/index.js b/src/core_plugins/kibana/public/dashboard/panel/index.js new file mode 100644 index 0000000000000..01563f8b57527 --- /dev/null +++ b/src/core_plugins/kibana/public/dashboard/panel/index.js @@ -0,0 +1 @@ +import './panel'; diff --git a/src/core_plugins/kibana/public/discover/saved_searches/index.js b/src/core_plugins/kibana/public/discover/saved_searches/index.js new file mode 100644 index 0000000000000..aa4ac6b9522ae --- /dev/null +++ b/src/core_plugins/kibana/public/discover/saved_searches/index.js @@ -0,0 +1 @@ +import './saved_searches'; diff --git a/src/core_plugins/kibana/public/visualize/saved_visualizations/index.js b/src/core_plugins/kibana/public/visualize/saved_visualizations/index.js new file mode 100644 index 0000000000000..92b7dc0944c28 --- /dev/null +++ b/src/core_plugins/kibana/public/visualize/saved_visualizations/index.js @@ -0,0 +1 @@ +import './saved_visualizations'; diff --git a/src/optimize/base_optimizer.js b/src/optimize/base_optimizer.js index ec2503f161e14..4377efb09ca88 100644 --- a/src/optimize/base_optimizer.js +++ b/src/optimize/base_optimizer.js @@ -3,7 +3,6 @@ import { writeFile } from 'fs'; import webpack from 'webpack'; import Boom from 'boom'; -import DirectoryNameAsMain from '@elastic/webpack-directory-name-as-main'; import ExtractTextPlugin from 'extract-text-webpack-plugin'; import CommonsChunkPlugin from 'webpack/lib/optimize/CommonsChunkPlugin'; import DefinePlugin from 'webpack/lib/DefinePlugin'; @@ -109,9 +108,6 @@ export default class BaseOptimizer { recordsPath: resolve(this.env.workingDir, 'webpack.records'), plugins: [ - new webpack.ResolverPlugin([ - new DirectoryNameAsMain() - ]), new webpack.NoErrorsPlugin(), new ExtractTextPlugin('[name].style.css', { allChunks: true diff --git a/src/ui/public/agg_response/geo_json/index.js b/src/ui/public/agg_response/geo_json/index.js new file mode 100644 index 0000000000000..78fb52daafe03 --- /dev/null +++ b/src/ui/public/agg_response/geo_json/index.js @@ -0,0 +1 @@ +export { AggResponseGeoJsonProvider } from './geo_json'; diff --git a/src/ui/public/agg_response/point_series/index.js b/src/ui/public/agg_response/point_series/index.js new file mode 100644 index 0000000000000..87e8710c1566f --- /dev/null +++ b/src/ui/public/agg_response/point_series/index.js @@ -0,0 +1 @@ +export { AggResponsePointSeriesProvider } from './point_series'; diff --git a/src/ui/public/agg_response/tabify/index.js b/src/ui/public/agg_response/tabify/index.js new file mode 100644 index 0000000000000..2ae04efbf614b --- /dev/null +++ b/src/ui/public/agg_response/tabify/index.js @@ -0,0 +1 @@ +export { AggResponseTabifyProvider } from './tabify'; diff --git a/src/ui/public/agg_table/index.js b/src/ui/public/agg_table/index.js new file mode 100644 index 0000000000000..39621aed9c3f4 --- /dev/null +++ b/src/ui/public/agg_table/index.js @@ -0,0 +1 @@ +import './agg_table'; diff --git a/src/ui/public/angular-bootstrap/index.js b/src/ui/public/angular-bootstrap/index.js index 27ce00243db31..c01f7f4a21064 100644 --- a/src/ui/public/angular-bootstrap/index.js +++ b/src/ui/public/angular-bootstrap/index.js @@ -59,25 +59,25 @@ angular.module('ui.bootstrap.tpls', [ 'template/typeahead/typeahead-popup.html' ]); -import './accordion'; -import './alert'; -import './bindHtml'; -import './buttons'; -import './collapse'; -import './dateparser'; -import './datepicker'; -import './dropdown'; -import './modal'; -import './pagination'; -import './popover'; -import './position'; -import './progressbar'; -import './rating'; -import './tabs'; -import './timepicker'; -import './tooltip'; -import './transition'; -import './typeahead'; +import './accordion/accordion'; +import './alert/alert'; +import './bindHtml/bindHtml'; +import './buttons/buttons'; +import './collapse/collapse'; +import './dateparser/dateparser'; +import './datepicker/datepicker'; +import './dropdown/dropdown'; +import './modal/modal'; +import './pagination/pagination'; +import './popover/popover'; +import './position/position'; +import './progressbar/progressbar'; +import './rating/rating'; +import './tabs/tabs'; +import './timepicker/timepicker'; +import './tooltip/tooltip'; +import './transition/transition'; +import './typeahead/typeahead'; import alert from './alert/alert.html'; @@ -210,4 +210,3 @@ import typeaheadPopup from './typeahead/typeahead-popup.html'; angular.module('template/typeahead/typeahead-popup.html', []).run(['$templateCache', function($templateCache) { $templateCache.put('template/typeahead/typeahead-popup.html', typeaheadPopup); }]); - diff --git a/src/ui/public/bind/index.js b/src/ui/public/bind/index.js new file mode 100644 index 0000000000000..fd956c1e2a1a3 --- /dev/null +++ b/src/ui/public/bind/index.js @@ -0,0 +1 @@ +import './bind'; diff --git a/src/ui/public/binder/index.js b/src/ui/public/binder/index.js new file mode 100644 index 0000000000000..61cb7a92d315c --- /dev/null +++ b/src/ui/public/binder/index.js @@ -0,0 +1 @@ +export { Binder } from './binder'; diff --git a/src/ui/public/chrome/chrome.js b/src/ui/public/chrome/chrome.js index eb7b295020958..cec8603550ac4 100644 --- a/src/ui/public/chrome/chrome.js +++ b/src/ui/public/chrome/chrome.js @@ -21,7 +21,7 @@ import themeApi from './api/theme'; import translationsApi from './api/translations'; import { initChromeXsrfApi } from './api/xsrf'; -const chrome = {}; +export const chrome = {}; const internals = _.defaults( _.cloneDeep(metadata), { @@ -50,6 +50,3 @@ chrome.bootstrap = function () { chrome.setupAngular(); angular.bootstrap(document, ['kibana']); }; - -// eslint-disable-next-line kibana-custom/no-default-export -export default chrome; diff --git a/src/ui/public/chrome/directives/global_nav/app_switcher/index.js b/src/ui/public/chrome/directives/global_nav/app_switcher/index.js new file mode 100644 index 0000000000000..634ac427df3f1 --- /dev/null +++ b/src/ui/public/chrome/directives/global_nav/app_switcher/index.js @@ -0,0 +1 @@ +import './app_switcher'; diff --git a/src/ui/public/chrome/directives/global_nav/global_nav_link/index.js b/src/ui/public/chrome/directives/global_nav/global_nav_link/index.js new file mode 100644 index 0000000000000..2e29dd52bdb66 --- /dev/null +++ b/src/ui/public/chrome/directives/global_nav/global_nav_link/index.js @@ -0,0 +1 @@ +import './global_nav_link'; diff --git a/src/ui/public/chrome/directives/global_nav/index.js b/src/ui/public/chrome/directives/global_nav/index.js new file mode 100644 index 0000000000000..49e5dcfa431a3 --- /dev/null +++ b/src/ui/public/chrome/directives/global_nav/index.js @@ -0,0 +1 @@ +import './global_nav'; diff --git a/src/ui/public/chrome/directives/loading_indicator/index.js b/src/ui/public/chrome/directives/loading_indicator/index.js new file mode 100644 index 0000000000000..25a4c3ea14759 --- /dev/null +++ b/src/ui/public/chrome/directives/loading_indicator/index.js @@ -0,0 +1 @@ +import './loading_indicator'; diff --git a/src/ui/public/chrome/index.js b/src/ui/public/chrome/index.js new file mode 100644 index 0000000000000..4d1aa03593180 --- /dev/null +++ b/src/ui/public/chrome/index.js @@ -0,0 +1,4 @@ +import { chrome } from './chrome'; + +// eslint-disable-next-line kibana-custom/no-default-export +export default chrome; diff --git a/src/ui/public/collapsible_sidebar/index.js b/src/ui/public/collapsible_sidebar/index.js new file mode 100644 index 0000000000000..e10bdc590bfc6 --- /dev/null +++ b/src/ui/public/collapsible_sidebar/index.js @@ -0,0 +1 @@ +import './collapsible_sidebar'; diff --git a/src/ui/public/config/index.js b/src/ui/public/config/index.js new file mode 100644 index 0000000000000..c791e649224da --- /dev/null +++ b/src/ui/public/config/index.js @@ -0,0 +1 @@ +import './config'; diff --git a/src/ui/public/courier/fetch/index.js b/src/ui/public/courier/fetch/index.js new file mode 100644 index 0000000000000..7a0a81102ff88 --- /dev/null +++ b/src/ui/public/courier/fetch/index.js @@ -0,0 +1 @@ +export { FetchProvider } from './fetch'; diff --git a/src/ui/public/courier/fetch/request/index.js b/src/ui/public/courier/fetch/request/index.js new file mode 100644 index 0000000000000..73b9bbe5d3f3f --- /dev/null +++ b/src/ui/public/courier/fetch/request/index.js @@ -0,0 +1 @@ +export { AbstractRequestProvider } from './request'; diff --git a/src/ui/public/courier/index.js b/src/ui/public/courier/index.js new file mode 100644 index 0000000000000..96df31b949bf5 --- /dev/null +++ b/src/ui/public/courier/index.js @@ -0,0 +1 @@ +import './courier'; diff --git a/src/ui/public/courier/saved_object/index.js b/src/ui/public/courier/saved_object/index.js new file mode 100644 index 0000000000000..ee774221824d3 --- /dev/null +++ b/src/ui/public/courier/saved_object/index.js @@ -0,0 +1 @@ +export { SavedObjectProvider } from './saved_object'; diff --git a/src/ui/public/debounce/index.js b/src/ui/public/debounce/index.js new file mode 100644 index 0000000000000..80035bf04d123 --- /dev/null +++ b/src/ui/public/debounce/index.js @@ -0,0 +1 @@ +import './debounce'; diff --git a/src/ui/public/doc_table/index.js b/src/ui/public/doc_table/index.js new file mode 100644 index 0000000000000..278413cfbe5e1 --- /dev/null +++ b/src/ui/public/doc_table/index.js @@ -0,0 +1 @@ +import './doc_table'; diff --git a/src/ui/public/doc_title/index.js b/src/ui/public/doc_title/index.js new file mode 100644 index 0000000000000..f6d1effb96e06 --- /dev/null +++ b/src/ui/public/doc_title/index.js @@ -0,0 +1,3 @@ +import './doc_title'; + +export { DocTitleProvider } from './doc_title'; diff --git a/src/ui/public/doc_viewer/index.js b/src/ui/public/doc_viewer/index.js new file mode 100644 index 0000000000000..3384281b2065b --- /dev/null +++ b/src/ui/public/doc_viewer/index.js @@ -0,0 +1 @@ +import './doc_viewer'; diff --git a/src/ui/public/error_url_overflow/index.js b/src/ui/public/error_url_overflow/index.js new file mode 100644 index 0000000000000..3f75e4494bf39 --- /dev/null +++ b/src/ui/public/error_url_overflow/index.js @@ -0,0 +1,2 @@ +import './error_url_overflow'; +export { UrlOverflowServiceProvider } from './url_overflow_service'; diff --git a/src/ui/public/fancy_forms/index.js b/src/ui/public/fancy_forms/index.js new file mode 100644 index 0000000000000..38cac2fc5a6b1 --- /dev/null +++ b/src/ui/public/fancy_forms/index.js @@ -0,0 +1 @@ +import './fancy_forms'; diff --git a/src/ui/public/field_editor/index.js b/src/ui/public/field_editor/index.js new file mode 100644 index 0000000000000..7e26c1dcdc21a --- /dev/null +++ b/src/ui/public/field_editor/index.js @@ -0,0 +1 @@ +import './field_editor'; diff --git a/src/ui/public/field_format_editor/editors/color/index.js b/src/ui/public/field_format_editor/editors/color/index.js new file mode 100644 index 0000000000000..3975202818145 --- /dev/null +++ b/src/ui/public/field_format_editor/editors/color/index.js @@ -0,0 +1 @@ +export { colorEditor } from './color'; diff --git a/src/ui/public/field_format_editor/editors/date/index.js b/src/ui/public/field_format_editor/editors/date/index.js new file mode 100644 index 0000000000000..8ce6806c6a8f1 --- /dev/null +++ b/src/ui/public/field_format_editor/editors/date/index.js @@ -0,0 +1 @@ +export { dateEditor } from './date'; diff --git a/src/ui/public/field_format_editor/editors/duration/index.js b/src/ui/public/field_format_editor/editors/duration/index.js new file mode 100644 index 0000000000000..8de49d818f83b --- /dev/null +++ b/src/ui/public/field_format_editor/editors/duration/index.js @@ -0,0 +1 @@ +export { durationEditor } from './duration'; diff --git a/src/ui/public/field_format_editor/editors/string/index.js b/src/ui/public/field_format_editor/editors/string/index.js new file mode 100644 index 0000000000000..414458b8ed685 --- /dev/null +++ b/src/ui/public/field_format_editor/editors/string/index.js @@ -0,0 +1 @@ +export { stringEditor } from './string'; diff --git a/src/ui/public/field_format_editor/editors/truncate/index.js b/src/ui/public/field_format_editor/editors/truncate/index.js new file mode 100644 index 0000000000000..d876288056471 --- /dev/null +++ b/src/ui/public/field_format_editor/editors/truncate/index.js @@ -0,0 +1 @@ +export { truncateEditor } from './truncate'; diff --git a/src/ui/public/field_format_editor/editors/url/index.js b/src/ui/public/field_format_editor/editors/url/index.js new file mode 100644 index 0000000000000..7f58a44a23caa --- /dev/null +++ b/src/ui/public/field_format_editor/editors/url/index.js @@ -0,0 +1 @@ +export { urlEditor } from './url'; diff --git a/src/ui/public/field_format_editor/index.js b/src/ui/public/field_format_editor/index.js new file mode 100644 index 0000000000000..d2e94738c0f4a --- /dev/null +++ b/src/ui/public/field_format_editor/index.js @@ -0,0 +1 @@ +import './field_format_editor'; diff --git a/src/ui/public/field_format_editor/pattern/index.js b/src/ui/public/field_format_editor/pattern/index.js new file mode 100644 index 0000000000000..540bdd14d1a46 --- /dev/null +++ b/src/ui/public/field_format_editor/pattern/index.js @@ -0,0 +1 @@ +import './pattern'; diff --git a/src/ui/public/field_format_editor/samples/index.js b/src/ui/public/field_format_editor/samples/index.js new file mode 100644 index 0000000000000..161a81bd50b48 --- /dev/null +++ b/src/ui/public/field_format_editor/samples/index.js @@ -0,0 +1 @@ +import './samples'; diff --git a/src/ui/public/field_wildcard/index.js b/src/ui/public/field_wildcard/index.js new file mode 100644 index 0000000000000..dccbb2f5b4e6d --- /dev/null +++ b/src/ui/public/field_wildcard/index.js @@ -0,0 +1 @@ +export { FieldWildcardProvider } from './field_wildcard'; diff --git a/src/ui/public/filter_bar/filter_pill/index.js b/src/ui/public/filter_bar/filter_pill/index.js new file mode 100644 index 0000000000000..29bedd05e69c2 --- /dev/null +++ b/src/ui/public/filter_bar/filter_pill/index.js @@ -0,0 +1 @@ +import './filter_pill'; diff --git a/src/ui/public/filter_bar/index.js b/src/ui/public/filter_bar/index.js new file mode 100644 index 0000000000000..601279e071418 --- /dev/null +++ b/src/ui/public/filter_bar/index.js @@ -0,0 +1,3 @@ +import './filter_bar'; // directive + +export { disableFilter, enableFilter, toggleFilterDisabled } from './lib/disable_filter'; diff --git a/src/ui/public/filter_editor/index.js b/src/ui/public/filter_editor/index.js new file mode 100644 index 0000000000000..6b9c7b4d5175e --- /dev/null +++ b/src/ui/public/filter_editor/index.js @@ -0,0 +1 @@ +import './filter_editor'; diff --git a/src/ui/public/filter_manager/index.js b/src/ui/public/filter_manager/index.js new file mode 100644 index 0000000000000..e57e6906a48c1 --- /dev/null +++ b/src/ui/public/filter_manager/index.js @@ -0,0 +1 @@ +export { FilterManagerProvider } from './filter_manager'; diff --git a/src/ui/public/index_patterns/index.js b/src/ui/public/index_patterns/index.js new file mode 100644 index 0000000000000..c7a40b8fd3a83 --- /dev/null +++ b/src/ui/public/index_patterns/index.js @@ -0,0 +1,2 @@ +export { IndexPatternsProvider } from './index_patterns'; +export { IndexPatternsApiClientProvider } from './index_patterns_api_client_provider'; diff --git a/src/ui/public/index_patterns/index_patterns.js b/src/ui/public/index_patterns/index_patterns.js index dd9c5946307ba..c06c05d25c2e0 100644 --- a/src/ui/public/index_patterns/index_patterns.js +++ b/src/ui/public/index_patterns/index_patterns.js @@ -9,8 +9,6 @@ import { RegistryFieldFormatsProvider } from 'ui/registry/field_formats'; import { uiModules } from 'ui/modules'; const module = uiModules.get('kibana/index_patterns'); -export { IndexPatternsApiClientProvider } from './index_patterns_api_client_provider'; - export function IndexPatternsProvider(Notifier, Private) { const self = this; diff --git a/src/ui/public/indexed_array/index.js b/src/ui/public/indexed_array/index.js new file mode 100644 index 0000000000000..9339ec1f5cb24 --- /dev/null +++ b/src/ui/public/indexed_array/index.js @@ -0,0 +1 @@ +export { IndexedArray } from './indexed_array'; diff --git a/src/ui/public/kbn_top_nav/bread_crumbs/index.js b/src/ui/public/kbn_top_nav/bread_crumbs/index.js new file mode 100644 index 0000000000000..1e082c16ce335 --- /dev/null +++ b/src/ui/public/kbn_top_nav/bread_crumbs/index.js @@ -0,0 +1 @@ +import './bread_crumbs'; diff --git a/src/ui/public/kbn_top_nav/index.js b/src/ui/public/kbn_top_nav/index.js new file mode 100644 index 0000000000000..702ffb02549e7 --- /dev/null +++ b/src/ui/public/kbn_top_nav/index.js @@ -0,0 +1 @@ +import './kbn_top_nav'; diff --git a/src/ui/public/listen/index.js b/src/ui/public/listen/index.js new file mode 100644 index 0000000000000..f40f354024939 --- /dev/null +++ b/src/ui/public/listen/index.js @@ -0,0 +1 @@ +import './listen'; diff --git a/src/ui/public/notify/index.js b/src/ui/public/notify/index.js new file mode 100644 index 0000000000000..9a013f75aa63e --- /dev/null +++ b/src/ui/public/notify/index.js @@ -0,0 +1,2 @@ +export { notify } from './notify'; +export { Notifier } from './notifier'; diff --git a/src/ui/public/notify/notify.js b/src/ui/public/notify/notify.js index 3138d1a87acdd..9b44461114401 100644 --- a/src/ui/public/notify/notify.js +++ b/src/ui/public/notify/notify.js @@ -5,7 +5,6 @@ import { metadata } from 'ui/metadata'; const module = uiModules.get('kibana/notify'); export const notify = new Notifier(); -export { Notifier } from 'ui/notify/notifier'; module.factory('createNotifier', function () { return function (opts) { diff --git a/src/ui/public/number_list/index.js b/src/ui/public/number_list/index.js new file mode 100644 index 0000000000000..2e9613a9ee0fc --- /dev/null +++ b/src/ui/public/number_list/index.js @@ -0,0 +1 @@ +import './number_list'; diff --git a/src/ui/public/pager_control/components/tool_bar_pager_buttons/index.js b/src/ui/public/pager_control/components/tool_bar_pager_buttons/index.js new file mode 100644 index 0000000000000..d1e5a66087eb1 --- /dev/null +++ b/src/ui/public/pager_control/components/tool_bar_pager_buttons/index.js @@ -0,0 +1 @@ +import './tool_bar_pager_buttons'; diff --git a/src/ui/public/pager_control/components/tool_bar_pager_text/index.js b/src/ui/public/pager_control/components/tool_bar_pager_text/index.js new file mode 100644 index 0000000000000..27fe11e3af378 --- /dev/null +++ b/src/ui/public/pager_control/components/tool_bar_pager_text/index.js @@ -0,0 +1 @@ +import './tool_bar_pager_text'; diff --git a/src/ui/public/paginated_table/index.js b/src/ui/public/paginated_table/index.js new file mode 100644 index 0000000000000..30ca50c298502 --- /dev/null +++ b/src/ui/public/paginated_table/index.js @@ -0,0 +1 @@ +import './paginated_table'; diff --git a/src/ui/public/parse_query/index.js b/src/ui/public/parse_query/index.js new file mode 100644 index 0000000000000..24388ec7b668a --- /dev/null +++ b/src/ui/public/parse_query/index.js @@ -0,0 +1 @@ +import './parse_query'; diff --git a/src/ui/public/pattern_checker/index.js b/src/ui/public/pattern_checker/index.js new file mode 100644 index 0000000000000..985720accc617 --- /dev/null +++ b/src/ui/public/pattern_checker/index.js @@ -0,0 +1 @@ +import './pattern_checker'; diff --git a/src/ui/public/persisted_log/index.js b/src/ui/public/persisted_log/index.js new file mode 100644 index 0000000000000..e09a538cc6d71 --- /dev/null +++ b/src/ui/public/persisted_log/index.js @@ -0,0 +1 @@ +import './persisted_log'; diff --git a/src/ui/public/private/index.js b/src/ui/public/private/index.js new file mode 100644 index 0000000000000..40500b118bcf7 --- /dev/null +++ b/src/ui/public/private/index.js @@ -0,0 +1 @@ +import './private'; diff --git a/src/ui/public/render_directive/index.js b/src/ui/public/render_directive/index.js new file mode 100644 index 0000000000000..03a556693e7fe --- /dev/null +++ b/src/ui/public/render_directive/index.js @@ -0,0 +1 @@ +import './render_directive'; diff --git a/src/ui/public/routes/index.js b/src/ui/public/routes/index.js new file mode 100644 index 0000000000000..a05ccf38226ee --- /dev/null +++ b/src/ui/public/routes/index.js @@ -0,0 +1,4 @@ +import { uiRoutes } from './routes'; + +// eslint-disable-next-line kibana-custom/no-default-export +export default uiRoutes; diff --git a/src/ui/public/routes/routes.js b/src/ui/public/routes/routes.js index 241587b649f12..75b03e9ea0593 100644 --- a/src/ui/public/routes/routes.js +++ b/src/ui/public/routes/routes.js @@ -4,8 +4,7 @@ import { uiModules } from 'ui/modules'; import { WAIT_FOR_URL_CHANGE_TOKEN } from './route_setup_manager'; const defaultRouteManager = new RouteManager(); -// eslint-disable-next-line kibana-custom/no-default-export -export default Object.create(defaultRouteManager, { +export const uiRoutes = Object.create(defaultRouteManager, { WAIT_FOR_URL_CHANGE_TOKEN: { value: WAIT_FOR_URL_CHANGE_TOKEN }, diff --git a/src/ui/public/storage/index.js b/src/ui/public/storage/index.js new file mode 100644 index 0000000000000..c115dc1bde184 --- /dev/null +++ b/src/ui/public/storage/index.js @@ -0,0 +1 @@ +export { Storage } from './storage'; diff --git a/src/ui/public/style_compile/index.js b/src/ui/public/style_compile/index.js new file mode 100644 index 0000000000000..76637f272c199 --- /dev/null +++ b/src/ui/public/style_compile/index.js @@ -0,0 +1 @@ +import './style_compile'; diff --git a/src/ui/public/system_api/index.js b/src/ui/public/system_api/index.js new file mode 100644 index 0000000000000..6fa6c8c5790c2 --- /dev/null +++ b/src/ui/public/system_api/index.js @@ -0,0 +1 @@ +export { addSystemApiHeader, isSystemApiRequest } from './system_api'; diff --git a/src/ui/public/test_harness/index.js b/src/ui/public/test_harness/index.js new file mode 100644 index 0000000000000..1e1fed64d2dfe --- /dev/null +++ b/src/ui/public/test_harness/index.js @@ -0,0 +1,3 @@ +import './test_harness'; + +export { bootstrap } from './test_harness'; diff --git a/src/ui/public/time_buckets/index.js b/src/ui/public/time_buckets/index.js new file mode 100644 index 0000000000000..73abb24fc7228 --- /dev/null +++ b/src/ui/public/time_buckets/index.js @@ -0,0 +1 @@ +export { TimeBucketsProvider } from './time_buckets'; diff --git a/src/ui/public/timefilter/index.js b/src/ui/public/timefilter/index.js new file mode 100644 index 0000000000000..f7fddb0a11efd --- /dev/null +++ b/src/ui/public/timefilter/index.js @@ -0,0 +1 @@ +import './timefilter'; diff --git a/src/ui/public/timepicker/index.js b/src/ui/public/timepicker/index.js new file mode 100644 index 0000000000000..17d922816b3d6 --- /dev/null +++ b/src/ui/public/timepicker/index.js @@ -0,0 +1 @@ +import './timepicker'; diff --git a/src/ui/public/tooltip/index.js b/src/ui/public/tooltip/index.js new file mode 100644 index 0000000000000..3f254566844a4 --- /dev/null +++ b/src/ui/public/tooltip/index.js @@ -0,0 +1 @@ +import './tooltip'; diff --git a/src/ui/public/typeahead/index.js b/src/ui/public/typeahead/index.js new file mode 100644 index 0000000000000..328b1228e6ab9 --- /dev/null +++ b/src/ui/public/typeahead/index.js @@ -0,0 +1 @@ +import './typeahead'; diff --git a/src/ui/public/vis/components/color/index.js b/src/ui/public/vis/components/color/index.js new file mode 100644 index 0000000000000..632b2cad902e0 --- /dev/null +++ b/src/ui/public/vis/components/color/index.js @@ -0,0 +1 @@ +export { VislibComponentsColorColorProvider } from './color'; diff --git a/src/ui/public/vis/components/tooltip/index.js b/src/ui/public/vis/components/tooltip/index.js new file mode 100644 index 0000000000000..e490359844e97 --- /dev/null +++ b/src/ui/public/vis/components/tooltip/index.js @@ -0,0 +1 @@ +export { Tooltip, TooltipProvider } from './tooltip'; diff --git a/src/ui/public/vis/index.js b/src/ui/public/vis/index.js new file mode 100644 index 0000000000000..fa80f5cb3a411 --- /dev/null +++ b/src/ui/public/vis/index.js @@ -0,0 +1 @@ +export { VisProvider } from './vis'; diff --git a/src/ui/public/vislib/components/labels/index.js b/src/ui/public/vislib/components/labels/index.js new file mode 100644 index 0000000000000..77004990faffd --- /dev/null +++ b/src/ui/public/vislib/components/labels/index.js @@ -0,0 +1 @@ +export { VislibComponentsLabelsLabelsProvider } from './labels'; diff --git a/src/ui/public/vislib/index.js b/src/ui/public/vislib/index.js new file mode 100644 index 0000000000000..90acbd2c12427 --- /dev/null +++ b/src/ui/public/vislib/index.js @@ -0,0 +1,4 @@ +import { VislibProvider } from './vislib'; + +// eslint-disable-next-line kibana-custom/no-default-export +export default VislibProvider; diff --git a/src/ui/public/vislib/lib/axis/index.js b/src/ui/public/vislib/lib/axis/index.js new file mode 100644 index 0000000000000..6f54619b6144e --- /dev/null +++ b/src/ui/public/vislib/lib/axis/index.js @@ -0,0 +1 @@ +export { VislibLibAxisProvider } from './axis'; diff --git a/src/ui/public/vislib/lib/layout/index.js b/src/ui/public/vislib/lib/layout/index.js new file mode 100644 index 0000000000000..1286be1b28810 --- /dev/null +++ b/src/ui/public/vislib/lib/layout/index.js @@ -0,0 +1 @@ +export { VislibLibLayoutLayoutProvider } from './layout'; diff --git a/src/ui/public/vislib/vislib.js b/src/ui/public/vislib/vislib.js index ace97079ae805..c0fc5606f0f8a 100644 --- a/src/ui/public/vislib/vislib.js +++ b/src/ui/public/vislib/vislib.js @@ -17,8 +17,7 @@ import { VislibVisProvider } from './vis'; * @main vislib * @return {Object} Contains the version number and the Vis Class for creating visualizations */ -// eslint-disable-next-line kibana-custom/no-default-export -export default function VislibProvider(Private) { +export function VislibProvider(Private) { return { version: '0.0.0', Vis: Private(VislibVisProvider) diff --git a/src/ui/public/visualize/index.js b/src/ui/public/visualize/index.js new file mode 100644 index 0000000000000..075c8e0b59158 --- /dev/null +++ b/src/ui/public/visualize/index.js @@ -0,0 +1 @@ +import './visualize'; diff --git a/src/ui/public/watch_multi/index.js b/src/ui/public/watch_multi/index.js new file mode 100644 index 0000000000000..359d92b92f027 --- /dev/null +++ b/src/ui/public/watch_multi/index.js @@ -0,0 +1 @@ +import './watch_multi'; diff --git a/webpackShims/ui-bootstrap.js b/webpackShims/ui-bootstrap.js index 463bbf08c0e86..a428883f863dc 100644 --- a/webpackShims/ui-bootstrap.js +++ b/webpackShims/ui-bootstrap.js @@ -1,7 +1,7 @@ require('angular'); require('ui/angular-bootstrap'); var uiModules = require('ui/modules').uiModules; -var chrome = require('../src/ui/public/chrome/chrome'); +var chrome = require('ui/chrome'); var kibana = uiModules.get('kibana', ['ui.bootstrap', 'pascalprecht.translate']);