@qlover/create-app 0.7.9 → 0.7.11
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 +184 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/dist/templates/next-app/.env.template +8 -4
- package/dist/templates/next-app/config/IOCIdentifier.ts +4 -1
- package/dist/templates/next-app/config/Identifier/api.ts +34 -0
- package/dist/templates/next-app/config/Identifier/common.ts +7 -0
- package/dist/templates/next-app/config/Identifier/index.ts +2 -0
- package/dist/templates/next-app/config/Identifier/page.login.ts +2 -2
- package/dist/templates/next-app/config/Identifier/page.register.ts +43 -22
- package/dist/templates/next-app/config/Identifier/validator.ts +34 -0
- package/dist/templates/next-app/config/i18n/index.ts +1 -0
- package/dist/templates/next-app/config/i18n/register18n.ts +44 -0
- package/dist/templates/next-app/eslint.config.mjs +17 -0
- package/dist/templates/next-app/migrations/schema/UserSchema.ts +24 -0
- package/dist/templates/next-app/migrations/sql/1694244000000.sql +10 -0
- package/dist/templates/next-app/next.config.ts +1 -0
- package/dist/templates/next-app/package.json +12 -2
- package/dist/templates/next-app/public/locales/en.json +19 -2
- package/dist/templates/next-app/public/locales/zh.json +19 -2
- package/dist/templates/next-app/src/app/[locale]/admin/layout.tsx +18 -0
- package/dist/templates/next-app/src/app/[locale]/admin/page.tsx +22 -0
- package/dist/templates/next-app/src/app/[locale]/admin/users/page.tsx +62 -0
- package/dist/templates/next-app/src/app/[locale]/layout.tsx +1 -1
- package/dist/templates/next-app/src/app/[locale]/login/LoginForm.tsx +26 -6
- package/dist/templates/next-app/src/app/[locale]/login/page.tsx +7 -5
- package/dist/templates/next-app/src/app/[locale]/page.tsx +5 -5
- package/dist/templates/next-app/src/app/[locale]/register/RegisterForm.tsx +176 -0
- package/dist/templates/next-app/src/app/[locale]/register/page.tsx +79 -0
- package/dist/templates/next-app/src/app/api/admin/users/route.ts +39 -0
- package/dist/templates/next-app/src/app/api/user/login/route.ts +50 -0
- package/dist/templates/next-app/src/app/api/user/logout/route.ts +27 -0
- package/dist/templates/next-app/src/app/api/user/register/route.ts +50 -0
- package/dist/templates/next-app/src/base/cases/AdminPageManager.ts +40 -0
- package/dist/templates/next-app/src/base/cases/AppConfig.ts +19 -0
- package/dist/templates/next-app/src/base/cases/DialogErrorPlugin.ts +46 -0
- package/dist/templates/next-app/src/base/cases/PageParams.ts +1 -1
- package/dist/templates/next-app/src/base/cases/RequestEncryptPlugin.ts +70 -0
- package/dist/templates/next-app/src/base/cases/RequestState.ts +20 -0
- package/dist/templates/next-app/src/base/cases/RouterService.ts +4 -0
- package/dist/templates/next-app/src/base/cases/StringEncryptor.ts +67 -0
- package/dist/templates/next-app/src/base/cases/UserServiceApi.ts +48 -0
- package/dist/templates/next-app/src/base/port/AdminLayoutInterface.ts +26 -0
- package/dist/templates/next-app/src/base/port/AdminPageInterface.ts +87 -0
- package/dist/templates/next-app/src/base/port/AppApiInterface.ts +14 -0
- package/dist/templates/next-app/src/base/port/AppUserApiInterface.ts +15 -0
- package/dist/templates/next-app/src/base/port/AsyncStateInterface.ts +7 -0
- package/dist/templates/next-app/src/base/port/DBBridgeInterface.ts +21 -0
- package/dist/templates/next-app/src/base/port/DBMigrationInterface.ts +92 -0
- package/dist/templates/next-app/src/base/port/I18nServiceInterface.ts +3 -2
- package/dist/templates/next-app/src/base/port/MigrationApiInterface.ts +3 -0
- package/dist/templates/next-app/src/base/port/PaginationInterface.ts +6 -0
- package/dist/templates/next-app/src/base/port/ServerApiResponseInterface.ts +6 -0
- package/dist/templates/next-app/src/base/port/UserServiceInterface.ts +3 -2
- package/dist/templates/next-app/src/base/services/AdminUserService.ts +45 -0
- package/dist/templates/next-app/src/base/services/I18nService.ts +9 -45
- package/dist/templates/next-app/src/base/services/UserService.ts +9 -8
- package/dist/templates/next-app/src/base/services/adminApi/AdminApiRequester.ts +21 -0
- package/dist/templates/next-app/src/base/services/adminApi/AdminUserApi.ts +34 -0
- package/dist/templates/next-app/src/base/services/appApi/AppApiPlugin.ts +63 -0
- package/dist/templates/next-app/src/base/services/appApi/AppApiRequester.ts +56 -0
- package/dist/templates/next-app/src/base/services/appApi/AppUserApi.ts +71 -0
- package/dist/templates/next-app/src/base/services/appApi/AppUserApiBootstrap.ts +49 -0
- package/dist/templates/next-app/src/base/services/migrations/MigrationsApi.ts +43 -0
- package/dist/templates/next-app/src/core/bootstraps/BootstrapClient.ts +1 -1
- package/dist/templates/next-app/src/core/bootstraps/BootstrapServer.ts +26 -12
- package/dist/templates/next-app/src/core/bootstraps/BootstrapsRegistry.ts +5 -4
- package/dist/templates/next-app/src/core/bootstraps/PrintBootstrap.ts +1 -1
- package/dist/templates/next-app/src/core/clientIoc/ClientIOC.ts +1 -1
- package/dist/templates/next-app/src/core/clientIoc/ClientIOCRegister.ts +1 -1
- package/dist/templates/next-app/src/core/globals.ts +1 -1
- package/dist/templates/next-app/src/core/serverIoc/ServerIOC.ts +1 -1
- package/dist/templates/next-app/src/core/serverIoc/ServerIOCRegister.ts +1 -1
- package/dist/templates/next-app/src/server/AppErrorApi.ts +10 -0
- package/dist/templates/next-app/src/server/AppSuccessApi.ts +7 -0
- package/dist/templates/next-app/src/server/PasswordEncrypt.ts +12 -0
- package/dist/templates/next-app/src/server/ServerAuth.ts +60 -0
- package/dist/templates/next-app/src/server/SupabaseBridge.ts +159 -0
- package/dist/templates/next-app/src/server/UserCredentialToken.ts +49 -0
- package/dist/templates/next-app/src/server/port/CrentialTokenInterface.ts +5 -0
- package/dist/templates/next-app/src/server/port/DBTableInterface.ts +10 -0
- package/dist/templates/next-app/src/server/port/ServerAuthInterface.ts +11 -0
- package/dist/templates/next-app/src/server/port/ServerInterface.ts +22 -0
- package/dist/templates/next-app/src/server/port/UserRepositoryInterface.ts +15 -0
- package/dist/templates/next-app/src/server/port/UserServiceInterface.ts +8 -0
- package/dist/templates/next-app/src/server/port/ValidatorInterface.ts +23 -0
- package/dist/templates/next-app/src/server/repositorys/UserRepository.ts +94 -0
- package/dist/templates/next-app/src/server/services/AdminAuthPlugin.ts +19 -0
- package/dist/templates/next-app/src/server/services/ApiUserService.ts +26 -0
- package/dist/templates/next-app/src/server/services/UserService.ts +105 -0
- package/dist/templates/next-app/src/server/validators/LoginValidator.ts +79 -0
- package/dist/templates/next-app/src/server/validators/PaginationValidator.ts +48 -0
- package/dist/templates/next-app/src/styles/css/antd-themes/{_default.css → _common/_default.css} +74 -1
- package/dist/templates/next-app/src/styles/css/antd-themes/{dark.css → _common/dark.css} +73 -0
- package/dist/templates/next-app/src/styles/css/antd-themes/_common/index.css +3 -0
- package/dist/templates/next-app/src/styles/css/antd-themes/{pink.css → _common/pink.css} +70 -0
- package/dist/templates/next-app/src/styles/css/antd-themes/index.css +4 -3
- package/dist/templates/next-app/src/styles/css/antd-themes/menu/_default.css +108 -0
- package/dist/templates/next-app/src/styles/css/antd-themes/menu/dark.css +67 -0
- package/dist/templates/next-app/src/styles/css/antd-themes/menu/index.css +3 -0
- package/dist/templates/next-app/src/styles/css/antd-themes/menu/pink.css +67 -0
- package/dist/templates/next-app/src/styles/css/antd-themes/pagination/_default.css +33 -0
- package/dist/templates/next-app/src/styles/css/antd-themes/pagination/dark.css +32 -0
- package/dist/templates/next-app/src/styles/css/antd-themes/pagination/index.css +3 -0
- package/dist/templates/next-app/src/styles/css/antd-themes/pagination/pink.css +35 -0
- package/dist/templates/next-app/src/styles/css/antd-themes/table/_default.css +44 -0
- package/dist/templates/next-app/src/styles/css/antd-themes/table/dark.css +43 -0
- package/dist/templates/next-app/src/styles/css/antd-themes/table/index.css +3 -0
- package/dist/templates/next-app/src/styles/css/antd-themes/table/pink.css +43 -0
- package/dist/templates/next-app/src/uikit/components/AdminLayout.tsx +106 -0
- package/dist/templates/next-app/src/uikit/components/BaseHeader.tsx +68 -17
- package/dist/templates/next-app/src/uikit/components/BaseLayout.tsx +6 -1
- package/dist/templates/next-app/src/uikit/components/BootstrapsProvider.tsx +9 -2
- package/dist/templates/next-app/src/uikit/components/ComboProvider.tsx +11 -3
- package/dist/templates/next-app/src/uikit/components/LanguageSwitcher.tsx +1 -1
- package/dist/templates/next-app/src/uikit/components/LogoutButton.tsx +21 -11
- package/dist/templates/next-app/src/uikit/hook/useIOC.ts +1 -1
- package/dist/templates/next-app/src/uikit/hook/useMountedClient.ts +7 -1
- package/dist/templates/next-app/tsconfig.json +3 -1
- package/package.json +2 -2
- package/dist/templates/next-app/src/base/cases/ServerAuth.ts +0 -17
- package/dist/templates/next-app/src/base/cases/ServerErrorHandler.ts +0 -27
- package/dist/templates/next-app/src/base/port/ServerAuthInterface.ts +0 -3
- package/dist/templates/next-app/src/base/port/ServerInterface.ts +0 -12
- /package/dist/templates/next-app/src/{app/[locale]/login → uikit/components}/FeatureItem.tsx +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,189 @@
|
|
|
1
1
|
# @qlover/create-app
|
|
2
2
|
|
|
3
|
+
## 0.7.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
#### ✨ Features
|
|
8
|
+
|
|
9
|
+
- **next-app:** enhance admin layout and localization support ([35badca](https://github.com/qlover/fe-base/commit/35badcacbe2aec0af4b91641b89ac621456e2ee7)) ([#512](https://github.com/qlover/fe-base/pull/512))
|
|
10
|
+
- Introduced AdminLayout component for improved admin page structure and navigation.
|
|
11
|
+
- Added PAGE_HEAD_ADMIN_TITLE constant for localization of the admin page title in English and Chinese.
|
|
12
|
+
- Updated localization files to include new keys for the admin page title.
|
|
13
|
+
- Refactored AdminPage component to simplify its structure and enhance readability.
|
|
14
|
+
- Created AdminPageManager for managing admin page state, including sidebar collapse functionality.
|
|
15
|
+
|
|
16
|
+
These changes aim to improve the user experience in the admin section by providing a structured layout and better localization support.
|
|
17
|
+
|
|
18
|
+
- **next-app:** enhance user management and API integration ([2123e76](https://github.com/qlover/fe-base/commit/2123e76cc856c145e8f5a3772e3ac150fb617ed7)) ([#512](https://github.com/qlover/fe-base/pull/512))
|
|
19
|
+
- Added new API constants for user-related error messages, including not authorized and page number invalid.
|
|
20
|
+
- Introduced UserRoleType for better role management in the UserSchema.
|
|
21
|
+
- Created UsersPage component for admin user management, integrating AdminUserService for user initialization.
|
|
22
|
+
- Implemented pagination support in UserRepository and ApiUserService for user data retrieval.
|
|
23
|
+
- Developed AdminAuthPlugin for server-side authentication checks before executing requests.
|
|
24
|
+
|
|
25
|
+
These changes aim to improve user management functionality, enhance API interactions, and streamline the admin interface for better usability.
|
|
26
|
+
|
|
27
|
+
- **next-app:** enhance admin user management and layout features ([e9f8a20](https://github.com/qlover/fe-base/commit/e9f8a203ef1078724e9774d3eb32b5daf0a99a79)) ([#512](https://github.com/qlover/fe-base/pull/512))
|
|
28
|
+
- Updated UsersPage component to include loading state and improved user interface with a spinner.
|
|
29
|
+
- Enhanced BaseLayout to conditionally display an admin button for better navigation.
|
|
30
|
+
- Refactored AdminPageManager to initialize navigation items for the admin layout.
|
|
31
|
+
- Introduced AdminApiRequester for streamlined API requests related to admin functionalities.
|
|
32
|
+
- Updated AdminUserService to utilize new API structure for fetching user data.
|
|
33
|
+
|
|
34
|
+
These changes aim to improve the user experience in the admin section by providing better loading indicators and navigation options, while also enhancing the underlying API interactions.
|
|
35
|
+
|
|
36
|
+
- **next-app:** improve admin user service and component structure ([c9c31d8](https://github.com/qlover/fe-base/commit/c9c31d8a96323057ff33b43fa47c433c07dcfa81)) ([#512](https://github.com/qlover/fe-base/pull/512))
|
|
37
|
+
- Refactored UsersPage component to streamline user initialization logic.
|
|
38
|
+
- Enhanced AdminUserService to manage loading states and error handling during user data fetching.
|
|
39
|
+
- Updated AdminUserApi to return a more structured response for user list requests.
|
|
40
|
+
- Introduced safeFields in UserRepository for better data handling during pagination.
|
|
41
|
+
- Added useMountedClient hook to ensure components render only after client initialization.
|
|
42
|
+
|
|
43
|
+
These changes aim to enhance the user management experience in the admin section by improving data handling, error management, and component rendering logic.
|
|
44
|
+
|
|
45
|
+
- **next-app:** enhance ESLint configuration and user schema validation ([c00639f](https://github.com/qlover/fe-base/commit/c00639f470caf6480e34b41bd912faa76c3356c7)) ([#512](https://github.com/qlover/fe-base/pull/512))
|
|
46
|
+
- Added TypeScript resolver settings to ESLint configuration for improved module resolution.
|
|
47
|
+
- Introduced new import patterns for migrations and configuration in ESLint rules.
|
|
48
|
+
- Refactored UserSchema to utilize Zod for validation, enhancing type safety and data integrity.
|
|
49
|
+
- Updated UsersPage component to integrate the new user schema and improve data handling.
|
|
50
|
+
- Enhanced pagination and table components with new CSS variables for better theming support.
|
|
51
|
+
|
|
52
|
+
These changes aim to improve code quality, validation processes, and user interface consistency in the admin section.
|
|
53
|
+
|
|
54
|
+
- **next-app:** enhance Ant Design theme support with menu styles ([1431f73](https://github.com/qlover/fe-base/commit/1431f73ea98ec97254b553b56dde9896623dbc79)) ([#512](https://github.com/qlover/fe-base/pull/512))
|
|
55
|
+
- Added new CSS variables for Ant Design layout components in common theme files.
|
|
56
|
+
- Introduced menu styles for default, dark, and pink themes, enhancing customization options.
|
|
57
|
+
- Updated AdminLayout component to utilize the new menu styles, improving the overall UI consistency.
|
|
58
|
+
|
|
59
|
+
These changes aim to provide a more cohesive theming experience across the application, particularly for the menu component.
|
|
60
|
+
|
|
61
|
+
- **next-app:** refactor imports and enhance component structure ([61539d3](https://github.com/qlover/fe-base/commit/61539d348595e04a8b8cafa5d8ec7cf25d8cdd32)) ([#512](https://github.com/qlover/fe-base/pull/512))
|
|
62
|
+
- Reorganized imports across various components to improve clarity and maintainability.
|
|
63
|
+
- Updated layout and page components to include necessary configurations for internationalization and theming.
|
|
64
|
+
- Enhanced AdminPage structure by introducing a client component for better separation of concerns.
|
|
65
|
+
- Improved CSS variable formatting in theme files for better readability and consistency.
|
|
66
|
+
|
|
67
|
+
These changes aim to streamline the codebase, enhance component organization, and improve the overall theming experience in the application.
|
|
68
|
+
|
|
69
|
+
#### ♻️ Refactors
|
|
70
|
+
|
|
71
|
+
- **create-app:** update context imports and enhance type definitions ([be587b4](https://github.com/qlover/fe-base/commit/be587b40d04785309bc34fe41ffb5054c6698818)) ([#512](https://github.com/qlover/fe-base/pull/512))
|
|
72
|
+
- Replaced FeScriptContext with ScriptContext in Generator class for consistency with updated context structure.
|
|
73
|
+
- Modified GeneratorOptions to extend ScriptSharedInterface, improving type safety and integration with the scripts context.
|
|
74
|
+
|
|
75
|
+
These changes aim to streamline the codebase and ensure better alignment with the latest context definitions.
|
|
76
|
+
|
|
77
|
+
## 0.7.10
|
|
78
|
+
|
|
79
|
+
### Patch Changes
|
|
80
|
+
|
|
81
|
+
#### ✨ Features
|
|
82
|
+
|
|
83
|
+
- **next-app:** integrate Supabase for database interactions and enhance configuration ([bd3a557](https://github.com/qlover/fe-base/commit/bd3a557998ae1d77db5a5ff5ea145c067eba0cc8)) ([#510](https://github.com/qlover/fe-base/pull/510))
|
|
84
|
+
- Added Supabase dependencies to package.json for authentication and database management.
|
|
85
|
+
- Introduced DBBridgeInterface for defining database operations and implemented SupabaseBridge for handling database interactions.
|
|
86
|
+
- Updated AppConfig to include Supabase URL and anon key for configuration.
|
|
87
|
+
- Created AdminPage component to demonstrate database bridge usage within the application.
|
|
88
|
+
|
|
89
|
+
These changes aim to enhance the application's data management capabilities and streamline interactions with the Supabase backend.
|
|
90
|
+
|
|
91
|
+
- **next-app:** implement migration system and integrate Supabase for database management ([5732fbf](https://github.com/qlover/fe-base/commit/5732fbfb97960162cddd8d35602d09141e8a805a)) ([#510](https://github.com/qlover/fe-base/pull/510))
|
|
92
|
+
- Added Supabase dependency to package.json for enhanced database interactions.
|
|
93
|
+
- Created migration logs table in a new SQL migration file to track migration history.
|
|
94
|
+
- Developed AdminLayout and AdminMigrationsPage components for managing database migrations.
|
|
95
|
+
- Introduced MigrationExecutor and SupabaseMigration classes to handle migration operations.
|
|
96
|
+
- Updated DBBridgeInterface and added DBMigrationInterface for improved database operation definitions.
|
|
97
|
+
|
|
98
|
+
These changes aim to streamline database management and provide a robust migration system within the application.
|
|
99
|
+
|
|
100
|
+
- **next-app:** enhance user management and database schema ([d2457a8](https://github.com/qlover/fe-base/commit/d2457a82e1c028be3d2da4dd5c163adde19ee778)) ([#510](https://github.com/qlover/fe-base/pull/510))
|
|
101
|
+
- Updated tsconfig.json to include new path mappings for migrations.
|
|
102
|
+
- Added UserSchema interface for defining user attributes in migrations.
|
|
103
|
+
- Created UserRepository and UserService for handling user-related operations, including registration and login.
|
|
104
|
+
- Implemented PasswordEncrypt class for password hashing.
|
|
105
|
+
- Developed API constants for user-related error messages.
|
|
106
|
+
- Refactored SupabaseBridge to support dynamic where conditions in database operations.
|
|
107
|
+
- Introduced new SQL migration for user table creation.
|
|
108
|
+
|
|
109
|
+
These changes aim to improve user management functionality and streamline interactions with the database.
|
|
110
|
+
|
|
111
|
+
- **next-app:** enhance user management and localization support ([f182328](https://github.com/qlover/fe-base/commit/f182328779cf5db569d3d5d43562ca990c59f2de)) ([#510](https://github.com/qlover/fe-base/pull/510))
|
|
112
|
+
- Added `credential_token` field to the `fe_users` table in the SQL migration for improved user authentication.
|
|
113
|
+
- Updated English and Chinese localization files to include new error messages for user-related operations: "User not found" and "User already exists".
|
|
114
|
+
- Refactored the user login API to utilize a new error handling structure, improving response consistency and clarity.
|
|
115
|
+
- Introduced `AppApiResponse` interface for standardized API response handling across the application.
|
|
116
|
+
|
|
117
|
+
These changes aim to strengthen user management features and enhance localization for better user experience.
|
|
118
|
+
|
|
119
|
+
- **next-app:** enhance user service and error handling ([a7627d7](https://github.com/qlover/fe-base/commit/a7627d7c9a73f584b6940f4cd406b4ba55168474)) ([#510](https://github.com/qlover/fe-base/pull/510))
|
|
120
|
+
- Refactored user service to utilize new `UserServiceApi` for improved API interactions.
|
|
121
|
+
- Introduced `AppErrorApi` and `AppSuccessApi` classes for standardized API response handling.
|
|
122
|
+
- Added `DialogErrorPlugin` for enhanced error dialog management in the application.
|
|
123
|
+
- Updated localization files to include new error messages and response handling keys.
|
|
124
|
+
- Improved logging in the `LoginForm` component by integrating a logger service.
|
|
125
|
+
|
|
126
|
+
These changes aim to strengthen user management features, improve error handling, and enhance localization support across the application.
|
|
127
|
+
|
|
128
|
+
- **next-app:** enhance login validation and localization support ([506c42c](https://github.com/qlover/fe-base/commit/506c42c0bc3b4b75b4af168524bfece09eaddfd9)) ([#510](https://github.com/qlover/fe-base/pull/510))
|
|
129
|
+
- Added `zod` for improved validation handling in the login process.
|
|
130
|
+
- Introduced `LoginValidator` class to validate email and password inputs with detailed error messages.
|
|
131
|
+
- Updated localization files to reflect changes in validation messages for both English and Chinese.
|
|
132
|
+
- Enhanced `LoginForm` component to utilize the new validation logic, ensuring better user feedback on input errors.
|
|
133
|
+
|
|
134
|
+
These changes aim to strengthen the login functionality by providing robust validation and clearer user guidance through localization.
|
|
135
|
+
|
|
136
|
+
- **next-app:** implement registration page and enhance localization support ([bc67534](https://github.com/qlover/fe-base/commit/bc67534dd7864172fa0d7b3d447e62d8bef62dae)) ([#510](https://github.com/qlover/fe-base/pull/510))
|
|
137
|
+
- Created a new registration page with a corresponding RegisterForm component for user sign-up.
|
|
138
|
+
- Added localization keys for registration page content, keywords, and features in both English and Chinese.
|
|
139
|
+
- Introduced a new i18n interface for the registration page to manage translations effectively.
|
|
140
|
+
- Updated API routes to handle user registration with improved error handling and response structure.
|
|
141
|
+
- Enhanced the RouterService to support navigation to the login page from the registration form.
|
|
142
|
+
|
|
143
|
+
These changes aim to provide a seamless user experience for account creation and improve localization for better accessibility.
|
|
144
|
+
|
|
145
|
+
- **next-app:** implement password encryption and enhance API error handling ([afb9bdb](https://github.com/qlover/fe-base/commit/afb9bdbc7da975bf10e63a2ac8da3308d74456d4)) ([#510](https://github.com/qlover/fe-base/pull/510))
|
|
146
|
+
- Introduced StringEncryptor for encrypting and decrypting passwords in user login and registration processes.
|
|
147
|
+
- Updated API routes for user login and registration to handle encrypted passwords, improving security.
|
|
148
|
+
- Enhanced error handling in the DialogErrorPlugin to prioritize runtime errors.
|
|
149
|
+
- Added RequestEncryptPlugin to automatically encrypt specified properties in API requests.
|
|
150
|
+
- Updated AppConfig to include a key for the StringEncryptor, ensuring secure configuration.
|
|
151
|
+
|
|
152
|
+
These changes aim to strengthen user authentication security and improve error management across the application.
|
|
153
|
+
|
|
154
|
+
- **next-app:** enhance authentication and user management features ([e67dc6d](https://github.com/qlover/fe-base/commit/e67dc6d05f41c329bbebf26653ea5374529c009c)) ([#510](https://github.com/qlover/fe-base/pull/510))
|
|
155
|
+
- Updated .env.template to include JWT_SECRET for token management.
|
|
156
|
+
- Refactored UserSchema to rename reauthentication_token to credential_token for clarity.
|
|
157
|
+
- Introduced ServerAuth class for managing user authentication and token handling.
|
|
158
|
+
- Enhanced UserService to generate and manage user credential tokens during login and registration.
|
|
159
|
+
- Updated API routes for user login and registration to return user data with credential tokens.
|
|
160
|
+
- Improved error handling and response structure in user-related API interactions.
|
|
161
|
+
|
|
162
|
+
These changes aim to strengthen user authentication processes and improve overall user management within the application.
|
|
163
|
+
|
|
164
|
+
- **next-app:** implement logout functionality and enhance user interface ([7765694](https://github.com/qlover/fe-base/commit/776569462d5488c07dfe13cca6f825cf610bd200)) ([#510](https://github.com/qlover/fe-base/pull/510))
|
|
165
|
+
- Added a new API route for user logout, handling session termination and response management.
|
|
166
|
+
- Refactored UserService to implement the logout method, clearing user credentials and updating the repository.
|
|
167
|
+
- Updated AppUserApi to include a logout method for API interaction.
|
|
168
|
+
- Enhanced the LogoutButton component to trigger the logout process with a confirmation dialog.
|
|
169
|
+
- Modified BaseHeader to conditionally display the logout button based on user authentication state.
|
|
170
|
+
|
|
171
|
+
These changes aim to improve user experience by providing a seamless logout process and enhancing the overall user interface.
|
|
172
|
+
|
|
173
|
+
- **next-app:** enhance server authentication with user credential token integration ([bcb8bdc](https://github.com/qlover/fe-base/commit/bcb8bdc846ffa7c1c6f89f1395f9756241b031b4)) ([#510](https://github.com/qlover/fe-base/pull/510))
|
|
174
|
+
- Updated ServerAuth class to include UserCredentialToken for improved token parsing and validation.
|
|
175
|
+
- Refactored hasAuth method to utilize the new user credential token for authentication checks.
|
|
176
|
+
- Minor adjustments in UserCredentialToken file for consistency and clarity.
|
|
177
|
+
|
|
178
|
+
These changes aim to strengthen the authentication process by ensuring more reliable token management and validation.
|
|
179
|
+
|
|
180
|
+
#### ♻️ Refactors
|
|
181
|
+
|
|
182
|
+
- **bootstraps:** remove unused StringEncryptor import from BootstrapsRegistry.ts ([d7000ea](https://github.com/qlover/fe-base/commit/d7000ea93a5c7cc53a2ccb244424b41ba3ce6fb5)) ([#510](https://github.com/qlover/fe-base/pull/510))
|
|
183
|
+
- Eliminated the import of StringEncryptor as it is no longer utilized in the BootstrapsRegistry file.
|
|
184
|
+
|
|
185
|
+
This change aims to clean up the code by removing unnecessary dependencies, improving maintainability.
|
|
186
|
+
|
|
3
187
|
## 0.7.9
|
|
4
188
|
|
|
5
189
|
### Patch Changes
|