efront 4.5.3 → 4.5.7

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 (48) hide show
  1. package/#/345/233/275/351/231/205/345/214/226.yml +84 -9
  2. package/apps/pivot/api.yml +2 -1
  3. package/apps/pivot/cert/main.xht +38 -18
  4. package/apps/pivot/cert/orders.xht +8 -39
  5. package/apps/pivot/cert/update.xht +35 -2
  6. package/coms/basic/#loader.js +4 -3
  7. package/coms/basic/YAML.js +1 -1
  8. package/coms/basic/awaitable.js +6 -2
  9. package/coms/{zimoli → basic}/data.js +10 -8
  10. package/coms/basic/data.md +48 -0
  11. package/coms/basic/data_test.js +12 -0
  12. package/coms/basic/parseYML.js +13 -6
  13. package/coms/basic/parseYML_test.js +5 -1
  14. package/coms/basic/refilm_decode.js +1 -0
  15. package/coms/compile/Javascript.js +9 -43
  16. package/coms/compile/common.js +51 -8
  17. package/coms/compile/patchlist.js +4 -0
  18. package/coms/compile/patchname.js +4 -0
  19. package/coms/compile/scanner2.js +2 -2
  20. package/coms/compile/translate.js +2 -1
  21. package/coms/compile//347/264/240/351/246/250.js +4 -3
  22. package/coms/compile//347/264/240/351/246/250_test.js +1 -0
  23. package/coms/docs/helps.js +1 -1
  24. package/coms/pivot/acme2.js +103 -19
  25. package/coms/pivot/pedit.js +7 -9
  26. package/coms/reptile/alert.js +1 -0
  27. package/coms/reptile/detectWithExtension.js +2 -1
  28. package/coms/reptile/localStorage.js +4 -0
  29. package/coms/reptile/on.js +4 -0
  30. package/coms/reptile/onmounted.js +1 -0
  31. package/coms/reptile/sessionStorage.js +1 -0
  32. package/coms/reptile/window.js +65 -0
  33. package/coms/zimoli/alert.js +32 -31
  34. package/coms/zimoli/button.less +8 -1
  35. package/coms/zimoli/confirm.js +22 -10
  36. package/coms/zimoli/model.js +28 -14
  37. package/coms/zimoli/model.less +45 -2
  38. package/coms/zimoli/selectDate.js +2 -2
  39. package/coms/zimoli/view.less +1 -2
  40. package/docs//345/267/245/345/205/267//345/233/275/351/231/205/345/214/226.xht +50 -9
  41. package/package.json +2 -3
  42. package/public/efront.js +1 -2
  43. package/readme-en.md +0 -2
  44. package/readme.md +0 -2
  45. package/coms/zimoli/data_test.js +0 -35
  46. /package/coms/{zimoli → basic}/LoadingArray.js +0 -0
  47. /package/coms/{zimoli → basic}/fromBase64.js +0 -0
  48. /package/coms/{zimoli → basic}/toBase64.js +0 -0
package/readme-en.md CHANGED
@@ -122,8 +122,6 @@ The current version of `efront` supports quick configuration of environment vari
122
122
  | `COMM` | The path where the component files are stored, with the default being the application name and the default component library `APP,zimoli` |
123
123
  | `PREFIX` | Specify the component className prefix when publishing, with no prefix by default |
124
124
  | `NOPROXY` | Traditional agents are enabled by default in the development environment and disabled in the production environment |
125
- | `PATH.SSL_PFX` | The path of the SSL certificate, which should be in pfx format的 |
126
- | `PASSWORD.SSL_PFX` | SSL certificate password |
127
125
  | `DIRECT` | If `pathname` is used as the page path for a single page application, this parameter can be configured so that all empty paths point to the path specified by this parameter. If configured as a numerical value, the first few levels of the user path are automatically truncated. If specified as a string, all empty paths return the content under that string path. |
128
126
  | `ENTRY_NAME` | `efront` defaults to sequentially searching for the declared `main`, `Main`, `main`, and `<file name>` in the file as the export object (entry). Users can configure this environment variable to make modifications |
129
127
  | `EXTRACT` | If the project has multiple entries, `efront` defaults to writing the main program to a separate file. If the project is a single entry, `efront` defaults to incorporating the main program into index.html. If your code has special requirements, you can configure this parameter to specify the behavior of `efront` |
package/readme.md CHANGED
@@ -120,8 +120,6 @@ efront 默认读取当前路径下的`_envs/`和用户目录的`.efront/_envs/`
120
120
  | `COMM` | 组件文件存放的路径,默认为应用名加efront默认组件库`APP,zimoli` |
121
121
  | `PREFIX` | 发布时指定组件className前缀,默认无前缀 |
122
122
  | `NOPROXY` | 传统代理,默认在开发环境开启传统代理,在生产环境禁用传统代理 |
123
- | `PATH.SSL_PFX` | ssl证书的路径,证书要使用pfx格式的 |
124
- | `PASSWORD.SSL_PFX` | ssl证书密码 |
125
123
  | `DIRECT` | 如果是用`pathname`作为单页应用的页面路径,可以配置此参数,以使空路都指向该参数所指定的路径。如果配置为数值,则自动截取用户路径的前几级,如果指定为字符串,则所有空路径都返回该字符串路径下的内容。 |
126
124
  | `ENTRY_NAME` | efront默认依次查找文件中声明的`main`,`Main`,`MAIN`,`<文件名>`做为导出对象(入口),用户可配置此环境变量以进行修改 |
127
125
  | `EXTRACT` | 如果项目有多个入口,efront默认将主程序写入独立的文件,如果项目是单入口,efront默认将主程序并入index.html,如果您的代码有特殊要求,可以配置引此参数指定efront的行为 |
@@ -1,35 +0,0 @@
1
- function data_test1() {
2
- var array = [{
3
- name: "李时珍",
4
- birthday: "1518-7-3"
5
- }, {
6
- name: "周杰伦",
7
- birthday: "1979-1-18"
8
- }, {
9
- name: "张韶涵",
10
- birthday: "1982-1-19"
11
- }, {
12
- name: "詹天佑",
13
- birthday: "1861-4-26"
14
- }];
15
- var encoded = data.encodeStructure(array);
16
- var decoded = data.decodeStructure(encoded);
17
- console.log(array, encoded, decoded);
18
- return button(`sourcelength${JSON.stringify(array).length};encodedlength${JSON.stringify(encoded).length}`);
19
- }
20
-
21
- function data_test2() {
22
- data.setConfig({
23
- 'http://baidu.com/ a=`1&b=c': {
24
- 'baidu': 'get .'
25
- }
26
- });
27
- data.setSource({
28
- c: 2
29
- });
30
- data.from('baidu');
31
- }
32
- function main() {
33
- data_test1();
34
- data_test2();
35
- }
File without changes
File without changes
File without changes