efront 4.23.9 → 4.24.1

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 (80) hide show
  1. package/#/345/233/275/351/231/205/345/214/226.yml +347 -65
  2. package/apps/pivot/#/345/233/275/351/231/205/345/214/226.yml +2 -0
  3. package/apps/pivot/api.yml +1 -0
  4. package/apps/pivot/auth/login.html +2 -1
  5. package/apps/pivot/auth/login.js +1 -0
  6. package/apps/pivot/auth/login.less +1 -0
  7. package/apps/pivot/cert/edit.js +1 -1
  8. package/apps/pivot/cert/list.js +1 -1
  9. package/apps/pivot/cert/main.xht +6 -6
  10. package/apps/pivot/cert/orders.xht +8 -8
  11. package/apps/pivot/cert/update.xht +3 -3
  12. package/apps/pivot/db/config.xht +1 -1
  13. package/apps/pivot/db/edit.xht +4 -4
  14. package/apps/pivot/db/list.xht +4 -4
  15. package/apps/pivot/dht/list.js +4 -4
  16. package/apps/pivot/dict/edit.js +1 -1
  17. package/apps/pivot/dict/list.js +1 -1
  18. package/apps/pivot/home/welcome.html +47 -12
  19. package/apps/pivot/home/welcome.js +11 -5
  20. package/apps/pivot/home/welcome.less +16 -1
  21. package/apps/pivot/link/index.js +7 -4
  22. package/apps/pivot/link/list.html +2 -2
  23. package/apps/pivot/link/room.js +2 -2
  24. package/apps/pivot/main.js +2 -0
  25. package/apps/pivot/menu-en.yml +16 -0
  26. package/apps/pivot/proxy/edit.js +1 -1
  27. package/apps/pivot/proxy/list.js +2 -2
  28. package/apps/pivot/register.jsp +4 -0
  29. package/apps/pivot/share/edit.html +3 -3
  30. package/apps/pivot/share/list.js +3 -3
  31. package/apps/pivot/task/edit.js +1 -1
  32. package/apps/pivot/task/invoke.html +2 -2
  33. package/apps/pivot/task/invoke.js +11 -3
  34. package/apps/pivot/task/invoke.less +3 -1
  35. package/apps/pivot/task/list.js +3 -3
  36. package/apps/pivot/task/rsync.html +3 -3
  37. package/apps/pivot/task/rsync.js +1 -1
  38. package/apps/pivot/token/edit.js +1 -1
  39. package/apps/pivot/token/list.js +1 -1
  40. package/apps/pivot/wow/root.js +1 -1
  41. package/apps/pivot//344/270/273/351/241/265.html +1 -1
  42. package/coms/basic/#loader.js +7 -0
  43. package/coms/basic/cross_.js +4 -3
  44. package/coms/basic/i18n-chooser.xht +17 -0
  45. package/coms/basic/i18n-supports.js +30 -0
  46. package/coms/basic/i18n.js +25 -1
  47. package/coms/basic/parseURL.js +2 -2
  48. package/coms/basic/parseURL_test.js +2 -1
  49. package/coms/basic_/Promise.js +21 -18
  50. package/coms/basic_/WeakMap.js +12 -6
  51. package/coms/compile/Program.js +4 -4
  52. package/coms/compile/translate.js +23 -0
  53. package/coms/explorer/context.js +11 -11
  54. package/coms/frame/dict.js +1 -1
  55. package/coms/frame/edit.html +3 -3
  56. package/coms/frame/list.html +1 -1
  57. package/coms/frame/list.js +3 -3
  58. package/coms/frame/route.js +21 -9
  59. package/coms/pivot/left-footer.xht +4 -1
  60. package/coms/pivot/server-status.js +1 -0
  61. package/coms/reptile/cross.js +1 -0
  62. package/coms/zimoli/chooseFile.js +1 -1
  63. package/coms/zimoli/cless.js +2 -2
  64. package/coms/zimoli/createUploadURL.js +1 -1
  65. package/coms/zimoli/field.html +1 -1
  66. package/coms/zimoli/field.js +1 -0
  67. package/coms/zimoli/menuItem.js +3 -1
  68. package/coms/zimoli/prompt.less +3 -1
  69. package/coms/zimoli/render.js +3 -2
  70. package/coms/zimoli/selectList.js +3 -3
  71. package/coms/zimoli/selectListEdit.html +5 -5
  72. package/coms/zimoli/table.js +1 -1
  73. package/coms/zimoli/table.less +1 -2
  74. package/coms/zimoli/yousure.js +2 -2
  75. package/coms/zimoli/zimoli.js +46 -15
  76. package/coms//350/214/250/350/217/260//347/274/226/350/276/221/346/241/206.xht +31 -12
  77. package/docs/main.xht +19 -6
  78. package/docs//345/267/245/345/205/267//345/233/275/351/231/205/345/214/226.xht +32 -40
  79. package/package.json +1 -1
  80. package/public/efront.js +1 -1
@@ -1,3 +1,321 @@
1
+ - zh-CN: 英文
2
+ en: English
3
+
4
+ - zh-CN: 英语
5
+ en: English
6
+
7
+ - zh-CN: 中文繁体
8
+ en: Traditional Chinese
9
+
10
+ - zh-CN: 繁体中文
11
+ en: Traditional Chinese
12
+
13
+ - zh-CN: 返回
14
+ en: Return
15
+
16
+ - zh-CN: 返回
17
+ en: Back
18
+
19
+ - zh-CN: 路径不存在
20
+ en: Path does not exist
21
+
22
+ - zh-CN: 路径不存在
23
+ en: path does not exist
24
+
25
+ - zh-CN: "参数异常: $1"
26
+ en: "Parameter exception: $1"
27
+
28
+ - zh-CN: 参数异常:$1
29
+ en: "Parameter exception: $1"
30
+
31
+ - zh-CN: 确定
32
+ en: Confirm
33
+
34
+ - zh-CN: 确认
35
+ en: Confirm
36
+
37
+ - zh-CN: 无法在当前浏览器操作!
38
+ en: Cannot operate in the current browser!
39
+
40
+ - zh-CN: 无法在当前浏览器操作!
41
+ en: Cannot operate in the current browser!
42
+
43
+ - zh-CN: 不启用
44
+ en: Disable
45
+
46
+ - zh-CN: 禁用
47
+ en: Disable
48
+
49
+ - zh-CN: 删除
50
+ en: Delete
51
+
52
+ - zh-CN: 删除
53
+ en: delete
54
+
55
+ - zh-CN: 当前服务器不可注册用户
56
+ en: The current server is unable to register users
57
+
58
+ - zh-CN: 当前服务器不可注册用户!
59
+ en: The current server cannot register users!
60
+
61
+ - zh-CN: 数据库不存在
62
+ en: The database does not exist
63
+
64
+ - zh-CN: 非法访问
65
+ en: illegal access
66
+
67
+ - zh-CN: 您已注册过,无法重新注册!
68
+ en: You have already registered and cannot register again!
69
+
70
+ - zh-CN: 注册号
71
+ en: Registration No
72
+
73
+ - zh-CN: 注销
74
+ en: log off
75
+
76
+ - zh-CN: 注册
77
+ en: register
78
+
79
+ - zh-CN: 标记不匹配
80
+ en: Tag mismatch
81
+
82
+ - zh-CN: 输入JSON格式的数据
83
+ en: Input data in JSON format
84
+
85
+ - zh-CN: 启用
86
+ en: Enable
87
+
88
+ - zh-CN: 跳转
89
+ en: Jump
90
+
91
+ - zh-CN: 转发
92
+ en: Forward
93
+
94
+ - zh-CN: 未审核
95
+ en: Unaudited
96
+
97
+ - zh-CN: 审核通过
98
+ en: Approved
99
+
100
+ - zh-CN: 生成中
101
+ en: Generating in progress
102
+
103
+ - zh-CN: 生效
104
+ en: Take effect
105
+
106
+ - zh-CN: 密钥管理
107
+ en: Key Management
108
+
109
+ - zh-CN: 任务
110
+ en: Task
111
+
112
+ - zh-CN: 执行
113
+ en: Execute
114
+
115
+ - zh-CN: 正在执行..
116
+ en: Executing
117
+
118
+ - zh-CN: 完成!
119
+ en: Done!
120
+
121
+ - zh-CN: 任务管理
122
+ en: Task management
123
+
124
+ - zh-CN: 同步
125
+ en: Synchronous
126
+
127
+ - zh-CN: 同步完成!
128
+ en: Synchronization completed!
129
+
130
+ - zh-CN: 同步任务
131
+ en: Synchronize tasks
132
+
133
+ - zh-CN: 当前
134
+ en: Current
135
+
136
+ - zh-CN: 短链接
137
+ en: Short Link
138
+
139
+ - zh-CN: 访问
140
+ en: Visit
141
+
142
+ - zh-CN: 自动刷新
143
+ en: Auto refresh
144
+
145
+ - zh-CN: 新建连接
146
+ en: Make new connection
147
+
148
+ - zh-CN: 房间
149
+ en: Room
150
+
151
+ - zh-CN: 会话
152
+ en: Conversation
153
+
154
+ - zh-CN: 连接
155
+ en: Connect
156
+
157
+ - zh-CN: 未知
158
+ en: Unknown
159
+
160
+ - zh-CN: 字典
161
+ en: Dictionary
162
+
163
+ - zh-CN: 接口管理
164
+ en: Interfaces
165
+
166
+ - zh-CN: DHT服务器管理
167
+ en: DHT Server Management
168
+
169
+ - zh-CN: 从文件读取
170
+ en: Read from file
171
+
172
+ - zh-CN: 当前浏览器无法读取文件
173
+ en: The current browser is unable to read the file
174
+
175
+ - zh-CN: 读取文件失败!
176
+ en: Failed to read file!
177
+
178
+ - zh-CN: 请在支持window.crypto.subtle的浏览器上使用此页面的功能
179
+ en: Please use the functionality of this page on browsers that support window.crypto.subtle
180
+
181
+ - zh-CN: 检查账户
182
+ en: Check account
183
+
184
+ - zh-CN: 从证书列表同步
185
+ en: Synchronize from certificate list
186
+
187
+ - zh-CN: 暂无订单
188
+ en: No orders at the moment
189
+
190
+ - zh-CN: 删除订单
191
+ en: Delete Order
192
+
193
+ - zh-CN: 刷新
194
+ en: Refresh
195
+
196
+ - zh-CN: 提交审核
197
+ en: Submit for review
198
+
199
+ - zh-CN: 请求证书
200
+ en: Request certificate
201
+
202
+ - zh-CN: 查看证书
203
+ en: View Certificate
204
+
205
+ - zh-CN: 上传到服务器
206
+ en: Upload to server
207
+
208
+ - zh-CN: 订单异常
209
+ en: Order exception
210
+
211
+ - zh-CN: 执行更新
212
+ en: Perform updates
213
+
214
+ - zh-CN: 替换证书
215
+ en: Replace Certificate
216
+
217
+ - zh-CN: 保存计划
218
+ en: Save Plan
219
+
220
+ - zh-CN: 您确定要这么做吗?
221
+ en: Are you sure you want to do this?
222
+
223
+ - zh-CN: 当前操作需要您再次确认
224
+ en: The current operation requires your confirmation again
225
+
226
+ - zh-CN: 操作
227
+ en: Operate
228
+
229
+ - zh-CN: 暂不支持跨服务器操作!
230
+ en: Cross server operations are not currently supported!
231
+
232
+ - zh-CN: 确认取消
233
+ en: Confirm Cancel
234
+
235
+ - zh-CN: 服务器版本
236
+ en: Server version
237
+
238
+ - zh-CN: nodejs版本
239
+ en: Node.js version
240
+
241
+ - zh-CN: 操作系统
242
+ en: operating system
243
+
244
+ - zh-CN: 处理器
245
+ en: Processor
246
+
247
+ - zh-CN: 清理服务器缓存
248
+ en: Clean up server cache
249
+
250
+ - zh-CN: 重启服务器
251
+ en: Restart the server
252
+
253
+ - zh-CN: 重启
254
+ en: Restart
255
+
256
+ - zh-CN: 内存
257
+ en: Memory
258
+
259
+ - zh-CN: 可用
260
+ en: Available
261
+
262
+ - zh-CN: 总内存
263
+ en: Total memory
264
+
265
+ - zh-CN: 搜索或添加
266
+ en: Search or add
267
+
268
+ - zh-CN: 管理
269
+ en: Manage
270
+
271
+ - zh-CN: 选项 $1 已存在!
272
+ en: Option $1 already exists!
273
+
274
+ - zh-CN: 切换语言
275
+ en: Switch language
276
+
277
+ - zh-CN: 中文简体
278
+ en: Simplified Chinese
279
+
280
+ - zh-CN: 葡萄牙语
281
+ en: Portuguese
282
+
283
+ - zh-CN: 波兰语
284
+ en: Polish
285
+
286
+ - zh-CN: 测试
287
+ en: Test
288
+
289
+ - zh-CN: 全部测试
290
+ en: All Tests
291
+
292
+ - zh-CN: 添加可用链接
293
+ en: Add available links
294
+
295
+ - zh-CN: 配置
296
+ en: Configuration
297
+
298
+ - zh-CN: 添加动作
299
+ en: Add action
300
+
301
+ - zh-CN: 编辑数据
302
+ en: Edit Data
303
+
304
+ - zh-CN: 请求方法错误
305
+ en: Request method error
306
+
307
+ - zh-CN: 商品数量过多,无法完成交易!
308
+ en: "Too many products, unable to complete transaction!"
309
+
310
+ - zh-CN: 商品信息已变更,请刷新页面后重新购买!
311
+ en: The product information has been changed. Please refresh the page and make a new purchase!
312
+
313
+ - zh-CN: 商品金额过大,交易无法进行
314
+ en: "The amount of the product is too large, and the transaction cannot proceed"
315
+
316
+ - zh-CN: 商品总价值过大,交易无法进行
317
+ en: "The total value of the product is too high, and the transaction cannot proceed"
318
+
1
319
  - zh-CN: $1仅在开发环境存在,供开发者调试查看,$2
2
320
  en: "$1 only exists in the development environment for developers to debug and view, $2"
3
321
 
@@ -7,9 +325,6 @@
7
325
  - zh-CN: 无法存入数据到$1
8
326
  en: Unable to deposit data to $1
9
327
 
10
- - zh-CN: "参数异常: $1"
11
- en: "Parameter exception: $1"
12
-
13
328
  - zh-CN: 此数据不可查询!
14
329
  en: This data is not searchable!
15
330
 
@@ -82,9 +397,6 @@
82
397
  - zh-CN: 发现异常属性:$1
83
398
  en: "Abnormal attribute found: $1"
84
399
 
85
- - zh-CN: 标记不匹配
86
- en: Tag mismatch
87
-
88
400
  - zh-CN: 文件位置
89
401
  en: File location
90
402
 
@@ -284,13 +596,13 @@
284
596
  en: Loading..
285
597
 
286
598
  - zh-CN: 查看
287
- en: check
599
+ en: Check
288
600
 
289
601
  - zh-CN: 单击生成
290
602
  en: Click to generate
291
603
 
292
604
  - zh-CN: 同意
293
- en: agree
605
+ en: Agree
294
606
 
295
607
  - zh-CN: 每行一个,不支持泛域名
296
608
  en: "One per line, does not support generic domain names"
@@ -302,7 +614,7 @@
302
614
  en: Unable to complete audit through HTTP service
303
615
 
304
616
  - zh-CN: 下载
305
- en: download
617
+ en: Download
306
618
 
307
619
  - zh-CN: 以后不会再测试是否兼容vue了,也不准备增加对vue3及后续版本的支持,望知悉。
308
620
  en: "We will no longer test whether it is compatible with Vue in the future, and we are not planning to add support for Vue3 and subsequent versions. Please be informed."
@@ -373,18 +685,12 @@
373
685
  - zh-CN: 发现不同的翻译
374
686
  en: Discovering different translations
375
687
 
376
- - zh-CN: 确定
377
- en: Confirm
378
-
379
688
  - zh-CN: 导出完成
380
689
  en: Export completed
381
690
 
382
691
  - zh-CN: 继续
383
692
  en: Continue
384
693
 
385
- - zh-CN: 确认
386
- en: Confirm
387
-
388
694
  - zh-CN: 用于$1的证书不可用
389
695
  en: Certificate not available for $1
390
696
 
@@ -464,10 +770,10 @@
464
770
  en: Private key
465
771
 
466
772
  - zh-CN: 证书
467
- en: certificate
773
+ en: Certificate
468
774
 
469
775
  - zh-CN: 账户
470
- en: account
776
+ en: Account
471
777
 
472
778
  - zh-CN: 当前服务器的域名
473
779
  en: The domain name of the current server
@@ -521,7 +827,7 @@
521
827
  en: pathend
522
828
 
523
829
  - zh-CN: 邮箱
524
- en: mailbox
830
+ en: Mailbox
525
831
 
526
832
  - zh-CN: 过滤空串
527
833
  en: Filter empty strings
@@ -721,9 +1027,6 @@
721
1027
  - zh-CN: 绑定事件参数无效$1
722
1028
  en: Invalid binding event parameter $1
723
1029
 
724
- - zh-CN: 参数异常:$1
725
- en: "Parameter exception: $1"
726
-
727
1030
  - zh-CN: 当前环境无法使用
728
1031
  en: The current environment cannot be used
729
1032
 
@@ -829,9 +1132,6 @@
829
1132
  - zh-CN: "重复定义: $1"
830
1133
  en: "Duplicate definition: $1"
831
1134
 
832
- - zh-CN: 路径不存在
833
- en: Path does not exist
834
-
835
1135
  - zh-CN: 指定的任务 $1 不存在!
836
1136
  en: The specified task $1 does not exist!
837
1137
 
@@ -1120,9 +1420,6 @@
1120
1420
  - zh-CN: 文件内容不足
1121
1421
  en: Insufficient file content
1122
1422
 
1123
- - zh-CN: 路径不存在
1124
- en: path does not exist
1125
-
1126
1423
  - zh-CN: 文件已存在
1127
1424
  en: file already exist
1128
1425
 
@@ -1150,26 +1447,23 @@
1150
1447
  - zh-CN: 发送
1151
1448
  en: send
1152
1449
 
1153
- - zh-CN: 返回(O)
1154
- en: Return(O)
1450
+ - zh-CN: 打开
1451
+ en: Open
1155
1452
 
1156
- - zh-CN: 打开(O)
1157
- en: Open(O)
1453
+ - zh-CN: 剪切
1454
+ en: Cut
1158
1455
 
1159
- - zh-CN: 剪切(C)
1160
- en: Cut(C)
1456
+ - zh-CN: 复制
1457
+ en: Copy
1161
1458
 
1162
- - zh-CN: 复制(R)
1163
- en: Copy(R)
1459
+ - zh-CN: 全选
1460
+ en: Select All
1164
1461
 
1165
- - zh-CN: 全选(A)
1166
- en: Select All(A)
1462
+ - zh-CN: 替换
1463
+ en: Replace
1167
1464
 
1168
- - zh-CN: 替换(R)
1169
- en: Replace(R)
1170
-
1171
- - zh-CN: 粘贴(V)
1172
- en: Paste(V)
1465
+ - zh-CN: 粘贴
1466
+ en: Paste
1173
1467
 
1174
1468
  - zh-CN: 不能移入子文件夹
1175
1469
  en: Unable to move into sub folder
@@ -1186,20 +1480,17 @@
1186
1480
  - zh-CN: 有文件正在复制!
1187
1481
  en: There are files being copied!
1188
1482
 
1189
- - zh-CN: 新建文件夹(D)
1190
- en: New folder(D)
1191
-
1192
- - zh-CN: 添加文件(F)
1193
- en: Add file(F)
1483
+ - zh-CN: 新建文件夹
1484
+ en: New folder
1194
1485
 
1195
- - zh-CN: 重命名(R)
1196
- en: Renaming(R)
1486
+ - zh-CN: 添加文件
1487
+ en: Add file
1197
1488
 
1198
- - zh-CN: 确认删除(D)
1199
- en: Confirm deletion(D)
1489
+ - zh-CN: 重命名
1490
+ en: Renaming
1200
1491
 
1201
- - zh-CN: 删除(D)
1202
- en: Delete(D)
1492
+ - zh-CN: 确认删除
1493
+ en: Confirm deletion
1203
1494
 
1204
1495
  - zh-CN: 确认要删除如下 $1 项吗?
1205
1496
  en: Are you sure you want to delete the following $1 item?
@@ -1348,9 +1639,6 @@
1348
1639
  - zh-CN: 自动识别环境并启动测试环境服务器
1349
1640
  en: Automatically recognize the environment and start the testing environment server
1350
1641
 
1351
- - zh-CN: 返回
1352
- en: Back
1353
-
1354
1642
  - zh-CN: 未没找到匹配的资源:$1
1355
1643
  en: "No matching resources found: $1"
1356
1644
 
@@ -1459,9 +1747,6 @@
1459
1747
  - zh-CN: 缺少导出名!
1460
1748
  en: Lack of guidance!
1461
1749
 
1462
- - zh-CN: 标记不匹配
1463
- en: Tag mismatch
1464
-
1465
1750
  - zh-CN: 类型不支持
1466
1751
  en: Type not supported
1467
1752
 
@@ -1774,12 +2059,6 @@
1774
2059
  - zh-CN: 中文
1775
2060
  en: Chinese
1776
2061
 
1777
- - zh-CN: 繁体中文
1778
- en: Traditional Chinese
1779
-
1780
- - zh-CN: 英语
1781
- en: English
1782
-
1783
2062
  - zh-CN: 日语
1784
2063
  en: Japanese
1785
2064
 
@@ -2319,3 +2598,6 @@
2319
2598
 
2320
2599
  - zh-CN: 这是一个空白项目
2321
2600
  en: This is a blank project
2601
+
2602
+ - zh-CN: menu.yml
2603
+ en: menu-en.yml
@@ -0,0 +1,2 @@
1
+ - zh-CN: menu.yml
2
+ en: menu-en.yml
@@ -34,6 +34,7 @@
34
34
  unique-save: options ::unique-:data
35
35
  recert: options ::recert
36
36
  upload: put :path
37
+ register: options ::register
37
38
  https://api.map.baidu.com/:
38
39
  ipbaidu: get location/ip
39
40
  https://restapi.amap.com/:
@@ -9,4 +9,5 @@
9
9
  </div>
10
10
  <div message>
11
11
  ${i18n`${i18n`登录`}之前需要使用${`&nbsp;<b>efront password</b>&nbsp;`}命令在${i18n`服务器`}上设置${i18n`密码`}`}
12
- </div>
12
+ </div>
13
+ <i18n-chooser></i18n-chooser>
@@ -13,6 +13,7 @@ function main(host) {
13
13
  move.bindPosition(page, [.5, .5]);
14
14
  });
15
15
  renderWithDefaults(page, {
16
+ i18nChooser,
16
17
  fields, data: {
17
18
  host: host ? parseURL(host).host : data.getInstance("base").host || location.host,
18
19
  }, pending: false
@@ -22,6 +22,7 @@
22
22
  font-size: 12px;
23
23
  }
24
24
 
25
+
25
26
  .button {
26
27
  padding: 0px 40px;
27
28
  }
@@ -1 +1 @@
1
- pedit.bind(null, "证书", "cert");
1
+ pedit.bind(null, i18n`证书`, "cert");
@@ -1,4 +1,4 @@
1
- plist.bind(null, '接口管理', "cert", refilm`
1
+ plist.bind(null, i18n`接口管理`, "cert", refilm`
2
2
  *域名/hostname input/253
3
3
  公钥/private text
4
4
  私钥/public text
@@ -76,7 +76,7 @@
76
76
  </form>
77
77
  <script>
78
78
  var enabled = acme2.enabled;
79
- if (!enabled) return ["请在支持window.crypto.subtle的浏览器上使用此页面的功能"];
79
+ if (!enabled) return [i18n`请在支持window.crypto.subtle的浏览器上使用此页面的功能`];
80
80
  var form = view;
81
81
  var activeIndex = 0;
82
82
  var nosubmit = e => e.preventDefault();
@@ -147,7 +147,7 @@
147
147
  }}
148
148
  *邮箱/email email
149
149
  /termsOfServiceAgreed/同意 checker ${{
150
- async"《服务条款》"(data) {
150
+ async" Let’s Encrypt Subscriber Agreement"(data) {
151
151
  var termsOfService = await acme2.getTermsOfService();
152
152
  if (termsOfService) window.open(termsOfService, "_blank", "popup,noopener,noreferer")
153
153
  },
@@ -157,7 +157,7 @@
157
157
  return formdata.kid ? i18n`已创建账户` : '';
158
158
  },
159
159
  options: {
160
- async 检查账户(actived) {
160
+ async [i18n`检查账户`](actived) {
161
161
  var params = submit(actived.fields, formdata);
162
162
  await saveUnique(params);
163
163
  formdata.kid = await acme2.getAccount(params);
@@ -165,7 +165,7 @@
165
165
  },
166
166
  },
167
167
  actions: {
168
- async 创建账户(actived) {
168
+ async [i18n`创建账户`](actived) {
169
169
  if (formdata.kid) {
170
170
  if (!await confirm(i18n`您已创建账户,请确认是否重新创建?`)) return;
171
171
  }
@@ -186,13 +186,13 @@
186
186
  *当前服务器的域名/domain/每行一个,不支持泛域名 text
187
187
  `,
188
188
  options: {
189
- async 从证书列表同步() {
189
+ async [i18n`从证书列表同步`]() {
190
190
  var a = await plist.load('cert', 'hostname');
191
191
  formdata.domain = a.map(a => a.hostname).join('\r\n');
192
192
  }
193
193
  },
194
194
  actions: {
195
- async 创建订单(actived) {
195
+ async [i18n`创建订单`](actived) {
196
196
  var params = submit(actived.fields, formdata);
197
197
  await acme2.newOrder(params);
198
198
  await saveUnique();
@@ -57,23 +57,23 @@
57
57
  </style>
58
58
  <xmenu -src="o of orders" @active="openOrder(o)"></xmenu>
59
59
  <div -if="!order">
60
- 暂无订单
60
+ ${i18n`暂无订单`}
61
61
  </div>
62
62
  <form -elseif="order.oid" onsubmit="event.preventDefault()">
63
63
  <div body>
64
64
  <field -repeat="f in fields" _src="[f,order]"></field>
65
65
  </div>
66
66
  <div foot>
67
- <button -if="order?.removable" class="danger" confirm @click="dropOrder(order)">删除订单</button>
68
- <button -if="order.status==='processing'" @click="openOrder(order)">刷新</button>
69
- <button -if="order.status==='pending'" @click="auditOrder(order)">提交审核</button>
70
- <button -if="order.status==='ready'" @click="finalize(order)">请求证书</button>
71
- <button -if="order.status==='valid'" @click="see(order)">查看证书</button>
72
- <button -if="order.shouldupload" @click="upload(order)">上传到服务器</button>
67
+ <button -if="order?.removable" class="danger" confirm @click="dropOrder(order)">${i18n`删除订单`}</button>
68
+ <button -if="order.status==='processing'" @click="openOrder(order)">${i18n`刷新`}</button>
69
+ <button -if="order.status==='pending'" @click="auditOrder(order)">${i18n`提交审核`}</button>
70
+ <button -if="order.status==='ready'" @click="finalize(order)">${i18n`请求证书`}</button>
71
+ <button -if="order.status==='valid'" @click="see(order)">${i18n`查看证书`}</button>
72
+ <button -if="order.shouldupload" @click="upload(order)">${i18n`上传到服务器`}</button>
73
73
  </div>
74
74
  </form>
75
75
  <div -else>
76
- 订单异常
76
+ ${i18n`订单异常`}
77
77
  </div>
78
78
  <script>
79
79
  var fields = refilm`
@@ -3,9 +3,9 @@
3
3
  <field -repeat="f in fields" -src="[f,acme2]"></field>
4
4
  </div>
5
5
  <div foot>
6
- <a confirm @click="autoUpdate()">执行更新</a>
7
- <a @click="updateCert()">替换证书</a>
8
- <button @click="saveSchadule()">保存计划</button>
6
+ <a confirm @click="autoUpdate()">${i18n`执行更新`}</a>
7
+ <a @click="updateCert()">${i18n`替换证书`}</a>
8
+ <button @click="saveSchadule()">${i18n`保存计划`}</button>
9
9
  </div>
10
10
  </form>
11
11
  <script>
@@ -48,7 +48,7 @@
48
48
  <div a.name?></div>
49
49
  </div>
50
50
  </padding>
51
- <a insert @click="editAction(null)">添加动作</a>
51
+ <a insert @click="editAction(null)">${i18n`添加动作`}</a>
52
52
  </lattice>
53
53
  </div>
54
54
  <div foot>