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.
Files changed (89) hide show
  1. package/apps/kugou/main.js +1 -3
  2. package/coms/basic/submit_.js +3 -1
  3. package/{apps → coms}/kugou/api.js +2 -0
  4. package/coms/kugou/buildList.js +7 -1
  5. package/coms/kugou/player.js +1 -0
  6. package/coms/kugou/song.html +1 -1
  7. package/coms/kugou/song.js +1 -0
  8. package/coms/kugou/song.less +12 -4
  9. package/coms/zimoli/data.js +8 -2
  10. package/coms/zimoli/input.js +6 -4
  11. package/package.json +1 -1
  12. package/public/efront.js +1 -1
  13. package/apps/zimoli/book/main.js +0 -8
  14. package/apps/zimoli/broadcast/main.js +0 -8
  15. package/apps/zimoli/collection/add.html +0 -13
  16. package/apps/zimoli/collection/add.js +0 -14
  17. package/apps/zimoli/collection/add.less +0 -0
  18. package/apps/zimoli/collection/main.html +0 -0
  19. package/apps/zimoli/collection/main.js +0 -13
  20. package/apps/zimoli/collection/main.less +0 -8
  21. package/apps/zimoli/config.js +0 -14
  22. package/apps/zimoli/extra/pending.html +0 -1
  23. package/apps/zimoli/extra/pending.js +0 -8
  24. package/apps/zimoli/extra/pending.less +0 -15
  25. package/apps/zimoli/files/info.js +0 -7
  26. package/apps/zimoli/files/main.js +0 -108
  27. package/apps/zimoli/files/main.less +0 -26
  28. package/apps/zimoli/images/avatar.png +0 -0
  29. package/apps/zimoli/images/background.jpg +0 -0
  30. package/apps/zimoli/index.html +0 -42
  31. package/apps/zimoli/kugou/font/demo.css +0 -539
  32. package/apps/zimoli/kugou/font/demo_index.html +0 -1159
  33. package/apps/zimoli/kugou/font/iconfont.css +0 -189
  34. package/apps/zimoli/kugou/font/iconfont.eot +0 -0
  35. package/apps/zimoli/kugou/font/iconfont.js +0 -1
  36. package/apps/zimoli/kugou/font/iconfont.svg +0 -155
  37. package/apps/zimoli/kugou/font/iconfont.ttf +0 -0
  38. package/apps/zimoli/kugou/font/iconfont.woff +0 -0
  39. package/apps/zimoli/kugou/font/iconfont.woff2 +0 -0
  40. package/apps/zimoli/kugou/listen.html +0 -15
  41. package/apps/zimoli/kugou/listen.js +0 -37
  42. package/apps/zimoli/kugou/listen.less +0 -114
  43. package/apps/zimoli/kugou/mine.html +0 -53
  44. package/apps/zimoli/kugou/mine.js +0 -21
  45. package/apps/zimoli/kugou/mine.less +0 -106
  46. package/apps/zimoli/kugou/search.js +0 -109
  47. package/apps/zimoli/kugou/search.less +0 -50
  48. package/apps/zimoli/kugou/sing.js +0 -42
  49. package/apps/zimoli/kugou/sing.less +0 -93
  50. package/apps/zimoli/kugou/view.html +0 -39
  51. package/apps/zimoli/kugou/view.js +0 -17
  52. package/apps/zimoli/kugou/view.less +0 -84
  53. package/apps/zimoli/login/qq.js +0 -20
  54. package/apps/zimoli/login/qq_callback.html +0 -15
  55. package/apps/zimoli/main.js +0 -87
  56. package/apps/zimoli/main.less +0 -81
  57. package/apps/zimoli/message/chatList.js +0 -57
  58. package/apps/zimoli/message/chatList.less +0 -52
  59. package/apps/zimoli/message/commentList.js +0 -55
  60. package/apps/zimoli/message/commentList.less +0 -55
  61. package/apps/zimoli/message/informList.js +0 -69
  62. package/apps/zimoli/message/informList.less +0 -51
  63. package/apps/zimoli/message/main.js +0 -59
  64. package/apps/zimoli/message/main.less +0 -51
  65. package/apps/zimoli/message/praiseList.js +0 -3
  66. package/apps/zimoli/message/praiseList.less +0 -7
  67. package/apps/zimoli/nearby/main.js +0 -8
  68. package/apps/zimoli/skin/main.js +0 -47
  69. package/apps/zimoli/skin/main.less +0 -31
  70. package/apps/zimoli/user/getPassword.js +0 -82
  71. package/apps/zimoli/user/getPassword.less +0 -14
  72. package/apps/zimoli/user/login.html +0 -12
  73. package/apps/zimoli/user/login.js +0 -50
  74. package/apps/zimoli/user/login.less +0 -139
  75. package/apps/zimoli/user/profile-bg.jpg +0 -0
  76. package/apps/zimoli/user/profile.html +0 -32
  77. package/apps/zimoli/user/profile.js +0 -63
  78. package/apps/zimoli/user/profile.less +0 -50
  79. package/apps/zimoli/user/register.js +0 -20
  80. package/apps/zimoli/user/register.less +0 -3
  81. package/apps/zimoli/user/setting.js +0 -90
  82. package/apps/zimoli/user/setting.less +0 -11
  83. package/apps/zimoli/user/welcome.js +0 -36
  84. package/apps/zimoli/user/welcome.less +0 -136
  85. package/apps/zimoli/watch/main.html +0 -22
  86. package/apps/zimoli/watch/main.js +0 -76
  87. package/apps/zimoli/watch/main.less +0 -54
  88. package/apps/zimoli/yuanfen/main.js +0 -55
  89. package/apps/zimoli/yuanfen/main.json +0 -0
@@ -1,6 +1,4 @@
1
- init('/api',function(jsondata){
2
- data.setConfig(jsondata);
3
- });
1
+ data.setConfig(api);
4
2
  zimoli.switch("", null, "/home");
5
3
  css("body", "background-color:#f2f4f6;");
6
4
  zimoli();
@@ -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",
@@ -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 {
@@ -179,6 +179,7 @@ var $scope = {
179
179
  cast($scope.dance, buf);
180
180
  }
181
181
  },
182
+ playid: 0,
182
183
  play(hash = musicList.active_hash) {
183
184
  render.refresh();
184
185
  var isPlayback = typeof hash === "number";
@@ -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>
@@ -21,6 +21,7 @@ function main(elem) {
21
21
  $scope.song = {
22
22
  hash: item.hash,
23
23
  imgurl: item.imgurl,
24
+ singer: singerName,
24
25
  songMarked: mark(songName, elem.mark),
25
26
  singerMarked: mark(singerName, elem.mark)
26
27
  };
@@ -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
- width: 100%;
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 {
@@ -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
  },
@@ -67,10 +67,12 @@ var number = function (event) {
67
67
  }
68
68
  };
69
69
  var toFixed = function () {
70
- if (this.value && this.fixed) var fixed = BigNumber.fix(this.value, this.fixed);
71
- if (this.value !== fixed) {
72
- this.value = fixed;
73
- dispatch(this, 'change');
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "3.24.3",
3
+ "version": "3.24.5",
4
4
  "description": "一个开发工具,开放源代码,自带组件库和编译环境,可以用来开发web组件,web应用或nodejs模块,或做为已有代码的加密工具,也可以做为静态页面服务器或跨域中转服务器使用",
5
5
  "main": "public/efront.js",
6
6
  "directories": {