{"id":24973374,"url":"https://github.com/cmui/gearbox","last_synced_at":"2025-07-27T13:08:45.137Z","repository":{"id":34080740,"uuid":"37895905","full_name":"CMUI/gearbox","owner":"CMUI","description":"Lightweight JavaScript utilities for web development, based on `_` and `$`.","archived":false,"fork":false,"pushed_at":"2017-12-22T03:04:35.000Z","size":125,"stargazers_count":16,"open_issues_count":11,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T06:13:16.920Z","etag":null,"topics":["cmui","event","javascript","library","lightweight-javascript-utilities","mobile-web","string","template","ua","utility"],"latest_commit_sha":null,"homepage":"","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/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}},"created_at":"2015-06-23T03:52:48.000Z","updated_at":"2018-12-31T10:52:02.000Z","dependencies_parsed_at":"2022-07-18T01:10:46.901Z","dependency_job_id":null,"html_url":"https://github.com/CMUI/gearbox","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMUI%2Fgearbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMUI%2Fgearbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMUI%2Fgearbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMUI%2Fgearbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CMUI","download_url":"https://codeload.github.com/CMUI/gearbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248362647,"owners_count":21091170,"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","event","javascript","library","lightweight-javascript-utilities","mobile-web","string","template","ua","utility"],"created_at":"2025-02-03T18:58:56.696Z","updated_at":"2025-04-11T08:44:05.020Z","avatar_url":"https://github.com/CMUI.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gearbox\n\n\u003e Lightweight JavaScript utilities for web development, based on `_` (Underscore) and `$` (jQuery/Zepto).\n\n\u003e 为 Web 开发打造的轻量级 Javascript 工具库，基于 `_`（Underscore）和 `$`（jQuery/Zepto）。\n\n## 兼容性\n\n#### 浏览器支持\n\n* 支持以下移动平台的主流浏览器：\n\t* iOS 7+\n\t* Android 4+\n\n* 同样支持以下桌面浏览器：\n\t* Firefox (Latest)\n\t* Chrome (Latest)\n\t* Safari (Latest)\n\t* IE 8+（需要 jQuery 1.x）\n\n#### 外部依赖\n\n* `_`（Underscore 1.6+）\n* `$`（Zepto 1.1+ 或 jQuery）\n\n## 安装\n\n0. 通过 npm 3 安装：\n\n\t```sh\n\t$ npm install cmui-gearbox\n\t```\n\n0. 在页面中加载 Gearbox 以及必要的依赖：\n\n\t```html\n\t\u003cscript src=\"node_modules/underscore/underscore-min.js\"\u003e\u003c/script\u003e\n\t\u003cscript src=\"node_modules/zepto.js/dist/zepto.min.js\"\u003e\u003c/script\u003e\n\t\u003cscript src=\"node_modules/cmui-gearbox/dist/gearbox.min.js\"\u003e\u003c/script\u003e\n\t```\n\n## API 文档\n\n所有文档入口在 [Wiki 页面](https://github.com/CMUI/gearbox/wiki)，快去看吧！\n\n## 谁在用？\n\n移动 UI 框架 [CMUI](https://github.com/CMUI/CMUI) 采用 Gearbox 作为全局的工具库，因此所有 CMUI 用户都在使用它：\n\n* [百姓网 - 手机版](http://m.baixing.com/)\n* ~~优e网 - 手机版 (m.uemall.com)~~（已下线）\n* ~~薇姿官方电子商城 - 手机版 (m.vichy.com.cn)~~（已改版）\n\n以下桌面网站也在用 Gearbox：\n\n* [百姓网 - 桌面版](http://www.baixing.com/)\n\n***\n\n## 参与开发\n\n#### 功能模块\n\nGearbox 的部分功能模块已经分离出去，成为独立项目。这些模块以开发依赖的方式引入，并打包到发布文件中。因此，参与这些独立项目的开发即可修改这些模块。\n\n* `gearbox.action` - [Action](https://github.com/cssmagic/action)\n* `gearbox.template` - [Underscore-template](https://github.com/cssmagic/underscore-template)\n\n#### 构建\n\n0. 把本项目的代码 fork 并 clone 到本地。\n0. 在项目根目录执行 `npm install`，安装必要的依赖。\n0. 在项目根目录执行 `npm run dist`，运行构建脚本。\n0. 构建生成的发布文件将存放在 `/dist` 目录下。\n\n#### 单元测试\n\n0. 把本项目的代码 fork 并 clone 到本地。\n0. 在项目根目录执行 `bower install`，安装必要的依赖。\n0. 在浏览器中打开以下文件即可运行单元测试：\n\t* `test/test-dev.html` - 测试源码（用于开发阶段的测试）\n\t* `test/test-dist-trad.html` - 测试发布文件（用于测试 Zepto 的兼容性）\n\t* `test/test-dist-trad-jquery.html` - 测试发布文件（用于测试 jQuery 的兼容性）\n\n***\n\n## License\n\n[MIT License](http://www.opensource.org/licenses/mit-license.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmui%2Fgearbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmui%2Fgearbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmui%2Fgearbox/lists"}