@qlover/create-app 0.4.5 → 0.5.0

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 (163) hide show
  1. package/CHANGELOG.md +95 -35
  2. package/dist/index.cjs +11 -0
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.js +10 -2418
  5. package/{templates → dist/templates}/node-lib/package.json +2 -2
  6. package/{templates → dist/templates}/react-app/README.md +6 -6
  7. package/{templates/react-app/config/Identifier/Error.ts → dist/templates/react-app/config/Identifier/common.error.ts} +8 -8
  8. package/dist/templates/react-app/config/Identifier/common.ts +62 -0
  9. package/dist/templates/react-app/config/Identifier/index.ts +10 -0
  10. package/dist/templates/react-app/config/Identifier/page.about.ts +181 -0
  11. package/dist/templates/react-app/config/Identifier/page.executor.ts +267 -0
  12. package/dist/templates/react-app/config/Identifier/page.home.ts +63 -0
  13. package/dist/templates/react-app/config/Identifier/page.identifiter.ts +39 -0
  14. package/dist/templates/react-app/config/Identifier/page.jsonStorage.ts +70 -0
  15. package/dist/templates/react-app/config/Identifier/page.login.ts +152 -0
  16. package/dist/templates/react-app/config/Identifier/page.register.ts +147 -0
  17. package/dist/templates/react-app/config/Identifier/page.request.ts +179 -0
  18. package/dist/templates/react-app/config/app.router.ts +163 -0
  19. package/{templates → dist/templates}/react-app/config/feapi.mock.json +6 -0
  20. package/dist/templates/react-app/config/theme.ts +11 -0
  21. package/{templates → dist/templates}/react-app/package.json +2 -2
  22. package/{templates → dist/templates}/react-app/public/locales/en/common.json +97 -116
  23. package/{templates → dist/templates}/react-app/public/locales/zh/common.json +98 -117
  24. package/{templates → dist/templates}/react-app/src/App.tsx +6 -5
  25. package/dist/templates/react-app/src/base/apis/userApi/UserApi.ts +142 -0
  26. package/{templates → dist/templates}/react-app/src/base/apis/userApi/UserApiType.ts +11 -0
  27. package/{templates → dist/templates}/react-app/src/base/cases/AppConfig.ts +11 -0
  28. package/dist/templates/react-app/src/base/cases/I18nKeyErrorPlugin.ts +36 -0
  29. package/{templates → dist/templates}/react-app/src/base/cases/RouterLoader.ts +2 -1
  30. package/{templates → dist/templates}/react-app/src/base/services/I18nService.ts +4 -4
  31. package/{templates/react-app/src/base/services/ProcesserService.ts → dist/templates/react-app/src/base/services/ProcesserExecutor.ts} +15 -5
  32. package/{templates → dist/templates}/react-app/src/base/services/RouteService.ts +11 -13
  33. package/dist/templates/react-app/src/base/services/UserService.ts +132 -0
  34. package/{templates → dist/templates}/react-app/src/base/types/Page.ts +12 -2
  35. package/{templates → dist/templates}/react-app/src/core/IOC.ts +11 -6
  36. package/{templates → dist/templates}/react-app/src/core/bootstrap.ts +2 -2
  37. package/{templates → dist/templates}/react-app/src/core/bootstraps/index.ts +3 -1
  38. package/{templates → dist/templates}/react-app/src/core/globals.ts +23 -7
  39. package/{templates → dist/templates}/react-app/src/core/registers/RegisterApi.ts +1 -1
  40. package/{templates → dist/templates}/react-app/src/core/registers/RegisterCommon.ts +14 -15
  41. package/{templates → dist/templates}/react-app/src/core/registers/RegisterControllers.ts +9 -4
  42. package/{templates → dist/templates}/react-app/src/core/registers/RegisterGlobals.ts +12 -4
  43. package/{templates → dist/templates}/react-app/src/pages/404.tsx +4 -1
  44. package/{templates → dist/templates}/react-app/src/pages/500.tsx +2 -1
  45. package/{templates → dist/templates}/react-app/src/pages/auth/Layout.tsx +2 -2
  46. package/{templates/react-app/src/pages/auth/Login.tsx → dist/templates/react-app/src/pages/auth/LoginPage.tsx} +2 -4
  47. package/{templates/react-app/src/pages/auth/Register.tsx → dist/templates/react-app/src/pages/auth/RegisterPage.tsx} +3 -6
  48. package/{templates/react-app/src/pages/base/About.tsx → dist/templates/react-app/src/pages/base/AboutPage.tsx} +4 -4
  49. package/{templates/react-app/src/pages/base/ErrorIdentifier.tsx → dist/templates/react-app/src/pages/base/ErrorIdentifierPage.tsx} +3 -3
  50. package/{templates/react-app/src/pages/base/Executor.tsx → dist/templates/react-app/src/pages/base/ExecutorPage.tsx} +3 -3
  51. package/{templates/react-app/src/pages/base/Home.tsx → dist/templates/react-app/src/pages/base/HomePage.tsx} +15 -45
  52. package/{templates/react-app/src/pages/base/JSONStorage.tsx → dist/templates/react-app/src/pages/base/JSONStoragePage.tsx} +3 -3
  53. package/{templates → dist/templates}/react-app/src/pages/base/Layout.tsx +4 -4
  54. package/{templates/react-app/src/pages/base/Request.tsx → dist/templates/react-app/src/pages/base/RequestPage.tsx} +2 -2
  55. package/{templates/react-app/src/pages/base → dist/templates/react-app/src/uikit}/components/LogoutButton.tsx +1 -1
  56. package/{templates → dist/templates}/react-app/src/uikit/components/ThemeSwitcher.tsx +5 -6
  57. package/{templates → dist/templates}/react-app/src/uikit/contexts/BaseRouteContext.ts +1 -1
  58. package/{templates → dist/templates}/react-app/src/uikit/controllers/ExecutorController.ts +2 -2
  59. package/{templates → dist/templates}/react-app/src/uikit/controllers/JSONStorageController.ts +5 -5
  60. package/{templates → dist/templates}/react-app/src/uikit/controllers/RequestController.ts +1 -1
  61. package/{templates/react-app/src/uikit/hooks/useLanguageGuard.ts → dist/templates/react-app/src/uikit/hooks/useI18nGuard.ts} +1 -1
  62. package/{templates → dist/templates}/react-app/src/uikit/hooks/useStore.ts +2 -2
  63. package/dist/templates/react-app/src/uikit/hooks/userRouterService.ts +12 -0
  64. package/{templates → dist/templates}/react-app/src/uikit/providers/BaseRouteProvider.tsx +1 -0
  65. package/dist/templates/react-app/src/uikit/providers/ProcessExecutorProvider.tsx +24 -0
  66. package/dist/templates/react-app/src/uikit/providers/UserAuthProvider.tsx +16 -0
  67. package/{templates → dist/templates}/react-app/vite.config.ts +2 -1
  68. package/package.json +4 -6
  69. package/templates/react-app/config/Identifier/Auth.ts +0 -13
  70. package/templates/react-app/config/Identifier/I18n.ts +0 -1366
  71. package/templates/react-app/config/app.router.json +0 -159
  72. package/templates/react-app/config/theme.json +0 -9
  73. package/templates/react-app/src/base/apis/userApi/UserApi.ts +0 -64
  74. package/templates/react-app/src/base/port/LoginInterface.ts +0 -12
  75. package/templates/react-app/src/base/port/StoreInterface.ts +0 -58
  76. package/templates/react-app/src/base/services/UserService.ts +0 -130
  77. package/templates/react-app/src/uikit/providers/ProcessProvider.tsx +0 -45
  78. /package/{configs → dist/configs}/_common/.editorconfig +0 -0
  79. /package/{configs → dist/configs}/_common/.env.template +0 -0
  80. /package/{configs → dist/configs}/_common/.gitattributes +0 -0
  81. /package/{configs → dist/configs}/_common/.github/workflows/general-check.yml +0 -0
  82. /package/{configs → dist/configs}/_common/.github/workflows/release.yml +0 -0
  83. /package/{configs → dist/configs}/_common/.gitignore.template +0 -0
  84. /package/{configs → dist/configs}/_common/.husky/commit-msg +0 -0
  85. /package/{configs → dist/configs}/_common/.husky/pre-commit +0 -0
  86. /package/{configs → dist/configs}/_common/.prettierignore +0 -0
  87. /package/{configs → dist/configs}/_common/.prettierrc.js +0 -0
  88. /package/{configs → dist/configs}/_common/.vscode/extensions.json +0 -0
  89. /package/{configs → dist/configs}/_common/.vscode/react.code-snippets +0 -0
  90. /package/{configs → dist/configs}/_common/.vscode/settings.json +0 -0
  91. /package/{configs → dist/configs}/_common/commitlint.config.js +0 -0
  92. /package/{configs → dist/configs}/_common/package.json.template +0 -0
  93. /package/{configs → dist/configs}/node-lib/eslint.config.js +0 -0
  94. /package/{configs → dist/configs}/react-app/eslint.config.js +0 -0
  95. /package/{templates → dist/templates}/node-lib/__tests__/readJson.test.ts +0 -0
  96. /package/{templates → dist/templates}/node-lib/bin/test.js +0 -0
  97. /package/{templates → dist/templates}/node-lib/rollup.config.js +0 -0
  98. /package/{templates → dist/templates}/node-lib/src/index.ts +0 -0
  99. /package/{templates → dist/templates}/node-lib/src/readJson.ts +0 -0
  100. /package/{templates → dist/templates}/node-lib/tsconfig.json +0 -0
  101. /package/{templates → dist/templates}/pack-app/README.md +0 -0
  102. /package/{templates → dist/templates}/pack-app/eslint.config.js +0 -0
  103. /package/{templates → dist/templates}/pack-app/fe-config.json +0 -0
  104. /package/{templates → dist/templates}/pack-app/package.json +0 -0
  105. /package/{templates → dist/templates}/pack-app/pnpm-workspace.yaml +0 -0
  106. /package/{templates → dist/templates}/pack-app/tsconfig.json +0 -0
  107. /package/{templates → dist/templates}/pack-app/tsconfig.test.json +0 -0
  108. /package/{templates → dist/templates}/pack-app/vite.config.ts +0 -0
  109. /package/{templates → dist/templates}/react-app/.env.template +0 -0
  110. /package/{templates → dist/templates}/react-app/config/common.ts +0 -0
  111. /package/{templates → dist/templates}/react-app/config/i18n.ts +0 -0
  112. /package/{templates → dist/templates}/react-app/index.html +0 -0
  113. /package/{templates → dist/templates}/react-app/postcss.config.js +0 -0
  114. /package/{templates → dist/templates}/react-app/public/logo.svg +0 -0
  115. /package/{templates → dist/templates}/react-app/public/router-root/logo.svg +0 -0
  116. /package/{templates → dist/templates}/react-app/src/assets/react.svg +0 -0
  117. /package/{templates → dist/templates}/react-app/src/base/apis/AiApi.ts +0 -0
  118. /package/{templates → dist/templates}/react-app/src/base/apis/feApi/FeApi.ts +0 -0
  119. /package/{templates → dist/templates}/react-app/src/base/apis/feApi/FeApiAdapter.ts +0 -0
  120. /package/{templates → dist/templates}/react-app/src/base/apis/feApi/FeApiBootstarp.ts +0 -0
  121. /package/{templates → dist/templates}/react-app/src/base/apis/feApi/FeApiType.ts +0 -0
  122. /package/{templates → dist/templates}/react-app/src/base/apis/userApi/UserApiAdapter.ts +0 -0
  123. /package/{templates → dist/templates}/react-app/src/base/apis/userApi/UserApiBootstarp.ts +0 -0
  124. /package/{templates → dist/templates}/react-app/src/base/cases/AppError.ts +0 -0
  125. /package/{templates → dist/templates}/react-app/src/base/cases/DialogHandler.ts +0 -0
  126. /package/{templates → dist/templates}/react-app/src/base/cases/PublicAssetsPath.ts +0 -0
  127. /package/{templates → dist/templates}/react-app/src/base/cases/RequestLogger.ts +0 -0
  128. /package/{templates → dist/templates}/react-app/src/base/cases/RequestStatusCatcher.ts +0 -0
  129. /package/{templates → dist/templates}/react-app/src/base/port/ApiTransactionInterface.ts +0 -0
  130. /package/{templates → dist/templates}/react-app/src/base/port/InteractionHubInterface.ts +0 -0
  131. /package/{templates → dist/templates}/react-app/src/base/port/RequestCatcherInterface.ts +0 -0
  132. /package/{templates → dist/templates}/react-app/src/base/port/UIDependenciesInterface.ts +0 -0
  133. /package/{templates → dist/templates}/react-app/src/base/types/deprecated-antd.d.ts +0 -0
  134. /package/{templates → dist/templates}/react-app/src/base/types/global.d.ts +0 -0
  135. /package/{templates → dist/templates}/react-app/src/core/bootstraps/BootstrapApp.ts +0 -0
  136. /package/{templates → dist/templates}/react-app/src/core/bootstraps/PrintBootstrap.ts +0 -0
  137. /package/{templates → dist/templates}/react-app/src/core/registers/index.ts +0 -0
  138. /package/{templates → dist/templates}/react-app/src/main.tsx +0 -0
  139. /package/{templates → dist/templates}/react-app/src/pages/base/RedirectPathname.tsx +0 -0
  140. /package/{templates → dist/templates}/react-app/src/styles/css/antd-themes/_default.css +0 -0
  141. /package/{templates → dist/templates}/react-app/src/styles/css/antd-themes/dark.css +0 -0
  142. /package/{templates → dist/templates}/react-app/src/styles/css/antd-themes/index.css +0 -0
  143. /package/{templates → dist/templates}/react-app/src/styles/css/antd-themes/no-context.css +0 -0
  144. /package/{templates → dist/templates}/react-app/src/styles/css/antd-themes/pink.css +0 -0
  145. /package/{templates → dist/templates}/react-app/src/styles/css/index.css +0 -0
  146. /package/{templates → dist/templates}/react-app/src/styles/css/page.css +0 -0
  147. /package/{templates → dist/templates}/react-app/src/styles/css/tailwind.css +0 -0
  148. /package/{templates → dist/templates}/react-app/src/styles/css/themes/_default.css +0 -0
  149. /package/{templates → dist/templates}/react-app/src/styles/css/themes/dark.css +0 -0
  150. /package/{templates → dist/templates}/react-app/src/styles/css/themes/index.css +0 -0
  151. /package/{templates → dist/templates}/react-app/src/styles/css/themes/pink.css +0 -0
  152. /package/{templates/react-app/src/pages/base → dist/templates/react-app/src/uikit}/components/BaseHeader.tsx +0 -0
  153. /package/{templates → dist/templates}/react-app/src/uikit/components/LanguageSwitcher.tsx +0 -0
  154. /package/{templates → dist/templates}/react-app/src/uikit/components/Loading.tsx +0 -0
  155. /package/{templates → dist/templates}/react-app/src/uikit/components/LocaleLink.tsx +0 -0
  156. /package/{templates → dist/templates}/react-app/src/uikit/components/RouterRenderComponent.tsx +0 -0
  157. /package/{templates → dist/templates}/react-app/src/uikit/hooks/useDocumentTitle.ts +0 -0
  158. /package/{templates → dist/templates}/react-app/src/uikit/hooks/useStrictEffect.ts +0 -0
  159. /package/{templates → dist/templates}/react-app/src/vite-env.d.ts +0 -0
  160. /package/{templates → dist/templates}/react-app/tailwind.config.js +0 -0
  161. /package/{templates → dist/templates}/react-app/tsconfig.app.json +0 -0
  162. /package/{templates → dist/templates}/react-app/tsconfig.json +0 -0
  163. /package/{templates → dist/templates}/react-app/tsconfig.node.json +0 -0
@@ -55,12 +55,12 @@
55
55
  "@rollup/plugin-node-resolve": "^15.3.0",
56
56
  "@rollup/plugin-terser": "^0.4.4",
57
57
  "@types/node": "^22.13.2",
58
- "commander": "^11.0.0",
59
58
  "release-it": "^17.10.0",
60
59
  "rollup-plugin-dts": "^6.1.1",
61
60
  "rollup-plugin-typescript2": "^0.36.0"
62
61
  },
63
62
  "dependencies": {
64
- "@qlover/fe-corekit": "latest"
63
+ "@qlover/fe-corekit": "latest",
64
+ "commander": "^11.0.0"
65
65
  }
66
66
  }
@@ -135,11 +135,11 @@ export default defineConfig({
135
135
  locales: i18nConfig.supportedLngs,
136
136
  options: [
137
137
  {
138
- source: './config/Identifier/Error.ts',
138
+ source: './config/Identifier/error.ts',
139
139
  target: './public/locales/{{lng}}/common.json'
140
140
  },
141
141
  {
142
- source: './config/Identifier/I18n.ts',
142
+ source: './config/Identifier/index.ts',
143
143
  target: './public/locales/{{lng}}/common.json'
144
144
  }
145
145
  ]
@@ -166,7 +166,7 @@ await i18nService.changeLanguage('zh');
166
166
 
167
167
  ```typescript
168
168
  import { useBaseRoutePage } from '@/uikit/contexts/BaseRouteContext';
169
- import * as i18nKeys from '@config/Identifier/I18n';
169
+ import * as i18nKeys from '@config/Identifier';
170
170
 
171
171
  function MyComponent() {
172
172
  const { t } = useBaseRoutePage();
@@ -200,8 +200,8 @@ function Header() {
200
200
 
201
201
  1. 国际化标识符管理:
202
202
 
203
- - 在 `config/Identifier/I18n.ts` 中集中管理UI文本
204
- - 在 `config/Identifier/Error.ts` 中集中管理错误信息
203
+ - 在 `config/Identifier/index.ts` 中集中管理UI文本
204
+ - 在 `config/Identifier/error.ts` 中集中管理错误信息
205
205
  - 使用有意义的 key 命名(如:'page.home.title')
206
206
 
207
207
  2. TypeScript 注释规范:
@@ -217,7 +217,7 @@ function Header() {
217
217
 
218
218
  4. 组件开发:
219
219
  - 使用 `useBaseRoutePage` hook 获取翻译函数
220
- - 从 `@config/Identifier/I18n` 引入国际化 key
220
+ - 从 `@config/Identifier` 引入国际化 key
221
221
  - 避免硬编码文本,始终使用国际化 key
222
222
 
223
223
  ### 主题系统
@@ -1,10 +1,3 @@
1
- /**
2
- * @description IOC 未实现
3
- * @localZh IOC 未实现
4
- * @localEn IOC not implemented
5
- */
6
- export const APP_IOC_NOT_IMPLEMENTED = 'err.ioc.not.implemented';
7
-
8
1
  /**
9
2
  * @description 本地未找到 user token
10
3
  * @localZh 本地未找到 user token
@@ -31,4 +24,11 @@ export const WITHIN_PAGE_PROVIDER = 'err.within.page.provider';
31
24
  * @localZh 响应内容没有 token 值
32
25
  * @localEn Response not token value
33
26
  */
34
- export const RES_NO_TOKEN = 'response.no.token';
27
+ export const RES_NO_TOKEN = 'err.response.no.token';
28
+
29
+ /**
30
+ * @description 未找到组件
31
+ * @localZh 未找到组件
32
+ * @localEn Not found component
33
+ */
34
+ export const NOT_FOUND_COMPONENT = 'err.not.found.component';
@@ -0,0 +1,62 @@
1
+ /**
2
+ * @description Theme switcher default theme label
3
+ * @localZh 默认主题
4
+ * @localEn Default Theme
5
+ */
6
+ export const HEADER_THEME_DEFAULT = 'header.theme.default';
7
+
8
+ /**
9
+ * @description Theme switcher dark theme label
10
+ * @localZh 暗色主题
11
+ * @localEn Dark Theme
12
+ */
13
+ export const HEADER_THEME_DARK = 'header.theme.dark';
14
+
15
+ /**
16
+ * @description Theme switcher pink theme label
17
+ * @localZh 粉色主题
18
+ * @localEn Pink Theme
19
+ */
20
+ export const HEADER_THEME_PINK = 'header.theme.pink';
21
+
22
+ /**
23
+ * @description logout dialog title
24
+ * @localZh 登出
25
+ * @localEn Logout
26
+ */
27
+ export const AUTH_LOGOUT_DIALOG_TITLE = 'auth.logout.dialog.title';
28
+
29
+ /**
30
+ * @description logout dialog content
31
+ * @localZh 确定要登出吗?
32
+ * @localEn Are you sure you want to logout?
33
+ */
34
+ export const AUTH_LOGOUT_DIALOG_CONTENT = 'auth.logout.dialog.content';
35
+
36
+ /**
37
+ * @description 404 page title
38
+ * @localZh 404 页面未找到
39
+ * @localEn 404 Page Not Found
40
+ */
41
+ export const PAGE_404_TITLE = 'page.404.title';
42
+
43
+ /**
44
+ * @description 404 page description
45
+ * @localZh 404 页面描述
46
+ * @localEn 404 Page Description
47
+ */
48
+ export const PAGE_404_DESCRIPTION = 'page.404.description';
49
+
50
+ /**
51
+ * @description 500 page title
52
+ * @localZh 500 页面错误
53
+ * @localEn 500 Page Error
54
+ */
55
+ export const PAGE_500_TITLE = 'page.500.title';
56
+
57
+ /**
58
+ * @description 500 page description
59
+ * @localZh 500 页面描述
60
+ * @localEn 500 Page Description
61
+ */
62
+ export const PAGE_500_DESCRIPTION = 'page.500.description';
@@ -0,0 +1,10 @@
1
+ export * from './common';
2
+ export * from './common.error';
3
+ export * from './page.about';
4
+ export * from './page.executor';
5
+ export * from './page.home';
6
+ export * from './page.identifiter';
7
+ export * from './page.jsonStorage';
8
+ export * from './page.login';
9
+ export * from './page.register';
10
+ export * from './page.request';
@@ -0,0 +1,181 @@
1
+ /**
2
+ * @description About page title
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 Test message for About page
17
+ * @localZh 这是一条测试消息
18
+ * @localEn This is a test message
19
+ */
20
+ export const ABOUT_MESSAGE_TEST = 'about.message.test';
21
+
22
+ /**
23
+ * @description Notification title for About page
24
+ * @localZh 通知标题
25
+ * @localEn Notification Title
26
+ */
27
+ export const ABOUT_NOTIFICATION_TITLE = 'about.notification.title';
28
+
29
+ /**
30
+ * @description Notification description for About page
31
+ * @localZh 这是一条测试通知
32
+ * @localEn This is a test notification
33
+ */
34
+ export const ABOUT_NOTIFICATION_DESC = 'about.notification.description';
35
+
36
+ /**
37
+ * @description Message button text for About page
38
+ * @localZh 显示 Message
39
+ * @localEn Show Message
40
+ */
41
+ export const ABOUT_BTN_MESSAGE = 'about.button.message';
42
+
43
+ /**
44
+ * @description Message button text for About page
45
+ * @localZh 静态消息
46
+ * @localEn Static Message
47
+ */
48
+ export const ABOUT_BTN_MESSAGE2 = 'about.button.message2';
49
+
50
+ /**
51
+ * @description Notification button text for About page
52
+ * @localZh 显示 Notification
53
+ * @localEn Show Notification
54
+ */
55
+ export const ABOUT_BTN_NOTIFICATION = 'about.button.notification';
56
+
57
+ /**
58
+ * @description Notification button text for About page
59
+ * @localZh 静态通知
60
+ * @localEn Static Notification
61
+ */
62
+ export const ABOUT_BTN_NOTIFICATION2 = 'about.button.notification2';
63
+
64
+ /**
65
+ * @description Tooltip text for About page
66
+ * @localZh 这是一个提示文本
67
+ * @localEn This is a tooltip text
68
+ */
69
+ export const ABOUT_TOOLTIP_TEXT = 'about.tooltip.text';
70
+
71
+ /**
72
+ * @description Tooltip button text for About page
73
+ * @localZh 悬停显示 Tooltip
74
+ * @localEn Hover to show Tooltip
75
+ */
76
+ export const ABOUT_BTN_TOOLTIP = 'about.button.tooltip';
77
+
78
+ /**
79
+ * @description Modal title for About page
80
+ * @localZh 模态框示例
81
+ * @localEn Modal Example
82
+ */
83
+ export const ABOUT_MODAL_TITLE = 'about.modal.title';
84
+
85
+ /**
86
+ * @description Modal content for About page
87
+ * @localZh 这是一个模态框的内容
88
+ * @localEn This is modal content
89
+ */
90
+ export const ABOUT_MODAL_CONTENT = 'about.modal.content';
91
+
92
+ /**
93
+ * @description Modal button text for About page
94
+ * @localZh 显示 Modal
95
+ * @localEn Show Modal
96
+ */
97
+ export const ABOUT_BTN_MODAL = 'about.button.modal';
98
+
99
+ /**
100
+ * @description Drawer title for About page
101
+ * @localZh 抽屉示例
102
+ * @localEn Drawer Example
103
+ */
104
+ export const ABOUT_DRAWER_TITLE = 'about.drawer.title';
105
+
106
+ /**
107
+ * @description Drawer content for About page
108
+ * @localZh 这是一个抽屉的内容
109
+ * @localEn This is drawer content
110
+ */
111
+ export const ABOUT_DRAWER_CONTENT = 'about.drawer.content';
112
+
113
+ /**
114
+ * @description Drawer button text for About page
115
+ * @localZh 显示 Drawer
116
+ * @localEn Show Drawer
117
+ */
118
+ export const ABOUT_BTN_DRAWER = 'about.button.drawer';
119
+
120
+ /**
121
+ * @description Popover content for About page
122
+ * @localZh 这是一个气泡卡片
123
+ * @localEn This is a popover card
124
+ */
125
+ export const ABOUT_POPOVER_CONTENT = 'about.popover.content';
126
+
127
+ /**
128
+ * @description Popover title for About page
129
+ * @localZh Popover 标题
130
+ * @localEn Popover Title
131
+ */
132
+ export const ABOUT_POPOVER_TITLE = 'about.popover.title';
133
+
134
+ /**
135
+ * @description Popover button text for About page
136
+ * @localZh 显示 Popover
137
+ * @localEn Show Popover
138
+ */
139
+ export const ABOUT_BTN_POPOVER = 'about.button.popover';
140
+
141
+ /**
142
+ * @description Popconfirm title for About page
143
+ * @localZh 确认提示
144
+ * @localEn Confirmation
145
+ */
146
+ export const ABOUT_POPCONFIRM_TITLE = 'about.popconfirm.title';
147
+
148
+ /**
149
+ * @description Popconfirm description for About page
150
+ * @localZh 您确定要执行此操作吗?
151
+ * @localEn Are you sure you want to perform this action?
152
+ */
153
+ export const ABOUT_POPCONFIRM_DESC = 'about.popconfirm.description';
154
+
155
+ /**
156
+ * @description Popconfirm button text for About page
157
+ * @localZh 显示 Popconfirm
158
+ * @localEn Show Popconfirm
159
+ */
160
+ export const ABOUT_BTN_POPCONFIRM = 'about.button.popconfirm';
161
+
162
+ /**
163
+ * @description Alert message for About page
164
+ * @localZh 这是一个警告提示
165
+ * @localEn This is a warning alert
166
+ */
167
+ export const ABOUT_ALERT_MESSAGE = 'about.alert.message';
168
+
169
+ /**
170
+ * @description Alert ok text for About page
171
+ * @localZh 确定
172
+ * @localEn OK
173
+ */
174
+ export const ABOUT_OK_TEXT = 'about.ok.text';
175
+
176
+ /**
177
+ * @description Alert cancel text for About page
178
+ * @localZh 取消
179
+ * @localEn Cancel
180
+ */
181
+ export const ABOUT_CANCEL_TEXT = 'about.cancel.text';
@@ -0,0 +1,267 @@
1
+ /**
2
+ * @description Executor page title
3
+ * @localZh 执行器示例
4
+ * @localEn Executor Examples
5
+ */
6
+ export const PAGE_EXECUTOR_TITLE = 'page.executor.title';
7
+
8
+ /**
9
+ * @description Executor page description
10
+ * @localZh 一个强大的任务执行器,支持多种任务类型和状态管理
11
+ * @localEn A powerful task executor supporting multiple task types and state management
12
+ */
13
+ export const PAGE_EXECUTOR_DESCRIPTION = 'page.executor.description';
14
+
15
+ /**
16
+ * @description Error Identifier page title
17
+ * @localZh 错误标识符
18
+ * @localEn Error Identifier
19
+ */
20
+ export const PAGE_ERROR_IDENTIFIER_TITLE = 'page.error_identifier.title';
21
+
22
+ /**
23
+ * @description Executor page main title
24
+ * @localZh 执行器
25
+ * @localEn Executor
26
+ */
27
+ export const PAGE_EXECUTOR_MAIN_TITLE = 'page.executor.main_title';
28
+
29
+ /**
30
+ * @description Executor test plugin section title
31
+ * @localZh 测试插件
32
+ * @localEn Test Plugin
33
+ */
34
+ export const PAGE_EXECUTOR_TEST_PLUGIN_TITLE =
35
+ 'page.executor.test_plugin.title';
36
+
37
+ /**
38
+ * @description Executor task status pending
39
+ * @localZh 等待中
40
+ * @localEn Pending
41
+ */
42
+ export const PAGE_EXECUTOR_TASK_STATUS_PENDING =
43
+ 'page.executor.task.status.pending';
44
+
45
+ /**
46
+ * @description Executor task status running
47
+ * @localZh 运行中
48
+ * @localEn Running
49
+ */
50
+ export const PAGE_EXECUTOR_TASK_STATUS_RUNNING =
51
+ 'page.executor.task.status.running';
52
+
53
+ /**
54
+ * @description Executor task status completed
55
+ * @localZh 已完成
56
+ * @localEn Completed
57
+ */
58
+ export const PAGE_EXECUTOR_TASK_STATUS_COMPLETED =
59
+ 'page.executor.task.status.completed';
60
+
61
+ /**
62
+ * @description Executor task status failed
63
+ * @localZh 失败
64
+ * @localEn Failed
65
+ */
66
+ export const PAGE_EXECUTOR_TASK_STATUS_FAILED =
67
+ 'page.executor.task.status.failed';
68
+
69
+ /**
70
+ * @description Executor task type data sync
71
+ * @localZh 数据同步
72
+ * @localEn Data Sync
73
+ */
74
+ export const PAGE_EXECUTOR_TASK_TYPE_DATA_SYNC =
75
+ 'page.executor.task.type.data_sync';
76
+
77
+ /**
78
+ * @description Executor task type report generation
79
+ * @localZh 报告生成
80
+ * @localEn Report Generation
81
+ */
82
+ export const PAGE_EXECUTOR_TASK_TYPE_REPORT = 'page.executor.task.type.report';
83
+
84
+ /**
85
+ * @description Executor task type system maintenance
86
+ * @localZh 系统维护
87
+ * @localEn System Maintenance
88
+ */
89
+ export const PAGE_EXECUTOR_TASK_TYPE_MAINTENANCE =
90
+ 'page.executor.task.type.maintenance';
91
+
92
+ /**
93
+ * @description Executor task type backup
94
+ * @localZh 数据备份
95
+ * @localEn Backup
96
+ */
97
+ export const PAGE_EXECUTOR_TASK_TYPE_BACKUP = 'page.executor.task.type.backup';
98
+
99
+ /**
100
+ * @description Executor task duration unit
101
+ * @localZh 分钟
102
+ * @localEn minutes
103
+ */
104
+ export const PAGE_EXECUTOR_TASK_DURATION_UNIT =
105
+ 'page.executor.task.duration.unit';
106
+
107
+ /**
108
+ * @description Executor task start button
109
+ * @localZh 开始
110
+ * @localEn Start
111
+ */
112
+ export const PAGE_EXECUTOR_TASK_START = 'page.executor.task.start';
113
+
114
+ /**
115
+ * @description Executor task stop button
116
+ * @localZh 停止
117
+ * @localEn Stop
118
+ */
119
+ export const PAGE_EXECUTOR_TASK_STOP = 'page.executor.task.stop';
120
+
121
+ /**
122
+ * @description Executor task success message
123
+ * @localZh 任务 %{name} 执行成功
124
+ * @localEn Task %{name} executed successfully
125
+ */
126
+ export const PAGE_EXECUTOR_TASK_SUCCESS = 'page.executor.task.success';
127
+
128
+ /**
129
+ * @description Executor task failure message
130
+ * @localZh 任务 %{name} 执行失败
131
+ * @localEn Task %{name} execution failed
132
+ */
133
+ export const PAGE_EXECUTOR_TASK_FAILURE = 'page.executor.task.failure';
134
+
135
+ /**
136
+ * @description Executor plugin test success message
137
+ * @localZh 插件测试成功
138
+ * @localEn Plugin test successful
139
+ */
140
+ export const PAGE_EXECUTOR_PLUGIN_TEST_SUCCESS =
141
+ 'page.executor.plugin.test.success';
142
+
143
+ /**
144
+ * @description Executor plugin test failure message
145
+ * @localZh 插件测试失败
146
+ * @localEn Plugin test failed
147
+ */
148
+ export const PAGE_EXECUTOR_PLUGIN_TEST_FAILURE =
149
+ 'page.executor.plugin.test.failure';
150
+
151
+ /**
152
+ * @description Executor custom task url required message
153
+ * @localZh 请输入URL
154
+ * @localEn Please enter URL
155
+ */
156
+ export const PAGE_EXECUTOR_CUSTOM_TASK_URL_REQUIRED =
157
+ 'page.executor.custom_task.url_required';
158
+
159
+ /**
160
+ * @description Executor custom task name template
161
+ * @localZh 自定义任务 %{method} %{url}
162
+ * @localEn Custom Task %{method} %{url}
163
+ */
164
+ export const PAGE_EXECUTOR_CUSTOM_TASK_NAME = 'page.executor.custom_task.name';
165
+
166
+ /**
167
+ * @description Executor create custom task title
168
+ * @localZh 创建自定义任务
169
+ * @localEn Create Custom Task
170
+ */
171
+ export const PAGE_EXECUTOR_CREATE_TASK_TITLE =
172
+ 'page.executor.create_task.title';
173
+
174
+ /**
175
+ * @description Executor create button text
176
+ * @localZh 创建
177
+ * @localEn Create
178
+ */
179
+ export const PAGE_EXECUTOR_CREATE_BUTTON = 'page.executor.create_button';
180
+
181
+ /**
182
+ * @description Executor enter URL placeholder
183
+ * @localZh 输入URL
184
+ * @localEn Enter URL
185
+ */
186
+ export const PAGE_EXECUTOR_ENTER_URL = 'page.executor.enter_url';
187
+
188
+ /**
189
+ * @description Executor task list title
190
+ * @localZh 任务列表
191
+ * @localEn Task List
192
+ */
193
+ export const PAGE_EXECUTOR_TASK_LIST_TITLE = 'page.executor.task_list.title';
194
+
195
+ /**
196
+ * @description Executor task statistics total tasks
197
+ * @localZh 总任务数
198
+ * @localEn Total Tasks
199
+ */
200
+ export const PAGE_EXECUTOR_TASK_STATS_TOTAL = 'page.executor.task_stats.total';
201
+
202
+ /**
203
+ * @description Executor task statistics running tasks
204
+ * @localZh 运行中
205
+ * @localEn Running
206
+ */
207
+ export const PAGE_EXECUTOR_TASK_STATS_RUNNING =
208
+ 'page.executor.task_stats.running';
209
+
210
+ /**
211
+ * @description Executor task statistics completed tasks
212
+ * @localZh 已完成
213
+ * @localEn Completed
214
+ */
215
+ export const PAGE_EXECUTOR_TASK_STATS_COMPLETED =
216
+ 'page.executor.task_stats.completed';
217
+
218
+ /**
219
+ * @description Executor task statistics failed tasks
220
+ * @localZh 失败
221
+ * @localEn Failed
222
+ */
223
+ export const PAGE_EXECUTOR_TASK_STATS_FAILED =
224
+ 'page.executor.task_stats.failed';
225
+
226
+ /**
227
+ * @description Executor task history title
228
+ * @localZh 执行历史
229
+ * @localEn Execution History
230
+ */
231
+ export const PAGE_EXECUTOR_TASK_HISTORY_TITLE =
232
+ 'page.executor.task_history.title';
233
+
234
+ /**
235
+ * @description Executor help section title
236
+ * @localZh 需要帮助?
237
+ * @localEn Need Help?
238
+ */
239
+ export const PAGE_EXECUTOR_HELP_TITLE = 'page.executor.help.title';
240
+
241
+ /**
242
+ * @description Executor help section description
243
+ * @localZh 遇到问题?查看我们的任务执行指南或联系支持团队
244
+ * @localEn Having issues? Check our task execution guide or contact support
245
+ */
246
+ export const PAGE_EXECUTOR_HELP_DESCRIPTION = 'page.executor.help.description';
247
+
248
+ /**
249
+ * @description Executor view guide button
250
+ * @localZh 查看指南
251
+ * @localEn View Guide
252
+ */
253
+ export const PAGE_EXECUTOR_VIEW_GUIDE = 'page.executor.view_guide';
254
+
255
+ /**
256
+ * @description Executor contact support button
257
+ * @localZh 联系支持
258
+ * @localEn Contact Support
259
+ */
260
+ export const PAGE_EXECUTOR_CONTACT_SUPPORT = 'page.executor.contact_support';
261
+
262
+ /**
263
+ * @description Request page timeout title
264
+ * @localZh 请求超时时间
265
+ * @localEn Request Timeout
266
+ */
267
+ export const PAGE_EXECUTOR_REQUEST_TIMEOUT = 'page.executor.request.timeout';
@@ -0,0 +1,63 @@
1
+ /**
2
+ * @description Home page title
3
+ * @localZh 首页
4
+ * @localEn Home
5
+ */
6
+ export const PAGE_HOME_TITLE = 'page.home.title';
7
+
8
+ /**
9
+ * @description Home page description
10
+ * @localZh 一个现代前端实用库集合,提供各种实用工具和组件
11
+ * @localEn A modern frontend utility library collection providing various practical tools and components
12
+ */
13
+ export const PAGE_HOME_DESCRIPTION = 'page.home.description';
14
+
15
+ /**
16
+ * @description Home page welcome message
17
+ * @localZh 欢迎来到主页
18
+ * @localEn Welcome to the home page
19
+ */
20
+ export const HOME_WELCOME = 'home.welcome';
21
+
22
+ /**
23
+ * @description Home page description
24
+ * @localZh 一个现代前端实用库集合,提供各种实用工具和组件
25
+ * @localEn A modern frontend utility library collection providing various practical tools and components
26
+ */
27
+ export const HOME_DESCRIPTION = 'home.description';
28
+
29
+ /**
30
+ * @description Error Identifier page description
31
+ * @localZh 错误标识符的使用和示例
32
+ * @localEn Error identifier usage and examples
33
+ */
34
+ export const PAGE_ERROR_IDENTIFIER_DESCRIPTION =
35
+ 'page.error.identifier.description';
36
+
37
+ /**
38
+ * @description Home page explore button text
39
+ * @localZh 探索
40
+ * @localEn Explore
41
+ */
42
+ export const HOME_EXPLORE = 'home.explore';
43
+
44
+ /**
45
+ * @description Home page get started section title
46
+ * @localZh 准备开始使用?
47
+ * @localEn Ready to Get Started?
48
+ */
49
+ export const HOME_GET_STARTED_TITLE = 'home.get_started.title';
50
+
51
+ /**
52
+ * @description Home page get started section description
53
+ * @localZh 加入我们,探索实用工具的力量
54
+ * @localEn Join us and discover the power of our utilities
55
+ */
56
+ export const HOME_GET_STARTED_DESCRIPTION = 'home.get_started.description';
57
+
58
+ /**
59
+ * @description Home page get started button text
60
+ * @localZh 立即开始
61
+ * @localEn Get Started Now
62
+ */
63
+ export const HOME_GET_STARTED_BUTTON = 'home.get_started.button';
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @description ErrorIdentifier page main title
3
+ * @localZh 错误标识符
4
+ * @localEn Error Identifier
5
+ */
6
+ export const PAGE_ERROR_IDENTIFIER_MAIN_TITLE =
7
+ 'page.error.identifier.main_title';
8
+
9
+ /**
10
+ * @description ErrorIdentifier page description
11
+ * @localZh 来自 '@config/Identifier/error' 的标识符
12
+ * @localEn Identifier From: '@config/Identifier/error'
13
+ */
14
+ export const PAGE_ERROR_IDENTIFIER_SOURCE_DESCRIPTION =
15
+ 'page.error.identifier.source_description';
16
+
17
+ /**
18
+ * @description ErrorIdentifier help section title
19
+ * @localZh 需要帮助?
20
+ * @localEn Need Help?
21
+ */
22
+ export const PAGE_ERROR_IDENTIFIER_HELP_TITLE =
23
+ 'page.error.identifier.help.title';
24
+
25
+ /**
26
+ * @description ErrorIdentifier help section description
27
+ * @localZh 如果您在使用错误标识符时遇到问题,请联系我们的支持团队
28
+ * @localEn If you encounter any issues while using error identifiers, please contact our support team
29
+ */
30
+ export const PAGE_ERROR_IDENTIFIER_HELP_DESCRIPTION =
31
+ 'page.error.identifier.help.description';
32
+
33
+ /**
34
+ * @description ErrorIdentifier contact support button
35
+ * @localZh 联系支持
36
+ * @localEn Contact Support
37
+ */
38
+ export const PAGE_ERROR_IDENTIFIER_CONTACT_SUPPORT =
39
+ 'page.error.identifier.contact_support';