{"id":25232975,"url":"https://github.com/cmui/cmui","last_synced_at":"2025-04-06T21:15:08.277Z","repository":{"id":9948312,"uuid":"11966901","full_name":"CMUI/CMUI","owner":"CMUI","description":"Lightweight UI solution for mobile web.","archived":false,"fork":false,"pushed_at":"2024-04-16T14:12:00.000Z","size":471,"stargazers_count":187,"open_issues_count":0,"forks_count":45,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-30T15:11:11.128Z","etag":null,"topics":["cmui","components","css","framework","mobile-web","ui","widgets"],"latest_commit_sha":null,"homepage":"https://cmui.cmcm.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"lord/slate","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CMUI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2013-08-08T03:39:26.000Z","updated_at":"2024-12-04T06:21:11.000Z","dependencies_parsed_at":"2024-11-11T09:33:14.267Z","dependency_job_id":"9e6dc6a5-fde2-4635-bccf-98b6b248f31d","html_url":"https://github.com/CMUI/CMUI","commit_stats":{"total_commits":239,"total_committers":5,"mean_commits":47.8,"dds":0.03347280334728031,"last_synced_commit":"8ed48ad3dd672f37a8e57f79875bb54e546619b2"},"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMUI%2FCMUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMUI%2FCMUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMUI%2FCMUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMUI%2FCMUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CMUI","download_url":"https://codeload.github.com/CMUI/CMUI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247550690,"owners_count":20956987,"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":["cmui","components","css","framework","mobile-web","ui","widgets"],"created_at":"2025-02-11T13:55:53.814Z","updated_at":"2025-04-06T21:15:08.243Z","avatar_url":"https://github.com/CMUI.png","language":"JavaScript","readme":"# CMUI\n\n\u003e CMUI is a UI framework for mobile web. It provides rich widgets and simple interfaces out-of-the-box, which helps developers get rid of details of styling and troubles of compatibility, and focus on building their own applications.\n\nCMUI 是一个专攻移动网页的 UI 框架，它提供了丰富的组件和简洁的接口，开箱即用。CMUI 帮助开发者摆脱样式细节和兼容性困扰，从而腾出更多精力投入到业务开发中。\n\n## 兼容性\n\n#### 浏览器支持\n\n* 支持以下移动平台的主流浏览器：\n\t* iOS 10+\n\t* Android 4.4+\n\n* 同样支持以下桌面浏览器：\n\t* Firefox (Latest)\n\t* Chrome (Latest)\n\t* Safari (Latest)\n\n（更多细节参见 [CMUI 的浏览器分级支持策略](https://github.com/CMUI/doc/issues/2)。）\n\n#### 外部依赖\n\n* Underscore 1.8+\n* Zepto 1.1+\n* Gearbox 0.7+\n\n## 安装与使用\n\n#### 传统方式\n\n0. 通过 npm 3 安装：\n\n\t```sh\n\t$ npm install cmui\n\t```\n\n0. 在页面中加载 CMUI 的样式文件、脚本文件及必要的依赖：\n\n\t```html\n\t\u003c!DOCTYPE html\u003e\n\t\u003chtml\u003e\n\t\u003chead\u003e\n\t\t...\n\t\t\u003clink rel=\"stylesheet\" href=\"node_modules/cmui/dist/cmui.css\"\u003e\n\t\u003c/head\u003e\n\t\u003cbody\u003e\n\t\t...\n\t\t\u003cscript src=\"node_modules/underscore/underscore-min.js\"\u003e\u003c/script\u003e\n\t\t\u003cscript src=\"node_modules/zepto.js/dist/zepto.min.js\"\u003e\u003c/script\u003e\n\t\t\u003cscript src=\"node_modules/cmui-gearbox/dist/gearbox.min.js\"\u003e\u003c/script\u003e\n\t\t\u003cscript src=\"node_modules/cmui/dist/cmui.js\"\u003e\u003c/script\u003e\n\t\u003c/body\u003e\n\t\u003c/html\u003e\n\t```\n\n#### 通过 Stylus 加载\n\n如果你的项目以 [Stylus](http://stylus-lang.com/) 作为 CSS 预处理器语言，则可以在你的源码中直接引入 CMUI 的样式入口文件：\n\n```stylus\n@import './node_modules/cmui/src/css/theme/baixing/index'\n```\n\n在这种方式下，你可以在源码中使用 [CMUI 提供的高级 API](https://cmui.cmcm.app/demo/v2/theme/baixing/api.html)：\n\n* 变量\n* Mixin\n\n## 演示与文档\n\n建议使用 iOS/Android 设备访问：[CMUI Demo](https://cmui.cmcm.app/)\n\n![cmui-demo](https://github.com/CMUI/CMUI/assets/1231359/84154bb9-1d5d-4922-ae92-2503882744d4)\n\n## 谁在用？\n\n以下网站基于 CMUI 构建（请使用 iOS/Android 设备访问）：\n\n* [百姓网 - 手机版 (m.baixing.com)](http://m.baixing.com/)\n* ~~优e网 - 手机版 (m.uemall.com)~~（已下线）\n* ~~薇姿官方电子商城 - 手机版 (m.vichy.com.cn)~~（已改版）\n\n***\n\n## 参与开发\n\n#### 功能模块\n\nCMUI 的部分模块已经分离出去，成为独立项目。这些模块以开发依赖的方式引入，并打包到发布文件中。因此，参与这些独立项目的开发即可修改这些模块。\n\n* CSS Reset - [Zero](https://github.com/CMUI/zero)\n* Stylus Library - [Brush](https://github.com/CMUI/brush)\n\n#### 构建\n\n0. 把本项目的代码 fork 并 clone 到本地。\n0. 在项目根目录执行 `npm install`，安装必要的依赖。\n0. 在项目根目录执行 `npm run dist`，运行构建脚本。\n0. 构建生成的发布文件将存放在 `/dist` 目录下。\n\n#### 单元测试\n\n0. 把本项目的代码 fork 并 clone 到本地。\n0. 在项目根目录执行 `npm install`，安装必要的依赖。\n0. 在浏览器中打开以下文件即可运行单元测试：\n\t* `test/test-dev.html` - 测试源码（用于开发阶段的测试）\n\n***\n\n## Thanks\n\nCMUI is based on these open source projects:\n\n* [Normalize.css](https://github.com/necolas/normalize.css)\n\nCMUI team is using JetBrains IDE (WebStorm) with Open Source License:\n\n* [![WebStorm Logo](https://user-images.githubusercontent.com/5830104/32258214-2f230426-bef4-11e7-8a5f-1b4f9e116e87.png)](https://www.jetbrains.com/webstorm/)\n\n## License\n\n[MIT License](http://www.opensource.org/licenses/mit-license.php)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmui%2Fcmui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmui%2Fcmui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmui%2Fcmui/lists"}