efront 4.24.1 → 4.24.2
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/#/345/233/275/351/231/205/345/214/226.yml +15 -12
- package/apps/pivot/home/welcome.html +10 -10
- package/apps/pivot/home/welcome.js +1 -0
- package/coms/zimoli/yousure.js +5 -1
- package/coms//350/214/250/350/217/260//347/274/226/350/276/221/346/241/206.xht +33 -7
- package/package.json +1 -1
- package/public/efront.js +1 -1
|
@@ -16,12 +16,6 @@
|
|
|
16
16
|
- zh-CN: 返回
|
|
17
17
|
en: Back
|
|
18
18
|
|
|
19
|
-
- zh-CN: 路径不存在
|
|
20
|
-
en: Path does not exist
|
|
21
|
-
|
|
22
|
-
- zh-CN: 路径不存在
|
|
23
|
-
en: path does not exist
|
|
24
|
-
|
|
25
19
|
- zh-CN: "参数异常: $1"
|
|
26
20
|
en: "Parameter exception: $1"
|
|
27
21
|
|
|
@@ -46,11 +40,20 @@
|
|
|
46
40
|
- zh-CN: 禁用
|
|
47
41
|
en: Disable
|
|
48
42
|
|
|
43
|
+
- zh-CN: 拥有注册号的用户可查看商品
|
|
44
|
+
en: Users with registration numbers can view products
|
|
45
|
+
|
|
46
|
+
- zh-CN: 获取
|
|
47
|
+
en: Obtain
|
|
48
|
+
|
|
49
|
+
- zh-CN: 获取注册号时,请确保您的服务器可以通过公网访问。暂不支持非公网服务器获取注册号。
|
|
50
|
+
en: "When obtaining the registration number, please ensure that your server can be accessed through the public network. We currently do not support obtaining registration numbers from non-public servers."
|
|
51
|
+
|
|
49
52
|
- zh-CN: 删除
|
|
50
53
|
en: Delete
|
|
51
54
|
|
|
52
|
-
- zh-CN:
|
|
53
|
-
en:
|
|
55
|
+
- zh-CN: 路径不存在
|
|
56
|
+
en: Path does not exist
|
|
54
57
|
|
|
55
58
|
- zh-CN: 当前服务器不可注册用户
|
|
56
59
|
en: The current server is unable to register users
|
|
@@ -62,7 +65,7 @@
|
|
|
62
65
|
en: The database does not exist
|
|
63
66
|
|
|
64
67
|
- zh-CN: 非法访问
|
|
65
|
-
en:
|
|
68
|
+
en: Illegal Access
|
|
66
69
|
|
|
67
70
|
- zh-CN: 您已注册过,无法重新注册!
|
|
68
71
|
en: You have already registered and cannot register again!
|
|
@@ -71,10 +74,10 @@
|
|
|
71
74
|
en: Registration No
|
|
72
75
|
|
|
73
76
|
- zh-CN: 注销
|
|
74
|
-
en:
|
|
77
|
+
en: Unregister
|
|
75
78
|
|
|
76
79
|
- zh-CN: 注册
|
|
77
|
-
en:
|
|
80
|
+
en: Register
|
|
78
81
|
|
|
79
82
|
- zh-CN: 标记不匹配
|
|
80
83
|
en: Tag mismatch
|
|
@@ -239,7 +242,7 @@
|
|
|
239
242
|
en: Node.js version
|
|
240
243
|
|
|
241
244
|
- zh-CN: 操作系统
|
|
242
|
-
en:
|
|
245
|
+
en: Operating system
|
|
243
246
|
|
|
244
247
|
- zh-CN: 处理器
|
|
245
248
|
en: Processor
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
<block>
|
|
2
2
|
<padding>
|
|
3
3
|
<span>
|
|
4
|
-
${i18n`注册号`}
|
|
4
|
+
${i18n`注册号`}:
|
|
5
5
|
</span>
|
|
6
6
|
<template -if="usercode">
|
|
7
7
|
<span -text="String(usercode)"></span>
|
|
8
8
|
<!-- <a @click="unregister">${i18n`注销`}</a> -->
|
|
9
9
|
</template>
|
|
10
|
-
<a -else @click="register">${i18n
|
|
10
|
+
<a -else @click="register">${i18n`获取`}</a>
|
|
11
11
|
</padding>
|
|
12
12
|
<padding>
|
|
13
13
|
<span>
|
|
14
|
-
${i18n`服务器版本`}
|
|
14
|
+
${i18n`服务器版本`}:
|
|
15
15
|
</span>
|
|
16
16
|
<span -text="String(version)"></span>
|
|
17
17
|
</padding>
|
|
18
18
|
<padding>
|
|
19
19
|
<span>
|
|
20
|
-
${i18n`nodejs版本`}
|
|
20
|
+
${i18n`nodejs版本`}:
|
|
21
21
|
</span>
|
|
22
22
|
<span -text="String(nodeVersion)"></span>
|
|
23
23
|
</padding>
|
|
24
24
|
<padding>
|
|
25
25
|
<span>
|
|
26
|
-
${i18n`操作系统`}
|
|
26
|
+
${i18n`操作系统`}:
|
|
27
27
|
</span>
|
|
28
28
|
<span -text="String(platform)"></span>
|
|
29
29
|
</padding>
|
|
30
30
|
<padding>
|
|
31
31
|
<span>
|
|
32
|
-
${i18n`处理器`}
|
|
32
|
+
${i18n`处理器`}:
|
|
33
33
|
</span>
|
|
34
34
|
<span -text="String(arch)"></span>
|
|
35
35
|
</padding>
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
<block>
|
|
38
38
|
<padding>
|
|
39
39
|
<span>
|
|
40
|
-
${i18n`清理服务器缓存`}
|
|
40
|
+
${i18n`清理服务器缓存`}:
|
|
41
41
|
</span>
|
|
42
42
|
<btn @click="run('clear-cache',this)">${i18n`清理`}</btn>
|
|
43
43
|
</padding>
|
|
44
44
|
<padding>
|
|
45
45
|
<span>
|
|
46
|
-
${i18n`重启服务器`}
|
|
46
|
+
${i18n`重启服务器`}:
|
|
47
47
|
</span>
|
|
48
48
|
<btn @click="run('rehost',this)" confirm type="danger">${i18n`重启`}</btn>
|
|
49
49
|
</padding>
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
<block>
|
|
52
52
|
<padding>
|
|
53
53
|
<span>
|
|
54
|
-
${i18n`启动时间`}
|
|
54
|
+
${i18n`启动时间`}:
|
|
55
55
|
</span>
|
|
56
56
|
<span -text="filterTime(hrtime)"></span>
|
|
57
57
|
</padding>
|
|
58
58
|
<padding>
|
|
59
59
|
<span>
|
|
60
|
-
${i18n`内存`}
|
|
60
|
+
${i18n`内存`}:
|
|
61
61
|
</span>
|
|
62
62
|
<span>
|
|
63
63
|
<progbar danger:="memery[0]/memery[1]<.05" :current="memeryUsed" :total="memery[1]"></progbar>
|
|
@@ -15,6 +15,7 @@ function main() {
|
|
|
15
15
|
progbar,
|
|
16
16
|
usercode: null,
|
|
17
17
|
async register() {
|
|
18
|
+
await yousure(i18n`获取注册号时,请确保您的服务器可以通过公网访问。暂不支持非公网服务器获取注册号。`, [i18n`继续` + "(C)", i18n`取消` + "(Q)#white"]);
|
|
18
19
|
var usercode = await data.from("register");
|
|
19
20
|
serverStatus.userid = scope.usercode = usercode;
|
|
20
21
|
},
|
package/coms/zimoli/yousure.js
CHANGED
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
* 确定就继续,取消就中断
|
|
4
4
|
*/
|
|
5
5
|
function yousure(title = i18n`您确定要这么做吗?`, content = i18n`当前操作需要您再次确认`) {
|
|
6
|
-
var options = [button(i18n`确定` + "(Y)"), button(i18n`取消` + "(N)", "white")];
|
|
6
|
+
var options = isArray(content) ? content : arguments[2] || [button(i18n`确定` + "(Y)"), button(i18n`取消` + "(N)", "white")];
|
|
7
|
+
options = options.map(a => {
|
|
8
|
+
if (typeof a === 'string') a = button(a);
|
|
9
|
+
return a;
|
|
10
|
+
});
|
|
7
11
|
options[0].tabindex = -1;
|
|
8
12
|
options[1].tabindex = -1;
|
|
9
13
|
var changeFocus = function (event) {
|
|
@@ -179,10 +179,36 @@
|
|
|
179
179
|
render.refresh(nlist);
|
|
180
180
|
};
|
|
181
181
|
var spacing = false;
|
|
182
|
+
var isEqual = function (a, b) {
|
|
183
|
+
return a === b || !a && !b;
|
|
184
|
+
};
|
|
185
|
+
var getNodeText = function (node) {
|
|
186
|
+
if (!node) return '';
|
|
187
|
+
if (node.nodeType === 3) return node.nodeValue;
|
|
188
|
+
if (node.nodeType === 1) return node.innerText;
|
|
189
|
+
return '';
|
|
190
|
+
}
|
|
182
191
|
var getNodeAt = function (row, col) {
|
|
183
192
|
var d = clist.at(row);
|
|
184
193
|
if (!d) return [];
|
|
185
194
|
var c = d.firstChild;
|
|
195
|
+
if (!spacing) {
|
|
196
|
+
var t = d.innerText;
|
|
197
|
+
var tbb = t.charAt(col - 3);
|
|
198
|
+
var tb = t.charAt(col - 2);
|
|
199
|
+
var ta = t.charAt(col - 1);
|
|
200
|
+
var tf = t.charAt(col);
|
|
201
|
+
var tff = t.charAt(col + 1);
|
|
202
|
+
if (ta === " " && isEqual(tb, anchorChar)) {
|
|
203
|
+
col++;
|
|
204
|
+
}
|
|
205
|
+
else if (isEqual(ta, anchorChar) && !isEqual(tb, anchorChar)) {
|
|
206
|
+
col++;
|
|
207
|
+
}
|
|
208
|
+
else if (anchorChar === " " && isEqual(ta, followChar) && !isEqual(tf, followChar)) {
|
|
209
|
+
col--;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
186
212
|
var inc = 0;
|
|
187
213
|
while (c) {
|
|
188
214
|
if (c.nodeType === 1) {
|
|
@@ -201,14 +227,10 @@
|
|
|
201
227
|
if (inc + tl > col) {
|
|
202
228
|
col -= inc;
|
|
203
229
|
inc = 0;
|
|
204
|
-
if (!spacing && t.charAt(col - 1) === " ") {
|
|
205
|
-
col++;
|
|
206
|
-
}
|
|
207
230
|
break;
|
|
208
231
|
}
|
|
209
232
|
else if (inc + tl === col) {
|
|
210
|
-
|
|
211
|
-
else break;
|
|
233
|
+
break;
|
|
212
234
|
}
|
|
213
235
|
inc += tl;
|
|
214
236
|
c = c.nextSibling;
|
|
@@ -430,13 +452,17 @@
|
|
|
430
452
|
document.execCommand('forwardDelete');
|
|
431
453
|
}
|
|
432
454
|
else if (data in pairsmap) {
|
|
433
|
-
if (inText
|
|
455
|
+
if (inText) {
|
|
456
|
+
if (/^'/.test(data)) return;
|
|
457
|
+
}
|
|
434
458
|
patchAfter = pairsmap[data];
|
|
435
459
|
}
|
|
436
460
|
}
|
|
437
461
|
else {
|
|
438
462
|
if (data in pairsmap) {
|
|
439
|
-
if (inText
|
|
463
|
+
if (inText) {
|
|
464
|
+
if (/^'/.test(data)) return;
|
|
465
|
+
}
|
|
440
466
|
patchAfter = pairsmap[data];
|
|
441
467
|
}
|
|
442
468
|
}
|