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,8 +0,0 @@
1
- // 中文编码 utf-8
2
- var tbar = titlebar("预订", null, false);
3
- var page = createElement(div, tbar);
4
- css(page, "font-size:40px;color:#fff;");
5
-
6
- function main() {
7
- return vbox(page);
8
- }
@@ -1,8 +0,0 @@
1
- // 中文编码 utf-8
2
- var tbar = titlebar("大厅", null, false);
3
- var page = createElement(div, tbar);
4
- css(page, "font-size:40px;color:#fff;");
5
-
6
- function main() {
7
- return page;
8
- }
@@ -1,13 +0,0 @@
1
- <form>
2
- <field title="名称"><input /></field>
3
- <field title="类型">
4
- <select ng-model="type">
5
- <option value="1" selected>歌曲</option>
6
- <option value="2">歌单</option>
7
- </select>
8
- </field>
9
- <field title="文件链接">
10
- <option value=""></option>
11
- </field>
12
- <btn>确定</btn>
13
- </form>
@@ -1,14 +0,0 @@
1
- titlebar("添加到我的收藏");
2
- var page = div();
3
- console.log(page);
4
- page.innerHTML = add;
5
- render(page, {
6
- type: "1",
7
- titlebar,
8
- field,
9
- btn: button,
10
- select
11
- });
12
- function main() {
13
- return page;
14
- }
File without changes
File without changes
@@ -1,13 +0,0 @@
1
- titlebar("我的收藏", {
2
- 添加() {
3
- go("add", "添加到我的收藏");
4
- }
5
- });
6
- var page = div();
7
- page.innerHTML = main;
8
- page.initialStyle = "margin-left:100%;z-index:1";
9
- login();
10
-
11
- var main = function () {
12
- return page;
13
- };
@@ -1,8 +0,0 @@
1
- & {
2
- position: absolute;
3
- top: 0;
4
- bottom: 0;
5
- left: 0;
6
- right: 0;
7
- background: #fff;
8
- }
@@ -1,14 +0,0 @@
1
- new Promise(function (ok) {
2
- var config = {
3
- target: 'fc',
4
- api_domain: "efront.cc:5989",
5
- api_base: "http://efront.cc:5989/",
6
- };
7
- if (!/(localhost|127\.0\.0\.1)/i.test(location.hostname)) return ok(config);
8
- var testconfig = {
9
- target: 'fc',
10
- api_domain: "localhost:5984",
11
- api_base: "http://localhost:5984/",
12
- };
13
- cross("get", testconfig.api_base).done(e => ok(testconfig)).error(e => ok(config));
14
- })
@@ -1 +0,0 @@
1
- <div>您访问的功能区正在开发中..</div>
@@ -1,8 +0,0 @@
1
- var tbar = titlebar("建设中");
2
- var page = div();
3
- page.innerHTML = pending;
4
- page.initialStyle = "transform:perspective 800px rotate3d(0,0,1,180deg);background:#000;z-index:2;margin-left:100%;";
5
- function main(title) {
6
- tbar.querySelector("label").innerHTML = title;
7
- return page;
8
- }
@@ -1,15 +0,0 @@
1
- & {
2
- position: absolute;
3
- left: 0;
4
- top: 0;
5
- bottom: 0;
6
- right: 0;
7
- padding-top: 50px;
8
- font-size: 16px;
9
- color: #666;
10
- background: #fff;
11
- perspective: 800px;
12
- text-align: center;
13
- line-height: 200px;
14
- transform: rotate3d(0, 1, 0, 0deg);
15
- }
@@ -1,7 +0,0 @@
1
- titlebar();
2
- var page = div();
3
- page.initialStyle = "margin-left:100%;z-index:2";
4
- console.log(page);
5
- function main() {
6
- return page;
7
- }
@@ -1,108 +0,0 @@
1
- var tbar = titlebar(i18n("文件管理器", "File Manager"), {
2
- [i18n("管理", "Table View")]() {
3
- go("/files/info");
4
- }
5
- });
6
- var page = createVboxWithState(state);
7
- page.innerHTML = `
8
- <list></list>
9
- `;
10
-
11
- var roots = [];
12
- var currentFolder = [];
13
- var request = function (value, folder) {
14
- if (!request.rest) request.rest = [];
15
- var { rest, loading } = request;
16
- if (folder && folder !== request.folder) {
17
- if (isNumber(loading)) {
18
- clearTimeout(loading);
19
- } else if (loading) {
20
- loading.cancel();
21
- loading = false;
22
- }
23
- rest.splice(0, rest.length);
24
- };
25
- if (value) {
26
- rest.push(value);
27
- request.folder = folder;
28
- }
29
- if (loading) return;
30
- request.loading = setTimeout(function () {
31
- var files = request.rest.splice(0, rest.length);
32
- if (!files.length) return rest.loading = false;
33
- request.loading = api("/file/info", {
34
- files: files.map(function (file) {
35
- return file.name;
36
- }),
37
- folder: request.folder
38
- }).success(function (result) {
39
- result.result.map(function (file, cx) {
40
- extend(files[cx], file);
41
- });
42
- _list.refresh();
43
- request.loading = false;
44
- if (request.rest.length) request();
45
- }).error(function () {
46
- request.loading = false;
47
- if (request.rest.length) request();
48
- });
49
- }, 200);
50
- }
51
- var _list = tree(function (data) {
52
- var { value } = data;
53
- var { isFolder } = value;
54
- if (isFolder) {
55
- return role$folder(value);
56
- }
57
- if (!value.isFile) {
58
- request(value, value.folder);
59
- }
60
- return role$file(value);
61
- });
62
- onactive(_list, function (event) {
63
- var { value, item } = event;
64
- if (value.isFolder && !item.length) {
65
- _list.addData(value.children.map(function (name) {
66
- return {
67
- tab: data.tab + 1,
68
- name,
69
- folder: value.pathname,
70
- pathname: (value.pathname + "/" + name).replace(/\\/g, "/")
71
- };
72
- }), item);
73
- item.closed = true;
74
- } else if (value.isFile) {
75
- if (view$image.support(item.value)) {
76
- var viewer = view$image(item);
77
- } else if (view$video.support(item.value)) {
78
- var viewer = view$video(item);
79
- }
80
- if (viewer) {
81
- confirm(viewer, item.name, ["关闭"]);
82
- }
83
- }
84
- })
85
- render(page, {
86
- go,
87
- List(a) {
88
- return _list;
89
- },
90
- btn(a) {
91
- return button(a);
92
- }
93
- })
94
- page.initialStyle = "margin-left:100%;z-index:2;";
95
- onback(function () {
96
- });
97
- api = api.newBaseUrl("/api");
98
- api("/file/info").success(function (response) {
99
- roots = currentFolder = response.result;
100
- roots.map(function (a) {
101
- a.tab = 0;
102
- })
103
- _list.setData(roots);
104
- _list.go(0);
105
- });
106
- function main() {
107
- return page;
108
- }
@@ -1,26 +0,0 @@
1
- & {
2
- padding-top: 50px;
3
- width: 100%;
4
- height: 100%;
5
- position: absolute;
6
- left: 0;
7
- right: 0;
8
- top: 0;
9
- bottom: 0;
10
- background-color: #f2f4f9;
11
- }
12
- .button{
13
- text-align: left;
14
- white-space: normal;
15
- vertical-align: middle;
16
- }
17
- .tree{
18
- text-align: left;
19
- display: block;
20
- height: auto;
21
- max-height: 100%;
22
- position: relative;
23
- >.button{
24
- background-color: transparent;
25
- }
26
- }
Binary file
Binary file
@@ -1,42 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- http://efront.cc
4
- -->
5
- <html lang="zh-CN">
6
-
7
- <head>
8
- <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
9
- <meta charset="utf-8" />
10
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
11
- <link rel="Shortcut Icon" href="/favicon.ico" type="image/x-icon" />
12
- <meta name="viewport" content="initial-scale=1,maximum-scale=1,width=device-width" />
13
- <title>紫茉莉 项目</title>
14
- <script deleteoncompile efrontloader>
15
- // 若要在开发环境使用内置组件,请保留此script标签中的代码,在编译发布时,这里的代码会自动删除
16
- </script>
17
- <style>
18
- html {
19
- height: 100%;
20
- font-family: "SF Pro SC", "SF Pro Text", "SF Pro Icons", "PingFang SC", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
21
- }
22
-
23
- *,
24
- ::before,
25
- ::after {
26
- box-sizing: border-box;
27
- }
28
-
29
- body {
30
- border: none;
31
- margin: 0;
32
- padding: 0;
33
- height: 100%;
34
- overflow: hidden;
35
- }
36
- </style>
37
- <script>window.e=0</script>
38
- </head>
39
-
40
- <body scroll=no max-render=1440></body>
41
-
42
- </html>