esa-cli 0.0.5 → 1.0.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.
- package/README.md +34 -145
- package/dist/commands/commit/index.js +49 -104
- package/dist/commands/commit/prodBuild.js +2 -3
- package/dist/commands/common/constant.js +4 -4
- package/dist/commands/common/utils.js +419 -0
- package/dist/commands/config.js +2 -2
- package/dist/commands/deploy/helper.js +43 -49
- package/dist/commands/deploy/index.js +51 -174
- package/dist/commands/deployments/delete.js +32 -22
- package/dist/commands/deployments/index.js +4 -4
- package/dist/commands/deployments/list.js +21 -34
- package/dist/commands/dev/build.js +3 -3
- package/dist/commands/dev/doProcess.js +5 -5
- package/dist/commands/dev/ew2/cacheService.js +33 -0
- package/dist/commands/dev/ew2/devEntry.js +2 -1
- package/dist/commands/dev/ew2/devPack.js +31 -20
- package/dist/commands/dev/ew2/kvService.js +50 -0
- package/dist/commands/dev/ew2/mock/cache.js +99 -15
- package/dist/commands/dev/ew2/mock/kv.js +142 -21
- package/dist/commands/dev/ew2/server.js +163 -28
- package/dist/commands/dev/index.js +17 -18
- package/dist/commands/dev/mockWorker/devPack.js +19 -10
- package/dist/commands/dev/mockWorker/server.js +7 -6
- package/dist/commands/domain/add.js +4 -4
- package/dist/commands/domain/delete.js +3 -3
- package/dist/commands/domain/index.js +4 -4
- package/dist/commands/domain/list.js +7 -7
- package/dist/commands/init/helper.js +654 -21
- package/dist/commands/init/index.js +88 -152
- package/dist/commands/init/snippets/nextjs/next.config.mjs +6 -0
- package/dist/commands/init/snippets/nextjs/next.config.ts +7 -0
- package/dist/commands/init/snippets/react-router/react-router.config.ts +7 -0
- package/dist/commands/init/template.jsonc +84 -0
- package/dist/commands/init/types.js +1 -0
- package/dist/commands/lang.js +2 -2
- package/dist/commands/login/index.js +74 -34
- package/dist/commands/logout.js +6 -6
- package/dist/commands/route/add.js +101 -43
- package/dist/commands/route/delete.js +6 -6
- package/dist/commands/route/helper.js +9 -10
- package/dist/commands/route/index.js +4 -4
- package/dist/commands/route/list.js +4 -4
- package/dist/commands/routine/delete.js +9 -8
- package/dist/commands/routine/index.js +6 -5
- package/dist/commands/routine/list.js +45 -39
- package/dist/commands/site/index.js +3 -3
- package/dist/commands/site/list.js +6 -7
- package/dist/commands/utils.js +61 -25
- package/dist/components/descriptionInput.js +1 -1
- package/dist/components/filterSelector.js +1 -1
- package/dist/components/mutiLevelSelect.js +19 -20
- package/dist/components/mutiSelectTable.js +1 -1
- package/dist/components/routeBuilder.js +68 -0
- package/dist/components/selectInput.js +2 -3
- package/dist/components/selectItem.js +1 -1
- package/dist/docs/Commands_en.md +164 -117
- package/dist/docs/Commands_zh_CN.md +155 -107
- package/dist/docs/Config_en.md +70 -0
- package/dist/docs/Config_zh_CN.md +68 -0
- package/dist/i18n/index.js +2 -2
- package/dist/i18n/locales.json +418 -82
- package/dist/index.js +28 -13
- package/dist/libs/api.js +3 -6
- package/dist/libs/apiService.js +201 -70
- package/dist/libs/git/index.js +86 -9
- package/dist/libs/interface.js +0 -1
- package/dist/libs/logger.js +162 -10
- package/dist/libs/service.js +2 -2
- package/dist/libs/templates/index.js +1 -1
- package/dist/utils/checkAssetsExist.js +80 -0
- package/dist/utils/checkDevPort.js +5 -19
- package/dist/utils/checkEntryFileExist.js +10 -0
- package/dist/utils/checkIsRoutineCreated.js +27 -21
- package/dist/utils/checkVersion.js +119 -1
- package/dist/utils/command.js +149 -0
- package/dist/utils/compress.js +142 -0
- package/dist/utils/download.js +8 -8
- package/dist/utils/fileMd5.js +1 -1
- package/dist/utils/fileUtils/index.js +136 -45
- package/dist/utils/installDeno.js +4 -4
- package/dist/utils/installEw2.js +9 -9
- package/dist/utils/openInBrowser.js +1 -1
- package/dist/utils/prompt.js +97 -0
- package/package.json +23 -12
- package/zh_CN.md +31 -150
package/dist/i18n/locales.json
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
"zh_CN": "提交代码,保存为一个版本"
|
|
5
5
|
},
|
|
6
6
|
"commit_er_not_exist": {
|
|
7
|
-
"en": "No
|
|
7
|
+
"en": "No Functions& Pages found, creating a new one",
|
|
8
8
|
"zh_CN": "没有找到任何函数,正在创建新函数"
|
|
9
9
|
},
|
|
10
10
|
"commit_er_description": {
|
|
11
|
-
"en": "Enter a description for
|
|
11
|
+
"en": "Enter a description for Functions& Pages",
|
|
12
12
|
"zh_CN": "请输入函数的描述"
|
|
13
13
|
},
|
|
14
14
|
"commit_version_description": {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"zh_CN": "发生错误"
|
|
21
21
|
},
|
|
22
22
|
"commit_create_er_success": {
|
|
23
|
-
"en": "
|
|
24
|
-
"zh_CN": "
|
|
23
|
+
"en": "Functions& Pages created successfully.",
|
|
24
|
+
"zh_CN": "函数和Pages创建成功。"
|
|
25
25
|
},
|
|
26
26
|
"commit_upload_success": {
|
|
27
27
|
"en": "Code uploaded successfully.",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"zh_CN": "提交代码时发生错误。"
|
|
37
37
|
},
|
|
38
38
|
"summery_cd": {
|
|
39
|
-
"en": "Enter your
|
|
40
|
-
"zh_CN": "
|
|
39
|
+
"en": "Enter your project folder",
|
|
40
|
+
"zh_CN": "进入您的项目文件夹"
|
|
41
41
|
},
|
|
42
42
|
"summery_commit": {
|
|
43
43
|
"en": "Save a new version of code",
|
|
@@ -75,13 +75,9 @@
|
|
|
75
75
|
"en": "Production",
|
|
76
76
|
"zh_CN": "生产环境"
|
|
77
77
|
},
|
|
78
|
-
"deploy_env_canary": {
|
|
79
|
-
"en": "Canary",
|
|
80
|
-
"zh_CN": "灰度环境"
|
|
81
|
-
},
|
|
82
78
|
"deploy_description_routine": {
|
|
83
|
-
"en": "Enter the description of
|
|
84
|
-
"zh_CN": "
|
|
79
|
+
"en": "Enter the description of Functions& Pages",
|
|
80
|
+
"zh_CN": "请输入函数和Pages的描述"
|
|
85
81
|
},
|
|
86
82
|
"deploy_description_version": {
|
|
87
83
|
"en": "Enter the description of the code version",
|
|
@@ -96,23 +92,19 @@
|
|
|
96
92
|
"zh_CN": "请选择您要发布的版本"
|
|
97
93
|
},
|
|
98
94
|
"deploy_spec_select": {
|
|
99
|
-
"en": "Please select the spec of
|
|
95
|
+
"en": "Please select the spec of Functions& Pages you want to create",
|
|
100
96
|
"zh_CN": "请选择您要创建的函数规格"
|
|
101
97
|
},
|
|
102
98
|
"deploy_create_formal_version_ques": {
|
|
103
99
|
"en": "Do you want to create a formal version to deploy on production environment?",
|
|
104
100
|
"zh_CN": "是否创建正式版本以部署到生产环境?"
|
|
105
101
|
},
|
|
106
|
-
"deploy_select_canary": {
|
|
107
|
-
"en": "Please select the canary area(s) you want to deploy to",
|
|
108
|
-
"zh_CN": "请选择您要部署的灰度区域"
|
|
109
|
-
},
|
|
110
102
|
"deploy_success": {
|
|
111
103
|
"en": "Your code has been successfully deployed",
|
|
112
104
|
"zh_CN": "您的代码已成功部署"
|
|
113
105
|
},
|
|
114
106
|
"deploy_success_guide": {
|
|
115
|
-
"en": "
|
|
107
|
+
"en": "Add a custom domain",
|
|
116
108
|
"zh_CN": "运行此命令以添加域名"
|
|
117
109
|
},
|
|
118
110
|
"deploy_table_header_version": {
|
|
@@ -144,8 +136,8 @@
|
|
|
144
136
|
"zh_CN": "显示帮助"
|
|
145
137
|
},
|
|
146
138
|
"commit_create_er_fail": {
|
|
147
|
-
"en": "An error occurred while trying to create
|
|
148
|
-
"zh_CN": "
|
|
139
|
+
"en": "An error occurred while trying to create Functions& Pages",
|
|
140
|
+
"zh_CN": "创建函数和Pages时发生错误"
|
|
149
141
|
},
|
|
150
142
|
"commit_upload_fail": {
|
|
151
143
|
"en": "An error occurred while trying to upload your code",
|
|
@@ -172,8 +164,8 @@
|
|
|
172
164
|
"zh_CN": "帮助"
|
|
173
165
|
},
|
|
174
166
|
"common_sub_command_fail": {
|
|
175
|
-
"en": "Use esa <command> -h to see help",
|
|
176
|
-
"zh_CN": "使用 esa <command> -h 查看帮助"
|
|
167
|
+
"en": "Use esa-cli <command> -h to see help",
|
|
168
|
+
"zh_CN": "使用 esa-cli <command> -h 查看帮助"
|
|
177
169
|
},
|
|
178
170
|
"deployments_delete_describe": {
|
|
179
171
|
"en": "Delete one or more deployment versions",
|
|
@@ -200,7 +192,7 @@
|
|
|
200
192
|
"zh_CN": "构建完成"
|
|
201
193
|
},
|
|
202
194
|
"dev_describe": {
|
|
203
|
-
"en": "Start a local server for developing your
|
|
195
|
+
"en": "Start a local server for developing your project",
|
|
204
196
|
"zh_CN": "启动本地调试"
|
|
205
197
|
},
|
|
206
198
|
"dev_port_describe": {
|
|
@@ -212,8 +204,8 @@
|
|
|
212
204
|
"zh_CN": "读取 CLI 配置错误"
|
|
213
205
|
},
|
|
214
206
|
"dev_error_no_project_config": {
|
|
215
|
-
"en": "Error reading project configuration esa.toml file.",
|
|
216
|
-
"zh_CN": "读取项目配置 esa.toml 文件错误"
|
|
207
|
+
"en": "Error reading project configuration esa.jsonc (recommended) or esa.toml file.",
|
|
208
|
+
"zh_CN": "读取项目配置 esa.jsonc (推荐) 或 esa.toml 文件错误"
|
|
217
209
|
},
|
|
218
210
|
"dev_build_start": {
|
|
219
211
|
"en": "Starting build process",
|
|
@@ -232,20 +224,20 @@
|
|
|
232
224
|
"zh_CN": "Worker server 已重启"
|
|
233
225
|
},
|
|
234
226
|
"domain_add_describe": {
|
|
235
|
-
"en": "Bind a domain to
|
|
236
|
-
"zh_CN": "
|
|
227
|
+
"en": "Bind a domain to your project",
|
|
228
|
+
"zh_CN": "绑定域名到函数和Pages"
|
|
237
229
|
},
|
|
238
230
|
"domain_describe": {
|
|
239
|
-
"en": "Manage the domain names bound to your
|
|
240
|
-
"zh_CN": "
|
|
231
|
+
"en": "Manage the domain names bound to your project",
|
|
232
|
+
"zh_CN": "管理绑定到函数和Pages的域名"
|
|
241
233
|
},
|
|
242
234
|
"delete_describe": {
|
|
243
|
-
"en": "Delete a
|
|
244
|
-
"zh_CN": "
|
|
235
|
+
"en": "Delete a project",
|
|
236
|
+
"zh_CN": "删除一个函数和Pages"
|
|
245
237
|
},
|
|
246
238
|
"delete_routineName_positional_describe": {
|
|
247
|
-
"en": "The name of the
|
|
248
|
-
"zh_CN": "
|
|
239
|
+
"en": "The name of the project to delete",
|
|
240
|
+
"zh_CN": "要删除的函数和Pages名称"
|
|
249
241
|
},
|
|
250
242
|
"delete_success": {
|
|
251
243
|
"en": "Delete success!",
|
|
@@ -284,12 +276,12 @@
|
|
|
284
276
|
"zh_CN": "绑定域名:"
|
|
285
277
|
},
|
|
286
278
|
"init_describe": {
|
|
287
|
-
"en": "Initialize a
|
|
279
|
+
"en": "Initialize a project with a template",
|
|
288
280
|
"zh_CN": "选择模版初始化项目"
|
|
289
281
|
},
|
|
290
282
|
"init_input_name": {
|
|
291
|
-
"en": "Enter the name of
|
|
292
|
-
"zh_CN": "
|
|
283
|
+
"en": "Enter the name of project:",
|
|
284
|
+
"zh_CN": "输入项目的名称"
|
|
293
285
|
},
|
|
294
286
|
"init_skip_git": {
|
|
295
287
|
"en": "Git installation was skipped.",
|
|
@@ -300,8 +292,8 @@
|
|
|
300
292
|
"zh_CN": "切换为中文"
|
|
301
293
|
},
|
|
302
294
|
"list_describe": {
|
|
303
|
-
"en": "List all your
|
|
304
|
-
"zh_CN": "
|
|
295
|
+
"en": "List all your projects",
|
|
296
|
+
"zh_CN": "查看所有函数和Pages"
|
|
305
297
|
},
|
|
306
298
|
"list_deployment_positional_describe": {
|
|
307
299
|
"en": "(Optional) ID or URL of the deployment to tail. Specify by environment if deployment ID is unknown.",
|
|
@@ -316,8 +308,8 @@
|
|
|
316
308
|
"zh_CN": "查看所有站点名称"
|
|
317
309
|
},
|
|
318
310
|
"list_routine_name_title": {
|
|
319
|
-
"en": "List all of
|
|
320
|
-
"zh_CN": "
|
|
311
|
+
"en": "List all of Functions and Pages",
|
|
312
|
+
"zh_CN": "查看所有函数和Pages项目"
|
|
321
313
|
},
|
|
322
314
|
"login_describe": {
|
|
323
315
|
"en": "Login to the server",
|
|
@@ -360,13 +352,25 @@
|
|
|
360
352
|
"zh_CN": "注销成功"
|
|
361
353
|
},
|
|
362
354
|
"route_add_describe": {
|
|
363
|
-
"en": "Bind a Route to a
|
|
364
|
-
"zh_CN": "
|
|
355
|
+
"en": "Bind a Route to a project",
|
|
356
|
+
"zh_CN": "将路由绑定到函数和Pages"
|
|
365
357
|
},
|
|
366
358
|
"route_add_route_describe": {
|
|
367
359
|
"en": "The name of route to add",
|
|
368
360
|
"zh_CN": "要添加的路由名称"
|
|
369
361
|
},
|
|
362
|
+
"route_add_site_describe": {
|
|
363
|
+
"en": "The site to bind the route to. For example: example.com",
|
|
364
|
+
"zh_CN": "要绑定路由的站点"
|
|
365
|
+
},
|
|
366
|
+
"route_add_route_name_option": {
|
|
367
|
+
"en": "Route name (aliases)",
|
|
368
|
+
"zh_CN": "路由名称(别名)"
|
|
369
|
+
},
|
|
370
|
+
"route_add_route_value_option": {
|
|
371
|
+
"en": "The route value. For example: example.com/*",
|
|
372
|
+
"zh_CN": "路由值"
|
|
373
|
+
},
|
|
370
374
|
"route_add_invalid": {
|
|
371
375
|
"en": "The route does not correspond to the domain.",
|
|
372
376
|
"zh_CN": "该路由与域名不对应。"
|
|
@@ -400,8 +404,8 @@
|
|
|
400
404
|
"zh_CN": "路由删除失败!"
|
|
401
405
|
},
|
|
402
406
|
"route_describe": {
|
|
403
|
-
"en": "Manage the routes bound to your
|
|
404
|
-
"zh_CN": "
|
|
407
|
+
"en": "Manage the routes bound to your project",
|
|
408
|
+
"zh_CN": "管理绑定到函数和Pages的路由"
|
|
405
409
|
},
|
|
406
410
|
"route_list_describe": {
|
|
407
411
|
"en": "List all related routes",
|
|
@@ -444,11 +448,11 @@
|
|
|
444
448
|
"zh_CN": "Git状态检查错误"
|
|
445
449
|
},
|
|
446
450
|
"utils_bind_success": {
|
|
447
|
-
"en": "Binding domain ${domain} to
|
|
451
|
+
"en": "Binding domain ${domain} to project successfully",
|
|
448
452
|
"zh_CN": "域名 ${domain} 绑定成功"
|
|
449
453
|
},
|
|
450
454
|
"utils_bind_error": {
|
|
451
|
-
"en": "Binding domain ${domain} to
|
|
455
|
+
"en": "Binding domain ${domain} to project failed",
|
|
452
456
|
"zh_CN": "域名 ${domain} 绑定失败"
|
|
453
457
|
},
|
|
454
458
|
"utils_domain_error": {
|
|
@@ -464,8 +468,8 @@
|
|
|
464
468
|
"zh_CN": "用这个命令登录:${namedCommand}"
|
|
465
469
|
},
|
|
466
470
|
"routine_describe": {
|
|
467
|
-
"en": "Manage your
|
|
468
|
-
"zh_CN": "
|
|
471
|
+
"en": "Manage your project",
|
|
472
|
+
"zh_CN": "管理函数和Pages"
|
|
469
473
|
},
|
|
470
474
|
"route_input": {
|
|
471
475
|
"en": "Enter a Route:",
|
|
@@ -480,8 +484,8 @@
|
|
|
480
484
|
"zh_CN": "我们的Runtime还不支持此操作系统,我们暂时使用Deno作为本地开发runtime,需要先安装。"
|
|
481
485
|
},
|
|
482
486
|
"install_runtime_tip": {
|
|
483
|
-
"en": "🔔 Runtime must be installed to use esa dev. Installing...",
|
|
484
|
-
"zh_CN": "必须安装Runtime才能使用 esa dev。正在安装..."
|
|
487
|
+
"en": "🔔 Runtime must be installed to use esa-cli dev. Installing...",
|
|
488
|
+
"zh_CN": "必须安装Runtime才能使用 esa-cli dev。正在安装..."
|
|
485
489
|
},
|
|
486
490
|
"install_runtime_success": {
|
|
487
491
|
"en": "Runtime installed.",
|
|
@@ -489,7 +493,7 @@
|
|
|
489
493
|
},
|
|
490
494
|
"route_validate": {
|
|
491
495
|
"en": "You can add an asterisk (*) as the prefix or suffix to match more URLs, such as \"*.example.com/*\".",
|
|
492
|
-
"zh_CN": "您可以通过添加前缀或后缀通配符(*)来匹配更多的URL,例如:
|
|
496
|
+
"zh_CN": "您可以通过添加前缀或后缀通配符(*)来匹配更多的URL,例如: \"*.example.com/*\"."
|
|
493
497
|
},
|
|
494
498
|
"domain_input": {
|
|
495
499
|
"en": "Enter the name of domain (Support fuzzy matching on tab press):",
|
|
@@ -501,7 +505,7 @@
|
|
|
501
505
|
},
|
|
502
506
|
"deploy_first_time": {
|
|
503
507
|
"en": "This is first time to deploy. Let's create a version first!",
|
|
504
|
-
"zh_CN": "
|
|
508
|
+
"zh_CN": "这是您第一次部署此函数和Pages,请先创建一个版本"
|
|
505
509
|
},
|
|
506
510
|
"deploy_select_version": {
|
|
507
511
|
"en": "Select which version you'd like to deploy",
|
|
@@ -513,22 +517,66 @@
|
|
|
513
517
|
},
|
|
514
518
|
"init_config_file": {
|
|
515
519
|
"en": "Generate a config file for your project",
|
|
516
|
-
"zh_CN": "
|
|
520
|
+
"zh_CN": "在您的项目中生成一个配置文件"
|
|
521
|
+
},
|
|
522
|
+
"init_config_format_select": {
|
|
523
|
+
"en": "Select configuration file format:",
|
|
524
|
+
"zh_CN": "选择配置文件格式:"
|
|
525
|
+
},
|
|
526
|
+
"init_config_format_jsonc": {
|
|
527
|
+
"en": "JSONC (.jsonc) - JSON with comments, recommended",
|
|
528
|
+
"zh_CN": "JSONC (.jsonc) - 带注释的JSON,推荐"
|
|
529
|
+
},
|
|
530
|
+
"init_config_format_toml": {
|
|
531
|
+
"en": "TOML (.toml) - Traditional format",
|
|
532
|
+
"zh_CN": "TOML (.toml) - 传统格式"
|
|
533
|
+
},
|
|
534
|
+
"init_language_select": {
|
|
535
|
+
"en": "Select programming language:",
|
|
536
|
+
"zh_CN": "选择编程语言:"
|
|
537
|
+
},
|
|
538
|
+
"init_language_typescript": {
|
|
539
|
+
"en": "TypeScript (.ts) - Type-safe JavaScript, recommended",
|
|
540
|
+
"zh_CN": "TypeScript (.ts) - 类型安全的JavaScript,推荐"
|
|
541
|
+
},
|
|
542
|
+
"init_language_javascript": {
|
|
543
|
+
"en": "JavaScript (.js) - Traditional JavaScript",
|
|
544
|
+
"zh_CN": "JavaScript (.js) - 传统JavaScript"
|
|
545
|
+
},
|
|
546
|
+
"init_language_selected": {
|
|
547
|
+
"en": "Language",
|
|
548
|
+
"zh_CN": "语言"
|
|
549
|
+
},
|
|
550
|
+
"init_project_name": {
|
|
551
|
+
"en": "Project name",
|
|
552
|
+
"zh_CN": "项目名称"
|
|
553
|
+
},
|
|
554
|
+
"init_template_name": {
|
|
555
|
+
"en": "Template name to use",
|
|
556
|
+
"zh_CN": "要使用的模板名称"
|
|
557
|
+
},
|
|
558
|
+
"init_template_not_found": {
|
|
559
|
+
"en": "Template \"${templateName}\" not found. Please check the template name and try again.",
|
|
560
|
+
"zh_CN": "未找到模板 \"${templateName}\"。请检查模板名称并重试。"
|
|
517
561
|
},
|
|
518
562
|
"generate_config_error": {
|
|
519
|
-
"en": "
|
|
520
|
-
"zh_CN": "
|
|
563
|
+
"en": "already exists",
|
|
564
|
+
"zh_CN": "配置文件已经存在"
|
|
521
565
|
},
|
|
522
566
|
"generate_config_success": {
|
|
523
|
-
"en": "Generated
|
|
524
|
-
"zh_CN": "
|
|
567
|
+
"en": "Generated ${path.basename(newFilePath)}",
|
|
568
|
+
"zh_CN": "配置文件生成成功"
|
|
525
569
|
},
|
|
526
570
|
"commit_option_minify": {
|
|
527
571
|
"en": "Minify code before committing",
|
|
528
572
|
"zh_CN": "上传前压缩代码"
|
|
529
573
|
},
|
|
574
|
+
"commit_option_description": {
|
|
575
|
+
"en": "Description for Functions& Pages/version (skip interactive input)",
|
|
576
|
+
"zh_CN": "函数/版本的描述(跳过交互式输入)"
|
|
577
|
+
},
|
|
530
578
|
"dev_entry_describe": {
|
|
531
|
-
"en": "Entry file of
|
|
579
|
+
"en": "Entry file of Functions& Pages",
|
|
532
580
|
"zh_CN": "入口文件路径"
|
|
533
581
|
},
|
|
534
582
|
"dev_option_minify": {
|
|
@@ -684,7 +732,7 @@
|
|
|
684
732
|
"zh_CN": " 版本ID 版本描述"
|
|
685
733
|
},
|
|
686
734
|
"commit_er_exist": {
|
|
687
|
-
"en": "
|
|
735
|
+
"en": "Functions& Pages exists, updating the code",
|
|
688
736
|
"zh_CN": "边缘函数已存在,已更新代码"
|
|
689
737
|
},
|
|
690
738
|
"domain_add_invalid_name": {
|
|
@@ -712,8 +760,8 @@
|
|
|
712
760
|
"zh_CN": "无权限:Access Key 或 Secret 错误,或没有必要的权限。"
|
|
713
761
|
},
|
|
714
762
|
"init_skip": {
|
|
715
|
-
"en": "
|
|
716
|
-
"zh_CN": "
|
|
763
|
+
"en": "Answer \"No\" to any prompts for new projects.",
|
|
764
|
+
"zh_CN": "回答 \"否\" 到所有提示。"
|
|
717
765
|
},
|
|
718
766
|
"quick_deploy_success": {
|
|
719
767
|
"en": "Your code has been successfully deployed",
|
|
@@ -727,12 +775,24 @@
|
|
|
727
775
|
"en": "Quick deploy failed",
|
|
728
776
|
"zh_CN": "快速部署失败。"
|
|
729
777
|
},
|
|
778
|
+
"quick_deploy_assets_detected": {
|
|
779
|
+
"en": "Static assets detected, deploying with assets support",
|
|
780
|
+
"zh_CN": "检测到静态资源,正在使用资源支持进行部署"
|
|
781
|
+
},
|
|
782
|
+
"quick_deploy_assets_success": {
|
|
783
|
+
"en": "A new version has been successfully generated",
|
|
784
|
+
"zh_CN": "您的代码和静态资源已成功部署"
|
|
785
|
+
},
|
|
786
|
+
"quick_deploy_assets_failed": {
|
|
787
|
+
"en": "Quick deploy with assets failed",
|
|
788
|
+
"zh_CN": "带静态资源的快速部署失败"
|
|
789
|
+
},
|
|
730
790
|
"auto_deploy": {
|
|
731
791
|
"en": "Do you want to deploy your project?",
|
|
732
792
|
"zh_CN": "您想要部署您的项目吗?"
|
|
733
793
|
},
|
|
734
794
|
"first_deploy": {
|
|
735
|
-
"en": "This is the first time to deploy, we will create a new
|
|
795
|
+
"en": "This is the first time to deploy, we will create a new project for you.",
|
|
736
796
|
"zh_CN": "这是第一次部署,我们将为您创建一个新的函数。"
|
|
737
797
|
},
|
|
738
798
|
"no_formal_version_found": {
|
|
@@ -740,7 +800,7 @@
|
|
|
740
800
|
"zh_CN": "未找到正式版本,您需要先创建一个版本。"
|
|
741
801
|
},
|
|
742
802
|
"init_deploy_success": {
|
|
743
|
-
"en": "
|
|
803
|
+
"en": "Deploy Success",
|
|
744
804
|
"zh_CN": "项目部署完成。访问:"
|
|
745
805
|
},
|
|
746
806
|
"show_default_url": {
|
|
@@ -748,8 +808,8 @@
|
|
|
748
808
|
"zh_CN": "访问:"
|
|
749
809
|
},
|
|
750
810
|
"routine_not_exist": {
|
|
751
|
-
"en": "
|
|
752
|
-
"zh_CN": "
|
|
811
|
+
"en": "Project does not exist, please create a new one. Run command:",
|
|
812
|
+
"zh_CN": "函数和Pages不存在,请创建一个新函数和Pages项目。运行命令:"
|
|
753
813
|
},
|
|
754
814
|
"dev_input_inspect_tip1": {
|
|
755
815
|
"en": "👉 Please visit ${inspectLink} in the Chrome browser",
|
|
@@ -763,6 +823,30 @@
|
|
|
763
823
|
"en": "The domain may take some time to take effect, please try again later.",
|
|
764
824
|
"zh_CN": "域名生效可能需要一段时间,请稍后再试。"
|
|
765
825
|
},
|
|
826
|
+
"deploy_quick_describe": {
|
|
827
|
+
"en": "Quick deploy Functions& Pages to production environment",
|
|
828
|
+
"zh_CN": "快速部署到生产环境"
|
|
829
|
+
},
|
|
830
|
+
"deploy_option_version": {
|
|
831
|
+
"en": "Version to deploy (skip interactive selection)",
|
|
832
|
+
"zh_CN": "要部署的版本(跳过交互式选择)"
|
|
833
|
+
},
|
|
834
|
+
"deploy_option_environment": {
|
|
835
|
+
"en": "Environment to deploy to: staging or production (skip interactive selection)",
|
|
836
|
+
"zh_CN": "部署环境:staging 或 production(跳过交互式选择)"
|
|
837
|
+
},
|
|
838
|
+
"deploy_version_not_found": {
|
|
839
|
+
"en": "Version '${argv.version}' not found",
|
|
840
|
+
"zh_CN": "版本 '${version}' 未找到"
|
|
841
|
+
},
|
|
842
|
+
"deploy_using_version": {
|
|
843
|
+
"en": "Using version",
|
|
844
|
+
"zh_CN": "使用版本"
|
|
845
|
+
},
|
|
846
|
+
"deploy_using_environment": {
|
|
847
|
+
"en": "Using environment",
|
|
848
|
+
"zh_CN": "使用环境"
|
|
849
|
+
},
|
|
766
850
|
"init_install_dependence": {
|
|
767
851
|
"en": "⌛️ Installing dependencies...",
|
|
768
852
|
"zh_CN": "⌛️ 正在安装依赖..."
|
|
@@ -884,8 +968,8 @@
|
|
|
884
968
|
"zh_CN": "输出debug日志"
|
|
885
969
|
},
|
|
886
970
|
"install_runtime_update_tip": {
|
|
887
|
-
"en": "🔔 Runtime must be update to use esa dev. Installing...",
|
|
888
|
-
"zh_CN": "必须更新Runtime才能使用 esa dev。正在安装..."
|
|
971
|
+
"en": "🔔 Runtime must be update to use esa-cli dev. Installing...",
|
|
972
|
+
"zh_CN": "必须更新Runtime才能使用 esa-cli dev。正在安装..."
|
|
889
973
|
},
|
|
890
974
|
"dev_ip_not_allowed": {
|
|
891
975
|
"en": "Direct access to IP addresses is not allowed when setting local-upstream: ${url}",
|
|
@@ -928,55 +1012,307 @@
|
|
|
928
1012
|
"zh_CN": "用户取消了操作。"
|
|
929
1013
|
},
|
|
930
1014
|
"routine_create_success": {
|
|
931
|
-
"en": "
|
|
932
|
-
"zh_CN": "
|
|
1015
|
+
"en": "Project created successfully.",
|
|
1016
|
+
"zh_CN": "函数和Pages创建成功"
|
|
933
1017
|
},
|
|
934
1018
|
"routine_create_fail": {
|
|
935
|
-
"en": "
|
|
936
|
-
"zh_CN": "
|
|
1019
|
+
"en": "Project created failed.",
|
|
1020
|
+
"zh_CN": "函数和Pages创建失败"
|
|
937
1021
|
},
|
|
938
1022
|
"create_route_route": {
|
|
939
|
-
"en": "Enter a Route:",
|
|
940
|
-
"zh_CN": ""
|
|
1023
|
+
"en": "Enter a Route (e.g., example.com/*):",
|
|
1024
|
+
"zh_CN": "输入路由:"
|
|
941
1025
|
},
|
|
942
1026
|
"route_name_input_required": {
|
|
943
1027
|
"en": "Route name is required",
|
|
944
|
-
"zh_CN": ""
|
|
1028
|
+
"zh_CN": "路由名称是必需的"
|
|
945
1029
|
},
|
|
946
1030
|
"create_route_mode": {
|
|
947
1031
|
"en": "Which mode of route do you want to use?",
|
|
948
|
-
"zh_CN": ""
|
|
1032
|
+
"zh_CN": "您想要使用哪种路由模式?"
|
|
949
1033
|
},
|
|
950
1034
|
"create_route_site": {
|
|
951
1035
|
"en": "Select a site that is active in your account:",
|
|
952
|
-
"zh_CN": ""
|
|
1036
|
+
"zh_CN": "选择您账户中已激活的站点:"
|
|
953
1037
|
},
|
|
954
1038
|
"route_input_required": {
|
|
955
1039
|
"en": "Route is required",
|
|
956
|
-
"zh_CN": ""
|
|
1040
|
+
"zh_CN": "路由是必需的"
|
|
957
1041
|
},
|
|
958
1042
|
"create_route_rule": {
|
|
959
1043
|
"en": "Enter a Rule Expression:",
|
|
960
|
-
"zh_CN": ""
|
|
1044
|
+
"zh_CN": "输入规则表达式:"
|
|
961
1045
|
},
|
|
962
1046
|
"rule_input_required": {
|
|
963
1047
|
"en": "Rule is required",
|
|
964
|
-
"zh_CN": ""
|
|
1048
|
+
"zh_CN": "规则是必需的"
|
|
965
1049
|
},
|
|
966
1050
|
"route_list_simple_title": {
|
|
967
1051
|
"en": "Related simple mode routes",
|
|
968
|
-
"zh_CN": ""
|
|
1052
|
+
"zh_CN": "相关简单模式路由"
|
|
969
1053
|
},
|
|
970
1054
|
"route_list_custom_title": {
|
|
971
1055
|
"en": "Related custom mode routes",
|
|
972
|
-
"zh_CN": ""
|
|
1056
|
+
"zh_CN": "相关自定义模式路由"
|
|
973
1057
|
},
|
|
974
1058
|
"create_route_route_name": {
|
|
975
1059
|
"en": "Enter a Route Name (Aliases):",
|
|
976
|
-
"zh_CN": ""
|
|
1060
|
+
"zh_CN": "输入路由名称(别名):"
|
|
977
1061
|
},
|
|
978
1062
|
"no_route_found": {
|
|
979
1063
|
"en": "No route found! Please check the route name.",
|
|
1064
|
+
"zh_CN": "未找到路由!请检查路由名称。"
|
|
1065
|
+
},
|
|
1066
|
+
"init_template_not_ready": {
|
|
1067
|
+
"en": "Template is not ready. We will install it for you now.",
|
|
1068
|
+
"zh_CN": "模版未准备好,我们为您安装模版。"
|
|
1069
|
+
},
|
|
1070
|
+
"login_option_access_key_id": {
|
|
1071
|
+
"en": "AccessKey ID (AK)",
|
|
1072
|
+
"zh_CN": "AccessKey ID (AK)"
|
|
1073
|
+
},
|
|
1074
|
+
"login_option_access_key_secret": {
|
|
1075
|
+
"en": "AccessKey Secret (SK)",
|
|
1076
|
+
"zh_CN": "AccessKey Secret (SK)"
|
|
1077
|
+
},
|
|
1078
|
+
"login_option_skip_login": {
|
|
1079
|
+
"en": "Skip login",
|
|
1080
|
+
"zh_CN": "跳过登录"
|
|
1081
|
+
},
|
|
1082
|
+
"check_and_update_package_error": {
|
|
1083
|
+
"en": "Error: An error occurred while checking and updating the package, skipping template update",
|
|
1084
|
+
"zh_CN": "检测和更新包时发生错误,跳过更新模版"
|
|
1085
|
+
},
|
|
1086
|
+
"init_yes": {
|
|
1087
|
+
"en": "Answer \"Yes\" to all prompts.",
|
|
1088
|
+
"zh_CN": "回答 \"是\" 到所有提示。"
|
|
1089
|
+
},
|
|
1090
|
+
"init_no_templates": {
|
|
1091
|
+
"en": "No templates available.",
|
|
1092
|
+
"zh_CN": "没有可用的模版。"
|
|
1093
|
+
},
|
|
1094
|
+
"no_active_sites": {
|
|
1095
|
+
"en": "No active sites found in your account",
|
|
1096
|
+
"zh_CN": "没有找到已激活的站点"
|
|
1097
|
+
},
|
|
1098
|
+
"route_format_invalid": {
|
|
1099
|
+
"en": "Invalid route format",
|
|
1100
|
+
"zh_CN": "无效的路由格式"
|
|
1101
|
+
},
|
|
1102
|
+
"creating_route": {
|
|
1103
|
+
"en": "Creating route...",
|
|
1104
|
+
"zh_CN": "创建路由..."
|
|
1105
|
+
},
|
|
1106
|
+
"site_not_found": {
|
|
1107
|
+
"en": "Site \"${siteName}\" not found in your account",
|
|
1108
|
+
"zh_CN": "站点 \"${siteName}\" 未找到"
|
|
1109
|
+
},
|
|
1110
|
+
"commit_assets_exist": {
|
|
1111
|
+
"en": "This is a Functions& Pages with assets project",
|
|
1112
|
+
"zh_CN": "这是一个带静态资源的函数和Pages项目"
|
|
1113
|
+
},
|
|
1114
|
+
"commit_routine_with_assets_success": {
|
|
1115
|
+
"en": "Functions& Pages with assets code version committed successfully.",
|
|
1116
|
+
"zh_CN": "带静态资源的函数和Pages代码版本提交成功。"
|
|
1117
|
+
},
|
|
1118
|
+
"commit_routine_with_assets_fail": {
|
|
1119
|
+
"en": "An error occurred while trying to commit your Functions& Pages with assets.",
|
|
1120
|
+
"zh_CN": "提交带静态资源的函数和Pages时发生错误。"
|
|
1121
|
+
},
|
|
1122
|
+
"commit_option_assets": {
|
|
1123
|
+
"en": "Assets directory",
|
|
1124
|
+
"zh_CN": "静态资源目录"
|
|
1125
|
+
},
|
|
1126
|
+
"commit_option_name": {
|
|
1127
|
+
"en": "Functions& Pages name",
|
|
1128
|
+
"zh_CN": "边缘函数名称"
|
|
1129
|
+
},
|
|
1130
|
+
"deploy_option_name": {
|
|
1131
|
+
"en": "Name of Functions& Pages",
|
|
1132
|
+
"zh_CN": "边缘函数名称"
|
|
1133
|
+
},
|
|
1134
|
+
"deploy_option_assets": {
|
|
1135
|
+
"en": "Deploy assets",
|
|
1136
|
+
"zh_CN": "部署静态资源"
|
|
1137
|
+
},
|
|
1138
|
+
"deploy_invalid_environment": {
|
|
1139
|
+
"en": "Invalid environment",
|
|
1140
|
+
"zh_CN": "无效的环境"
|
|
1141
|
+
},
|
|
1142
|
+
"deploy_success_guide_2": {
|
|
1143
|
+
"en": "Add routes for a site",
|
|
1144
|
+
"zh_CN": "运行此命令以添加路由"
|
|
1145
|
+
},
|
|
1146
|
+
"login_get_from_env": {
|
|
1147
|
+
"en": "Get AccessKey ID and AccessKey Secret from environment variables.",
|
|
1148
|
+
"zh_CN": "从环境变量中获取 AccessKey ID 和 AccessKey Secret。"
|
|
1149
|
+
},
|
|
1150
|
+
"deploy_option_description": {
|
|
1151
|
+
"en": "Description of the version",
|
|
1152
|
+
"zh_CN": "版本描述"
|
|
1153
|
+
},
|
|
1154
|
+
"deploy_option_minify": {
|
|
1155
|
+
"en": "Minify the code",
|
|
1156
|
+
"zh_CN": "压缩代码"
|
|
1157
|
+
},
|
|
1158
|
+
"error_reading_project_config_file": {
|
|
1159
|
+
"en": "Error reading project configuration file.",
|
|
1160
|
+
"zh_CN": "读取项目配置文件错误"
|
|
1161
|
+
},
|
|
1162
|
+
"checking_template_update": {
|
|
1163
|
+
"en": "Checking esa-template updates...",
|
|
1164
|
+
"zh_CN": "检查 esa-template 更新..."
|
|
1165
|
+
},
|
|
1166
|
+
"template_updating": {
|
|
1167
|
+
"en": "Updating templates to latest...",
|
|
1168
|
+
"zh_CN": "正在更新模板到最新版本..."
|
|
1169
|
+
},
|
|
1170
|
+
"template_updated_to_latest": {
|
|
1171
|
+
"en": "Templates updated to latest.",
|
|
1172
|
+
"zh_CN": "模板已更新到最新版本。"
|
|
1173
|
+
},
|
|
1174
|
+
"checking_esa_template_finished": {
|
|
1175
|
+
"en": "Checking esa-template finished.",
|
|
1176
|
+
"zh_CN": "检查 esa-template 完成。"
|
|
1177
|
+
},
|
|
1178
|
+
"git_installed_success": {
|
|
1179
|
+
"en": "Git has been installed successfully.",
|
|
1180
|
+
"zh_CN": "Git 已成功安装。"
|
|
1181
|
+
},
|
|
1182
|
+
"compress_not_specified": {
|
|
1183
|
+
"en": "Not specified",
|
|
1184
|
+
"zh_CN": "未指定"
|
|
1185
|
+
},
|
|
1186
|
+
"compress_not_configured": {
|
|
1187
|
+
"en": "Not configured",
|
|
1188
|
+
"zh_CN": "未配置"
|
|
1189
|
+
},
|
|
1190
|
+
"compress_check_file_exists": {
|
|
1191
|
+
"en": "(Check if file exists)",
|
|
1192
|
+
"zh_CN": "(检查文件是否存在)"
|
|
1193
|
+
},
|
|
1194
|
+
"compress_check_directory_exists": {
|
|
1195
|
+
"en": "(Check if directory exists)",
|
|
1196
|
+
"zh_CN": "(检查目录是否存在)"
|
|
1197
|
+
},
|
|
1198
|
+
"deploy_success_cd": {
|
|
1199
|
+
"en": "Enter project directory",
|
|
1200
|
+
"zh_CN": ""
|
|
1201
|
+
},
|
|
1202
|
+
"init_abort": {
|
|
1203
|
+
"en": "Initialization aborted",
|
|
1204
|
+
"zh_CN": ""
|
|
1205
|
+
},
|
|
1206
|
+
"reason": {
|
|
1207
|
+
"en": "Reason:",
|
|
1208
|
+
"zh_CN": ""
|
|
1209
|
+
},
|
|
1210
|
+
"dir_already_exists": {
|
|
1211
|
+
"en": "Target directory already exists",
|
|
1212
|
+
"zh_CN": ""
|
|
1213
|
+
},
|
|
1214
|
+
"path": {
|
|
1215
|
+
"en": "Path:",
|
|
1216
|
+
"zh_CN": ""
|
|
1217
|
+
},
|
|
1218
|
+
"try": {
|
|
1219
|
+
"en": "Try one of the following:",
|
|
1220
|
+
"zh_CN": ""
|
|
1221
|
+
},
|
|
1222
|
+
"try_diff_name": {
|
|
1223
|
+
"en": "Choose a different project name",
|
|
1224
|
+
"zh_CN": ""
|
|
1225
|
+
},
|
|
1226
|
+
"try_remove": {
|
|
1227
|
+
"en": "Remove the directory:",
|
|
1228
|
+
"zh_CN": ""
|
|
1229
|
+
},
|
|
1230
|
+
"try_another_dir": {
|
|
1231
|
+
"en": "Run the command in another directory",
|
|
1232
|
+
"zh_CN": ""
|
|
1233
|
+
},
|
|
1234
|
+
"step": {
|
|
1235
|
+
"en": "Step:",
|
|
1236
|
+
"zh_CN": ""
|
|
1237
|
+
},
|
|
1238
|
+
"version_title_update_available": {
|
|
1239
|
+
"en": "ESA CLI Update Available",
|
|
1240
|
+
"zh_CN": "ESA CLI 有新版本可用"
|
|
1241
|
+
},
|
|
1242
|
+
"version_current": {
|
|
1243
|
+
"en": "Current",
|
|
1244
|
+
"zh_CN": "当前版本"
|
|
1245
|
+
},
|
|
1246
|
+
"version_latest": {
|
|
1247
|
+
"en": "Latest",
|
|
1248
|
+
"zh_CN": "最新版本"
|
|
1249
|
+
},
|
|
1250
|
+
"version_note": {
|
|
1251
|
+
"en": "Note",
|
|
1252
|
+
"zh_CN": "提示"
|
|
1253
|
+
},
|
|
1254
|
+
"version_note_incompatible": {
|
|
1255
|
+
"en": "This version may have incompatibilities, please upgrade soon.",
|
|
1256
|
+
"zh_CN": "当前版本可能存在不兼容,建议尽快升级至最新版本。"
|
|
1257
|
+
},
|
|
1258
|
+
"version_update": {
|
|
1259
|
+
"en": "Update",
|
|
1260
|
+
"zh_CN": "升级"
|
|
1261
|
+
},
|
|
1262
|
+
"version_continue": {
|
|
1263
|
+
"en": "You can continue using the current version; commands will proceed.",
|
|
1264
|
+
"zh_CN": "你可以继续使用当前版本;命令将继续执行。"
|
|
1265
|
+
},
|
|
1266
|
+
"version_prompt_update_now": {
|
|
1267
|
+
"en": "Update now to the latest version?",
|
|
1268
|
+
"zh_CN": "是否立即更新到最新版本?"
|
|
1269
|
+
},
|
|
1270
|
+
"version_update_failed": {
|
|
1271
|
+
"en": "Global update failed. You may need elevated permissions (sudo) or use yarn/pnpm:",
|
|
1272
|
+
"zh_CN": "全局更新失败。你可能需要更高权限(sudo)或使用 yarn/pnpm:"
|
|
1273
|
+
},
|
|
1274
|
+
"deploy_option_keyword": {
|
|
1275
|
+
"en": "Keyword to search for projects",
|
|
1276
|
+
"zh_CN": ""
|
|
1277
|
+
},
|
|
1278
|
+
"route_input_method": {
|
|
1279
|
+
"en": "How would you like to input the route?",
|
|
1280
|
+
"zh_CN": "您希望如何输入路由?"
|
|
1281
|
+
},
|
|
1282
|
+
"route_input_builder": {
|
|
1283
|
+
"en": "Use route builder (prefix + suffix)",
|
|
1284
|
+
"zh_CN": "使用路由构建器(前缀 + 后缀)"
|
|
1285
|
+
},
|
|
1286
|
+
"route_input_manual": {
|
|
1287
|
+
"en": "Enter route manually",
|
|
1288
|
+
"zh_CN": "手动输入路由"
|
|
1289
|
+
},
|
|
1290
|
+
"route_build_cancelled": {
|
|
1291
|
+
"en": "Route building cancelled",
|
|
1292
|
+
"zh_CN": "路由构建已取消"
|
|
1293
|
+
},
|
|
1294
|
+
"route_builder_prefix_prompt": {
|
|
1295
|
+
"en": "Enter route prefix for ${siteName} (e.g., api, v1):",
|
|
1296
|
+
"zh_CN": "为 ${siteName} 输入路由前缀(例如:api, v1):"
|
|
1297
|
+
},
|
|
1298
|
+
"route_builder_suffix_prompt": {
|
|
1299
|
+
"en": "Enter route suffix for ${siteName} (e.g., *, users/*):",
|
|
1300
|
+
"zh_CN": "为 ${siteName} 输入路由后缀(例如:*, users/*):"
|
|
1301
|
+
},
|
|
1302
|
+
"route_builder_preview": {
|
|
1303
|
+
"en": "Preview: ${siteName}${prefix}${suffix}",
|
|
1304
|
+
"zh_CN": "预览:{route}"
|
|
1305
|
+
},
|
|
1306
|
+
"route_builder_instructions": {
|
|
1307
|
+
"en": "Press Enter to continue, Ctrl+C to cancel",
|
|
1308
|
+
"zh_CN": "按回车键继续,Ctrl+C 取消"
|
|
1309
|
+
},
|
|
1310
|
+
"kv_parse_failed": {
|
|
1311
|
+
"en": "kv.json parse failed, use empty local kv store.",
|
|
1312
|
+
"zh_CN": "kv.json 解析失败,使用空本地 kv 存储。"
|
|
1313
|
+
},
|
|
1314
|
+
"not_active": {
|
|
1315
|
+
"en": "Functions and Pages is not active, please activate it first. Visit: https://esa.console.aliyun.com/edge/pages to activate.",
|
|
980
1316
|
"zh_CN": ""
|
|
981
1317
|
}
|
|
982
1318
|
}
|