efront 4.35.5 → 4.35.6
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/_index.html +41 -41
- package/apps/blank/index.html +20 -20
- package/apps/noice/index.html +42 -42
- package/apps/pay/paypal.jsp +0 -0
- package/apps/pay/wxpay.jsp +32 -0
- package/apps/pivot/dht/rent.html +14 -0
- package/apps/pivot/dht/rent.js +148 -0
- package/apps/pivot/dht/rent.less +46 -0
- package/apps/pivot/home/desktop.xht +0 -0
- package/apps/pivot/menu.yml +6 -1
- package/apps/pivot/shop/goods/list.xht +183 -0
- package/apps/pivot/shop/home.xht +20 -0
- package/apps/pivot/shop/mind/list.xht +1 -0
- package/apps/pivot/shop/order/create.xht +49 -0
- package/apps/pivot/shop/order/list.xht +1 -0
- package/apps/pivot/shop/paypal.jsp +23 -0
- package/apps/pivot/soft/list.html +0 -0
- package/apps/pivot/soft/list.js +9 -0
- package/apps/pivot/soft/list.less +0 -0
- package/apps/pivot//344/270/273/351/241/265.html +42 -42
- package/coms/7z_temp/Java.js +93 -0
- package/coms/7z_temp/LzmaBench.java +392 -0
- package/coms/7z_temp/read-from-java-code.js +28 -0
- package/coms/7z_temp//350/257/264/346/230/216.md +1 -0
- package/coms/basic/JSAM.js +259 -259
- package/coms/basic/JSAM_test.js +3 -5
- package/coms/basic/check.js +42 -42
- package/coms/basic/color.js +696 -696
- package/coms/basic/crc.js +39 -39
- package/coms/basic/getIndexFromOrderedArray.js +39 -39
- package/coms/basic/isObject.js +3 -3
- package/coms/basic/keys.js +4 -4
- package/coms/basic/lazy.js +78 -78
- package/coms/basic/refilm.js +96 -96
- package/coms/basic/saveToOrderedArray.js +11 -11
- package/coms/basic/strings.js +0 -1
- package/coms/basic_/&pget.js +1 -0
- package/coms/basic_/&pset.js +1 -0
- package/coms/basic_/Proxy.js +6 -0
- package/coms/basic_/Reflect.js +55 -0
- package/coms/compile/autoeval.js +24 -5
- package/coms/compile/autoeval_test.js +5 -1
- package/coms/compile/bracket.js +51 -0
- package/coms/compile/bracket_test.js +9 -0
- package/coms/compile/createvm.js +35 -0
- package/coms/compile/createvm_test.js +7 -0
- package/coms/compile/scanner.js +653 -653
- package/coms/compile/scanner2.js +23 -0
- package/coms/docs/getMimeData_test.js +19 -19
- package/coms/docs/md5.js +173 -173
- package/coms/frame/top.less +190 -190
- package/coms/pivot/DB.js +9 -0
- package/coms/pivot/paypal-var.js +1 -0
- package/coms/pivot//345/225/206/345/223/201.js +1 -0
- package/coms/zimoli/AudioContext_test.html +5 -5
- package/coms/zimoli/AudioContext_test.js +92 -92
- package/coms/zimoli/AudioContext_test.less +114 -114
- package/coms/zimoli/alert_test.js +11 -11
- package/coms/zimoli/dispatch.js +50 -50
- package/coms/zimoli/extendTouchEvent.js +8 -8
- package/coms/zimoli/fullscreen.js +52 -52
- package/coms/zimoli/gallery.less +13 -13
- package/coms/zimoli/gallery_test.html +2 -2
- package/coms/zimoli/gallery_test.js +14 -14
- package/coms/zimoli/gallery_test.less +17 -17
- package/coms/zimoli/getChanged.js +7 -7
- package/coms/zimoli/getChanges.js +13 -13
- package/coms/zimoli/lattice.js +109 -109
- package/coms/zimoli/lattice_test.less +23 -23
- package/coms/zimoli/picture.less +71 -71
- package/coms/zimoli/refilm_test.html +41 -41
- package/coms/zimoli/refilm_test.less +102 -102
- package/coms/zimoli/xml.js +131 -131
- package/data/keystore/cross-cert.pem +21 -21
- package/data/keystore/cross-key.pem +27 -27
- package/package.json +1 -1
- package/public/efront.js +1 -1
- package/public//346/226/207/344/273/266/347/263/273/347/273/237//344/270/273/351/241/265.jsp +2 -2
- /package/apps/pivot/{tick → ticket}/list.js +0 -0
package/coms/compile/autoeval.js
CHANGED
|
@@ -21,7 +21,7 @@ var punc_2 = {
|
|
|
21
21
|
return +n + s;
|
|
22
22
|
},
|
|
23
23
|
"/"(n, s) {
|
|
24
|
-
if (!n) return;
|
|
24
|
+
if (!n || s) return;
|
|
25
25
|
return 1 / n + s;
|
|
26
26
|
}
|
|
27
27
|
};
|
|
@@ -51,9 +51,6 @@ var punc_3 = {
|
|
|
51
51
|
return (n1 >> n2) + s;
|
|
52
52
|
},
|
|
53
53
|
"<<"(n1, n2, s) {
|
|
54
|
-
if (s && n1.length + +n2 > 15) {
|
|
55
|
-
return BigInt(n1) << BigInt(n2) + s;
|
|
56
|
-
}
|
|
57
54
|
return (n1 << n2) + s;
|
|
58
55
|
},
|
|
59
56
|
">"(n1, n2, s) {
|
|
@@ -99,6 +96,7 @@ function calc_(arg1, punc, arg2) {
|
|
|
99
96
|
var [, n, s] = match;
|
|
100
97
|
var f = punc_s && punc in punc_s ? punc_s[punc] : punc_2[punc];
|
|
101
98
|
if (!f) return;
|
|
99
|
+
if (s === 'n' && n.length > 15) n = BigInt(n);
|
|
102
100
|
return f(n, s, arg2);
|
|
103
101
|
}
|
|
104
102
|
var match1 = nreg.exec(arg1);
|
|
@@ -138,7 +136,12 @@ function calc_(arg1, punc, arg2) {
|
|
|
138
136
|
s = 'i'; s2 = '';
|
|
139
137
|
break a;
|
|
140
138
|
}
|
|
141
|
-
if (s === s2)
|
|
139
|
+
if (s === s2) {
|
|
140
|
+
if (s === 'n') {
|
|
141
|
+
if (n1.length + n2.length > 15) n1 = BigInt(n1), n2 = BigInt(n2);
|
|
142
|
+
}
|
|
143
|
+
return f(n1, n2, s);
|
|
144
|
+
}
|
|
142
145
|
return;
|
|
143
146
|
}
|
|
144
147
|
return f(n1, n2, s || s2);
|
|
@@ -147,6 +150,10 @@ function calc_(arg1, punc, arg2) {
|
|
|
147
150
|
// 除法不考虑虚数
|
|
148
151
|
if (s === s2) {
|
|
149
152
|
if (/^[lmnuf]+$/i.test(s)) {
|
|
153
|
+
if (/^[lnu]+$/.test(s)) {
|
|
154
|
+
n1 = BigInt(n1);
|
|
155
|
+
n2 = BigInt(n2);
|
|
156
|
+
}
|
|
150
157
|
return f(n1, n2, s);
|
|
151
158
|
}
|
|
152
159
|
return f(n1, n2, "");
|
|
@@ -156,6 +163,18 @@ function calc_(arg1, punc, arg2) {
|
|
|
156
163
|
return f(n1, n2, s);
|
|
157
164
|
}
|
|
158
165
|
if (s !== s2) return;
|
|
166
|
+
if (s === 'n') {
|
|
167
|
+
switch (punc) {
|
|
168
|
+
case "**":
|
|
169
|
+
if (n1.length * n2 > 15) n1 = BigInt(n1), n2 = BigInt(n2);
|
|
170
|
+
break;
|
|
171
|
+
case "<<":
|
|
172
|
+
if (n1.length + +n2 > 15) n1 = BigInt(n1), n2 = BigInt(n2);
|
|
173
|
+
break;
|
|
174
|
+
default:
|
|
175
|
+
if (n1.length > 15 || n2.length > 15) n1 = BigInt(n1), n2 = BigInt(n2);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
159
178
|
return f(n1, n2, s);
|
|
160
179
|
}
|
|
161
180
|
|
|
@@ -90,4 +90,8 @@ t("1<<0", '1');
|
|
|
90
90
|
t("1<<3", '8');
|
|
91
91
|
t("(1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0)",'1335')
|
|
92
92
|
t("(1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0)","7973")
|
|
93
|
-
t("(1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1)","21522")
|
|
93
|
+
t("(1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1)","21522")
|
|
94
|
+
t('1n<<32n','4294967296n');
|
|
95
|
+
t('4294967296n*4294967296n','18446744073709551616n');
|
|
96
|
+
t('4294967296n*2147483648n','9223372036854775808n');
|
|
97
|
+
t('0x20000000n*0x1000000n','9007199254740992n');
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var { SCOPED, STAMP, STRAP, COMMENT, SPACE, EXPRESS, rehead, snapExpressFoot } = require("./common");
|
|
2
|
+
var powermap = require("./powermap");
|
|
3
|
+
var wrapb = function (t) {
|
|
4
|
+
var t = cache.pop();
|
|
5
|
+
if (t.length > 2) {
|
|
6
|
+
t.entry = '(';
|
|
7
|
+
t.leave = ')';
|
|
8
|
+
t.type = SCOPED;
|
|
9
|
+
var e = t.pop();
|
|
10
|
+
rehead(t), t = [t, e];
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
}
|
|
14
|
+
function b(body) {
|
|
15
|
+
var result = [];
|
|
16
|
+
var cache = [];
|
|
17
|
+
var pp = 0;
|
|
18
|
+
var q = [];
|
|
19
|
+
var bx = body.indexOf(body.first);
|
|
20
|
+
if (bx < 0) return;
|
|
21
|
+
for (var cx = bx, dx = body.length; cx < dx; cx++) {
|
|
22
|
+
var o = body[cx];
|
|
23
|
+
if (o.type & (COMMENT | SPACE)) continue;
|
|
24
|
+
if (o.type & (STRAP | STAMP) && o.text in powermap) {
|
|
25
|
+
var p = powermap[o.text];
|
|
26
|
+
if (o.unary) p = powermap["!"];
|
|
27
|
+
var b = body.slice(bx, cx + 1);
|
|
28
|
+
b = wrapb(b);
|
|
29
|
+
bx = cx + 1;
|
|
30
|
+
b.deep = cache.length;
|
|
31
|
+
if (p > cache[cache.length - 1] || p >= powermap["!"]) {
|
|
32
|
+
cache.push(b, p);
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
q.push(...b);
|
|
36
|
+
var pb = b.pop();
|
|
37
|
+
while (cache.length && cache[cache.length - 1] >= p) {
|
|
38
|
+
var p0 = cache.pop();
|
|
39
|
+
var t = cache.pop();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return result;
|
|
44
|
+
}
|
|
45
|
+
function c(exp) {
|
|
46
|
+
|
|
47
|
+
}
|
|
48
|
+
function bracket(exp) {
|
|
49
|
+
exp = b(exp);
|
|
50
|
+
return exp;
|
|
51
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { COMMENT, SPACE, EXPRESS, createExpressList, equal_reg } from "./common";
|
|
2
|
+
function createvm(code) {
|
|
3
|
+
var argNames = [];
|
|
4
|
+
var envs = code.envs;
|
|
5
|
+
var vars = code.vars;
|
|
6
|
+
var queue = unstruct(code, function (i) {
|
|
7
|
+
var name = i > 0 ? "@" + i : "@";
|
|
8
|
+
if (i >= argNames.length) argNames[i] = name;
|
|
9
|
+
return name;
|
|
10
|
+
}, true);
|
|
11
|
+
var splitName = function (name) {
|
|
12
|
+
var m = /[\.\[]/.exec(name);
|
|
13
|
+
if (m) {
|
|
14
|
+
var res = [name.slice(0, m.index)];
|
|
15
|
+
name = name.slice(m.index + m.length);
|
|
16
|
+
}
|
|
17
|
+
return [name];
|
|
18
|
+
}
|
|
19
|
+
var data = queue.map(q => {
|
|
20
|
+
for (var o of q) {
|
|
21
|
+
if (/^@/.test(o.text)) continue;
|
|
22
|
+
if (o.type === EXPRESS && !/^\./.test(o.text)) {
|
|
23
|
+
var n = o.next;
|
|
24
|
+
if (n && n.equal_reg.test(n.text)) {
|
|
25
|
+
var expname = splitName(o.text);
|
|
26
|
+
o.text = `get@(${expname.pop()})`;
|
|
27
|
+
o.rest = expname;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return `function (get@,){${createString(q)}}`;
|
|
32
|
+
})
|
|
33
|
+
var vm = scanner2(`var ${argNames.concat(Object.keys(vars)).join(',')};\r\n#async()`);
|
|
34
|
+
|
|
35
|
+
}
|