{"id":18814475,"url":"https://github.com/jsoon/electronmediapreviewer","last_synced_at":"2026-01-25T07:02:15.971Z","repository":{"id":81012904,"uuid":"401912693","full_name":"JSoon/ElectronMediaPreviewer","owner":"JSoon","description":"基于 Electron 开发的多媒体消息预览器: 图片/视频","archived":false,"fork":false,"pushed_at":"2022-02-16T03:11:52.000Z","size":4163,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-22T05:09:56.524Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/JSoon.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":"2021-09-01T02:58:31.000Z","updated_at":"2024-02-03T16:40:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d43de4a-31b9-457b-a613-89060a3af110","html_url":"https://github.com/JSoon/ElectronMediaPreviewer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JSoon/ElectronMediaPreviewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSoon%2FElectronMediaPreviewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSoon%2FElectronMediaPreviewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSoon%2FElectronMediaPreviewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSoon%2FElectronMediaPreviewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JSoon","download_url":"https://codeload.github.com/JSoon/ElectronMediaPreviewer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSoon%2FElectronMediaPreviewer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28747308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T05:12:38.112Z","status":"ssl_error","status_checked_at":"2026-01-25T05:04:50.338Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-11-07T23:41:14.073Z","updated_at":"2026-01-25T07:02:15.953Z","avatar_url":"https://github.com/JSoon.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ElectronMediaPreviewer\n基于 Electron 开发的多媒体消息预览组件: 图片/视频.\n\n## 运行环境\n```\n# Electron   14.0.0\n# Node       14.17.0\n# Chromium   93.0.4577.58\n```\n\n## 项目安装\n```\nyarn install\n```\n\n### 开发环境运行 `Vue`\n```\nyarn serve\n```\n\n### 生产环境构建 `Vue`\n```\nyarn build\n```\n\n### 代码质量/风格检查/修复\n```\nyarn lint\n```\n\n### 预览组件运行 `Electron`\nyarn start\n\n### 更多自定义配置\nSee [Configuration Reference](https://cli.vuejs.org/config/).\n\n## 组件使用\n\n```js\n// main.js\nconst { useMediaPreviewer } = require('./MediaPreviewer/main');\n\nfunction createWindow() {\n  // Create the browser window.\n  const mainWindow = new BrowserWindow({\n    width: 800,\n    height: 600,\n    webPreferences: {\n      preload: path.join(__dirname, 'preload.js'),\n    },\n  });\n\n  // and load the index.html of the app.\n  mainWindow.loadFile(path.join(__dirname, 'index.html'));\n\n  // Open the DevTools.\n  // mainWindow.webContents.openDevTools()\n  \n  // 注册预览组件\n  useMediaPreviewer(mainWindow);\n}\n\n...\n```\n\n更多详细代码请参考 `electron` 目录.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsoon%2Felectronmediapreviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsoon%2Felectronmediapreviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsoon%2Felectronmediapreviewer/lists"}