@qlover/create-app 1.0.2 → 2.0.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.
- package/CHANGELOG.md +43 -0
- package/dist/index.cjs +9 -9
- package/dist/index.js +9 -9
- package/package.json +4 -3
- package/dist/configs/_common/.editorconfig +0 -23
- package/dist/configs/_common/.env.template +0 -13
- package/dist/configs/_common/.gitattributes +0 -2
- package/dist/configs/_common/.github/workflows/general-check.yml +0 -41
- package/dist/configs/_common/.github/workflows/release.yml +0 -81
- package/dist/configs/_common/.gitignore.template +0 -64
- package/dist/configs/_common/.husky/commit-msg +0 -3
- package/dist/configs/_common/.husky/pre-commit +0 -3
- package/dist/configs/_common/.prettierignore +0 -17
- package/dist/configs/_common/.prettierrc.js +0 -7
- package/dist/configs/_common/.vscode/extensions.json +0 -9
- package/dist/configs/_common/.vscode/react.code-snippets +0 -19
- package/dist/configs/_common/.vscode/settings.json +0 -16
- package/dist/configs/_common/commitlint.config.js +0 -10
- package/dist/configs/_common/package.json.template +0 -75
- package/dist/configs/node-lib/eslint.config.js +0 -50
- package/dist/templates/next-app/.env.template +0 -25
- package/dist/templates/next-app/.prettierignore +0 -58
- package/dist/templates/next-app/README.en.md +0 -130
- package/dist/templates/next-app/README.md +0 -130
- package/dist/templates/next-app/config/IOCIdentifier.ts +0 -74
- package/dist/templates/next-app/config/Identifier/api.ts +0 -41
- package/dist/templates/next-app/config/Identifier/common/admint.table.ts +0 -69
- package/dist/templates/next-app/config/Identifier/common/common.ts +0 -90
- package/dist/templates/next-app/config/Identifier/common/index.ts +0 -3
- package/dist/templates/next-app/config/Identifier/common/validators.ts +0 -34
- package/dist/templates/next-app/config/Identifier/index.ts +0 -3
- package/dist/templates/next-app/config/Identifier/pages/index.ts +0 -7
- package/dist/templates/next-app/config/Identifier/pages/page.about.ts +0 -20
- package/dist/templates/next-app/config/Identifier/pages/page.admin.home.ts +0 -27
- package/dist/templates/next-app/config/Identifier/pages/page.admin.locales.ts +0 -266
- package/dist/templates/next-app/config/Identifier/pages/page.admin.user.ts +0 -293
- package/dist/templates/next-app/config/Identifier/pages/page.home.ts +0 -56
- package/dist/templates/next-app/config/Identifier/pages/page.login.ts +0 -159
- package/dist/templates/next-app/config/Identifier/pages/page.register.ts +0 -177
- package/dist/templates/next-app/config/adminNavs.ts +0 -19
- package/dist/templates/next-app/config/common.ts +0 -43
- package/dist/templates/next-app/config/cookies.ts +0 -23
- package/dist/templates/next-app/config/i18n/AboutI18n.ts +0 -14
- package/dist/templates/next-app/config/i18n/HomeI18n.ts +0 -24
- package/dist/templates/next-app/config/i18n/PageI18nInterface.ts +0 -51
- package/dist/templates/next-app/config/i18n/admin18n.ts +0 -75
- package/dist/templates/next-app/config/i18n/i18nConfig.ts +0 -16
- package/dist/templates/next-app/config/i18n/i18nKeyScheam.ts +0 -36
- package/dist/templates/next-app/config/i18n/index.ts +0 -7
- package/dist/templates/next-app/config/i18n/loginI18n.ts +0 -50
- package/dist/templates/next-app/config/i18n/register18n.ts +0 -44
- package/dist/templates/next-app/config/route.ts +0 -9
- package/dist/templates/next-app/config/theme.ts +0 -28
- package/dist/templates/next-app/docs/en/api.md +0 -387
- package/dist/templates/next-app/docs/en/component.md +0 -544
- package/dist/templates/next-app/docs/en/database.md +0 -496
- package/dist/templates/next-app/docs/en/development-guide.md +0 -727
- package/dist/templates/next-app/docs/en/env.md +0 -563
- package/dist/templates/next-app/docs/en/i18n.md +0 -287
- package/dist/templates/next-app/docs/en/index.md +0 -165
- package/dist/templates/next-app/docs/en/page.md +0 -457
- package/dist/templates/next-app/docs/en/project-structure.md +0 -176
- package/dist/templates/next-app/docs/en/router.md +0 -427
- package/dist/templates/next-app/docs/en/theme.md +0 -532
- package/dist/templates/next-app/docs/en/validator.md +0 -478
- package/dist/templates/next-app/docs/zh/api.md +0 -387
- package/dist/templates/next-app/docs/zh/component.md +0 -544
- package/dist/templates/next-app/docs/zh/database.md +0 -496
- package/dist/templates/next-app/docs/zh/development-guide.md +0 -727
- package/dist/templates/next-app/docs/zh/env.md +0 -563
- package/dist/templates/next-app/docs/zh/i18n.md +0 -287
- package/dist/templates/next-app/docs/zh/index.md +0 -165
- package/dist/templates/next-app/docs/zh/page.md +0 -457
- package/dist/templates/next-app/docs/zh/project-structure.md +0 -176
- package/dist/templates/next-app/docs/zh/router.md +0 -427
- package/dist/templates/next-app/docs/zh/theme.md +0 -532
- package/dist/templates/next-app/docs/zh/validator.md +0 -476
- package/dist/templates/next-app/eslint.config.mjs +0 -285
- package/dist/templates/next-app/make/generateLocales.ts +0 -32
- package/dist/templates/next-app/migrations/schema/LocalesSchema.ts +0 -15
- package/dist/templates/next-app/migrations/schema/UserSchema.ts +0 -38
- package/dist/templates/next-app/migrations/sql/1694244000000.sql +0 -21
- package/dist/templates/next-app/next.config.ts +0 -25
- package/dist/templates/next-app/package.json +0 -87
- package/dist/templates/next-app/postcss.config.mjs +0 -5
- package/dist/templates/next-app/public/favicon.ico +0 -0
- package/dist/templates/next-app/public/file.svg +0 -1
- package/dist/templates/next-app/public/globe.svg +0 -1
- package/dist/templates/next-app/public/locales/en.json +0 -182
- package/dist/templates/next-app/public/locales/zh.json +0 -182
- package/dist/templates/next-app/public/next.svg +0 -1
- package/dist/templates/next-app/public/vercel.svg +0 -1
- package/dist/templates/next-app/public/window.svg +0 -1
- package/dist/templates/next-app/src/app/[locale]/admin/AdminI18nProvider.tsx +0 -37
- package/dist/templates/next-app/src/app/[locale]/admin/layout.tsx +0 -42
- package/dist/templates/next-app/src/app/[locale]/admin/locales/page.tsx +0 -153
- package/dist/templates/next-app/src/app/[locale]/admin/page.tsx +0 -20
- package/dist/templates/next-app/src/app/[locale]/admin/users/page.tsx +0 -67
- package/dist/templates/next-app/src/app/[locale]/auth/layout.tsx +0 -18
- package/dist/templates/next-app/src/app/[locale]/auth/login/LoginForm.tsx +0 -126
- package/dist/templates/next-app/src/app/[locale]/auth/login/page.tsx +0 -90
- package/dist/templates/next-app/src/app/[locale]/auth/page.tsx +0 -8
- package/dist/templates/next-app/src/app/[locale]/auth/register/RegisterForm.tsx +0 -197
- package/dist/templates/next-app/src/app/[locale]/auth/register/page.tsx +0 -90
- package/dist/templates/next-app/src/app/[locale]/layout.tsx +0 -63
- package/dist/templates/next-app/src/app/[locale]/not-found.tsx +0 -24
- package/dist/templates/next-app/src/app/[locale]/page.tsx +0 -98
- package/dist/templates/next-app/src/app/api/admin/locales/create/route.ts +0 -13
- package/dist/templates/next-app/src/app/api/admin/locales/import/route.ts +0 -13
- package/dist/templates/next-app/src/app/api/admin/locales/route.ts +0 -20
- package/dist/templates/next-app/src/app/api/admin/locales/update/route.ts +0 -13
- package/dist/templates/next-app/src/app/api/admin/users/route.ts +0 -20
- package/dist/templates/next-app/src/app/api/ai/completions/route.ts +0 -32
- package/dist/templates/next-app/src/app/api/auth/callback/route.ts +0 -11
- package/dist/templates/next-app/src/app/api/callback/route.ts +0 -49
- package/dist/templates/next-app/src/app/api/locales/json/route.ts +0 -33
- package/dist/templates/next-app/src/app/api/user/login/route.ts +0 -10
- package/dist/templates/next-app/src/app/api/user/logout/route.ts +0 -8
- package/dist/templates/next-app/src/app/api/user/register/route.ts +0 -11
- package/dist/templates/next-app/src/app/manifest.ts +0 -16
- package/dist/templates/next-app/src/app/robots.txt +0 -2
- package/dist/templates/next-app/src/base/cases/AdminPageManager.ts +0 -28
- package/dist/templates/next-app/src/base/cases/AppConfig.ts +0 -40
- package/dist/templates/next-app/src/base/cases/Datetime.ts +0 -18
- package/dist/templates/next-app/src/base/cases/DialogErrorPlugin.ts +0 -57
- package/dist/templates/next-app/src/base/cases/DialogHandler.ts +0 -116
- package/dist/templates/next-app/src/base/cases/InversifyContainer.ts +0 -45
- package/dist/templates/next-app/src/base/cases/NavigateBridge.ts +0 -32
- package/dist/templates/next-app/src/base/cases/RequestEncryptPlugin.ts +0 -77
- package/dist/templates/next-app/src/base/cases/ResourceState.ts +0 -17
- package/dist/templates/next-app/src/base/cases/RouterService.ts +0 -52
- package/dist/templates/next-app/src/base/cases/StringEncryptor.ts +0 -73
- package/dist/templates/next-app/src/base/cases/TranslateI18nUtil.ts +0 -53
- package/dist/templates/next-app/src/base/cases/ZodColumnBuilder.ts +0 -212
- package/dist/templates/next-app/src/base/port/AdminLayoutInterface.ts +0 -26
- package/dist/templates/next-app/src/base/port/AppApiInterface.ts +0 -36
- package/dist/templates/next-app/src/base/port/AppUserApiInterface.ts +0 -27
- package/dist/templates/next-app/src/base/port/I18nServiceInterface.ts +0 -25
- package/dist/templates/next-app/src/base/port/IOCInterface.ts +0 -33
- package/dist/templates/next-app/src/base/port/RouterInterface.ts +0 -11
- package/dist/templates/next-app/src/base/port/UserServiceInterface.ts +0 -25
- package/dist/templates/next-app/src/base/port/ZodBuilderInterface.ts +0 -8
- package/dist/templates/next-app/src/base/services/AdminPageEvent.ts +0 -26
- package/dist/templates/next-app/src/base/services/AdminPageScheduler.ts +0 -42
- package/dist/templates/next-app/src/base/services/AppApiRequester.ts +0 -67
- package/dist/templates/next-app/src/base/services/AppUserGateway.ts +0 -110
- package/dist/templates/next-app/src/base/services/I18nService.ts +0 -87
- package/dist/templates/next-app/src/base/services/ResourceService.ts +0 -139
- package/dist/templates/next-app/src/base/services/UserService.ts +0 -68
- package/dist/templates/next-app/src/base/services/adminApi/AdminLocalesApi.ts +0 -106
- package/dist/templates/next-app/src/base/services/adminApi/AdminUserApi.ts +0 -87
- package/dist/templates/next-app/src/base/services/appApi/AppApiPlugin.ts +0 -110
- package/dist/templates/next-app/src/base/services/appApi/AppUserApiBootstrap.ts +0 -52
- package/dist/templates/next-app/src/base/types/AppPageRouter.ts +0 -12
- package/dist/templates/next-app/src/base/types/PagesRouter.ts +0 -9
- package/dist/templates/next-app/src/core/bootstraps/BootstrapClient.ts +0 -76
- package/dist/templates/next-app/src/core/bootstraps/BootstrapServer.ts +0 -125
- package/dist/templates/next-app/src/core/bootstraps/BootstrapsRegistry.ts +0 -50
- package/dist/templates/next-app/src/core/bootstraps/IocIdentifierTest.ts +0 -26
- package/dist/templates/next-app/src/core/bootstraps/PrintBootstrap.ts +0 -18
- package/dist/templates/next-app/src/core/clientIoc/ClientIOC.ts +0 -68
- package/dist/templates/next-app/src/core/clientIoc/ClientIOCRegister.ts +0 -100
- package/dist/templates/next-app/src/core/globals.ts +0 -28
- package/dist/templates/next-app/src/core/serverIoc/ServerIOC.ts +0 -80
- package/dist/templates/next-app/src/core/serverIoc/ServerIOCRegister.ts +0 -66
- package/dist/templates/next-app/src/i18n/loadMessages.ts +0 -103
- package/dist/templates/next-app/src/i18n/request.ts +0 -31
- package/dist/templates/next-app/src/i18n/routing.ts +0 -35
- package/dist/templates/next-app/src/lib/supabase/client.ts +0 -8
- package/dist/templates/next-app/src/lib/supabase/conts.ts +0 -2
- package/dist/templates/next-app/src/lib/supabase/proxy.ts +0 -84
- package/dist/templates/next-app/src/lib/supabase/server.ts +0 -38
- package/dist/templates/next-app/src/pages/[locale]/about.tsx +0 -61
- package/dist/templates/next-app/src/pages/_app.tsx +0 -50
- package/dist/templates/next-app/src/pages/_document.tsx +0 -13
- package/dist/templates/next-app/src/proxy.ts +0 -33
- package/dist/templates/next-app/src/server/AppErrorApi.ts +0 -10
- package/dist/templates/next-app/src/server/AppPageRouteParams.ts +0 -110
- package/dist/templates/next-app/src/server/AppSuccessApi.ts +0 -7
- package/dist/templates/next-app/src/server/NextApiServer.ts +0 -61
- package/dist/templates/next-app/src/server/PagesRouteParams.ts +0 -145
- package/dist/templates/next-app/src/server/PasswordEncrypt.ts +0 -18
- package/dist/templates/next-app/src/server/ServerAuth.ts +0 -81
- package/dist/templates/next-app/src/server/SupabaseBridge.ts +0 -262
- package/dist/templates/next-app/src/server/UserCredentialToken.ts +0 -53
- package/dist/templates/next-app/src/server/controllers/AdminLocalesController.ts +0 -86
- package/dist/templates/next-app/src/server/controllers/AdminUserController.ts +0 -42
- package/dist/templates/next-app/src/server/controllers/LocalesController.ts +0 -36
- package/dist/templates/next-app/src/server/controllers/UserController.ts +0 -91
- package/dist/templates/next-app/src/server/port/AIControllerInterface.ts +0 -8
- package/dist/templates/next-app/src/server/port/AdminLocalesControllerInterface.ts +0 -21
- package/dist/templates/next-app/src/server/port/AdminUserControllerInterface.ts +0 -11
- package/dist/templates/next-app/src/server/port/CrentialTokenInterface.ts +0 -5
- package/dist/templates/next-app/src/server/port/DBBridgeInterface.ts +0 -36
- package/dist/templates/next-app/src/server/port/DBTableInterface.ts +0 -12
- package/dist/templates/next-app/src/server/port/LocalesControllerInterface.ts +0 -10
- package/dist/templates/next-app/src/server/port/LocalesRepositoryInterface.ts +0 -43
- package/dist/templates/next-app/src/server/port/PaginationInterface.ts +0 -6
- package/dist/templates/next-app/src/server/port/RouteParamsnHandlerInterface.ts +0 -18
- package/dist/templates/next-app/src/server/port/ServerAuthInterface.ts +0 -15
- package/dist/templates/next-app/src/server/port/ServerInterface.ts +0 -23
- package/dist/templates/next-app/src/server/port/UserRepositoryInterface.ts +0 -15
- package/dist/templates/next-app/src/server/port/UserServiceInterface.ts +0 -14
- package/dist/templates/next-app/src/server/port/ValidatorInterface.ts +0 -23
- package/dist/templates/next-app/src/server/repositorys/LocalesRepository.ts +0 -216
- package/dist/templates/next-app/src/server/repositorys/UserRepository.ts +0 -102
- package/dist/templates/next-app/src/server/services/AIService.ts +0 -45
- package/dist/templates/next-app/src/server/services/AdminAuthPlugin.ts +0 -21
- package/dist/templates/next-app/src/server/services/AdminLocalesService.ts +0 -20
- package/dist/templates/next-app/src/server/services/ApiLocaleService.ts +0 -137
- package/dist/templates/next-app/src/server/services/ApiUserService.ts +0 -29
- package/dist/templates/next-app/src/server/services/UserService.ts +0 -134
- package/dist/templates/next-app/src/server/validators/ExtendedExecutorError.ts +0 -6
- package/dist/templates/next-app/src/server/validators/LocalesValidator.ts +0 -145
- package/dist/templates/next-app/src/server/validators/LoginValidator.ts +0 -82
- package/dist/templates/next-app/src/server/validators/PaginationValidator.ts +0 -70
- package/dist/templates/next-app/src/server/validators/SignupVerifyValidator.ts +0 -68
- package/dist/templates/next-app/src/styles/css/antd-themes/_common/_default.css +0 -280
- package/dist/templates/next-app/src/styles/css/antd-themes/_common/dark.css +0 -233
- package/dist/templates/next-app/src/styles/css/antd-themes/_common/index.css +0 -3
- package/dist/templates/next-app/src/styles/css/antd-themes/_common/pink.css +0 -246
- package/dist/templates/next-app/src/styles/css/antd-themes/index.css +0 -4
- package/dist/templates/next-app/src/styles/css/antd-themes/menu/_default.css +0 -108
- package/dist/templates/next-app/src/styles/css/antd-themes/menu/dark.css +0 -67
- package/dist/templates/next-app/src/styles/css/antd-themes/menu/index.css +0 -3
- package/dist/templates/next-app/src/styles/css/antd-themes/menu/pink.css +0 -67
- package/dist/templates/next-app/src/styles/css/antd-themes/no-context.css +0 -34
- package/dist/templates/next-app/src/styles/css/antd-themes/pagination/_default.css +0 -34
- package/dist/templates/next-app/src/styles/css/antd-themes/pagination/dark.css +0 -31
- package/dist/templates/next-app/src/styles/css/antd-themes/pagination/index.css +0 -3
- package/dist/templates/next-app/src/styles/css/antd-themes/pagination/pink.css +0 -36
- package/dist/templates/next-app/src/styles/css/antd-themes/table/_default.css +0 -44
- package/dist/templates/next-app/src/styles/css/antd-themes/table/dark.css +0 -43
- package/dist/templates/next-app/src/styles/css/antd-themes/table/index.css +0 -3
- package/dist/templates/next-app/src/styles/css/antd-themes/table/pink.css +0 -43
- package/dist/templates/next-app/src/styles/css/index.css +0 -6
- package/dist/templates/next-app/src/styles/css/page.css +0 -20
- package/dist/templates/next-app/src/styles/css/scrollbar.css +0 -34
- package/dist/templates/next-app/src/styles/css/tailwind.css +0 -5
- package/dist/templates/next-app/src/styles/css/themes/_default.css +0 -30
- package/dist/templates/next-app/src/styles/css/themes/dark.css +0 -30
- package/dist/templates/next-app/src/styles/css/themes/index.css +0 -3
- package/dist/templates/next-app/src/styles/css/themes/pink.css +0 -30
- package/dist/templates/next-app/src/styles/css/zIndex.css +0 -9
- package/dist/templates/next-app/src/uikit/components/AdminLayout.tsx +0 -150
- package/dist/templates/next-app/src/uikit/components/BootstrapsProvider.tsx +0 -39
- package/dist/templates/next-app/src/uikit/components/ClientRootProvider.tsx +0 -64
- package/dist/templates/next-app/src/uikit/components/ClientSeo.tsx +0 -36
- package/dist/templates/next-app/src/uikit/components/ClinetRenderProvider.tsx +0 -42
- package/dist/templates/next-app/src/uikit/components/EditableCell.tsx +0 -118
- package/dist/templates/next-app/src/uikit/components/FeatureItem.tsx +0 -13
- package/dist/templates/next-app/src/uikit/components/IOCProvider.tsx +0 -34
- package/dist/templates/next-app/src/uikit/components/LocaleLink.tsx +0 -50
- package/dist/templates/next-app/src/uikit/components/With.tsx +0 -17
- package/dist/templates/next-app/src/uikit/components/localesImportButton/LocalesImportButton.tsx +0 -62
- package/dist/templates/next-app/src/uikit/components/localesImportButton/LocalesImportEvent.ts +0 -28
- package/dist/templates/next-app/src/uikit/components/localesImportButton/import.module.css +0 -6
- package/dist/templates/next-app/src/uikit/components-app/AdminButton.tsx +0 -29
- package/dist/templates/next-app/src/uikit/components-app/AppBridge.tsx +0 -17
- package/dist/templates/next-app/src/uikit/components-app/AppRoutePage.tsx +0 -105
- package/dist/templates/next-app/src/uikit/components-app/AuthButton.tsx +0 -20
- package/dist/templates/next-app/src/uikit/components-app/LanguageSwitcher.tsx +0 -75
- package/dist/templates/next-app/src/uikit/components-app/LogoutButton.tsx +0 -45
- package/dist/templates/next-app/src/uikit/components-app/ThemeSwitcher.tsx +0 -144
- package/dist/templates/next-app/src/uikit/components-pages/LanguageSwitcher.tsx +0 -98
- package/dist/templates/next-app/src/uikit/components-pages/PagesRoutePage.tsx +0 -93
- package/dist/templates/next-app/src/uikit/context/IOCContext.ts +0 -25
- package/dist/templates/next-app/src/uikit/hook/useI18nInterface.ts +0 -22
- package/dist/templates/next-app/src/uikit/hook/useIOC.ts +0 -37
- package/dist/templates/next-app/src/uikit/hook/useStrictEffect.ts +0 -32
- package/dist/templates/next-app/src/uikit/hook/useWarnTranslations.ts +0 -11
- package/dist/templates/next-app/src/uikit/utils/getHashParams.ts +0 -8
- package/dist/templates/next-app/src/uikit/utils/getHashVerifyEmailParams.ts +0 -42
- package/dist/templates/next-app/tailwind.config.ts +0 -8
- package/dist/templates/next-app/tsconfig.json +0 -39
- package/dist/templates/node-lib/__tests__/readJson.test.ts +0 -26
- package/dist/templates/node-lib/bin/test.js +0 -30
- package/dist/templates/node-lib/package.json +0 -66
- package/dist/templates/node-lib/rollup.config.js +0 -79
- package/dist/templates/node-lib/src/index.ts +0 -7
- package/dist/templates/node-lib/src/readJson.ts +0 -12
- package/dist/templates/node-lib/tsconfig.json +0 -23
- package/dist/templates/pack-app/README.md +0 -108
- package/dist/templates/pack-app/eslint.config.js +0 -97
- package/dist/templates/pack-app/fe-config.json +0 -35
- package/dist/templates/pack-app/package.json +0 -86
- package/dist/templates/pack-app/pnpm-workspace.yaml +0 -2
- package/dist/templates/pack-app/tsconfig.json +0 -9
- package/dist/templates/pack-app/tsconfig.test.json +0 -10
- package/dist/templates/pack-app/vite.config.ts +0 -14
- package/dist/templates/react-app/.env.template +0 -22
- package/dist/templates/react-app/.prettierignore +0 -17
- package/dist/templates/react-app/README.en.md +0 -274
- package/dist/templates/react-app/README.md +0 -273
- package/dist/templates/react-app/__tests__/__mocks__/BootstrapTest.ts +0 -16
- package/dist/templates/react-app/__tests__/__mocks__/MockAppConfig.ts +0 -48
- package/dist/templates/react-app/__tests__/__mocks__/MockDialogHandler.ts +0 -17
- package/dist/templates/react-app/__tests__/__mocks__/MockLogger.ts +0 -14
- package/dist/templates/react-app/__tests__/__mocks__/components/TestApp.tsx +0 -38
- package/dist/templates/react-app/__tests__/__mocks__/components/TestBootstrapsProvider.tsx +0 -53
- package/dist/templates/react-app/__tests__/__mocks__/components/TestRouter.tsx +0 -46
- package/dist/templates/react-app/__tests__/__mocks__/components/index.ts +0 -12
- package/dist/templates/react-app/__tests__/__mocks__/createMockGlobals.ts +0 -96
- package/dist/templates/react-app/__tests__/__mocks__/i18nextHttpBackend.ts +0 -110
- package/dist/templates/react-app/__tests__/__mocks__/testIOC/TestIOC.ts +0 -55
- package/dist/templates/react-app/__tests__/__mocks__/testIOC/TestIOCRegister.ts +0 -74
- package/dist/templates/react-app/__tests__/setup/index.ts +0 -1
- package/dist/templates/react-app/__tests__/setup/setupGlobal.ts +0 -64
- package/dist/templates/react-app/__tests__/src/App.structure.test.tsx +0 -115
- package/dist/templates/react-app/__tests__/src/base/cases/AppConfig.test.ts +0 -288
- package/dist/templates/react-app/__tests__/src/base/cases/DialogHandler.test.ts +0 -226
- package/dist/templates/react-app/__tests__/src/base/cases/I18nKeyErrorPlugin.test.ts +0 -178
- package/dist/templates/react-app/__tests__/src/base/cases/InversifyContainer.test.ts +0 -181
- package/dist/templates/react-app/__tests__/src/base/cases/PublicAssetsPath.test.ts +0 -61
- package/dist/templates/react-app/__tests__/src/base/cases/RequestLogger.test.ts +0 -177
- package/dist/templates/react-app/__tests__/src/base/cases/RequestStatusCatcher.test.ts +0 -191
- package/dist/templates/react-app/__tests__/src/base/cases/RouterLoader.test.ts +0 -245
- package/dist/templates/react-app/__tests__/src/base/services/I18nService.test.ts +0 -240
- package/dist/templates/react-app/__tests__/src/core/IOC.test.ts +0 -242
- package/dist/templates/react-app/__tests__/src/core/bootstraps/BootstrapClient.test.ts +0 -135
- package/dist/templates/react-app/__tests__/src/core/bootstraps/BootstrapsApp.test.ts +0 -74
- package/dist/templates/react-app/__tests__/src/main.test.tsx +0 -46
- package/dist/templates/react-app/__tests__/src/uikit/components/BaseHeader.test.tsx +0 -97
- package/dist/templates/react-app/__tests__/src/uikit/components/chatMessage/ChatRoot.test.tsx +0 -274
- package/dist/templates/react-app/config/IOCIdentifier.ts +0 -91
- package/dist/templates/react-app/config/Identifier/common/common.error.ts +0 -34
- package/dist/templates/react-app/config/Identifier/common/common.ts +0 -62
- package/dist/templates/react-app/config/Identifier/common/index.ts +0 -2
- package/dist/templates/react-app/config/Identifier/components/component.chatMessage.ts +0 -56
- package/dist/templates/react-app/config/Identifier/components/component.messageBaseList.ts +0 -103
- package/dist/templates/react-app/config/Identifier/index.ts +0 -2
- package/dist/templates/react-app/config/Identifier/pages/index.ts +0 -9
- package/dist/templates/react-app/config/Identifier/pages/page.about.ts +0 -189
- package/dist/templates/react-app/config/Identifier/pages/page.executor.ts +0 -275
- package/dist/templates/react-app/config/Identifier/pages/page.home.ts +0 -71
- package/dist/templates/react-app/config/Identifier/pages/page.identifiter.ts +0 -102
- package/dist/templates/react-app/config/Identifier/pages/page.jsonStorage.ts +0 -77
- package/dist/templates/react-app/config/Identifier/pages/page.login.ts +0 -162
- package/dist/templates/react-app/config/Identifier/pages/page.message.ts +0 -20
- package/dist/templates/react-app/config/Identifier/pages/page.register.ts +0 -159
- package/dist/templates/react-app/config/Identifier/pages/page.request.ts +0 -169
- package/dist/templates/react-app/config/app.router.ts +0 -338
- package/dist/templates/react-app/config/common.ts +0 -85
- package/dist/templates/react-app/config/feapi.mock.json +0 -34
- package/dist/templates/react-app/config/i18n/PageI18nInterface.ts +0 -51
- package/dist/templates/react-app/config/i18n/aboutI18n.ts +0 -42
- package/dist/templates/react-app/config/i18n/chatMessageI18n.ts +0 -17
- package/dist/templates/react-app/config/i18n/executorI18n.ts +0 -51
- package/dist/templates/react-app/config/i18n/homeI18n.ts +0 -24
- package/dist/templates/react-app/config/i18n/i18nConfig.ts +0 -30
- package/dist/templates/react-app/config/i18n/identifiter18n.ts +0 -30
- package/dist/templates/react-app/config/i18n/jsonStorage18n.ts +0 -27
- package/dist/templates/react-app/config/i18n/login18n.ts +0 -42
- package/dist/templates/react-app/config/i18n/messageBaseListI18n.ts +0 -22
- package/dist/templates/react-app/config/i18n/messageI18n.ts +0 -14
- package/dist/templates/react-app/config/i18n/notFoundI18n.ts +0 -34
- package/dist/templates/react-app/config/i18n/register18n.ts +0 -40
- package/dist/templates/react-app/config/i18n/request18n.ts +0 -41
- package/dist/templates/react-app/config/theme.ts +0 -21
- package/dist/templates/react-app/docs/en/bootstrap.md +0 -1891
- package/dist/templates/react-app/docs/en/components/chat-message-component.md +0 -320
- package/dist/templates/react-app/docs/en/components/chat-message-refactor.md +0 -283
- package/dist/templates/react-app/docs/en/components/message-base-list-component.md +0 -171
- package/dist/templates/react-app/docs/en/development-guide.md +0 -1199
- package/dist/templates/react-app/docs/en/env.md +0 -1336
- package/dist/templates/react-app/docs/en/global.md +0 -509
- package/dist/templates/react-app/docs/en/i18n.md +0 -979
- package/dist/templates/react-app/docs/en/index.md +0 -802
- package/dist/templates/react-app/docs/en/ioc.md +0 -1365
- package/dist/templates/react-app/docs/en/playwright/e2e-tests.md +0 -321
- package/dist/templates/react-app/docs/en/playwright/index.md +0 -19
- package/dist/templates/react-app/docs/en/playwright/installation-summary.md +0 -332
- package/dist/templates/react-app/docs/en/playwright/overview.md +0 -222
- package/dist/templates/react-app/docs/en/playwright/quickstart.md +0 -325
- package/dist/templates/react-app/docs/en/playwright/reorganization-notes.md +0 -340
- package/dist/templates/react-app/docs/en/playwright/setup-complete.md +0 -290
- package/dist/templates/react-app/docs/en/playwright/testing-guide.md +0 -565
- package/dist/templates/react-app/docs/en/request.md +0 -423
- package/dist/templates/react-app/docs/en/router.md +0 -404
- package/dist/templates/react-app/docs/en/store.md +0 -1331
- package/dist/templates/react-app/docs/en/test-guide.md +0 -976
- package/dist/templates/react-app/docs/en/theme.md +0 -424
- package/dist/templates/react-app/docs/en/typescript-guide.md +0 -473
- package/dist/templates/react-app/docs/en/why-no-globals.md +0 -797
- package/dist/templates/react-app/docs/zh/bootstrap.md +0 -1891
- package/dist/templates/react-app/docs/zh/components/chat-message-component.md +0 -320
- package/dist/templates/react-app/docs/zh/components/chat-message-refactor.md +0 -283
- package/dist/templates/react-app/docs/zh/components/message-base-list-component.md +0 -171
- package/dist/templates/react-app/docs/zh/development-guide.md +0 -1199
- package/dist/templates/react-app/docs/zh/env.md +0 -1336
- package/dist/templates/react-app/docs/zh/global.md +0 -511
- package/dist/templates/react-app/docs/zh/i18n.md +0 -979
- package/dist/templates/react-app/docs/zh/index.md +0 -786
- package/dist/templates/react-app/docs/zh/ioc.md +0 -1364
- package/dist/templates/react-app/docs/zh/playwright/e2e-tests.md +0 -321
- package/dist/templates/react-app/docs/zh/playwright/index.md +0 -19
- package/dist/templates/react-app/docs/zh/playwright/installation-summary.md +0 -332
- package/dist/templates/react-app/docs/zh/playwright/overview.md +0 -222
- package/dist/templates/react-app/docs/zh/playwright/quickstart.md +0 -325
- package/dist/templates/react-app/docs/zh/playwright/reorganization-notes.md +0 -340
- package/dist/templates/react-app/docs/zh/playwright/setup-complete.md +0 -290
- package/dist/templates/react-app/docs/zh/playwright/testing-guide.md +0 -565
- package/dist/templates/react-app/docs/zh/request.md +0 -427
- package/dist/templates/react-app/docs/zh/router.md +0 -408
- package/dist/templates/react-app/docs/zh/store.md +0 -1329
- package/dist/templates/react-app/docs/zh/test-guide.md +0 -976
- package/dist/templates/react-app/docs/zh/theme.md +0 -424
- package/dist/templates/react-app/docs/zh/typescript-guide.md +0 -473
- package/dist/templates/react-app/docs/zh/why-no-globals.md +0 -797
- package/dist/templates/react-app/e2e/App.spec.ts +0 -319
- package/dist/templates/react-app/e2e/fixtures/base.fixture.ts +0 -40
- package/dist/templates/react-app/e2e/main.spec.ts +0 -20
- package/dist/templates/react-app/e2e/utils/test-helpers.ts +0 -19
- package/dist/templates/react-app/eslint.config.mjs +0 -325
- package/dist/templates/react-app/index.html +0 -13
- package/dist/templates/react-app/makes/generateTs2LocalesOptions.ts +0 -26
- package/dist/templates/react-app/package.json +0 -125
- package/dist/templates/react-app/playwright.config.ts +0 -79
- package/dist/templates/react-app/postcss.config.js +0 -5
- package/dist/templates/react-app/public/locales/en/common.json +0 -235
- package/dist/templates/react-app/public/locales/zh/common.json +0 -235
- package/dist/templates/react-app/public/logo.svg +0 -1
- package/dist/templates/react-app/public/router-root/logo.svg +0 -1
- package/dist/templates/react-app/src/App.tsx +0 -35
- package/dist/templates/react-app/src/assets/react.svg +0 -1
- package/dist/templates/react-app/src/base/apis/AiApi.ts +0 -68
- package/dist/templates/react-app/src/base/apis/feApi/FeApi.ts +0 -29
- package/dist/templates/react-app/src/base/apis/feApi/FeApiAdapter.ts +0 -14
- package/dist/templates/react-app/src/base/apis/feApi/FeApiBootstarp.ts +0 -86
- package/dist/templates/react-app/src/base/apis/feApi/FeApiType.ts +0 -21
- package/dist/templates/react-app/src/base/apis/userApi/UserApi.ts +0 -142
- package/dist/templates/react-app/src/base/apis/userApi/UserApiAdapter.ts +0 -14
- package/dist/templates/react-app/src/base/apis/userApi/UserApiBootstarp.ts +0 -86
- package/dist/templates/react-app/src/base/apis/userApi/UserApiType.ts +0 -70
- package/dist/templates/react-app/src/base/cases/AppConfig.ts +0 -123
- package/dist/templates/react-app/src/base/cases/DialogHandler.ts +0 -115
- package/dist/templates/react-app/src/base/cases/I18nKeyErrorPlugin.ts +0 -64
- package/dist/templates/react-app/src/base/cases/InversifyContainer.ts +0 -45
- package/dist/templates/react-app/src/base/cases/PublicAssetsPath.ts +0 -23
- package/dist/templates/react-app/src/base/cases/RequestLanguages.ts +0 -55
- package/dist/templates/react-app/src/base/cases/RequestLogger.ts +0 -80
- package/dist/templates/react-app/src/base/cases/RequestStatusCatcher.ts +0 -40
- package/dist/templates/react-app/src/base/cases/ResourceState.ts +0 -23
- package/dist/templates/react-app/src/base/cases/RouterLoader.ts +0 -173
- package/dist/templates/react-app/src/base/cases/TranslateI18nInterface.ts +0 -26
- package/dist/templates/react-app/src/base/port/ExecutorPageBridgeInterface.ts +0 -23
- package/dist/templates/react-app/src/base/port/I18nServiceInterface.ts +0 -10
- package/dist/templates/react-app/src/base/port/IOCInterface.ts +0 -38
- package/dist/templates/react-app/src/base/port/JSONStoragePageBridgeInterface.ts +0 -21
- package/dist/templates/react-app/src/base/port/RequestPageBridgeInterface.ts +0 -23
- package/dist/templates/react-app/src/base/port/RequestStatusInterface.ts +0 -5
- package/dist/templates/react-app/src/base/port/RouteServiceInterface.ts +0 -29
- package/dist/templates/react-app/src/base/port/UserServiceInterface.ts +0 -20
- package/dist/templates/react-app/src/base/services/BaseLayoutService.ts +0 -61
- package/dist/templates/react-app/src/base/services/I18nService.ts +0 -146
- package/dist/templates/react-app/src/base/services/IdentifierService.ts +0 -162
- package/dist/templates/react-app/src/base/services/RouteService.ts +0 -115
- package/dist/templates/react-app/src/base/services/UserBootstrap.ts +0 -45
- package/dist/templates/react-app/src/base/services/UserService.ts +0 -88
- package/dist/templates/react-app/src/base/types/Page.ts +0 -47
- package/dist/templates/react-app/src/base/types/deprecated-antd.d.ts +0 -60
- package/dist/templates/react-app/src/base/types/global.d.ts +0 -8
- package/dist/templates/react-app/src/core/IOC.ts +0 -28
- package/dist/templates/react-app/src/core/bootstraps/BootstrapClient.ts +0 -108
- package/dist/templates/react-app/src/core/bootstraps/BootstrapsRegistry.ts +0 -54
- package/dist/templates/react-app/src/core/bootstraps/IocIdentifierTest.ts +0 -26
- package/dist/templates/react-app/src/core/bootstraps/PrintBootstrap.ts +0 -14
- package/dist/templates/react-app/src/core/bootstraps/SaveAppInfo.ts +0 -28
- package/dist/templates/react-app/src/core/clientIoc/ClientIOC.ts +0 -47
- package/dist/templates/react-app/src/core/clientIoc/ClientIOCRegister.ts +0 -142
- package/dist/templates/react-app/src/core/globals.ts +0 -47
- package/dist/templates/react-app/src/main.tsx +0 -19
- package/dist/templates/react-app/src/pages/404.tsx +0 -19
- package/dist/templates/react-app/src/pages/500.tsx +0 -18
- package/dist/templates/react-app/src/pages/NoRouteFound.tsx +0 -5
- package/dist/templates/react-app/src/pages/auth/Layout.tsx +0 -27
- package/dist/templates/react-app/src/pages/auth/LoginPage.tsx +0 -166
- package/dist/templates/react-app/src/pages/auth/RegisterPage.tsx +0 -226
- package/dist/templates/react-app/src/pages/base/AboutPage.tsx +0 -123
- package/dist/templates/react-app/src/pages/base/ExecutorPage.tsx +0 -467
- package/dist/templates/react-app/src/pages/base/HomePage.tsx +0 -81
- package/dist/templates/react-app/src/pages/base/IdentifierPage.tsx +0 -117
- package/dist/templates/react-app/src/pages/base/JSONStoragePage.tsx +0 -132
- package/dist/templates/react-app/src/pages/base/Layout.tsx +0 -20
- package/dist/templates/react-app/src/pages/base/MessagePage.tsx +0 -71
- package/dist/templates/react-app/src/pages/base/RedirectPathname.tsx +0 -18
- package/dist/templates/react-app/src/pages/base/RequestPage.tsx +0 -193
- package/dist/templates/react-app/src/styles/css/antd-themes/_common/_default.css +0 -280
- package/dist/templates/react-app/src/styles/css/antd-themes/_common/dark.css +0 -233
- package/dist/templates/react-app/src/styles/css/antd-themes/_common/index.css +0 -3
- package/dist/templates/react-app/src/styles/css/antd-themes/_common/pink.css +0 -246
- package/dist/templates/react-app/src/styles/css/antd-themes/index.css +0 -4
- package/dist/templates/react-app/src/styles/css/antd-themes/menu/_default.css +0 -108
- package/dist/templates/react-app/src/styles/css/antd-themes/menu/dark.css +0 -67
- package/dist/templates/react-app/src/styles/css/antd-themes/menu/index.css +0 -3
- package/dist/templates/react-app/src/styles/css/antd-themes/menu/pink.css +0 -67
- package/dist/templates/react-app/src/styles/css/antd-themes/no-context.css +0 -34
- package/dist/templates/react-app/src/styles/css/antd-themes/pagination/_default.css +0 -34
- package/dist/templates/react-app/src/styles/css/antd-themes/pagination/dark.css +0 -31
- package/dist/templates/react-app/src/styles/css/antd-themes/pagination/index.css +0 -3
- package/dist/templates/react-app/src/styles/css/antd-themes/pagination/pink.css +0 -36
- package/dist/templates/react-app/src/styles/css/antd-themes/table/_default.css +0 -44
- package/dist/templates/react-app/src/styles/css/antd-themes/table/dark.css +0 -43
- package/dist/templates/react-app/src/styles/css/antd-themes/table/index.css +0 -3
- package/dist/templates/react-app/src/styles/css/antd-themes/table/pink.css +0 -43
- package/dist/templates/react-app/src/styles/css/index.css +0 -6
- package/dist/templates/react-app/src/styles/css/page.css +0 -20
- package/dist/templates/react-app/src/styles/css/scrollbar.css +0 -34
- package/dist/templates/react-app/src/styles/css/tailwind.css +0 -5
- package/dist/templates/react-app/src/styles/css/themes/_default.css +0 -30
- package/dist/templates/react-app/src/styles/css/themes/dark.css +0 -30
- package/dist/templates/react-app/src/styles/css/themes/index.css +0 -3
- package/dist/templates/react-app/src/styles/css/themes/pink.css +0 -30
- package/dist/templates/react-app/src/styles/css/zIndex.css +0 -9
- package/dist/templates/react-app/src/uikit/bridges/ExecutorPageBridge.ts +0 -72
- package/dist/templates/react-app/src/uikit/bridges/JSONStoragePageBridge.ts +0 -41
- package/dist/templates/react-app/src/uikit/bridges/NavigateBridge.ts +0 -22
- package/dist/templates/react-app/src/uikit/bridges/RequestPageBridge.ts +0 -136
- package/dist/templates/react-app/src/uikit/components/AppRouterProvider.tsx +0 -35
- package/dist/templates/react-app/src/uikit/components/BaseHeader.tsx +0 -51
- package/dist/templates/react-app/src/uikit/components/BaseLayoutProvider.tsx +0 -44
- package/dist/templates/react-app/src/uikit/components/BaseRouteProvider.tsx +0 -21
- package/dist/templates/react-app/src/uikit/components/BaseRouteSeo.tsx +0 -18
- package/dist/templates/react-app/src/uikit/components/BootstrapsProvider.tsx +0 -11
- package/dist/templates/react-app/src/uikit/components/ClientSeo.tsx +0 -62
- package/dist/templates/react-app/src/uikit/components/ComboProvider.tsx +0 -38
- package/dist/templates/react-app/src/uikit/components/LanguageSwitcher.tsx +0 -78
- package/dist/templates/react-app/src/uikit/components/Loading.tsx +0 -49
- package/dist/templates/react-app/src/uikit/components/LocaleLink.tsx +0 -43
- package/dist/templates/react-app/src/uikit/components/LogoutButton.tsx +0 -58
- package/dist/templates/react-app/src/uikit/components/MessageBaseList.tsx +0 -258
- package/dist/templates/react-app/src/uikit/components/RouterRenderComponent.tsx +0 -19
- package/dist/templates/react-app/src/uikit/components/ThemeSwitcher.tsx +0 -137
- package/dist/templates/react-app/src/uikit/components/With.tsx +0 -17
- package/dist/templates/react-app/src/uikit/components/chatMessage/ChatMessageBridge.ts +0 -205
- package/dist/templates/react-app/src/uikit/components/chatMessage/ChatRoot.tsx +0 -21
- package/dist/templates/react-app/src/uikit/components/chatMessage/FocusBar.tsx +0 -108
- package/dist/templates/react-app/src/uikit/components/chatMessage/MessageApi.ts +0 -282
- package/dist/templates/react-app/src/uikit/components/chatMessage/MessageItem.tsx +0 -102
- package/dist/templates/react-app/src/uikit/components/chatMessage/MessagesList.tsx +0 -86
- package/dist/templates/react-app/src/uikit/contexts/BaseRouteContext.ts +0 -42
- package/dist/templates/react-app/src/uikit/contexts/IOCContext.ts +0 -13
- package/dist/templates/react-app/src/uikit/hooks/useAppTranslation.ts +0 -26
- package/dist/templates/react-app/src/uikit/hooks/useI18nInterface.ts +0 -25
- package/dist/templates/react-app/src/uikit/hooks/useIOC.ts +0 -35
- package/dist/templates/react-app/src/uikit/hooks/useNavigateBridge.ts +0 -21
- package/dist/templates/react-app/src/uikit/hooks/useRouterI18nGuard.ts +0 -25
- package/dist/templates/react-app/src/uikit/hooks/useStrictEffect.ts +0 -31
- package/dist/templates/react-app/src/vite-env.d.ts +0 -1
- package/dist/templates/react-app/tailwind.config.js +0 -4
- package/dist/templates/react-app/tsconfig.app.json +0 -36
- package/dist/templates/react-app/tsconfig.e2e.json +0 -24
- package/dist/templates/react-app/tsconfig.json +0 -22
- package/dist/templates/react-app/tsconfig.node.json +0 -27
- package/dist/templates/react-app/tsconfig.test.json +0 -18
- package/dist/templates/react-app/vite.config.ts +0 -144
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# EditorConfig helps developers define and maintain consistent
|
|
2
|
-
# coding styles between different editors and IDEs
|
|
3
|
-
# editorconfig.org
|
|
4
|
-
|
|
5
|
-
root = true
|
|
6
|
-
|
|
7
|
-
[*]
|
|
8
|
-
|
|
9
|
-
# We recommend you to keep these unchanged
|
|
10
|
-
end_of_line = lf
|
|
11
|
-
charset = utf-8
|
|
12
|
-
trim_trailing_whitespace = true
|
|
13
|
-
insert_final_newline = true
|
|
14
|
-
|
|
15
|
-
# Change these settings to your own preference
|
|
16
|
-
indent_style = space
|
|
17
|
-
indent_size = 2
|
|
18
|
-
|
|
19
|
-
[*.{ts,tsx,js,jsx,json,css,scss,yml,yaml,html,vue,md}]
|
|
20
|
-
indent_size = 2
|
|
21
|
-
|
|
22
|
-
[*.md]
|
|
23
|
-
trim_trailing_whitespace = false
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
name: General check
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches:
|
|
6
|
-
- master
|
|
7
|
-
types: [opened, synchronize, reopened]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
check-code:
|
|
11
|
-
# if not CI-Release label, then run check
|
|
12
|
-
if: |
|
|
13
|
-
!contains(github.event.pull_request.labels.*.name, 'CI-Release')
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
|
|
16
|
-
steps:
|
|
17
|
-
# - name: Print GitHub Event Information
|
|
18
|
-
# run: echo "${{ toJson(github.event.pull_request) }}" > event.json
|
|
19
|
-
- name: Checkout repository
|
|
20
|
-
uses: actions/checkout@v3
|
|
21
|
-
with:
|
|
22
|
-
fetch-depth: 0
|
|
23
|
-
|
|
24
|
-
- name: Install Node.js
|
|
25
|
-
uses: actions/setup-node@v4
|
|
26
|
-
with:
|
|
27
|
-
node-version: '20.19.0'
|
|
28
|
-
- run: npm install -g pnpm
|
|
29
|
-
- run: pnpm install --frozen-lockfile
|
|
30
|
-
- run: pnpm lint
|
|
31
|
-
- run: pnpm test
|
|
32
|
-
# - run: pnpm nx:build --base=origin/${{ github.base_ref }} --head=HEAD
|
|
33
|
-
- run: pnpm build
|
|
34
|
-
|
|
35
|
-
- name: Check packages
|
|
36
|
-
run: |
|
|
37
|
-
git fetch origin ${{ github.base_ref }}
|
|
38
|
-
pnpm run check-packages -V -r ${{ github.repository }} -b ${{ github.base_ref }} -n ${{ github.event.pull_request.number }}
|
|
39
|
-
env:
|
|
40
|
-
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
|
41
|
-
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
name: Release sub packages
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
pull_request:
|
|
6
|
-
branches:
|
|
7
|
-
- master
|
|
8
|
-
types:
|
|
9
|
-
- closed
|
|
10
|
-
paths:
|
|
11
|
-
- packages/**
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
release-pull-request:
|
|
15
|
-
if: |
|
|
16
|
-
github.event.pull_request.merged == true &&
|
|
17
|
-
!contains(github.event.pull_request.labels.*.name, 'CI-Release')
|
|
18
|
-
runs-on: ubuntu-latest
|
|
19
|
-
|
|
20
|
-
steps:
|
|
21
|
-
- name: Checkout repository
|
|
22
|
-
uses: actions/checkout@v3
|
|
23
|
-
with:
|
|
24
|
-
fetch-depth: 0
|
|
25
|
-
# ref: ${{ github.head_ref || github.ref_name }}
|
|
26
|
-
|
|
27
|
-
- name: Config Git
|
|
28
|
-
run: |
|
|
29
|
-
git config --global user.name "github-actions[bot]"
|
|
30
|
-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
31
|
-
- name: Install Node.js
|
|
32
|
-
uses: actions/setup-node@v2
|
|
33
|
-
with:
|
|
34
|
-
node-version: '20.19.0'
|
|
35
|
-
|
|
36
|
-
- run: npm install -g pnpm
|
|
37
|
-
- run: pnpm install --frozen-lockfile
|
|
38
|
-
- run: pnpm lint
|
|
39
|
-
- run: pnpm test
|
|
40
|
-
- run: pnpm build
|
|
41
|
-
|
|
42
|
-
- name: Release Pull Request
|
|
43
|
-
run: node packages/fe-release/dist/cli.js -V -P --githubPR.push-change-labels --workspaces.change-labels=${{join(github.event.pull_request.labels.*.name,',')}} --changelog.ignore-non-updated-packages
|
|
44
|
-
env:
|
|
45
|
-
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN}}
|
|
46
|
-
|
|
47
|
-
release:
|
|
48
|
-
if: |
|
|
49
|
-
github.event.pull_request.merged == true &&
|
|
50
|
-
contains(github.event.pull_request.labels.*.name, 'CI-Release')
|
|
51
|
-
|
|
52
|
-
runs-on: ubuntu-latest
|
|
53
|
-
|
|
54
|
-
steps:
|
|
55
|
-
- name: Checkout repository
|
|
56
|
-
uses: actions/checkout@v3
|
|
57
|
-
with:
|
|
58
|
-
fetch-depth: 0
|
|
59
|
-
# ref: ${{ github.head_ref || github.ref_name }}
|
|
60
|
-
|
|
61
|
-
- name: Config Git
|
|
62
|
-
run: |
|
|
63
|
-
git config --global user.name "github-actions[bot]"
|
|
64
|
-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
65
|
-
|
|
66
|
-
- name: Install Node.js
|
|
67
|
-
uses: actions/setup-node@v2
|
|
68
|
-
with:
|
|
69
|
-
node-version: '20.19.0'
|
|
70
|
-
|
|
71
|
-
- run: npm install -g pnpm
|
|
72
|
-
- run: pnpm install --frozen-lockfile
|
|
73
|
-
- run: pnpm lint
|
|
74
|
-
- run: pnpm test
|
|
75
|
-
- run: pnpm build
|
|
76
|
-
|
|
77
|
-
- name: Create tag and publish
|
|
78
|
-
run: node packages/fe-release/dist/cli.js -V --changelog.skip-changeset --workspaces.change-labels=${{join(github.event.pull_request.labels.*.name,',')}}
|
|
79
|
-
env:
|
|
80
|
-
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN}}
|
|
81
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN}}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
2
|
-
|
|
3
|
-
# dependencies
|
|
4
|
-
node_modules
|
|
5
|
-
/.pnp
|
|
6
|
-
.pnp.js
|
|
7
|
-
|
|
8
|
-
# testing
|
|
9
|
-
/coverage
|
|
10
|
-
|
|
11
|
-
# next.js
|
|
12
|
-
/.next/
|
|
13
|
-
/out/
|
|
14
|
-
|
|
15
|
-
# production
|
|
16
|
-
/build
|
|
17
|
-
|
|
18
|
-
# misc
|
|
19
|
-
.DS_Store
|
|
20
|
-
*.pem
|
|
21
|
-
|
|
22
|
-
# debug
|
|
23
|
-
npm-debug.log*
|
|
24
|
-
yarn-debug.log*
|
|
25
|
-
yarn-error.log*
|
|
26
|
-
.pnpm-debug.log*
|
|
27
|
-
|
|
28
|
-
# local env files
|
|
29
|
-
.env*.*
|
|
30
|
-
!.env.template
|
|
31
|
-
|
|
32
|
-
# vercel
|
|
33
|
-
.vercel
|
|
34
|
-
|
|
35
|
-
# typescript
|
|
36
|
-
*.tsbuildinfo
|
|
37
|
-
next-env.d.ts
|
|
38
|
-
|
|
39
|
-
.husky
|
|
40
|
-
!packages/create-app/configs/_common/.husky
|
|
41
|
-
public/robots.txt
|
|
42
|
-
public/sitemap*.xml
|
|
43
|
-
dist
|
|
44
|
-
.eslintcache
|
|
45
|
-
.npmrc
|
|
46
|
-
.secrets
|
|
47
|
-
|
|
48
|
-
# local output dir
|
|
49
|
-
*.output/
|
|
50
|
-
|
|
51
|
-
# lock file
|
|
52
|
-
package-lock.json
|
|
53
|
-
yarn.lock
|
|
54
|
-
|
|
55
|
-
rollup.config-*.*js
|
|
56
|
-
|
|
57
|
-
.nx/cache
|
|
58
|
-
.nx/workspace-data
|
|
59
|
-
|
|
60
|
-
test-results
|
|
61
|
-
playwright-report
|
|
62
|
-
blob-report
|
|
63
|
-
playwright/.cache
|
|
64
|
-
playwright/.auth
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"react-component": {
|
|
3
|
-
"prefix": "react-component",
|
|
4
|
-
"scope": "typescriptreact",
|
|
5
|
-
"body": [
|
|
6
|
-
"import clsx from 'clsx';",
|
|
7
|
-
"",
|
|
8
|
-
"export type $1Props = {",
|
|
9
|
-
" $2",
|
|
10
|
-
" className?: string;",
|
|
11
|
-
"}",
|
|
12
|
-
"",
|
|
13
|
-
"export function $1({ $2, className }: $1Props) {",
|
|
14
|
-
" return <div data-testid=\"$1\" className={clsx('$3', className)}>$3</div>;",
|
|
15
|
-
"}"
|
|
16
|
-
],
|
|
17
|
-
"description": "创建一个 React 组件"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"eslint.enable": true,
|
|
3
|
-
"eslint.format.enable": false,
|
|
4
|
-
"files.eol": "\n",
|
|
5
|
-
"editor.tabSize": 2,
|
|
6
|
-
"jest.runMode": "on-demand",
|
|
7
|
-
"tailwindCSS.rootFontSize": 10,
|
|
8
|
-
"editor.snippetSuggestions": "top",
|
|
9
|
-
"vitest.autoRun": false,
|
|
10
|
-
"workbench.view.alwaysShowHeaderActions": true,
|
|
11
|
-
"playwright.reuseBrowser": true,
|
|
12
|
-
"playwright.showTrace": true,
|
|
13
|
-
"playwright.env": {
|
|
14
|
-
"PLAYWRIGHT_BASE_URL": "http://localhost:3200"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "[TPL:projectName]",
|
|
3
|
-
"description": "[TPL:projectName] description",
|
|
4
|
-
"version": "0.0.0",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"private": true,
|
|
7
|
-
"homepage": "",
|
|
8
|
-
"author": "",
|
|
9
|
-
"license": "ISC",
|
|
10
|
-
"main": "./dist/es/index.js",
|
|
11
|
-
"module": "./dist/es/index.js",
|
|
12
|
-
"types": "./dist/es/index.d.ts",
|
|
13
|
-
"exports": {
|
|
14
|
-
".": {
|
|
15
|
-
"types": "./dist/es/index.d.ts",
|
|
16
|
-
"import": "./dist/es/index.js",
|
|
17
|
-
"require": "./dist/cjs/index.js"
|
|
18
|
-
},
|
|
19
|
-
"./cjs/*": "./dist/cjs/*",
|
|
20
|
-
"./es/*": "./dist/es/*",
|
|
21
|
-
"./package.json": "./package.json"
|
|
22
|
-
},
|
|
23
|
-
"repository": {
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "",
|
|
26
|
-
"directory": ""
|
|
27
|
-
},
|
|
28
|
-
"files": [
|
|
29
|
-
"bin",
|
|
30
|
-
"dist",
|
|
31
|
-
"package.json",
|
|
32
|
-
"README.md"
|
|
33
|
-
],
|
|
34
|
-
"keywords": [
|
|
35
|
-
"[TPL:projectName]"
|
|
36
|
-
],
|
|
37
|
-
"publishConfig": {
|
|
38
|
-
"access": "public"
|
|
39
|
-
},
|
|
40
|
-
"bin": {},
|
|
41
|
-
"scripts": {
|
|
42
|
-
"build": "pnpm build",
|
|
43
|
-
"test": "vitest run",
|
|
44
|
-
"prettier": "prettier --ignore-path .prettierignore **/*.{js,ts,json,cjs,mjs} --write",
|
|
45
|
-
"lint": "eslint . --fix",
|
|
46
|
-
"clean": "fe-clean",
|
|
47
|
-
"check-packages": "fe-check-packages",
|
|
48
|
-
"commit": "fe-commit",
|
|
49
|
-
"clean-branch": "fe-clean-branch",
|
|
50
|
-
"release:[TPL:projectName]": "release-it"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@eslint/js": "^9.11.1",
|
|
54
|
-
"@qlover/env-loader": "latest",
|
|
55
|
-
"@qlover/fe-standard": "latest",
|
|
56
|
-
"@qlover/fe-scripts": "latest",
|
|
57
|
-
"@qlover/scripts-context": "latest",
|
|
58
|
-
"@commitlint/cli": "^19.7.1",
|
|
59
|
-
"@commitlint/config-conventional": "^19.7.1",
|
|
60
|
-
"eslint": "^9.15.0",
|
|
61
|
-
"eslint-plugin-prettier": "^5.2.3",
|
|
62
|
-
"eslint-plugin-react": "^7.37.4",
|
|
63
|
-
"eslint-plugin-react-hooks": "^5.0.0",
|
|
64
|
-
"eslint-plugin-react-refresh": "^0.4.14",
|
|
65
|
-
"eslint-plugin-vitest": "^0.5.4",
|
|
66
|
-
"globals": "^15.12.0",
|
|
67
|
-
"husky": "^9.1.7",
|
|
68
|
-
"lint-staged": "^15.0.0",
|
|
69
|
-
"postcss": "^8.4.49",
|
|
70
|
-
"prettier": "^3.5.3"
|
|
71
|
-
},
|
|
72
|
-
"dependencies": {
|
|
73
|
-
"@qlover/fe-corekit": "latest"
|
|
74
|
-
}
|
|
75
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import js from '@eslint/js';
|
|
2
|
-
import globals from 'globals';
|
|
3
|
-
import prettierConfig from '../../packages/node-lib/.prettierrc.js';
|
|
4
|
-
import prettier from 'eslint-plugin-prettier';
|
|
5
|
-
import tseslint from '@typescript-eslint/eslint-plugin';
|
|
6
|
-
import tsparser from '@typescript-eslint/parser';
|
|
7
|
-
import qloverEslint from '@qlover/eslint-plugin';
|
|
8
|
-
|
|
9
|
-
export default [
|
|
10
|
-
{
|
|
11
|
-
ignores: ['dist', 'node_modules']
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
files: ['src/**/*.{js,jsx,ts,tsx}'],
|
|
15
|
-
languageOptions: {
|
|
16
|
-
parser: tsparser,
|
|
17
|
-
ecmaVersion: 2020,
|
|
18
|
-
globals: {
|
|
19
|
-
...globals.browser,
|
|
20
|
-
...globals.node
|
|
21
|
-
},
|
|
22
|
-
parserOptions: {
|
|
23
|
-
ecmaVersion: 'latest',
|
|
24
|
-
ecmaFeatures: { jsx: true },
|
|
25
|
-
sourceType: 'module',
|
|
26
|
-
project: './tsconfig.json'
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
plugins: {
|
|
30
|
-
prettier,
|
|
31
|
-
'@typescript-eslint': tseslint,
|
|
32
|
-
'@qlover-eslint': qloverEslint
|
|
33
|
-
},
|
|
34
|
-
rules: {
|
|
35
|
-
...js.configs.recommended.rules,
|
|
36
|
-
...tseslint.configs.recommended.rules,
|
|
37
|
-
'@typescript-eslint/no-explicit-any': 'error',
|
|
38
|
-
'prettier/prettier': ['error', prettierConfig],
|
|
39
|
-
'@typescript-eslint/ban-ts-comment': [
|
|
40
|
-
'off',
|
|
41
|
-
{
|
|
42
|
-
'ts-expect-error': {
|
|
43
|
-
descriptionFormat: '^.*$'
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
'@qlover-eslint/ts-class-method-return': 'error'
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
];
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# ci
|
|
2
|
-
NPM_TOKEN=
|
|
3
|
-
GITHUB_TOKEN=
|
|
4
|
-
# fe-scripts
|
|
5
|
-
FE_RELEASE_BRANCH=master
|
|
6
|
-
FE_RELEASE=false
|
|
7
|
-
FE_RELEASE_ENV=localhost
|
|
8
|
-
# ===== server
|
|
9
|
-
APP_HOST=
|
|
10
|
-
SUPABASE_URL=
|
|
11
|
-
SUPABASE_ANON_KEY=
|
|
12
|
-
JWT_SECRET=
|
|
13
|
-
CEREBRAS_API_KEY=
|
|
14
|
-
CEREBRAS_BASE_URL=
|
|
15
|
-
# ===== browser
|
|
16
|
-
NEXT_PUBLIC_USER_TOKEN_STORAGE_KEY=fe_user_token
|
|
17
|
-
NEXT_PUBLIC_OPEN_AI_MODELS='["gpt-4o-mini","gpt-3.5-turbo","gpt-3.5-turbo-2","gpt-4","gpt-4-32k"]'
|
|
18
|
-
NEXT_PUBLIC_OPEN_AI_BASE_URL=
|
|
19
|
-
NEXT_PUBLIC_OPEN_AI_TOKEN=sk-proj-1234567890
|
|
20
|
-
NEXT_PUBLIC_OPEN_AI_TOKEN_PREFIX=Bearer
|
|
21
|
-
NEXT_PUBLIC_OPEN_AI_REQUIRE_TOKEN=true
|
|
22
|
-
NEXT_PUBLIC_LOGIN_USER=xxxx
|
|
23
|
-
NEXT_PUBLIC_LOGIN_PASSWORD=xxx
|
|
24
|
-
NEXT_PUBLIC_FE_API_BASE_URL=https://xxx.example.com/
|
|
25
|
-
NEXT_PUBLIC_STRING_ENCRYPT_KEY=xxx!@#
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# dependencies
|
|
2
|
-
node_modules
|
|
3
|
-
.pnp
|
|
4
|
-
.pnp.js
|
|
5
|
-
|
|
6
|
-
# testing
|
|
7
|
-
/coverage
|
|
8
|
-
|
|
9
|
-
# next.js
|
|
10
|
-
/.next/
|
|
11
|
-
/out/
|
|
12
|
-
/build
|
|
13
|
-
/dist
|
|
14
|
-
|
|
15
|
-
# misc
|
|
16
|
-
.DS_Store
|
|
17
|
-
*.pem
|
|
18
|
-
|
|
19
|
-
# debug
|
|
20
|
-
npm-debug.log*
|
|
21
|
-
yarn-debug.log*
|
|
22
|
-
yarn-error.log*
|
|
23
|
-
|
|
24
|
-
# local env files
|
|
25
|
-
.env*.local
|
|
26
|
-
.env
|
|
27
|
-
|
|
28
|
-
# vercel
|
|
29
|
-
.vercel
|
|
30
|
-
|
|
31
|
-
# typescript
|
|
32
|
-
*.tsbuildinfo
|
|
33
|
-
next-env.d.ts
|
|
34
|
-
|
|
35
|
-
# cache
|
|
36
|
-
.cache
|
|
37
|
-
.eslintcache
|
|
38
|
-
.stylelintcache
|
|
39
|
-
|
|
40
|
-
# IDE
|
|
41
|
-
.idea
|
|
42
|
-
.vscode
|
|
43
|
-
|
|
44
|
-
# generated files
|
|
45
|
-
public/locales
|
|
46
|
-
**/vendor/**
|
|
47
|
-
**/*.min.js
|
|
48
|
-
**/*.bundle.js
|
|
49
|
-
|
|
50
|
-
# package files
|
|
51
|
-
package-lock.json
|
|
52
|
-
yarn.lock
|
|
53
|
-
pnpm-lock.yaml
|
|
54
|
-
|
|
55
|
-
# config files
|
|
56
|
-
*.config.js
|
|
57
|
-
*.config.mjs
|
|
58
|
-
*.config.cjs
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
# Next.js Full-Stack Application Template
|
|
2
|
-
|
|
3
|
-
A full-stack application template based on Next.js, implementing a clear front-end and back-end layered architecture using an interface-driven design pattern.
|
|
4
|
-
|
|
5
|
-
[中文](./README.md)
|
|
6
|
-
|
|
7
|
-
## 🌟 Key Features
|
|
8
|
-
|
|
9
|
-
- 🏗️ Full-stack application architecture based on Next.js
|
|
10
|
-
- 🔌 Interface-Driven Development pattern
|
|
11
|
-
- 🎨 Theme system integrated with Tailwind CSS
|
|
12
|
-
- 🌍 Comprehensive internationalization support (English & Chinese)
|
|
13
|
-
- 🔄 TypeScript-based IOC container
|
|
14
|
-
- 🛡️ Complete authentication and authorization system
|
|
15
|
-
- 📡 Layered API architecture (Controllers, Services, Repositories)
|
|
16
|
-
- 🎮 State management and page controller pattern
|
|
17
|
-
- 🔗 SQL database bridging layer
|
|
18
|
-
- 📦 Package management with pnpm
|
|
19
|
-
|
|
20
|
-
## 🔧 Requirements
|
|
21
|
-
|
|
22
|
-
- Node.js >= 16
|
|
23
|
-
- pnpm >= 8.0
|
|
24
|
-
|
|
25
|
-
## 📁 Project Structure
|
|
26
|
-
|
|
27
|
-
```tree
|
|
28
|
-
├── config/ # Configuration directory
|
|
29
|
-
│ ├── i18n/ # Internationalization config
|
|
30
|
-
│ ├── Identifier/ # Dependency injection identifiers
|
|
31
|
-
│ ├── common.ts # Common app configuration
|
|
32
|
-
│ ├── IOCIdentifier.ts # IOC container configuration
|
|
33
|
-
│ └── theme.ts # Theme configuration
|
|
34
|
-
├── public/ # Static assets directory
|
|
35
|
-
├── src/
|
|
36
|
-
│ ├── app/ # Next.js app directory
|
|
37
|
-
│ │ ├── [locale]/ # Internationalized routes
|
|
38
|
-
│ │ ├── api/ # API route handlers
|
|
39
|
-
│ │ └── layout.tsx # Application layout
|
|
40
|
-
│ ├── base/ # Client-side base code
|
|
41
|
-
│ │ ├── port/ # Client interface definitions
|
|
42
|
-
│ │ ├── cases/ # Business case implementations
|
|
43
|
-
│ │ ├── services/ # Client service implementations
|
|
44
|
-
│ │ └── types/ # Type definitions
|
|
45
|
-
│ ├── server/ # Server-side code
|
|
46
|
-
│ │ ├── port/ # Server interface definitions
|
|
47
|
-
│ │ ├── services/ # Service implementations
|
|
48
|
-
│ │ ├── repositorys/ # Data repositories
|
|
49
|
-
│ │ ├── validators/ # Request validators
|
|
50
|
-
│ │ └── sqlBridges/ # Database bridging layer
|
|
51
|
-
│ ├── uikit/ # UI component library
|
|
52
|
-
│ │ ├── components/ # Reusable components
|
|
53
|
-
│ │ ├── context/ # React Context
|
|
54
|
-
│ │ └── hook/ # React Hooks
|
|
55
|
-
│ └── styles/ # Style files
|
|
56
|
-
└── next.config.ts # Next.js configuration file
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
## 🚀 Quick Start
|
|
60
|
-
|
|
61
|
-
### Install Dependencies
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
pnpm install
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Development Mode
|
|
68
|
-
|
|
69
|
-
```bash
|
|
70
|
-
pnpm dev
|
|
71
|
-
# cross-env APP_ENV=localhost next dev --turbopack --port 3100
|
|
72
|
-
# Automatically loads .env.localhost -> .env
|
|
73
|
-
|
|
74
|
-
pnpm dev:staging
|
|
75
|
-
# cross-env APP_ENV=staging next dev --turbopack --port 3100
|
|
76
|
-
# Automatically loads .env.staging -> .env
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
### Build Project
|
|
80
|
-
|
|
81
|
-
```bash
|
|
82
|
-
pnpm build
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
## 📚 Documentation Guide
|
|
86
|
-
|
|
87
|
-
The project provides detailed development documentation covering all major features and best practices:
|
|
88
|
-
|
|
89
|
-
### Basic Documentation
|
|
90
|
-
|
|
91
|
-
- [Project Overview](./docs/en/index.md) - Project introduction and quick start guide
|
|
92
|
-
- [Project Structure](./docs/en/project-structure.md) - Detailed project directory structure explanation
|
|
93
|
-
- [Development Guide](./docs/en/development-guide.md) - Project development standards and best practices
|
|
94
|
-
- [Environment Configuration](./docs/en/env.md) - Environment variables and configuration management
|
|
95
|
-
- [Global Configuration](./docs/en/global.md) - Application global configuration and settings
|
|
96
|
-
|
|
97
|
-
### Core Features
|
|
98
|
-
|
|
99
|
-
- [Bootstrap Process](./docs/en/bootstrap.md) - Application startup process and lifecycle management
|
|
100
|
-
- [IOC Container](./docs/en/ioc.md) - Dependency injection system usage guide
|
|
101
|
-
- [Router Management](./docs/en/router.md) - Route configuration and page navigation
|
|
102
|
-
- [State Management](./docs/en/store.md) - Application state management solution
|
|
103
|
-
- [Request Handling](./docs/en/request.md) - API request handling mechanism
|
|
104
|
-
|
|
105
|
-
### Feature Extensions
|
|
106
|
-
|
|
107
|
-
- [Internationalization](./docs/en/i18n.md) - Multi-language support and translation management
|
|
108
|
-
- [Theme System](./docs/en/theme.md) - Theme configuration and dark mode support
|
|
109
|
-
- [TypeScript Guide](./docs/en/typescript-guide.md) - TypeScript usage standards and best practices
|
|
110
|
-
|
|
111
|
-
## 🔨 Architecture Design
|
|
112
|
-
|
|
113
|
-
### Interface-Driven Design Pattern
|
|
114
|
-
|
|
115
|
-
The project adopts an interface-driven design pattern, achieving decoupling and testability through interface definitions:
|
|
116
|
-
|
|
117
|
-
#### Client Interfaces (src/base/port)
|
|
118
|
-
|
|
119
|
-
- **AppUserApiInterface**: User authentication related API interface
|
|
120
|
-
- **AsyncStateInterface**: Asynchronous state management interface
|
|
121
|
-
- **RouterInterface**: Router management interface
|
|
122
|
-
- **I18nServiceInterface**: Internationalization service interface
|
|
123
|
-
|
|
124
|
-
#### Server Interfaces (src/server/port)
|
|
125
|
-
|
|
126
|
-
- **ServerAuthInterface**: Server authentication interface
|
|
127
|
-
- **DBBridgeInterface**: Database operation bridging interface
|
|
128
|
-
- **UserRepositoryInterface**: User data repository interface
|
|
129
|
-
- **ValidatorInterface**: Data validation interface
|
|
130
|
-
- **ParamsHandlerInterface**: Parameter handling interface
|