@4399ywkf/cli 0.0.22 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +19 -637
- package/dist/templates/404/index.tsx +5 -0
- package/dist/templates/404/page.tsx +27 -0
- package/dist/templates/404.png +0 -0
- package/dist/templates/404.tsx +5 -0
- package/dist/templates/BaseLayout.tsx +15 -0
- package/dist/templates/ColorScales/ScaleRow.tsx +74 -0
- package/dist/templates/ColorScales/index.md +168 -0
- package/dist/templates/ColorScales/index.tsx +70 -0
- package/dist/templates/ColorScales/style.ts +42 -0
- package/dist/templates/ConfigProvider/index.md +63 -0
- package/dist/templates/ConfigProvider/index.tsx +42 -0
- package/dist/templates/ContentFormWrapper.tsx +11 -0
- package/dist/templates/ContentWrapper.module.less +137 -0
- package/dist/templates/ContentWrapper.tsx +13 -0
- package/dist/templates/ErrorBoundary/index.tsx +506 -0
- package/dist/templates/FontLoader/index.md +12 -0
- package/dist/templates/FontLoader/index.tsx +41 -0
- package/dist/templates/GlobalStyle/antdOverride.ts +89 -0
- package/dist/templates/GlobalStyle/global.ts +61 -0
- package/dist/templates/GlobalStyle/index.ts +10 -0
- package/dist/templates/Loading/__tests__/Loading.test.tsx +23 -0
- package/dist/templates/Loading/index.tsx +21 -0
- package/dist/templates/Loading.test.tsx +23 -0
- package/dist/templates/Locale.tsx +89 -0
- package/dist/templates/MainContentWrap.tsx +68 -0
- package/dist/templates/ManualSlave/ManualSlavePage.module.less +25 -0
- package/dist/templates/ManualSlave/ManualSlavePage.tsx +45 -0
- package/dist/templates/ManualSlave/index.ts +1 -0
- package/dist/templates/ManualSlavePage.module.less +25 -0
- package/dist/templates/ManualSlavePage.tsx +45 -0
- package/dist/templates/Meta.tsx +75 -0
- package/dist/templates/RequireAuth/RequireAuth.tsx +76 -0
- package/dist/templates/RequireAuth/index.ts +1 -0
- package/dist/templates/RequireAuth.tsx +76 -0
- package/dist/templates/RoutesConventionsRspackPlugin.js +100 -0
- package/dist/templates/ScaleRow.tsx +74 -0
- package/dist/templates/ThemeContext.tsx +132 -0
- package/dist/templates/ThemeProvider/GlobalStyle/antdOverride.ts +89 -0
- package/dist/templates/ThemeProvider/GlobalStyle/global.ts +61 -0
- package/dist/templates/ThemeProvider/GlobalStyle/index.ts +10 -0
- package/dist/templates/ThemeProvider/Meta.tsx +75 -0
- package/dist/templates/ThemeProvider/ThemeProvider.tsx +109 -0
- package/dist/templates/ThemeProvider/index.md +69 -0
- package/dist/templates/ThemeProvider/index.ts +3 -0
- package/dist/templates/ThemeProvider/type.ts +28 -0
- package/dist/templates/ThemeProvider.tsx +109 -0
- package/dist/templates/__mocks__/fileMock.js +1 -0
- package/dist/templates/__mocks__/styleMock.ts +1 -0
- package/dist/templates/__tests__/Loading.test.tsx +23 -0
- package/dist/templates/__tests__/example.test.ts +7 -0
- package/dist/templates/actions.ts +23 -0
- package/dist/templates/algorithms/darkAlgorithm.ts +47 -0
- package/dist/templates/algorithms/lightAlgorithm.ts +44 -0
- package/dist/templates/antdOverride.ts +89 -0
- package/dist/templates/antdTheme.ts +62 -0
- package/dist/templates/api.ts +5 -0
- package/dist/templates/app/.browserslistrc +5 -0
- package/dist/templates/app/.gitignore.tpl +30 -0
- package/dist/templates/app/.npmrc.tpl +2 -0
- package/dist/templates/app/.nvmrc +1 -0
- package/dist/templates/app/.vscode/settings.json +88 -0
- package/dist/templates/app/config/env/.env.development +5 -0
- package/dist/templates/app/config/env/.env.production +2 -0
- package/dist/templates/app/config/env/.env.public.tpl +31 -0
- package/dist/templates/app/config/jwt/index.ts +31 -0
- package/dist/templates/app/config/public/404.png +0 -0
- package/dist/templates/app/config/public/favicon.ico +0 -0
- package/dist/templates/app/config/public/images/banner_market_modal.webp +0 -0
- package/dist/templates/app/config/public/images/chatmode_chat_dark.webp +0 -0
- package/dist/templates/app/config/public/images/chatmode_chat_light.webp +0 -0
- package/dist/templates/app/config/public/images/chatmode_docs_dark.webp +0 -0
- package/dist/templates/app/config/public/images/chatmode_docs_light.webp +0 -0
- package/dist/templates/app/config/public/images/empty_topic_dark.webp +0 -0
- package/dist/templates/app/config/public/images/empty_topic_light.webp +0 -0
- package/dist/templates/app/config/public/images/screenshot_background.webp +0 -0
- package/dist/templates/app/config/public/images/theme_auto.webp +0 -0
- package/dist/templates/app/config/public/images/theme_dark.webp +0 -0
- package/dist/templates/app/config/public/images/theme_light.webp +0 -0
- package/dist/templates/app/config/public/index.html +29 -0
- package/dist/templates/app/config/request/index.ts +174 -0
- package/dist/templates/app/config/router/index.tsx +26 -0
- package/dist/templates/app/config/rspack/paths.js +12 -0
- package/dist/templates/app/config/rspack/plugins/RoutesConventionsRspackPlugin.js +100 -0
- package/dist/templates/app/config/rspack/rspack.config.mjs +186 -0
- package/dist/templates/app/config/rspack/rspack.dev.mjs +219 -0
- package/dist/templates/app/config/rspack/rspack.prod.mjs +254 -0
- package/dist/templates/app/config/sentry/sentry.config.ts +188 -0
- package/dist/templates/app/locales/en-US/common.json +74 -0
- package/dist/templates/app/locales/en-US/generate.json +71 -0
- package/dist/templates/app/locales/en-US/nav.json +10 -0
- package/dist/templates/app/locales/en-US/overview.json +6 -0
- package/dist/templates/app/locales/en-US/retopology.json +4 -0
- package/dist/templates/app/locales/en-US/rigging.json +21 -0
- package/dist/templates/app/locales/en-US/segmentation.json +4 -0
- package/dist/templates/app/locales/en-US/stylization.json +11 -0
- package/dist/templates/app/locales/en-US/texture.json +4 -0
- package/dist/templates/app/locales/en-US/threeModel.json +9 -0
- package/dist/templates/app/locales/en-US/toolbox.json +11 -0
- package/dist/templates/app/locales/zh-CN/common.json +74 -0
- package/dist/templates/app/locales/zh-CN/generate.json +71 -0
- package/dist/templates/app/locales/zh-CN/nav.json +10 -0
- package/dist/templates/app/locales/zh-CN/overview.json +6 -0
- package/dist/templates/app/locales/zh-CN/retopology.json +4 -0
- package/dist/templates/app/locales/zh-CN/rigging.json +21 -0
- package/dist/templates/app/locales/zh-CN/segmentation.json +4 -0
- package/dist/templates/app/locales/zh-CN/stylization.json +11 -0
- package/dist/templates/app/locales/zh-CN/texture.json +4 -0
- package/dist/templates/app/locales/zh-CN/threeModel.json +9 -0
- package/dist/templates/app/locales/zh-CN/toolbox.json +11 -0
- package/dist/templates/app/package.json.tpl +145 -0
- package/dist/templates/app/postcss.config.js +6 -0
- package/dist/templates/app/react-app-env.d.ts +14 -0
- package/dist/templates/app/scripts/convert-locales-to-json.js +47 -0
- package/dist/templates/app/src/__mocks__/fileMock.js +1 -0
- package/dist/templates/app/src/__mocks__/styleMock.ts +1 -0
- package/dist/templates/app/src/color/ColorScales/ScaleRow.tsx +74 -0
- package/dist/templates/app/src/color/ColorScales/index.md +168 -0
- package/dist/templates/app/src/color/ColorScales/index.tsx +70 -0
- package/dist/templates/app/src/color/ColorScales/style.ts +42 -0
- package/dist/templates/app/src/color/colors/blue.ts +66 -0
- package/dist/templates/app/src/color/colors/cyan.ts +66 -0
- package/dist/templates/app/src/color/colors/geekblue.ts +66 -0
- package/dist/templates/app/src/color/colors/gold.ts +66 -0
- package/dist/templates/app/src/color/colors/gray.ts +66 -0
- package/dist/templates/app/src/color/colors/green.ts +66 -0
- package/dist/templates/app/src/color/colors/index.ts +66 -0
- package/dist/templates/app/src/color/colors/lime.ts +66 -0
- package/dist/templates/app/src/color/colors/magenta.ts +66 -0
- package/dist/templates/app/src/color/colors/orange.ts +66 -0
- package/dist/templates/app/src/color/colors/primary.ts +66 -0
- package/dist/templates/app/src/color/colors/purple.ts +66 -0
- package/dist/templates/app/src/color/colors/red.ts +66 -0
- package/dist/templates/app/src/color/colors/volcano.ts +66 -0
- package/dist/templates/app/src/color/colors/yellow.ts +66 -0
- package/dist/templates/app/src/color/index.ts +4 -0
- package/dist/templates/app/src/color/neutrals/index.ts +30 -0
- package/dist/templates/app/src/color/neutrals/mauve.ts +66 -0
- package/dist/templates/app/src/color/neutrals/olive.ts +66 -0
- package/dist/templates/app/src/color/neutrals/sage.ts +66 -0
- package/dist/templates/app/src/color/neutrals/sand.ts +66 -0
- package/dist/templates/app/src/color/neutrals/slate.ts +66 -0
- package/dist/templates/app/src/color/types.ts +21 -0
- package/dist/templates/app/src/components/ConfigProvider/index.md +63 -0
- package/dist/templates/app/src/components/ConfigProvider/index.tsx +42 -0
- package/dist/templates/app/src/components/ErrorBoundary/index.tsx +506 -0
- package/dist/templates/app/src/components/FontLoader/index.md +12 -0
- package/dist/templates/app/src/components/FontLoader/index.tsx +41 -0
- package/dist/templates/app/src/components/Loading/__tests__/Loading.test.tsx +23 -0
- package/dist/templates/app/src/components/Loading/index.tsx +21 -0
- package/dist/templates/app/src/components/ManualSlave/ManualSlavePage.module.less +25 -0
- package/dist/templates/app/src/components/ManualSlave/ManualSlavePage.tsx +45 -0
- package/dist/templates/app/src/components/ManualSlave/index.ts +1 -0
- package/dist/templates/app/src/components/RequireAuth/RequireAuth.tsx +76 -0
- package/dist/templates/app/src/components/RequireAuth/index.ts +1 -0
- package/dist/templates/app/src/components/ThemeProvider/GlobalStyle/antdOverride.ts +89 -0
- package/dist/templates/app/src/components/ThemeProvider/GlobalStyle/global.ts +61 -0
- package/dist/templates/app/src/components/ThemeProvider/GlobalStyle/index.ts +10 -0
- package/dist/templates/app/src/components/ThemeProvider/Meta.tsx +75 -0
- package/dist/templates/app/src/components/ThemeProvider/ThemeProvider.tsx +109 -0
- package/dist/templates/app/src/components/ThemeProvider/index.md +69 -0
- package/dist/templates/app/src/components/ThemeProvider/index.ts +3 -0
- package/dist/templates/app/src/components/ThemeProvider/type.ts +28 -0
- package/dist/templates/app/src/const/constants.ts +0 -0
- package/dist/templates/app/src/const/locale.ts +9 -0
- package/dist/templates/app/src/const/system.ts +1 -0
- package/dist/templates/app/src/const/theme.ts +5 -0
- package/dist/templates/app/src/const/url.ts +1 -0
- package/dist/templates/app/src/hooks/useRouteTitle.tsx +36 -0
- package/dist/templates/app/src/hooks/useSentry.ts +92 -0
- package/dist/templates/app/src/index.css +2 -0
- package/dist/templates/app/src/index.tsx +56 -0
- package/dist/templates/app/src/layout/BaseLayout.tsx +15 -0
- package/dist/templates/app/src/layout/ContentFormWrapper.tsx +11 -0
- package/dist/templates/app/src/layout/ContentWrapper.module.less +137 -0
- package/dist/templates/app/src/layout/ContentWrapper.tsx +13 -0
- package/dist/templates/app/src/layout/Locale.tsx +89 -0
- package/dist/templates/app/src/layout/MainContentWrap.tsx +68 -0
- package/dist/templates/app/src/layout/ThemeContext.tsx +132 -0
- package/dist/templates/app/src/loading.tsx +52 -0
- package/dist/templates/app/src/locales/create.ts +56 -0
- package/dist/templates/app/src/locales/default/chat.ts +455 -0
- package/dist/templates/app/src/locales/default/index.ts +7 -0
- package/dist/templates/app/src/locales/resources.ts +104 -0
- package/dist/templates/app/src/pages/404/index.tsx +5 -0
- package/dist/templates/app/src/pages/404/page.tsx +27 -0
- package/dist/templates/app/src/pages/404.tsx +5 -0
- package/dist/templates/app/src/pages/base/index.tsx +32 -0
- package/dist/templates/app/src/pages/base/layout.tsx +6 -0
- package/dist/templates/app/src/pages/base/page.tsx +25 -0
- package/dist/templates/app/src/pages/index.css +282 -0
- package/dist/templates/app/src/pages/index.tsx +5 -0
- package/dist/templates/app/src/routes.tsx +18 -0
- package/dist/templates/app/src/setupTests.ts +39 -0
- package/dist/templates/app/src/styles/antdOverride.ts +24 -0
- package/dist/templates/app/src/styles/customTheme.ts +70 -0
- package/dist/templates/app/src/styles/global.ts +53 -0
- package/dist/templates/app/src/styles/highlighter.ts +34 -0
- package/dist/templates/app/src/styles/index.ts +23 -0
- package/dist/templates/app/src/styles/mermaid.ts +7 -0
- package/dist/templates/app/src/styles/text.ts +10 -0
- package/dist/templates/app/src/styles/theme/algorithms/darkAlgorithm.ts +47 -0
- package/dist/templates/app/src/styles/theme/algorithms/lightAlgorithm.ts +44 -0
- package/dist/templates/app/src/styles/theme/antdTheme.ts +62 -0
- package/dist/templates/app/src/styles/theme/customStylish.ts +189 -0
- package/dist/templates/app/src/styles/theme/customToken.ts +93 -0
- package/dist/templates/app/src/styles/theme/generateColorPalette.ts +59 -0
- package/dist/templates/app/src/styles/theme/token/base.ts +16 -0
- package/dist/templates/app/src/styles/theme/token/dark.ts +60 -0
- package/dist/templates/app/src/styles/theme/token/light.ts +60 -0
- package/dist/templates/app/src/test-utils.tsx +18 -0
- package/dist/templates/app/src/types/customStylish.ts +20 -0
- package/dist/templates/app/src/types/customToken.ts +70 -0
- package/dist/templates/app/src/types/index.ts +21 -0
- package/dist/templates/app/src/types/routes.ts +70 -0
- package/dist/templates/app/src/utils/__tests__/example.test.ts +7 -0
- package/dist/templates/app/src/utils/convert.ts +40 -0
- package/dist/templates/app/src/utils/cookie.ts +25 -0
- package/dist/templates/app/src/utils/copyToClipboard.ts +13 -0
- package/dist/templates/app/src/utils/difference.ts +26 -0
- package/dist/templates/app/src/utils/env.ts +3 -0
- package/dist/templates/app/src/utils/format.ts +21 -0
- package/dist/templates/app/src/utils/genCdnUrl.ts +30 -0
- package/dist/templates/app/src/utils/getMicroApp.ts +39 -0
- package/dist/templates/app/src/utils/index.ts +1 -0
- package/dist/templates/app/src/utils/locale.ts +46 -0
- package/dist/templates/app/src/utils/sentry.ts +187 -0
- package/dist/templates/app/src/utils/sentryDecorators.ts +34 -0
- package/dist/templates/app/src/utils/updateVersion.ts +186 -0
- package/dist/templates/app/store/auth/index.tsx +82 -0
- package/dist/templates/app/store/auth/indexApi.tsx +11 -0
- package/dist/templates/app/store/global/index.tsx +133 -0
- package/dist/templates/app/store/global/indexApi.tsx +19 -0
- package/dist/templates/app/store/global/types.ts +62 -0
- package/dist/templates/app/store/middleware/createDevtools.ts +23 -0
- package/dist/templates/app/store/middleware/createHyperStorage/index.ts +127 -0
- package/dist/templates/app/store/middleware/createHyperStorage/indexedDB.ts +31 -0
- package/dist/templates/app/store/middleware/createHyperStorage/keyMapper.ts +57 -0
- package/dist/templates/app/store/middleware/createHyperStorage/localStorage.ts +23 -0
- package/dist/templates/app/store/middleware/createHyperStorage/type.ts +27 -0
- package/dist/templates/app/store/middleware/createHyperStorage/urlStorage.ts +85 -0
- package/dist/templates/app/store/theme/index.ts +25 -0
- package/dist/templates/app/store/types.ts +83 -0
- package/dist/templates/app/store/user/index.tsx +1 -0
- package/dist/templates/app/store/user/indexApi.tsx +5 -0
- package/dist/templates/app/store/user/initialState.ts +15 -0
- package/dist/templates/app/store/user/slices/profile/actions.ts +20 -0
- package/dist/templates/app/store/user/slices/profile/api.ts +5 -0
- package/dist/templates/app/store/user/slices/profile/initialState.ts +14 -0
- package/dist/templates/app/store/user/slices/settings/actions.ts +23 -0
- package/dist/templates/app/store/user/slices/settings/initialState.ts +32 -0
- package/dist/templates/app/store/user/store.ts +39 -0
- package/dist/templates/app/tailwind.config.js +13 -0
- package/dist/templates/app/tsconfig.json +27 -0
- package/dist/templates/app//347/277/273/350/257/221.md +9 -0
- package/dist/templates/auth/index.tsx +82 -0
- package/dist/templates/auth/indexApi.tsx +11 -0
- package/dist/templates/banner_market_modal.webp +0 -0
- package/dist/templates/base/index.tsx +32 -0
- package/dist/templates/base/layout.tsx +6 -0
- package/dist/templates/base/page.tsx +25 -0
- package/dist/templates/base.ts +16 -0
- package/dist/templates/blue.ts +66 -0
- package/dist/templates/chat.ts +455 -0
- package/dist/templates/chatmode_chat_dark.webp +0 -0
- package/dist/templates/chatmode_chat_light.webp +0 -0
- package/dist/templates/chatmode_docs_dark.webp +0 -0
- package/dist/templates/chatmode_docs_light.webp +0 -0
- package/dist/templates/color/ColorScales/ScaleRow.tsx +74 -0
- package/dist/templates/color/ColorScales/index.md +168 -0
- package/dist/templates/color/ColorScales/index.tsx +70 -0
- package/dist/templates/color/ColorScales/style.ts +42 -0
- package/dist/templates/color/colors/blue.ts +66 -0
- package/dist/templates/color/colors/cyan.ts +66 -0
- package/dist/templates/color/colors/geekblue.ts +66 -0
- package/dist/templates/color/colors/gold.ts +66 -0
- package/dist/templates/color/colors/gray.ts +66 -0
- package/dist/templates/color/colors/green.ts +66 -0
- package/dist/templates/color/colors/index.ts +66 -0
- package/dist/templates/color/colors/lime.ts +66 -0
- package/dist/templates/color/colors/magenta.ts +66 -0
- package/dist/templates/color/colors/orange.ts +66 -0
- package/dist/templates/color/colors/primary.ts +66 -0
- package/dist/templates/color/colors/purple.ts +66 -0
- package/dist/templates/color/colors/red.ts +66 -0
- package/dist/templates/color/colors/volcano.ts +66 -0
- package/dist/templates/color/colors/yellow.ts +66 -0
- package/dist/templates/color/index.ts +4 -0
- package/dist/templates/color/neutrals/index.ts +30 -0
- package/dist/templates/color/neutrals/mauve.ts +66 -0
- package/dist/templates/color/neutrals/olive.ts +66 -0
- package/dist/templates/color/neutrals/sage.ts +66 -0
- package/dist/templates/color/neutrals/sand.ts +66 -0
- package/dist/templates/color/neutrals/slate.ts +66 -0
- package/dist/templates/color/types.ts +21 -0
- package/dist/templates/colors/blue.ts +66 -0
- package/dist/templates/colors/cyan.ts +66 -0
- package/dist/templates/colors/geekblue.ts +66 -0
- package/dist/templates/colors/gold.ts +66 -0
- package/dist/templates/colors/gray.ts +66 -0
- package/dist/templates/colors/green.ts +66 -0
- package/dist/templates/colors/index.ts +66 -0
- package/dist/templates/colors/lime.ts +66 -0
- package/dist/templates/colors/magenta.ts +66 -0
- package/dist/templates/colors/orange.ts +66 -0
- package/dist/templates/colors/primary.ts +66 -0
- package/dist/templates/colors/purple.ts +66 -0
- package/dist/templates/colors/red.ts +66 -0
- package/dist/templates/colors/volcano.ts +66 -0
- package/dist/templates/colors/yellow.ts +66 -0
- package/dist/templates/common.json +74 -0
- package/dist/templates/components/ConfigProvider/index.md +63 -0
- package/dist/templates/components/ConfigProvider/index.tsx +42 -0
- package/dist/templates/components/ErrorBoundary/index.tsx +506 -0
- package/dist/templates/components/FontLoader/index.md +12 -0
- package/dist/templates/components/FontLoader/index.tsx +41 -0
- package/dist/templates/components/Loading/__tests__/Loading.test.tsx +23 -0
- package/dist/templates/components/Loading/index.tsx +21 -0
- package/dist/templates/components/ManualSlave/ManualSlavePage.module.less +25 -0
- package/dist/templates/components/ManualSlave/ManualSlavePage.tsx +45 -0
- package/dist/templates/components/ManualSlave/index.ts +1 -0
- package/dist/templates/components/RequireAuth/RequireAuth.tsx +76 -0
- package/dist/templates/components/RequireAuth/index.ts +1 -0
- package/dist/templates/components/ThemeProvider/GlobalStyle/antdOverride.ts +89 -0
- package/dist/templates/components/ThemeProvider/GlobalStyle/global.ts +61 -0
- package/dist/templates/components/ThemeProvider/GlobalStyle/index.ts +10 -0
- package/dist/templates/components/ThemeProvider/Meta.tsx +75 -0
- package/dist/templates/components/ThemeProvider/ThemeProvider.tsx +109 -0
- package/dist/templates/components/ThemeProvider/index.md +69 -0
- package/dist/templates/components/ThemeProvider/index.ts +3 -0
- package/dist/templates/components/ThemeProvider/type.ts +28 -0
- package/dist/templates/config/env/.env.development +5 -0
- package/dist/templates/config/env/.env.production +2 -0
- package/dist/templates/config/env/.env.public.tpl +31 -0
- package/dist/templates/config/jwt/index.ts +31 -0
- package/dist/templates/config/public/404.png +0 -0
- package/dist/templates/config/public/favicon.ico +0 -0
- package/dist/templates/config/public/images/banner_market_modal.webp +0 -0
- package/dist/templates/config/public/images/chatmode_chat_dark.webp +0 -0
- package/dist/templates/config/public/images/chatmode_chat_light.webp +0 -0
- package/dist/templates/config/public/images/chatmode_docs_dark.webp +0 -0
- package/dist/templates/config/public/images/chatmode_docs_light.webp +0 -0
- package/dist/templates/config/public/images/empty_topic_dark.webp +0 -0
- package/dist/templates/config/public/images/empty_topic_light.webp +0 -0
- package/dist/templates/config/public/images/screenshot_background.webp +0 -0
- package/dist/templates/config/public/images/theme_auto.webp +0 -0
- package/dist/templates/config/public/images/theme_dark.webp +0 -0
- package/dist/templates/config/public/images/theme_light.webp +0 -0
- package/dist/templates/config/public/index.html +29 -0
- package/dist/templates/config/request/index.ts +174 -0
- package/dist/templates/config/router/index.tsx +26 -0
- package/dist/templates/config/rspack/paths.js +12 -0
- package/dist/templates/config/rspack/plugins/RoutesConventionsRspackPlugin.js +100 -0
- package/dist/templates/config/rspack/rspack.config.mjs +186 -0
- package/dist/templates/config/rspack/rspack.dev.mjs +219 -0
- package/dist/templates/config/rspack/rspack.prod.mjs +254 -0
- package/dist/templates/config/sentry/sentry.config.ts +188 -0
- package/dist/templates/const/constants.ts +0 -0
- package/dist/templates/const/locale.ts +9 -0
- package/dist/templates/const/system.ts +1 -0
- package/dist/templates/const/theme.ts +5 -0
- package/dist/templates/const/url.ts +1 -0
- package/dist/templates/constants.ts +0 -0
- package/dist/templates/convert-locales-to-json.js +47 -0
- package/dist/templates/convert.ts +40 -0
- package/dist/templates/cookie.ts +25 -0
- package/dist/templates/copyToClipboard.ts +13 -0
- package/dist/templates/create.ts +56 -0
- package/dist/templates/createDevtools.ts +23 -0
- package/dist/templates/createHyperStorage/index.ts +127 -0
- package/dist/templates/createHyperStorage/indexedDB.ts +31 -0
- package/dist/templates/createHyperStorage/keyMapper.ts +57 -0
- package/dist/templates/createHyperStorage/localStorage.ts +23 -0
- package/dist/templates/createHyperStorage/type.ts +27 -0
- package/dist/templates/createHyperStorage/urlStorage.ts +85 -0
- package/dist/templates/customStylish.ts +189 -0
- package/dist/templates/customTheme.ts +70 -0
- package/dist/templates/customToken.ts +93 -0
- package/dist/templates/cyan.ts +66 -0
- package/dist/templates/dark.ts +60 -0
- package/dist/templates/darkAlgorithm.ts +47 -0
- package/dist/templates/default/chat.ts +455 -0
- package/dist/templates/default/index.ts +7 -0
- package/dist/templates/difference.ts +26 -0
- package/dist/templates/empty_topic_dark.webp +0 -0
- package/dist/templates/empty_topic_light.webp +0 -0
- package/dist/templates/en-US/common.json +74 -0
- package/dist/templates/en-US/generate.json +71 -0
- package/dist/templates/en-US/nav.json +10 -0
- package/dist/templates/en-US/overview.json +6 -0
- package/dist/templates/en-US/retopology.json +4 -0
- package/dist/templates/en-US/rigging.json +21 -0
- package/dist/templates/en-US/segmentation.json +4 -0
- package/dist/templates/en-US/stylization.json +11 -0
- package/dist/templates/en-US/texture.json +4 -0
- package/dist/templates/en-US/threeModel.json +9 -0
- package/dist/templates/en-US/toolbox.json +11 -0
- package/dist/templates/env/.env.development +5 -0
- package/dist/templates/env/.env.production +2 -0
- package/dist/templates/env/.env.public.tpl +31 -0
- package/dist/templates/env.ts +3 -0
- package/dist/templates/example.test.ts +7 -0
- package/dist/templates/favicon.ico +0 -0
- package/dist/templates/fileMock.js +1 -0
- package/dist/templates/format.ts +21 -0
- package/dist/templates/geekblue.ts +66 -0
- package/dist/templates/genCdnUrl.ts +30 -0
- package/dist/templates/generate.json +71 -0
- package/dist/templates/generateColorPalette.ts +59 -0
- package/dist/templates/getMicroApp.ts +39 -0
- package/dist/templates/global/index.tsx +133 -0
- package/dist/templates/global/indexApi.tsx +19 -0
- package/dist/templates/global/types.ts +62 -0
- package/dist/templates/global.ts +61 -0
- package/dist/templates/gold.ts +66 -0
- package/dist/templates/gray.ts +66 -0
- package/dist/templates/green.ts +66 -0
- package/dist/templates/highlighter.ts +34 -0
- package/dist/templates/hooks/useRouteTitle.tsx +36 -0
- package/dist/templates/hooks/useSentry.ts +92 -0
- package/dist/templates/images/banner_market_modal.webp +0 -0
- package/dist/templates/images/chatmode_chat_dark.webp +0 -0
- package/dist/templates/images/chatmode_chat_light.webp +0 -0
- package/dist/templates/images/chatmode_docs_dark.webp +0 -0
- package/dist/templates/images/chatmode_docs_light.webp +0 -0
- package/dist/templates/images/empty_topic_dark.webp +0 -0
- package/dist/templates/images/empty_topic_light.webp +0 -0
- package/dist/templates/images/screenshot_background.webp +0 -0
- package/dist/templates/images/theme_auto.webp +0 -0
- package/dist/templates/images/theme_dark.webp +0 -0
- package/dist/templates/images/theme_light.webp +0 -0
- package/dist/templates/index.css +282 -0
- package/dist/templates/index.html +29 -0
- package/dist/templates/index.md +69 -0
- package/dist/templates/index.ts +10 -0
- package/dist/templates/index.tsx +32 -0
- package/dist/templates/indexApi.tsx +5 -0
- package/dist/templates/indexedDB.ts +31 -0
- package/dist/templates/initialState.ts +32 -0
- package/dist/templates/jwt/index.ts +31 -0
- package/dist/templates/keyMapper.ts +57 -0
- package/dist/templates/layout/BaseLayout.tsx +15 -0
- package/dist/templates/layout/ContentFormWrapper.tsx +11 -0
- package/dist/templates/layout/ContentWrapper.module.less +137 -0
- package/dist/templates/layout/ContentWrapper.tsx +13 -0
- package/dist/templates/layout/Locale.tsx +89 -0
- package/dist/templates/layout/MainContentWrap.tsx +68 -0
- package/dist/templates/layout/ThemeContext.tsx +132 -0
- package/dist/templates/layout.tsx +6 -0
- package/dist/templates/light.ts +60 -0
- package/dist/templates/lightAlgorithm.ts +44 -0
- package/dist/templates/lime.ts +66 -0
- package/dist/templates/loading.tsx +52 -0
- package/dist/templates/localStorage.ts +23 -0
- package/dist/templates/locale.ts +46 -0
- package/dist/templates/locales/create.ts +56 -0
- package/dist/templates/locales/default/chat.ts +455 -0
- package/dist/templates/locales/default/index.ts +7 -0
- package/dist/templates/locales/en-US/common.json +74 -0
- package/dist/templates/locales/en-US/generate.json +71 -0
- package/dist/templates/locales/en-US/nav.json +10 -0
- package/dist/templates/locales/en-US/overview.json +6 -0
- package/dist/templates/locales/en-US/retopology.json +4 -0
- package/dist/templates/locales/en-US/rigging.json +21 -0
- package/dist/templates/locales/en-US/segmentation.json +4 -0
- package/dist/templates/locales/en-US/stylization.json +11 -0
- package/dist/templates/locales/en-US/texture.json +4 -0
- package/dist/templates/locales/en-US/threeModel.json +9 -0
- package/dist/templates/locales/en-US/toolbox.json +11 -0
- package/dist/templates/locales/resources.ts +104 -0
- package/dist/templates/locales/zh-CN/common.json +74 -0
- package/dist/templates/locales/zh-CN/generate.json +71 -0
- package/dist/templates/locales/zh-CN/nav.json +10 -0
- package/dist/templates/locales/zh-CN/overview.json +6 -0
- package/dist/templates/locales/zh-CN/retopology.json +4 -0
- package/dist/templates/locales/zh-CN/rigging.json +21 -0
- package/dist/templates/locales/zh-CN/segmentation.json +4 -0
- package/dist/templates/locales/zh-CN/stylization.json +11 -0
- package/dist/templates/locales/zh-CN/texture.json +4 -0
- package/dist/templates/locales/zh-CN/threeModel.json +9 -0
- package/dist/templates/locales/zh-CN/toolbox.json +11 -0
- package/dist/templates/magenta.ts +66 -0
- package/dist/templates/mauve.ts +66 -0
- package/dist/templates/mermaid.ts +7 -0
- package/dist/templates/middleware/createDevtools.ts +23 -0
- package/dist/templates/middleware/createHyperStorage/index.ts +127 -0
- package/dist/templates/middleware/createHyperStorage/indexedDB.ts +31 -0
- package/dist/templates/middleware/createHyperStorage/keyMapper.ts +57 -0
- package/dist/templates/middleware/createHyperStorage/localStorage.ts +23 -0
- package/dist/templates/middleware/createHyperStorage/type.ts +27 -0
- package/dist/templates/middleware/createHyperStorage/urlStorage.ts +85 -0
- package/dist/templates/nav.json +10 -0
- package/dist/templates/neutrals/index.ts +30 -0
- package/dist/templates/neutrals/mauve.ts +66 -0
- package/dist/templates/neutrals/olive.ts +66 -0
- package/dist/templates/neutrals/sage.ts +66 -0
- package/dist/templates/neutrals/sand.ts +66 -0
- package/dist/templates/neutrals/slate.ts +66 -0
- package/dist/templates/olive.ts +66 -0
- package/dist/templates/orange.ts +66 -0
- package/dist/templates/overview.json +6 -0
- package/dist/templates/package.json.tpl +145 -0
- package/dist/templates/page.tsx +25 -0
- package/dist/templates/pages/404/index.tsx +5 -0
- package/dist/templates/pages/404/page.tsx +27 -0
- package/dist/templates/pages/404.tsx +5 -0
- package/dist/templates/pages/base/index.tsx +32 -0
- package/dist/templates/pages/base/layout.tsx +6 -0
- package/dist/templates/pages/base/page.tsx +25 -0
- package/dist/templates/pages/index.css +282 -0
- package/dist/templates/pages/index.tsx +5 -0
- package/dist/templates/paths.js +12 -0
- package/dist/templates/plugins/RoutesConventionsRspackPlugin.js +100 -0
- package/dist/templates/postcss.config.js +6 -0
- package/dist/templates/primary.ts +66 -0
- package/dist/templates/profile/actions.ts +20 -0
- package/dist/templates/profile/api.ts +5 -0
- package/dist/templates/profile/initialState.ts +14 -0
- package/dist/templates/public/404.png +0 -0
- package/dist/templates/public/favicon.ico +0 -0
- package/dist/templates/public/images/banner_market_modal.webp +0 -0
- package/dist/templates/public/images/chatmode_chat_dark.webp +0 -0
- package/dist/templates/public/images/chatmode_chat_light.webp +0 -0
- package/dist/templates/public/images/chatmode_docs_dark.webp +0 -0
- package/dist/templates/public/images/chatmode_docs_light.webp +0 -0
- package/dist/templates/public/images/empty_topic_dark.webp +0 -0
- package/dist/templates/public/images/empty_topic_light.webp +0 -0
- package/dist/templates/public/images/screenshot_background.webp +0 -0
- package/dist/templates/public/images/theme_auto.webp +0 -0
- package/dist/templates/public/images/theme_dark.webp +0 -0
- package/dist/templates/public/images/theme_light.webp +0 -0
- package/dist/templates/public/index.html +29 -0
- package/dist/templates/purple.ts +66 -0
- package/dist/templates/react-app-env.d.ts +14 -0
- package/dist/templates/red.ts +66 -0
- package/dist/templates/request/index.ts +174 -0
- package/dist/templates/resources.ts +104 -0
- package/dist/templates/retopology.json +4 -0
- package/dist/templates/rigging.json +21 -0
- package/dist/templates/router/index.tsx +26 -0
- package/dist/templates/routes.ts +70 -0
- package/dist/templates/routes.tsx +18 -0
- package/dist/templates/rspack/paths.js +12 -0
- package/dist/templates/rspack/plugins/RoutesConventionsRspackPlugin.js +100 -0
- package/dist/templates/rspack/rspack.config.mjs +186 -0
- package/dist/templates/rspack/rspack.dev.mjs +219 -0
- package/dist/templates/rspack/rspack.prod.mjs +254 -0
- package/dist/templates/rspack.config.mjs +186 -0
- package/dist/templates/rspack.dev.mjs +219 -0
- package/dist/templates/rspack.prod.mjs +254 -0
- package/dist/templates/sage.ts +66 -0
- package/dist/templates/sand.ts +66 -0
- package/dist/templates/screenshot_background.webp +0 -0
- package/dist/templates/scripts/convert-locales-to-json.js +47 -0
- package/dist/templates/segmentation.json +4 -0
- package/dist/templates/sentry/sentry.config.ts +188 -0
- package/dist/templates/sentry.config.ts +188 -0
- package/dist/templates/sentry.ts +187 -0
- package/dist/templates/sentryDecorators.ts +34 -0
- package/dist/templates/settings/actions.ts +23 -0
- package/dist/templates/settings/initialState.ts +32 -0
- package/dist/templates/setupTests.ts +39 -0
- package/dist/templates/slate.ts +66 -0
- package/dist/templates/slices/profile/actions.ts +20 -0
- package/dist/templates/slices/profile/api.ts +5 -0
- package/dist/templates/slices/profile/initialState.ts +14 -0
- package/dist/templates/slices/settings/actions.ts +23 -0
- package/dist/templates/slices/settings/initialState.ts +32 -0
- package/dist/templates/src/__mocks__/fileMock.js +1 -0
- package/dist/templates/src/__mocks__/styleMock.ts +1 -0
- package/dist/templates/src/color/ColorScales/ScaleRow.tsx +74 -0
- package/dist/templates/src/color/ColorScales/index.md +168 -0
- package/dist/templates/src/color/ColorScales/index.tsx +70 -0
- package/dist/templates/src/color/ColorScales/style.ts +42 -0
- package/dist/templates/src/color/colors/blue.ts +66 -0
- package/dist/templates/src/color/colors/cyan.ts +66 -0
- package/dist/templates/src/color/colors/geekblue.ts +66 -0
- package/dist/templates/src/color/colors/gold.ts +66 -0
- package/dist/templates/src/color/colors/gray.ts +66 -0
- package/dist/templates/src/color/colors/green.ts +66 -0
- package/dist/templates/src/color/colors/index.ts +66 -0
- package/dist/templates/src/color/colors/lime.ts +66 -0
- package/dist/templates/src/color/colors/magenta.ts +66 -0
- package/dist/templates/src/color/colors/orange.ts +66 -0
- package/dist/templates/src/color/colors/primary.ts +66 -0
- package/dist/templates/src/color/colors/purple.ts +66 -0
- package/dist/templates/src/color/colors/red.ts +66 -0
- package/dist/templates/src/color/colors/volcano.ts +66 -0
- package/dist/templates/src/color/colors/yellow.ts +66 -0
- package/dist/templates/src/color/index.ts +4 -0
- package/dist/templates/src/color/neutrals/index.ts +30 -0
- package/dist/templates/src/color/neutrals/mauve.ts +66 -0
- package/dist/templates/src/color/neutrals/olive.ts +66 -0
- package/dist/templates/src/color/neutrals/sage.ts +66 -0
- package/dist/templates/src/color/neutrals/sand.ts +66 -0
- package/dist/templates/src/color/neutrals/slate.ts +66 -0
- package/dist/templates/src/color/types.ts +21 -0
- package/dist/templates/src/components/ConfigProvider/index.md +63 -0
- package/dist/templates/src/components/ConfigProvider/index.tsx +42 -0
- package/dist/templates/src/components/ErrorBoundary/index.tsx +506 -0
- package/dist/templates/src/components/FontLoader/index.md +12 -0
- package/dist/templates/src/components/FontLoader/index.tsx +41 -0
- package/dist/templates/src/components/Loading/__tests__/Loading.test.tsx +23 -0
- package/dist/templates/src/components/Loading/index.tsx +21 -0
- package/dist/templates/src/components/ManualSlave/ManualSlavePage.module.less +25 -0
- package/dist/templates/src/components/ManualSlave/ManualSlavePage.tsx +45 -0
- package/dist/templates/src/components/ManualSlave/index.ts +1 -0
- package/dist/templates/src/components/RequireAuth/RequireAuth.tsx +76 -0
- package/dist/templates/src/components/RequireAuth/index.ts +1 -0
- package/dist/templates/src/components/ThemeProvider/GlobalStyle/antdOverride.ts +89 -0
- package/dist/templates/src/components/ThemeProvider/GlobalStyle/global.ts +61 -0
- package/dist/templates/src/components/ThemeProvider/GlobalStyle/index.ts +10 -0
- package/dist/templates/src/components/ThemeProvider/Meta.tsx +75 -0
- package/dist/templates/src/components/ThemeProvider/ThemeProvider.tsx +109 -0
- package/dist/templates/src/components/ThemeProvider/index.md +69 -0
- package/dist/templates/src/components/ThemeProvider/index.ts +3 -0
- package/dist/templates/src/components/ThemeProvider/type.ts +28 -0
- package/dist/templates/src/const/constants.ts +0 -0
- package/dist/templates/src/const/locale.ts +9 -0
- package/dist/templates/src/const/system.ts +1 -0
- package/dist/templates/src/const/theme.ts +5 -0
- package/dist/templates/src/const/url.ts +1 -0
- package/dist/templates/src/hooks/useRouteTitle.tsx +36 -0
- package/dist/templates/src/hooks/useSentry.ts +92 -0
- package/dist/templates/src/index.css +2 -0
- package/dist/templates/src/index.tsx +56 -0
- package/dist/templates/src/layout/BaseLayout.tsx +15 -0
- package/dist/templates/src/layout/ContentFormWrapper.tsx +11 -0
- package/dist/templates/src/layout/ContentWrapper.module.less +137 -0
- package/dist/templates/src/layout/ContentWrapper.tsx +13 -0
- package/dist/templates/src/layout/Locale.tsx +89 -0
- package/dist/templates/src/layout/MainContentWrap.tsx +68 -0
- package/dist/templates/src/layout/ThemeContext.tsx +132 -0
- package/dist/templates/src/loading.tsx +52 -0
- package/dist/templates/src/locales/create.ts +56 -0
- package/dist/templates/src/locales/default/chat.ts +455 -0
- package/dist/templates/src/locales/default/index.ts +7 -0
- package/dist/templates/src/locales/resources.ts +104 -0
- package/dist/templates/src/pages/404/index.tsx +5 -0
- package/dist/templates/src/pages/404/page.tsx +27 -0
- package/dist/templates/src/pages/404.tsx +5 -0
- package/dist/templates/src/pages/base/index.tsx +32 -0
- package/dist/templates/src/pages/base/layout.tsx +6 -0
- package/dist/templates/src/pages/base/page.tsx +25 -0
- package/dist/templates/src/pages/index.css +282 -0
- package/dist/templates/src/pages/index.tsx +5 -0
- package/dist/templates/src/routes.tsx +18 -0
- package/dist/templates/src/setupTests.ts +39 -0
- package/dist/templates/src/styles/antdOverride.ts +24 -0
- package/dist/templates/src/styles/customTheme.ts +70 -0
- package/dist/templates/src/styles/global.ts +53 -0
- package/dist/templates/src/styles/highlighter.ts +34 -0
- package/dist/templates/src/styles/index.ts +23 -0
- package/dist/templates/src/styles/mermaid.ts +7 -0
- package/dist/templates/src/styles/text.ts +10 -0
- package/dist/templates/src/styles/theme/algorithms/darkAlgorithm.ts +47 -0
- package/dist/templates/src/styles/theme/algorithms/lightAlgorithm.ts +44 -0
- package/dist/templates/src/styles/theme/antdTheme.ts +62 -0
- package/dist/templates/src/styles/theme/customStylish.ts +189 -0
- package/dist/templates/src/styles/theme/customToken.ts +93 -0
- package/dist/templates/src/styles/theme/generateColorPalette.ts +59 -0
- package/dist/templates/src/styles/theme/token/base.ts +16 -0
- package/dist/templates/src/styles/theme/token/dark.ts +60 -0
- package/dist/templates/src/styles/theme/token/light.ts +60 -0
- package/dist/templates/src/test-utils.tsx +18 -0
- package/dist/templates/src/types/customStylish.ts +20 -0
- package/dist/templates/src/types/customToken.ts +70 -0
- package/dist/templates/src/types/index.ts +21 -0
- package/dist/templates/src/types/routes.ts +70 -0
- package/dist/templates/src/utils/__tests__/example.test.ts +7 -0
- package/dist/templates/src/utils/convert.ts +40 -0
- package/dist/templates/src/utils/cookie.ts +25 -0
- package/dist/templates/src/utils/copyToClipboard.ts +13 -0
- package/dist/templates/src/utils/difference.ts +26 -0
- package/dist/templates/src/utils/env.ts +3 -0
- package/dist/templates/src/utils/format.ts +21 -0
- package/dist/templates/src/utils/genCdnUrl.ts +30 -0
- package/dist/templates/src/utils/getMicroApp.ts +39 -0
- package/dist/templates/src/utils/index.ts +1 -0
- package/dist/templates/src/utils/locale.ts +46 -0
- package/dist/templates/src/utils/sentry.ts +187 -0
- package/dist/templates/src/utils/sentryDecorators.ts +34 -0
- package/dist/templates/src/utils/updateVersion.ts +186 -0
- package/dist/templates/store/auth/index.tsx +82 -0
- package/dist/templates/store/auth/indexApi.tsx +11 -0
- package/dist/templates/store/global/index.tsx +133 -0
- package/dist/templates/store/global/indexApi.tsx +19 -0
- package/dist/templates/store/global/types.ts +62 -0
- package/dist/templates/store/middleware/createDevtools.ts +23 -0
- package/dist/templates/store/middleware/createHyperStorage/index.ts +127 -0
- package/dist/templates/store/middleware/createHyperStorage/indexedDB.ts +31 -0
- package/dist/templates/store/middleware/createHyperStorage/keyMapper.ts +57 -0
- package/dist/templates/store/middleware/createHyperStorage/localStorage.ts +23 -0
- package/dist/templates/store/middleware/createHyperStorage/type.ts +27 -0
- package/dist/templates/store/middleware/createHyperStorage/urlStorage.ts +85 -0
- package/dist/templates/store/theme/index.ts +25 -0
- package/dist/templates/store/types.ts +83 -0
- package/dist/templates/store/user/index.tsx +1 -0
- package/dist/templates/store/user/indexApi.tsx +5 -0
- package/dist/templates/store/user/initialState.ts +15 -0
- package/dist/templates/store/user/slices/profile/actions.ts +20 -0
- package/dist/templates/store/user/slices/profile/api.ts +5 -0
- package/dist/templates/store/user/slices/profile/initialState.ts +14 -0
- package/dist/templates/store/user/slices/settings/actions.ts +23 -0
- package/dist/templates/store/user/slices/settings/initialState.ts +32 -0
- package/dist/templates/store/user/store.ts +39 -0
- package/dist/templates/store.ts +39 -0
- package/dist/templates/style.ts +42 -0
- package/dist/templates/styleMock.ts +1 -0
- package/dist/templates/styles/antdOverride.ts +24 -0
- package/dist/templates/styles/customTheme.ts +70 -0
- package/dist/templates/styles/global.ts +53 -0
- package/dist/templates/styles/highlighter.ts +34 -0
- package/dist/templates/styles/index.ts +23 -0
- package/dist/templates/styles/mermaid.ts +7 -0
- package/dist/templates/styles/text.ts +10 -0
- package/dist/templates/styles/theme/algorithms/darkAlgorithm.ts +47 -0
- package/dist/templates/styles/theme/algorithms/lightAlgorithm.ts +44 -0
- package/dist/templates/styles/theme/antdTheme.ts +62 -0
- package/dist/templates/styles/theme/customStylish.ts +189 -0
- package/dist/templates/styles/theme/customToken.ts +93 -0
- package/dist/templates/styles/theme/generateColorPalette.ts +59 -0
- package/dist/templates/styles/theme/token/base.ts +16 -0
- package/dist/templates/styles/theme/token/dark.ts +60 -0
- package/dist/templates/styles/theme/token/light.ts +60 -0
- package/dist/templates/stylization.json +11 -0
- package/dist/templates/system.ts +1 -0
- package/dist/templates/tailwind.config.js +13 -0
- package/dist/templates/test-utils.tsx +18 -0
- package/dist/templates/text.ts +10 -0
- package/dist/templates/texture.json +4 -0
- package/dist/templates/theme/algorithms/darkAlgorithm.ts +47 -0
- package/dist/templates/theme/algorithms/lightAlgorithm.ts +44 -0
- package/dist/templates/theme/antdTheme.ts +62 -0
- package/dist/templates/theme/customStylish.ts +189 -0
- package/dist/templates/theme/customToken.ts +93 -0
- package/dist/templates/theme/generateColorPalette.ts +59 -0
- package/dist/templates/theme/index.ts +25 -0
- package/dist/templates/theme/token/base.ts +16 -0
- package/dist/templates/theme/token/dark.ts +60 -0
- package/dist/templates/theme/token/light.ts +60 -0
- package/dist/templates/theme.ts +5 -0
- package/dist/templates/theme_auto.webp +0 -0
- package/dist/templates/theme_dark.webp +0 -0
- package/dist/templates/theme_light.webp +0 -0
- package/dist/templates/threeModel.json +9 -0
- package/dist/templates/token/base.ts +16 -0
- package/dist/templates/token/dark.ts +60 -0
- package/dist/templates/token/light.ts +60 -0
- package/dist/templates/toolbox.json +11 -0
- package/dist/templates/tsconfig.json +27 -0
- package/dist/templates/type.ts +28 -0
- package/dist/templates/types/customStylish.ts +20 -0
- package/dist/templates/types/customToken.ts +70 -0
- package/dist/templates/types/index.ts +21 -0
- package/dist/templates/types/routes.ts +70 -0
- package/dist/templates/types.ts +21 -0
- package/dist/templates/updateVersion.ts +186 -0
- package/dist/templates/url.ts +1 -0
- package/dist/templates/urlStorage.ts +85 -0
- package/dist/templates/useRouteTitle.tsx +36 -0
- package/dist/templates/useSentry.ts +92 -0
- package/dist/templates/user/index.tsx +1 -0
- package/dist/templates/user/indexApi.tsx +5 -0
- package/dist/templates/user/initialState.ts +15 -0
- package/dist/templates/user/slices/profile/actions.ts +20 -0
- package/dist/templates/user/slices/profile/api.ts +5 -0
- package/dist/templates/user/slices/profile/initialState.ts +14 -0
- package/dist/templates/user/slices/settings/actions.ts +23 -0
- package/dist/templates/user/slices/settings/initialState.ts +32 -0
- package/dist/templates/user/store.ts +39 -0
- package/dist/templates/utils/__tests__/example.test.ts +7 -0
- package/dist/templates/utils/convert.ts +40 -0
- package/dist/templates/utils/cookie.ts +25 -0
- package/dist/templates/utils/copyToClipboard.ts +13 -0
- package/dist/templates/utils/difference.ts +26 -0
- package/dist/templates/utils/env.ts +3 -0
- package/dist/templates/utils/format.ts +21 -0
- package/dist/templates/utils/genCdnUrl.ts +30 -0
- package/dist/templates/utils/getMicroApp.ts +39 -0
- package/dist/templates/utils/index.ts +1 -0
- package/dist/templates/utils/locale.ts +46 -0
- package/dist/templates/utils/sentry.ts +187 -0
- package/dist/templates/utils/sentryDecorators.ts +34 -0
- package/dist/templates/utils/updateVersion.ts +186 -0
- package/dist/templates/volcano.ts +66 -0
- package/dist/templates/yellow.ts +66 -0
- package/dist/templates/zh-CN/common.json +74 -0
- package/dist/templates/zh-CN/generate.json +71 -0
- package/dist/templates/zh-CN/nav.json +10 -0
- package/dist/templates/zh-CN/overview.json +6 -0
- package/dist/templates/zh-CN/retopology.json +4 -0
- package/dist/templates/zh-CN/rigging.json +21 -0
- package/dist/templates/zh-CN/segmentation.json +4 -0
- package/dist/templates/zh-CN/stylization.json +11 -0
- package/dist/templates/zh-CN/texture.json +4 -0
- package/dist/templates/zh-CN/threeModel.json +9 -0
- package/dist/templates/zh-CN/toolbox.json +11 -0
- package/dist/templates//347/277/273/350/257/221.md +9 -0
- package/package.json +29 -21
- package/README.md +0 -180
- package/dist/api.js +0 -44
- package/dist/templates.js +0 -87
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { useThemeStore } from '@store/theme';
|
|
2
|
+
import { Button } from 'antd';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
export default function BasePage() {
|
|
6
|
+
const theme = useThemeStore(state => state.theme);
|
|
7
|
+
const setTheme = useThemeStore(state => state.setTheme);
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<>
|
|
11
|
+
<Button type="primary">antd按钮</Button>
|
|
12
|
+
<button
|
|
13
|
+
type="button"
|
|
14
|
+
className={
|
|
15
|
+
' dark:text-red-600 dark:bg-[var(--tailwindssantd-color-primary)] bg-[var(--tailwindssantd-color-primary)]'
|
|
16
|
+
}
|
|
17
|
+
>
|
|
18
|
+
tailwind按钮
|
|
19
|
+
</button>
|
|
20
|
+
<button type="button" onClick={() => setTheme('dark')}>
|
|
21
|
+
切换主题({theme})
|
|
22
|
+
</button>
|
|
23
|
+
</>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AliasToken } from 'antd/es/theme/interface';
|
|
2
|
+
|
|
3
|
+
const FONT_EMOJI = `"Segoe UI Emoji","Segoe UI Symbol","Apple Color Emoji","Twemoji Mozilla","Noto Color Emoji","Android Emoji"`;
|
|
4
|
+
const FONT_EN = `"HarmonyOS Sans","Segoe UI","SF Pro Display",-apple-system,BlinkMacSystemFont,Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif`;
|
|
5
|
+
const FONT_CN = `"HarmonyOS Sans SC","PingFang SC","Hiragino Sans GB","Microsoft Yahei UI","Microsoft Yahei","Source Han Sans CN",sans-serif`;
|
|
6
|
+
const FONT_CODE = `Hack,ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace`;
|
|
7
|
+
|
|
8
|
+
export const baseToken: Partial<AliasToken> = {
|
|
9
|
+
borderRadius: 6,
|
|
10
|
+
borderRadiusLG: 8,
|
|
11
|
+
borderRadiusSM: 4,
|
|
12
|
+
borderRadiusXS: 4,
|
|
13
|
+
controlHeight: 36,
|
|
14
|
+
fontFamily: [FONT_EN, FONT_CN, FONT_EMOJI].join(','),
|
|
15
|
+
fontFamilyCode: [FONT_CODE, FONT_CN, FONT_EMOJI].join(','),
|
|
16
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ColorScaleItem } from '../types';
|
|
2
|
+
|
|
3
|
+
const blue: ColorScaleItem = {
|
|
4
|
+
dark: [
|
|
5
|
+
'#000506',
|
|
6
|
+
'#002126',
|
|
7
|
+
'#00363f',
|
|
8
|
+
'#004e59',
|
|
9
|
+
'#006675',
|
|
10
|
+
'#008093',
|
|
11
|
+
'#159ab0',
|
|
12
|
+
'#47b3ca',
|
|
13
|
+
'#6acde4',
|
|
14
|
+
'#8ae8ff',
|
|
15
|
+
'#b8f0ff',
|
|
16
|
+
'#def7ff',
|
|
17
|
+
'#ffffff',
|
|
18
|
+
],
|
|
19
|
+
darkA: [
|
|
20
|
+
'rgba(0, 167, 200, 0.03)',
|
|
21
|
+
'rgba(0, 220, 253, 0.15)',
|
|
22
|
+
'rgba(0, 216, 252, 0.25)',
|
|
23
|
+
'rgba(0, 223, 254, 0.35)',
|
|
24
|
+
'rgba(0, 222, 254, 0.46)',
|
|
25
|
+
'rgba(0, 221, 253, 0.58)',
|
|
26
|
+
'rgba(30, 223, 255, 0.69)',
|
|
27
|
+
'rgba(89, 224, 252, 0.8)',
|
|
28
|
+
'rgba(118, 228, 253, 0.9)',
|
|
29
|
+
'#8ae8ff',
|
|
30
|
+
'#b8f0ff',
|
|
31
|
+
'#def7ff',
|
|
32
|
+
'#ffffff',
|
|
33
|
+
],
|
|
34
|
+
light: [
|
|
35
|
+
'#ffffff',
|
|
36
|
+
'#fbfeff',
|
|
37
|
+
'#f4fcff',
|
|
38
|
+
'#eafaff',
|
|
39
|
+
'#dff7ff',
|
|
40
|
+
'#d3f5ff',
|
|
41
|
+
'#c4f2ff',
|
|
42
|
+
'#b4efff',
|
|
43
|
+
'#a1ecff',
|
|
44
|
+
'#8ae8ff',
|
|
45
|
+
'#159ab0',
|
|
46
|
+
'#004e59',
|
|
47
|
+
'#000506',
|
|
48
|
+
],
|
|
49
|
+
lightA: [
|
|
50
|
+
'rgba(255, 255, 255, 0.01)',
|
|
51
|
+
'rgba(55, 205, 255, 0.02)',
|
|
52
|
+
'rgba(35, 195, 255, 0.05)',
|
|
53
|
+
'rgba(22, 199, 255, 0.09)',
|
|
54
|
+
'rgba(9, 193, 255, 0.13)',
|
|
55
|
+
'rgba(11, 199, 255, 0.18)',
|
|
56
|
+
'rgba(9, 201, 255, 0.24)',
|
|
57
|
+
'rgba(5, 202, 255, 0.3)',
|
|
58
|
+
'rgba(1, 204, 255, 0.37)',
|
|
59
|
+
'rgba(1, 205, 255, 0.46)',
|
|
60
|
+
'rgba(1, 145, 169, 0.92)',
|
|
61
|
+
'#004e59',
|
|
62
|
+
'#000506',
|
|
63
|
+
],
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export default blue;
|
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
ModelSwitch: {
|
|
3
|
+
title: "模型",
|
|
4
|
+
},
|
|
5
|
+
active: "活跃",
|
|
6
|
+
agentDefaultMessage:
|
|
7
|
+
"你好,我是 **{{name}}**,你可以立即与我开始对话,也可以前往 [助手设置]({{url}}) 完善我的信息。",
|
|
8
|
+
agentDefaultMessageWithSystemRole:
|
|
9
|
+
"你好,我是 **{{name}}**,有什么我可以帮忙的吗?",
|
|
10
|
+
agentDefaultMessageWithoutEdit:
|
|
11
|
+
"你好,我是 **{{name}}**,有什么我可以帮忙的吗?",
|
|
12
|
+
agents: "助手",
|
|
13
|
+
artifact: {
|
|
14
|
+
generating: "生成中",
|
|
15
|
+
inThread: "子话题中无法查看,请切换到主对话区打开",
|
|
16
|
+
thinking: "思考中",
|
|
17
|
+
thought: "思考过程",
|
|
18
|
+
unknownTitle: "未命名作品",
|
|
19
|
+
},
|
|
20
|
+
availableAgents: "可用助手",
|
|
21
|
+
backToBottom: "跳转至当前",
|
|
22
|
+
chatList: {
|
|
23
|
+
longMessageDetail: "查看详情",
|
|
24
|
+
},
|
|
25
|
+
clearCurrentMessages: "清空当前会话消息",
|
|
26
|
+
recoverCurrentMessages: "恢复当前会话消息",
|
|
27
|
+
contextCleared: "已清空上下文",
|
|
28
|
+
confirmClearCurrentMessages:
|
|
29
|
+
"即将清空当前会话消息,清空后将无法找回,请确认你的操作",
|
|
30
|
+
confirmRemoveChatGroupItemAlert:
|
|
31
|
+
"即将删除该群聊,群聊成员不受影响,请确认你的操作",
|
|
32
|
+
confirmRemoveGroupItemAlert:
|
|
33
|
+
"即将删除该分组,删除后该分组的助手将移动到默认列表,请确认你的操作",
|
|
34
|
+
confirmRemoveGroupSuccess: "群聊删除成功",
|
|
35
|
+
confirmRemoveSessionItemAlert:
|
|
36
|
+
"即将删除该助手,删除后该将无法找回,请确认你的操作",
|
|
37
|
+
confirmRemoveSessionSuccess: "助手删除成功",
|
|
38
|
+
defaultAgent: "自定义助手",
|
|
39
|
+
defaultGroupChat: "群聊",
|
|
40
|
+
defaultList: "默认列表",
|
|
41
|
+
defaultSession: "自定义助手",
|
|
42
|
+
dm: {
|
|
43
|
+
placeholder: "你与 {{agentTitle}} 的私信将显示在这里。",
|
|
44
|
+
tooltip: "发私信",
|
|
45
|
+
visibleTo: "仅 {{target}} 可见",
|
|
46
|
+
you: "你",
|
|
47
|
+
},
|
|
48
|
+
duplicateSession: {
|
|
49
|
+
loading: "复制中...",
|
|
50
|
+
success: "复制成功",
|
|
51
|
+
title: "{{title}} 副本",
|
|
52
|
+
},
|
|
53
|
+
duplicateTitle: "{{title}} 副本",
|
|
54
|
+
emptyAgent: "暂无助手",
|
|
55
|
+
extendParams: {
|
|
56
|
+
disableContextCaching: {
|
|
57
|
+
desc: "单条对话生成成本最高可降低 90%,响应速度提升 4 倍(<1>了解更多</1>)。开启后将自动禁用历史消息数限制",
|
|
58
|
+
title: "开启上下文缓存",
|
|
59
|
+
},
|
|
60
|
+
enableReasoning: {
|
|
61
|
+
desc: "基于 Claude Thinking 机制限制(<1>了解更多</1>),开启后将自动禁用历史消息数限制",
|
|
62
|
+
title: "开启深度思考",
|
|
63
|
+
},
|
|
64
|
+
reasoningBudgetToken: {
|
|
65
|
+
title: "思考消耗 Token",
|
|
66
|
+
},
|
|
67
|
+
reasoningEffort: {
|
|
68
|
+
title: "推理强度",
|
|
69
|
+
},
|
|
70
|
+
textVerbosity: {
|
|
71
|
+
title: "输出文本详细程度",
|
|
72
|
+
},
|
|
73
|
+
thinking: {
|
|
74
|
+
title: "深度思考开关",
|
|
75
|
+
},
|
|
76
|
+
title: "模型扩展功能",
|
|
77
|
+
urlContext: {
|
|
78
|
+
desc: "开启后将自动解析网页链接,以获取实际网页上下文内容",
|
|
79
|
+
title: "提取网页链接内容",
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
group: {
|
|
83
|
+
desc: "与多个 AI 助手在共享的对话空间中协作。",
|
|
84
|
+
memberTooltip: "群内有 {{count}} 个成员",
|
|
85
|
+
orchestratorThinking: "主持人正在思考中...",
|
|
86
|
+
removeMember: "移除成员",
|
|
87
|
+
title: "群组",
|
|
88
|
+
},
|
|
89
|
+
groupDescription: "群组描述",
|
|
90
|
+
groupSidebar: {
|
|
91
|
+
members: {
|
|
92
|
+
addMember: "添加成员",
|
|
93
|
+
memberSettings: "成员设置",
|
|
94
|
+
orchestrator: "主持人",
|
|
95
|
+
orchestratorThinking: "主持人正在思考中...",
|
|
96
|
+
removeMember: "移除成员",
|
|
97
|
+
stopOrchestrator: "停止思考",
|
|
98
|
+
triggerOrchestrator: "开始群聊",
|
|
99
|
+
},
|
|
100
|
+
tabs: {
|
|
101
|
+
host: "主持人",
|
|
102
|
+
members: "成员",
|
|
103
|
+
role: "设定",
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
groupWizard: {
|
|
108
|
+
chooseMembers: "选择现有助手...",
|
|
109
|
+
createGroup: "创建群聊",
|
|
110
|
+
existingMembers: "已有助手",
|
|
111
|
+
groupMembers: "这些助手也将被添加到您的列表中",
|
|
112
|
+
host: {
|
|
113
|
+
description: "使群聊自动化运行",
|
|
114
|
+
title: "主持人",
|
|
115
|
+
tooltip: "如果禁用群聊主持人,您需要手动@提及成员才能让他们回复",
|
|
116
|
+
},
|
|
117
|
+
memberCount: "{{count}} 个成员",
|
|
118
|
+
noMatchingTemplates: "没有匹配的模板",
|
|
119
|
+
noSelectedTemplates: "没有选择模板",
|
|
120
|
+
noTemplateMembers: "模板中没有成员",
|
|
121
|
+
noTemplates: "没有可用的模板",
|
|
122
|
+
searchTemplates: "搜索模板...",
|
|
123
|
+
title: "创建群聊",
|
|
124
|
+
useTemplate: "使用模板",
|
|
125
|
+
},
|
|
126
|
+
|
|
127
|
+
hideForYou: "私信内容已经隐藏,请在设置中开启【显示私信内容】以查看",
|
|
128
|
+
|
|
129
|
+
history: {
|
|
130
|
+
title: "助手将只记住最后{{count}}条消息",
|
|
131
|
+
},
|
|
132
|
+
|
|
133
|
+
historyRange: "历史范围",
|
|
134
|
+
|
|
135
|
+
historySummary: "历史消息总结",
|
|
136
|
+
|
|
137
|
+
inactive: "不活跃",
|
|
138
|
+
|
|
139
|
+
inbox: {
|
|
140
|
+
desc: "开启大脑集群,激发思维火花。你的智能助理,在这里与你交流一切",
|
|
141
|
+
title: "随便聊聊",
|
|
142
|
+
},
|
|
143
|
+
|
|
144
|
+
input: {
|
|
145
|
+
addAi: "添加一条 AI 消息",
|
|
146
|
+
addUser: "添加一条用户消息",
|
|
147
|
+
disclaimer: "AI 也可能会犯错,请检查重要信息",
|
|
148
|
+
errorMsg: "消息发送失败,请检查网络后重试: {{errorMsg}}",
|
|
149
|
+
more: "更多",
|
|
150
|
+
send: "发送",
|
|
151
|
+
sendWithCmdEnter: "按 <key/> 键发送",
|
|
152
|
+
sendWithEnter: "按 <key/> 键发送",
|
|
153
|
+
stop: "停止",
|
|
154
|
+
warp: "换行",
|
|
155
|
+
warpWithKey: "按 <key/> 键换行",
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
intentUnderstanding: {
|
|
159
|
+
title: "正在理解并分析您的意图...",
|
|
160
|
+
},
|
|
161
|
+
// Group chat related translations
|
|
162
|
+
inviteMembers: "邀请成员",
|
|
163
|
+
knowledgeBase: {
|
|
164
|
+
all: "所有内容",
|
|
165
|
+
allFiles: "所有文件",
|
|
166
|
+
allKnowledgeBases: "所有知识库",
|
|
167
|
+
disabled:
|
|
168
|
+
"当前部署模式不支持知识库对话,如需使用,请切换到服务端数据库部署或使用 {{cloud}} 服务",
|
|
169
|
+
library: {
|
|
170
|
+
action: {
|
|
171
|
+
add: "添加",
|
|
172
|
+
detail: "详情",
|
|
173
|
+
remove: "移除",
|
|
174
|
+
},
|
|
175
|
+
title: "文件/知识库",
|
|
176
|
+
},
|
|
177
|
+
relativeFilesOrKnowledgeBases: "关联文件/知识库",
|
|
178
|
+
title: "知识库",
|
|
179
|
+
uploadGuide: "上传过的文件可以在「知识库」中查看哦",
|
|
180
|
+
viewMore: "查看更多",
|
|
181
|
+
},
|
|
182
|
+
memberSelection: {
|
|
183
|
+
addMember: "添加成员",
|
|
184
|
+
allMembers: "全体成员",
|
|
185
|
+
createGroup: "创建群聊",
|
|
186
|
+
noAvailableAgents: "没有可邀请的助手",
|
|
187
|
+
noSelectedAgents: "还未选择助手",
|
|
188
|
+
searchAgents: "搜索助手...",
|
|
189
|
+
setInitialMembers: "选择群成员",
|
|
190
|
+
},
|
|
191
|
+
|
|
192
|
+
members: "Members",
|
|
193
|
+
|
|
194
|
+
mention: {
|
|
195
|
+
title: "提及成员",
|
|
196
|
+
},
|
|
197
|
+
|
|
198
|
+
messageAction: {
|
|
199
|
+
delAndRegenerate: "删除并重新生成",
|
|
200
|
+
deleteDisabledByThreads: "存在子话题,不能删除",
|
|
201
|
+
regenerate: "重新生成",
|
|
202
|
+
},
|
|
203
|
+
|
|
204
|
+
messages: {
|
|
205
|
+
dm: {
|
|
206
|
+
sentTo: "仅对{{name}}可见",
|
|
207
|
+
title: "私信",
|
|
208
|
+
},
|
|
209
|
+
modelCard: {
|
|
210
|
+
credit: "积分",
|
|
211
|
+
creditPricing: "定价",
|
|
212
|
+
creditTooltip:
|
|
213
|
+
"为便于计数,我们将 1$ 折算为 1M 积分,例如 $3/M tokens 即可折算为 3积分/token",
|
|
214
|
+
pricing: {
|
|
215
|
+
inputCachedTokens: "缓存输入 {{amount}}/积分 · ${{amount}}/M",
|
|
216
|
+
inputCharts: "${{amount}}/M 字符",
|
|
217
|
+
inputMinutes: "${{amount}}/分钟",
|
|
218
|
+
inputTokens: "输入 {{amount}}/积分 · ${{amount}}/M",
|
|
219
|
+
outputTokens: "输出 {{amount}}/积分 · ${{amount}}/M",
|
|
220
|
+
writeCacheInputTokens: "缓存输入写入 {{amount}}/积分 · ${{amount}}/M",
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
tokenDetails: {
|
|
224
|
+
average: "平均单价",
|
|
225
|
+
input: "输入",
|
|
226
|
+
inputAudio: "音频输入",
|
|
227
|
+
inputCached: "输入缓存",
|
|
228
|
+
inputCitation: "引用输入",
|
|
229
|
+
inputText: "文本输入",
|
|
230
|
+
inputTitle: "输入明细",
|
|
231
|
+
inputUncached: "输入未缓存",
|
|
232
|
+
inputWriteCached: "输入缓存写入",
|
|
233
|
+
output: "输出",
|
|
234
|
+
outputAudio: "音频输出",
|
|
235
|
+
outputImage: "图像输出",
|
|
236
|
+
outputText: "文本输出",
|
|
237
|
+
outputTitle: "输出明细",
|
|
238
|
+
reasoning: "深度思考",
|
|
239
|
+
speed: {
|
|
240
|
+
tps: {
|
|
241
|
+
title: "TPS",
|
|
242
|
+
tooltip:
|
|
243
|
+
"Tokens Per Second,TPS。指AI生成内容的平均速度(Token/秒),在接收到首个 Token 后开始计算。",
|
|
244
|
+
},
|
|
245
|
+
ttft: {
|
|
246
|
+
title: "TTFT",
|
|
247
|
+
tooltip:
|
|
248
|
+
"Time To First Token,TTFT。指从您发送消息到客户端接收到首个 Token 的时间间隔。",
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
title: "生成明细",
|
|
252
|
+
total: "总计消耗",
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
minimap: {
|
|
256
|
+
jumpToMessage: "跳转至第 {{index}} 条消息",
|
|
257
|
+
nextMessage: "下一条消息",
|
|
258
|
+
previousMessage: "上一条消息",
|
|
259
|
+
senderAssistant: "助手",
|
|
260
|
+
senderUser: "你",
|
|
261
|
+
},
|
|
262
|
+
|
|
263
|
+
newAgent: "新建助手",
|
|
264
|
+
|
|
265
|
+
newGroupChat: "新建群聊",
|
|
266
|
+
|
|
267
|
+
noAgentsYet: "此群组还没有助手。点击 + 按钮邀请助手。",
|
|
268
|
+
|
|
269
|
+
noAvailableAgents: "没有可邀请的助手",
|
|
270
|
+
|
|
271
|
+
noMatchingAgents: "没有匹配的助手",
|
|
272
|
+
|
|
273
|
+
noMembersYet: "此群组还没有成员。点击 + 按钮邀请助手。",
|
|
274
|
+
|
|
275
|
+
noSelectedAgents: "还未选择助手",
|
|
276
|
+
|
|
277
|
+
owner: "群主",
|
|
278
|
+
|
|
279
|
+
pin: "置顶",
|
|
280
|
+
|
|
281
|
+
pinOff: "取消置顶",
|
|
282
|
+
|
|
283
|
+
rag: {
|
|
284
|
+
referenceChunks: "引用源",
|
|
285
|
+
userQuery: {
|
|
286
|
+
actions: {
|
|
287
|
+
delete: "删除 Query 重写",
|
|
288
|
+
regenerate: "重新生成 Query",
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
|
|
293
|
+
regenerate: "重新生成",
|
|
294
|
+
roleAndArchive: "角色与记录",
|
|
295
|
+
search: {
|
|
296
|
+
grounding: {
|
|
297
|
+
searchQueries: "搜索关键词",
|
|
298
|
+
title: "已搜索到 {{count}} 个结果",
|
|
299
|
+
},
|
|
300
|
+
mode: {
|
|
301
|
+
auto: {
|
|
302
|
+
desc: "根据对话内容智能判断是否需要搜索",
|
|
303
|
+
title: "智能联网",
|
|
304
|
+
},
|
|
305
|
+
off: {
|
|
306
|
+
desc: "仅使用模型的基础知识,不进行网络搜索",
|
|
307
|
+
title: "关闭联网",
|
|
308
|
+
},
|
|
309
|
+
on: {
|
|
310
|
+
desc: "持续进行网络搜索,获取最新信息",
|
|
311
|
+
title: "始终联网",
|
|
312
|
+
},
|
|
313
|
+
useModelBuiltin: "使用模型内置搜索引擎",
|
|
314
|
+
},
|
|
315
|
+
searchModel: {
|
|
316
|
+
desc: "当前模型不支持函数调用,因此需要搭配支持函数调用的模型才能联网搜索",
|
|
317
|
+
title: "搜索辅助模型",
|
|
318
|
+
},
|
|
319
|
+
title: "联网搜索",
|
|
320
|
+
},
|
|
321
|
+
searchAgentPlaceholder: "搜索助手...",
|
|
322
|
+
searchAgents: "搜索助手...",
|
|
323
|
+
selectedAgents: "已选助手",
|
|
324
|
+
sendPlaceholder: "输入聊天内容...",
|
|
325
|
+
sessionGroup: {
|
|
326
|
+
config: "分组管理",
|
|
327
|
+
confirmRemoveGroupAlert:
|
|
328
|
+
"即将删除该分组,删除后该分组的助手将移动到默认列表,请确认你的操作",
|
|
329
|
+
createAgentSuccess: "助手创建成功",
|
|
330
|
+
createGroup: "添加新分组",
|
|
331
|
+
createGroupFailed: "群聊创建失败",
|
|
332
|
+
createGroupSuccess: "群聊创建成功",
|
|
333
|
+
createSuccess: "分组创建成功",
|
|
334
|
+
creatingAgent: "助手创建中...",
|
|
335
|
+
inputPlaceholder: "请输入分组名称...",
|
|
336
|
+
moveGroup: "移动到分组",
|
|
337
|
+
newGroup: "新分组",
|
|
338
|
+
rename: "重命名分组",
|
|
339
|
+
renameSuccess: "重命名成功",
|
|
340
|
+
sortSuccess: "重新排序成功",
|
|
341
|
+
sorting: "分组排序更新中...",
|
|
342
|
+
tooLong: "分组名称长度需在 1-20 之内",
|
|
343
|
+
},
|
|
344
|
+
shareModal: {
|
|
345
|
+
copy: "复制",
|
|
346
|
+
download: "下载截图",
|
|
347
|
+
downloadError: "下载失败",
|
|
348
|
+
downloadFile: "下载文件",
|
|
349
|
+
downloadPdf: "下载 PDF",
|
|
350
|
+
downloadSuccess: "下载成功",
|
|
351
|
+
exportPdf: "导出为 PDF",
|
|
352
|
+
exportTitle: "默认标题",
|
|
353
|
+
generatePdf: "生成 PDF",
|
|
354
|
+
generatingPdf: "正在生成 PDF...",
|
|
355
|
+
imageType: "图片格式",
|
|
356
|
+
includeTool: "包含插件消息",
|
|
357
|
+
includeUser: "包含用户消息",
|
|
358
|
+
loadingPdf: "加载 PDF...",
|
|
359
|
+
noPdfData: "暂无 PDF 数据",
|
|
360
|
+
pdf: "PDF",
|
|
361
|
+
pdfErrorDescription: "生成 PDF 时出现错误,请重试",
|
|
362
|
+
pdfGenerationError: "PDF 生成失败",
|
|
363
|
+
pdfReady: "PDF 已准备就绪",
|
|
364
|
+
regeneratePdf: "重新生成 PDF",
|
|
365
|
+
screenshot: "截图",
|
|
366
|
+
settings: "导出设置",
|
|
367
|
+
text: "文本",
|
|
368
|
+
withBackground: "包含背景图片",
|
|
369
|
+
withFooter: "包含页脚",
|
|
370
|
+
withPluginInfo: "包含插件信息",
|
|
371
|
+
withRole: "包含消息角色",
|
|
372
|
+
withSystemRole: "包含助手角色设定",
|
|
373
|
+
},
|
|
374
|
+
stt: {
|
|
375
|
+
action: "语音输入",
|
|
376
|
+
loading: "识别中...",
|
|
377
|
+
prettifying: "润色中...",
|
|
378
|
+
},
|
|
379
|
+
supervisor: {
|
|
380
|
+
todoList: {
|
|
381
|
+
allComplete: "所有任务已完成",
|
|
382
|
+
title: "任务已完成",
|
|
383
|
+
},
|
|
384
|
+
},
|
|
385
|
+
thread: {
|
|
386
|
+
divider: "子话题",
|
|
387
|
+
threadMessageCount: "{{messageCount}} 条消息",
|
|
388
|
+
title: "子话题",
|
|
389
|
+
},
|
|
390
|
+
toggleWideScreen: {
|
|
391
|
+
off: "关闭宽屏模式",
|
|
392
|
+
on: "开启宽屏模式",
|
|
393
|
+
},
|
|
394
|
+
tokenDetails: {
|
|
395
|
+
chats: "会话消息",
|
|
396
|
+
historySummary: "历史总结",
|
|
397
|
+
rest: "剩余可用",
|
|
398
|
+
supervisor: "群组主持",
|
|
399
|
+
systemRole: "角色设定",
|
|
400
|
+
title: "上下文明细",
|
|
401
|
+
tools: "插件设定",
|
|
402
|
+
total: "总共可用",
|
|
403
|
+
used: "总计使用",
|
|
404
|
+
},
|
|
405
|
+
tokenTag: {
|
|
406
|
+
overload: "超过限制",
|
|
407
|
+
remained: "剩余",
|
|
408
|
+
used: "使用",
|
|
409
|
+
},
|
|
410
|
+
topic: {
|
|
411
|
+
checkOpenNewTopic: "是否开启新话题?",
|
|
412
|
+
checkSaveCurrentMessages: "是否保存当前会话为话题?",
|
|
413
|
+
openNewTopic: "开启新话题",
|
|
414
|
+
saveCurrentMessages: "将当前会话保存为话题",
|
|
415
|
+
},
|
|
416
|
+
translate: {
|
|
417
|
+
action: "翻译",
|
|
418
|
+
clear: "删除翻译",
|
|
419
|
+
},
|
|
420
|
+
tts: {
|
|
421
|
+
action: "语音朗读",
|
|
422
|
+
clear: "删除语音",
|
|
423
|
+
},
|
|
424
|
+
untitledAgent: "未命名助手",
|
|
425
|
+
updateAgent: "更新助理信息",
|
|
426
|
+
upload: {
|
|
427
|
+
action: {
|
|
428
|
+
fileUpload: "上传文件",
|
|
429
|
+
folderUpload: "上传文件夹",
|
|
430
|
+
imageDisabled: "当前模型不支持视觉识别,请切换模型后使用",
|
|
431
|
+
imageUpload: "上传图片",
|
|
432
|
+
tooltip: "上传",
|
|
433
|
+
},
|
|
434
|
+
clientMode: {
|
|
435
|
+
actionFiletip: "上传文件",
|
|
436
|
+
actionTooltip: "上传",
|
|
437
|
+
disabled: "当前模型不支持视觉识别和文件分析,请切换模型后使用",
|
|
438
|
+
fileNotSupported: "浏览器模式下暂不支持上传文件,仅支持图片",
|
|
439
|
+
visionNotSupported: "当前模型不支持视觉识别,请切换模型后使用",
|
|
440
|
+
},
|
|
441
|
+
preview: {
|
|
442
|
+
prepareTasks: "准备分块...",
|
|
443
|
+
status: {
|
|
444
|
+
pending: "准备上传...",
|
|
445
|
+
processing: "文件处理中...",
|
|
446
|
+
},
|
|
447
|
+
},
|
|
448
|
+
validation: {
|
|
449
|
+
videoSizeExceeded:
|
|
450
|
+
"视频文件大小不能超过 20MB,当前文件大小为 {{actualSize}}",
|
|
451
|
+
},
|
|
452
|
+
},
|
|
453
|
+
you: "你",
|
|
454
|
+
zenMode: "专注模式",
|
|
455
|
+
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Space, message } from "antd";
|
|
2
|
+
import React, { memo } from "react";
|
|
3
|
+
import { Flexbox } from "react-layout-kit";
|
|
4
|
+
|
|
5
|
+
import { copyToClipboard } from "@/utils/copyToClipboard";
|
|
6
|
+
|
|
7
|
+
import { alphaBg, useStyles } from "./style";
|
|
8
|
+
|
|
9
|
+
export interface IScaleRow {
|
|
10
|
+
name: string;
|
|
11
|
+
scale: string[];
|
|
12
|
+
title: "light" | "lightA" | "dark" | "darkA";
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const ScaleRow = memo<IScaleRow>(({ name, title, scale }) => {
|
|
16
|
+
const { styles } = useStyles();
|
|
17
|
+
|
|
18
|
+
let style = {};
|
|
19
|
+
let isAlpha = false;
|
|
20
|
+
|
|
21
|
+
switch (title) {
|
|
22
|
+
case "lightA": {
|
|
23
|
+
style = { background: alphaBg.light, backgroundColor: "#fff" };
|
|
24
|
+
isAlpha = true;
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
case "darkA": {
|
|
28
|
+
style = { background: alphaBg.dark, backgroundColor: "#000" };
|
|
29
|
+
isAlpha = true;
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
default: {
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<Space size={2}>
|
|
39
|
+
<div className={styles.scaleRowTitle} key={title}>
|
|
40
|
+
<div className={styles.text}>{title}</div>
|
|
41
|
+
</div>
|
|
42
|
+
{scale.map((color, index) => {
|
|
43
|
+
if (index === 0 || index === 12) return false;
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<div
|
|
47
|
+
className={styles.scaleBox}
|
|
48
|
+
key={index}
|
|
49
|
+
onClick={async () => {
|
|
50
|
+
const content = `token.${name}${index}${
|
|
51
|
+
isAlpha ? "A" : ""
|
|
52
|
+
} /* ${color} */`;
|
|
53
|
+
|
|
54
|
+
await copyToClipboard(content);
|
|
55
|
+
message.success(content);
|
|
56
|
+
}}
|
|
57
|
+
style={style}
|
|
58
|
+
title={color}
|
|
59
|
+
>
|
|
60
|
+
<Flexbox
|
|
61
|
+
align={"center"}
|
|
62
|
+
className={styles.scaleItem}
|
|
63
|
+
horizontal
|
|
64
|
+
justify={"center"}
|
|
65
|
+
style={{ backgroundColor: color }}
|
|
66
|
+
/>
|
|
67
|
+
</div>
|
|
68
|
+
);
|
|
69
|
+
})}
|
|
70
|
+
</Space>
|
|
71
|
+
);
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export default ScaleRow;
|