{"id":19311022,"url":"https://github.com/hancoson/react-mobx-demo","last_synced_at":"2025-04-22T14:30:26.269Z","repository":{"id":85000993,"uuid":"113435986","full_name":"Hancoson/react-mobx-demo","owner":"Hancoson","description":":fire: React, Mobx, and React-Router to achieve a Zhihu Daily App.","archived":false,"fork":false,"pushed_at":"2018-04-25T08:40:08.000Z","size":5661,"stargazers_count":59,"open_issues_count":0,"forks_count":28,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T00:34:57.243Z","etag":null,"topics":["creat-react-app","mobx","mobx-react","mobx-react-router","react","react-router-v4"],"latest_commit_sha":null,"homepage":"https://hancoson.github.io/react-mobx-demo/build/index.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hancoson.png","metadata":{"files":{"readme":"README-zh.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":"2017-12-07T10:21:44.000Z","updated_at":"2023-05-30T10:18:27.000Z","dependencies_parsed_at":"2023-03-05T06:00:20.537Z","dependency_job_id":null,"html_url":"https://github.com/Hancoson/react-mobx-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hancoson%2Freact-mobx-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hancoson%2Freact-mobx-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hancoson%2Freact-mobx-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hancoson%2Freact-mobx-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hancoson","download_url":"https://codeload.github.com/Hancoson/react-mobx-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250258736,"owners_count":21400960,"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","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":["creat-react-app","mobx","mobx-react","mobx-react-router","react","react-router-v4"],"created_at":"2024-11-10T00:27:20.786Z","updated_at":"2025-04-22T14:30:26.258Z","avatar_url":"https://github.com/Hancoson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React-Mobx Zhihu Daily\n[![GitHub package version](https://img.shields.io/github/package-json/v/Hancoson/react-mobx-demo.svg)](https://github.com/Hancoson/react-mobx-demo)\n[![GitHub license](https://img.shields.io/github/license/Hancoson/react-mobx-demo.svg)](https://github.com/Hancoson/react-mobx-demo/blob/master/LICENSE)\n[![Travis](https://img.shields.io/travis/Hancoson/react-mobx-demo/master.svg)](https://travis-ci.org/Hancoson/react-mobx-demo)\n\n### [DEMO](https://hancoson.github.io/react-mobx-demo/build/index.html)\n\n### [Redux实现](https://github.com/Hancoson/react-redux-demo)\n### [英文](https://github.com/Hancoson/react-mobx-demo/blob/master/README.md):uk:\n\u003e 一个React+Mobx版知乎日报 所有API均来自网络（若涉及侵权，请及时联系我删除）\n\u003e _你觉得好就给个 Star 或者 Watch 吧，不要 Fork.\n\n## 技术栈\n- [x] React v15\n- [x] Mobx v2.5\n- [x] Mobx-react\n- [x] React-router v4\n- [x] mobx-react-router v4\n- [x] antd v2\n- [x] react-scripts\n- [x] [create-react-app](https://github.com/facebookincubator/create-react-app)\n- ……\n \n## 如何使用\n- 安装 `npm install(yarn)`\n- 启动 `npm start`\n- 构建 `npm run build`\n \n## 目录结构\n```$xslt\n├─config   //构建配置\n├─src\n│  ├─assets  //静态资源\n│  │  ├─img\n│  │  └─styles\n│  ├─compontens //组建\n│  ├─config //配置\b文件\n│  ├─routes //路由\n│  ├─store //store\n│  └─utils //工具函数\n└─build //发布目录\n```\n\n## API\n本应用调用了开源的「知乎日报 API」，具体可参考官方文档，[传送门\u003e\u003e](https://github.com/izzyleung/ZhihuDailyPurify/wiki/%E7%9F%A5%E4%B9%8E%E6%97%A5%E6%8A%A5-API-%E5%88%86%E6%9E%90)\n\n\n## 数据获取\n- 采用Yahoo跨域访问代理\n```$xslt\nYAHOO:'https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20json%20where%20url=%22',\nYAHOO_SUFFIX:'%22\u0026format=json'\n```\n\n## 如何使用 Mobx（Decorators）\n\n\u003e 我使用了`create-react-app`脚手架创建应用。\n\n你可以添加 `transform-decorators-legacy` 到你的 `node_modules/react-scripts/config/babel.dev.js` 和 `babel.prod.js`,代码如下:\n\n- 添加下面的代码到 `presets`:\n\n```\nrequire.resolve('babel-preset-stage-1'),\nrequire.resolve('babel-preset-es2015')\n```\n- 添加下面的代码到 `plugins` 的第一行:\n```\nrequire.resolve('babel-plugin-transform-decorators-legacy'),\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhancoson%2Freact-mobx-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhancoson%2Freact-mobx-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhancoson%2Freact-mobx-demo/lists"}