@qlover/create-app 0.10.1 → 0.10.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.
- package/CHANGELOG.md +178 -0
- package/dist/configs/_common/.github/workflows/general-check.yml +1 -1
- package/dist/configs/_common/.github/workflows/release.yml +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/dist/templates/next-app/config/IOCIdentifier.ts +2 -2
- package/dist/templates/next-app/config/Identifier/common/common.ts +14 -0
- package/dist/templates/next-app/config/Identifier/pages/index.ts +1 -0
- package/dist/templates/next-app/config/Identifier/pages/page.about.ts +20 -0
- package/dist/templates/next-app/config/common.ts +1 -1
- package/dist/templates/next-app/config/cookies.ts +23 -0
- package/dist/templates/next-app/config/i18n/AboutI18n.ts +14 -0
- package/dist/templates/next-app/config/i18n/i18nConfig.ts +3 -1
- package/dist/templates/next-app/config/i18n/index.ts +1 -0
- package/dist/templates/next-app/config/i18n/loginI18n.ts +8 -0
- package/dist/templates/next-app/config/theme.ts +4 -0
- package/dist/templates/next-app/eslint.config.mjs +9 -2
- package/dist/templates/next-app/next.config.ts +1 -0
- package/dist/templates/next-app/package.json +17 -6
- package/dist/templates/next-app/public/locales/en.json +5 -0
- package/dist/templates/next-app/public/locales/zh.json +5 -0
- package/dist/templates/next-app/src/app/[locale]/admin/AdminI18nProvider.tsx +37 -0
- package/dist/templates/next-app/src/app/[locale]/admin/layout.tsx +30 -6
- package/dist/templates/next-app/src/app/[locale]/admin/locales/page.tsx +1 -1
- package/dist/templates/next-app/src/app/[locale]/layout.tsx +47 -10
- package/dist/templates/next-app/src/app/[locale]/login/LoginForm.tsx +1 -1
- package/dist/templates/next-app/src/app/[locale]/login/page.tsx +22 -10
- package/dist/templates/next-app/src/app/[locale]/page.tsx +23 -8
- package/dist/templates/next-app/src/app/[locale]/register/page.tsx +21 -9
- package/dist/templates/next-app/src/app/api/admin/locales/create/route.ts +7 -28
- package/dist/templates/next-app/src/app/api/admin/locales/import/route.ts +7 -34
- package/dist/templates/next-app/src/app/api/admin/locales/route.ts +12 -34
- package/dist/templates/next-app/src/app/api/admin/locales/update/route.ts +7 -26
- package/dist/templates/next-app/src/app/api/admin/users/route.ts +14 -33
- package/dist/templates/next-app/src/app/api/locales/json/route.ts +13 -25
- package/dist/templates/next-app/src/app/api/user/login/route.ts +6 -46
- package/dist/templates/next-app/src/app/api/user/logout/route.ts +5 -24
- package/dist/templates/next-app/src/app/api/user/register/route.ts +6 -45
- package/dist/templates/next-app/src/app/manifest.ts +16 -0
- package/dist/templates/next-app/src/app/robots.txt +2 -0
- package/dist/templates/next-app/src/base/cases/AdminPageManager.ts +3 -3
- package/dist/templates/next-app/src/base/cases/AppConfig.ts +14 -13
- package/dist/templates/next-app/src/base/cases/Datetime.ts +3 -3
- package/dist/templates/next-app/src/base/cases/DialogErrorPlugin.ts +8 -2
- package/dist/templates/next-app/src/base/cases/DialogHandler.ts +30 -4
- package/dist/templates/next-app/src/base/cases/InversifyContainer.ts +16 -4
- package/dist/templates/next-app/src/base/cases/NavigateBridge.ts +20 -4
- package/dist/templates/next-app/src/base/cases/RequestEncryptPlugin.ts +8 -2
- package/dist/templates/next-app/src/base/cases/ResourceState.ts +3 -3
- package/dist/templates/next-app/src/base/cases/RouterService.ts +28 -10
- package/dist/templates/next-app/src/base/cases/StringEncryptor.ts +14 -2
- package/dist/templates/next-app/src/base/cases/TranslateI18nInterface.ts +1 -1
- package/dist/templates/next-app/src/base/cases/UserServiceApi.ts +20 -5
- package/dist/templates/next-app/src/base/cases/ZodColumnBuilder.ts +31 -8
- package/dist/templates/next-app/src/base/port/AdminLayoutInterface.ts +4 -1
- package/dist/templates/next-app/src/base/port/AppApiInterface.ts +22 -0
- package/dist/templates/next-app/src/base/port/I18nServiceInterface.ts +27 -7
- package/dist/templates/next-app/src/base/port/IOCInterface.ts +9 -0
- package/dist/templates/next-app/src/base/services/AdminPageEvent.ts +1 -1
- package/dist/templates/next-app/src/base/services/AdminPageScheduler.ts +3 -3
- package/dist/templates/next-app/src/base/services/I18nService.ts +20 -10
- package/dist/templates/next-app/src/base/services/ResourceService.ts +32 -11
- package/dist/templates/next-app/src/base/services/UserService.ts +12 -3
- package/dist/templates/next-app/src/base/services/adminApi/AdminLocalesApi.ts +9 -6
- package/dist/templates/next-app/src/base/services/adminApi/AdminUserApi.ts +20 -5
- package/dist/templates/next-app/src/base/services/appApi/AppApiPlugin.ts +21 -4
- package/dist/templates/next-app/src/base/services/appApi/AppUserApi.ts +12 -3
- package/dist/templates/next-app/src/base/services/appApi/AppUserApiBootstrap.ts +10 -2
- package/dist/templates/next-app/src/base/types/{PageProps.ts → AppPageRouter.ts} +4 -1
- package/dist/templates/next-app/src/base/types/PagesRouter.ts +9 -0
- package/dist/templates/next-app/src/core/bootstraps/BootstrapClient.ts +20 -6
- package/dist/templates/next-app/src/core/bootstraps/BootstrapServer.ts +27 -9
- package/dist/templates/next-app/src/core/bootstraps/BootstrapsRegistry.ts +6 -4
- package/dist/templates/next-app/src/core/clientIoc/ClientIOC.ts +39 -9
- package/dist/templates/next-app/src/core/clientIoc/ClientIOCRegister.ts +9 -2
- package/dist/templates/next-app/src/core/serverIoc/ServerIOC.ts +37 -10
- package/dist/templates/next-app/src/core/serverIoc/ServerIOCRegister.ts +9 -2
- package/dist/templates/next-app/src/i18n/loadMessages.ts +103 -0
- package/dist/templates/next-app/src/i18n/request.ts +3 -22
- package/dist/templates/next-app/src/pages/[locale]/about.tsx +61 -0
- package/dist/templates/next-app/src/pages/_app.tsx +50 -0
- package/dist/templates/next-app/src/pages/_document.tsx +13 -0
- package/dist/templates/next-app/src/{middleware.ts → proxy.ts} +2 -1
- package/dist/templates/next-app/src/server/AppErrorApi.ts +1 -1
- package/dist/templates/next-app/src/server/AppPageRouteParams.ts +107 -0
- package/dist/templates/next-app/src/server/AppSuccessApi.ts +1 -1
- package/dist/templates/next-app/src/server/NextApiServer.ts +62 -0
- package/dist/templates/next-app/src/server/PagesRouteParams.ts +146 -0
- package/dist/templates/next-app/src/server/PasswordEncrypt.ts +8 -2
- package/dist/templates/next-app/src/server/ServerAuth.ts +20 -5
- package/dist/templates/next-app/src/server/{sqlBridges/SupabaseBridge.ts → SupabaseBridge.ts} +50 -8
- package/dist/templates/next-app/src/server/UserCredentialToken.ts +8 -2
- package/dist/templates/next-app/src/server/controllers/AdminLocalesController.ts +86 -0
- package/dist/templates/next-app/src/server/controllers/AdminUserController.ts +42 -0
- package/dist/templates/next-app/src/server/controllers/LocalesController.ts +36 -0
- package/dist/templates/next-app/src/server/controllers/UserController.ts +86 -0
- package/dist/templates/next-app/src/server/port/AIControllerInterface.ts +8 -0
- package/dist/templates/next-app/src/server/port/AdminLocalesControllerInterface.ts +21 -0
- package/dist/templates/next-app/src/server/port/AdminUserControllerInterface.ts +11 -0
- package/dist/templates/next-app/src/server/port/LocalesControllerInterface.ts +10 -0
- package/dist/templates/next-app/src/server/port/{ParamsHandlerInterface.ts → RouteParamsnHandlerInterface.ts} +9 -2
- package/dist/templates/next-app/src/server/port/ServerInterface.ts +2 -2
- package/dist/templates/next-app/src/server/port/UserControllerInerface.ts +8 -0
- package/dist/templates/next-app/src/server/port/UserServiceInterface.ts +1 -1
- package/dist/templates/next-app/src/server/port/ValidatorInterface.ts +2 -2
- package/dist/templates/next-app/src/server/repositorys/LocalesRepository.ts +31 -9
- package/dist/templates/next-app/src/server/repositorys/UserRepository.ts +15 -6
- package/dist/templates/next-app/src/server/services/AIService.ts +3 -1
- package/dist/templates/next-app/src/server/services/AdminAuthPlugin.ts +5 -2
- package/dist/templates/next-app/src/{base → server}/services/AdminLocalesService.ts +2 -2
- package/dist/templates/next-app/src/server/services/ApiLocaleService.ts +29 -14
- package/dist/templates/next-app/src/server/services/ApiUserService.ts +6 -3
- package/dist/templates/next-app/src/server/services/UserService.ts +12 -3
- package/dist/templates/next-app/src/server/validators/LocalesValidator.ts +24 -7
- package/dist/templates/next-app/src/server/validators/LoginValidator.ts +17 -5
- package/dist/templates/next-app/src/server/validators/PaginationValidator.ts +17 -11
- package/dist/templates/next-app/src/styles/css/antd-themes/_common/_default.css +0 -44
- package/dist/templates/next-app/src/styles/css/antd-themes/_common/dark.css +0 -44
- package/dist/templates/next-app/src/styles/css/antd-themes/_common/pink.css +0 -44
- package/dist/templates/next-app/src/styles/css/index.css +1 -1
- package/dist/templates/next-app/src/styles/css/scrollbar.css +34 -0
- package/dist/templates/next-app/src/uikit/components/AdminLayout.tsx +34 -11
- package/dist/templates/next-app/src/uikit/components/BootstrapsProvider.tsx +69 -39
- package/dist/templates/next-app/src/uikit/components/ClientRootProvider.tsx +64 -0
- package/dist/templates/next-app/src/uikit/components/ClinetRenderProvider.tsx +42 -0
- package/dist/templates/next-app/src/uikit/components/IOCProvider.tsx +34 -0
- package/dist/templates/next-app/src/uikit/components/localesImportButton/LocalesImportEvent.ts +7 -1
- package/dist/templates/next-app/src/uikit/components-app/AppBridge.tsx +17 -0
- package/dist/templates/next-app/src/uikit/components-app/AppRoutePage.tsx +112 -0
- package/dist/templates/next-app/src/uikit/{components → components-app}/LanguageSwitcher.tsx +15 -19
- package/dist/templates/next-app/src/uikit/{components → components-app}/ThemeSwitcher.tsx +53 -52
- package/dist/templates/next-app/src/uikit/components-pages/LanguageSwitcher.tsx +98 -0
- package/dist/templates/next-app/src/uikit/components-pages/PagesRoutePage.tsx +93 -0
- package/dist/templates/next-app/src/uikit/context/IOCContext.ts +16 -4
- package/dist/templates/next-app/src/uikit/hook/useStrictEffect.ts +32 -0
- package/dist/templates/next-app/tsconfig.json +3 -2
- package/dist/templates/react-app/__tests__/__mocks__/BootstrapTest.ts +3 -1
- package/dist/templates/react-app/__tests__/__mocks__/MockAppConfig.ts +19 -19
- package/dist/templates/react-app/__tests__/__mocks__/MockDialogHandler.ts +8 -8
- package/dist/templates/react-app/__tests__/__mocks__/MockLogger.ts +9 -9
- package/dist/templates/react-app/__tests__/__mocks__/components/TestBootstrapsProvider.tsx +1 -1
- package/dist/templates/react-app/__tests__/__mocks__/i18nextHttpBackend.ts +5 -5
- package/dist/templates/react-app/__tests__/__mocks__/testIOC/TestIOC.ts +9 -5
- package/dist/templates/react-app/__tests__/__mocks__/testIOC/TestIOCRegister.ts +8 -4
- package/dist/templates/react-app/__tests__/src/base/cases/I18nKeyErrorPlugin.test.ts +4 -4
- package/dist/templates/react-app/__tests__/src/base/cases/InversifyContainer.test.ts +5 -5
- package/dist/templates/react-app/__tests__/src/core/bootstraps/BootstrapClient.test.ts +3 -3
- package/dist/templates/react-app/__tests__/src/uikit/components/chatMessage/ChatRoot.test.tsx +1 -1
- package/dist/templates/react-app/docs/en/components/chat-message-component.md +35 -29
- package/dist/templates/react-app/docs/en/components/chat-message-refactor.md +18 -5
- package/dist/templates/react-app/docs/en/components/message-base-list-component.md +11 -12
- package/dist/templates/react-app/docs/en/request.md +1 -3
- package/dist/templates/react-app/docs/zh/components/chat-message-component.md +35 -29
- package/dist/templates/react-app/docs/zh/components/chat-message-refactor.md +18 -5
- package/dist/templates/react-app/docs/zh/components/message-base-list-component.md +11 -12
- package/dist/templates/react-app/docs/zh/request.md +1 -3
- package/dist/templates/react-app/eslint.config.mjs +10 -5
- package/dist/templates/react-app/src/App.tsx +1 -1
- package/dist/templates/react-app/src/base/apis/feApi/FeApi.ts +2 -2
- package/dist/templates/react-app/src/base/apis/feApi/FeApiBootstarp.ts +14 -11
- package/dist/templates/react-app/src/base/apis/userApi/UserApi.ts +10 -16
- package/dist/templates/react-app/src/base/apis/userApi/UserApiBootstarp.ts +12 -10
- package/dist/templates/react-app/src/base/cases/AppConfig.ts +19 -19
- package/dist/templates/react-app/src/base/cases/DialogHandler.ts +28 -5
- package/dist/templates/react-app/src/base/cases/I18nKeyErrorPlugin.ts +5 -2
- package/dist/templates/react-app/src/base/cases/InversifyContainer.ts +16 -4
- package/dist/templates/react-app/src/base/cases/PublicAssetsPath.ts +1 -1
- package/dist/templates/react-app/src/base/cases/RequestLanguages.ts +6 -3
- package/dist/templates/react-app/src/base/cases/RequestLogger.ts +17 -8
- package/dist/templates/react-app/src/base/cases/RequestStatusCatcher.ts +4 -6
- package/dist/templates/react-app/src/base/cases/ResourceState.ts +3 -3
- package/dist/templates/react-app/src/base/cases/RouterLoader.ts +3 -3
- package/dist/templates/react-app/src/base/cases/TranslateI18nInterface.ts +1 -1
- package/dist/templates/react-app/src/base/port/ExecutorPageBridgeInterface.ts +2 -2
- package/dist/templates/react-app/src/base/port/IOCInterface.ts +4 -2
- package/dist/templates/react-app/src/base/port/JSONStoragePageBridgeInterface.ts +5 -5
- package/dist/templates/react-app/src/base/port/RequestPageBridgeInterface.ts +7 -7
- package/dist/templates/react-app/src/base/port/RouteServiceInterface.ts +8 -8
- package/dist/templates/react-app/src/base/port/UserServiceInterface.ts +4 -2
- package/dist/templates/react-app/src/base/services/BaseLayoutService.ts +3 -3
- package/dist/templates/react-app/src/base/services/I18nService.ts +24 -13
- package/dist/templates/react-app/src/base/services/IdentifierService.ts +21 -26
- package/dist/templates/react-app/src/base/services/RouteService.ts +8 -8
- package/dist/templates/react-app/src/base/services/UserBootstrap.ts +2 -2
- package/dist/templates/react-app/src/base/services/UserGatewayPlugin.ts +9 -5
- package/dist/templates/react-app/src/base/services/UserService.ts +10 -4
- package/dist/templates/react-app/src/core/bootstraps/BootstrapClient.ts +3 -1
- package/dist/templates/react-app/src/core/bootstraps/BootstrapsRegistry.ts +5 -2
- package/dist/templates/react-app/src/core/clientIoc/ClientIOC.ts +11 -4
- package/dist/templates/react-app/src/core/clientIoc/ClientIOCRegister.ts +5 -4
- package/dist/templates/react-app/src/pages/base/Layout.tsx +1 -1
- package/dist/templates/react-app/src/styles/css/antd-themes/_common/_default.css +0 -44
- package/dist/templates/react-app/src/styles/css/antd-themes/_common/dark.css +0 -44
- package/dist/templates/react-app/src/styles/css/antd-themes/_common/pink.css +0 -44
- package/dist/templates/react-app/src/styles/css/index.css +1 -1
- package/dist/templates/react-app/src/styles/css/scrollbar.css +34 -0
- package/dist/templates/react-app/src/uikit/bridges/ExecutorPageBridge.ts +2 -2
- package/dist/templates/react-app/src/uikit/bridges/JSONStoragePageBridge.ts +4 -4
- package/dist/templates/react-app/src/uikit/bridges/NavigateBridge.ts +8 -2
- package/dist/templates/react-app/src/uikit/bridges/RequestPageBridge.ts +6 -6
- package/dist/templates/react-app/src/uikit/components/AppRouterProvider.tsx +1 -1
- package/dist/templates/react-app/src/uikit/components/BootstrapsProvider.tsx +1 -3
- package/dist/templates/react-app/src/uikit/components/MessageBaseList.tsx +4 -1
- package/dist/templates/react-app/src/uikit/components/chatMessage/ChatMessageBridge.ts +39 -16
- package/dist/templates/react-app/src/uikit/components/chatMessage/MessageApi.ts +4 -2
- package/package.json +3 -3
- package/dist/templates/next-app/src/server/PageParams.ts +0 -66
- package/dist/templates/next-app/src/uikit/components/BaseHeader.tsx +0 -80
- package/dist/templates/next-app/src/uikit/components/BaseLayout.tsx +0 -65
- package/dist/templates/next-app/src/uikit/components/ComboProvider.tsx +0 -58
- package/dist/templates/next-app/src/uikit/components/NextIntlProvider.tsx +0 -21
- package/dist/templates/react-app/makes/eslint-utils.mjs +0 -195
- /package/dist/templates/next-app/{src/app/[locale] → public}/favicon.ico +0 -0
- /package/dist/templates/next-app/src/uikit/{components → components-app}/LogoutButton.tsx +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,183 @@
|
|
|
1
1
|
# @qlover/create-app
|
|
2
2
|
|
|
3
|
+
## 0.10.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
#### ✨ Features
|
|
8
|
+
|
|
9
|
+
- **ts-class-override:** Add support for 'override' accessibility modifier in ESLint rules ([a5eb470](https://github.com/qlover/fe-base/commit/a5eb4708f06a8c8bb20142294d0e4657b32d8071)) ([#551](https://github.com/qlover/fe-base/pull/551))
|
|
10
|
+
- Introduced the '@qlover-eslint/ts-class-override' rule to enforce the use of the 'override' keyword for class methods and properties in TypeScript.
|
|
11
|
+
- Updated the ESLint configuration to include the new rule.
|
|
12
|
+
- Enhanced test cases for the 'ts-class-member-accessibility' rule to cover various scenarios involving the 'override' modifier.
|
|
13
|
+
- Modified the rule implementation to recognize and handle the 'override' keyword appropriately in class definitions.
|
|
14
|
+
|
|
15
|
+
These changes aim to improve code quality by ensuring explicit accessibility modifiers are used, enhancing clarity and maintainability in TypeScript projects.
|
|
16
|
+
|
|
17
|
+
- Enhance TypeScript class accessibility and ESLint rules ([bc7267d](https://github.com/qlover/fe-base/commit/bc7267d41e140e4876c10dd487ce16bb0bb4a4ce)) ([#551](https://github.com/qlover/fe-base/pull/551))
|
|
18
|
+
- Added the '@qlover-eslint/ts-class-override' rule to enforce the use of the 'override' keyword for class methods and properties.
|
|
19
|
+
- Updated ESLint configuration to include the new rule and ensure consistent accessibility modifiers across TypeScript classes.
|
|
20
|
+
- Refactored multiple TypeScript files to explicitly define 'public' accessibility for class properties and methods, improving code clarity and maintainability.
|
|
21
|
+
|
|
22
|
+
These changes aim to enforce best practices in TypeScript coding standards and enhance overall code quality.
|
|
23
|
+
|
|
24
|
+
#### ♻️ Refactors
|
|
25
|
+
|
|
26
|
+
- Update accessibility modifiers in TypeScript classes ([becad00](https://github.com/qlover/fe-base/commit/becad000b012de4c226f005eeabe544dc306a6d2)) ([#551](https://github.com/qlover/fe-base/pull/551))
|
|
27
|
+
- Changed class properties and methods to use the 'public' accessibility modifier for better clarity and consistency across various TypeScript files.
|
|
28
|
+
- Updated package.json to use the latest version of '@qlover/eslint-plugin' for improved linting.
|
|
29
|
+
- Enhanced mock classes in tests to explicitly define accessibility, improving code readability and maintainability.
|
|
30
|
+
|
|
31
|
+
These changes aim to enforce best practices in TypeScript coding standards and improve overall code quality.
|
|
32
|
+
|
|
33
|
+
- Update TypeScript class accessibility and improve code clarity ([62f6203](https://github.com/qlover/fe-base/commit/62f620399d79530273fb33e45cb7469e2f241461)) ([#551](https://github.com/qlover/fe-base/pull/551))
|
|
34
|
+
- Explicitly defined 'public' accessibility for class properties and methods across multiple TypeScript files to enhance clarity and maintainability.
|
|
35
|
+
- Refactored tests to ensure consistent accessibility modifiers, improving overall code readability.
|
|
36
|
+
- Updated ESLint configuration to enforce best practices in TypeScript coding standards.
|
|
37
|
+
|
|
38
|
+
These changes aim to streamline code quality and maintainability in the project.
|
|
39
|
+
|
|
40
|
+
## 0.10.2
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
#### ✨ Features
|
|
45
|
+
|
|
46
|
+
- **next-app:** enhance internationalization support and layout components ([6da4f10](https://github.com/qlover/fe-base/commit/6da4f10d79e22619d86db938bdd4ae263af0e084)) ([#549](https://github.com/qlover/fe-base/pull/549))
|
|
47
|
+
- Added `prettier` configuration to `package.json` for consistent code formatting.
|
|
48
|
+
- Implemented `generateStaticParams` function in `layout.tsx` to support static rendering with locale parameters.
|
|
49
|
+
- Introduced `LanguageSwitcher` and `LocaleSwitcher` components for improved language selection.
|
|
50
|
+
- Refactored `BaseLayout` to streamline layout rendering and removed unused components.
|
|
51
|
+
- Created `LocaleSwitcherSelect` component for better locale selection handling.
|
|
52
|
+
|
|
53
|
+
These changes aim to improve the user experience with enhanced internationalization features and a more organized layout structure.
|
|
54
|
+
|
|
55
|
+
- **next-app:** refactor layout and enhance IOC integration ([d3de8f6](https://github.com/qlover/fe-base/commit/d3de8f6a8ca7336b0768835523bdbd573053ce6d)) ([#549](https://github.com/qlover/fe-base/pull/549))
|
|
56
|
+
- Replaced `ComboProvider` with `BootstrapsProvider` and `IOCProvider` in `layout.tsx` to improve dependency injection and component structure.
|
|
57
|
+
- Added `register` method to `IOCInterface` for pre-launch dependency registration, enhancing flexibility in SSR environments.
|
|
58
|
+
- Updated `BootstrapClient` to support registration of dependencies and prevent multiple initializations.
|
|
59
|
+
- Introduced `useStrictEffect` hook to ensure effects run correctly in React's Strict Mode.
|
|
60
|
+
- Refactored `BootstrapsProvider` to ensure proper IOC registration before component rendering.
|
|
61
|
+
|
|
62
|
+
These changes aim to streamline the application structure and improve the management of dependencies, enhancing overall performance and maintainability.
|
|
63
|
+
|
|
64
|
+
- **next-app:** enhance internationalization and layout components ([a588f10](https://github.com/qlover/fe-base/commit/a588f104bb3deb9a1c62d6df0e7bc6478a7b9d6d)) ([#549](https://github.com/qlover/fe-base/pull/549))
|
|
65
|
+
- Updated `layout.tsx` to fetch messages for the current locale, improving language switch experience and preventing flickering.
|
|
66
|
+
- Refactored `BaseHeader` and `BaseLayout` components to utilize `useMemo` for better performance and optimized rendering.
|
|
67
|
+
- Removed deprecated `LocaleSwitcher` and `LocaleSwitcherSelect` components to streamline the codebase.
|
|
68
|
+
- Added `ThemeSwitcher` and `LogoutButton` to `BaseLayout` for enhanced user interface options.
|
|
69
|
+
|
|
70
|
+
These changes aim to improve internationalization support and overall component efficiency in the application.
|
|
71
|
+
|
|
72
|
+
- **next-app:** add internationalization support and new assets ([ae8831f](https://github.com/qlover/fe-base/commit/ae8831f8f580e6e70abcddc5f30885e7baf22864)) ([#549](https://github.com/qlover/fe-base/pull/549))
|
|
73
|
+
- Updated ESLint configuration to include new paths for `manifest.ts` and `*.tsx` files.
|
|
74
|
+
- Added `favicon.ico` for improved branding and user experience.
|
|
75
|
+
- Introduced `proxy.ts` for handling locale detection and routing with Next.js middleware.
|
|
76
|
+
- Created `manifest.ts` to define application metadata and translations.
|
|
77
|
+
- Added `robots.txt` to guide search engine indexing.
|
|
78
|
+
|
|
79
|
+
These changes enhance internationalization capabilities and improve the overall structure of the application.
|
|
80
|
+
|
|
81
|
+
- **next-app:** enhance internationalization and routing structure ([5f64eb5](https://github.com/qlover/fe-base/commit/5f64eb58083016dfbb6a82eddfa0cac65bc9507b)) ([#549](https://github.com/qlover/fe-base/pull/549))
|
|
82
|
+
- Updated ESLint configuration to include new paths for TypeScript files in the `src/pages` directory.
|
|
83
|
+
- Added a new constant for the application manifest name in `common.ts` to improve localization.
|
|
84
|
+
- Updated English and Chinese locale files to include the new manifest name key.
|
|
85
|
+
- Refactored `manifest.ts` to utilize the new constant for application name.
|
|
86
|
+
- Introduced `AppPageRouteParams` for better handling of route parameters across the application.
|
|
87
|
+
- Created new `PagesRouteParams` and `RouteParamsnHandlerInterface` for improved routing parameter management.
|
|
88
|
+
|
|
89
|
+
These changes enhance the internationalization capabilities and improve the overall routing structure of the application.
|
|
90
|
+
|
|
91
|
+
- **next-app:** enhance configuration and logging in Next.js application ([181f522](https://github.com/qlover/fe-base/commit/181f52231da7244ab52bfc1ecf4004751f48ed5f)) ([#549](https://github.com/qlover/fe-base/pull/549))
|
|
92
|
+
- Added `transpilePackages` to `next.config.ts` for improved package handling.
|
|
93
|
+
- Introduced logging for successful startup in `BootstrapClient` to aid in debugging.
|
|
94
|
+
- Enhanced `ClientIOC` with logging during registration to track dependency injection.
|
|
95
|
+
- Updated `_app.tsx` to include `BootstrapsProvider` and `IOCProvider`, ensuring proper context management.
|
|
96
|
+
- Simplified the `About` page by removing unused translations and components.
|
|
97
|
+
|
|
98
|
+
These changes improve the application's configuration, logging capabilities, and overall structure.
|
|
99
|
+
|
|
100
|
+
- **next-app:** update ESLint config and streamline TypeScript paths ([a1ee3bd](https://github.com/qlover/fe-base/commit/a1ee3bd911516821c793c82a6ecba91a39a058bc)) ([#549](https://github.com/qlover/fe-base/pull/549))
|
|
101
|
+
- Added `manifest.ts` and `proxy.ts` to ESLint configuration for improved linting coverage.
|
|
102
|
+
- Simplified `transpilePackages` array in `next.config.ts` for better readability.
|
|
103
|
+
- Cleaned up TypeScript path mappings in `tsconfig.json` for consistency.
|
|
104
|
+
- Refactored imports in various files to enhance code organization and maintainability.
|
|
105
|
+
|
|
106
|
+
These changes enhance the project's configuration and improve code clarity across the application.
|
|
107
|
+
|
|
108
|
+
- **next-app:** add About page and enhance internationalization support ([49a5108](https://github.com/qlover/fe-base/commit/49a5108800d583f85ce0a97da77fbdbeabcba8c7)) ([#549](https://github.com/qlover/fe-base/pull/549))
|
|
109
|
+
- Introduced a new About page with SEO metadata using `ClientSeo`.
|
|
110
|
+
- Added `page.about.ts` for About page titles, descriptions, and keywords in both English and Chinese.
|
|
111
|
+
- Updated i18n configuration to include About page translations.
|
|
112
|
+
- Refactored `PagesRouteParams` to support namespace-specific message loading.
|
|
113
|
+
|
|
114
|
+
These changes improve the application's internationalization capabilities and provide a new About page for users.
|
|
115
|
+
|
|
116
|
+
- **next-app:** enhance internationalization and refactor layout components ([56cca75](https://github.com/qlover/fe-base/commit/56cca75cff33581f2e076598bad95438cefe0605)) ([#549](https://github.com/qlover/fe-base/pull/549))
|
|
117
|
+
- Added `AdminI18nProvider` to manage admin-specific i18n messages, improving localization for admin pages.
|
|
118
|
+
- Refactored layout components to utilize `AppRoutePage`, streamlining the structure and enhancing code clarity.
|
|
119
|
+
- Updated `login` and `register` pages to incorporate admin titles in translations, ensuring consistency across the application.
|
|
120
|
+
- Introduced new `LanguageSwitcher`, `LogoutButton`, and `ThemeSwitcher` components for improved user interface options.
|
|
121
|
+
- Removed deprecated `BaseLayout` and `BaseHeader` components to simplify the codebase.
|
|
122
|
+
|
|
123
|
+
These changes enhance the internationalization capabilities and improve the overall layout structure of the application.
|
|
124
|
+
|
|
125
|
+
- **next-app:** refactor API handling and enhance localization features ([68b81a1](https://github.com/qlover/fe-base/commit/68b81a1346460779b62db860ae80838aa744df66)) ([#549](https://github.com/qlover/fe-base/pull/549))
|
|
126
|
+
- Updated `useApiLocales` to true, enabling API-based localization data fetching.
|
|
127
|
+
- Refactored API routes for locales to utilize `NextApiServer`, improving error handling and response management.
|
|
128
|
+
- Introduced `AdminLocalesController` and `LocalesController` for better separation of concerns in handling locale-related operations.
|
|
129
|
+
- Enhanced user authentication routes by integrating `UserController` for streamlined login, registration, and logout processes.
|
|
130
|
+
- Added new validation and service layers to improve data handling and validation for locales and user operations.
|
|
131
|
+
|
|
132
|
+
These changes enhance the application's localization capabilities and improve the overall API structure and error handling.
|
|
133
|
+
|
|
134
|
+
- **next-app:** enhance validation and refactor controller logic ([edce45d](https://github.com/qlover/fe-base/commit/edce45d0879777a2edd6cd3144762fbff91e76e5)) ([#549](https://github.com/qlover/fe-base/pull/549))
|
|
135
|
+
- Updated `ValidatorInterface` to support generic types, allowing for more flexible validation across different data structures.
|
|
136
|
+
- Refactored `AdminLocalesController` and `UserController` to utilize the updated validation methods, improving error handling and data processing.
|
|
137
|
+
- Introduced `PaginationParams` type for better pagination handling in `PaginationValidator`.
|
|
138
|
+
- Enhanced `LocalesValidator` and `LoginValidator` to implement specific data types, ensuring stricter validation rules.
|
|
139
|
+
|
|
140
|
+
These changes improve the robustness of data validation and streamline controller logic, enhancing overall application reliability.
|
|
141
|
+
|
|
142
|
+
- **next-app:** enhance theme management and cookie configuration ([bcfd05d](https://github.com/qlover/fe-base/commit/bcfd05d04a88fd036f1fd15f8227e27c6cc5fe97)) ([#549](https://github.com/qlover/fe-base/pull/549))
|
|
143
|
+
- Added `cookiesConfig` for managing cookie attributes, improving cookie handling in the application.
|
|
144
|
+
- Updated `i18nConfig` to include a new `storageKey` for locale management.
|
|
145
|
+
- Refactored `RootLayout` to utilize the theme from URL parameters, enhancing user experience with theme persistence.
|
|
146
|
+
- Introduced `getTheme` methods in `AppPageRouteParams` and `PagesRouteParams` for consistent theme retrieval.
|
|
147
|
+
- Enhanced `ThemeSwitcher` to save the selected theme in cookies, ensuring user preferences are maintained across sessions.
|
|
148
|
+
|
|
149
|
+
These changes improve the application's theme management and cookie handling, enhancing overall user experience.
|
|
150
|
+
|
|
151
|
+
- **next-app:** enhance theme configuration and localization support ([4101f66](https://github.com/qlover/fe-base/commit/4101f6690fb28daa173688fe8fb779feeb5ea19f)) ([#549](https://github.com/qlover/fe-base/pull/549))
|
|
152
|
+
- Updated theme configuration to include `enableSystem` and improved default theme handling.
|
|
153
|
+
- Added new constants for light theme labels in both English and Chinese locales.
|
|
154
|
+
- Refactored `getTheme` method to return the first supported theme if no cookie is found.
|
|
155
|
+
- Enhanced `ThemeSwitcher` component to utilize new theme constants and improve user experience.
|
|
156
|
+
|
|
157
|
+
These changes improve theme management and localization, ensuring a more consistent user interface across different themes.
|
|
158
|
+
|
|
159
|
+
- **next-app:** integrate client rendering and enhance routing functionality ([79f0353](https://github.com/qlover/fe-base/commit/79f0353315bad3a2d648ebe990a3f81d16dc0446)) ([#549](https://github.com/qlover/fe-base/pull/549))
|
|
160
|
+
- Added `ClinetRenderProvider` to manage client-side rendering for components, preventing flickering during language switches.
|
|
161
|
+
- Updated `AdminRootLayout` to wrap `AdminLayout` with `ClinetRenderProvider` for improved rendering control.
|
|
162
|
+
- Refactored `RouterService` to introduce `replaceHome` method, enhancing navigation capabilities.
|
|
163
|
+
- Modified `LoginForm` to use `routerService.replaceHome()` for smoother redirection after login.
|
|
164
|
+
- Introduced `AppBridge` component to establish a connection between the router and navigation bridge, improving routing management.
|
|
165
|
+
- Added new `scrollbar.css` for custom scrollbar styling and updated CSS imports accordingly.
|
|
166
|
+
|
|
167
|
+
These changes enhance the application's rendering performance and routing structure, providing a better user experience.
|
|
168
|
+
|
|
169
|
+
#### 🐞 Bug Fixes
|
|
170
|
+
|
|
171
|
+
- **next-app:** update ESLint config and enhance i18n message loading ([dad47dc](https://github.com/qlover/fe-base/commit/dad47dc9ca3f7c7f9c4d5542ed6adfaf38c8567b)) ([#549](https://github.com/qlover/fe-base/pull/549))
|
|
172
|
+
- Removed `manifest.ts` from ESLint ignore list to ensure proper linting.
|
|
173
|
+
- Downgraded `eslint-config-next` to version `15.5.0` for compatibility.
|
|
174
|
+
- Added `defaultNamespaces` to `i18nConfig` for improved message loading.
|
|
175
|
+
- Introduced `loadMessages` function to handle loading i18n messages from API or JSON files.
|
|
176
|
+
- Refactored `request.ts` to utilize the new `loadMessages` function for fetching messages.
|
|
177
|
+
- Updated `PagesRouteParams` to support loading messages with specified namespaces.
|
|
178
|
+
|
|
179
|
+
These changes improve the internationalization message handling and ensure consistent linting across the project.
|
|
180
|
+
|
|
3
181
|
## 0.10.1
|
|
4
182
|
|
|
5
183
|
### Patch Changes
|
|
@@ -31,7 +31,7 @@ jobs:
|
|
|
31
31
|
- name: Install Node.js
|
|
32
32
|
uses: actions/setup-node@v2
|
|
33
33
|
with:
|
|
34
|
-
node-version: '20.
|
|
34
|
+
node-version: '20.19.0'
|
|
35
35
|
|
|
36
36
|
- run: npm install -g pnpm
|
|
37
37
|
- run: pnpm install --frozen-lockfile
|
|
@@ -66,7 +66,7 @@ jobs:
|
|
|
66
66
|
- name: Install Node.js
|
|
67
67
|
uses: actions/setup-node@v2
|
|
68
68
|
with:
|
|
69
|
-
node-version: '20.
|
|
69
|
+
node-version: '20.19.0'
|
|
70
70
|
|
|
71
71
|
- run: npm install -g pnpm
|
|
72
72
|
- run: pnpm install --frozen-lockfile
|