@qlover/create-app 0.3.1 → 0.3.3

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 (75) hide show
  1. package/CHANGELOG.md +96 -0
  2. package/configs/_common/.github/workflows/general-check.yml +17 -29
  3. package/configs/_common/.github/workflows/{release.yml.template → release.yml} +16 -51
  4. package/package.json +3 -3
  5. package/templates/pack-app/fe-config.json +30 -1
  6. package/templates/pack-app/package.json +45 -32
  7. package/templates/pack-app/tsconfig.test.json +1 -1
  8. package/templates/react-app/config/Identifier.I18n.ts +878 -0
  9. package/templates/react-app/config/app.router.json +7 -7
  10. package/templates/react-app/config/common.ts +7 -4
  11. package/templates/react-app/config/theme.json +7 -88
  12. package/templates/react-app/package.json +9 -4
  13. package/templates/react-app/postcss.config.js +1 -2
  14. package/templates/react-app/public/locales/en/common.json +118 -1
  15. package/templates/react-app/public/locales/zh/common.json +118 -1
  16. package/templates/react-app/src/App.tsx +14 -2
  17. package/templates/react-app/src/base/cases/RequestLogger.ts +3 -4
  18. package/templates/react-app/src/base/cases/RequestStatusCatcher.ts +3 -2
  19. package/templates/react-app/src/base/services/I18nService.ts +31 -3
  20. package/templates/react-app/src/base/services/ProcesserService.ts +3 -2
  21. package/templates/react-app/src/core/IOC.ts +15 -9
  22. package/templates/react-app/src/core/bootstrap.ts +42 -53
  23. package/templates/react-app/src/core/bootstraps/PrintBootstrap.ts +14 -0
  24. package/templates/react-app/src/core/bootstraps/index.ts +36 -7
  25. package/templates/react-app/src/core/globals.ts +4 -6
  26. package/templates/react-app/src/core/registers/RegisterApi.ts +2 -5
  27. package/templates/react-app/src/core/registers/RegisterCommon.ts +38 -28
  28. package/templates/react-app/src/core/registers/RegisterControllers.ts +5 -10
  29. package/templates/react-app/src/core/registers/RegisterGlobals.ts +15 -14
  30. package/templates/react-app/src/core/registers/index.ts +27 -12
  31. package/templates/react-app/src/main.tsx +1 -1
  32. package/templates/react-app/src/pages/404.tsx +1 -1
  33. package/templates/react-app/src/pages/500.tsx +1 -1
  34. package/templates/react-app/src/pages/auth/Login.tsx +128 -36
  35. package/templates/react-app/src/pages/base/About.tsx +5 -2
  36. package/templates/react-app/src/pages/base/ErrorIdentifier.tsx +38 -19
  37. package/templates/react-app/src/pages/base/Executor.tsx +447 -29
  38. package/templates/react-app/src/pages/base/Home.tsx +99 -93
  39. package/templates/react-app/src/pages/base/JSONStorage.tsx +47 -38
  40. package/templates/react-app/src/pages/base/Layout.tsx +5 -2
  41. package/templates/react-app/src/pages/base/Request.tsx +90 -208
  42. package/templates/react-app/src/pages/base/components/BaseHeader.tsx +13 -5
  43. package/templates/react-app/src/styles/css/page.css +11 -0
  44. package/templates/react-app/src/styles/css/tailwind.css +5 -0
  45. package/templates/react-app/src/styles/css/themes/_default.css +200 -0
  46. package/templates/react-app/src/styles/css/themes/dark.css +154 -0
  47. package/templates/react-app/src/styles/css/themes/index.css +3 -0
  48. package/templates/react-app/src/styles/css/themes/pink.css +160 -0
  49. package/templates/react-app/src/uikit/components/LanguageSwitcher.tsx +56 -0
  50. package/templates/react-app/src/uikit/components/Loading.tsx +27 -21
  51. package/templates/react-app/src/uikit/components/ThemeSwitcher.tsx +63 -13
  52. package/templates/react-app/src/uikit/contexts/BaseRouteContext.ts +1 -1
  53. package/templates/react-app/src/uikit/controllers/RouterController.ts +3 -3
  54. package/templates/react-app/src/uikit/controllers/UserController.ts +1 -1
  55. package/templates/react-app/tailwind.config.js +1 -15
  56. package/templates/react-app/vite.config.ts +9 -3
  57. package/templates/react-app/lib/tailwind/root10px.js +0 -178
  58. package/templates/react-app/lib/tailwind/theme-generator.js +0 -238
  59. package/templates/react-app/public/locales/en/about.json +0 -3
  60. package/templates/react-app/public/locales/en/executor.json +0 -6
  61. package/templates/react-app/public/locales/en/home.json +0 -10
  62. package/templates/react-app/public/locales/en/jsonStorage.json +0 -11
  63. package/templates/react-app/public/locales/en/login.json +0 -7
  64. package/templates/react-app/public/locales/en/request.json +0 -15
  65. package/templates/react-app/public/locales/zh/about.json +0 -3
  66. package/templates/react-app/public/locales/zh/executor.json +0 -7
  67. package/templates/react-app/public/locales/zh/home.json +0 -10
  68. package/templates/react-app/public/locales/zh/jsonStorage.json +0 -11
  69. package/templates/react-app/public/locales/zh/login.json +0 -8
  70. package/templates/react-app/public/locales/zh/request.json +0 -15
  71. package/templates/react-app/src/base/port/InversifyIocInterface.ts +0 -9
  72. package/templates/react-app/src/uikit/styles/css/page.css +0 -3
  73. package/templates/react-app/src/uikit/styles/css/tailwind.css +0 -3
  74. /package/templates/react-app/config/{ErrorIdentifier.ts → Identifier.Error.ts} +0 -0
  75. /package/templates/react-app/src/{uikit/styles → styles}/css/index.css +0 -0
@@ -0,0 +1,878 @@
1
+ /**
2
+ * @description About Page
3
+ * @localZh 关于
4
+ * @localEn About
5
+ */
6
+ export const PAGE_ABOUT_TITLE = 'page.about.title';
7
+
8
+ /**
9
+ * @description About Page Description
10
+ * @localZh 了解更多关于我们的项目和团队信息
11
+ * @localEn Learn more about our project and team information
12
+ */
13
+ export const PAGE_ABOUT_DESCRIPTION = 'page.about.description';
14
+
15
+ /**
16
+ * @description Component not found error message
17
+ * @localZh 组件不存在
18
+ * @localEn Component not found
19
+ */
20
+ export const ERROR_404_COMPONENT_NOT_FOUND = '404.notComponent';
21
+
22
+ /**
23
+ * @description Page not found error message
24
+ * @localZh 页面不存在
25
+ * @localEn Page not found
26
+ */
27
+ export const ERROR_404_PAGE_NOT_FOUND = '404.notPage';
28
+
29
+ /**
30
+ * @description Server error title
31
+ * @localZh 服务器错误
32
+ * @localEn Server Error
33
+ */
34
+ export const ERROR_500_TITLE = '500.title';
35
+
36
+ /**
37
+ * @description Theme switch label
38
+ * @localZh 切换主题
39
+ * @localEn Switch Theme
40
+ */
41
+ export const HEADER_THEME_LABEL = 'header.theme.label';
42
+
43
+ /**
44
+ * @description IOC not implemented error
45
+ * @localZh IOC 未实现
46
+ * @localEn IOC not implemented
47
+ */
48
+ export const ERROR_IOC_NOT_IMPLEMENTED = 'err.ioc.not.implemented';
49
+
50
+ /**
51
+ * @description About page title
52
+ * @localZh 关于我们
53
+ * @localEn About
54
+ */
55
+ export const ABOUT_TITLE = 'about.title';
56
+
57
+ /**
58
+ * @description JSONStorage demo title
59
+ * @localZh JSONStorage Demo
60
+ * @localEn JSONStorage Demo
61
+ */
62
+ export const JSON_STORAGE_TITLE = 'jsonStorage.title';
63
+
64
+ /**
65
+ * @description Permanent storage test title
66
+ * @localZh 永久存储测试
67
+ * @localEn Permanent storage test
68
+ */
69
+ export const JSON_STORAGE_PERMANENT_TITLE = 'jsonStorage.title2';
70
+
71
+ /**
72
+ * @description Expire time test title
73
+ * @localZh 过期时间测试
74
+ * @localEn Expire time test
75
+ */
76
+ export const JSON_STORAGE_EXPIRE_TITLE = 'jsonStorage.title3';
77
+
78
+ /**
79
+ * @description Request timeout title
80
+ * @localZh 请求超时时间设置
81
+ * @localEn Request Timeout
82
+ */
83
+ export const JSON_STORAGE_TIMEOUT_TITLE = 'jsonStorage.title4';
84
+
85
+ /**
86
+ * @description Format title with key and range
87
+ * @localZh 测试 key: ${key}, 随机值范围: ${min}~${max}
88
+ * @localEn Test key: ${key}, Random value range: ${min}~${max}
89
+ */
90
+ export const JSON_STORAGE_FORMAT_TITLE = 'jsonStorage.format.title';
91
+
92
+ /**
93
+ * @description Set random value button text
94
+ * @localZh 设置随机值
95
+ * @localEn Set random value
96
+ */
97
+ export const JSON_STORAGE_SET_RANDOM = 'jsonStorage.setRandomValue';
98
+
99
+ /**
100
+ * @description Current value label
101
+ * @localZh 当前值
102
+ * @localEn Current value
103
+ */
104
+ export const JSON_STORAGE_CURRENT_VALUE = 'jsonStorage.currentValue';
105
+
106
+ /**
107
+ * @description Milliseconds unit
108
+ * @localZh 毫秒
109
+ * @localEn ms
110
+ */
111
+ export const JSON_STORAGE_MS = 'jsonStorage.ms';
112
+
113
+ /**
114
+ * @description Set random value with expire time button text
115
+ * @localZh 设置随机值(带过期时间)
116
+ * @localEn Set random value(with expire time)
117
+ */
118
+ export const JSON_STORAGE_SET_EXPIRE = 'jsonStorage.setExpireTime';
119
+
120
+ /**
121
+ * @description Login page title
122
+ * @localZh 登录
123
+ * @localEn Login
124
+ */
125
+ export const LOGIN_TITLE = 'login.title';
126
+
127
+ /**
128
+ * @description Email field label
129
+ * @localZh 邮箱
130
+ * @localEn Email
131
+ */
132
+ export const LOGIN_EMAIL = 'login.email';
133
+
134
+ /**
135
+ * @description Username field label
136
+ * @localZh 用户名
137
+ * @localEn Username
138
+ */
139
+ export const LOGIN_USERNAME = 'login.username';
140
+
141
+ /**
142
+ * @description Password field label
143
+ * @localZh 密码
144
+ * @localEn Password
145
+ */
146
+ export const LOGIN_PASSWORD = 'login.password';
147
+
148
+ /**
149
+ * @description Login button text
150
+ * @localZh 登录
151
+ * @localEn Login
152
+ */
153
+ export const LOGIN_BUTTON = 'login.login';
154
+
155
+ /**
156
+ * @description Request timeout message
157
+ * @localZh 请求超时
158
+ * @localEn Request Timeout
159
+ */
160
+ export const REQUEST_TIMEOUT = 'request.requestTimeout';
161
+
162
+ /**
163
+ * @description Hello result message
164
+ * @localZh Hello 结果是
165
+ * @localEn Hello result is
166
+ */
167
+ export const REQUEST_HELLO_RESULT = 'request.helloResult';
168
+
169
+ /**
170
+ * @description Hello error message
171
+ * @localZh Hello 错误是
172
+ * @localEn Hello error is
173
+ */
174
+ export const REQUEST_HELLO_ERROR = 'request.helloError';
175
+
176
+ /**
177
+ * @description IpInfo result message
178
+ * @localZh IpInfo 结果是
179
+ * @localEn IpInfo result is
180
+ */
181
+ export const REQUEST_IP_INFO_RESULT = 'request.ipInfoResult';
182
+
183
+ /**
184
+ * @description IpInfo title
185
+ * @localZh IpInfo
186
+ * @localEn IpInfo
187
+ */
188
+ export const REQUEST_IP_INFO = 'request.ipInfo';
189
+
190
+ /**
191
+ * @description Random user title
192
+ * @localZh 随机用户
193
+ * @localEn RandomUser
194
+ */
195
+ export const REQUEST_RANDOM_USER = 'request.randomUser';
196
+
197
+ /**
198
+ * @description Loading message
199
+ * @localZh 加载中...
200
+ * @localEn Loading...
201
+ */
202
+ export const REQUEST_LOADING = 'request.loading';
203
+
204
+ /**
205
+ * @description Random user result message
206
+ * @localZh 随机用户 结果是
207
+ * @localEn RandomUser result is
208
+ */
209
+ export const REQUEST_RANDOM_USER_RESULT = 'request.randomUserResult';
210
+
211
+ /**
212
+ * @description Random user error message
213
+ * @localZh 随机用户 错误是
214
+ * @localEn RandomUser error is
215
+ */
216
+ export const REQUEST_RANDOM_USER_ERROR = 'request.randomUserError';
217
+
218
+ /**
219
+ * @description Trigger abort request button text
220
+ * @localZh 触发中止请求
221
+ * @localEn Trigger Abort Request
222
+ */
223
+ export const REQUEST_TRIGGER_ABORT = 'request.triggerAbortRequest';
224
+
225
+ /**
226
+ * @description Stop abort request button text
227
+ * @localZh 停止中止请求
228
+ * @localEn Stop Abort Request
229
+ */
230
+ export const REQUEST_STOP_ABORT = 'request.stopAbortRequest';
231
+
232
+ /**
233
+ * @description Abort request result message
234
+ * @localZh 中止请求 结果是
235
+ * @localEn Abort Request Result
236
+ */
237
+ export const REQUEST_ABORT_RESULT = 'request.abortRequestResult';
238
+
239
+ /**
240
+ * @description Abort request error message
241
+ * @localZh 中止请求 错误是
242
+ * @localEn Abort Request Error
243
+ */
244
+ export const REQUEST_ABORT_ERROR = 'request.abortRequestError';
245
+
246
+ /**
247
+ * @description Executor demo title
248
+ * @localZh 执行器 Demo
249
+ * @localEn Executor Demo
250
+ */
251
+ export const EXECUTOR_DEMO = 'executor.executorDemo';
252
+
253
+ /**
254
+ * @description Executor request timeout
255
+ * @localZh 请求超时
256
+ * @localEn Request Timeout
257
+ */
258
+ export const EXECUTOR_REQUEST_TIMEOUT = 'executor.requestTimeout';
259
+
260
+ /**
261
+ * @description Executor test plugin
262
+ * @localZh 执行器 测试插件
263
+ * @localEn Executor Test Plugin
264
+ */
265
+ export const EXECUTOR_TEST_PLUGIN = 'executor.executorTestPlugin';
266
+
267
+ /**
268
+ * @description Test plugin
269
+ * @localZh 测试插件
270
+ * @localEn Test Plugin
271
+ */
272
+ export const EXECUTOR_TEST_PLUGIN_SIMPLE = 'executor.testPlugin';
273
+
274
+ /**
275
+ * @description Home page welcome message
276
+ * @localZh 欢迎来到主页
277
+ * @localEn Welcome to the home page
278
+ */
279
+ export const HOME_WELCOME = 'home.welcome';
280
+
281
+ /**
282
+ * @description Home page description
283
+ * @localZh 一个现代前端实用库集合,提供各种实用工具和组件
284
+ * @localEn A modern frontend utility library collection providing various practical tools and components
285
+ */
286
+ export const HOME_DESCRIPTION = 'home.description';
287
+
288
+ /**
289
+ * @description Home about us label
290
+ * @localZh 关于我们
291
+ * @localEn About Us
292
+ */
293
+ export const HOME_ABOUT = 'home.about';
294
+
295
+ /**
296
+ * @description Home about us description
297
+ * @localZh 了解更多关于我们的项目和团队信息
298
+ * @localEn Learn more about our project and team information
299
+ */
300
+ export const HOME_ABOUT_DESCRIPTION = 'home.about_description';
301
+
302
+ /**
303
+ * @description Home JSONStorage label
304
+ * @localZh JSON存储
305
+ * @localEn JSONStorage
306
+ */
307
+ export const HOME_JSONSTORAGE = 'home.jsonstorage';
308
+
309
+ /**
310
+ * @description Home JSONStorage description
311
+ * @localZh 高效的JSON数据存储解决方案
312
+ * @localEn Efficient JSON data storage solution
313
+ */
314
+ export const HOME_JSONSTORAGE_DESCRIPTION = 'home.jsonstorage_description';
315
+
316
+ /**
317
+ * @description Home request label
318
+ * @localZh 请求
319
+ * @localEn Request
320
+ */
321
+ export const HOME_REQUEST = 'home.request';
322
+
323
+ /**
324
+ * @description Home request description
325
+ * @localZh 一个现代前端实用库集合,提供各种实用工具和组件
326
+ * @localEn A modern frontend utility library collection providing various practical tools and components
327
+ */
328
+ export const HOME_REQUEST_DESCRIPTION = 'home.request_description';
329
+
330
+ /**
331
+ * @description JSONStorage page title
332
+ * @localZh JSONStorage 页面
333
+ * @localEn JSONStorage Page
334
+ */
335
+ export const PAGE_JSONSTORAGE_TITLE = 'page.jsonstorage.title';
336
+
337
+ /**
338
+ * @description JSONStorage page description
339
+ * @localZh 使用 JSONStorage 进行数据存储和管理
340
+ * @localEn Use JSONStorage for data storage and management
341
+ */
342
+ export const PAGE_JSONSTORAGE_DESCRIPTION = 'page.jsonstorage.description';
343
+
344
+ /**
345
+ * @description Request page title
346
+ * @localZh 请求示例
347
+ * @localEn Request Examples
348
+ */
349
+ export const PAGE_REQUEST_TITLE = 'page.request.title';
350
+
351
+ /**
352
+ * @description Request page description
353
+ * @localZh 展示各种请求示例和用法
354
+ * @localEn Demonstrate various request examples and usage
355
+ */
356
+ export const PAGE_REQUEST_DESCRIPTION = 'page.request.description';
357
+
358
+ /**
359
+ * @description Executor page title
360
+ * @localZh 执行器示例
361
+ * @localEn Executor Examples
362
+ */
363
+ export const PAGE_EXECUTOR_TITLE = 'page.executor.title';
364
+
365
+ /**
366
+ * @description Error Identifier page title
367
+ * @localZh 错误标识符
368
+ * @localEn Error Identifier
369
+ */
370
+ export const PAGE_ERROR_IDENTIFIER_TITLE = 'page.error.identifier.title';
371
+
372
+ /**
373
+ * @description Error Identifier page description
374
+ * @localZh 错误标识符的使用和示例
375
+ * @localEn Error identifier usage and examples
376
+ */
377
+ export const PAGE_ERROR_IDENTIFIER_DESCRIPTION =
378
+ 'page.error.identifier.description';
379
+
380
+ /**
381
+ * @description Home page explore button text
382
+ * @localZh 探索
383
+ * @localEn Explore
384
+ */
385
+ export const HOME_EXPLORE = 'home.explore';
386
+
387
+ /**
388
+ * @description Home page get started section title
389
+ * @localZh 准备开始使用?
390
+ * @localEn Ready to Get Started?
391
+ */
392
+ export const HOME_GET_STARTED_TITLE = 'home.get_started.title';
393
+
394
+ /**
395
+ * @description Home page get started section description
396
+ * @localZh 加入我们,探索实用工具的力量
397
+ * @localEn Join us and discover the power of our utilities
398
+ */
399
+ export const HOME_GET_STARTED_DESCRIPTION = 'home.get_started.description';
400
+
401
+ /**
402
+ * @description Home page get started button text
403
+ * @localZh 立即开始
404
+ * @localEn Get Started Now
405
+ */
406
+ export const HOME_GET_STARTED_BUTTON = 'home.get_started.button';
407
+
408
+ /**
409
+ * @description Theme switcher default theme label
410
+ * @localZh 默认主题
411
+ * @localEn Default Theme
412
+ */
413
+ export const HEADER_THEME_DEFAULT = 'header.theme.default';
414
+
415
+ /**
416
+ * @description Theme switcher dark theme label
417
+ * @localZh 暗色主题
418
+ * @localEn Dark Theme
419
+ */
420
+ export const HEADER_THEME_DARK = 'header.theme.dark';
421
+
422
+ /**
423
+ * @description Theme switcher pink theme label
424
+ * @localZh 粉色主题
425
+ * @localEn Pink Theme
426
+ */
427
+ export const HEADER_THEME_PINK = 'header.theme.pink';
428
+
429
+ /**
430
+ * @description JSONStorage page main title
431
+ * @localZh JSONStorage 演示
432
+ * @localEn JSONStorage Demo
433
+ */
434
+ export const PAGE_JSONSTORAGE_MAIN_TITLE = 'page.jsonstorage.main_title';
435
+
436
+ /**
437
+ * @description JSONStorage permanent storage test title
438
+ * @localZh 永久存储测试
439
+ * @localEn Permanent Storage Test
440
+ */
441
+ export const PAGE_JSONSTORAGE_PERMANENT_TITLE =
442
+ 'page.jsonstorage.permanent_title';
443
+
444
+ /**
445
+ * @description JSONStorage expire time test title
446
+ * @localZh 过期时间测试
447
+ * @localEn Expire Time Test
448
+ */
449
+ export const PAGE_JSONSTORAGE_EXPIRE_TITLE = 'page.jsonstorage.expire_title';
450
+
451
+ /**
452
+ * @description JSONStorage request timeout title
453
+ * @localZh 请求超时时间设置
454
+ * @localEn Request Timeout Setting
455
+ */
456
+ export const PAGE_JSONSTORAGE_TIMEOUT_TITLE = 'page.jsonstorage.timeout_title';
457
+
458
+ /**
459
+ * @description JSONStorage format title template
460
+ * @localZh 测试 key: ${key}, 随机值范围: ${min}~${max}
461
+ * @localEn Test key: ${key}, Random value range: ${min}~${max}
462
+ */
463
+ export const PAGE_JSONSTORAGE_FORMAT_TITLE = 'page.jsonstorage.format_title';
464
+
465
+ /**
466
+ * @description JSONStorage set random value button
467
+ * @localZh 设置随机值
468
+ * @localEn Set Random Value
469
+ */
470
+ export const PAGE_JSONSTORAGE_SET_RANDOM = 'page.jsonstorage.set_random';
471
+
472
+ /**
473
+ * @description JSONStorage current value label
474
+ * @localZh 当前值
475
+ * @localEn Current Value
476
+ */
477
+ export const PAGE_JSONSTORAGE_CURRENT_VALUE = 'page.jsonstorage.current_value';
478
+
479
+ /**
480
+ * @description JSONStorage set expire time button
481
+ * @localZh 设置随机值(带过期时间)
482
+ * @localEn Set Random Value (with expire time)
483
+ */
484
+ export const PAGE_JSONSTORAGE_SET_EXPIRE = 'page.jsonstorage.set_expire';
485
+
486
+ /**
487
+ * @description JSONStorage milliseconds unit
488
+ * @localZh 毫秒
489
+ * @localEn ms
490
+ */
491
+ export const PAGE_JSONSTORAGE_MS = 'page.jsonstorage.ms';
492
+
493
+ /**
494
+ * @description Request page timeout title
495
+ * @localZh 请求超时时间
496
+ * @localEn Request Timeout
497
+ */
498
+ export const PAGE_REQUEST_TIMEOUT = 'page.request.timeout';
499
+
500
+ /**
501
+ * @description Request page hello api title
502
+ * @localZh AI API: Hello
503
+ * @localEn AI API: Hello
504
+ */
505
+ export const PAGE_REQUEST_HELLO_TITLE = 'page.request.hello.title';
506
+
507
+ /**
508
+ * @description Request page hello api description
509
+ * @localZh 函数式 api, 使用了 FetchURLPlugin, RequestCommonPlugin, ApiMockPlugin, RequestLogger 插件
510
+ * @localEn Functional API using FetchURLPlugin, RequestCommonPlugin, ApiMockPlugin, RequestLogger plugins
511
+ */
512
+ export const PAGE_REQUEST_HELLO_DESCRIPTION = 'page.request.hello.description';
513
+
514
+ /**
515
+ * @description Request page hello button text
516
+ * @localZh Hello
517
+ * @localEn Hello
518
+ */
519
+ export const PAGE_REQUEST_HELLO_BUTTON = 'page.request.hello.button';
520
+
521
+ /**
522
+ * @description Request page ip info title
523
+ * @localZh FeApi: IP Information
524
+ * @localEn FeApi: IP Information
525
+ */
526
+ export const PAGE_REQUEST_IP_INFO_TITLE = 'page.request.ip_info.title';
527
+
528
+ /**
529
+ * @description Request page ip info description
530
+ * @localZh RequestScheduler 类式 api, 使用了 FetchURLPlugin, RequestCommonPlugin, RequestLogger, ApiPickDataPlugin 插件, 其中 ApiPickDataPlugin 插件可以将返回类型统一扁平到 data 字段
531
+ * @localEn RequestScheduler class API using FetchURLPlugin, RequestCommonPlugin, RequestLogger, ApiPickDataPlugin plugins, where ApiPickDataPlugin can flatten return types to data field
532
+ */
533
+ export const PAGE_REQUEST_IP_INFO_DESCRIPTION =
534
+ 'page.request.ip_info.description';
535
+
536
+ /**
537
+ * @description Request page random user title
538
+ * @localZh UserApi: Random User
539
+ * @localEn UserApi: Random User
540
+ */
541
+ export const PAGE_REQUEST_RANDOM_USER_TITLE = 'page.request.random_user.title';
542
+
543
+ /**
544
+ * @description Request page random user description
545
+ * @localZh RequestTransaction 类式 api, 使用了 FetchURLPlugin, RequestCommonPlugin, ApiMockPlugin, FetchAbortPlugin, RequestLogger, ApiCatchPlugin 插件, 其中 FetchAbortPlugin 可以中止请求, ApiCatchPlugin 可以将捕获的错误统一到 apiCatchResult 字段
546
+ * @localEn RequestTransaction class API using FetchURLPlugin, RequestCommonPlugin, ApiMockPlugin, FetchAbortPlugin, RequestLogger, ApiCatchPlugin plugins, where FetchAbortPlugin can abort requests, ApiCatchPlugin can unify caught errors to apiCatchResult field
547
+ */
548
+ export const PAGE_REQUEST_RANDOM_USER_DESCRIPTION =
549
+ 'page.request.random_user.description';
550
+
551
+ /**
552
+ * @description Request page api catch result title
553
+ * @localZh UserApi: Api Catch Result
554
+ * @localEn UserApi: Api Catch Result
555
+ */
556
+ export const PAGE_REQUEST_API_CATCH_TITLE = 'page.request.api_catch.title';
557
+
558
+ /**
559
+ * @description Request page abort request title
560
+ * @localZh UserApi: Abort Request
561
+ * @localEn UserApi: Abort Request
562
+ */
563
+ export const PAGE_REQUEST_ABORT_TITLE = 'page.request.abort.title';
564
+
565
+ /**
566
+ * @description Request page trigger abort request button
567
+ * @localZh 触发中止请求
568
+ * @localEn Trigger Abort Request
569
+ */
570
+ export const PAGE_REQUEST_TRIGGER_ABORT = 'page.request.trigger_abort';
571
+
572
+ /**
573
+ * @description Request page stop abort request button
574
+ * @localZh 停止中止请求
575
+ * @localEn Stop Abort Request
576
+ */
577
+ export const PAGE_REQUEST_STOP_ABORT = 'page.request.stop_abort';
578
+
579
+ /**
580
+ * @description Request page trigger api catch result button
581
+ * @localZh 触发 API 捕获结果
582
+ * @localEn Trigger API Catch Result
583
+ */
584
+ export const PAGE_REQUEST_TRIGGER_API_CATCH = 'page.request.trigger_api_catch';
585
+
586
+ /**
587
+ * @description Request page stop api catch result button
588
+ * @localZh 停止 API 捕获结果
589
+ * @localEn Stop API Catch Result
590
+ */
591
+ export const PAGE_REQUEST_STOP_API_CATCH = 'page.request.stop_api_catch';
592
+
593
+ /**
594
+ * @description Executor page main title
595
+ * @localZh 执行器
596
+ * @localEn Executor
597
+ */
598
+ export const PAGE_EXECUTOR_MAIN_TITLE = 'page.executor.main_title';
599
+
600
+ /**
601
+ * @description Executor page description
602
+ * @localZh 一个强大的任务执行器,支持多种任务类型和状态管理
603
+ * @localEn A powerful task executor supporting multiple task types and state management
604
+ */
605
+ export const PAGE_EXECUTOR_DESCRIPTION = 'page.executor.description';
606
+
607
+ /**
608
+ * @description Executor test plugin section title
609
+ * @localZh 测试插件
610
+ * @localEn Test Plugin
611
+ */
612
+ export const PAGE_EXECUTOR_TEST_PLUGIN_TITLE =
613
+ 'page.executor.test_plugin.title';
614
+
615
+ /**
616
+ * @description Executor task status pending
617
+ * @localZh 等待中
618
+ * @localEn Pending
619
+ */
620
+ export const PAGE_EXECUTOR_TASK_STATUS_PENDING =
621
+ 'page.executor.task.status.pending';
622
+
623
+ /**
624
+ * @description Executor task status running
625
+ * @localZh 运行中
626
+ * @localEn Running
627
+ */
628
+ export const PAGE_EXECUTOR_TASK_STATUS_RUNNING =
629
+ 'page.executor.task.status.running';
630
+
631
+ /**
632
+ * @description Executor task status completed
633
+ * @localZh 已完成
634
+ * @localEn Completed
635
+ */
636
+ export const PAGE_EXECUTOR_TASK_STATUS_COMPLETED =
637
+ 'page.executor.task.status.completed';
638
+
639
+ /**
640
+ * @description Executor task status failed
641
+ * @localZh 失败
642
+ * @localEn Failed
643
+ */
644
+ export const PAGE_EXECUTOR_TASK_STATUS_FAILED =
645
+ 'page.executor.task.status.failed';
646
+
647
+ /**
648
+ * @description Executor task type data sync
649
+ * @localZh 数据同步
650
+ * @localEn Data Sync
651
+ */
652
+ export const PAGE_EXECUTOR_TASK_TYPE_DATA_SYNC =
653
+ 'page.executor.task.type.data_sync';
654
+
655
+ /**
656
+ * @description Executor task type report generation
657
+ * @localZh 报告生成
658
+ * @localEn Report Generation
659
+ */
660
+ export const PAGE_EXECUTOR_TASK_TYPE_REPORT = 'page.executor.task.type.report';
661
+
662
+ /**
663
+ * @description Executor task type system maintenance
664
+ * @localZh 系统维护
665
+ * @localEn System Maintenance
666
+ */
667
+ export const PAGE_EXECUTOR_TASK_TYPE_MAINTENANCE =
668
+ 'page.executor.task.type.maintenance';
669
+
670
+ /**
671
+ * @description Executor task type backup
672
+ * @localZh 数据备份
673
+ * @localEn Backup
674
+ */
675
+ export const PAGE_EXECUTOR_TASK_TYPE_BACKUP = 'page.executor.task.type.backup';
676
+
677
+ /**
678
+ * @description Executor task duration unit
679
+ * @localZh 分钟
680
+ * @localEn minutes
681
+ */
682
+ export const PAGE_EXECUTOR_TASK_DURATION_UNIT =
683
+ 'page.executor.task.duration.unit';
684
+
685
+ /**
686
+ * @description Executor task start button
687
+ * @localZh 开始
688
+ * @localEn Start
689
+ */
690
+ export const PAGE_EXECUTOR_TASK_START = 'page.executor.task.start';
691
+
692
+ /**
693
+ * @description Executor task stop button
694
+ * @localZh 停止
695
+ * @localEn Stop
696
+ */
697
+ export const PAGE_EXECUTOR_TASK_STOP = 'page.executor.task.stop';
698
+
699
+ /**
700
+ * @description Executor task success message
701
+ * @localZh 任务 %{name} 执行成功
702
+ * @localEn Task %{name} executed successfully
703
+ */
704
+ export const PAGE_EXECUTOR_TASK_SUCCESS = 'page.executor.task.success';
705
+
706
+ /**
707
+ * @description Executor task failure message
708
+ * @localZh 任务 %{name} 执行失败
709
+ * @localEn Task %{name} execution failed
710
+ */
711
+ export const PAGE_EXECUTOR_TASK_FAILURE = 'page.executor.task.failure';
712
+
713
+ /**
714
+ * @description Executor plugin test success message
715
+ * @localZh 插件测试成功
716
+ * @localEn Plugin test successful
717
+ */
718
+ export const PAGE_EXECUTOR_PLUGIN_TEST_SUCCESS =
719
+ 'page.executor.plugin.test.success';
720
+
721
+ /**
722
+ * @description Executor plugin test failure message
723
+ * @localZh 插件测试失败
724
+ * @localEn Plugin test failed
725
+ */
726
+ export const PAGE_EXECUTOR_PLUGIN_TEST_FAILURE =
727
+ 'page.executor.plugin.test.failure';
728
+
729
+ /**
730
+ * @description Executor custom task url required message
731
+ * @localZh 请输入URL
732
+ * @localEn Please enter URL
733
+ */
734
+ export const PAGE_EXECUTOR_CUSTOM_TASK_URL_REQUIRED =
735
+ 'page.executor.custom_task.url_required';
736
+
737
+ /**
738
+ * @description Executor custom task name template
739
+ * @localZh 自定义任务 %{method} %{url}
740
+ * @localEn Custom Task %{method} %{url}
741
+ */
742
+ export const PAGE_EXECUTOR_CUSTOM_TASK_NAME = 'page.executor.custom_task.name';
743
+
744
+ /**
745
+ * @description Executor create custom task title
746
+ * @localZh 创建自定义任务
747
+ * @localEn Create Custom Task
748
+ */
749
+ export const PAGE_EXECUTOR_CREATE_TASK_TITLE =
750
+ 'page.executor.create_task.title';
751
+
752
+ /**
753
+ * @description Executor create button text
754
+ * @localZh 创建
755
+ * @localEn Create
756
+ */
757
+ export const PAGE_EXECUTOR_CREATE_BUTTON = 'page.executor.create_button';
758
+
759
+ /**
760
+ * @description Executor enter URL placeholder
761
+ * @localZh 输入URL
762
+ * @localEn Enter URL
763
+ */
764
+ export const PAGE_EXECUTOR_ENTER_URL = 'page.executor.enter_url';
765
+
766
+ /**
767
+ * @description Executor task list title
768
+ * @localZh 任务列表
769
+ * @localEn Task List
770
+ */
771
+ export const PAGE_EXECUTOR_TASK_LIST_TITLE = 'page.executor.task_list.title';
772
+
773
+ /**
774
+ * @description Executor task statistics total tasks
775
+ * @localZh 总任务数
776
+ * @localEn Total Tasks
777
+ */
778
+ export const PAGE_EXECUTOR_TASK_STATS_TOTAL = 'page.executor.task_stats.total';
779
+
780
+ /**
781
+ * @description Executor task statistics running tasks
782
+ * @localZh 运行中
783
+ * @localEn Running
784
+ */
785
+ export const PAGE_EXECUTOR_TASK_STATS_RUNNING =
786
+ 'page.executor.task_stats.running';
787
+
788
+ /**
789
+ * @description Executor task statistics completed tasks
790
+ * @localZh 已完成
791
+ * @localEn Completed
792
+ */
793
+ export const PAGE_EXECUTOR_TASK_STATS_COMPLETED =
794
+ 'page.executor.task_stats.completed';
795
+
796
+ /**
797
+ * @description Executor task statistics failed tasks
798
+ * @localZh 失败
799
+ * @localEn Failed
800
+ */
801
+ export const PAGE_EXECUTOR_TASK_STATS_FAILED =
802
+ 'page.executor.task_stats.failed';
803
+
804
+ /**
805
+ * @description Executor task history title
806
+ * @localZh 执行历史
807
+ * @localEn Execution History
808
+ */
809
+ export const PAGE_EXECUTOR_TASK_HISTORY_TITLE =
810
+ 'page.executor.task_history.title';
811
+
812
+ /**
813
+ * @description Executor help section title
814
+ * @localZh 需要帮助?
815
+ * @localEn Need Help?
816
+ */
817
+ export const PAGE_EXECUTOR_HELP_TITLE = 'page.executor.help.title';
818
+
819
+ /**
820
+ * @description Executor help section description
821
+ * @localZh 遇到问题?查看我们的任务执行指南或联系支持团队
822
+ * @localEn Having issues? Check our task execution guide or contact support
823
+ */
824
+ export const PAGE_EXECUTOR_HELP_DESCRIPTION = 'page.executor.help.description';
825
+
826
+ /**
827
+ * @description Executor view guide button
828
+ * @localZh 查看指南
829
+ * @localEn View Guide
830
+ */
831
+ export const PAGE_EXECUTOR_VIEW_GUIDE = 'page.executor.view_guide';
832
+
833
+ /**
834
+ * @description Executor contact support button
835
+ * @localZh 联系支持
836
+ * @localEn Contact Support
837
+ */
838
+ export const PAGE_EXECUTOR_CONTACT_SUPPORT = 'page.executor.contact_support';
839
+
840
+ /**
841
+ * @description ErrorIdentifier page main title
842
+ * @localZh 错误标识符
843
+ * @localEn Error Identifier
844
+ */
845
+ export const PAGE_ERROR_IDENTIFIER_MAIN_TITLE =
846
+ 'page.error.identifier.main_title';
847
+
848
+ /**
849
+ * @description ErrorIdentifier page description
850
+ * @localZh 来自 '@config/Identifier.Error' 的标识符
851
+ * @localEn Identifier From: '@config/Identifier.Error'
852
+ */
853
+ export const PAGE_ERROR_IDENTIFIER_SOURCE_DESCRIPTION =
854
+ 'page.error.identifier.source_description';
855
+
856
+ /**
857
+ * @description ErrorIdentifier help section title
858
+ * @localZh 需要帮助?
859
+ * @localEn Need Help?
860
+ */
861
+ export const PAGE_ERROR_IDENTIFIER_HELP_TITLE =
862
+ 'page.error.identifier.help.title';
863
+
864
+ /**
865
+ * @description ErrorIdentifier help section description
866
+ * @localZh 如果您在使用错误标识符时遇到问题,请联系我们的支持团队
867
+ * @localEn If you encounter any issues while using error identifiers, please contact our support team
868
+ */
869
+ export const PAGE_ERROR_IDENTIFIER_HELP_DESCRIPTION =
870
+ 'page.error.identifier.help.description';
871
+
872
+ /**
873
+ * @description ErrorIdentifier contact support button
874
+ * @localZh 联系支持
875
+ * @localEn Contact Support
876
+ */
877
+ export const PAGE_ERROR_IDENTIFIER_CONTACT_SUPPORT =
878
+ 'page.error.identifier.contact_support';