efront 3.34.11 → 3.35.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/moue/content//344/275/240/345/245/275/344/270/226/347/225/214.vue +21 -0
- package/apps/moue/content//344/275/240/345/245/275/345/274/200/345/217/221/350/200/205.html +1 -0
- package/apps/moue/{home/index.js → content//344/275/240/345/245/275/345/274/200/345/217/221/350/200/205.js} +4 -2
- package/apps/moue/content//344/275/240/345/245/275/345/274/200/345/217/221/350/200/205.less +4 -0
- package/apps/moue/home/index2.vue +97 -18
- package/apps/moue/index.html +1 -1
- package/coms/basic/ArrayFill.md +9 -0
- package/coms/basic/awaitable.md +10 -0
- package/coms/basic/backEach.md +7 -0
- package/coms/basic/combine.md +23 -0
- package/coms/basic/renderExpress.js +1 -1
- package/coms/basic/wait.js +5 -0
- package/coms/basic_/readme.md +27 -9
- package/coms/compile/#/350/257/264/346/230/216.md +1 -0
- package/coms/compile/Html.js +263 -0
- package/coms/compile/Html_test.js +5 -0
- package/coms/compile/Javascript.js +594 -0
- package/coms/compile/Program.js +664 -0
- package/coms/compile/autoenum.js +179 -0
- package/coms/compile/autoenum_test.js +17 -0
- package/coms/compile/autoeval.js +50 -0
- package/coms/compile/autoeval_test.js +28 -0
- package/coms/compile/autoiota.js +121 -0
- package/coms/compile/breakcode.js +83 -0
- package/coms/compile/common.js +1063 -0
- package/coms/compile/downLevel.js +901 -0
- package/coms/compile/downLevel_test.js +111 -0
- package/coms/compile/formatcode.js +57 -0
- package/coms/compile/iso8859.js +9 -0
- package/coms/compile/iso8859_test.js +2 -0
- package/coms/compile/keywords.js +6 -0
- package/coms/compile/namelist.js +154 -0
- package/coms/compile/namelist_test.js +7 -0
- package/coms/compile/polyfill.js +31 -0
- package/coms/compile/required.js +20 -0
- package/coms/compile/richcss.js +237 -0
- package/coms/compile/richcss_test.js +7 -0
- package/coms/compile/scanner.js +653 -0
- package/coms/compile/scanner2.js +202 -0
- package/coms/compile/scanner2_test.js +110 -0
- package/coms/compile/scanner_test.js +10 -0
- package/coms/compile/unstruct.js +712 -0
- package/coms/compile/unstruct_test.js +54 -0
- package/coms/compile/washcode.js +237 -0
- package/coms/compile/washcode_test.js +17 -0
- package/coms/docs/helps.js +71 -0
- package/coms/docs/markdown.js +248 -0
- package/coms/frame/route.js +1 -1
- package/coms/reptile/colored_console.js +2 -1
- package/coms/zimoli/cless.js +1 -0
- package/coms/zimoli/css.js +1 -9
- package/coms/zimoli/html.js +1 -1
- package/coms/zimoli/menu.js +1 -1
- package/coms/zimoli/menuItem.html +1 -1
- package/coms/zimoli/menuItem.js +1 -1
- package/coms/zimoli/render.js +14 -3
- package/coms/zimoli/text.js +1 -1
- package/coms/zimoli/transition.js +4 -4
- package/coms/zimoli/tree.js +2 -2
- package/coms/zimoli/zimoli.js +39 -12
- package/docs/compare.md +5 -5
- package/docs/components.jsp +17 -0
- package/docs/index.html +16 -26
- package/docs/main.xht +182 -0
- package/docs/mark.xht +166 -0
- package/docs/welcome.jsp +7 -0
- package/docs//345/221/275/344/273/244.xht +100 -0
- package/docs//347/211/210/346/234/254/350/257/264/346/230/216.md +9 -0
- package/docs//347/273/204/344/273/266.xht +87 -0
- package/package.json +1 -1
- package/public/efront.js +1 -1
- package/readme.md +6 -11
- package/apis/docs/getAllComponents.js +0 -69
- package/apps/moue/home/index.html +0 -1
- package/apps/moue/home/index.less +0 -0
- package/docs/main.js +0 -17
package/readme.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
*efront* 是一个开发工具,可以独立开发项目,也可以仅使用其一项功能
|
|
2
3
|
# efront 思想
|
|
3
4
|
1. 每个文件只导出一份数据,这一份数据可以是 boolean,number,string,function,object,bigint,null,undefined 中的任意一种
|
|
4
5
|
2. 文件名即变量名,在其他文件中引用当前文件导出的变量,只要使用当前文件的文件名(不含后缀)即可
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
6. `efront` 服务器提供跨域中转功能
|
|
17
18
|
7. `efront` 编译导出的组件对可能造成代码可读的字符串和属性进行提取和加密
|
|
18
19
|
|
|
19
|
-
#
|
|
20
|
+
# 基本命令(部分命令适用于windows)
|
|
20
21
|
|
|
21
22
|
## 1. 下载安装
|
|
22
23
|
|
|
@@ -85,13 +86,7 @@ set public_path=PUBLIC_PATH
|
|
|
85
86
|
efront watch
|
|
86
87
|
```
|
|
87
88
|
|
|
88
|
-
#
|
|
89
|
-
|
|
90
|
-
01. apps 静态app页面,通过get或post方式访问
|
|
91
|
-
02. coms 组件库
|
|
92
|
-
03. public 静态资源发布目录,用于存放编译的目标文件
|
|
93
|
-
|
|
94
|
-
# 配置项说明
|
|
89
|
+
# 可配置项说明
|
|
95
90
|
|
|
96
91
|
efront 优先读取系统环境变量中的配置,也可以将配置信息写入配置文件。
|
|
97
92
|
efront 默认读取当前路径下的`_envs/`和用户目录的`.efront/_envs/`进行环境配置的初始化(如果要修改默认环境配置的路径,可以在系统环境变量中设置`CONFIG_PATH`,多个目录可以用英文逗号分开),其中的`setup.bat`为环境配置的入口,访问工作目录的某个子项目`APP`时,还将自动读取`_envs/app=%APP%.bat`中的配置。
|
|
@@ -153,9 +148,9 @@ efront 默认读取当前路径下的`_envs/`和用户目录的`.efront/_envs/`
|
|
|
153
148
|
# 相关链接
|
|
154
149
|
|
|
155
150
|
[efront 兼容性说明](coms/basic_/readme.md)
|
|
156
|
-
[
|
|
151
|
+
[版本简介](docs/%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E.md)
|
|
157
152
|
[与前端框架对比](docs/compare.md)
|
|
158
153
|
|
|
159
154
|
[酷酷千百易云音乐](http://efront.cc/kugou/)
|
|
160
|
-
[局域网微信](http://efront.cc/wechat/)
|
|
161
|
-
[白前看图](
|
|
155
|
+
[局域网微信](http://ipv4.efront.cc/wechat/)
|
|
156
|
+
[白前看图](https://efront.cc/baiplay)
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
var fs = require("fs");
|
|
2
|
-
var path = require("path");
|
|
3
|
-
var test_file_reg = /_test\.([tj]sx?|xht)$/i;
|
|
4
|
-
var comm_file_reg = /\.([tj]sx?|xht)$/i;
|
|
5
|
-
var readdir = function (a) {
|
|
6
|
-
return new Promise(function (ok, oh) {
|
|
7
|
-
a = path.join(__dirname, "../../coms", a);
|
|
8
|
-
|
|
9
|
-
fs.readdir(a, function (error, names) {
|
|
10
|
-
if (error) oh(error);
|
|
11
|
-
else ok(names);
|
|
12
|
-
});
|
|
13
|
-
})
|
|
14
|
-
}
|
|
15
|
-
function getAllcomponents() {
|
|
16
|
-
return Promise.all(["basic", "zimoli"].map(readdir)).then(function (n) {
|
|
17
|
-
var names = [].concat.apply([], n);
|
|
18
|
-
var result = [], map = {};
|
|
19
|
-
var current_name_prefix;
|
|
20
|
-
names.filter(name => {
|
|
21
|
-
if (
|
|
22
|
-
/#/.test(name) ||
|
|
23
|
-
!comm_file_reg.test(name)
|
|
24
|
-
) return false;
|
|
25
|
-
if (test_file_reg.test(name)) {
|
|
26
|
-
name = name.replace(test_file_reg, "");
|
|
27
|
-
map[name] = {
|
|
28
|
-
test: true
|
|
29
|
-
};
|
|
30
|
-
return false;
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
return true;
|
|
34
|
-
|
|
35
|
-
}).map(name => {
|
|
36
|
-
name = name.replace(comm_file_reg, "");
|
|
37
|
-
return name;
|
|
38
|
-
}).sort((a, b) => {
|
|
39
|
-
var a0 = a[0].toLowerCase();
|
|
40
|
-
var b0 = b[0].toLowerCase();
|
|
41
|
-
if (a0 > b0) return 1;
|
|
42
|
-
if (a0 < b0) return -1;
|
|
43
|
-
var delta = (b in map) - (a in map);
|
|
44
|
-
if (delta) return delta;
|
|
45
|
-
return a > b ? 1 : a < b ? -1 : 0;
|
|
46
|
-
}).forEach(function (name) {
|
|
47
|
-
if (current_name_prefix !== name.charAt(0).toUpperCase()) {
|
|
48
|
-
current_name_prefix = name.charAt(0).toUpperCase();
|
|
49
|
-
result.push({
|
|
50
|
-
name: current_name_prefix,
|
|
51
|
-
tab: 1
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
var obj = {
|
|
55
|
-
name,
|
|
56
|
-
tab: 2
|
|
57
|
-
};
|
|
58
|
-
if (map[name]) {
|
|
59
|
-
obj.test = map[name].test;
|
|
60
|
-
} else {
|
|
61
|
-
map[name] = obj;
|
|
62
|
-
}
|
|
63
|
-
result.push(obj);
|
|
64
|
-
|
|
65
|
-
});
|
|
66
|
-
return result;
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
module.exports = getAllcomponents;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<div><btn>Vue Button</btn></div>
|
|
File without changes
|
package/docs/main.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
zimoli.clearHistory();
|
|
2
|
-
zimoli('/loader');
|
|
3
|
-
contextmenu(document, function (event) {
|
|
4
|
-
if (!window.require) return;
|
|
5
|
-
return menuList(null, [
|
|
6
|
-
{
|
|
7
|
-
"name": "开发者选项",
|
|
8
|
-
do() {
|
|
9
|
-
window.require("electron").ipcRenderer.send("window", "open-dev-tools");
|
|
10
|
-
window.resizeBy(400, 0);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
]);
|
|
14
|
-
})
|
|
15
|
-
on("beforeunload")(window, function () {
|
|
16
|
-
zimoli.clearHistory();
|
|
17
|
-
})
|