Browse Source

整理整理代码

es6
guy 4 years ago
parent
commit
dd0ee310cb
  1. 23
      karma.conf.js
  2. 0
      src/base/0.base.js
  3. 0
      src/base/1.pane.js
  4. 0
      src/base/single/0.single.js
  5. 0
      src/base/single/1.text.js
  6. 0
      src/base/single/tip/0.tip.js
  7. 0
      src/case/ztree/0.treeview.js
  8. 0
      src/case/ztree/1.asynctree.js
  9. 0
      src/case/ztree/jquery.ztree.core-3.5.js
  10. 0
      src/case/ztree/jquery.ztree.excheck-3.5.js
  11. 0
      src/case/ztree/list/0.listtreeview.js
  12. 0
      src/case/ztree/list/1.listasynctree.js
  13. 0
      src/case/ztree/list/listparttree.js
  14. 0
      src/case/ztree/parttree.js
  15. 0
      src/case/ztree/tree.display.js
  16. 0
      src/case/ztree/tree.list.display.js
  17. 0
      src/case/ztree/tree.simple.js
  18. 0
      src/case/ztree/treerender.scroll.service.js
  19. 0
      src/case/ztree/treetrender.page.service.js
  20. 0
      src/core/0.foundation.js
  21. 0
      src/core/1.lodash.js
  22. 0
      src/core/2.base.js
  23. 0
      src/core/3.ob.js
  24. 0
      src/core/4.widget.js
  25. 0
      src/core/5.shortcut.js
  26. 0
      src/core/6.inject.js
  27. 0
      src/core/7.plugin.js
  28. 0
      src/core/behavior/0.behavior.js
  29. 0
      src/core/constant/date.i18n.js
  30. 0
      src/core/constant/events.js
  31. 0
      src/core/constant/var.js
  32. 0
      src/core/controller/0.controller.js
  33. 0
      src/core/func/alias.js
  34. 0
      src/core/structure/aes.js
  35. 0
      src/core/structure/aspect.js
  36. 0
      src/core/structure/base64.js
  37. 0
      src/core/structure/cache.js
  38. 0
      src/core/structure/cellSizeAndPositionManager.js
  39. 0
      src/core/structure/heap.js
  40. 0
      src/core/structure/linkedHashMap.js
  41. 0
      src/core/structure/lru.js
  42. 0
      src/core/structure/prefixIntervalTree.js
  43. 0
      src/core/structure/queue.js
  44. 0
      src/core/structure/sectionManager.js
  45. 0
      src/core/structure/tree.js
  46. 0
      src/core/structure/vector.js
  47. 0
      src/core/utils/events/eventlistener.js
  48. 0
      src/core/utils/i18n.js
  49. 84
      webpack/attachments.js

23
karma.conf.js

@ -20,17 +20,6 @@ module.exports = function (config) {
// list of files / patterns to load in the browser // list of files / patterns to load in the browser
files: [ files: [
"dist/fineui.min.css", "dist/fineui.min.css",
"src/core/foundation.js",
"src/core/lodash.js",
"src/core/base.js",
"i18n/i18n.cn.js",
"src/core/ob.js",
"src/core/widget.js",
"src/core/shortcut.js",
"src/core/utils/**/*.js",
"src/core/behavior/behavior.js",
"src/core/wrapper/layout.js",
"src/core/plugin.js",
"src/core/**/*.js", "src/core/**/*.js",
"src/data/**/*.js", "src/data/**/*.js",
"src/data/**/*.js", "src/data/**/*.js",
@ -44,12 +33,12 @@ module.exports = function (config) {
"src/base/single/tip/tip.js", "src/base/single/tip/tip.js",
"src/base/combination/group.button.js", "src/base/combination/group.button.js",
"src/base/combination/tree.button.js", "src/base/combination/tree.button.js",
"src/base/tree/ztree/treeview.js", "src/base/platform/web/ztree/treeview.js",
"src/base/tree/ztree/asynctree.js", "src/base/platform/web/ztree/asynctree.js",
"src/base/tree/ztree/parttree.js", "src/case/ztree/parttree.js",
"src/base/tree/ztree/list/listtreeview.js", "src/case/ztree/list/listtreeview.js",
"src/base/tree/ztree/list/listasynctree.js", "src/case/ztree/list/listasynctree.js",
"src/base/tree/ztree/list/listparttree.js", "src/case/ztree/list/listparttree.js",
"src/base/**/*.js", "src/base/**/*.js",
"src/case/**/*.js", "src/case/**/*.js",
"src/widget/**/*.js", "src/widget/**/*.js",

0
src/base/base.js → src/base/0.base.js

0
src/base/pane.js → src/base/1.pane.js

0
src/base/single/single.js → src/base/single/0.single.js

0
src/base/single/text.js → src/base/single/1.text.js

0
src/base/single/tip/tip.js → src/base/single/tip/0.tip.js

0
src/base/tree/ztree/treeview.js → src/case/ztree/0.treeview.js

0
src/base/tree/ztree/asynctree.js → src/case/ztree/1.asynctree.js

0
src/base/tree/ztree/jquery.ztree.core-3.5.js → src/case/ztree/jquery.ztree.core-3.5.js

0
src/base/tree/ztree/jquery.ztree.excheck-3.5.js → src/case/ztree/jquery.ztree.excheck-3.5.js

0
src/base/tree/ztree/list/listtreeview.js → src/case/ztree/list/0.listtreeview.js

0
src/base/tree/ztree/list/listasynctree.js → src/case/ztree/list/1.listasynctree.js

0
src/base/tree/ztree/list/listparttree.js → src/case/ztree/list/listparttree.js

0
src/base/tree/ztree/parttree.js → src/case/ztree/parttree.js

0
src/case/tree/ztree/tree.display.js → src/case/ztree/tree.display.js

0
src/case/tree/ztree/tree.list.display.js → src/case/ztree/tree.list.display.js

0
src/case/tree/ztree/tree.simple.js → src/case/ztree/tree.simple.js

0
src/base/tree/ztree/treerender.scroll.service.js → src/case/ztree/treerender.scroll.service.js

0
src/base/tree/ztree/treetrender.page.service.js → src/case/ztree/treetrender.page.service.js

0
src/core/foundation.js → src/core/0.foundation.js vendored

0
src/core/lodash.js → src/core/1.lodash.js

0
src/core/base.js → src/core/2.base.js

0
src/core/ob.js → src/core/3.ob.js

0
src/core/widget.js → src/core/4.widget.js

0
src/core/shortcut.js → src/core/5.shortcut.js

0
src/core/inject.js → src/core/6.inject.js

0
src/core/plugin.js → src/core/7.plugin.js

0
src/core/behavior/behavior.js → src/core/behavior/0.behavior.js

0
src/core/func/date.i18n.js → src/core/constant/date.i18n.js

0
src/core/events.js → src/core/constant/events.js

0
src/core/var.js → src/core/constant/var.js

0
src/core/controller.js → src/core/controller/0.controller.js

0
src/core/alias.js → src/core/func/alias.js

0
src/core/utils/aes.js → src/core/structure/aes.js

0
src/core/utils/aspect.js → src/core/structure/aspect.js

0
src/core/utils/base64.js → src/core/structure/base64.js

0
src/core/utils/cache.js → src/core/structure/cache.js

0
src/core/utils/cellSizeAndPositionManager.js → src/core/structure/cellSizeAndPositionManager.js

0
src/core/utils/heap.js → src/core/structure/heap.js

0
src/core/utils/linkedHashMap.js → src/core/structure/linkedHashMap.js

0
src/core/utils/lru.js → src/core/structure/lru.js

0
src/core/utils/prefixIntervalTree.js → src/core/structure/prefixIntervalTree.js

0
src/core/utils/queue.js → src/core/structure/queue.js

0
src/core/utils/sectionManager.js → src/core/structure/sectionManager.js

0
src/core/utils/tree.js → src/core/structure/tree.js

0
src/core/utils/vector.js → src/core/structure/vector.js

0
src/core/platform/web/eventlistener.js → src/core/utils/events/eventlistener.js

0
src/core/i18n.js → src/core/utils/i18n.js

84
webpack/attachments.js

@ -13,11 +13,11 @@ const fixIEJs = "./dist/fix/fix.ie.js";
const fixCompact = "./dist/fix/fix.compact.js"; const fixCompact = "./dist/fix/fix.compact.js";
const fixIECompact = './dist/fix/fix.compact.ie.js'; const fixIECompact = './dist/fix/fix.compact.ie.js';
const workerCompact = './dist/fix/worker.compact.js'; const workerCompact = './dist/fix/worker.compact.js';
const lodashJs = "src/core/lodash.js"; const lodashJs = "src/core/1.lodash.js";
const basicAttachmentMap = { const basicAttachmentMap = {
polyfill: sync(["src/core/foundation.js", "src/polyfill/**/*.js"]).concat(["@babel/polyfill", "es6-promise/auto"]), polyfill: sync(["src/core/0.foundation.js", "src/polyfill/**/*.js"]).concat(["@babel/polyfill", "es6-promise/auto"]),
polyfillIE: sync(["src/core/foundation.js", "src/polyfill/**/*.js"]).concat([ polyfillIE: sync(["src/core/0.foundation.js", "src/polyfill/**/*.js"]).concat([
"core-js/features/object/define-property", "core-js/features/object/define-property",
"core-js/features/object/create", "core-js/features/object/create",
"core-js/features/object/assign", "core-js/features/object/assign",
@ -34,46 +34,18 @@ const basicAttachmentMap = {
core: sync([ core: sync([
"src/less/core/**/*.less", "src/less/core/**/*.less",
"src/less/theme/**/*.less", "src/less/theme/**/*.less",
"src/core/foundation.js",
lodashJs, lodashJs,
// 'src/core/mvc/**/*.js',
"src/core/base.js",
"src/core/ob.js",
"src/core/widget.js",
// 'src/core/model.js',
// 'src/core/view.js',
"src/core/shortcut.js",
"src/core/utils/**/*.js",
"src/core/behavior/behavior.js",
"src/core/wrapper/layout.js",
"src/core/plugin.js",
"src/core/**/*.js", "src/core/**/*.js",
"src/data/data.js",
"src/data/**/*.js", "src/data/**/*.js",
]), ]),
// 最基础的控件 // 最基础的控件
base: sync([ base: sync([
"src/less/base/**/*.less", "src/less/base/**/*.less",
"src/third/**/*.js", "src/third/**/*.js",
"src/base/pane.js",
"src/base/single/single.js",
"src/base/single/text.js",
"src/base/single/button/button.basic.js",
"src/base/single/button/button.node.js",
"src/base/single/tip/tip.js",
"src/base/combination/group.button.js",
"src/base/combination/tree.button.js",
"src/base/tree/ztree/treeview.js",
"src/base/tree/ztree/asynctree.js",
"src/base/tree/ztree/parttree.js",
"src/base/tree/ztree/list/listtreeview.js",
"src/base/tree/ztree/list/listasynctree.js",
"src/base/tree/ztree/list/listparttree.js",
"src/base/**/*.js", "src/base/**/*.js",
]), ]),
// 实现好的一些基础实例 // 实现好的一些基础实例
case: sync([ case: sync([
"src/case/combo/popup.bubble.js",
"src/case/**/*.js", "src/case/**/*.js",
]), ]),
widget: sync([ widget: sync([
@ -97,23 +69,16 @@ const basicAttachmentMap = {
]), ]),
config: sync(["demo/version.js", "i18n/i18n.cn.js"]), config: sync(["demo/version.js", "i18n/i18n.cn.js"]),
utils: sync([ utils: sync([
"src/core/foundation.js", "src/core/0.foundation.js",
lodashJs, lodashJs,
"src/core/var.js", "src/core/constant/**/*.js",
"src/core/func/array.js", "src/core/func/**/*.js",
"src/core/func/number.js", "src/core/2.base.js",
"src/core/func/string.js", "src/core/3.ob.js",
"src/core/func/date.js", "src/core/6.inject.js",
"src/core/func/function.js",
"src/core/base.js",
"src/core/ob.js",
"src/core/alias.js",
"src/core/inject.js",
"src/core/i18n.js",
"src/core/utils/*.js", "src/core/utils/*.js",
"i18n/i18n.cn.js", "i18n/i18n.cn.js",
"_mobile/date.i18n.cn.js", "_mobile/date.i18n.cn.js",
"src/data/data.js",
"src/data/**/*.js", "src/data/**/*.js",
]), ]),
fix: [fixJs], fix: [fixJs],
@ -205,38 +170,15 @@ const fineuiWithoutJqueryAndPolyfillJs = [].concat(
sync([ sync([
"src/core/foundation.js", "src/core/foundation.js",
lodashJs, lodashJs,
// 'src/core/mvc/**/*.js',
"src/core/base.js",
"src/core/ob.js",
"src/core/widget.js",
// 'src/core/model.js',
// 'src/core/view.js',
"src/core/shortcut.js",
"src/core/utils/*.js",
"src/core/behavior/behavior.js",
"src/core/wrapper/layout.js",
"src/core/plugin.js",
"src/core/**/*.js", "src/core/**/*.js",
"!src/core/platform/web/**/*.js",
"src/data/data.js",
"src/data/**/*.js", "src/data/**/*.js",
"dist/fix/fix.js", "dist/fix/fix.js",
"src/base/pane.js",
"src/base/single/single.js",
"src/base/single/text.js",
"src/base/single/button/button.basic.js",
"src/base/single/button/button.node.js",
"src/base/single/tip/tip.js",
"src/base/combination/group.button.js",
"src/base/combination/tree.button.js",
"src/base/combination/map.button.js",
"src/base/**/*.js", "src/base/**/*.js",
"!src/base/tree/ztree/**/*.js",
"!src/base/single/input/file.js",
"src/case/combo/popup.bubble.js",
"src/case/**/*.js", "src/case/**/*.js",
"!src/case/colorchooser/**/*.js",
"!src/case/tree/ztree/**/*.js", "!src/core/platform/web/**/*.js",
"!src/base/single/input/file.js",
"!src/case/ztree/**/*.js",
]), ]),
basicAttachmentMap.widget, basicAttachmentMap.widget,
sync([fixCompact, workerCompact, "ui/js/**/*.js"]), sync([fixCompact, workerCompact, "ui/js/**/*.js"]),

Loading…
Cancel
Save