{"id":23821270,"url":"https://github.com/niqingyang/antd-pro-mobx","last_synced_at":"2026-04-11T12:34:41.920Z","repository":{"id":72234833,"uuid":"192167217","full_name":"niqingyang/antd-pro-mobx","owner":"niqingyang","description":"antd pro 的 mobx 版本，基本包含了所有功能和页面","archived":false,"fork":false,"pushed_at":"2019-12-04T15:33:09.000Z","size":481,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-24T00:02:11.604Z","etag":null,"topics":["antd","antdpro","mobx","mobx-react-router","react"],"latest_commit_sha":null,"homepage":"https://acme.top/mobx-react-stores-doc","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/niqingyang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-16T08:22:12.000Z","updated_at":"2020-07-01T05:36:55.000Z","dependencies_parsed_at":"2023-02-25T17:30:38.881Z","dependency_job_id":null,"html_url":"https://github.com/niqingyang/antd-pro-mobx","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/niqingyang/antd-pro-mobx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niqingyang%2Fantd-pro-mobx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niqingyang%2Fantd-pro-mobx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niqingyang%2Fantd-pro-mobx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niqingyang%2Fantd-pro-mobx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niqingyang","download_url":"https://codeload.github.com/niqingyang/antd-pro-mobx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niqingyang%2Fantd-pro-mobx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272526579,"owners_count":24949832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-28T02:00:10.768Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["antd","antdpro","mobx","mobx-react-router","react"],"created_at":"2025-01-02T08:36:24.521Z","updated_at":"2026-04-11T12:34:36.882Z","avatar_url":"https://github.com/niqingyang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Antd Pro Mobx\n\n一个基于mobx的[Ant Design Pro](https://pro.ant.design/index-cn)，其全部功能基本都移植过来了\n\n## 使用方法\n\n* `npm run start`: 开发\n* `npm run build`: 构建打包，可将生成的dist目录的内容交给后端\n\n## 为什么做这个项目？\n\n公司要做前后端分离，最终前端打算用 react + mobx + antd 进行开发，那么自然是想把现成的例子 “Antd Pro” 拿来使用的。\n[Antd Pro](https://pro.ant.design/index-cn) 是一个大而全，且高度封装的脚手架，帮开发者做了很多基础工作，\n但不免提升了学习成本， 尤其内部依赖了`dva `和`umi`，限制住了开发者的同时也让开发者失去了对 webpack 的绝对控制权。所以\n利用了一些工作和业余时间（这段时间没少熬夜）做了这个基于 mobx 的 antd pro，相对于 dva 和 umi 的语法和配置，更喜欢 class based\n的 mobx，所以参考 dva 和 umi 的代码，开发了一些库（mobx-react-stores、@acme-top/express-mock-middleware、antd-form-plus等），\n方便项目开发，使用者可以直接控制 webpack，更灵活，降低了学习成本，开发者可以快速上手，投入进业务开发。\n\n## 适合哪些人使用？\n\n1. 不喜欢`dva`，更喜欢用基于类的`mobx`做状态管理（如果对 dva 或者 umi 了解则上手更快）。\n2. 对`umi`框架不熟悉，更想直接操作 webpack。\n\n## 相比 Antd Pro，做了哪些改动\n\n1. 状态管理从`dva`换成了`mobx`，使用 mobx-react-stores 进行管理\n2. 去掉了`umi`，改成了直接操作 webpack\n3. mock 改用 @acme-top/express-mock-middleware，但使用方式和语法完全和 antd pro 的一样\n4. 去掉了测试相关的东西\n5. 国际化使用 react-intl，需要开发者自己注入语言包，可以从 stores 中获取 intl 对象\n6. 路由使用 mobx-react-router，可以从 stores 中获取 routing 对象\n7. 对 IE9、10、11的兼容使用 react-app-polyfill\n8. 路由定义的使用方式和 antd pro 基本一致，但没有像 umi 那样去生成临时文件，而是需要直接使用 import 进行加载 ~ 支持组件的按需加载\n\n\n\u003e 此项目使用方式基本与 Antd Pro 一致，可以参考[Antd Pro](https://pro.ant.design/index-cn) 项目逐渐迭代回去。\n\n## 最后\n\n- 实际项目中最后却选择了 VUE 😂\n\n- 未经过实际项目检验，仅供参考 😑\n\n- 本项目 README.md 内容参考了项目 [antd-pro-mobx](https://github.com/gzgogo/antd-pro-mobx)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniqingyang%2Fantd-pro-mobx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniqingyang%2Fantd-pro-mobx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniqingyang%2Fantd-pro-mobx/lists"}