From 8420a4a74bf3dd55948486a95e80c3d62ed9a5dd Mon Sep 17 00:00:00 2001 From: "Vivy.Pan" Date: Wed, 15 Feb 2023 10:33:41 +0800 Subject: [PATCH 1/2] =?UTF-8?q?KERNEL-14241=20refactor:=E8=B0=83=E6=95=B4j?= =?UTF-8?q?s=E7=9B=B8=E5=85=B3=E6=89=93=E5=8C=85,=E7=94=A8index.js?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2blob=E8=AF=AD=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/date/index.js | 1 + webpack/attachments.js | 42 ++++++++++++++++++++-------------------- webpack/components.js | 28 +++++++++++++-------------- 3 files changed, 36 insertions(+), 35 deletions(-) create mode 100644 src/widget/date/index.js diff --git a/src/widget/date/index.js b/src/widget/date/index.js new file mode 100644 index 000000000..9b964cb02 --- /dev/null +++ b/src/widget/date/index.js @@ -0,0 +1 @@ +export * from "./calendar"; \ No newline at end of file diff --git a/webpack/attachments.js b/webpack/attachments.js index fe607fba9..2611ec397 100644 --- a/webpack/attachments.js +++ b/webpack/attachments.js @@ -13,7 +13,7 @@ const runtimePolyfill = ["@babel/polyfill", "es6-promise/auto"]; const basicAttachmentMap = { polyfill: sync([ "src/core/0.foundation.js", - "src/polyfill/**/*.js", + "src/polyfill/*.js", ]).concat(runtimePolyfill), core: sync([ "src/less/core/**/*.less", @@ -44,16 +44,16 @@ const basicAttachmentMap = { // "src/component/**/*.js", ]), router: sync([ - "src/router/**/*.js", + "src/router/*.js", ]), core_without_platform: sync([ "src/core/0.foundation.js", lodashJs, - "src/core/**/*.js", - "src/data/**/*.js", + "src/core/index.js", + // "src/data/**/*.js", ], [ - "src/core/platform/**/*.js", - "src/core/controller/**/*.js", + "src/core/platform/index.js", + "src/core/controller/index.js", ]), core_without_normalize: sync( ["src/less/core/**/*.less", "src/less/theme/**/*.less"], ["src/less/core/normalize.less", "src/less/core/normalize2.less"] @@ -62,8 +62,8 @@ const basicAttachmentMap = { "src/less/core/**/*.less", "src/less/theme/**/*.less", lodashJs, - "src/core/**/*.js", - "src/data/**/*.js", + "src/core/index.js", + // "src/data/**/*.js", ], [ "src/core/conflict.js", ]), @@ -72,22 +72,22 @@ const basicAttachmentMap = { ts: ['./typescript/bundle.ts'], ui: sync([ 'ui/less/app.less', - 'ui/less/**/*.less', - 'ui/js/**/*.js', + 'ui/less/*.less', + 'ui/js/index.js', ]), config: sync(["demo/version.js", "i18n/i18n.cn.js"]), utils: sync([ "src/core/0.foundation.js", lodashJs, - "src/core/constant/**/*.js", - "src/core/func/**/*.js", + "src/core/constant/index.js", + "src/core/func/index.js", "src/core/2.base.js", "src/core/3.ob.js", "src/core/5.inject.js", "src/core/utils/*.js", "i18n/i18n.cn.js", "_mobile/date.i18n.cn.js", - "src/data/**/*.js", + // "src/data/**/*.js", ]), fix: [fixJs], fixProxy: [fixProxyJs], @@ -111,7 +111,7 @@ const bundle = [].concat( sync(["public/less/app.less", "public/less/**/*.less"]), [fixCompact, workerCompact], basicAttachmentMap.router, - sync(["public/js/**/*.js", "public/js/index.js", "i18n/i18n.cn.js"]), + sync(["public/js/index.js", "public/js/index.js", "i18n/i18n.cn.js"]), basicAttachmentMap.ts, ); @@ -139,7 +139,7 @@ const coreJs = [].concat( const resource = sync(["private/less/app.less", "private/less/**/*.less"]); -const config = sync(["public/js/**/*.js", "public/js/index.js", "i18n/i18n.cn.js"]); +const config = sync(["public/js/index.js", "public/js/index.js", "i18n/i18n.cn.js"]); const bundleWithoutNormalize = [].concat( basicAttachmentMap.core_without_normalize, @@ -219,21 +219,21 @@ const fineuiWithoutJqueryAndPolyfillJs = [].concat( sync([ "src/core/0.foundation.js", lodashJs, - "src/core/**/*.js", - "src/data/**/*.js", + "src/core/index.js", + // "src/data/**/*.js", ], [ "src/core/platform/web/**/*.js", ]), basicAttachmentMap.fix, sync([ - "src/base/**/*.js", - "src/case/**/*.js", + "src/base/index.js", + "src/case/index.js", ], [ "src/base/single/input/file.js", - "src/case/ztree/**/*.js", + "src/case/ztree/index.js", ]), basicAttachmentMap.widget, - sync([fixCompact, workerCompact, "ui/js/**/*.js"]), + sync([fixCompact, workerCompact, "ui/js/index.js"]), basicAttachmentMap.ts, ); diff --git a/webpack/components.js b/webpack/components.js index 0162cfd2a..de4f18163 100644 --- a/webpack/components.js +++ b/webpack/components.js @@ -1,22 +1,22 @@ const { sync, uniq } = require("./utils"); const basicAttachmentMap = { - single: sync(["src/base/single/**/*.js"]), - layer: sync(["src/base/layer/**/*.js"]), + single: sync(["src/base/single/index.js"]), + layer: sync(["src/base/layer/index.js"]), pane: sync(["src/base/1.pane.js"]), button_group: sync(["src/base/combination/group.button.js"]), - buttons: sync(["src/case/button/**/*.js"]), - checkboxes: sync(["src/case/checkbox/**/*.js"]), - combos: sync(["src/case/combo/**/*.js"]), - editors: sync(["src/case/editor/**/*.js"]), - triggers: sync(["src/case/trigger/**/*.js"]), - calendar: sync(["src/case/calendar/**/*.js"]), - color_chooser: sync(["src/case/colorchooser/**/*.js"]), - segment: sync(["src/case/segment/**/*.js"]), - linear_segment: sync(["src/case/linearsegment/**/*.js"]), - date: sync(["src/widget/date/**/*.js"]), - down_list: sync(["src/widget/downlist/**/*.js"]), - text_value_down_list_combo: sync(["src/widget/textvaluedownlistcombo/**/*.js"]), + buttons: sync(["src/case/button/index.js"]), + checkboxes: sync(["src/case/checkbox/index.js"]), + combos: sync(["src/case/combo/index.js"]), + editors: sync(["src/case/editor/index.js"]), + triggers: sync(["src/case/trigger/index.js"]), + calendar: sync(["src/case/calendar/index.js"]), + color_chooser: sync(["src/case/colorchooser/index.js"]), + segment: sync(["src/case/segment/index.js"]), + linear_segment: sync(["src/case/linearsegment/index.js"]), + date: sync(["src/widget/date/index.js"]), + down_list: sync(["src/widget/downlist/index.js"]), + text_value_down_list_combo: sync(["src/widget/textvaluedownlistcombo/index.js"]), }; module.exports = { From 8048faf126c7c16c8aa230102cd26a9ce59d2291 Mon Sep 17 00:00:00 2001 From: "Vivy.Pan" Date: Wed, 15 Feb 2023 12:48:25 +0800 Subject: [PATCH 2/2] =?UTF-8?q?KERNEL-14241=20refactor:demo=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0index.js,=E8=B0=83=E6=95=B4=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/index.js | 4 +++ demo/js/base/button/index.js | 5 +++ demo/js/base/editor/index.js | 3 ++ demo/js/base/index.js | 11 +++++++ demo/js/base/tip/index.js | 3 ++ demo/js/base/tree/index.js | 3 ++ demo/js/case/combo/index.js | 8 +++++ demo/js/case/editor/index.js | 5 +++ demo/js/case/index.js | 15 +++++++++ demo/js/case/item/index.js | 3 ++ demo/js/case/list/index.js | 2 ++ demo/js/case/pager/index.js | 2 ++ demo/js/case/pane/index.js | 4 +++ demo/js/case/tree/index.js | 3 ++ demo/js/case/triggers/index.js | 4 +++ demo/js/component/index.js | 5 +++ demo/js/config/index.js | 8 +++++ demo/js/core/abstract/combination/index.js | 10 ++++++ demo/js/core/abstract/index.js | 11 +++++++ demo/js/core/index.js | 3 ++ demo/js/core/layout/index.js | 18 +++++++++++ demo/js/core/popup/index.js | 4 +++ demo/js/fix-2.0/index.js | 10 ++++++ demo/js/index.js | 16 ++++++++++ demo/js/widget/basewidget/index.js | 5 +++ demo/js/widget/collapase/index.js | 1 + demo/js/widget/date/index.js | 2 ++ demo/js/widget/datetime/index.js | 1 + demo/js/widget/downlist/index.js | 2 ++ demo/js/widget/editor/index.js | 2 ++ demo/js/widget/index.js | 23 ++++++++++++++ demo/js/widget/multiselect/index.js | 2 ++ demo/js/widget/multitree/index.js | 2 ++ demo/js/widget/numbereditor/index.js | 1 + demo/js/widget/numberinterval/index.js | 1 + demo/js/widget/selecttree/index.js | 2 ++ demo/js/widget/singleselct/index.js | 1 + demo/js/widget/singletree/index.js | 2 ++ demo/js/widget/slider/index.js | 1 + demo/js/widget/timecombo/index.js | 1 + demo/js/widget/timeinterval/index.js | 1 + demo/js/widget/tree/index.js | 4 +++ demo/js/widget/year/index.js | 1 + demo/js/widget/yearinterval/index.js | 1 + demo/js/widget/yearmonth/index.js | 1 + demo/js/widget/yearmonthinterval/index.js | 1 + demo/js/widget/yearquarter/index.js | 1 + demo/js/widget/yearquarterinterval/index.js | 1 + src/core/platform/index.js | 1 + src/polyfill/index.js | 4 +++ src/router/index.js | 2 ++ webpack/attachments.js | 10 +++--- webpack/components.js | 34 ++++++++++----------- 53 files changed, 248 insertions(+), 23 deletions(-) create mode 100644 demo/index.js create mode 100644 demo/js/base/button/index.js create mode 100644 demo/js/base/editor/index.js create mode 100644 demo/js/base/index.js create mode 100644 demo/js/base/tip/index.js create mode 100644 demo/js/base/tree/index.js create mode 100644 demo/js/case/combo/index.js create mode 100644 demo/js/case/editor/index.js create mode 100644 demo/js/case/index.js create mode 100644 demo/js/case/item/index.js create mode 100644 demo/js/case/list/index.js create mode 100644 demo/js/case/pager/index.js create mode 100644 demo/js/case/pane/index.js create mode 100644 demo/js/case/tree/index.js create mode 100644 demo/js/case/triggers/index.js create mode 100644 demo/js/component/index.js create mode 100644 demo/js/config/index.js create mode 100644 demo/js/core/abstract/combination/index.js create mode 100644 demo/js/core/abstract/index.js create mode 100644 demo/js/core/index.js create mode 100644 demo/js/core/layout/index.js create mode 100644 demo/js/core/popup/index.js create mode 100644 demo/js/fix-2.0/index.js create mode 100644 demo/js/index.js create mode 100644 demo/js/widget/basewidget/index.js create mode 100644 demo/js/widget/collapase/index.js create mode 100644 demo/js/widget/date/index.js create mode 100644 demo/js/widget/datetime/index.js create mode 100644 demo/js/widget/downlist/index.js create mode 100644 demo/js/widget/editor/index.js create mode 100644 demo/js/widget/index.js create mode 100644 demo/js/widget/multiselect/index.js create mode 100644 demo/js/widget/multitree/index.js create mode 100644 demo/js/widget/numbereditor/index.js create mode 100644 demo/js/widget/numberinterval/index.js create mode 100644 demo/js/widget/selecttree/index.js create mode 100644 demo/js/widget/singleselct/index.js create mode 100644 demo/js/widget/singletree/index.js create mode 100644 demo/js/widget/slider/index.js create mode 100644 demo/js/widget/timecombo/index.js create mode 100644 demo/js/widget/timeinterval/index.js create mode 100644 demo/js/widget/tree/index.js create mode 100644 demo/js/widget/year/index.js create mode 100644 demo/js/widget/yearinterval/index.js create mode 100644 demo/js/widget/yearmonth/index.js create mode 100644 demo/js/widget/yearmonthinterval/index.js create mode 100644 demo/js/widget/yearquarter/index.js create mode 100644 demo/js/widget/yearquarterinterval/index.js create mode 100644 src/core/platform/index.js create mode 100644 src/polyfill/index.js create mode 100644 src/router/index.js diff --git a/demo/index.js b/demo/index.js new file mode 100644 index 000000000..dbe298959 --- /dev/null +++ b/demo/index.js @@ -0,0 +1,4 @@ +export * from "./app"; +export * from "./config"; +export * from "./version"; +export * from "./js"; \ No newline at end of file diff --git a/demo/js/base/button/index.js b/demo/js/base/button/index.js new file mode 100644 index 000000000..03d382db9 --- /dev/null +++ b/demo/js/base/button/index.js @@ -0,0 +1,5 @@ +export * from "./demo.button"; +export * from "./demo.icon_button"; +export * from "./demo.image_button"; +export * from "./demo.joker.icon"; +export * from "./demo.text_button"; \ No newline at end of file diff --git a/demo/js/base/editor/index.js b/demo/js/base/editor/index.js new file mode 100644 index 000000000..a56032082 --- /dev/null +++ b/demo/js/base/editor/index.js @@ -0,0 +1,3 @@ +export * from "./demo.editor"; +export * from "./demo.multifile_editor"; +export * from "./demo.textarea_editor"; \ No newline at end of file diff --git a/demo/js/base/index.js b/demo/js/base/index.js new file mode 100644 index 000000000..90aeb226a --- /dev/null +++ b/demo/js/base/index.js @@ -0,0 +1,11 @@ +export * from "./demo.html"; +export * from "./demo.icon_label"; +export * from "./demo.label"; +export * from "./demo.label.scene"; +export * from "./demo.message"; +export * from "./demo.pager"; + +export * from "./button"; +export * from "./editor"; +export * from "./tip"; +export * from "./tree"; \ No newline at end of file diff --git a/demo/js/base/tip/index.js b/demo/js/base/tip/index.js new file mode 100644 index 000000000..bd0c8302b --- /dev/null +++ b/demo/js/base/tip/index.js @@ -0,0 +1,3 @@ +export * from "./demo.bubble"; +export * from "./demo.title"; +export * from "./demo.toast"; \ No newline at end of file diff --git a/demo/js/base/tree/index.js b/demo/js/base/tree/index.js new file mode 100644 index 000000000..382d8ec51 --- /dev/null +++ b/demo/js/base/tree/index.js @@ -0,0 +1,3 @@ +export * from "./demo.part_tree"; +export * from "./demo.sync_tree"; +export * from "./demo.tree_view"; \ No newline at end of file diff --git a/demo/js/case/combo/index.js b/demo/js/case/combo/index.js new file mode 100644 index 000000000..560d7ddff --- /dev/null +++ b/demo/js/case/combo/index.js @@ -0,0 +1,8 @@ +export * from "./demo.bubble_combo"; +export * from "./demo.editor_icon_check_combo"; +export * from "./demo.icon_combo"; +export * from "./demo.icon_text_value_combo"; +export * from "./demo.search_text_value_combo"; +export * from "./demo.text_value_combo"; +export * from "./demo.text_value_down_list_combo"; +export * from "./demo.text_vlaue_check_combo"; \ No newline at end of file diff --git a/demo/js/case/editor/index.js b/demo/js/case/editor/index.js new file mode 100644 index 000000000..684975dd1 --- /dev/null +++ b/demo/js/case/editor/index.js @@ -0,0 +1,5 @@ +export * from "./demo.clear_editor"; +export * from "./demo.shelter_editor"; +export * from "./demo.sign_editor"; +export * from "./demo.simple_state_editor"; +export * from "./demo.state_editor"; \ No newline at end of file diff --git a/demo/js/case/index.js b/demo/js/case/index.js new file mode 100644 index 000000000..2f9c885e3 --- /dev/null +++ b/demo/js/case/index.js @@ -0,0 +1,15 @@ +export * from "./combo"; +export * from "./editor"; +export * from "./item"; +export * from "./list"; +export * from "./pager"; +export * from "./pane"; +export * from "./tree"; +export * from "./triggers"; + + +export * from "./demo.calendar"; +export * from "./demo.click.effect"; +export * from "./demo.color_chooser"; +export * from "./demo.color_chooser_popup"; +export * from "./demo.segment"; \ No newline at end of file diff --git a/demo/js/case/item/index.js b/demo/js/case/item/index.js new file mode 100644 index 000000000..a5da7036c --- /dev/null +++ b/demo/js/case/item/index.js @@ -0,0 +1,3 @@ +export * from "./demo.multi_select_item"; +export * from "./demo.single_select_item"; +export * from "./demo.single_select_radio_item"; \ No newline at end of file diff --git a/demo/js/case/list/index.js b/demo/js/case/list/index.js new file mode 100644 index 000000000..4e008070c --- /dev/null +++ b/demo/js/case/list/index.js @@ -0,0 +1,2 @@ +export * from "./demo.lazy_loader"; +export * from "./demo.select_list"; \ No newline at end of file diff --git a/demo/js/case/pager/index.js b/demo/js/case/pager/index.js new file mode 100644 index 000000000..c4061c8c6 --- /dev/null +++ b/demo/js/case/pager/index.js @@ -0,0 +1,2 @@ +export * from "./demo.all_count_pager"; +export * from "./demo.direction_pager"; \ No newline at end of file diff --git a/demo/js/case/pane/index.js b/demo/js/case/pane/index.js new file mode 100644 index 000000000..6fd6c64e2 --- /dev/null +++ b/demo/js/case/pane/index.js @@ -0,0 +1,4 @@ +export * from "./demo.list_pane"; +export * from "./demo.multi_popup_view"; +export * from "./demo.panel"; +export * from "./demo.popup_panel"; \ No newline at end of file diff --git a/demo/js/case/tree/index.js b/demo/js/case/tree/index.js new file mode 100644 index 000000000..8180d07ab --- /dev/null +++ b/demo/js/case/tree/index.js @@ -0,0 +1,3 @@ +export * from "./demo.display_tree"; +export * from "./demo.level_tree"; +export * from "./demo.simple_tree"; \ No newline at end of file diff --git a/demo/js/case/triggers/index.js b/demo/js/case/triggers/index.js new file mode 100644 index 000000000..0ef8e8a04 --- /dev/null +++ b/demo/js/case/triggers/index.js @@ -0,0 +1,4 @@ +export * from "./demo.editor_trigger"; +export * from "./demo.icon_trigger"; +export * from "./demo.select_text_trigger"; +export * from "./demo.text_trigger"; \ No newline at end of file diff --git a/demo/js/component/index.js b/demo/js/component/index.js new file mode 100644 index 000000000..a43fa5972 --- /dev/null +++ b/demo/js/component/index.js @@ -0,0 +1,5 @@ +export * from "./demo.form"; +export * from "./demo.treevaluechoosercombo"; +export * from "./demo.treevaluechooserpane"; +export * from "./demo.valuechoosercombo"; +export * from "./demo.valuechooserpane"; \ No newline at end of file diff --git a/demo/js/config/index.js b/demo/js/config/index.js new file mode 100644 index 000000000..21b2a224c --- /dev/null +++ b/demo/js/config/index.js @@ -0,0 +1,8 @@ +export * from "./base"; +export * from "./case"; +export * from "./category"; +export * from "./component"; +export * from "./core"; +export * from "./demo.pane"; +export * from "./fix"; +export * from "./widget"; \ No newline at end of file diff --git a/demo/js/core/abstract/combination/index.js b/demo/js/core/abstract/combination/index.js new file mode 100644 index 000000000..35bc7e148 --- /dev/null +++ b/demo/js/core/abstract/combination/index.js @@ -0,0 +1,10 @@ +export * from "./demo.combo"; +export * from "./demo.combo2"; +export * from "./demo.combo3"; +export * from "./demo.combo_group"; +export * from "./demo.expander"; +export * from "./demo.loader"; +export * from "./demo.navigation"; +export * from "./demo.sercher"; +export * from "./demo.switcher"; +export * from "./demo.tab"; \ No newline at end of file diff --git a/demo/js/core/abstract/index.js b/demo/js/core/abstract/index.js new file mode 100644 index 000000000..6e3b38c8e --- /dev/null +++ b/demo/js/core/abstract/index.js @@ -0,0 +1,11 @@ +export * from "./combination"; + +export * from "./demo.button_group"; +export * from "./demo.button_tree"; +export * from "./demo.collection_view"; +export * from "./demo.custom_tree"; +export * from "./demo.grid_view"; +export * from "./demo.list_view"; +export * from "./demo.virtual_group"; +export * from "./demo.virtual_group_item"; +export * from "./demo.virtual_list"; \ No newline at end of file diff --git a/demo/js/core/index.js b/demo/js/core/index.js new file mode 100644 index 000000000..a927fd18b --- /dev/null +++ b/demo/js/core/index.js @@ -0,0 +1,3 @@ +export * from "./abstract"; +export * from "./layout"; +export * from "./popup"; \ No newline at end of file diff --git a/demo/js/core/layout/index.js b/demo/js/core/layout/index.js new file mode 100644 index 000000000..14277ed22 --- /dev/null +++ b/demo/js/core/layout/index.js @@ -0,0 +1,18 @@ +export * from "./demo.absolute"; +export * from "./demo.border"; +export * from "./demo.center"; +export * from "./demo.center_adapt"; +export * from "./demo.float_center"; +export * from "./demo.flow"; +export * from "./demo.grid"; +export * from "./demo.horizontal"; +export * from "./demo.horizontal_adapt"; +export * from "./demo.horizontal_auto"; +export * from "./demo.horizontal_float"; +export * from "./demo.htape"; +export * from "./demo.left_right_vertical_adapt"; +export * from "./demo.table"; +export * from "./demo.td"; +export * from "./demo.vertical"; +export * from "./demo.vertical_adapt"; +export * from "./demo.vtape"; \ No newline at end of file diff --git a/demo/js/core/popup/index.js b/demo/js/core/popup/index.js new file mode 100644 index 000000000..3a8fed100 --- /dev/null +++ b/demo/js/core/popup/index.js @@ -0,0 +1,4 @@ +export * from "./demo.layer"; +export * from "./demo.popover"; +export * from "./demo.popup_view"; +export * from "./demo.searcher_view"; \ No newline at end of file diff --git a/demo/js/fix-2.0/index.js b/demo/js/fix-2.0/index.js new file mode 100644 index 000000000..dab34ad3a --- /dev/null +++ b/demo/js/fix-2.0/index.js @@ -0,0 +1,10 @@ +export * from "./computed"; +export * from "./context"; +export * from "./define"; +export * from "./demo"; +export * from "./globalwatcher"; +export * from "./inject"; +export * from "./scene"; +export * from "./state"; +export * from "./store"; +export * from "./watcher"; \ No newline at end of file diff --git a/demo/js/index.js b/demo/js/index.js new file mode 100644 index 000000000..251e834a7 --- /dev/null +++ b/demo/js/index.js @@ -0,0 +1,16 @@ +export * from "./center"; +export * from "./face"; +export * from "./main"; +export * from "./main.store"; +export * from "./north"; +export * from "./preview"; +export * from "./router"; +export * from "./west"; + +export * from "./base"; +export * from "./case"; +export * from "./component"; +export * from "./config"; +export * from "./core"; +export * from "./fix-2.0"; +export * from "./widget"; \ No newline at end of file diff --git a/demo/js/widget/basewidget/index.js b/demo/js/widget/basewidget/index.js new file mode 100644 index 000000000..48de6947f --- /dev/null +++ b/demo/js/widget/basewidget/index.js @@ -0,0 +1,5 @@ +export * from "./demo.buttons"; +export * from "./demo.items"; +export * from "./demo.nodes"; +export * from "./demo.sagments"; +export * from "./demo.tips"; \ No newline at end of file diff --git a/demo/js/widget/collapase/index.js b/demo/js/widget/collapase/index.js new file mode 100644 index 000000000..4bbdbc7d5 --- /dev/null +++ b/demo/js/widget/collapase/index.js @@ -0,0 +1 @@ +export * from "./demo.collapse"; \ No newline at end of file diff --git a/demo/js/widget/date/index.js b/demo/js/widget/date/index.js new file mode 100644 index 000000000..379827fba --- /dev/null +++ b/demo/js/widget/date/index.js @@ -0,0 +1,2 @@ +export * from "./demo.datepane"; +export * from "./demo.multidate_combo"; \ No newline at end of file diff --git a/demo/js/widget/datetime/index.js b/demo/js/widget/datetime/index.js new file mode 100644 index 000000000..a8f8094c4 --- /dev/null +++ b/demo/js/widget/datetime/index.js @@ -0,0 +1 @@ +export * from "./demo.datetime"; \ No newline at end of file diff --git a/demo/js/widget/downlist/index.js b/demo/js/widget/downlist/index.js new file mode 100644 index 000000000..3636f3654 --- /dev/null +++ b/demo/js/widget/downlist/index.js @@ -0,0 +1,2 @@ +export * from "./demo.downlist"; +export * from "./demo.downlist.icon"; \ No newline at end of file diff --git a/demo/js/widget/editor/index.js b/demo/js/widget/editor/index.js new file mode 100644 index 000000000..fe266fb31 --- /dev/null +++ b/demo/js/widget/editor/index.js @@ -0,0 +1,2 @@ +export * from "./demo.search_editor"; +export * from "./demo.text_editor"; \ No newline at end of file diff --git a/demo/js/widget/index.js b/demo/js/widget/index.js new file mode 100644 index 000000000..db5525e6e --- /dev/null +++ b/demo/js/widget/index.js @@ -0,0 +1,23 @@ +export * from "./basewidget"; +export * from "./collapase"; +export * from "./date"; +export * from "./datetime"; +export * from "./downlist"; +export * from "./editor"; +export * from "./multiselect"; +export * from "./multiselect"; +export * from "./multitree"; +export * from "./numbereditor"; +export * from "./numberinterval"; +export * from "./selecttree"; +export * from "./singleselct"; +export * from "./slider"; +export * from "./timecombo"; +export * from "./timeinterval"; +export * from "./tree"; +export * from "./year"; +export * from "./yearinterval"; +export * from "./yearmonth"; +export * from "./yearmonthinterval"; +export * from "./yearquarter"; +export * from "./yearquarterinterval"; \ No newline at end of file diff --git a/demo/js/widget/multiselect/index.js b/demo/js/widget/multiselect/index.js new file mode 100644 index 000000000..36754a3c9 --- /dev/null +++ b/demo/js/widget/multiselect/index.js @@ -0,0 +1,2 @@ +export * from "./demo.multi_select_combo"; +export * from "./demo.multi_select_list"; \ No newline at end of file diff --git a/demo/js/widget/multitree/index.js b/demo/js/widget/multitree/index.js new file mode 100644 index 000000000..af21d372d --- /dev/null +++ b/demo/js/widget/multitree/index.js @@ -0,0 +1,2 @@ +export * from "./demo.multi_tree_combo"; +export * from "./demo.multi_tree_list"; \ No newline at end of file diff --git a/demo/js/widget/numbereditor/index.js b/demo/js/widget/numbereditor/index.js new file mode 100644 index 000000000..368c8e49d --- /dev/null +++ b/demo/js/widget/numbereditor/index.js @@ -0,0 +1 @@ +export * from "./demo.number_editor"; \ No newline at end of file diff --git a/demo/js/widget/numberinterval/index.js b/demo/js/widget/numberinterval/index.js new file mode 100644 index 000000000..9f891df71 --- /dev/null +++ b/demo/js/widget/numberinterval/index.js @@ -0,0 +1 @@ +export * from "./demo.number_interval"; \ No newline at end of file diff --git a/demo/js/widget/selecttree/index.js b/demo/js/widget/selecttree/index.js new file mode 100644 index 000000000..a9bb935f3 --- /dev/null +++ b/demo/js/widget/selecttree/index.js @@ -0,0 +1,2 @@ +export * from "./demo.multilayer_select_tree_combo"; +export * from "./demo.select_tree_combo"; \ No newline at end of file diff --git a/demo/js/widget/singleselct/index.js b/demo/js/widget/singleselct/index.js new file mode 100644 index 000000000..8e8739954 --- /dev/null +++ b/demo/js/widget/singleselct/index.js @@ -0,0 +1 @@ +export * from "./demo.single_select_combo"; \ No newline at end of file diff --git a/demo/js/widget/singletree/index.js b/demo/js/widget/singletree/index.js new file mode 100644 index 000000000..992531fa9 --- /dev/null +++ b/demo/js/widget/singletree/index.js @@ -0,0 +1,2 @@ +export * from "./demo.multilayer_single_tree_combo"; +export * from "./demo.single_tree_combo"; \ No newline at end of file diff --git a/demo/js/widget/slider/index.js b/demo/js/widget/slider/index.js new file mode 100644 index 000000000..462bc1ee8 --- /dev/null +++ b/demo/js/widget/slider/index.js @@ -0,0 +1 @@ +export * from "./demo.slider"; \ No newline at end of file diff --git a/demo/js/widget/timecombo/index.js b/demo/js/widget/timecombo/index.js new file mode 100644 index 000000000..4a6bd372e --- /dev/null +++ b/demo/js/widget/timecombo/index.js @@ -0,0 +1 @@ +export * from "./demo.timecombo"; \ No newline at end of file diff --git a/demo/js/widget/timeinterval/index.js b/demo/js/widget/timeinterval/index.js new file mode 100644 index 000000000..76ce2e430 --- /dev/null +++ b/demo/js/widget/timeinterval/index.js @@ -0,0 +1 @@ +export * from "./demo.time_interval"; \ No newline at end of file diff --git a/demo/js/widget/tree/index.js b/demo/js/widget/tree/index.js new file mode 100644 index 000000000..f4880f1e6 --- /dev/null +++ b/demo/js/widget/tree/index.js @@ -0,0 +1,4 @@ +export * from "./demo.multilayer_select_level_tree"; +export * from "./demo.multilayer_single_level_tree"; +export * from "./demo.select_level_tree"; +export * from "./demo.single_level_tree"; \ No newline at end of file diff --git a/demo/js/widget/year/index.js b/demo/js/widget/year/index.js new file mode 100644 index 000000000..3014c849c --- /dev/null +++ b/demo/js/widget/year/index.js @@ -0,0 +1 @@ +export * from "./demo.year"; \ No newline at end of file diff --git a/demo/js/widget/yearinterval/index.js b/demo/js/widget/yearinterval/index.js new file mode 100644 index 000000000..7fb068008 --- /dev/null +++ b/demo/js/widget/yearinterval/index.js @@ -0,0 +1 @@ +export * from "./demo.year_interval"; \ No newline at end of file diff --git a/demo/js/widget/yearmonth/index.js b/demo/js/widget/yearmonth/index.js new file mode 100644 index 000000000..9a7f8343d --- /dev/null +++ b/demo/js/widget/yearmonth/index.js @@ -0,0 +1 @@ +export * from "./demo.year_month_combo"; \ No newline at end of file diff --git a/demo/js/widget/yearmonthinterval/index.js b/demo/js/widget/yearmonthinterval/index.js new file mode 100644 index 000000000..13b3e3eeb --- /dev/null +++ b/demo/js/widget/yearmonthinterval/index.js @@ -0,0 +1 @@ +export * from "./demo.year_month_interval"; \ No newline at end of file diff --git a/demo/js/widget/yearquarter/index.js b/demo/js/widget/yearquarter/index.js new file mode 100644 index 000000000..53d2ff1bf --- /dev/null +++ b/demo/js/widget/yearquarter/index.js @@ -0,0 +1 @@ +export * from "./demo.year_quarter_combo"; \ No newline at end of file diff --git a/demo/js/widget/yearquarterinterval/index.js b/demo/js/widget/yearquarterinterval/index.js new file mode 100644 index 000000000..36d6ee029 --- /dev/null +++ b/demo/js/widget/yearquarterinterval/index.js @@ -0,0 +1 @@ +export * from "./demo.yearquarterinterval"; \ No newline at end of file diff --git a/src/core/platform/index.js b/src/core/platform/index.js new file mode 100644 index 000000000..8ae69b05a --- /dev/null +++ b/src/core/platform/index.js @@ -0,0 +1 @@ +export * from "./web"; \ No newline at end of file diff --git a/src/polyfill/index.js b/src/polyfill/index.js new file mode 100644 index 000000000..578b1573b --- /dev/null +++ b/src/polyfill/index.js @@ -0,0 +1,4 @@ +export * from "./console"; +export * from "./event"; +export * from "./number"; +export * from "./sort"; \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js new file mode 100644 index 000000000..dd7acd4c5 --- /dev/null +++ b/src/router/index.js @@ -0,0 +1,2 @@ +export * from "./0.router"; +export * from "./router"; \ No newline at end of file diff --git a/webpack/attachments.js b/webpack/attachments.js index 2611ec397..0a2e3f62d 100644 --- a/webpack/attachments.js +++ b/webpack/attachments.js @@ -13,7 +13,7 @@ const runtimePolyfill = ["@babel/polyfill", "es6-promise/auto"]; const basicAttachmentMap = { polyfill: sync([ "src/core/0.foundation.js", - "src/polyfill/*.js", + "src/polyfill/index.js", ]).concat(runtimePolyfill), core: sync([ "src/less/core/**/*.less", @@ -44,7 +44,7 @@ const basicAttachmentMap = { // "src/component/**/*.js", ]), router: sync([ - "src/router/*.js", + "src/router/index.js", ]), core_without_platform: sync([ "src/core/0.foundation.js", @@ -84,7 +84,7 @@ const basicAttachmentMap = { "src/core/2.base.js", "src/core/3.ob.js", "src/core/5.inject.js", - "src/core/utils/*.js", + "src/core/utils/index.js", "i18n/i18n.cn.js", "_mobile/date.i18n.cn.js", // "src/data/**/*.js", @@ -222,7 +222,7 @@ const fineuiWithoutJqueryAndPolyfillJs = [].concat( "src/core/index.js", // "src/data/**/*.js", ], [ - "src/core/platform/web/**/*.js", + "src/core/platform/index.js", ]), basicAttachmentMap.fix, sync([ @@ -249,7 +249,7 @@ const demo = [].concat( sync(["public/less/app.less", "public/less/**/*.less"]), [fixCompact, workerCompact], basicAttachmentMap.ts, - sync(["demo/less/*.less", "demo/less/**/*.less", "demo/app.js", "demo/js/**/*.js", "demo/config.js"]), + sync(["demo/less/*.less", "demo/less/**/*.less", "demo/app.js", "demo/js/index.js", "demo/config.js"]), ); module.exports = { diff --git a/webpack/components.js b/webpack/components.js index de4f18163..ea6530f9a 100644 --- a/webpack/components.js +++ b/webpack/components.js @@ -1,22 +1,20 @@ -const { sync, uniq } = require("./utils"); - const basicAttachmentMap = { - single: sync(["src/base/single/index.js"]), - layer: sync(["src/base/layer/index.js"]), - pane: sync(["src/base/1.pane.js"]), - button_group: sync(["src/base/combination/group.button.js"]), - buttons: sync(["src/case/button/index.js"]), - checkboxes: sync(["src/case/checkbox/index.js"]), - combos: sync(["src/case/combo/index.js"]), - editors: sync(["src/case/editor/index.js"]), - triggers: sync(["src/case/trigger/index.js"]), - calendar: sync(["src/case/calendar/index.js"]), - color_chooser: sync(["src/case/colorchooser/index.js"]), - segment: sync(["src/case/segment/index.js"]), - linear_segment: sync(["src/case/linearsegment/index.js"]), - date: sync(["src/widget/date/index.js"]), - down_list: sync(["src/widget/downlist/index.js"]), - text_value_down_list_combo: sync(["src/widget/textvaluedownlistcombo/index.js"]), + single: ["src/base/single/index.js"], + layer: ["src/base/layer/index.js"], + pane: ["src/base/1.pane.js"], + button_group: ["src/base/combination/group.button.js"], + buttons: ["src/case/button/index.js"], + checkboxes: ["src/case/checkbox/index.js"], + combos: ["src/case/combo/index.js"], + editors: ["src/case/editor/index.js"], + triggers: ["src/case/trigger/index.js"], + calendar: ["src/case/calendar/index.js"], + color_chooser: ["src/case/colorchooser/index.js"], + segment: ["src/case/segment/index.js"], + linear_segment: ["src/case/linearsegment/index.js"], + date: ["src/widget/date/index.js"], + down_list: ["src/widget/downlist/index.js"], + text_value_down_list_combo: ["src/widget/textvaluedownlistcombo/index.js"], }; module.exports = {