# pi-cloud-web **Repository Path**: lamber/pi-cloud-web ## Basic Information - **Project Name**: pi-cloud-web - **Description**: pi-cloud-web 是 pi-cloud 的前端源码,它是基于 Vue 3、Vite 2、Typescript、Pinia、ElementPlus 构建的。 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 9 - **Created**: 2023-05-23 - **Last Updated**: 2023-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # pi-cloud-web pi-cloud-web 是 [pi-cloud](https://gitee.com/linjiabin100/pi-cloud.git) 的前端源码,它是基于 Vue 3、Vite 3、Typescript、Pinia、ElementPlus 等前端主流技术栈构建的。 ## 特性 - 使用基于 Vite 的构建设置进行 Vue 3 开发 - 页面基于 ElementPlus 构建 - 使用 Pinia 进行状态管理 - 国际化、按钮权限、ElementPlus 自定义主题 ## 预览 ## | ![image-20221104164240613.png](https://gitee.com/linjiabin100/pi-cloud-resource/raw/master/imgs/image-20221104164240613.png) | ![image-20221104164357964](https://gitee.com/linjiabin100/pi-cloud-resource/raw/master/imgs/Snipaste_2022-11-22_11-18-12.png) | | ------------------------------------------------------------ | ------------------------------------------------------------ | | ![image-20221104164416152](https://gitee.com/linjiabin100/pi-cloud-resource/raw/master/imgs/Snipaste_2022-11-22_11-18-34.png) | ![image-20221104164428444](https://gitee.com/linjiabin100/pi-cloud-resource/raw/master/imgs/Snipaste_2022-11-22_11-18-52.png) | | ![Snipaste_2022-11-22_11-19-14](https://gitee.com/linjiabin100/pi-cloud-resource/raw/master/imgs/Snipaste_2022-11-22_11-19-14.png) | ![Snipaste_2022-11-22_11-12-16](https://gitee.com/linjiabin100/pi-cloud-resource/raw/master/imgs/Snipaste_2022-11-22_11-12-16.png) | ## 源码 | | Gitee | GitHub | | ---- | ----------------------------------------------- | ------------------------------------------ | | 后端 | https://gitee.com/linjiabin100/pi-cloud.git | https://github.com/zengpi/pi-cloud.git | | 前端 | https://gitee.com/linjiabin100/pi-cloud-web.git | https://github.com/zengpi/pi-cloud-web.git | ## 项目功能模块 ``` - 系统管理 - 用户管理 - 菜单管理 - 角色管理 - 客户端管理 - 任务调度 - 系统监控 - 接口文档 - 操作日志 - 服务监控 ``` ## 运行环境 要在你的机器上开发运行 pi-cloud-web,你需要 node.js 16.0 + 版本,推荐使用 16.0.0。推荐的 IDE 是 [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (并且禁用 Vetur) 。 TypeScript 不能处理 .vue 的类型信息。所以我们用 vue-tsc 替换 tsc CLI 来进行类型检查。在编辑器中,我们需要 [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) 来让 TypeScript语言服务识别 .vue 的类型。 如果你觉得独立的 TypeScript 插件不够快,Volar 还实现了一个性能更好的[接管模式](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669)。您可以通过查看[此文档](https://cn.vuejs.org/guide/typescript/overview.html#volar-takeover-mode)开启。 ### nvm-windows nvm-windows 用于在 Windows 中管理 node.js 的多个版本安装。安装程序请点击 [此处](https://github.com/coreybutler/nvm-windows/releases) 下载,具体使用方式请参考 [官方文档](https://github.com/coreybutler/nvm-windows)。以下是常用操作: ```shell # 设置 node 国内镜像 $ nvm node_mirror https://npmmirror.com/mirrors/node/ # 设置 npm 国内镜像 $ nvm npm_mirror https://npmmirror.com/mirrors/npm/ # 安装指定 的 node.js $ nvm install # 查看已安装的 node.js $ nvm list # 切换到指定 的 node.js $ nvm use ``` ## 项目启动 ```bash # Project Setup npm install # Compile and Hot-Reload for Development npm run dev # Type-Check, Compile and Minify for Production npm run build # Lint with [ESLint](https://eslint.org/) npm run lint # Run Unit Tests with [Vitest](https://vitest.dev/) npm run test:unit # Run End-to-End Tests with [Cypress](https://www.cypress.io/) npm run test:e2e:dev ``` **注意:由于在 pi-admin 中 Element Plus 是按需导入的,当您第一次运行代码并打开系统页面时会出现短暂的卡顿,这是由于动态导入组件导致的。卡顿只会在首次拉取代码及首次运行时发生。** ## 参考文档 一定要阅读 pi-cloud-web 的 [参考文档](https://www.yuque.com/zengpi/szfuh0),它描述了开发、运行 pi-cloud-web 的必要信息以及核心原理。 阅读 [个人博客](https://www.cnblogs.com/zn-pi/) 也是一个不错的选择,它是对文档很好的一个补充,阅读它会对项目有更深的理解。