{"id":19751140,"url":"https://github.com/mipengine/mip-extensions","last_synced_at":"2025-10-04T21:25:49.383Z","repository":{"id":66077777,"uuid":"69536252","full_name":"mipengine/mip-extensions","owner":"mipengine","description":"[Deprecated] MIP 组件包括官方组件和开发者自定义组件，请到 mip2-extensions 查看官方组件","archived":false,"fork":false,"pushed_at":"2020-02-25T08:10:48.000Z","size":15519,"stargazers_count":116,"open_issues_count":69,"forks_count":458,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-03-28T20:07:46.258Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.mipengine.org/doc/3-widget/10-widgets.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/mipengine.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":"2016-09-29T06:07:53.000Z","updated_at":"2024-01-13T23:55:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7d00f09-199d-449d-b680-17b9ca7c6838","html_url":"https://github.com/mipengine/mip-extensions","commit_stats":null,"previous_names":[],"tags_count":300,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mipengine%2Fmip-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mipengine%2Fmip-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mipengine%2Fmip-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mipengine%2Fmip-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mipengine","download_url":"https://codeload.github.com/mipengine/mip-extensions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249525,"owners_count":20908212,"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":[],"created_at":"2024-11-12T02:42:36.521Z","updated_at":"2025-10-04T21:25:49.325Z","avatar_url":"https://github.com/mipengine.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MIP 组件\n\n注意：**停止维护，请使用 [MIP2 官方组件](https://github.com/mipengine/mip2-extensions)，查看最新[官方文档](https://www.mipengine.org/v2/components/index.html)**\n\nMIP 组件包括官方组件和开发者自定义组件，是用于定制站点页面功能的利器。\n\n## 组件编译\n\n- 安装依赖\n\n\t```\n\tnpm install\n\t```\n\n- 执行编译\n\n\t组件编译集成了 [mip-extension-optimizer](https://github.com/mipengine/mip-extension-optimizer) 工具，并通过 npm script 命令提供出来，如：\n\n\t```\n\tnpm run build\n\t```\n\n- 指定参数\n\n\t如果需要指定编译参数（参数使用与 mip-extension-optimizer 一致），以 `--` 分割，如指定输出目录和需编译的个别组件：\n\n\t```\n\tnpm run build -- -o output mip-form mip-access\n\t```\n\n## 脚本引用\n\n使用该仓库下的组件前，需在页面中引入组件对应脚本。\n\n- 格式\n\n\t```\n\thttps://c.mipcdn.com/static/v1/{组件名}/{组件名}.js\n\t```\n\n- 示例\n\n\t```\n\t\u003cscript async src=\"https://c.mipcdn.com/static/v1/mip-form/mip-form.js\"\u003e\u003c/script\u003e\n\t```\n\n## 组件预览\n\n组件的预览支持两种方式，具体如下：\n\n- 页面预览\n\n\t将当前开发的脚本引用到示例页面，并通过 mip cli 开启本地服务，预览页面功能。该方法需要开发者构建预览所需的 MIP 页面。具体可以参考官方博客中的[MIP-CLI工具调试组件](http://www.cnblogs.com/mipengine/p/mip_cli_3_extension.html)文档。\n\n- README 预览\n\n\t通过在 README 中书写 html，并借助 mip cli 来预览效果。该方法会抓取 README 中预览所需 html 来达成预览效果。具体细节可参考[调试 MIP 扩展组件](https://github.com/mipengine/mip-extensions/blob/master/docs/debug.md)文档。\n\n## 组件相关资料\n\n- [官方组件列表](https://www.mipengine.org/doc/3-widget/10-widgets.html)\n- [组件开发手册](https://github.com/mipengine/mip-extensions/blob/master/docs/README.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmipengine%2Fmip-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmipengine%2Fmip-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmipengine%2Fmip-extensions/lists"}