esa-cli 0.0.1-beta.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/LICENSE +21 -0
- package/README.md +175 -0
- package/bin/enter.cjs +52 -0
- package/dist/README.md +175 -0
- package/dist/bin/enter.cjs +52 -0
- package/dist/cliconfig.toml +6 -0
- package/dist/commands/commit/index.js +147 -0
- package/dist/commands/commit/prodBuild.js +50 -0
- package/dist/commands/common/constant.js +54 -0
- package/dist/commands/config.js +51 -0
- package/dist/commands/deploy/helper.js +108 -0
- package/dist/commands/deploy/index.js +217 -0
- package/dist/commands/deployments/delete.js +92 -0
- package/dist/commands/deployments/index.js +27 -0
- package/dist/commands/deployments/list.js +89 -0
- package/dist/commands/dev/config/devBuild.js +26 -0
- package/dist/commands/dev/config/devEntry.js +71 -0
- package/dist/commands/dev/config/mock/cache.js +31 -0
- package/dist/commands/dev/config/mock/kv.js +87 -0
- package/dist/commands/dev/devPack.js +113 -0
- package/dist/commands/dev/doProcess.js +73 -0
- package/dist/commands/dev/index.js +240 -0
- package/dist/commands/dev/server.js +100 -0
- package/dist/commands/domain/add.js +72 -0
- package/dist/commands/domain/delete.js +74 -0
- package/dist/commands/domain/index.js +29 -0
- package/dist/commands/domain/list.js +51 -0
- package/dist/commands/init/index.js +149 -0
- package/dist/commands/lang.js +32 -0
- package/dist/commands/login/index.js +108 -0
- package/dist/commands/logout.js +44 -0
- package/dist/commands/route/add.js +115 -0
- package/dist/commands/route/delete.js +74 -0
- package/dist/commands/route/index.js +29 -0
- package/dist/commands/route/list.js +63 -0
- package/dist/commands/routine/delete.js +54 -0
- package/dist/commands/routine/index.js +27 -0
- package/dist/commands/routine/list.js +101 -0
- package/dist/commands/site/index.js +25 -0
- package/dist/commands/site/list.js +47 -0
- package/dist/commands/utils.js +139 -0
- package/dist/components/descriptionInput.js +38 -0
- package/dist/components/filterSelector.js +132 -0
- package/dist/components/mutiSelectTable.js +95 -0
- package/dist/components/selectInput.js +17 -0
- package/dist/components/selectItem.js +6 -0
- package/dist/components/yesNoPrompt.js +9 -0
- package/dist/docs/Commands_en.md +224 -0
- package/dist/docs/Commands_zh_CN.md +224 -0
- package/dist/docs/dev.png +0 -0
- package/dist/i18n/index.js +27 -0
- package/dist/i18n/locales.json +766 -0
- package/dist/index.js +80 -0
- package/dist/libs/apiService.js +914 -0
- package/dist/libs/git/index.js +52 -0
- package/dist/libs/interface.js +21 -0
- package/dist/libs/logger.js +149 -0
- package/dist/libs/request.js +98 -0
- package/dist/libs/templates/index.js +16 -0
- package/dist/package.json +93 -0
- package/dist/utils/checkDevPort.js +113 -0
- package/dist/utils/checkIsRoutineCreated.js +56 -0
- package/dist/utils/checkVersion.js +26 -0
- package/dist/utils/debounce.js +18 -0
- package/dist/utils/fileUtils/index.js +219 -0
- package/dist/utils/fileUtils/interface.js +1 -0
- package/dist/utils/install/install.ps1 +33 -0
- package/dist/utils/install/install.sh +53 -0
- package/dist/utils/installRuntime.js +80 -0
- package/dist/utils/openInBrowser.js +24 -0
- package/dist/utils/sleep.js +6 -0
- package/dist/zh_CN.md +177 -0
- package/package.json +93 -0
|
@@ -0,0 +1,766 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commit_describe": {
|
|
3
|
+
"en": "Commit your code, save as a new version",
|
|
4
|
+
"zh_CN": "提交代码,保存为一个版本"
|
|
5
|
+
},
|
|
6
|
+
"commit_er_not_exist": {
|
|
7
|
+
"en": "No routine found, creating a new one",
|
|
8
|
+
"zh_CN": "没有找到任何函数,正在创建新函数"
|
|
9
|
+
},
|
|
10
|
+
"commit_er_description": {
|
|
11
|
+
"en": "Enter a description for the routine",
|
|
12
|
+
"zh_CN": "请输入函数的描述"
|
|
13
|
+
},
|
|
14
|
+
"commit_version_description": {
|
|
15
|
+
"en": "Enter a description for the version",
|
|
16
|
+
"zh_CN": "请输入版本的描述"
|
|
17
|
+
},
|
|
18
|
+
"common_error_occurred": {
|
|
19
|
+
"en": "An error occurred",
|
|
20
|
+
"zh_CN": "发生错误"
|
|
21
|
+
},
|
|
22
|
+
"commit_create_er_success": {
|
|
23
|
+
"en": "Routine created successfully.",
|
|
24
|
+
"zh_CN": "Routine 创建成功。"
|
|
25
|
+
},
|
|
26
|
+
"commit_upload_success": {
|
|
27
|
+
"en": "Code uploaded successfully.",
|
|
28
|
+
"zh_CN": "代码上传成功。"
|
|
29
|
+
},
|
|
30
|
+
"commit_success": {
|
|
31
|
+
"en": "Code version committed successfully.",
|
|
32
|
+
"zh_CN": "代码版本提交成功。"
|
|
33
|
+
},
|
|
34
|
+
"commit_fail": {
|
|
35
|
+
"en": "An error occurred while trying to commit your code.",
|
|
36
|
+
"zh_CN": "提交代码时发生错误。"
|
|
37
|
+
},
|
|
38
|
+
"summery_cd": {
|
|
39
|
+
"en": "Enter your routine project folder",
|
|
40
|
+
"zh_CN": "进入您的 routine 项目文件夹"
|
|
41
|
+
},
|
|
42
|
+
"summery_commit": {
|
|
43
|
+
"en": "Save a new version of code",
|
|
44
|
+
"zh_CN": "保存一个新版本的代码"
|
|
45
|
+
},
|
|
46
|
+
"config_describe": {
|
|
47
|
+
"en": "Modify your local or global configuration using -l, -g",
|
|
48
|
+
"zh_CN": "使用 -l 或 -g 修改本地或全局配置"
|
|
49
|
+
},
|
|
50
|
+
"config_local_describe": {
|
|
51
|
+
"en": "Edit local config file",
|
|
52
|
+
"zh_CN": "编辑本地配置文件"
|
|
53
|
+
},
|
|
54
|
+
"config_global_describe": {
|
|
55
|
+
"en": "Edit global config file",
|
|
56
|
+
"zh_CN": "编辑全局配置文件"
|
|
57
|
+
},
|
|
58
|
+
"common_usage": {
|
|
59
|
+
"en": "Usage",
|
|
60
|
+
"zh_CN": "用法"
|
|
61
|
+
},
|
|
62
|
+
"config_local_not_exist": {
|
|
63
|
+
"en": "Local config file does not exist",
|
|
64
|
+
"zh_CN": "本地配置文件不存在"
|
|
65
|
+
},
|
|
66
|
+
"deploy_env_select_description": {
|
|
67
|
+
"en": "Please select which environment you want to deploy",
|
|
68
|
+
"zh_CN": "请选择您要部署的环境"
|
|
69
|
+
},
|
|
70
|
+
"deploy_env_staging": {
|
|
71
|
+
"en": "Staging",
|
|
72
|
+
"zh_CN": "测试环境"
|
|
73
|
+
},
|
|
74
|
+
"deploy_env_production": {
|
|
75
|
+
"en": "Production",
|
|
76
|
+
"zh_CN": "生产环境"
|
|
77
|
+
},
|
|
78
|
+
"deploy_env_canary": {
|
|
79
|
+
"en": "Canary",
|
|
80
|
+
"zh_CN": "灰度环境"
|
|
81
|
+
},
|
|
82
|
+
"deploy_description_routine": {
|
|
83
|
+
"en": "Enter the description of the routine",
|
|
84
|
+
"zh_CN": "请输入边缘函数的描述"
|
|
85
|
+
},
|
|
86
|
+
"deploy_description_version": {
|
|
87
|
+
"en": "Enter the description of the code version",
|
|
88
|
+
"zh_CN": "请输入代码版本的描述"
|
|
89
|
+
},
|
|
90
|
+
"deploy_describe": {
|
|
91
|
+
"en": "Deploy your project",
|
|
92
|
+
"zh_CN": "部署您的项目"
|
|
93
|
+
},
|
|
94
|
+
"deploy_version_select": {
|
|
95
|
+
"en": "Select the version you want to publish",
|
|
96
|
+
"zh_CN": "请选择您要发布的版本"
|
|
97
|
+
},
|
|
98
|
+
"deploy_spec_select": {
|
|
99
|
+
"en": "Please select the spec of the routine you want to create",
|
|
100
|
+
"zh_CN": "请选择您要创建的函数规格"
|
|
101
|
+
},
|
|
102
|
+
"deploy_create_formal_version_ques": {
|
|
103
|
+
"en": "Do you want to create a formal version to deploy on production environment?",
|
|
104
|
+
"zh_CN": "是否创建正式版本以部署到生产环境?"
|
|
105
|
+
},
|
|
106
|
+
"deploy_select_canary": {
|
|
107
|
+
"en": "Please select the canary area(s) you want to deploy to",
|
|
108
|
+
"zh_CN": "请选择您要部署的灰度区域"
|
|
109
|
+
},
|
|
110
|
+
"deploy_success": {
|
|
111
|
+
"en": "Your code has been successfully deployed",
|
|
112
|
+
"zh_CN": "您的代码已成功部署"
|
|
113
|
+
},
|
|
114
|
+
"deploy_success_guide": {
|
|
115
|
+
"en": "Run this command to add domains",
|
|
116
|
+
"zh_CN": "运行此命令以添加域名"
|
|
117
|
+
},
|
|
118
|
+
"deploy_table_header_version": {
|
|
119
|
+
"en": "Version",
|
|
120
|
+
"zh_CN": "版本"
|
|
121
|
+
},
|
|
122
|
+
"deploy_table_header_created": {
|
|
123
|
+
"en": "Created",
|
|
124
|
+
"zh_CN": "创建时间"
|
|
125
|
+
},
|
|
126
|
+
"deploy_table_header_description": {
|
|
127
|
+
"en": "Description",
|
|
128
|
+
"zh_CN": "描述"
|
|
129
|
+
},
|
|
130
|
+
"lang_describe": {
|
|
131
|
+
"en": "Set the language of the CLI",
|
|
132
|
+
"zh_CN": "选择语言"
|
|
133
|
+
},
|
|
134
|
+
"main_epilogue": {
|
|
135
|
+
"en": "For more information, visit DCDN",
|
|
136
|
+
"zh_CN": "访问DCDN获取更多信息"
|
|
137
|
+
},
|
|
138
|
+
"main_version_describe": {
|
|
139
|
+
"en": "Show version",
|
|
140
|
+
"zh_CN": "显示当前版本"
|
|
141
|
+
},
|
|
142
|
+
"main_help_describe": {
|
|
143
|
+
"en": "Show help",
|
|
144
|
+
"zh_CN": "显示帮助"
|
|
145
|
+
},
|
|
146
|
+
"commit_create_er_fail": {
|
|
147
|
+
"en": "An error occurred while trying to create a routine",
|
|
148
|
+
"zh_CN": "创建边缘函数时发生错误"
|
|
149
|
+
},
|
|
150
|
+
"commit_upload_fail": {
|
|
151
|
+
"en": "An error occurred while trying to upload your code",
|
|
152
|
+
"zh_CN": "上传代码时发生错误"
|
|
153
|
+
},
|
|
154
|
+
"summery_dev": {
|
|
155
|
+
"en": "Start a local development server for your project",
|
|
156
|
+
"zh_CN": "启动本地调试"
|
|
157
|
+
},
|
|
158
|
+
"summery_deploy": {
|
|
159
|
+
"en": "Deploy your project to different environments",
|
|
160
|
+
"zh_CN": "将您的项目部署到不同环境"
|
|
161
|
+
},
|
|
162
|
+
"deploy_error": {
|
|
163
|
+
"en": "An error occurred during the creation or publishing process",
|
|
164
|
+
"zh_CN": "创建或发布过程中发生错误"
|
|
165
|
+
},
|
|
166
|
+
"deployments_describe": {
|
|
167
|
+
"en": "Manage your deployments",
|
|
168
|
+
"zh_CN": "管理您的部署"
|
|
169
|
+
},
|
|
170
|
+
"common_help": {
|
|
171
|
+
"en": "Help",
|
|
172
|
+
"zh_CN": "帮助"
|
|
173
|
+
},
|
|
174
|
+
"common_sub_command_fail": {
|
|
175
|
+
"en": "Use esa <command> -h to see help",
|
|
176
|
+
"zh_CN": "使用 esa <command> -h 查看帮助"
|
|
177
|
+
},
|
|
178
|
+
"deployments_delete_describe": {
|
|
179
|
+
"en": "Delete one or more deployment versions",
|
|
180
|
+
"zh_CN": "删除一个或多个部署版本"
|
|
181
|
+
},
|
|
182
|
+
"deployments_delete_id_describe": {
|
|
183
|
+
"en": "The ID of the deployments to delete",
|
|
184
|
+
"zh_CN": "要删除的部署版本ID"
|
|
185
|
+
},
|
|
186
|
+
"deployments_delete_success": {
|
|
187
|
+
"en": "Delete success",
|
|
188
|
+
"zh_CN": "删除成功"
|
|
189
|
+
},
|
|
190
|
+
"deployments_delete_failed": {
|
|
191
|
+
"en": "Delete failed",
|
|
192
|
+
"zh_CN": "删除失败"
|
|
193
|
+
},
|
|
194
|
+
"deployments_list_describe": {
|
|
195
|
+
"en": "List all deployments",
|
|
196
|
+
"zh_CN": "查看所有部署"
|
|
197
|
+
},
|
|
198
|
+
"dev_pack_success": {
|
|
199
|
+
"en": "Build finished successfully",
|
|
200
|
+
"zh_CN": "构建完成"
|
|
201
|
+
},
|
|
202
|
+
"dev_describe": {
|
|
203
|
+
"en": "Start a local server for developing your routine",
|
|
204
|
+
"zh_CN": "启动本地调试"
|
|
205
|
+
},
|
|
206
|
+
"dev_port_describe": {
|
|
207
|
+
"en": "Port to listen on",
|
|
208
|
+
"zh_CN": "监听端口"
|
|
209
|
+
},
|
|
210
|
+
"dev_error_no_cli_config": {
|
|
211
|
+
"en": "Error reading cli configuration",
|
|
212
|
+
"zh_CN": "读取 CLI 配置错误"
|
|
213
|
+
},
|
|
214
|
+
"dev_error_no_project_config": {
|
|
215
|
+
"en": "Error reading project configuration esa.toml file.",
|
|
216
|
+
"zh_CN": "读取项目配置 esa.toml 文件错误"
|
|
217
|
+
},
|
|
218
|
+
"dev_build_start": {
|
|
219
|
+
"en": "Starting build process",
|
|
220
|
+
"zh_CN": "开始构建过程"
|
|
221
|
+
},
|
|
222
|
+
"dev_repacking": {
|
|
223
|
+
"en": "Detected local file changes, re-packaging",
|
|
224
|
+
"zh_CN": "检测到本地文件变化,重新打包"
|
|
225
|
+
},
|
|
226
|
+
"dev_server_closed": {
|
|
227
|
+
"en": "Worker server closed",
|
|
228
|
+
"zh_CN": "Worker server 已关闭"
|
|
229
|
+
},
|
|
230
|
+
"dev_server_restart": {
|
|
231
|
+
"en": "Worker server restarted",
|
|
232
|
+
"zh_CN": "Worker server 已重启"
|
|
233
|
+
},
|
|
234
|
+
"domain_add_describe": {
|
|
235
|
+
"en": "Bind a domain to a routine",
|
|
236
|
+
"zh_CN": "绑定域名到边缘函数"
|
|
237
|
+
},
|
|
238
|
+
"domain_describe": {
|
|
239
|
+
"en": "Manage the domain names bound to your routine",
|
|
240
|
+
"zh_CN": "管理绑定到边缘函数的域名"
|
|
241
|
+
},
|
|
242
|
+
"delete_describe": {
|
|
243
|
+
"en": "Delete a routine",
|
|
244
|
+
"zh_CN": "删除一个边缘函数"
|
|
245
|
+
},
|
|
246
|
+
"delete_routineName_positional_describe": {
|
|
247
|
+
"en": "The name of the routine to delete",
|
|
248
|
+
"zh_CN": "要删除的边缘函数名称"
|
|
249
|
+
},
|
|
250
|
+
"delete_success": {
|
|
251
|
+
"en": "Delete success!",
|
|
252
|
+
"zh_CN": "删除成功!"
|
|
253
|
+
},
|
|
254
|
+
"delete_error": {
|
|
255
|
+
"en": "Delete error!",
|
|
256
|
+
"zh_CN": "删除失败!"
|
|
257
|
+
},
|
|
258
|
+
"domain_delete_describe": {
|
|
259
|
+
"en": "Delete a related domain",
|
|
260
|
+
"zh_CN": "删除一个绑定域名"
|
|
261
|
+
},
|
|
262
|
+
"domain_delete_positional_describe": {
|
|
263
|
+
"en": "The names of the related domains to delete",
|
|
264
|
+
"zh_CN": "要删除的绑定域名"
|
|
265
|
+
},
|
|
266
|
+
"domain_delete_success": {
|
|
267
|
+
"en": "Delete domain success",
|
|
268
|
+
"zh_CN": "删除域名成功"
|
|
269
|
+
},
|
|
270
|
+
"domain_delete_failed": {
|
|
271
|
+
"en": "Delete domain failed",
|
|
272
|
+
"zh_CN": "删除域名失败"
|
|
273
|
+
},
|
|
274
|
+
"domain_list_describe": {
|
|
275
|
+
"en": "List all related domains",
|
|
276
|
+
"zh_CN": "查看所有绑定域名"
|
|
277
|
+
},
|
|
278
|
+
"domain_list_empty": {
|
|
279
|
+
"en": "No related domains found",
|
|
280
|
+
"zh_CN": "未找到绑定域名"
|
|
281
|
+
},
|
|
282
|
+
"domain_list_title": {
|
|
283
|
+
"en": "Related domains:",
|
|
284
|
+
"zh_CN": "绑定域名:"
|
|
285
|
+
},
|
|
286
|
+
"init_describe": {
|
|
287
|
+
"en": "Initialize a routine with a template",
|
|
288
|
+
"zh_CN": "选择模版初始化项目"
|
|
289
|
+
},
|
|
290
|
+
"init_input_name": {
|
|
291
|
+
"en": "Enter the name of edgeRoutine:",
|
|
292
|
+
"zh_CN": "输入 edgeRoutine 的名称:"
|
|
293
|
+
},
|
|
294
|
+
"init_skip_git": {
|
|
295
|
+
"en": "Git installation was skipped.",
|
|
296
|
+
"zh_CN": "已跳过 Git 安装。"
|
|
297
|
+
},
|
|
298
|
+
"lang_success": {
|
|
299
|
+
"en": "Language switched",
|
|
300
|
+
"zh_CN": "切换为中文"
|
|
301
|
+
},
|
|
302
|
+
"list_describe": {
|
|
303
|
+
"en": "List all your routines",
|
|
304
|
+
"zh_CN": "查看所有边缘函数"
|
|
305
|
+
},
|
|
306
|
+
"list_deployment_positional_describe": {
|
|
307
|
+
"en": "(Optional) ID or URL of the deployment to tail. Specify by environment if deployment ID is unknown.",
|
|
308
|
+
"zh_CN": "(可选)要跟踪的部署的ID或URL。如果未知部署ID,请按环境指定。"
|
|
309
|
+
},
|
|
310
|
+
"list_site_option_describe": {
|
|
311
|
+
"en": "List all site names of your account",
|
|
312
|
+
"zh_CN": "列出您账户的所有站点名称"
|
|
313
|
+
},
|
|
314
|
+
"list_site_name_title": {
|
|
315
|
+
"en": "List all of site names",
|
|
316
|
+
"zh_CN": "查看所有站点名称"
|
|
317
|
+
},
|
|
318
|
+
"list_routine_name_title": {
|
|
319
|
+
"en": "List all of routine",
|
|
320
|
+
"zh_CN": "查看所有边缘函数"
|
|
321
|
+
},
|
|
322
|
+
"login_describe": {
|
|
323
|
+
"en": "Login to the server",
|
|
324
|
+
"zh_CN": "登录"
|
|
325
|
+
},
|
|
326
|
+
"login_already": {
|
|
327
|
+
"en": "You are already logged in.",
|
|
328
|
+
"zh_CN": "您已登录。"
|
|
329
|
+
},
|
|
330
|
+
"login_existing_credentials_message": {
|
|
331
|
+
"en": "Existing credentials found. What do you want to do?",
|
|
332
|
+
"zh_CN": "发现已有凭证。您想做什么?"
|
|
333
|
+
},
|
|
334
|
+
"login_existing_credentials_action_overwrite": {
|
|
335
|
+
"en": "Overwrite existing credentials",
|
|
336
|
+
"zh_CN": "覆盖现有凭证"
|
|
337
|
+
},
|
|
338
|
+
"login_logging": {
|
|
339
|
+
"en": "Logging in",
|
|
340
|
+
"zh_CN": "正在登录"
|
|
341
|
+
},
|
|
342
|
+
"login_get_ak_sk": {
|
|
343
|
+
"en": "Please go to the following link to get your account's AccessKey ID and AccessKey Secret",
|
|
344
|
+
"zh_CN": "请访问以下链接以获取您的 AccessKey ID 和 AccessKey Secret"
|
|
345
|
+
},
|
|
346
|
+
"login_success": {
|
|
347
|
+
"en": "Login success!",
|
|
348
|
+
"zh_CN": "登录成功!"
|
|
349
|
+
},
|
|
350
|
+
"login_failed": {
|
|
351
|
+
"en": "An error occurred while trying to log in.",
|
|
352
|
+
"zh_CN": "尝试登录时发生错误。"
|
|
353
|
+
},
|
|
354
|
+
"logout_describe": {
|
|
355
|
+
"en": "Logout",
|
|
356
|
+
"zh_CN": "注销登录"
|
|
357
|
+
},
|
|
358
|
+
"logout_success": {
|
|
359
|
+
"en": "Logout successfully",
|
|
360
|
+
"zh_CN": "注销成功"
|
|
361
|
+
},
|
|
362
|
+
"route_add_describe": {
|
|
363
|
+
"en": "Bind a Route to a routine",
|
|
364
|
+
"zh_CN": "将路由绑定到边缘函数"
|
|
365
|
+
},
|
|
366
|
+
"route_add_route_describe": {
|
|
367
|
+
"en": "The name of route to add",
|
|
368
|
+
"zh_CN": "要添加的路由名称"
|
|
369
|
+
},
|
|
370
|
+
"route_add_invalid": {
|
|
371
|
+
"en": "The route does not correspond to the domain.",
|
|
372
|
+
"zh_CN": "该路由与域名不对应。"
|
|
373
|
+
},
|
|
374
|
+
"route_add_success": {
|
|
375
|
+
"en": "Add route success!",
|
|
376
|
+
"zh_CN": "路由添加成功!"
|
|
377
|
+
},
|
|
378
|
+
"route_add_fail": {
|
|
379
|
+
"en": "Add route fail!",
|
|
380
|
+
"zh_CN": "路由添加失败!"
|
|
381
|
+
},
|
|
382
|
+
"route_delete_describe": {
|
|
383
|
+
"en": "Delete a related route",
|
|
384
|
+
"zh_CN": "删除一个绑定路由"
|
|
385
|
+
},
|
|
386
|
+
"route_delete_positional_describe": {
|
|
387
|
+
"en": "The name of the routes to delete",
|
|
388
|
+
"zh_CN": "要删除的路由名称"
|
|
389
|
+
},
|
|
390
|
+
"route_not_exist": {
|
|
391
|
+
"en": "Route not exist!",
|
|
392
|
+
"zh_CN": "路由不存在!"
|
|
393
|
+
},
|
|
394
|
+
"route_delete_success": {
|
|
395
|
+
"en": "Delete route success!",
|
|
396
|
+
"zh_CN": "路由删除成功!"
|
|
397
|
+
},
|
|
398
|
+
"route_delete_fail": {
|
|
399
|
+
"en": "Delete route fail!",
|
|
400
|
+
"zh_CN": "路由删除失败!"
|
|
401
|
+
},
|
|
402
|
+
"route_describe": {
|
|
403
|
+
"en": "Manage the routes bound to your routine",
|
|
404
|
+
"zh_CN": "管理绑定到边缘函数的路由"
|
|
405
|
+
},
|
|
406
|
+
"route_list_describe": {
|
|
407
|
+
"en": "List all related routes",
|
|
408
|
+
"zh_CN": "查看所有绑定路由"
|
|
409
|
+
},
|
|
410
|
+
"route_list_empty": {
|
|
411
|
+
"en": "No related routes found",
|
|
412
|
+
"zh_CN": "未找到绑定路由"
|
|
413
|
+
},
|
|
414
|
+
"route_list_title": {
|
|
415
|
+
"en": "Related routes",
|
|
416
|
+
"zh_CN": "绑定路由"
|
|
417
|
+
},
|
|
418
|
+
"common_not_edge_project": {
|
|
419
|
+
"en": "You are not in an esa project, Please run ${initCommand} to initialize a project, or enter an esa project.",
|
|
420
|
+
"zh_CN": "您不在一个 esa 项目中,请运行 ${initCommand} 初始化项目,或者进入一个 esa 项目。"
|
|
421
|
+
},
|
|
422
|
+
"common_not_edge_project_help": {
|
|
423
|
+
"en": "Please run ${initCommand} first.",
|
|
424
|
+
"zh_CN": "请先运行 ${initCommand}。"
|
|
425
|
+
},
|
|
426
|
+
"common_eacces_intro": {
|
|
427
|
+
"en": "You do not have permission to ${localPath}, please use",
|
|
428
|
+
"zh_CN": "您没有 ${localPath} 的权限,请用下面的方法"
|
|
429
|
+
},
|
|
430
|
+
"open_in_browser_success": {
|
|
431
|
+
"en": "Opened: ${url}",
|
|
432
|
+
"zh_CN": "已打开:${url}"
|
|
433
|
+
},
|
|
434
|
+
"open_in_browser_error": {
|
|
435
|
+
"en": "Failed to open: ${url}",
|
|
436
|
+
"zh_CN": "打开失败:${url}"
|
|
437
|
+
},
|
|
438
|
+
"utils_git_not_commit": {
|
|
439
|
+
"en": "There are uncommitted changes in the repository.",
|
|
440
|
+
"zh_CN": "当前仓库有未提交的更改。"
|
|
441
|
+
},
|
|
442
|
+
"utils_git_error": {
|
|
443
|
+
"en": "An error occurred while checking the Git status",
|
|
444
|
+
"zh_CN": "Git状态检查错误"
|
|
445
|
+
},
|
|
446
|
+
"utils_bind_success": {
|
|
447
|
+
"en": "Binding domain ${domain} to routine successfully",
|
|
448
|
+
"zh_CN": "域名 ${domain} 绑定成功"
|
|
449
|
+
},
|
|
450
|
+
"utils_bind_error": {
|
|
451
|
+
"en": "Binding domain ${domain} to routine failed",
|
|
452
|
+
"zh_CN": "域名 ${domain} 绑定失败"
|
|
453
|
+
},
|
|
454
|
+
"utils_domain_error": {
|
|
455
|
+
"en": "Domain is not active",
|
|
456
|
+
"zh_CN": "域名不可用"
|
|
457
|
+
},
|
|
458
|
+
"utils_login_error": {
|
|
459
|
+
"en": "Maybe you are not logged in yet.",
|
|
460
|
+
"zh_CN": "您可能还没登录。"
|
|
461
|
+
},
|
|
462
|
+
"utils_login_error_config": {
|
|
463
|
+
"en": "Please run command to login: ${namedCommand}",
|
|
464
|
+
"zh_CN": "用这个命令登录:${namedCommand}"
|
|
465
|
+
},
|
|
466
|
+
"routine_describe": {
|
|
467
|
+
"en": "Manage your routine",
|
|
468
|
+
"zh_CN": "管理边缘函数"
|
|
469
|
+
},
|
|
470
|
+
"route_input": {
|
|
471
|
+
"en": "Enter a Route:",
|
|
472
|
+
"zh_CN": "请输入route:"
|
|
473
|
+
},
|
|
474
|
+
"route_add_invalid_route": {
|
|
475
|
+
"en": "Invalid route",
|
|
476
|
+
"zh_CN": "route不合法"
|
|
477
|
+
},
|
|
478
|
+
"install_runtime_explain": {
|
|
479
|
+
"en": "Under the beta phase, we are temporarily using Deno as the local development runtime. It needs to be installed first.",
|
|
480
|
+
"zh_CN": "在Beta阶段,我们使用了Deno暂时作为本地开发运行时,需要先安装才可以dev。"
|
|
481
|
+
},
|
|
482
|
+
"install_runtime_tip": {
|
|
483
|
+
"en": "🔔 Runtime must be installed to use esa dev. Installing...",
|
|
484
|
+
"zh_CN": "必须安装运行时才能使用 esa dev。正在安装..."
|
|
485
|
+
},
|
|
486
|
+
"install_runtime_success": {
|
|
487
|
+
"en": "Runtime installed.",
|
|
488
|
+
"zh_CN": "安装完成"
|
|
489
|
+
},
|
|
490
|
+
"route_validate": {
|
|
491
|
+
"en": "You can add an asterisk (*) as the prefix or suffix to match more URLs, such as \"*.example.com/*\".",
|
|
492
|
+
"zh_CN": "您可以通过添加前缀或后缀通配符(*)来匹配更多的URL,例如: “*.example.com/*”。"
|
|
493
|
+
},
|
|
494
|
+
"domain_input": {
|
|
495
|
+
"en": "Enter the name of domain (Support fuzzy matching on tab press):",
|
|
496
|
+
"zh_CN": "请输入站点的名称(支持按Tab模糊匹配):"
|
|
497
|
+
},
|
|
498
|
+
"invalid_domain": {
|
|
499
|
+
"en": "Input domain is invalid",
|
|
500
|
+
"zh_CN": "输入的站点不在您的账号下"
|
|
501
|
+
},
|
|
502
|
+
"deploy_first_time": {
|
|
503
|
+
"en": "This is first time to deploy. Let's create a version first!",
|
|
504
|
+
"zh_CN": "这是您第一次部署此边缘函数,请先创建一个版本"
|
|
505
|
+
},
|
|
506
|
+
"deploy_select_version": {
|
|
507
|
+
"en": "Select which version you'd like to deploy",
|
|
508
|
+
"zh_CN": "选择要部署的版本"
|
|
509
|
+
},
|
|
510
|
+
"domain_delete_not_found": {
|
|
511
|
+
"en": "Domain doesn't exist",
|
|
512
|
+
"zh_CN": "域名不存在"
|
|
513
|
+
},
|
|
514
|
+
"init_config_file": {
|
|
515
|
+
"en": "Generate a config file for your project",
|
|
516
|
+
"zh_CN": "在您的项目中生成一个esa.toml配置文件"
|
|
517
|
+
},
|
|
518
|
+
"generate_config_error": {
|
|
519
|
+
"en": "esa.toml already exists",
|
|
520
|
+
"zh_CN": "esa.toml 文件已经存在"
|
|
521
|
+
},
|
|
522
|
+
"generate_config_success": {
|
|
523
|
+
"en": "Generated esa.toml",
|
|
524
|
+
"zh_CN": "生成esa.toml成功"
|
|
525
|
+
},
|
|
526
|
+
"commit_option_minify": {
|
|
527
|
+
"en": "Minify code before committing",
|
|
528
|
+
"zh_CN": "上传前压缩代码"
|
|
529
|
+
},
|
|
530
|
+
"dev_entry_describe": {
|
|
531
|
+
"en": "Entry file of the Routine",
|
|
532
|
+
"zh_CN": "入口文件路径"
|
|
533
|
+
},
|
|
534
|
+
"dev_option_minify": {
|
|
535
|
+
"en": "Minify code during development",
|
|
536
|
+
"zh_CN": "开发打包时压缩代码"
|
|
537
|
+
},
|
|
538
|
+
"dev_refresh_exec_start": {
|
|
539
|
+
"en": "Trying to execute command:",
|
|
540
|
+
"zh_CN": "尝试运行命令:"
|
|
541
|
+
},
|
|
542
|
+
"dev_refresh_exec_success": {
|
|
543
|
+
"en": "Command executed successfully.",
|
|
544
|
+
"zh_CN": "命令已运行"
|
|
545
|
+
},
|
|
546
|
+
"dev_refresh_exec_fail": {
|
|
547
|
+
"en": "Command execution failed:",
|
|
548
|
+
"zh_CN": "命令运行失败:"
|
|
549
|
+
},
|
|
550
|
+
"dev_refresh_exec_unsafe": {
|
|
551
|
+
"en": "Command execution failed: Invalid command",
|
|
552
|
+
"zh_CN": "命令运行失败: 非法命令"
|
|
553
|
+
},
|
|
554
|
+
"dev_create_config": {
|
|
555
|
+
"en": "Configuration file not found. Would you like to create one?",
|
|
556
|
+
"zh_CN": "没有找到配置文件,要创建一个吗?"
|
|
557
|
+
},
|
|
558
|
+
"dev_refresh_command_describe": {
|
|
559
|
+
"en": "Provide a command to be executed before the auto-refresh on save",
|
|
560
|
+
"zh_CN": "提供一个在保存自动刷新前执行的命令"
|
|
561
|
+
},
|
|
562
|
+
"init_git": {
|
|
563
|
+
"en": "Do you want to init git in your project?",
|
|
564
|
+
"zh_CN": "是否初始化git仓库?"
|
|
565
|
+
},
|
|
566
|
+
"route_site_not_match": {
|
|
567
|
+
"en": "The route does not correspond to the domain.",
|
|
568
|
+
"zh_CN": "该路由与域名不对应。"
|
|
569
|
+
},
|
|
570
|
+
"init_error": {
|
|
571
|
+
"en": "An error occurred while initializing.",
|
|
572
|
+
"zh_CN": "初始化时发生错误"
|
|
573
|
+
},
|
|
574
|
+
"dev_pack_config_success": {
|
|
575
|
+
"en": "Config created successfully",
|
|
576
|
+
"zh_CN": "配置文件已创建"
|
|
577
|
+
},
|
|
578
|
+
"dev_option_local_upstream": {
|
|
579
|
+
"en": "Host to act as origin in development",
|
|
580
|
+
"zh_CN": "在开发时作为源站的域名"
|
|
581
|
+
},
|
|
582
|
+
"dev_port_conflict": {
|
|
583
|
+
"en": "Port conflict",
|
|
584
|
+
"zh_CN": "端口已占用"
|
|
585
|
+
},
|
|
586
|
+
"dev_inspect_tip1": {
|
|
587
|
+
"en": "You just provided a new inspection port",
|
|
588
|
+
"zh_CN": "您刚刚提供了一个新的Inspect端口"
|
|
589
|
+
},
|
|
590
|
+
"dev_inspect_tip2": {
|
|
591
|
+
"en": "You need to open chrome://inspect",
|
|
592
|
+
"zh_CN": "需要打开 Chrome 浏览器的 chrome://inspect 页面"
|
|
593
|
+
},
|
|
594
|
+
"dev_inspect_tip3": {
|
|
595
|
+
"en": "Click Configure.. button behind the Discover network targets",
|
|
596
|
+
"zh_CN": "点击在 Discover network targets 后面的 Configure.. 按钮"
|
|
597
|
+
},
|
|
598
|
+
"dev_inspect_tip4": {
|
|
599
|
+
"en": "Config your new IP address and port in Target discovery settings",
|
|
600
|
+
"zh_CN": "将您的新地址和端口配置到弹出的 Target discovery settings 中"
|
|
601
|
+
},
|
|
602
|
+
"dev_inspect_tip5": {
|
|
603
|
+
"en": "Now you can use Chrome inspect with new port 😉",
|
|
604
|
+
"zh_CN": "然后就可以用新的端口在Chrome inspect中调试了😉"
|
|
605
|
+
},
|
|
606
|
+
"dev_port_used": {
|
|
607
|
+
"en": "Port ${stringDenoPort} already in use",
|
|
608
|
+
"zh_CN": "端口 ${stringDenoPort} 被占用"
|
|
609
|
+
},
|
|
610
|
+
"dev_port_used_ask": {
|
|
611
|
+
"en": "Would you like to use another port to start the dev server?",
|
|
612
|
+
"zh_CN": "是否使用其他端口启动 dev 服务?"
|
|
613
|
+
},
|
|
614
|
+
"dev_port_ask_input": {
|
|
615
|
+
"en": "Input a new port:",
|
|
616
|
+
"zh_CN": "输入新端口号:"
|
|
617
|
+
},
|
|
618
|
+
"dev_port_input_invalid": {
|
|
619
|
+
"en": "Input is invalid.",
|
|
620
|
+
"zh_CN": "输入不合法"
|
|
621
|
+
},
|
|
622
|
+
"dev_port_invalid": {
|
|
623
|
+
"en": "This port is invalid.",
|
|
624
|
+
"zh_CN": "端口号不合法"
|
|
625
|
+
},
|
|
626
|
+
"dev_port_used_advice": {
|
|
627
|
+
"en": "You can use ${option} to specify another port.",
|
|
628
|
+
"zh_CN": "可以使用 ${option} 指定另外的端口"
|
|
629
|
+
},
|
|
630
|
+
"dev_inspect_port_used": {
|
|
631
|
+
"en": "Inspect port ${stringInspectPort} already in use",
|
|
632
|
+
"zh_CN": "Inspect 端口 ${stringInspectPort} 已被占用"
|
|
633
|
+
},
|
|
634
|
+
"dev_inspect_port_used_ask": {
|
|
635
|
+
"en": "Would you like to use another port to start the Chrome inspect server?",
|
|
636
|
+
"zh_CN": "是否使用其他端口启动 Chrome inspect 服务?"
|
|
637
|
+
},
|
|
638
|
+
"dev_inspect_port_ask_input": {
|
|
639
|
+
"en": "Input a new Chrome inspect port:",
|
|
640
|
+
"zh_CN": "输入用于 Chrome inspect 的新端口号:"
|
|
641
|
+
},
|
|
642
|
+
"domain_add_positional_describe": {
|
|
643
|
+
"en": "The name of domain to add",
|
|
644
|
+
"zh_CN": "需要添加的域名"
|
|
645
|
+
},
|
|
646
|
+
"dev_inspect_port_describe": {
|
|
647
|
+
"en": "Chrome inspect devTool port",
|
|
648
|
+
"zh_CN": "用于 Chrome inspect 调试工具的端口"
|
|
649
|
+
},
|
|
650
|
+
"pre_login_failed": {
|
|
651
|
+
"en": "The previously entered Access Key ID (AK) and Secret Access Key (SK) are incorrect. Please enter them again.",
|
|
652
|
+
"zh_CN": "之前输入的 Access Key ID (AK) 和 Secret Access Key (SK) 不正确,请重新输入。"
|
|
653
|
+
},
|
|
654
|
+
"site_describe": {
|
|
655
|
+
"en": "Manage your sites",
|
|
656
|
+
"zh_CN": "管理站点"
|
|
657
|
+
},
|
|
658
|
+
"site_describe_list": {
|
|
659
|
+
"en": "List all your sites",
|
|
660
|
+
"zh_CN": "列出站点"
|
|
661
|
+
},
|
|
662
|
+
"interactive_mode": {
|
|
663
|
+
"en": "Interactive mode",
|
|
664
|
+
"zh_CN": "交互式模式"
|
|
665
|
+
},
|
|
666
|
+
"dev_import_port_invalid": {
|
|
667
|
+
"en": "Invalid port entered, default port will be used.",
|
|
668
|
+
"zh_CN": "输入了无效的端口,将使用默认的端口。"
|
|
669
|
+
},
|
|
670
|
+
"already_exist_file_error": {
|
|
671
|
+
"en": "Error: The project already exists. It looks like a folder named \"<project-name>\" is already present in the current directory. Please try the following options: 1. Choose a different project name. 2. Delete the existing folder if it\\'s not needed: `rm -rf <project-name>` (use with caution!). 3. Move to a different directory before running the init command.",
|
|
672
|
+
"zh_CN": "Error:项目已存在。\n看起来名为 \"<project-name>\" 的文件夹已经存在于当前目录中。\n\n请尝试以下选项:\n1. 选择一个不同的项目名称。\n2. 如果不需要,删除现有的文件夹:`rm -rf <project-name>`(请谨慎使用!)。\n3. 在运行初始化命令之前,移动到另一个目录。"
|
|
673
|
+
},
|
|
674
|
+
"init_name_error": {
|
|
675
|
+
"en": "Error: The project name must be at least 2 characters long and can only contain lowercase letters, numbers, and hyphens.",
|
|
676
|
+
"zh_CN": "错误:项目名称必须至少为 2 个字符,并且只能包含小写字母、数字和连字符。"
|
|
677
|
+
},
|
|
678
|
+
"delete_interactive_mode": {
|
|
679
|
+
"en": "Delete deployments by using interactive mode",
|
|
680
|
+
"zh_CN": "使用交互模式删除部署"
|
|
681
|
+
},
|
|
682
|
+
"delete_deployments_table_title": {
|
|
683
|
+
"en": " Version ID Description",
|
|
684
|
+
"zh_CN": " 版本ID 版本描述"
|
|
685
|
+
},
|
|
686
|
+
"commit_er_exist": {
|
|
687
|
+
"en": "Routine exists, updating the code",
|
|
688
|
+
"zh_CN": "边缘函数已存在,已更新代码"
|
|
689
|
+
},
|
|
690
|
+
"domain_add_invalid_name": {
|
|
691
|
+
"en": "Invalid name",
|
|
692
|
+
"zh_CN": "无效的名称"
|
|
693
|
+
},
|
|
694
|
+
"common_exit": {
|
|
695
|
+
"en": "Exit",
|
|
696
|
+
"zh_CN": "退出"
|
|
697
|
+
},
|
|
698
|
+
"route_add_tab_tip": {
|
|
699
|
+
"en": "Press Tab to select",
|
|
700
|
+
"zh_CN": "按 Tab 键选择"
|
|
701
|
+
},
|
|
702
|
+
"route_add_see_more": {
|
|
703
|
+
"en": "Do you wish to see all ${filteredData.length} possibilities? (y/n)",
|
|
704
|
+
"zh_CN": "你希望看到所有 ${filteredData.length} 个选项吗?(y/n)"
|
|
705
|
+
},
|
|
706
|
+
"deploy_select_table_tip": {
|
|
707
|
+
"en": "Use arrow keys to move, space to select, and enter to submit.",
|
|
708
|
+
"zh_CN": "方向键移动,空格键选择,回车键提交。"
|
|
709
|
+
},
|
|
710
|
+
"login_permission_denied": {
|
|
711
|
+
"en": "Permission denied: Access key or secret is incorrect, or does not have the necessary permissions.",
|
|
712
|
+
"zh_CN": "无权限:Access Key 或 Secret 错误,或没有必要的权限。"
|
|
713
|
+
},
|
|
714
|
+
"init_skip": {
|
|
715
|
+
"en": "Initialization was skipped.",
|
|
716
|
+
"zh_CN": "初始化已被跳过。"
|
|
717
|
+
},
|
|
718
|
+
"quick_deploy_success": {
|
|
719
|
+
"en": "Your code has been successfully deployed",
|
|
720
|
+
"zh_CN": "您的代码已成功部署。"
|
|
721
|
+
},
|
|
722
|
+
"quick_deploy_success_guide": {
|
|
723
|
+
"en": "Run this command to add domains",
|
|
724
|
+
"zh_CN": "运行此命令以添加域名。"
|
|
725
|
+
},
|
|
726
|
+
"quick_deploy_failed": {
|
|
727
|
+
"en": "Quick deploy failed",
|
|
728
|
+
"zh_CN": "快速部署失败。"
|
|
729
|
+
},
|
|
730
|
+
"auto_deploy": {
|
|
731
|
+
"en": "Do you want to deploy your project?",
|
|
732
|
+
"zh_CN": "您想要部署您的项目吗?"
|
|
733
|
+
},
|
|
734
|
+
"first_deploy": {
|
|
735
|
+
"en": "This is the first time to deploy, we will create a new routine for you.",
|
|
736
|
+
"zh_CN": "这是第一次部署,我们将为您创建一个新的函数。"
|
|
737
|
+
},
|
|
738
|
+
"no_formal_version_found": {
|
|
739
|
+
"en": "No formal version found, you need to create a version first.",
|
|
740
|
+
"zh_CN": "未找到正式版本,您需要先创建一个版本。"
|
|
741
|
+
},
|
|
742
|
+
"init_deploy_success": {
|
|
743
|
+
"en": "Project deployment completed. Visit: ",
|
|
744
|
+
"zh_CN": "项目部署完成。访问:"
|
|
745
|
+
},
|
|
746
|
+
"show_default_url": {
|
|
747
|
+
"en": "You can visit:",
|
|
748
|
+
"zh_CN": "访问:"
|
|
749
|
+
},
|
|
750
|
+
"routine_not_exist": {
|
|
751
|
+
"en": "Routine does not exist, please create a new one. Run command:",
|
|
752
|
+
"zh_CN": "函数不存在,请创建一个新函数。运行命令:"
|
|
753
|
+
},
|
|
754
|
+
"dev_input_inspect_tip1": {
|
|
755
|
+
"en": "👉 Please visit ${inspectLink} in the Chrome browser",
|
|
756
|
+
"zh_CN": "👉 请在 Chrome 浏览器中访问 ${inspectLink} 页面"
|
|
757
|
+
},
|
|
758
|
+
"dev_input_inspect_tip2": {
|
|
759
|
+
"en": "👉 See your debugger under ${remoteTarget} and click the ${inspect} button",
|
|
760
|
+
"zh_CN": "👉 在 ${remoteTarget} 下方找到调试器,点击 ${inspect} 按钮"
|
|
761
|
+
},
|
|
762
|
+
"deploy_url_warn": {
|
|
763
|
+
"en": "The domain may take some time to take effect, please try again later.",
|
|
764
|
+
"zh_CN": "域名生效可能需要一段时间,请稍后再试。"
|
|
765
|
+
}
|
|
766
|
+
}
|