@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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,100 @@
1
1
  # @qlover/create-app
2
2
 
3
+ ## 0.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ #### ✨ Features
8
+
9
+ - **react-app:** enhance user authentication and error handling ([ee00e24](https://github.com/qlover/fe-base/commit/ee00e24ce1c713aff91100ff30f9c84d8b523c80)) ([#458](https://github.com/qlover/fe-base/pull/458))
10
+ - Updated package.json to reference local corekit dependencies for improved development.
11
+ - Added new error identifiers in common.error.ts for better error management.
12
+ - Refactored UserApi to implement registration and improved login handling with token validation.
13
+ - Introduced common error handling in UserService and updated related components to utilize new error identifiers.
14
+ - Enhanced storage management by integrating new storage interfaces and updating related services.
15
+
16
+ These changes aim to streamline user authentication processes and improve error reporting across the application.
17
+
18
+ ## 0.4.6
19
+
20
+ ### Patch Changes
21
+
22
+ #### ✨ Features
23
+
24
+ - **router:** add descriptions to route metadata and update identifiers ([9fe2025](https://github.com/qlover/fe-base/commit/9fe20251d9b38f42d9fc1417587636181844ac96)) ([#455](https://github.com/qlover/fe-base/pull/455))
25
+ - Enhanced the routing configuration by adding descriptions to various route metadata, improving clarity and accessibility for developers.
26
+ - Updated internationalization identifiers for pages, including home, login, register, and error pages, to include corresponding descriptions in both English and Chinese.
27
+ - Refactored the import paths for error identifiers to streamline the codebase and improve maintainability.
28
+
29
+ These changes aim to enhance the user experience by providing more context in the routing structure and improving the overall organization of internationalization resources.
30
+
31
+ - **pages:** add new pages and update routing configuration ([6ba6e19](https://github.com/qlover/fe-base/commit/6ba6e19ec32f243d51e8b819dfc07965ceac07a0)) ([#455](https://github.com/qlover/fe-base/pull/455))
32
+ - Introduced new pages including RegisterPage, AboutPage, ErrorIdentifierPage, ExecutorPage, HomePage, JSONStoragePage, and RequestPage to enhance the application structure and user navigation.
33
+ - Updated routing configuration to reflect changes in page paths, ensuring consistency and clarity in navigation.
34
+ - Refactored existing routes to align with new page structures, improving maintainability and readability of the routing setup.
35
+
36
+ These changes aim to enrich the user experience by providing additional functionality and a more organized navigation system.
37
+
38
+ - **i18n:** introduce I18nKeyErrorPlugin and refactor user services ([0575403](https://github.com/qlover/fe-base/commit/0575403692758dac10624eb9425fad0138536513)) ([#455](https://github.com/qlover/fe-base/pull/455))
39
+ - Added I18nKeyErrorPlugin to handle error messages as internationalization keys, improving error reporting and localization.
40
+ - Refactored ProcesserService to extend StoreInterface, enhancing state management and type safety.
41
+ - Moved RegisterFormData interface to UserService for better organization and removed the obsolete LoginInterface.
42
+ - Updated RegisterPage and ProcessProvider to utilize new service methods and improve application flow.
43
+
44
+ These changes aim to enhance internationalization support and streamline service interactions within the application.
45
+
46
+ - **router:** refactor routing configuration and introduce ProcesserExecutor ([6a5a7a5](https://github.com/qlover/fe-base/commit/6a5a7a5a3ccbbd3c68da558f95c06c12e8a3c2f0)) ([#455](https://github.com/qlover/fe-base/pull/455))
47
+ - Simplified the routing configuration by removing unnecessary metadata from base routes, enhancing clarity.
48
+ - Introduced the ProcesserExecutor class to manage asynchronous execution processes, improving the handling of page processing.
49
+ - Updated RouteService to extend StoreInterface, enhancing state management and type safety.
50
+ - Refactored user services to utilize the new ProcessExecutorProvider, streamlining the authentication flow and loading states.
51
+ - Removed the obsolete ProcessProvider, consolidating the process management into the new structure.
52
+
53
+ These changes aim to improve the routing architecture and enhance the overall application flow.
54
+
55
+ - **create-app:** update dependencies and introduce project configuration ([8431f66](https://github.com/qlover/fe-base/commit/8431f6682a40660d7996ca918bc318ecf0d09aa4)) ([#451](https://github.com/qlover/fe-base/pull/451))
56
+ - Added `commander` and updated `ignore` in `devDependencies` for enhanced functionality.
57
+ - Removed `ora` from `devDependencies` and `dependencies` for better clarity.
58
+ - Introduced a new `project.json` file to define build targets and streamline the build process using NX.
59
+ - Updated `tsup.config.ts` to enable minification, improving the build output.
60
+
61
+ These changes enhance the configuration and build orchestration for the create-app package.
62
+
63
+ - **create-app:** enhance asset management and update build configuration ([8578e7f](https://github.com/qlover/fe-base/commit/8578e7f5b1fa82fd08f5a472b0a401ef3972f63f)) ([#451](https://github.com/qlover/fe-base/pull/451))
64
+ - Added support for ignoring specific patterns during asset copying in the `copyAssets` utility.
65
+ - Updated `tsup.config.ts` to copy configuration and template files to the `dist` directory after the build process.
66
+ - Removed obsolete references to `configs` and `templates` in `package.json` for clarity.
67
+ - Adjusted the CLI to resolve paths for templates and configs using `resolve` for better compatibility.
68
+
69
+ These changes improve the asset management capabilities and streamline the build process for the create-app package.
70
+
71
+ #### ♻️ Refactors
72
+
73
+ - restructure internationalization and routing configuration ([006affa](https://github.com/qlover/fe-base/commit/006affa0e78b4ae9dd42dd4c79d29301212ffb9a)) ([#455](https://github.com/qlover/fe-base/pull/455))
74
+ - Updated the internationalization identifiers by consolidating them into a single index file for easier management and access.
75
+ - Renamed and reorganized error and common identifiers for clarity and consistency.
76
+ - Replaced the JSON router configuration with a TypeScript-based router for improved type safety and maintainability.
77
+ - Removed outdated theme configuration files and migrated to a TypeScript-based theme configuration.
78
+ - Enhanced the README documentation to reflect the changes in the project structure and configuration.
79
+
80
+ These changes aim to streamline the internationalization process and improve the overall architecture of the routing and theming systems.
81
+
82
+ - **theme:** update ThemeService to extend StoreInterface and enhance type definitions ([7e647f6](https://github.com/qlover/fe-base/commit/7e647f6e5979aa6e37e239fcd9039fb3bd52ee2b)) ([#455](https://github.com/qlover/fe-base/pull/455))
83
+ - Refactored ThemeService to extend StoreInterface instead of SliceStore, improving consistency across the codebase.
84
+ - Updated ThemeServiceState to implement StoreStateInterface, enhancing type safety and maintainability.
85
+ - Removed the obsolete StoreInterface file to streamline the project structure.
86
+ - Adjusted import paths in various components and services to reflect the new StoreInterface location, ensuring proper integration.
87
+
88
+ These changes aim to improve the overall architecture and type management within the theme service implementation.
89
+
90
+ - **user-service:** simplify state management and introduce language guard ([e7a433f](https://github.com/qlover/fe-base/commit/e7a433f1887c22c1fca77182e73aeba49b7afc8c)) ([#455](https://github.com/qlover/fe-base/pull/455))
91
+ - Removed the setState method from UserService, directly emitting state changes instead.
92
+ - Added useI18nGuard hook to handle language validation and redirection to a 404 page if the language is invalid.
93
+ - Introduced useRouterService hook to manage routing dependencies.
94
+ - Deleted the obsolete I18nGuideProvider, consolidating language guard functionality.
95
+
96
+ These changes aim to streamline user service state management and enhance internationalization handling within the application.
97
+
3
98
  ## 0.4.5
4
99
 
5
100
  ### Patch Changes
@@ -7,7 +102,6 @@
7
102
  #### ✨ Features
8
103
 
9
104
  - **create-app:** implement logout functionality and enhance localization ([c49f956](https://github.com/qlover/fe-base/commit/c49f956aecbc11a6b96b28309d112f7219a7dcca)) ([#438](https://github.com/qlover/fe-base/pull/438))
10
-
11
105
  - Added a new LogoutButton component to handle user logout with a confirmation dialog.
12
106
  - Introduced localization keys for logout dialog titles and content in both English and Chinese.
13
107
  - Updated BaseHeader to conditionally display the logout button based on the layout context.
@@ -23,7 +117,6 @@
23
117
  #### ✨ Features
24
118
 
25
119
  - **create-app:** add error identifiers and localization support for new components ([0ec3780](https://github.com/qlover/fe-base/commit/0ec3780a7972acd855e1b4d2ae866575534dc094)) ([#434](https://github.com/qlover/fe-base/pull/434))
26
-
27
120
  - Introduced new error identifiers in Error.ts for handling various application states, including IOC not implemented and token absence.
28
121
  - Added extensive localization keys in I18n.ts for various pages and components, enhancing user experience across different languages.
29
122
  - Improved error handling and messaging consistency throughout the application.
@@ -31,7 +124,6 @@
31
124
  This update enhances the application's localization capabilities and error management, providing clearer feedback to users.
32
125
 
33
126
  - **create-app:** enhance TypeScript configuration and linting ([f049395](https://github.com/qlover/fe-base/commit/f049395c90ee2c13a33d7358098a87251ef40913)) ([#434](https://github.com/qlover/fe-base/pull/434))
34
-
35
127
  - Updated the TypeScript configuration by introducing a new `tsconfig.app.json` for better modularity and organization.
36
128
  - Modified `tsconfig.json` to reference the new app configuration and streamline project structure.
37
129
  - Enhanced `tsconfig.node.json` with improved compiler options for better compatibility and performance.
@@ -43,7 +135,6 @@
43
135
  #### ♻️ Refactors
44
136
 
45
137
  - **create-app:** remove unused error identifiers and localization keys ([3b19f19](https://github.com/qlover/fe-base/commit/3b19f193b839c1e97fa727c1847a4bbd5ff84211)) ([#434](https://github.com/qlover/fe-base/pull/434))
46
-
47
138
  - Deleted Error.ts and I18n.ts files as they contained unused error identifiers and localization keys.
48
139
  - This cleanup improves the overall codebase by removing unnecessary files, enhancing maintainability and reducing clutter.
49
140
 
@@ -56,7 +147,6 @@
56
147
  #### ✨ Features
57
148
 
58
149
  - **create-app:** enhance environment configuration and localization support ([76e5e22](https://github.com/qlover/fe-base/commit/76e5e22e41fe23ce109c303ca3974103f8a85cf6)) ([#432](https://github.com/qlover/fe-base/pull/432))
59
-
60
150
  - Updated .gitignore to include .env files and added .env.template to the repository.
61
151
  - Introduced a new .env.template file for environment variable configuration in the react-app template.
62
152
  - Enhanced package.json scripts for development modes: added staging and production modes.
@@ -73,7 +163,6 @@
73
163
  #### ✨ Features
74
164
 
75
165
  - **create-app:** enhance routing and configuration with router prefix and new services ([b32795d](https://github.com/qlover/fe-base/commit/b32795d02af4234d4708a5bdcb111bf8d2a54bd6)) ([#430](https://github.com/qlover/fe-base/pull/430))
76
-
77
166
  - Introduced a router prefix in the configuration to manage asset paths and API routes more effectively.
78
167
  - Updated the application to utilize the new RouteService for routing logic, replacing the previous RouterController.
79
168
  - Refactored user authentication handling to use UserService, improving modularity and maintainability.
@@ -84,7 +173,6 @@
84
173
  This update enhances the overall structure and flexibility of the application, paving the way for future improvements.
85
174
 
86
175
  - **create-app:** enhance login and registration features with improved localization and form handling ([a3724e5](https://github.com/qlover/fe-base/commit/a3724e5e75c8708dd00684ece563d9e1c63c0d00)) ([#430](https://github.com/qlover/fe-base/pull/430))
87
-
88
176
  - Updated routing configuration to include localized titles for various pages, enhancing user experience.
89
177
  - Added new keys for login and registration in localization files for both English and Chinese.
90
178
  - Implemented a registration form with validation and user feedback, integrating with the UserService for account creation.
@@ -94,7 +182,6 @@
94
182
  This update significantly improves the user interface and experience for authentication processes within the application.
95
183
 
96
184
  - **create-app:** refactor internationalization and store management ([c86ed98](https://github.com/qlover/fe-base/commit/c86ed9818d844d4059878c11897051a6c504a333)) ([#430](https://github.com/qlover/fe-base/pull/430))
97
-
98
185
  - Updated file structure for internationalization resources, moving identifiers to a new directory for better organization.
99
186
  - Introduced new error and i18n identifier files to enhance localization support.
100
187
  - Refactored store management by implementing a new StoreInterface, improving state management across services.
@@ -126,7 +213,6 @@
126
213
  #### 🐞 Bug Fixes
127
214
 
128
215
  - **create-app:** update dependencies and tsup configuration for @qlover/create-app ([4a5fa84](https://github.com/qlover/fe-base/commit/4a5fa846ae6c3df97c73df5e594c3adb4fb7cda9)) ([#424](https://github.com/qlover/fe-base/pull/424))
129
-
130
216
  - Reorganized package.json to move "commander" and "ora" to dependencies from devDependencies, ensuring they are included in the production build.
131
217
  - Updated tsup.config.ts to enhance build configuration by defining external modules and adjusting minification and splitting settings for improved performance.
132
218
 
@@ -137,14 +223,12 @@
137
223
  #### ✨ Features
138
224
 
139
225
  - add tabify method to format commit body in GitChangelog ([5670b78](https://github.com/qlover/fe-base/commit/5670b78b1cb06a730d2cbd7ac1f5bd7e9e7df490)) ([#422](https://github.com/qlover/fe-base/pull/422))
140
-
141
226
  - Introduced a new `tabify` method to format the body of commit messages by adding indentation.
142
227
  - Updated `parseCommitlint` to utilize the `tabify` method for improved body formatting.
143
228
 
144
229
  #### 🐞 Bug Fixes
145
230
 
146
231
  - update @qlover/create-app to use ES module format ([5e9dffb](https://github.com/qlover/fe-base/commit/5e9dffb4d9e54dc2457588a81b11159820196067)) ([#422](https://github.com/qlover/fe-base/pull/422))
147
-
148
232
  - Changed the entry point in package.json from "dist/index.cjs" to "dist/index.js" to align with ES module standards.
149
233
  - Updated tsup.config.ts to output in ES module format instead of CommonJS.
150
234
  - Refactored index.ts to use fileURLToPath for resolving the root path, enhancing compatibility with ES modules.
@@ -204,18 +288,14 @@
204
288
  Co-authored-by: QRJ <renjie.qin@brain.im>
205
289
 
206
290
  - integrate @brain-toolkit/antd-theme-override for improved Ant D… ([4ebb081](https://github.com/qlover/fe-base/commit/4ebb081d89397424c459dd7f885817152098e322)) ([#414](https://github.com/qlover/fe-base/pull/414))
207
-
208
291
  - feat: integrate @brain-toolkit/antd-theme-override for improved Ant Design support
209
-
210
292
  * Added @brain-toolkit/antd-theme-override as a dependency to enhance theming capabilities.
211
293
  * Updated imports to utilize the new theming library, replacing the deprecated antd-overried references.
212
294
  * Removed outdated files related to the previous Ant Design integration to streamline the codebase.
213
295
  * Refactored components to leverage the new theme provider and static API interface for notifications and modals.
214
296
 
215
297
  Co-authored-by: QRJ <renjie.qin@brain.im>
216
-
217
298
  - feat(I18nService): add translation method for improved localization support
218
-
219
299
  * Implemented a new `t` method in the I18nService class to facilitate key-based translations.
220
300
  * The method accepts a translation key and optional parameters, returning the translated value or the key if no translation is found.
221
301
  * Enhanced localization handling to improve user experience across the application.
@@ -231,14 +311,12 @@
231
311
  #### ✨ Features
232
312
 
233
313
  - **LanguageSwitcher:** add language switcher component to enhance localization ([72edba8](https://github.com/qlover/fe-base/commit/72edba8a71dabba00608fceafc355cf4bc2dfd63)) ([#411](https://github.com/qlover/fe-base/pull/411))
234
-
235
314
  - Introduced a new LanguageSwitcher component that allows users to change the application language.
236
315
  - Integrated the component into BaseHeader for improved accessibility.
237
316
  - Utilized Ant Design's Select component for a user-friendly interface.
238
317
  - Implemented language change functionality that updates the URL and i18n configuration accordingly.
239
318
 
240
319
  - **Login:** integrate Ant Design components for enhanced user experience ([d380157](https://github.com/qlover/fe-base/commit/d380157d3360ad5b9e96d0e3edeb2639a3a6ba9f)) ([#408](https://github.com/qlover/fe-base/pull/408))
241
-
242
320
  - Added Ant Design library to the project dependencies.
243
321
  - Refactored the Login component to utilize Ant Design's Form, Input, and Button components, improving the UI and UX.
244
322
  - Implemented a structured login form with validation and Google sign-in option.
@@ -273,7 +351,6 @@
273
351
  #### ♻️ Refactors
274
352
 
275
353
  - **Bootstrap:** update dependencies and refactor core components ([9aeff78](https://github.com/qlover/fe-base/commit/9aeff78209925a9e3e6e4cdf1e5a7cbbcecb07f8)) ([#411](https://github.com/qlover/fe-base/pull/411))
276
-
277
354
  - Upgraded @qlover/corekit-bridge to version ^1.0.3 in package.json.
278
355
  - Refactored startup function to use 'root' instead of 'window' for better compatibility.
279
356
  - Removed InversifyIocInterface.ts as it was no longer needed.
@@ -283,7 +360,6 @@
283
360
  - Added printBootstrap for logging successful bootstrap initialization.
284
361
 
285
362
  - **Home, JSONStorage, Layout, BaseHeader:** enhance UI with Ant Design components and improve theming ([8023e01](https://github.com/qlover/fe-base/commit/8023e0179729859a1406f5dabf013f529c1a2b58)) ([#408](https://github.com/qlover/fe-base/pull/408))
286
-
287
363
  - Replaced button elements with Ant Design's Button component for a consistent UI experience.
288
364
  - Updated layout and background colors to utilize CSS variables for better theming.
289
365
  - Refactored navigation items in Home component for improved structure and readability.
@@ -307,7 +383,6 @@
307
383
  - Enhanced the Home and About components with improved localization support.
308
384
 
309
385
  - **Loading:** update loading component with animated bouncing dots ([83ede4b](https://github.com/qlover/fe-base/commit/83ede4b644a01843dd64e2d3e5254730f115d1ec)) ([#408](https://github.com/qlover/fe-base/pull/408))
310
-
311
386
  - Replaced the SVG spinner with a new loading animation using bouncing dots for improved visual appeal.
312
387
  - Utilized the clsx library for conditional class management, enhancing readability and maintainability.
313
388
  - Adjusted styles to support dark mode and added backdrop blur for fullscreen loading state.
@@ -329,7 +404,6 @@
329
404
  #### ✨ Features
330
405
 
331
406
  - integrate @qlover/logger into corekit-bridge (#373)
332
-
333
407
  - Added @qlover/logger as a dependency across multiple files, replacing the previous logger from @qlover/fe-corekit.
334
408
  - Updated type references to LoggerInterface in Bootstrap, ApiCatchPlugin, and ApiMockPlugin.
335
409
  - Introduced ColorFormatter for enhanced logging capabilities, with tests added for ColorFormatter and ColorLogger.
@@ -339,7 +413,6 @@
339
413
  #### 🐞 Bug Fixes
340
414
 
341
415
  - update ColorFormatter tests to utilize LogContext (#373)
342
-
343
416
  - Modified ColorFormatter tests to use the new LogContext class for improved context handling.
344
417
  - Adjusted the test setup to ensure proper formatting of color segments with the updated LogContext structure.
345
418
  - Exported LogContext from the logger package for broader accessibility.
@@ -347,14 +420,12 @@
347
420
  #### ♻️ Refactors
348
421
 
349
422
  - enhance context handling and update ColorFormatter tests (#373)
350
-
351
423
  - Refactored logger context handling to utilize a new LogContext class for better type safety and clarity.
352
424
  - Updated ColorFormatter tests to use logger.context for passing context objects.
353
425
  - Adjusted ColorFormatter methods to improve handling of color segments and context.
354
426
  - Improved documentation for context usage in logger methods.
355
427
 
356
428
  - replace ConsoleAppender with ConsoleHandler (#373)
357
-
358
429
  - Updated tests and implementation to utilize ConsoleHandler instead of ConsoleAppender for improved logging functionality.
359
430
  - Introduced ConsoleHandler class to manage log events and formatting.
360
431
  - Adjusted Logger integration to reflect the new handler structure across various test files and implementations.
@@ -370,13 +441,11 @@
370
441
  #### ✨ Features
371
442
 
372
443
  - Update ReleaseParams to include batchTagName and modify batchBranchName format (#362)
373
-
374
444
  - Added `batchTagName` for batch release tagging with a new default format.
375
445
  - Updated `batchBranchName` format to improve clarity and consistency.
376
446
  - Enhanced the logic for generating release tags in the ReleaseParams class.
377
447
 
378
448
  - Introduce viteMockPackage plugin and add mock implementations for env-loader and fe-corekit (#362)
379
-
380
449
  - Added a new viteMockPackage plugin to facilitate mocking of specified packages in Vite tests.
381
450
  - Implemented mock classes for Env in @qlover/env-loader and Logger in @qlover/fe-corekit.
382
451
  - Updated vite.config.ts to include alias mappings for the mocked packages.
@@ -385,17 +454,14 @@
385
454
  #### ♻️ Refactors
386
455
 
387
456
  - Simplify getDependencyReleaseLine function to return an empty string (#362)
388
-
389
457
  - Removed unnecessary parameters and streamlined the function for better clarity and performance.
390
458
 
391
459
  - Update GitChangelogOptions interface and improve comments (#362)
392
-
393
460
  - Translated comments from Chinese to English for better clarity.
394
461
  - Enhanced the GitChangelogOptions interface by adding a new `formatter` property and updating existing descriptions for consistency.
395
462
  - Cleaned up comments in the GitChangelog class for improved readability.
396
463
 
397
464
  - Enhance viteMockPackage to support dynamic alias mapping (#362)
398
-
399
465
  - Introduced `parsePackagesMap` function to dynamically generate alias mappings for specified packages in vite.config.ts.
400
466
  - Updated vite.config.ts to utilize the new function, improving maintainability and flexibility of package mocking.
401
467
  - Removed hardcoded alias mappings for a more scalable approach to package management.
@@ -409,13 +475,11 @@
409
475
  #### ✨ Features
410
476
 
411
477
  - Update ReleaseParams to include batchTagName and modify batchBranchName format (#362)
412
-
413
478
  - Added `batchTagName` for batch release tagging with a new default format.
414
479
  - Updated `batchBranchName` format to improve clarity and consistency.
415
480
  - Enhanced the logic for generating release tags in the ReleaseParams class.
416
481
 
417
482
  - Introduce viteMockPackage plugin and add mock implementations for env-loader and fe-corekit (#362)
418
-
419
483
  - Added a new viteMockPackage plugin to facilitate mocking of specified packages in Vite tests.
420
484
  - Implemented mock classes for Env in @qlover/env-loader and Logger in @qlover/fe-corekit.
421
485
  - Updated vite.config.ts to include alias mappings for the mocked packages.
@@ -424,17 +488,14 @@
424
488
  #### ♻️ Refactors
425
489
 
426
490
  - Simplify getDependencyReleaseLine function to return an empty string (#362)
427
-
428
491
  - Removed unnecessary parameters and streamlined the function for better clarity and performance.
429
492
 
430
493
  - Update GitChangelogOptions interface and improve comments (#362)
431
-
432
494
  - Translated comments from Chinese to English for better clarity.
433
495
  - Enhanced the GitChangelogOptions interface by adding a new `formatter` property and updating existing descriptions for consistency.
434
496
  - Cleaned up comments in the GitChangelog class for improved readability.
435
497
 
436
498
  - Enhance viteMockPackage to support dynamic alias mapping (#362)
437
-
438
499
  - Introduced `parsePackagesMap` function to dynamically generate alias mappings for specified packages in vite.config.ts.
439
500
  - Updated vite.config.ts to utilize the new function, improving maintainability and flexibility of package mocking.
440
501
  - Removed hardcoded alias mappings for a more scalable approach to package management.
@@ -463,7 +524,6 @@
463
524
  #### ✨ Features
464
525
 
465
526
  - implement GitChangelog for improved changelog generation (#351)
466
-
467
527
  - Introduced a new GitChangelog class to facilitate the generation of changelogs based on Git commit history.
468
528
  - Added interfaces for PRCommit, CommitInfo, and FlatCommit to structure commit data.
469
529
  - Updated Changelog plugin to utilize GitChangelog for fetching and formatting PR commits, replacing the previous conventional-changelog implementation.