{"id":16272440,"url":"https://github.com/juckz/linux-cockpit","last_synced_at":"2026-05-08T19:32:18.345Z","repository":{"id":103103632,"uuid":"247438368","full_name":"JuckZ/linux-cockpit","owner":"JuckZ","description":"Linux webOS，基于Electron，效果录屏：https://www.bilibili.com/video/BV1it4y11712","archived":false,"fork":false,"pushed_at":"2023-01-14T03:33:39.000Z","size":121409,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T19:37:20.265Z","etag":null,"topics":["electron","linux-desktop","vue","vue-router","vuex","webos"],"latest_commit_sha":null,"homepage":"https://www.bilibili.com/video/BV1it4y11712","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JuckZ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-03-15T09:44:53.000Z","updated_at":"2023-03-13T05:58:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"11d0db4c-1356-44f4-a540-643bbb629784","html_url":"https://github.com/JuckZ/linux-cockpit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JuckZ/linux-cockpit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuckZ%2Flinux-cockpit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuckZ%2Flinux-cockpit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuckZ%2Flinux-cockpit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuckZ%2Flinux-cockpit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JuckZ","download_url":"https://codeload.github.com/JuckZ/linux-cockpit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuckZ%2Flinux-cockpit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32794618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"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":["electron","linux-desktop","vue","vue-router","vuex","webos"],"created_at":"2024-10-10T18:17:50.388Z","updated_at":"2026-05-08T19:32:18.322Z","avatar_url":"https://github.com/JuckZ.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# linux-cockpit\n\n## Screen recording\n\n[![](https://raw.githubusercontent.com/JuckZ/linux-cockpit/master/doc/linux-cockpit.jpg)](https://www.bilibili.com/video/BV1it4y11712)\n\n## Project setup\n```\nyarn install\n```\n\n### Compiles and hot-reloads for development\n```\nyarn serve\n```\n\n### Compiles and minifies for production\n```\nyarn build\n```\n\n### Lints and fixes files\n```\nyarn lint\n```\n\n### Customize configuration\nSee [Configuration Reference](https://cli.vuejs.org/config/).\n\n## 项目创建步骤\n\n// 工具 nodemon http-server 等 可以在测试时候使用\nyarn global add typescript @vue/cli\nvue create linux-cockpit\n// 注意less版本一定是2.x.x，不然会报错，也可以使用3，但是需要配置\nyarn add less@2.7.3 less-loader node-sass sass-loader electron babel-plugin-import -D //babel-plugin-import 是一个用于按需加载组件代码和样式的 babel 插件\nyarn add ant-design-vue vue-router vuex ssh2 xterm koa koa-static @koa/router koa-views axios vue-axios @koa/cors@2 xterm-addon-attach xterm-addon-fit xterm-addon-search graphql vue-apollo apollo-boost apollo-server-koa socket.io\nvue3安装graphql也可使用vue add apollo\n\n使用 vue-cli 3 的小伙伴，修改babel.config.js文件，配置 babel-plugin-import\n\n```babel.config.js\n module.exports = {\n  presets: [\"@vue/app\"],\n+  plugins: [\n+    [\n+      \"import\",\n+      { libraryName: \"ant-design-vue\", libraryDirectory: \"es\", style: true }\n+    ]\n+  ]\n};\n```\n\npackage.json中修改vue的配置，将publicPath修改为合适的值，然后添加运行脚本，方便启动调试\n\nvue.config.js中配置less，以便自定义antdesign主题，和支持less3版本以上\nmodule.exports = {\n  css: {\n    loaderOptions: {\n      less: {\n        modifyVars: {\n          'primary-color': '#1DA57A',\n          'link-color': '#1DA57A',\n          'border-radius-base': '2px',\n        },\n        javascriptEnabled: true\n      }\n    }\n  }\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuckz%2Flinux-cockpit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuckz%2Flinux-cockpit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuckz%2Flinux-cockpit/lists"}