{"id":19174879,"url":"https://github.com/un-pany/v3-electron","last_synced_at":"2025-05-07T18:21:29.037Z","repository":{"id":37314327,"uuid":"445368949","full_name":"un-pany/v3-electron","owner":"un-pany","description":"⭐ A vue3 electron template, based on 'vue-cli'","archived":false,"fork":false,"pushed_at":"2023-08-30T00:57:27.000Z","size":2767,"stargazers_count":12,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-20T01:33:01.028Z","etag":null,"topics":["electron","element-plus","template","typescript","vue-cli","vue3"],"latest_commit_sha":null,"homepage":"","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/un-pany.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,"zenodo":null}},"created_at":"2022-01-07T02:05:14.000Z","updated_at":"2025-02-25T06:24:38.000Z","dependencies_parsed_at":"2025-04-20T01:31:54.553Z","dependency_job_id":"66f17653-a5d5-4947-84e3-27deb1902dee","html_url":"https://github.com/un-pany/v3-electron","commit_stats":null,"previous_names":[],"tags_count":4,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un-pany%2Fv3-electron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un-pany%2Fv3-electron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un-pany%2Fv3-electron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un-pany%2Fv3-electron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/un-pany","download_url":"https://codeload.github.com/un-pany/v3-electron/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252931819,"owners_count":21827172,"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":["electron","element-plus","template","typescript","vue-cli","vue3"],"created_at":"2024-11-09T10:19:33.174Z","updated_at":"2025-05-07T18:21:28.997Z","avatar_url":"https://github.com/un-pany.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e 国内环境在安装依赖和打包时，需要开启 .npmrc 文件中的镜像源配置\n\n## ⚡️ 简介\n\n完全基于 [v3-admin](https://github.com/un-pany/v3-admin) 的 Electron 项目模板，文档也请参考 v3-admin 的文档。\n\n## ⌛ 功能\n\n```text\n- 用户管理\n  - 登录\n  - 注销\n\t\n- 权限验证\n  - 页面权限\n  - 指令权限\n\n- 多环境\n  - development\n  - test\n  - production\n  \n- 全局功能\n  - svg\n  - 多主题切换（内置黑暗主题）\n  - 动态侧边栏\n  - 动态面包屑\n  - 标签页快捷导航\n  - Screenfull 全屏\n  - 自适应收缩侧边栏\n\n- 错误页面\n  - 401\n  - 404\n\n- Dashboard\n  - admin\n  - editor\n```\n\n## 目录结构\n\n```\n# v3-electron\n├─ .env.development   # 开发环境\n├─ .env.production    # 生产环境\n├─ .env.test          # 测试环境\n├─ .eslintrc.js       # eslint\n├─ .npmrc             # 国内镜像\n├─ public\n│  ├─ favicon.ico\n│  ├─ index.html\n├─ src\n│  ├─ @types          # ts 声明\n│  ├─ api             # api 接口\n│  ├─ assets          # 静态资源\n│  ├─ components      # 全局组件\n│  ├─ config          # 全局配置\n│  ├─ constant        # 常量/枚举\n│  ├─ directives      # 全局指令\n│  ├─ icons           # svg icon\n│  ├─ layout          # 布局\n│  ├─ locales         # 国际化\n│  ├─ model           # 全局 model\n│  ├─ plugins         # 插件\n│  ├─ router          # 路由\n│  ├─ store           # vuex store\n│  ├─ styles          # 全局样式\n│  ├─ utils           # 全局公共方法\n│  └─ views           # 所有页面\n│  ├─ App.vue         # 入口页面\n│  ├─ background.ts   # 主进程\n│  ├─ main.ts         # 入口文件\n│  └─ shims.d.ts      # 模块注入\n├─ tsconfig.json      # ts 编译配置\n└─ vue.config.js      # vue-cli 配置\n```\n\n## 🚀 开发\n\n```bash\n# 配置\nnode 版本 16.x\n\n# 安装依赖\nyarn\n\n# 启动服务\nyarn dev\n```\n\n## 📦️ 打包\n\n```bash\n# 构建测试环境\nyarn build:test\n\n# 构建生产环境\nyarn build:prod\n```\n\n## 🔧 代码格式检查\n\n```bash\nyarn lint\n```\n\n## Git 提交规范\n\n- `feat` 增加新功能\n- `fix` 修复问题/BUG\n- `style` 代码风格相关无影响运行结果的\n- `perf` 优化/性能提升\n- `refactor` 重构\n- `revert` 撤销修改\n- `test` 测试相关\n- `docs` 文档/注释\n- `chore` 依赖更新/脚手架配置修改等\n- `workflow` 工作流改进\n- `ci` 持续集成\n- `types` 类型定义文件更改\n- `wip` 开发中\n- `mod` 不确定分类的修改\n\n## 📄 License\n\n[MIT](https://github.com/un-pany/v3-electron/blob/main/LICENSE)\n\nCopyright (c) 2022 UNPany\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fun-pany%2Fv3-electron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fun-pany%2Fv3-electron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fun-pany%2Fv3-electron/lists"}