efront 3.24.3 → 3.24.5
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/main.js +1 -3
- package/coms/basic/submit_.js +3 -1
- package/{apps → coms}/kugou/api.js +2 -0
- package/coms/kugou/buildList.js +7 -1
- package/coms/kugou/player.js +1 -0
- package/coms/kugou/song.html +1 -1
- package/coms/kugou/song.js +1 -0
- package/coms/kugou/song.less +12 -4
- package/coms/zimoli/data.js +8 -2
- package/coms/zimoli/input.js +6 -4
- package/package.json +1 -1
- package/public/efront.js +1 -1
- package/apps/zimoli/book/main.js +0 -8
- package/apps/zimoli/broadcast/main.js +0 -8
- package/apps/zimoli/collection/add.html +0 -13
- package/apps/zimoli/collection/add.js +0 -14
- package/apps/zimoli/collection/add.less +0 -0
- package/apps/zimoli/collection/main.html +0 -0
- package/apps/zimoli/collection/main.js +0 -13
- package/apps/zimoli/collection/main.less +0 -8
- package/apps/zimoli/config.js +0 -14
- package/apps/zimoli/extra/pending.html +0 -1
- package/apps/zimoli/extra/pending.js +0 -8
- package/apps/zimoli/extra/pending.less +0 -15
- package/apps/zimoli/files/info.js +0 -7
- package/apps/zimoli/files/main.js +0 -108
- package/apps/zimoli/files/main.less +0 -26
- package/apps/zimoli/images/avatar.png +0 -0
- package/apps/zimoli/images/background.jpg +0 -0
- package/apps/zimoli/index.html +0 -42
- package/apps/zimoli/kugou/font/demo.css +0 -539
- package/apps/zimoli/kugou/font/demo_index.html +0 -1159
- package/apps/zimoli/kugou/font/iconfont.css +0 -189
- package/apps/zimoli/kugou/font/iconfont.eot +0 -0
- package/apps/zimoli/kugou/font/iconfont.js +0 -1
- package/apps/zimoli/kugou/font/iconfont.svg +0 -155
- package/apps/zimoli/kugou/font/iconfont.ttf +0 -0
- package/apps/zimoli/kugou/font/iconfont.woff +0 -0
- package/apps/zimoli/kugou/font/iconfont.woff2 +0 -0
- package/apps/zimoli/kugou/listen.html +0 -15
- package/apps/zimoli/kugou/listen.js +0 -37
- package/apps/zimoli/kugou/listen.less +0 -114
- package/apps/zimoli/kugou/mine.html +0 -53
- package/apps/zimoli/kugou/mine.js +0 -21
- package/apps/zimoli/kugou/mine.less +0 -106
- package/apps/zimoli/kugou/search.js +0 -109
- package/apps/zimoli/kugou/search.less +0 -50
- package/apps/zimoli/kugou/sing.js +0 -42
- package/apps/zimoli/kugou/sing.less +0 -93
- package/apps/zimoli/kugou/view.html +0 -39
- package/apps/zimoli/kugou/view.js +0 -17
- package/apps/zimoli/kugou/view.less +0 -84
- package/apps/zimoli/login/qq.js +0 -20
- package/apps/zimoli/login/qq_callback.html +0 -15
- package/apps/zimoli/main.js +0 -87
- package/apps/zimoli/main.less +0 -81
- package/apps/zimoli/message/chatList.js +0 -57
- package/apps/zimoli/message/chatList.less +0 -52
- package/apps/zimoli/message/commentList.js +0 -55
- package/apps/zimoli/message/commentList.less +0 -55
- package/apps/zimoli/message/informList.js +0 -69
- package/apps/zimoli/message/informList.less +0 -51
- package/apps/zimoli/message/main.js +0 -59
- package/apps/zimoli/message/main.less +0 -51
- package/apps/zimoli/message/praiseList.js +0 -3
- package/apps/zimoli/message/praiseList.less +0 -7
- package/apps/zimoli/nearby/main.js +0 -8
- package/apps/zimoli/skin/main.js +0 -47
- package/apps/zimoli/skin/main.less +0 -31
- package/apps/zimoli/user/getPassword.js +0 -82
- package/apps/zimoli/user/getPassword.less +0 -14
- package/apps/zimoli/user/login.html +0 -12
- package/apps/zimoli/user/login.js +0 -50
- package/apps/zimoli/user/login.less +0 -139
- package/apps/zimoli/user/profile-bg.jpg +0 -0
- package/apps/zimoli/user/profile.html +0 -32
- package/apps/zimoli/user/profile.js +0 -63
- package/apps/zimoli/user/profile.less +0 -50
- package/apps/zimoli/user/register.js +0 -20
- package/apps/zimoli/user/register.less +0 -3
- package/apps/zimoli/user/setting.js +0 -90
- package/apps/zimoli/user/setting.less +0 -11
- package/apps/zimoli/user/welcome.js +0 -36
- package/apps/zimoli/user/welcome.less +0 -136
- package/apps/zimoli/watch/main.html +0 -22
- package/apps/zimoli/watch/main.js +0 -76
- package/apps/zimoli/watch/main.less +0 -54
- package/apps/zimoli/yuanfen/main.js +0 -55
- package/apps/zimoli/yuanfen/main.json +0 -0
package/apps/kugou/main.js
CHANGED
package/coms/basic/submit_.js
CHANGED
|
@@ -24,10 +24,12 @@ function submit(fields, data) {
|
|
|
24
24
|
var tmp = /\:(\d+)?(?:\.(\d+))?$/.exec(f.type);
|
|
25
25
|
if (tmp) var [, , fixed] = tmp;
|
|
26
26
|
else if (/^(money|price)$/i.test(f.type)) fixed = 2;
|
|
27
|
+
else fixed = undefined;
|
|
27
28
|
fixed = +fixed;
|
|
28
29
|
if (fixed) {
|
|
29
30
|
var v = params[f.key];
|
|
30
|
-
if (v) {
|
|
31
|
+
if (!isEmpty(v)) {
|
|
32
|
+
v = String(v);
|
|
31
33
|
var d = v.replace(/^[^\.]*\.?/, '').length;
|
|
32
34
|
if (d === v.length - 1) v = "0" + v;
|
|
33
35
|
if (d > 0 && d < fixed) {
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"song-info": "get app/i/getSongInfo.php?cmd=playInfo&from=mkugou&hash",
|
|
4
4
|
"slider-src": "get:[].mod-slider>.swipe-wrap>div .#src=img!src&href=a!href",
|
|
5
5
|
"songs-list": "get:[].panel-songslist%20li .#hash=!id&.panel-songs-item-name>span!innerText",
|
|
6
|
+
"songs-list": "get:[].m_cm_item1warp:nth-child(2)>div .#=a!href\\song-mix&a:nth-child(2)>p:first-child!innerText&singer=a:nth-child(2)>p:nth-child(2)!innerText&imgurl=img!_src",
|
|
7
|
+
"song-mix;": "mget:script:nth-last-child(2) mixsong/:hashid.html",
|
|
6
8
|
"rank-list": "get:[].panel-img-list%20li rank/list#href=a!href&=a!href\\rank-info&imgurl=img!_src&name=p|innerText",
|
|
7
9
|
"rank-info": "get:[].panel-songslist%20li rank/info/:id#src=!id&name=.panel-songs-item-name|innerText&data=.panel-songs-item-download/innerText",
|
|
8
10
|
"plist-index": "get:[].panel-img-list%20li plist/index#href=a!href&=a!href\\plist-info&imgurl=img!_src&name=.panel-img-content-first|innerText&count=.panel-img-content-sub|innerText",
|
package/coms/kugou/buildList.js
CHANGED
|
@@ -7,7 +7,13 @@ function main(dataid, datapath) {
|
|
|
7
7
|
song,
|
|
8
8
|
loading,
|
|
9
9
|
musicList,
|
|
10
|
-
run(s) {
|
|
10
|
+
async run(s) {
|
|
11
|
+
if (!s.hash && s.hashid) {
|
|
12
|
+
await data.from("song-mix", s, function (a) {
|
|
13
|
+
var m = a.innerText.match(/(['"`]?)hash\1\s*:\s*(["'`])(.*?)\2/);
|
|
14
|
+
if (m) s.hash = m[3];
|
|
15
|
+
});
|
|
16
|
+
}
|
|
11
17
|
if (s.hash) {
|
|
12
18
|
kugou$player.play(s.hash);
|
|
13
19
|
} else {
|
package/coms/kugou/player.js
CHANGED
package/coms/kugou/song.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div class="bg"></div>
|
|
2
2
|
<png class="logo" ng-if="song.imgurl" ng-src=song.imgurl></png>
|
|
3
|
+
<div class="singer" ng-if="song.singer" ng-model=song.singerMarked></div>
|
|
3
4
|
<div class="song" ng-model=song.songMarked></div>
|
|
4
|
-
<div class="singer" ng-model=song.singerMarked></div>
|
|
5
5
|
<div class="filterTime(song.timeLength)"></div>
|
|
6
6
|
<div refresh class="play-state" ng-if="song.hash===musicList.active_hash" ng-class={error:playState.error}>
|
|
7
7
|
<div ng-style="{width:playState.width}"></div>
|
package/coms/kugou/song.js
CHANGED
package/coms/kugou/song.less
CHANGED
|
@@ -24,19 +24,23 @@
|
|
|
24
24
|
width: 40px;
|
|
25
25
|
margin: -6px -4px;
|
|
26
26
|
|
|
27
|
+
&+.singer+.song,
|
|
27
28
|
&+.song {
|
|
28
29
|
margin-left: -38px;
|
|
29
30
|
padding-left: 46px;
|
|
30
|
-
line-height: 30px;
|
|
31
31
|
display: inline-block;
|
|
32
32
|
vertical-align: top;
|
|
33
|
+
|
|
33
34
|
}
|
|
35
|
+
|
|
36
|
+
&+.singer {
|
|
37
|
+
padding-left: 46px;
|
|
38
|
+
}
|
|
39
|
+
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
>.song {
|
|
37
|
-
|
|
38
|
-
overflow: hidden;
|
|
39
|
-
text-overflow: ellipsis;
|
|
43
|
+
line-height: 30px;
|
|
40
44
|
}
|
|
41
45
|
|
|
42
46
|
b {
|
|
@@ -56,6 +60,10 @@ b {
|
|
|
56
60
|
line-height: 12px;
|
|
57
61
|
font-size: 12px;
|
|
58
62
|
color: #888;
|
|
63
|
+
|
|
64
|
+
&+.song {
|
|
65
|
+
padding-top: 6px;
|
|
66
|
+
}
|
|
59
67
|
}
|
|
60
68
|
|
|
61
69
|
>.play-state {
|
package/coms/zimoli/data.js
CHANGED
|
@@ -268,8 +268,7 @@ function parseConfig(api) {
|
|
|
268
268
|
var required = [];
|
|
269
269
|
var prepared = [];
|
|
270
270
|
var autotrim = false;
|
|
271
|
-
|
|
272
|
-
id = id.replace(/[\?\|\:;](.+?)$/, function (m, s) {
|
|
271
|
+
id = id.replace(/[\?\|\:;](.*?)$/, function (m, s) {
|
|
273
272
|
autotrim = /^[\|;]/.test(m);
|
|
274
273
|
if (/^[\|\/]/.test(s)) autotrim = true, s = s.slice(1);
|
|
275
274
|
s = s.split('&');
|
|
@@ -709,6 +708,13 @@ var data = {
|
|
|
709
708
|
data = this.parseConfig(data);
|
|
710
709
|
configPormise = Promise.resolve(data);
|
|
711
710
|
},
|
|
711
|
+
async addConfig(data) {
|
|
712
|
+
var p = configPormise;
|
|
713
|
+
var c = await p;
|
|
714
|
+
if (p !== configPormise) return;
|
|
715
|
+
data = this.parseConfig(data);
|
|
716
|
+
extend(c, data);
|
|
717
|
+
},
|
|
712
718
|
getConfig() {
|
|
713
719
|
return privates.getConfigPromise();
|
|
714
720
|
},
|
package/coms/zimoli/input.js
CHANGED
|
@@ -67,10 +67,12 @@ var number = function (event) {
|
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
var toFixed = function () {
|
|
70
|
-
if (this.value && this.fixed)
|
|
71
|
-
|
|
72
|
-
this.value
|
|
73
|
-
|
|
70
|
+
if (this.value && this.fixed) {
|
|
71
|
+
var fixed = BigNumber.fix(this.value, this.fixed);
|
|
72
|
+
if (this.value !== fixed) {
|
|
73
|
+
this.value = fixed;
|
|
74
|
+
dispatch(this, 'change');
|
|
75
|
+
}
|
|
74
76
|
}
|
|
75
77
|
};
|
|
76
78
|
var positiveReg = /^\+|^positive\-?|\-?positive$|\+$/i;
|