{"id":30876146,"url":"https://github.com/ryanuo/mts","last_synced_at":"2026-02-14T14:33:09.613Z","repository":{"id":312238299,"uuid":"1046756890","full_name":"ryanuo/mts","owner":"ryanuo","description":"网页多端带壳截图工具，基于nuxt4打造而成，个人自用","archived":false,"fork":false,"pushed_at":"2025-09-01T15:14:22.000Z","size":3056,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-08T02:21:22.411Z","etag":null,"topics":["nuxt4"],"latest_commit_sha":null,"homepage":"https://mts.ryanuo.cc","language":"Vue","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/ryanuo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"open_collective":"ryanuo","github":["ryanuo"]}},"created_at":"2025-08-29T07:11:14.000Z","updated_at":"2025-09-01T15:14:25.000Z","dependencies_parsed_at":"2025-08-29T12:28:41.164Z","dependency_job_id":"34decc22-1907-4c01-a540-23a1405a1de7","html_url":"https://github.com/ryanuo/mts","commit_stats":null,"previous_names":["ryanuo/mts"],"tags_count":0,"template":false,"template_full_name":"antfu/vitesse-nuxt","purl":"pkg:github/ryanuo/mts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanuo%2Fmts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanuo%2Fmts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanuo%2Fmts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanuo%2Fmts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanuo","download_url":"https://codeload.github.com/ryanuo/mts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanuo%2Fmts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29447270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T14:10:32.461Z","status":"ssl_error","status_checked_at":"2026-02-14T14:09:49.945Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["nuxt4"],"created_at":"2025-09-08T02:06:36.871Z","updated_at":"2026-02-14T14:33:09.609Z","avatar_url":"https://github.com/ryanuo.png","language":"Vue","funding_links":["https://opencollective.com/ryanuo","https://github.com/sponsors/ryanuo"],"categories":[],"sub_categories":[],"readme":"# mts 设备预览组件\n\n本项目是一个基于 Nuxt4 和 UnoCSS 的多设备网页预览组件，支持电脑、笔记本、手机、平板四种设备模拟，支持自定义网址、滚动条、协议切换等功能。\n\n## 预览效果\n\n\u003cimg src=\"./public/screenshot.png\" alt=\"设备预览效果\"\u003e\n\n## 技术栈\n\n- [Nuxt4](https://nuxt.com/)\n- [UnoCSS](https://unocss.dev/)\n- [Vue 3](https://vuejs.org/)\n\n## 主要功能\n\n- 多设备预览（电脑、笔记本、手机、平板）\n- 支持自定义每种设备的网址\n- 支持切换 http/https 协议\n- 支持显示/隐藏滚动条\n- 预览时点击空白处可关闭预览\n- 响应式布局，适配不同屏幕宽度\n\n## 使用方法\n\n1. 安装依赖\n\n   ```bash\n   pnpm install\n   # 或\n   npm install\n   ```\n\n2. 启动开发环境\n\n   ```bash\n   pnpm dev\n   # 或\n   npm run dev\n   ```\n\n3. 在页面或布局中引入组件\n\n   ```vue\n   \u003cDevicePreview /\u003e\n   ```\n\n## UnoCSS 配置建议\n\n- 推荐在 `unocss.config.ts` 中 safelist 设备预览区的背景图相关类名。\n- iconfont 建议通过 CDN 或本地引入。\n\n## 目录结构\n\n- `components/DevicePreview.vue` 设备预览主组件\n- `assets/images/new-model/` 设备模拟图片资源\n\n## 贡献与反馈\n\n如有建议或问题，欢迎提交 issue 或 PR。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanuo%2Fmts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanuo%2Fmts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanuo%2Fmts/lists"}