@qlover/create-app 0.7.15 → 0.9.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 +21 -0
- package/dist/configs/_common/.github/workflows/general-check.yml +1 -1
- package/dist/configs/_common/.github/workflows/release.yml +2 -2
- package/dist/configs/_common/.gitignore.template +6 -0
- package/dist/configs/_common/.prettierignore +17 -5
- package/dist/configs/_common/.vscode/settings.json +6 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/templates/next-app/.env.template +1 -1
- package/dist/templates/next-app/README.en.md +0 -1
- package/dist/templates/next-app/README.md +0 -1
- package/dist/templates/next-app/config/Identifier/api.ts +5 -5
- package/dist/templates/next-app/config/Identifier/common/admint.table.ts +69 -0
- package/dist/templates/next-app/config/Identifier/common/common.ts +76 -0
- package/dist/templates/next-app/config/Identifier/common/index.ts +3 -0
- package/dist/templates/next-app/config/Identifier/{validator.ts → common/validators.ts} +5 -5
- package/dist/templates/next-app/config/Identifier/index.ts +2 -12
- package/dist/templates/next-app/config/Identifier/pages/index.ts +6 -0
- package/dist/templates/next-app/config/Identifier/pages/page.admin.home.ts +27 -0
- package/dist/templates/next-app/config/Identifier/pages/page.admin.locales.ts +266 -0
- package/dist/templates/next-app/config/Identifier/pages/page.admin.user.ts +293 -0
- package/dist/templates/{react-app/config/Identifier → next-app/config/Identifier/pages}/page.home.ts +15 -22
- package/dist/templates/next-app/config/Identifier/{page.login.ts → pages/page.login.ts} +28 -34
- package/dist/templates/next-app/config/Identifier/{page.register.ts → pages/page.register.ts} +30 -29
- package/dist/templates/next-app/config/adminNavs.ts +19 -0
- package/dist/templates/next-app/config/common.ts +22 -13
- package/dist/templates/next-app/config/i18n/HomeI18n.ts +5 -5
- package/dist/templates/next-app/config/i18n/admin18n.ts +61 -19
- package/dist/templates/next-app/config/i18n/i18nConfig.ts +2 -0
- package/dist/templates/next-app/config/i18n/i18nKeyScheam.ts +36 -0
- package/dist/templates/next-app/config/i18n/loginI18n.ts +22 -22
- package/dist/templates/next-app/config/i18n/register18n.ts +23 -24
- package/dist/templates/next-app/docs/en/index.md +0 -1
- package/dist/templates/next-app/docs/en/project-structure.md +0 -1
- package/dist/templates/next-app/docs/zh/index.md +0 -1
- package/dist/templates/next-app/docs/zh/project-structure.md +0 -1
- package/dist/templates/next-app/make/generateLocales.ts +19 -12
- package/dist/templates/next-app/migrations/schema/LocalesSchema.ts +15 -0
- package/dist/templates/next-app/migrations/sql/1694244000000.sql +11 -0
- package/dist/templates/next-app/package.json +7 -3
- package/dist/templates/next-app/public/locales/en.json +172 -207
- package/dist/templates/next-app/public/locales/zh.json +172 -207
- package/dist/templates/next-app/src/app/[locale]/admin/locales/page.tsx +153 -0
- package/dist/templates/next-app/src/app/[locale]/admin/users/page.tsx +48 -50
- package/dist/templates/next-app/src/app/[locale]/login/LoginForm.tsx +2 -2
- package/dist/templates/next-app/src/app/api/admin/locales/create/route.ts +34 -0
- package/dist/templates/next-app/src/app/api/admin/locales/import/route.ts +40 -0
- package/dist/templates/next-app/src/app/api/admin/locales/route.ts +42 -0
- package/dist/templates/next-app/src/app/api/admin/locales/update/route.ts +32 -0
- package/dist/templates/next-app/src/app/api/locales/json/route.ts +44 -0
- package/dist/templates/next-app/src/base/cases/AdminPageManager.ts +1 -13
- package/dist/templates/next-app/src/base/cases/Datetime.ts +18 -0
- package/dist/templates/next-app/src/base/cases/DialogErrorPlugin.ts +12 -6
- package/dist/templates/next-app/src/base/cases/ResourceState.ts +17 -0
- package/dist/templates/next-app/src/base/cases/TranslateI18nInterface.ts +25 -0
- package/dist/templates/next-app/src/base/cases/ZodColumnBuilder.ts +200 -0
- package/dist/templates/next-app/src/base/port/ZodBuilderInterface.ts +8 -0
- package/dist/templates/next-app/src/base/services/AdminLocalesService.ts +20 -0
- package/dist/templates/next-app/src/base/services/AdminPageEvent.ts +26 -0
- package/dist/templates/next-app/src/base/services/AdminPageScheduler.ts +42 -0
- package/dist/templates/next-app/src/base/services/ResourceService.ts +122 -0
- package/dist/templates/next-app/src/base/services/adminApi/AdminLocalesApi.ts +104 -0
- package/dist/templates/next-app/src/base/services/adminApi/AdminUserApi.ts +38 -5
- package/dist/templates/next-app/src/base/services/appApi/AppApiPlugin.ts +1 -1
- package/dist/templates/next-app/src/i18n/request.ts +30 -1
- package/dist/templates/next-app/src/server/PageParams.ts +2 -10
- package/dist/templates/next-app/src/server/port/DBBridgeInterface.ts +5 -0
- package/dist/templates/next-app/src/server/port/DBTableInterface.ts +2 -0
- package/dist/templates/next-app/src/server/port/LocalesRepositoryInterface.ts +43 -0
- package/dist/templates/next-app/src/server/repositorys/LocalesRepository.ts +197 -0
- package/dist/templates/next-app/src/server/services/ApiLocaleService.ts +122 -0
- package/dist/templates/next-app/src/server/sqlBridges/SupabaseBridge.ts +60 -11
- package/dist/templates/next-app/src/server/validators/ExtendedExecutorError.ts +6 -0
- package/dist/templates/next-app/src/server/validators/LocalesValidator.ts +131 -0
- package/dist/templates/next-app/src/server/validators/LoginValidator.ts +2 -5
- package/dist/templates/next-app/src/server/validators/PaginationValidator.ts +32 -16
- package/dist/templates/next-app/src/styles/css/antd-themes/pagination/_default.css +2 -1
- package/dist/templates/next-app/src/styles/css/antd-themes/pagination/dark.css +28 -29
- package/dist/templates/next-app/src/styles/css/antd-themes/pagination/pink.css +2 -1
- package/dist/templates/next-app/src/uikit/components/AdminLayout.tsx +17 -3
- package/dist/templates/next-app/src/uikit/components/BaseHeader.tsx +5 -4
- package/dist/templates/next-app/src/uikit/components/BaseLayout.tsx +5 -4
- package/dist/templates/next-app/src/uikit/components/BootstrapsProvider.tsx +3 -2
- package/dist/templates/next-app/src/uikit/components/ComboProvider.tsx +1 -1
- package/dist/templates/next-app/src/uikit/components/EditableCell.tsx +118 -0
- package/dist/templates/next-app/src/uikit/components/LogoutButton.tsx +5 -6
- package/dist/templates/next-app/src/uikit/components/ThemeSwitcher.tsx +1 -1
- package/dist/templates/next-app/src/uikit/components/With.tsx +2 -2
- package/dist/templates/next-app/src/uikit/components/localesImportButton/LocalesImportButton.tsx +62 -0
- package/dist/templates/next-app/src/uikit/components/localesImportButton/LocalesImportEvent.ts +28 -0
- package/dist/templates/next-app/src/uikit/components/localesImportButton/import.module.css +6 -0
- package/dist/templates/next-app/src/uikit/hook/useI18nInterface.ts +8 -14
- package/dist/templates/next-app/src/uikit/hook/useWarnTranslations.ts +25 -0
- package/dist/templates/react-app/.prettierignore +17 -0
- package/dist/templates/react-app/README.en.md +71 -54
- package/dist/templates/react-app/README.md +35 -18
- package/dist/templates/react-app/__tests__/__mocks__/BootstrapTest.ts +14 -0
- package/dist/templates/react-app/__tests__/__mocks__/MockAppConfit.ts +1 -1
- package/dist/templates/react-app/__tests__/__mocks__/MockDialogHandler.ts +2 -2
- package/dist/templates/react-app/__tests__/__mocks__/MockLogger.ts +1 -1
- package/dist/templates/react-app/__tests__/__mocks__/components/TestApp.tsx +45 -0
- package/dist/templates/react-app/__tests__/__mocks__/components/TestBootstrapsProvider.tsx +34 -0
- package/dist/templates/react-app/__tests__/__mocks__/components/TestRouter.tsx +46 -0
- package/dist/templates/react-app/__tests__/__mocks__/components/index.ts +12 -0
- package/dist/templates/react-app/__tests__/__mocks__/createMockGlobals.ts +1 -2
- package/dist/templates/react-app/__tests__/__mocks__/testIOC/TestIOC.ts +51 -0
- package/dist/templates/react-app/__tests__/__mocks__/testIOC/TestIOCRegister.ts +69 -0
- package/dist/templates/react-app/__tests__/setup/index.ts +1 -51
- package/dist/templates/react-app/__tests__/setup/setupGlobal.ts +51 -0
- package/dist/templates/react-app/__tests__/src/App.structure.test.tsx +115 -0
- package/dist/templates/react-app/__tests__/src/base/cases/AppConfig.test.ts +2 -2
- package/dist/templates/react-app/__tests__/src/base/cases/AppError.test.ts +1 -1
- package/dist/templates/react-app/__tests__/src/base/cases/DialogHandler.test.ts +3 -5
- package/dist/templates/react-app/__tests__/src/base/cases/I18nKeyErrorPlugin.test.ts +13 -2
- package/dist/templates/react-app/__tests__/src/base/cases/InversifyContainer.test.ts +1 -1
- package/dist/templates/react-app/__tests__/src/base/cases/PublicAssetsPath.test.ts +1 -1
- package/dist/templates/react-app/__tests__/src/base/cases/RequestLogger.test.ts +5 -5
- package/dist/templates/react-app/__tests__/src/base/cases/RequestStatusCatcher.test.ts +1 -2
- package/dist/templates/react-app/__tests__/src/base/cases/RouterLoader.test.ts +25 -15
- package/dist/templates/react-app/__tests__/src/base/services/I18nService.test.ts +29 -15
- package/dist/templates/react-app/__tests__/src/core/IOC.test.ts +19 -9
- package/dist/templates/react-app/__tests__/src/core/bootstraps/BootstrapClient.test.ts +153 -0
- package/dist/templates/react-app/__tests__/src/core/bootstraps/BootstrapsApp.test.ts +9 -7
- package/dist/templates/react-app/__tests__/src/main.integration.test.tsx +4 -5
- package/dist/templates/react-app/__tests__/src/main.test.tsx +4 -4
- package/dist/templates/react-app/__tests__/src/uikit/components/BaseHeader.test.tsx +68 -59
- package/dist/templates/react-app/__tests__/src/uikit/components/chatMessage/ChatRoot.test.tsx +274 -0
- package/dist/templates/react-app/config/IOCIdentifier.ts +11 -8
- package/dist/templates/react-app/config/Identifier/{common.error.ts → common/common.error.ts} +5 -5
- package/dist/templates/react-app/config/Identifier/{common.ts → common/common.ts} +9 -9
- package/dist/templates/react-app/config/Identifier/common/index.ts +2 -0
- package/dist/templates/react-app/config/Identifier/components/component.chatMessage.ts +56 -0
- package/dist/templates/react-app/config/Identifier/components/component.messageBaseList.ts +103 -0
- package/dist/templates/react-app/config/Identifier/index.ts +1 -9
- package/dist/templates/react-app/config/Identifier/pages/index.ts +9 -0
- package/dist/templates/react-app/config/Identifier/{page.about.ts → pages/page.about.ts} +34 -26
- package/dist/templates/react-app/config/Identifier/{page.executor.ts → pages/page.executor.ts} +47 -39
- package/dist/templates/{next-app/config/Identifier → react-app/config/Identifier/pages}/page.home.ts +24 -23
- package/dist/templates/react-app/config/Identifier/pages/page.identifiter.ts +102 -0
- package/dist/templates/react-app/config/Identifier/{page.jsonStorage.ts → pages/page.jsonStorage.ts} +18 -11
- package/dist/templates/react-app/config/Identifier/{page.login.ts → pages/page.login.ts} +37 -27
- package/dist/templates/react-app/config/Identifier/pages/page.message.ts +20 -0
- package/dist/templates/react-app/config/Identifier/{page.register.ts → pages/page.register.ts} +37 -25
- package/dist/templates/react-app/config/Identifier/{page.request.ts → pages/page.request.ts} +34 -44
- package/dist/templates/react-app/config/app.router.ts +81 -61
- package/dist/templates/react-app/config/i18n/PageI18nInterface.ts +51 -0
- package/dist/templates/react-app/config/i18n/aboutI18n.ts +42 -0
- package/dist/templates/react-app/config/i18n/chatMessageI18n.ts +17 -0
- package/dist/templates/react-app/config/i18n/executorI18n.ts +51 -0
- package/dist/templates/react-app/config/i18n/homeI18n.ts +24 -0
- package/dist/templates/react-app/config/i18n/i18nConfig.ts +30 -0
- package/dist/templates/react-app/config/i18n/identifiter18n.ts +30 -0
- package/dist/templates/react-app/config/i18n/jsonStorage18n.ts +27 -0
- package/dist/templates/react-app/config/i18n/login18n.ts +42 -0
- package/dist/templates/react-app/config/i18n/messageBaseListI18n.ts +22 -0
- package/dist/templates/react-app/config/i18n/messageI18n.ts +14 -0
- package/dist/templates/react-app/config/i18n/notFoundI18n.ts +34 -0
- package/dist/templates/react-app/config/i18n/register18n.ts +40 -0
- package/dist/templates/react-app/config/i18n/request18n.ts +41 -0
- package/dist/templates/react-app/config/theme.ts +14 -4
- package/dist/templates/react-app/docs/en/bootstrap.md +1670 -341
- package/dist/templates/react-app/docs/en/components/chat-message-component.md +314 -0
- package/dist/templates/react-app/docs/en/components/chat-message-refactor.md +270 -0
- package/dist/templates/react-app/docs/en/components/message-base-list-component.md +172 -0
- package/dist/templates/react-app/docs/en/development-guide.md +1021 -345
- package/dist/templates/react-app/docs/en/env.md +1132 -278
- package/dist/templates/react-app/docs/en/i18n.md +858 -147
- package/dist/templates/react-app/docs/en/index.md +733 -104
- package/dist/templates/react-app/docs/en/ioc.md +1228 -287
- package/dist/templates/react-app/docs/en/playwright/e2e-tests.md +321 -0
- package/dist/templates/react-app/docs/en/playwright/index.md +19 -0
- package/dist/templates/react-app/docs/en/playwright/installation-summary.md +332 -0
- package/dist/templates/react-app/docs/en/playwright/overview.md +222 -0
- package/dist/templates/react-app/docs/en/playwright/quickstart.md +325 -0
- package/dist/templates/react-app/docs/en/playwright/reorganization-notes.md +340 -0
- package/dist/templates/react-app/docs/en/playwright/setup-complete.md +290 -0
- package/dist/templates/react-app/docs/en/playwright/testing-guide.md +565 -0
- package/dist/templates/react-app/docs/en/store.md +1194 -184
- package/dist/templates/react-app/docs/en/why-no-globals.md +797 -0
- package/dist/templates/react-app/docs/zh/bootstrap.md +1670 -341
- package/dist/templates/react-app/docs/zh/components/chat-message-component.md +314 -0
- package/dist/templates/react-app/docs/zh/components/chat-message-refactor.md +270 -0
- package/dist/templates/react-app/docs/zh/components/message-base-list-component.md +172 -0
- package/dist/templates/react-app/docs/zh/development-guide.md +1021 -345
- package/dist/templates/react-app/docs/zh/env.md +1132 -275
- package/dist/templates/react-app/docs/zh/i18n.md +858 -147
- package/dist/templates/react-app/docs/zh/index.md +717 -104
- package/dist/templates/react-app/docs/zh/ioc.md +1229 -287
- package/dist/templates/react-app/docs/zh/playwright/e2e-tests.md +321 -0
- package/dist/templates/react-app/docs/zh/playwright/index.md +19 -0
- package/dist/templates/react-app/docs/zh/playwright/installation-summary.md +332 -0
- package/dist/templates/react-app/docs/zh/playwright/overview.md +222 -0
- package/dist/templates/react-app/docs/zh/playwright/quickstart.md +325 -0
- package/dist/templates/react-app/docs/zh/playwright/reorganization-notes.md +340 -0
- package/dist/templates/react-app/docs/zh/playwright/setup-complete.md +290 -0
- package/dist/templates/react-app/docs/zh/playwright/testing-guide.md +565 -0
- package/dist/templates/react-app/docs/zh/store.md +1192 -184
- package/dist/templates/react-app/docs/zh/why-no-globals.md +797 -0
- package/dist/templates/react-app/e2e/App.spec.ts +319 -0
- package/dist/templates/react-app/e2e/fixtures/base.fixture.ts +40 -0
- package/dist/templates/react-app/e2e/main.spec.ts +20 -0
- package/dist/templates/react-app/e2e/utils/test-helpers.ts +19 -0
- package/dist/templates/react-app/eslint.config.mjs +247 -0
- package/dist/templates/react-app/makes/eslint-utils.mjs +195 -0
- package/dist/templates/react-app/makes/generateTs2LocalesOptions.ts +26 -0
- package/dist/templates/react-app/package.json +31 -3
- package/dist/templates/react-app/playwright.config.ts +79 -0
- package/dist/templates/react-app/public/locales/en/common.json +233 -179
- package/dist/templates/react-app/public/locales/zh/common.json +233 -179
- package/dist/templates/react-app/src/App.tsx +15 -42
- package/dist/templates/react-app/src/base/apis/AiApi.ts +5 -5
- package/dist/templates/react-app/src/base/apis/feApi/FeApi.ts +1 -1
- package/dist/templates/react-app/src/base/apis/feApi/FeApiAdapter.ts +1 -1
- package/dist/templates/react-app/src/base/apis/feApi/FeApiBootstarp.ts +8 -8
- package/dist/templates/react-app/src/base/apis/feApi/FeApiType.ts +1 -1
- package/dist/templates/react-app/src/base/apis/userApi/UserApi.ts +6 -6
- package/dist/templates/react-app/src/base/apis/userApi/UserApiAdapter.ts +1 -1
- package/dist/templates/react-app/src/base/apis/userApi/UserApiBootstarp.ts +12 -14
- package/dist/templates/react-app/src/base/apis/userApi/UserApiType.ts +1 -1
- package/dist/templates/react-app/src/base/cases/DialogHandler.ts +5 -2
- package/dist/templates/react-app/src/base/cases/I18nKeyErrorPlugin.ts +3 -3
- package/dist/templates/react-app/src/base/cases/InversifyContainer.ts +3 -3
- package/dist/templates/react-app/src/base/cases/RequestLanguages.ts +2 -2
- package/dist/templates/react-app/src/base/cases/RequestLogger.ts +4 -4
- package/dist/templates/react-app/src/base/cases/RequestStatusCatcher.ts +1 -1
- package/dist/templates/react-app/src/base/cases/ResourceState.ts +23 -0
- package/dist/templates/react-app/src/base/cases/RouterLoader.ts +4 -4
- package/dist/templates/react-app/src/base/cases/TranslateI18nInterface.ts +26 -0
- package/dist/templates/react-app/src/base/port/ExecutorPageBridgeInterface.ts +2 -3
- package/dist/templates/react-app/src/base/port/I18nServiceInterface.ts +1 -1
- package/dist/templates/react-app/src/base/port/IOCInterface.ts +36 -0
- package/dist/templates/react-app/src/base/port/JSONStoragePageBridgeInterface.ts +2 -1
- package/dist/templates/react-app/src/base/port/ProcesserExecutorInterface.ts +1 -1
- package/dist/templates/react-app/src/base/port/RequestPageBridgeInterface.ts +2 -2
- package/dist/templates/react-app/src/base/port/RouteServiceInterface.ts +9 -5
- package/dist/templates/react-app/src/base/port/UserServiceInterface.ts +1 -1
- package/dist/templates/react-app/src/base/services/I18nService.ts +29 -29
- package/dist/templates/react-app/src/base/services/IdentifierService.ts +143 -0
- package/dist/templates/react-app/src/base/services/ProcesserExecutor.ts +3 -3
- package/dist/templates/react-app/src/base/services/RouteService.ts +27 -8
- package/dist/templates/react-app/src/base/services/UserService.ts +8 -8
- package/dist/templates/react-app/src/base/types/Page.ts +14 -2
- package/dist/templates/react-app/src/base/types/global.d.ts +1 -1
- package/dist/templates/react-app/src/core/IOC.ts +5 -46
- package/dist/templates/react-app/src/core/bootstraps/{BootstrapApp.ts → BootstrapClient.ts} +44 -17
- package/dist/templates/react-app/src/core/bootstraps/BootstrapsRegistry.ts +14 -7
- package/dist/templates/react-app/src/core/bootstraps/IocIdentifierTest.ts +1 -1
- package/dist/templates/react-app/src/core/bootstraps/PrintBootstrap.ts +1 -1
- package/dist/templates/react-app/src/core/clientIoc/ClientIOC.ts +40 -0
- package/dist/templates/react-app/src/core/{IocRegisterImpl.ts → clientIoc/ClientIOCRegister.ts} +35 -24
- package/dist/templates/react-app/src/core/globals.ts +9 -9
- package/dist/templates/react-app/src/main.tsx +4 -4
- package/dist/templates/react-app/src/pages/404.tsx +6 -3
- package/dist/templates/react-app/src/pages/500.tsx +5 -2
- package/dist/templates/react-app/src/pages/NoRouteFound.tsx +5 -0
- package/dist/templates/react-app/src/pages/auth/Layout.tsx +9 -6
- package/dist/templates/react-app/src/pages/auth/LoginPage.tsx +46 -56
- package/dist/templates/react-app/src/pages/auth/RegisterPage.tsx +46 -58
- package/dist/templates/react-app/src/pages/base/AboutPage.tsx +35 -40
- package/dist/templates/react-app/src/pages/base/ExecutorPage.tsx +51 -51
- package/dist/templates/react-app/src/pages/base/HomePage.tsx +14 -15
- package/dist/templates/react-app/src/pages/base/IdentifierPage.tsx +70 -11
- package/dist/templates/react-app/src/pages/base/JSONStoragePage.tsx +24 -25
- package/dist/templates/react-app/src/pages/base/Layout.tsx +2 -2
- package/dist/templates/react-app/src/pages/base/MessagePage.tsx +40 -0
- package/dist/templates/react-app/src/pages/base/RedirectPathname.tsx +3 -2
- package/dist/templates/react-app/src/pages/base/RequestPage.tsx +41 -59
- package/dist/templates/react-app/src/styles/css/antd-themes/{_default.css → _common/_default.css} +85 -0
- package/dist/templates/react-app/src/styles/css/antd-themes/{dark.css → _common/dark.css} +99 -0
- package/dist/templates/react-app/src/styles/css/antd-themes/_common/index.css +3 -0
- package/dist/templates/react-app/src/styles/css/antd-themes/{pink.css → _common/pink.css} +86 -0
- package/dist/templates/react-app/src/styles/css/antd-themes/index.css +4 -3
- package/dist/templates/react-app/src/styles/css/antd-themes/menu/_default.css +108 -0
- package/dist/templates/react-app/src/styles/css/antd-themes/menu/dark.css +67 -0
- package/dist/templates/react-app/src/styles/css/antd-themes/menu/index.css +3 -0
- package/dist/templates/react-app/src/styles/css/antd-themes/menu/pink.css +67 -0
- package/dist/templates/react-app/src/styles/css/antd-themes/pagination/_default.css +34 -0
- package/dist/templates/react-app/src/styles/css/antd-themes/pagination/dark.css +31 -0
- package/dist/templates/react-app/src/styles/css/antd-themes/pagination/index.css +3 -0
- package/dist/templates/react-app/src/styles/css/antd-themes/pagination/pink.css +36 -0
- package/dist/templates/react-app/src/styles/css/antd-themes/table/_default.css +44 -0
- package/dist/templates/react-app/src/styles/css/antd-themes/table/dark.css +43 -0
- package/dist/templates/react-app/src/styles/css/antd-themes/table/index.css +3 -0
- package/dist/templates/react-app/src/styles/css/antd-themes/table/pink.css +43 -0
- package/dist/templates/react-app/src/styles/css/page.css +4 -3
- package/dist/templates/react-app/src/styles/css/themes/_default.css +1 -0
- package/dist/templates/react-app/src/styles/css/themes/dark.css +1 -0
- package/dist/templates/react-app/src/styles/css/themes/pink.css +1 -0
- package/dist/templates/react-app/src/styles/css/zIndex.css +1 -1
- package/dist/templates/react-app/src/uikit/bridges/ExecutorPageBridge.ts +3 -3
- package/dist/templates/react-app/src/uikit/bridges/JSONStoragePageBridge.ts +2 -2
- package/dist/templates/react-app/src/uikit/bridges/NavigateBridge.ts +1 -1
- package/dist/templates/react-app/src/uikit/bridges/RequestPageBridge.ts +3 -3
- package/dist/templates/react-app/src/uikit/components/AppRouterProvider.tsx +35 -0
- package/dist/templates/react-app/src/uikit/components/BaseHeader.tsx +15 -11
- package/dist/templates/react-app/src/uikit/components/BaseRouteProvider.tsx +14 -11
- package/dist/templates/react-app/src/uikit/components/BaseRouteSeo.tsx +18 -0
- package/dist/templates/react-app/src/uikit/components/BootstrapsProvider.tsx +13 -0
- package/dist/templates/react-app/src/uikit/components/ClientSeo.tsx +62 -0
- package/dist/templates/react-app/src/uikit/components/ComboProvider.tsx +38 -0
- package/dist/templates/react-app/src/uikit/components/LanguageSwitcher.tsx +48 -27
- package/dist/templates/react-app/src/uikit/components/Loading.tsx +4 -2
- package/dist/templates/react-app/src/uikit/components/LocaleLink.tsx +4 -5
- package/dist/templates/react-app/src/uikit/components/LogoutButton.tsx +34 -11
- package/dist/templates/react-app/src/uikit/components/MessageBaseList.tsx +240 -0
- package/dist/templates/react-app/src/uikit/components/ProcessExecutorProvider.tsx +9 -5
- package/dist/templates/react-app/src/uikit/components/RouterRenderComponent.tsx +6 -3
- package/dist/templates/react-app/src/uikit/components/ThemeSwitcher.tsx +97 -40
- package/dist/templates/react-app/src/uikit/components/UserAuthProvider.tsx +5 -5
- package/dist/templates/react-app/src/uikit/components/With.tsx +17 -0
- package/dist/templates/react-app/src/uikit/components/chatMessage/ChatMessageBridge.ts +176 -0
- package/dist/templates/react-app/src/uikit/components/chatMessage/ChatRoot.tsx +21 -0
- package/dist/templates/react-app/src/uikit/components/chatMessage/FocusBar.tsx +106 -0
- package/dist/templates/react-app/src/uikit/components/chatMessage/MessageApi.ts +271 -0
- package/dist/templates/react-app/src/uikit/components/chatMessage/MessageItem.tsx +102 -0
- package/dist/templates/react-app/src/uikit/components/chatMessage/MessagesList.tsx +86 -0
- package/dist/templates/react-app/src/uikit/contexts/BaseRouteContext.ts +17 -11
- package/dist/templates/react-app/src/uikit/contexts/IOCContext.ts +13 -0
- package/dist/templates/react-app/src/uikit/hooks/useAppTranslation.ts +26 -0
- package/dist/templates/react-app/src/uikit/hooks/useI18nGuard.ts +8 -11
- package/dist/templates/react-app/src/uikit/hooks/useI18nInterface.ts +25 -0
- package/dist/templates/react-app/src/uikit/hooks/useIOC.ts +35 -0
- package/dist/templates/react-app/src/uikit/hooks/useNavigateBridge.ts +3 -3
- package/dist/templates/react-app/src/uikit/hooks/useStrictEffect.ts +0 -1
- package/dist/templates/react-app/tsconfig.e2e.json +21 -0
- package/dist/templates/react-app/tsconfig.json +8 -1
- package/dist/templates/react-app/tsconfig.node.json +1 -1
- package/dist/templates/react-app/tsconfig.test.json +3 -1
- package/dist/templates/react-app/vite.config.ts +50 -34
- package/package.json +2 -1
- package/dist/configs/react-app/eslint.config.js +0 -94
- package/dist/templates/next-app/config/Identifier/common.error.ts +0 -41
- package/dist/templates/next-app/config/Identifier/common.ts +0 -69
- package/dist/templates/next-app/config/Identifier/page.about.ts +0 -181
- package/dist/templates/next-app/config/Identifier/page.admin.ts +0 -48
- package/dist/templates/next-app/config/Identifier/page.executor.ts +0 -272
- package/dist/templates/next-app/config/Identifier/page.identifiter.ts +0 -39
- package/dist/templates/next-app/config/Identifier/page.jsonStorage.ts +0 -72
- package/dist/templates/next-app/config/Identifier/page.request.ts +0 -182
- package/dist/templates/next-app/src/base/cases/ChatAction.ts +0 -21
- package/dist/templates/next-app/src/base/cases/FocusBarAction.ts +0 -36
- package/dist/templates/next-app/src/base/cases/RequestState.ts +0 -20
- package/dist/templates/next-app/src/base/port/AdminPageInterface.ts +0 -85
- package/dist/templates/next-app/src/base/port/AsyncStateInterface.ts +0 -7
- package/dist/templates/next-app/src/base/services/AdminUserService.ts +0 -45
- package/dist/templates/next-app/src/uikit/components/ChatRoot.tsx +0 -17
- package/dist/templates/next-app/src/uikit/components/chat/ChatActionInterface.ts +0 -30
- package/dist/templates/next-app/src/uikit/components/chat/ChatFocusBar.tsx +0 -65
- package/dist/templates/next-app/src/uikit/components/chat/ChatMessages.tsx +0 -59
- package/dist/templates/next-app/src/uikit/components/chat/ChatWrap.tsx +0 -28
- package/dist/templates/next-app/src/uikit/components/chat/FocusBarActionInterface.ts +0 -19
- package/dist/templates/next-app/src/uikit/hook/useMountedClient.ts +0 -17
- package/dist/templates/next-app/src/uikit/hook/useStore.ts +0 -15
- package/dist/templates/react-app/__tests__/__mocks__/I18nService.ts +0 -13
- package/dist/templates/react-app/__tests__/src/App.test.tsx +0 -139
- package/dist/templates/react-app/config/Identifier/page.identifiter.ts +0 -39
- package/dist/templates/react-app/config/i18n.ts +0 -15
- package/dist/templates/react-app/docs/en/project-structure.md +0 -434
- package/dist/templates/react-app/docs/zh/project-structure.md +0 -434
- package/dist/templates/react-app/src/base/cases/RequestState.ts +0 -20
- package/dist/templates/react-app/src/base/port/AsyncStateInterface.ts +0 -7
- package/dist/templates/react-app/src/uikit/hooks/useDocumentTitle.ts +0 -15
- package/dist/templates/react-app/src/uikit/hooks/useStore.ts +0 -15
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import type * as CorekitBridge from '@qlover/corekit-bridge';
|
|
2
|
-
import type * as FeCorekit from '@qlover/fe-corekit';
|
|
3
|
-
import type * as Logger from '@qlover/logger';
|
|
4
|
-
import type { DialogHandler } from '@/base/cases/DialogHandler';
|
|
5
1
|
import type { AppConfig } from '@/base/cases/AppConfig';
|
|
2
|
+
import type { DialogHandler } from '@/base/cases/DialogHandler';
|
|
3
|
+
import type { I18nKeyErrorPlugin } from '@/base/cases/I18nKeyErrorPlugin';
|
|
6
4
|
import type { RequestStatusCatcher } from '@/base/cases/RequestStatusCatcher';
|
|
5
|
+
import type { ExecutorPageBridgeInterface } from '@/base/port/ExecutorPageBridgeInterface';
|
|
6
|
+
import type { JSONStoragePageBridgeInterface } from '@/base/port/JSONStoragePageBridgeInterface';
|
|
7
|
+
import type { RequestPageBridgeInterface } from '@/base/port/RequestPageBridgeInterface';
|
|
7
8
|
import type { I18nService } from '@/base/services/I18nService';
|
|
9
|
+
import type { MessageService } from '@/base/services/MessageService';
|
|
8
10
|
import type { ProcesserExecutor } from '@/base/services/ProcesserExecutor';
|
|
9
11
|
import type { RouteService } from '@/base/services/RouteService';
|
|
10
12
|
import type { UserService } from '@/base/services/UserService';
|
|
11
|
-
import type
|
|
12
|
-
import type
|
|
13
|
-
import type
|
|
14
|
-
import type { RequestPageBridgeInterface } from '@/base/port/RequestPageBridgeInterface';
|
|
13
|
+
import type * as CorekitBridge from '@qlover/corekit-bridge';
|
|
14
|
+
import type * as FeCorekit from '@qlover/fe-corekit';
|
|
15
|
+
import type * as Logger from '@qlover/logger';
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
18
|
* IOC identifier
|
|
@@ -32,6 +33,7 @@ export const IOCIdentifier = Object.freeze({
|
|
|
32
33
|
ProcesserExecutorInterface: 'ProcesserExecutorInterface',
|
|
33
34
|
RouteServiceInterface: 'RouteServiceInterface',
|
|
34
35
|
UserServiceInterface: 'UserServiceInterface',
|
|
36
|
+
MessageServiceInterface: 'MessageServiceInterface',
|
|
35
37
|
I18nKeyErrorPlugin: 'I18nKeyErrorPlugin',
|
|
36
38
|
FeApiCommonPlugin: 'FeApiCommonPlugin',
|
|
37
39
|
ApiMockPlugin: 'ApiMockPlugin',
|
|
@@ -74,6 +76,7 @@ export interface IOCIdentifierMap {
|
|
|
74
76
|
[IOCIdentifier.ProcesserExecutorInterface]: ProcesserExecutor;
|
|
75
77
|
[IOCIdentifier.RouteServiceInterface]: RouteService;
|
|
76
78
|
[IOCIdentifier.UserServiceInterface]: UserService;
|
|
79
|
+
[IOCIdentifier.MessageServiceInterface]: MessageService;
|
|
77
80
|
[IOCIdentifier.I18nKeyErrorPlugin]: I18nKeyErrorPlugin;
|
|
78
81
|
[IOCIdentifier.FeApiCommonPlugin]: CorekitBridge.RequestCommonPlugin;
|
|
79
82
|
[IOCIdentifier.ApiMockPlugin]: CorekitBridge.ApiMockPlugin;
|
package/dist/templates/react-app/config/Identifier/{common.error.ts → common/common.error.ts}
RENAMED
|
@@ -3,32 +3,32 @@
|
|
|
3
3
|
* @localZh 本地未找到 user token
|
|
4
4
|
* @localEn Local no user token
|
|
5
5
|
*/
|
|
6
|
-
export const LOCAL_NO_USER_TOKEN = '
|
|
6
|
+
export const LOCAL_NO_USER_TOKEN = 'common:no.user.token';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @description 全局未找到 window
|
|
10
10
|
* @localZh 全局未找到 window
|
|
11
11
|
* @localEn Global no window
|
|
12
12
|
*/
|
|
13
|
-
export const GLOBAL_NO_WINDOW = '
|
|
13
|
+
export const GLOBAL_NO_WINDOW = 'common:global.no.window';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @description 必须在 PageProvider 中使用
|
|
17
17
|
* @localZh 必须在 PageProvider 中使用
|
|
18
18
|
* @localEn Must be used in PageProvider
|
|
19
19
|
*/
|
|
20
|
-
export const WITHIN_PAGE_PROVIDER = '
|
|
20
|
+
export const WITHIN_PAGE_PROVIDER = 'common:within.page.provider';
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* @description 响应内容没有 token 值
|
|
24
24
|
* @localZh 响应内容没有 token 值
|
|
25
25
|
* @localEn Response not token value
|
|
26
26
|
*/
|
|
27
|
-
export const RES_NO_TOKEN = '
|
|
27
|
+
export const RES_NO_TOKEN = 'common:response.no.token';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* @description 未找到组件
|
|
31
31
|
* @localZh 未找到组件
|
|
32
32
|
* @localEn Not found component
|
|
33
33
|
*/
|
|
34
|
-
export const NOT_FOUND_COMPONENT = '
|
|
34
|
+
export const NOT_FOUND_COMPONENT = 'common:not.found.component';
|
|
@@ -3,60 +3,60 @@
|
|
|
3
3
|
* @localZh 默认主题
|
|
4
4
|
* @localEn Default Theme
|
|
5
5
|
*/
|
|
6
|
-
export const HEADER_THEME_DEFAULT = '
|
|
6
|
+
export const HEADER_THEME_DEFAULT = 'common:theme.default';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @description Theme switcher dark theme label
|
|
10
10
|
* @localZh 暗色主题
|
|
11
11
|
* @localEn Dark Theme
|
|
12
12
|
*/
|
|
13
|
-
export const HEADER_THEME_DARK = '
|
|
13
|
+
export const HEADER_THEME_DARK = 'common:theme.dark';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @description Theme switcher pink theme label
|
|
17
17
|
* @localZh 粉色主题
|
|
18
18
|
* @localEn Pink Theme
|
|
19
19
|
*/
|
|
20
|
-
export const HEADER_THEME_PINK = '
|
|
20
|
+
export const HEADER_THEME_PINK = 'common:theme.pink';
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* @description logout dialog title
|
|
24
24
|
* @localZh 登出
|
|
25
25
|
* @localEn Logout
|
|
26
26
|
*/
|
|
27
|
-
export const AUTH_LOGOUT_DIALOG_TITLE = '
|
|
27
|
+
export const AUTH_LOGOUT_DIALOG_TITLE = 'common:logout.dialog.title';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* @description logout dialog content
|
|
31
31
|
* @localZh 确定要登出吗?
|
|
32
32
|
* @localEn Are you sure you want to logout?
|
|
33
33
|
*/
|
|
34
|
-
export const AUTH_LOGOUT_DIALOG_CONTENT = '
|
|
34
|
+
export const AUTH_LOGOUT_DIALOG_CONTENT = 'common:logout.dialog.content';
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* @description 404 page title
|
|
38
38
|
* @localZh 404 页面未找到
|
|
39
39
|
* @localEn 404 Page Not Found
|
|
40
40
|
*/
|
|
41
|
-
export const PAGE_404_TITLE = '
|
|
41
|
+
export const PAGE_404_TITLE = 'common:404.title';
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* @description 404 page description
|
|
45
45
|
* @localZh 404 页面描述
|
|
46
46
|
* @localEn 404 Page Description
|
|
47
47
|
*/
|
|
48
|
-
export const PAGE_404_DESCRIPTION = '
|
|
48
|
+
export const PAGE_404_DESCRIPTION = 'common:404.description';
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
51
|
* @description 500 page title
|
|
52
52
|
* @localZh 500 页面错误
|
|
53
53
|
* @localEn 500 Page Error
|
|
54
54
|
*/
|
|
55
|
-
export const PAGE_500_TITLE = '
|
|
55
|
+
export const PAGE_500_TITLE = 'common:500.title';
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
58
|
* @description 500 page description
|
|
59
59
|
* @localZh 500 页面描述
|
|
60
60
|
* @localEn 500 Page Description
|
|
61
61
|
*/
|
|
62
|
-
export const PAGE_500_DESCRIPTION = '
|
|
62
|
+
export const PAGE_500_DESCRIPTION = 'common:500.description';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Chat send button text
|
|
3
|
+
* @localZh 发送
|
|
4
|
+
* @localEn Send
|
|
5
|
+
*/
|
|
6
|
+
export const COMPONENT_CHAT_SEND = 'component_chat:send';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @description Chat stop button text
|
|
10
|
+
* @localZh 停止
|
|
11
|
+
* @localEn Stop
|
|
12
|
+
*/
|
|
13
|
+
export const COMPONENT_CHAT_STOP = 'component_chat:stop';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @description Chat loading text
|
|
17
|
+
* @localZh 加载中...
|
|
18
|
+
* @localEn Loading...
|
|
19
|
+
*/
|
|
20
|
+
export const COMPONENT_CHAT_LOADING = 'component_chat:loading';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @description Chat input placeholder
|
|
24
|
+
* @localZh 输入消息... (Ctrl+Enter 发送)
|
|
25
|
+
* @localEn Type a message... (Ctrl+Enter to send)
|
|
26
|
+
*/
|
|
27
|
+
export const COMPONENT_CHAT_INPUT_PLACEHOLDER =
|
|
28
|
+
'component_chat:input_placeholder';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @description Chat empty messages
|
|
32
|
+
* @localZh 暂无对话
|
|
33
|
+
* @localEn No messages yet
|
|
34
|
+
*/
|
|
35
|
+
export const COMPONENT_CHAT_EMPTY = 'component_chat:empty';
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @description Chat start conversation
|
|
39
|
+
* @localZh 开始对话
|
|
40
|
+
* @localEn Start a conversation
|
|
41
|
+
*/
|
|
42
|
+
export const COMPONENT_CHAT_START = 'component_chat:start';
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @description Chat retry button
|
|
46
|
+
* @localZh 重试
|
|
47
|
+
* @localEn Retry
|
|
48
|
+
*/
|
|
49
|
+
export const COMPONENT_CHAT_RETRY = 'component_chat:retry';
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @description Chat duration label
|
|
53
|
+
* @localZh 耗时
|
|
54
|
+
* @localEn Duration
|
|
55
|
+
*/
|
|
56
|
+
export const COMPONENT_CHAT_DURATION = 'component_chat:duration';
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Message gateway test title
|
|
3
|
+
* @localZh 消息网关测试
|
|
4
|
+
* @localEn Message Gateway Test
|
|
5
|
+
*/
|
|
6
|
+
export const COMPONENT_MESSAGE_BASE_LIST_TITLE =
|
|
7
|
+
'component_message_base_list:title';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @description Message gateway test description
|
|
11
|
+
* @localZh 发送消息并等待网关响应
|
|
12
|
+
* @localEn Send messages and wait for gateway response
|
|
13
|
+
*/
|
|
14
|
+
export const COMPONENT_MESSAGE_BASE_LIST_DESCRIPTION =
|
|
15
|
+
'component_message_base_list:description';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @description No messages yet
|
|
19
|
+
* @localZh 暂无消息
|
|
20
|
+
* @localEn No messages yet
|
|
21
|
+
*/
|
|
22
|
+
export const COMPONENT_MESSAGE_BASE_LIST_NO_MESSAGES =
|
|
23
|
+
'component_message_base_list:no_messages';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @description Send your first message to get started
|
|
27
|
+
* @localZh 发送第一条消息开始使用
|
|
28
|
+
* @localEn Send your first message to get started
|
|
29
|
+
*/
|
|
30
|
+
export const COMPONENT_MESSAGE_BASE_LIST_GET_STARTED =
|
|
31
|
+
'component_message_base_list:get_started';
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @description User label
|
|
35
|
+
* @localZh 你
|
|
36
|
+
* @localEn You
|
|
37
|
+
*/
|
|
38
|
+
export const COMPONENT_MESSAGE_BASE_LIST_USER =
|
|
39
|
+
'component_message_base_list:user';
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @description Gateway label
|
|
43
|
+
* @localZh 网关
|
|
44
|
+
* @localEn Gateway
|
|
45
|
+
*/
|
|
46
|
+
export const COMPONENT_MESSAGE_BASE_LIST_GATEWAY =
|
|
47
|
+
'component_message_base_list:gateway';
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @description Processing status
|
|
51
|
+
* @localZh 处理中...
|
|
52
|
+
* @localEn Processing...
|
|
53
|
+
*/
|
|
54
|
+
export const COMPONENT_MESSAGE_BASE_LIST_PROCESSING =
|
|
55
|
+
'component_message_base_list:processing';
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @description Gateway failed label
|
|
59
|
+
* @localZh 网关(失败)
|
|
60
|
+
* @localEn Gateway (Failed)
|
|
61
|
+
*/
|
|
62
|
+
export const COMPONENT_MESSAGE_BASE_LIST_GATEWAY_FAILED =
|
|
63
|
+
'component_message_base_list:gateway_failed';
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @description Failed to send message
|
|
67
|
+
* @localZh 发送消息失败
|
|
68
|
+
* @localEn Failed to send message
|
|
69
|
+
*/
|
|
70
|
+
export const COMPONENT_MESSAGE_BASE_LIST_SEND_FAILED =
|
|
71
|
+
'component_message_base_list:send_failed';
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @description Gateway response label
|
|
75
|
+
* @localZh 网关响应
|
|
76
|
+
* @localEn Gateway Response
|
|
77
|
+
*/
|
|
78
|
+
export const COMPONENT_MESSAGE_BASE_LIST_GATEWAY_RESPONSE =
|
|
79
|
+
'component_message_base_list:gateway_response';
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @description Input placeholder
|
|
83
|
+
* @localZh 在此输入您的消息...
|
|
84
|
+
* @localEn Type your message here...
|
|
85
|
+
*/
|
|
86
|
+
export const COMPONENT_MESSAGE_BASE_LIST_INPUT_PLACEHOLDER =
|
|
87
|
+
'component_message_base_list:input_placeholder';
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @description Send button
|
|
91
|
+
* @localZh 发送
|
|
92
|
+
* @localEn Send
|
|
93
|
+
*/
|
|
94
|
+
export const COMPONENT_MESSAGE_BASE_LIST_SEND_BUTTON =
|
|
95
|
+
'component_message_base_list:send_button';
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @description Error handling tip
|
|
99
|
+
* @localZh 提示:尝试发送 "error" 或 "Failed" 来测试错误处理
|
|
100
|
+
* @localEn Tip: Try sending "error" or "Failed" to test error handling
|
|
101
|
+
*/
|
|
102
|
+
export const COMPONENT_MESSAGE_BASE_LIST_ERROR_TIP =
|
|
103
|
+
'component_message_base_list:error_tip';
|
|
@@ -1,10 +1,2 @@
|
|
|
1
1
|
export * from './common';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './page.about';
|
|
4
|
-
export * from './page.executor';
|
|
5
|
-
export * from './page.home';
|
|
6
|
-
export * from './page.identifiter';
|
|
7
|
-
export * from './page.jsonStorage';
|
|
8
|
-
export * from './page.login';
|
|
9
|
-
export * from './page.register';
|
|
10
|
-
export * from './page.request';
|
|
2
|
+
export * from './pages';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './page.about';
|
|
2
|
+
export * from './page.executor';
|
|
3
|
+
export * from './page.home';
|
|
4
|
+
export * from './page.identifiter';
|
|
5
|
+
export * from './page.jsonStorage';
|
|
6
|
+
export * from './page.login';
|
|
7
|
+
export * from './page.message';
|
|
8
|
+
export * from './page.register';
|
|
9
|
+
export * from './page.request';
|
|
@@ -3,179 +3,187 @@
|
|
|
3
3
|
* @localZh 关于我们
|
|
4
4
|
* @localEn About
|
|
5
5
|
*/
|
|
6
|
-
export const PAGE_ABOUT_TITLE = '
|
|
6
|
+
export const PAGE_ABOUT_TITLE = 'page_about:title';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @description About Page Description
|
|
10
10
|
* @localZh 了解更多关于我们的项目和团队信息
|
|
11
11
|
* @localEn Learn more about our project and team information
|
|
12
12
|
*/
|
|
13
|
-
export const PAGE_ABOUT_DESCRIPTION = '
|
|
13
|
+
export const PAGE_ABOUT_DESCRIPTION = 'page_about:description';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @description About page keywords
|
|
17
|
+
* @localZh 关于我们, 项目, 团队
|
|
18
|
+
* @localEn About, Project, Team
|
|
19
|
+
*/
|
|
20
|
+
export const PAGE_ABOUT_KEYWORDS = 'page_about:keywords';
|
|
14
21
|
|
|
15
22
|
/**
|
|
16
23
|
* @description Test message for About page
|
|
17
24
|
* @localZh 这是一条测试消息
|
|
18
25
|
* @localEn This is a test message
|
|
19
26
|
*/
|
|
20
|
-
export const
|
|
27
|
+
export const PAGE_ABOUT_MESSAGE_TEST = 'page_about:message.test';
|
|
21
28
|
|
|
22
29
|
/**
|
|
23
30
|
* @description Notification title for About page
|
|
24
31
|
* @localZh 通知标题
|
|
25
32
|
* @localEn Notification Title
|
|
26
33
|
*/
|
|
27
|
-
export const
|
|
34
|
+
export const PAGE_ABOUT_NOTIFICATION_TITLE = 'page_about:notification.title';
|
|
28
35
|
|
|
29
36
|
/**
|
|
30
37
|
* @description Notification description for About page
|
|
31
38
|
* @localZh 这是一条测试通知
|
|
32
39
|
* @localEn This is a test notification
|
|
33
40
|
*/
|
|
34
|
-
export const
|
|
41
|
+
export const PAGE_ABOUT_NOTIFICATION_DESC =
|
|
42
|
+
'page_about:notification.description';
|
|
35
43
|
|
|
36
44
|
/**
|
|
37
45
|
* @description Message button text for About page
|
|
38
46
|
* @localZh 显示 Message
|
|
39
47
|
* @localEn Show Message
|
|
40
48
|
*/
|
|
41
|
-
export const
|
|
49
|
+
export const PAGE_ABOUT_BTN_MESSAGE = 'page_about:button.message';
|
|
42
50
|
|
|
43
51
|
/**
|
|
44
52
|
* @description Message button text for About page
|
|
45
53
|
* @localZh 静态消息
|
|
46
54
|
* @localEn Static Message
|
|
47
55
|
*/
|
|
48
|
-
export const
|
|
56
|
+
export const PAGE_ABOUT_BTN_MESSAGE2 = 'page_about:button.message2';
|
|
49
57
|
|
|
50
58
|
/**
|
|
51
59
|
* @description Notification button text for About page
|
|
52
60
|
* @localZh 显示 Notification
|
|
53
61
|
* @localEn Show Notification
|
|
54
62
|
*/
|
|
55
|
-
export const
|
|
63
|
+
export const PAGE_ABOUT_BTN_NOTIFICATION = 'page_about:button.notification';
|
|
56
64
|
|
|
57
65
|
/**
|
|
58
66
|
* @description Notification button text for About page
|
|
59
67
|
* @localZh 静态通知
|
|
60
68
|
* @localEn Static Notification
|
|
61
69
|
*/
|
|
62
|
-
export const
|
|
70
|
+
export const PAGE_ABOUT_BTN_NOTIFICATION2 = 'page_about:button.notification2';
|
|
63
71
|
|
|
64
72
|
/**
|
|
65
73
|
* @description Tooltip text for About page
|
|
66
74
|
* @localZh 这是一个提示文本
|
|
67
75
|
* @localEn This is a tooltip text
|
|
68
76
|
*/
|
|
69
|
-
export const
|
|
77
|
+
export const PAGE_ABOUT_TOOLTIP_TEXT = 'page_about:tooltip.text';
|
|
70
78
|
|
|
71
79
|
/**
|
|
72
80
|
* @description Tooltip button text for About page
|
|
73
81
|
* @localZh 悬停显示 Tooltip
|
|
74
82
|
* @localEn Hover to show Tooltip
|
|
75
83
|
*/
|
|
76
|
-
export const
|
|
84
|
+
export const PAGE_ABOUT_BTN_TOOLTIP = 'page_about:button.tooltip';
|
|
77
85
|
|
|
78
86
|
/**
|
|
79
87
|
* @description Modal title for About page
|
|
80
88
|
* @localZh 模态框示例
|
|
81
89
|
* @localEn Modal Example
|
|
82
90
|
*/
|
|
83
|
-
export const
|
|
91
|
+
export const PAGE_ABOUT_MODAL_TITLE = 'page_about:modal.title';
|
|
84
92
|
|
|
85
93
|
/**
|
|
86
94
|
* @description Modal content for About page
|
|
87
95
|
* @localZh 这是一个模态框的内容
|
|
88
96
|
* @localEn This is modal content
|
|
89
97
|
*/
|
|
90
|
-
export const
|
|
98
|
+
export const PAGE_ABOUT_MODAL_CONTENT = 'page_about:modal.content';
|
|
91
99
|
|
|
92
100
|
/**
|
|
93
101
|
* @description Modal button text for About page
|
|
94
102
|
* @localZh 显示 Modal
|
|
95
103
|
* @localEn Show Modal
|
|
96
104
|
*/
|
|
97
|
-
export const
|
|
105
|
+
export const PAGE_ABOUT_BTN_MODAL = 'page_about:button.modal';
|
|
98
106
|
|
|
99
107
|
/**
|
|
100
108
|
* @description Drawer title for About page
|
|
101
109
|
* @localZh 抽屉示例
|
|
102
110
|
* @localEn Drawer Example
|
|
103
111
|
*/
|
|
104
|
-
export const
|
|
112
|
+
export const PAGE_ABOUT_DRAWER_TITLE = 'page_about:drawer.title';
|
|
105
113
|
|
|
106
114
|
/**
|
|
107
115
|
* @description Drawer content for About page
|
|
108
116
|
* @localZh 这是一个抽屉的内容
|
|
109
117
|
* @localEn This is drawer content
|
|
110
118
|
*/
|
|
111
|
-
export const
|
|
119
|
+
export const PAGE_ABOUT_DRAWER_CONTENT = 'page_about:drawer.content';
|
|
112
120
|
|
|
113
121
|
/**
|
|
114
122
|
* @description Drawer button text for About page
|
|
115
123
|
* @localZh 显示 Drawer
|
|
116
124
|
* @localEn Show Drawer
|
|
117
125
|
*/
|
|
118
|
-
export const
|
|
126
|
+
export const PAGE_ABOUT_BTN_DRAWER = 'page_about:button.drawer';
|
|
119
127
|
|
|
120
128
|
/**
|
|
121
129
|
* @description Popover content for About page
|
|
122
130
|
* @localZh 这是一个气泡卡片
|
|
123
131
|
* @localEn This is a popover card
|
|
124
132
|
*/
|
|
125
|
-
export const
|
|
133
|
+
export const PAGE_ABOUT_POPOVER_CONTENT = 'page_about:popover.content';
|
|
126
134
|
|
|
127
135
|
/**
|
|
128
136
|
* @description Popover title for About page
|
|
129
137
|
* @localZh Popover 标题
|
|
130
138
|
* @localEn Popover Title
|
|
131
139
|
*/
|
|
132
|
-
export const
|
|
140
|
+
export const PAGE_ABOUT_POPOVER_TITLE = 'page_about:popover.title';
|
|
133
141
|
|
|
134
142
|
/**
|
|
135
143
|
* @description Popover button text for About page
|
|
136
144
|
* @localZh 显示 Popover
|
|
137
145
|
* @localEn Show Popover
|
|
138
146
|
*/
|
|
139
|
-
export const
|
|
147
|
+
export const PAGE_ABOUT_BTN_POPOVER = 'page_about:button.popover';
|
|
140
148
|
|
|
141
149
|
/**
|
|
142
150
|
* @description Popconfirm title for About page
|
|
143
151
|
* @localZh 确认提示
|
|
144
152
|
* @localEn Confirmation
|
|
145
153
|
*/
|
|
146
|
-
export const
|
|
154
|
+
export const PAGE_ABOUT_POPCONFIRM_TITLE = 'page_about:popconfirm.title';
|
|
147
155
|
|
|
148
156
|
/**
|
|
149
157
|
* @description Popconfirm description for About page
|
|
150
158
|
* @localZh 您确定要执行此操作吗?
|
|
151
159
|
* @localEn Are you sure you want to perform this action?
|
|
152
160
|
*/
|
|
153
|
-
export const
|
|
161
|
+
export const PAGE_ABOUT_POPCONFIRM_DESC = 'page_about:popconfirm.description';
|
|
154
162
|
|
|
155
163
|
/**
|
|
156
164
|
* @description Popconfirm button text for About page
|
|
157
165
|
* @localZh 显示 Popconfirm
|
|
158
166
|
* @localEn Show Popconfirm
|
|
159
167
|
*/
|
|
160
|
-
export const
|
|
168
|
+
export const PAGE_ABOUT_BTN_POPCONFIRM = 'page_about:button.popconfirm';
|
|
161
169
|
|
|
162
170
|
/**
|
|
163
171
|
* @description Alert message for About page
|
|
164
172
|
* @localZh 这是一个警告提示
|
|
165
173
|
* @localEn This is a warning alert
|
|
166
174
|
*/
|
|
167
|
-
export const
|
|
175
|
+
export const PAGE_ABOUT_ALERT_MESSAGE = 'page_about:alert.message';
|
|
168
176
|
|
|
169
177
|
/**
|
|
170
178
|
* @description Alert ok text for About page
|
|
171
179
|
* @localZh 确定
|
|
172
180
|
* @localEn OK
|
|
173
181
|
*/
|
|
174
|
-
export const
|
|
182
|
+
export const PAGE_ABOUT_OK_TEXT = 'page_about:ok.text';
|
|
175
183
|
|
|
176
184
|
/**
|
|
177
185
|
* @description Alert cancel text for About page
|
|
178
186
|
* @localZh 取消
|
|
179
187
|
* @localEn Cancel
|
|
180
188
|
*/
|
|
181
|
-
export const
|
|
189
|
+
export const PAGE_ABOUT_CANCEL_TEXT = 'page_about:cancel.text';
|