efront 4.19.6 → 4.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/apps/kugou/singer/keywords.less +5 -1
  2. package/apps/kugou/song/list.jsp +14 -0
  3. package/apps/kugou/song//347/233/227/345/260/206/350/241/214 - /350/212/261/347/262/245,/351/251/254/351/233/250/351/230/263.krc +0 -0
  4. package/coms/basic/Table.js +4 -3
  5. package/coms/basic/data.js +19 -7
  6. package/coms/basic/isSubpath.js +33 -0
  7. package/coms/basic/mark.js +47 -14
  8. package/coms/basic/mark_test.js +8 -0
  9. package/coms/basic/spaces.js +8 -0
  10. package/coms/compile/Html.js +32 -1
  11. package/coms/compile/Html_test.js +3 -1
  12. package/coms/compile/common.js +8 -3
  13. package/coms/explorer/edit.js +1 -1
  14. package/coms/kugou/bg.less +2 -2
  15. package/coms/kugou/dance.js +1 -1
  16. package/coms/kugou/krc.js +61 -34
  17. package/coms/kugou/krc.less +1 -0
  18. package/coms/kugou/krc_parse.js +56 -0
  19. package/coms/kugou/krc_stringify.js +16 -0
  20. package/coms/kugou/musicList.js +1 -1
  21. package/coms/kugou/parseSongsList.js +1 -1
  22. package/coms/kugou/playList.html +3 -2
  23. package/coms/kugou/playList.less +5 -0
  24. package/coms/kugou/player.html +1 -0
  25. package/coms/kugou/player.js +40 -32
  26. package/coms/kugou/player.less +125 -34
  27. package/coms/kugou/song.html +4 -4
  28. package/coms/kugou/song.js +1 -0
  29. package/coms/kugou/song.less +77 -26
  30. package/coms/kugou/titlebar.less +3 -0
  31. package/coms/kugou//346/255/214/350/257/215/347/274/226/350/276/221/345/231/250.xht +153 -0
  32. package/coms/zimoli/button.js +3 -76
  33. package/coms/zimoli/button.less +1 -3
  34. package/coms/zimoli/confirm.js +4 -3
  35. package/coms/zimoli/img.less +1 -0
  36. package/coms/zimoli/menu.less +0 -4
  37. package/coms/zimoli/menuItem.html +1 -1
  38. package/coms/zimoli/on.js +18 -0
  39. package/coms/zimoli/once.js +7 -1
  40. package/coms/zimoli/onmounted.js +1 -13
  41. package/coms/zimoli/patchHover.js +74 -0
  42. package/coms/zimoli/popup.js +16 -0
  43. package/coms/zimoli/prompt.js +8 -2
  44. package/coms/zimoli/render.js +6 -2
  45. package/coms/zimoli/slider.js +1 -0
  46. package/coms/zimoli/textarea.less +1 -0
  47. package/coms/zimoli/touchList.js +1 -0
  48. package/coms/zimoli/view.js +0 -6
  49. package/coms/zimoli/vscroll.js +2 -1
  50. package/coms/zimoli/zimoli.js +11 -10
  51. package/package.json +2 -2
  52. package/public/efront.js +1 -1
  53. package/readme.md +1 -1
@@ -147,7 +147,7 @@ function go(pagepath, args, history_name, oldpagepath) {
147
147
  var fullfill = function () {
148
148
  zimoliad = zimoliid;
149
149
  var _page = create(pgpath, args, oldpagepath);
150
- var isDestroy = pushstate(pagepath, history_name, oldpagepath);
150
+ var isRecover = pushstate(pagepath, history_name, oldpagepath);
151
151
  if (isNode(history_name)) {
152
152
  if (history_name.activate === pagepath && history_name.activateNode === _page) return fullfill_is_dispatched--;
153
153
  else remove(history_name.activateNode);
@@ -170,7 +170,8 @@ function go(pagepath, args, history_name, oldpagepath) {
170
170
  dispatch(document, event);
171
171
  fullfill_is_dispatched = 0;
172
172
  }
173
- addGlobal(_page, history_name, isDestroy);
173
+ if (isRecover) setWithStyle(_page, false);
174
+ addGlobal(_page, history_name, isRecover);
174
175
  page_object.prepares.splice(0, page_object.prepares.length).forEach(function (url) {
175
176
  if (isNumber(url)) {
176
177
  url = _history[url < 1 ? _history.length + url - 1 : url];
@@ -478,7 +479,7 @@ try {
478
479
  }
479
480
  var root_path;
480
481
  var pushstate = function (path_name, history_name) {
481
- var isDestroy = false;
482
+ var isBack = false;
482
483
  if (history_name === undefined) {
483
484
  history_name = current_history;
484
485
  }
@@ -490,7 +491,7 @@ var pushstate = function (path_name, history_name) {
490
491
  for (var cx = 0, dx = _history.length; cx < dx; cx++) {
491
492
  if (_history[cx] === path_name) {
492
493
  _history.splice(cx, dx - cx);
493
- isDestroy = true;
494
+ isBack = cx < dx - 1;
494
495
  break;
495
496
  }
496
497
  }
@@ -498,7 +499,7 @@ var pushstate = function (path_name, history_name) {
498
499
  if (_history.length) fixurl();
499
500
  }
500
501
  hostoryStorage.setItem(history_session_object_key, JSAM.stringify(history) || null);
501
- return isDestroy;
502
+ return isBack;
502
503
  };
503
504
  var popstate = function (path_name, history_name) {
504
505
  if (history_name === undefined) history_name = current_history;
@@ -592,17 +593,17 @@ function setWithStyle(target, isDestroy) {
592
593
  }
593
594
 
594
595
  }
595
- function addGlobal(element, name = null, isDestroy) {
596
+ function addGlobal(element, name = null, isBack) {
596
597
  if (isString(name)) {
597
598
  if (global[name] === element) return;
598
599
  var oldElement = global[name];
599
600
  if (oldElement) {
600
- setWithStyle(oldElement, isDestroy);
601
+ setWithStyle(oldElement, isBack);
601
602
  }
602
603
  if (isFunction(body.layer)) {
603
604
  body.layer(element, oldElement, history);
604
605
  } else if (body !== element) {
605
- if (isDestroy || !oldElement) appendChild.insert(body, element);
606
+ if (isBack || !oldElement) appendChild.insert(body, element);
606
607
  else appendChild.after(oldElement, element);
607
608
  remove(oldElement);
608
609
  }
@@ -613,7 +614,7 @@ function addGlobal(element, name = null, isDestroy) {
613
614
  appendChild.after(name, element);
614
615
  name.with = [element];
615
616
  }
616
- else if (isDestroy) appendChild.insert(name, element);
617
+ else if (isBack) appendChild.insert(name, element);
617
618
  else appendChild(name, element);
618
619
  } else if (isFunction(name)) {
619
620
  name(element);
@@ -621,7 +622,7 @@ function addGlobal(element, name = null, isDestroy) {
621
622
  if (isFunction(body.layer)) {
622
623
  body.layer(element);
623
624
  } else {
624
- if (isDestroy) appendChild.insert(body, element);
625
+ if (isBack) appendChild.insert(body, element);
625
626
  else appendChild(body, element);
626
627
  }
627
628
  rootElements.push(element);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "4.19.6",
4
- "description": "一个开发环境,提供前端开发所需的各种功能。此项目不依赖vue和angular的基础库,却同样提供了对vue/angular的语法的支持,像v-if/v-else,ng-if,v-show,ng-model,v-bind,ng-bind,@click,ng-click等可在同一个文件中使用,另外组件可以拆分成脚本、样式、模板分三个文件保存,也可以合并成一个文件保存,这取决于使用者的偏好,而不是冷冰冰的硬性规定。像vue3中直接绑定变量,vue2绑定的却是data中的数据,这种vue不同版本不兼容的问题,efront同时兼容两种绑定方式,同样取决于使用者的喜好,而不是框架作者的喜好。",
3
+ "version": "4.20.0",
4
+ "description": "一个开发环境,提供一种自由的前端开发模式,也可作为辅助工具使用。",
5
5
  "main": "public/efront.js",
6
6
  "directories": {
7
7
  "test": "test"