feat: 初始化 uj-console wujie 微前端 monorepo
单体 uj-store 重构为 wujie 微前端:shell(host) + micro-apps(system/store) + packages。 核心约定: - 请求层不下放,全项目仅 shell 经 props.request 发 HTTP,baseURL 只解析一次。 - 后端地址按访问连接推导:VITE_API_TARGET 留空→同源(生产访问什么域名打什么域名, 如 http://ujia.glsx.com.cn/youjia/...,由 nginx 转发,零配置无需 CORS); 内网调试填 VITE_API_TARGET 即浏览器直连固定后端,不区分测试/生产多套配置。 - 移除 proxy/direct 二元模式与 /api 前缀代理;context-path(/youjia) 由拦截器补并计入签名。 含 alias 单源、PEM 虚拟模块、签名链路、定向发版 release.mjs、lint/format 全量清偿、 边界静态校验 check-boundaries,以及 tsconfig/eslint/vite 配置脚手架。
Showing
263 changed files
with
5115 additions
and
0 deletions
.editorconfig
0 → 100644
.env.example
0 → 100644
.gitignore
0 → 100644
.gitlab-ci.yml
0 → 100644
.npmrc
0 → 100644
.prettierignore
0 → 100644
.prettierrc.json
0 → 100644
ARCHITECTURE.md
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/micro-apps/store/eslint.config.js
0 → 100644
apps/web/micro-apps/store/index.html
0 → 100644
apps/web/micro-apps/store/package.json
0 → 100644
apps/web/micro-apps/store/src/App.tsx
0 → 100644
apps/web/micro-apps/store/src/api/index.ts
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/micro-apps/store/src/index.css
0 → 100644
apps/web/micro-apps/store/src/main.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
apps/web/micro-apps/store/src/wujie.d.ts
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/micro-apps/store/tsconfig.json
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/micro-apps/store/vite.config.ts
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/micro-apps/system/eslint.config.js
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/micro-apps/system/index.html
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/micro-apps/system/package.json
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/micro-apps/system/src/App.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
apps/web/micro-apps/system/src/api/index.ts
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
apps/web/micro-apps/system/src/index.css
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/micro-apps/system/src/main.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
apps/web/micro-apps/system/src/wujie.d.ts
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/micro-apps/system/tsconfig.json
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/micro-apps/system/vite.config.ts
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/eslint.config.js
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/index.html
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/keys/README.md
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/package.json
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/src/MicroApp.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/src/api/index.ts
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/src/index.css
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/src/layouts/BasicLayout.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/src/main.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
apps/web/shell/src/pages/Dashboard/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
apps/web/shell/src/pages/Login/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/src/pages/NotFound/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/src/pages/Profile/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/src/router.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/src/router/RequireAuth.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
apps/web/shell/src/runtime-manifest.ts
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/src/subapp-handshake.ts
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/src/subapp-lifecycle.ts
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/src/subapp-props.ts
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/src/subapps.ts
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/src/theme/design.css
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/src/theme/mfe.css
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/src/vite-env.d.ts
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/tsconfig.json
0 → 100644
This diff is collapsed.
Click to expand it.
apps/web/shell/vite.config.ts
0 → 100644
This diff is collapsed.
Click to expand it.
docs/DEPLOY.md
0 → 100644
This diff is collapsed.
Click to expand it.
docs/MIGRATION.md
0 → 100644
This diff is collapsed.
Click to expand it.
eslint.config.js
0 → 100644
This diff is collapsed.
Click to expand it.
package.json
0 → 100644
This diff is collapsed.
Click to expand it.
packages/biz/package.json
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
packages/biz/src/components/Logo.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
packages/biz/src/components/StatusTag.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
packages/biz/src/components/formSchema.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/biz/src/components/index.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/biz/src/config/menu.json
0 → 100644
This diff is collapsed.
Click to expand it.
packages/biz/src/config/storeStatus.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/biz/src/constants/dataScope.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/biz/src/index.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/biz/src/utils/datetime.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/biz/src/utils/index.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/biz/tsconfig.json
0 → 100644
This diff is collapsed.
Click to expand it.
packages/contracts/eslint.config.js
0 → 100644
This diff is collapsed.
Click to expand it.
packages/contracts/package.json
0 → 100644
This diff is collapsed.
Click to expand it.
packages/contracts/src/events.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/contracts/src/index.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/contracts/src/subapp.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/contracts/tsconfig.json
0 → 100644
This diff is collapsed.
Click to expand it.
packages/design-tokens/package.json
0 → 100644
This diff is collapsed.
Click to expand it.
packages/design-tokens/src/index.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/design-tokens/src/themeConfig.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/design-tokens/src/tokens.css
0 → 100644
This diff is collapsed.
Click to expand it.
packages/design-tokens/tsconfig.json
0 → 100644
This diff is collapsed.
Click to expand it.
packages/eslint-config/index.js
0 → 100644
This diff is collapsed.
Click to expand it.
packages/eslint-config/package.json
0 → 100644
This diff is collapsed.
Click to expand it.
packages/platform-core/package.json
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
packages/platform-core/src/access/index.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/platform-core/src/access/model.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/platform-core/src/access/points.ts
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
packages/platform-core/src/access/session.ts
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
packages/platform-core/src/api/core/http.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/platform-core/src/api/core/index.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/platform-core/src/api/core/sign.ts
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
packages/platform-core/src/api/core/token.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/platform-core/src/api/core/types.ts
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
packages/platform-core/src/index.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/platform-core/src/queryClient.ts
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
packages/platform-core/src/vite-env.d.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/platform-core/tsconfig.json
0 → 100644
This diff is collapsed.
Click to expand it.
packages/platform-sdk/package.json
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
packages/platform-sdk/src/SubAppProvider.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
packages/platform-sdk/src/index.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/platform-sdk/src/remote-api.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/platform-sdk/src/subapp.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/platform-sdk/src/token.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/platform-sdk/tsconfig.json
0 → 100644
This diff is collapsed.
Click to expand it.
packages/typescript-config/package.json
0 → 100644
This diff is collapsed.
Click to expand it.
packages/typescript-config/react-app.json
0 → 100644
This diff is collapsed.
Click to expand it.
packages/typescript-config/react-lib.json
0 → 100644
This diff is collapsed.
Click to expand it.
packages/ui/package.json
0 → 100644
This diff is collapsed.
Click to expand it.
packages/ui/src/components/Alert/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
packages/ui/src/components/Button/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
packages/ui/src/components/Card/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
packages/ui/src/components/Drawer/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
packages/ui/src/components/Form/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
packages/ui/src/components/Input/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
packages/ui/src/components/List/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
packages/ui/src/components/Modal/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
packages/ui/src/components/Radio/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
packages/ui/src/components/Result/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
packages/ui/src/components/Select/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
packages/ui/src/components/Switch/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
packages/ui/src/components/Table/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
packages/ui/src/components/Tabs/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
packages/ui/src/components/Tag/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
packages/ui/src/components/Tooltip/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
packages/ui/src/components/Upload/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
packages/ui/src/index.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/ui/tsconfig.json
0 → 100644
This diff is collapsed.
Click to expand it.
packages/vite-config/package.json
0 → 100644
This diff is collapsed.
Click to expand it.
packages/vite-config/src/aliases.mjs
0 → 100644
This diff is collapsed.
Click to expand it.
packages/vite-config/src/react.d.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/vite-config/src/react.js
0 → 100644
This diff is collapsed.
Click to expand it.
packages/vite-config/src/shell.d.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/vite-config/src/shell.js
0 → 100644
This diff is collapsed.
Click to expand it.
pnpm-lock.yaml
0 → 100644
This diff could not be displayed because it is too large.
pnpm-workspace.yaml
0 → 100644
This diff is collapsed.
Click to expand it.
scripts/check-boundaries.mjs
0 → 100644
This diff is collapsed.
Click to expand it.
scripts/dev.mjs
0 → 100644
This diff is collapsed.
Click to expand it.
scripts/gen-tsconfig.mjs
0 → 100644
This diff is collapsed.
Click to expand it.
scripts/reconcile.mjs
0 → 100644
This diff is collapsed.
Click to expand it.
scripts/release.mjs
0 → 100644
This diff is collapsed.
Click to expand it.
scripts/sync-from-uj-store.mjs
0 → 100644
This diff is collapsed.
Click to expand it.
tsconfig.base.json
0 → 100644
This diff is collapsed.
Click to expand it.
turbo.json
0 → 100644
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment