efront 3.7.7 → 3.7.8

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/api.js CHANGED
@@ -12,7 +12,7 @@
12
12
  "singer-list": "get:[].singer-img-list>li singer/list/:id#href=a!href&=a!href\\singer-info&imgurl=img!_src&name=p|innerText",
13
13
  "singer-info": "mget:[].singer-songs-list>li singer/info/:id#hash=!id&singer=.singer-name|innerText&name=.song-name|innerText&data=em/innerText"
14
14
  },
15
- "https://mobilecdn.kugou.com/": {
15
+ "http://mobilecdn.kugou.com/": {
16
16
  "search?keyword": "get:data.info api/v3/search/song?format=json&page=1&pagesize=30&showtype=1"
17
17
  }
18
18
  })
@@ -17,6 +17,9 @@
17
17
  <script>
18
18
  cross_host = 'efront.cc';
19
19
  </script>
20
+ <script deleteoncompile>
21
+ cross_host = '';
22
+ </script>
20
23
  <style>
21
24
  *,
22
25
  ::before,
@@ -7,6 +7,9 @@
7
7
  top: 0;
8
8
  height: auto;
9
9
  }
10
+ &+.titlebar>back{
11
+ height: 44px;
12
+ }
10
13
 
11
14
  >png {
12
15
  width: 100%;
@@ -155,6 +155,7 @@ function getUrlParamsForApi(api, url) {
155
155
  cap.push(a.slice(1));
156
156
  return r;
157
157
  });
158
+ if (api.base) base = api.base + base;
158
159
  var params = {};
159
160
  url = url.replace(/[\?#]*$/g, function (match) {
160
161
  match.split(/[&#\?]+/).forEach(function (s) {
@@ -844,7 +845,10 @@ var data = {
844
845
  this.responseLoading(instance);
845
846
  var params = privates.pack(sid, params1);
846
847
  if (!privates.validApi(api, params)) throw aborted;
847
- var { method, uri, params, selector } = privates.prepare(api.method, api.url, params);
848
+ let url = api.url;
849
+ var base = api.base;
850
+ if (base) url = base + api.path;
851
+ var { method, uri, params, selector } = privates.prepare(api.method, url, params);
848
852
  var promise = new Promise(function (ok, oh) {
849
853
  var headers = api.headers;
850
854
  if (headers) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "3.7.7",
3
+ "version": "3.7.8",
4
4
  "description": "一个开发工具,开放源代码,自带组件库和编译环境,可以用来开发web组件,web应用或nodejs模块,或做为已有代码的加密工具,也可以做为静态页面服务器或跨域中转服务器使用",
5
5
  "main": "public/efront.js",
6
6
  "directories": {