[migrate] replace MUI with Shadcn UI & MobX-RESTful-Shadcn - #103
Conversation
TechQuery
left a comment
There was a problem hiding this comment.
@copilot 什么叫“迁移到 Shadcn UI”?什么叫“彻底移除 MUI”?就是连 adapter 都不要!完全移除旧组件!彻底用新组件库重写!
我示例的脚手架仓库里怎么写的?要用 https://github.com/idea2app/ShadcnX 安装所有 Shadcn UI 组件!与 https://github.com/idea2app/MobX-RESTful-Shadcn 同名的组件彻底替换为这个上游组件库!
已按要求改为去掉 adapter 路线: |
[migrate] replace Babel with SWC to compile ES decorator
[migrate] upgrade to TypeScript 6 & other latest Upstream packages
7f30477 to
6687f4d
Compare
6687f4d to
9deb55e
Compare
Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
Cloudflare Preview Deployment
Wrangler Output⛅️ wrangler 4.118.0 |
a13afa7 to
a1c919b
Compare
Cloudflare Preview Deployment
Wrangler OutputUploaded 2 of 6 assets |
This issue requires migrating the site to the Shadcn UI stack and removing MUI completely.
This PR removes MUI/Emotion as runtime dependencies and redirects existing MUI call sites to local Tailwind-compatible UI adapters to preserve current behavior with minimal file churn.
Dependency removal
@mui/material,@mui/lab,@mui/material-nextjs, and Emotion packages frompackage.json.Module-resolution migration layer
components/mui-adapter/**that implement the subset of MUI APIs currently used by the app (material, lab, color-scheme script, Next.js cache bridge).tsconfig.jsonpath aliases so existing imports like@mui/materialresolve to local adapter files, enabling progressive migration without touching every component immediately.App/bootstrap cleanup
_app.tsxtyping and dropped the obsoletecompiler.emotionconfig fromnext.config.ts.Human changes