{"id":20424653,"url":"https://github.com/aasailan/react-kugou-demo","last_synced_at":"2026-04-18T07:36:28.009Z","repository":{"id":240675086,"uuid":"159777538","full_name":"aasailan/react-kugou-demo","owner":"aasailan","description":"使用react + typescript 的酷狗页面demo","archived":false,"fork":false,"pushed_at":"2019-02-20T11:04:48.000Z","size":682,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-15T15:07:04.026Z","etag":null,"topics":["css-module","demo","react","react-router-v4","redux","redux-thunk","study","tsx","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aasailan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-11-30T06:17:45.000Z","updated_at":"2023-12-02T12:17:46.000Z","dependencies_parsed_at":"2024-05-20T15:47:06.522Z","dependency_job_id":null,"html_url":"https://github.com/aasailan/react-kugou-demo","commit_stats":null,"previous_names":["aasailan/react-kugou-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aasailan%2Freact-kugou-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aasailan%2Freact-kugou-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aasailan%2Freact-kugou-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aasailan%2Freact-kugou-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aasailan","download_url":"https://codeload.github.com/aasailan/react-kugou-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241966977,"owners_count":20050324,"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":["css-module","demo","react","react-router-v4","redux","redux-thunk","study","tsx","typescript"],"created_at":"2024-11-15T07:10:31.530Z","updated_at":"2026-04-18T07:36:22.985Z","avatar_url":"https://github.com/aasailan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-kugou-demo\n### 使用react仿写的酷狗音乐webapp\n## 简介\n1、该项目是[vue-demo-kugou](https://github.com/lavyun/vue-demo-kugou)的react重构版本。是使用react仿写的酷狗音乐webapp。   \n2、本项目技术栈为 react + typescript + redux + scss + css-modules\n\n## 在线预览\n[在线预览点击此处](http://47.107.227.113:3001)，请使用手机浏览器或手机模式打开。\n\n## 项目截图\n\u003cimg src=\"./preview/index.png\"\u003e\n\u003cimg src=\"./preview/play.png\"\u003e\n\n## 如何使用\n1、下载项目到本地\n2、npm install \n3、修改type文件，在 node_modules/@types/react/index.d.ts 文件内添加以下type声明（详见下面注意事项）\n```typescript\ndeclare namespace React {\n  interface Attributes {\n    styleName?: string;\n  }\n}\n```\n4、npm run start 启动本地开发\n\n## 注意事项\n1、关于修改react的type文件：本项目使用了[babel-plugin-react-css-modules](https://github.com/gajus/babel-plugin-react-css-modules)作为css局部化的解决方案，使用时需要在jsx元素上使用styleName属性。react的jsx元素type声明文件中并没有styleName属性的声明，所以做声明合并添加styleName属性声明。如果可以能在外部type文件做声明合并更好，但是我尝试后失败了。有解决过这个问题的同学请开个issue帮忙解决，谢谢。   \n2、生产环境编译（npm run build）需要先配置 src/api/index.ts 文件中的PRO_API_HOST变量\n\n## TODO\n1、对所有列表加上分页加载。\n\n## 本人的其他项目，欢迎star ^^\n* [mpvue-fresh-weather](https://github.com/aasailan/mpvue-fresh-weather)：基于typescript + mpvue 的天气类型微信小程序\n* [egg-nideshop](https://github.com/aasailan/egg-nideshop)：基于typescript + eggjs + Sequelize + mysql 的开源小程序后台。\n* [react-kugou-demo](https://github.com/aasailan/react-kugou-demo)：基于typescript + react + redux + scss 的仿酷狗音乐webapp\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faasailan%2Freact-kugou-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faasailan%2Freact-kugou-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faasailan%2Freact-kugou-demo/lists"}