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.
- package/apps/kugou/singer/keywords.less +5 -1
- package/apps/kugou/song/list.jsp +14 -0
- 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
- package/coms/basic/Table.js +4 -3
- package/coms/basic/data.js +19 -7
- package/coms/basic/isSubpath.js +33 -0
- package/coms/basic/mark.js +47 -14
- package/coms/basic/mark_test.js +8 -0
- package/coms/basic/spaces.js +8 -0
- package/coms/compile/Html.js +32 -1
- package/coms/compile/Html_test.js +3 -1
- package/coms/compile/common.js +8 -3
- package/coms/explorer/edit.js +1 -1
- package/coms/kugou/bg.less +2 -2
- package/coms/kugou/dance.js +1 -1
- package/coms/kugou/krc.js +61 -34
- package/coms/kugou/krc.less +1 -0
- package/coms/kugou/krc_parse.js +56 -0
- package/coms/kugou/krc_stringify.js +16 -0
- package/coms/kugou/musicList.js +1 -1
- package/coms/kugou/parseSongsList.js +1 -1
- package/coms/kugou/playList.html +3 -2
- package/coms/kugou/playList.less +5 -0
- package/coms/kugou/player.html +1 -0
- package/coms/kugou/player.js +40 -32
- package/coms/kugou/player.less +125 -34
- package/coms/kugou/song.html +4 -4
- package/coms/kugou/song.js +1 -0
- package/coms/kugou/song.less +77 -26
- package/coms/kugou/titlebar.less +3 -0
- package/coms/kugou//346/255/214/350/257/215/347/274/226/350/276/221/345/231/250.xht +153 -0
- package/coms/zimoli/button.js +3 -76
- package/coms/zimoli/button.less +1 -3
- package/coms/zimoli/confirm.js +4 -3
- package/coms/zimoli/img.less +1 -0
- package/coms/zimoli/menu.less +0 -4
- package/coms/zimoli/menuItem.html +1 -1
- package/coms/zimoli/on.js +18 -0
- package/coms/zimoli/once.js +7 -1
- package/coms/zimoli/onmounted.js +1 -13
- package/coms/zimoli/patchHover.js +74 -0
- package/coms/zimoli/popup.js +16 -0
- package/coms/zimoli/prompt.js +8 -2
- package/coms/zimoli/render.js +6 -2
- package/coms/zimoli/slider.js +1 -0
- package/coms/zimoli/textarea.less +1 -0
- package/coms/zimoli/touchList.js +1 -0
- package/coms/zimoli/view.js +0 -6
- package/coms/zimoli/vscroll.js +2 -1
- package/coms/zimoli/zimoli.js +11 -10
- package/package.json +2 -2
- package/public/efront.js +1 -1
- package/readme.md +1 -1
package/coms/zimoli/zimoli.js
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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,
|
|
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,
|
|
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 (
|
|
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 (
|
|
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 (
|
|
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.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "4.20.0",
|
|
4
|
+
"description": "一个开发环境,提供一种自由的前端开发模式,也可作为辅助工具使用。",
|
|
5
5
|
"main": "public/efront.js",
|
|
6
6
|
"directories": {
|
|
7
7
|
"test": "test"
|