Commit afbcf043fc81aedd14ed0515de0df5c7210ad9c7

Authored by vben
1 parent ad368865

chore: update readme.md

build/docs/imgs/logo.png renamed to .github/res/imgs/logo.png

1.94 KB

build/docs/imgs/preview1.png renamed to .github/res/imgs/preview1.png

389 KB

build/docs/imgs/preview2.png renamed to .github/res/imgs/preview2.png

548 KB

build/docs/imgs/preview3.png renamed to .github/res/imgs/preview3.png

512 KB

build/docs/imgs/qq.jpeg renamed to .github/res/imgs/qq.jpeg

102 KB

.gitignore
1 1 node_modules
2 2 .DS_Store
3 3 dist
4   -*.local
5 4 .npmrc
6 5 .cache
  6 +
  7 +.local
  8 +# local env files
  9 +.env.local
  10 +.env.*.local
  11 +
  12 +# Log files
  13 +npm-debug.log*
  14 +yarn-debug.log*
  15 +yarn-error.log*
  16 +pnpm-debug.log*
  17 +
  18 +# Editor directories and files
  19 +.idea
  20 +# .vscode
  21 +*.suo
  22 +*.ntvs*
  23 +*.njsproj
  24 +*.sln
  25 +*.sw?
... ...
README.md
1 1 <p align="center">
2 2 <a href="https://github.com/anncwb/vue-vben-admin" target="_blank">
3   - <img alt="VbenAdmin Logo" width="200" src="./docs/imgs/logo.png">
  3 + <img alt="VbenAdmin Logo" width="200" src="./.github/res/imgs/logo.png">
4 4 </a>
5 5 </p>
6   -<h2 align="center">VUE VBEN ADMIN</h2>
  6 +<h2 align="center">VUE VBEN ADMIN2.0</h2>
7 7  
8   -**中文**
  8 +**中文** | [English](./README-ES.md)
  9 +
  10 +[更新日志](CHANGELOG.md)
  11 +
  12 +- [介绍](#介绍)
  13 +- [gitHub 地址](#github-地址)
  14 +- [预览地址](#预览地址)
  15 +- [文档](#文档)
  16 +- [预安装](#预安装)
  17 + - [环境要求](#环境要求)
  18 + - [UI 框架](#ui-框架)
  19 + - [图标](#图标)
  20 + - [插件](#插件)
  21 + - [建议开发环境](#建议开发环境)
  22 +- [安装](#安装)
  23 +- [使用](#使用)
  24 + - [开发环境](#开发环境)
  25 + - [打包](#打包)
  26 + - [格式化](#格式化)
  27 + - [其他](#其他)
  28 +- [Git 提交规范](#git-提交规范)
  29 +- [代码贡献](#代码贡献)
  30 +- [已完成功能](#已完成功能)
  31 +- [正在开发的功能](#正在开发的功能)
  32 +- [加入我们](#加入我们)
  33 +
  34 +## 介绍
9 35  
10 36 该分支为 2.0 新分支,使用 vue3 进行开发。
11 37  
12 38 1.0 分支请切换到`master`分支。1.0 采用`vue2.6`+`vue-composition-api`+`vue-cli`开发
13 39  
14   -一个适合开发中大型项目的基础框架,需要对`vue`,`typescript`有一定的了解,也可以作为了解新写法的一个例子来看,提前适应后续新版本的开发方式
15   -
16 40 项目基于`ant-design-vue`,`typescript`,`vue3.0`,`vite`,`tailwindcss`,`tsx`实现的 vue3 风格的后台管理系统,
17 41  
18   -### gitHub 地址
  42 +## gitHub 地址
19 43  
20   -[vue-vben-admin2.0](https://github.com/anncwb/vue-vben-admin)
  44 +[vue-vben-admin2.0](https://github.com/anncwb/vue-vben-admin) - `main` 分支
  45 +
  46 +## 预览地址
  47 +
  48 +[2.0 在线预览](https://vvbin.cn/next/)
21 49  
22 50 <p align="center">
23   - <img alt="VbenAdmin Logo" width="100%" src="./build/docs/imgs/preview1.png">
24   - <img alt="VbenAdmin Logo" width="100%" src="./build/docs/imgs/preview2.png">
25   - <img alt="VbenAdmin Logo" width="100%" src="./build/docs/imgs/preview3.png">
  51 + <img alt="VbenAdmin Logo" width="100%" src="./.github/res/imgs/preview1.png">
  52 + <img alt="VbenAdmin Logo" width="100%" src="./.github/res/imgs/preview2.png">
  53 + <img alt="VbenAdmin Logo" width="100%" src="./.github/res/imgs/preview3.png">
26 54 </p>
27 55  
28   -### 文档
  56 +## 文档
29 57  
30   -2.0 文档还没开始写。后续补上。
  58 +2.0 文档还没开始写。后续补上。
31 59  
32   -## 使用到的技术
  60 +## 预安装
33 61  
34   -- vue3
35   -- composition-api:
36   -- vuex4
37   -- vuex-module-decorators
38   -- vue-router4
39   -- axios@0.19.2
40   -- ant-design-vue@2.x
41   -- mockjs
42   -- vue-i18n
43   -- moment
44   -- lodash
  62 +### 环境要求
45 63  
46   -[更新日志](CHANGELOG.md)
  64 +- `Node.js`: - 版本最好大于 `12.0.0`
  65 +- `yarn` > `npm` > `cnpm`: - 包管理工具.
47 66  
48   -- [使用到的技术](#使用到的技术)
49   -- [环境要求](#环境要求)
50   - - [建议开发环境](#建议开发环境)
51   -- [安装](#安装)
52   -- [命令参考(Terminal)](#命令参考terminal)
53   - - [启动开发环境](#启动开发环境)
54   - - [打包](#打包)
55   - - [格式化](#格式化)
56   - - [其他](#其他)
57   -- [Git 提交规范](#git-提交规范)
58   -- [代码贡献](#代码贡献)
59   -- [开发计划](#开发计划)
60   -- [加入我们](#加入我们)
61   --
  67 +### UI 框架
62 68  
63   -## 环境要求
  69 +- [Tailwind CSS](https://tailwindcss.com/)
  70 +- [Ant Design Vue 2.0](https://2x.antdv.com/docs/vue/introduce-cn/)
64 71  
65   -- `Node.js`: >= v10
66   -- `yarn`: 最新
  72 +### 图标
67 73  
68   -### 建议开发环境
  74 +- [Ant Design Vue Icon Component](https://2x.antdv.com/components/icon-cn/) - 按需引入所需图标.
  75 +- [Iconify](https://iconify.design) - 使用任何图标集中的图标 [Icônes](https://icones.netlify.app/)
  76 +- [PurgeIcons](https://github.com/antfu/purge-icons) - 仅打包所使用到的图标.
69 77  
70   -- `Git`: 最新 代码管理
71   -- `Visual Studio Code` (VSCode): 最新 IDE
  78 +### 插件
72 79  
73   -VSCode 插件
  80 +- [Vue Router Next](https://github.com/vuejs/vue-router-next)
  81 +- [Vuex Next](https://github.com/vuejs/vuex)
  82 +- [vuex-module-decorators](https://github.com/championswimmer/vuex-module-decorators) - vuex 模块化
  83 +- [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock) - 基于 vite 的 mock 插件.
  84 +- [vue-i18n](https://github.com/intlify/vue-i18n-next) - 国际化
  85 +- [lodash-es](https://github.com/lodash/lodash) - JavaScript 实用程序库
  86 +- [moment](https://github.com/moment/moment) - 时间操作库
  87 +- [axios](https://github.com/axios/axios) - Http 数据交互
  88 +- [TypeScript](https://www.typescriptlang.org/)
74 89  
75   -- `Vetur`: vue 开发必备
76   -- `GitLens`: Git 可视化工具
77   -- `ESLint`: 脚本代码检查
78   -- `stylelint`: 样式代码检查
79   -- `Prettier - Code formatter`:代码格式化
  90 +### 建议开发环境
  91 +
  92 +- `Git`: - 版本管理工具
  93 +- `Visual Studio Code` - (VSCode): 最新版本
  94 + - [VS Code Extensions](./.vscode/extensions.json)
  95 + - [Iconify IntelliSense](https://marketplace.visualstudio.com/items?itemName=antfu.iconify)
  96 + - [Tailwind CSS IntelliSense](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss) - Tailwind Css 样式联想
  97 + - [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur) - vue 开发必备
  98 + - [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) - 脚本代码检查
  99 + - [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) - 代码格式化
  100 + - [Stylelint](https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint) - css 格式化
80 101  
81 102 ## 安装
82 103  
83 104 ```js
84   -git config core.ignorecase false # 使git对文件名大小写敏感
  105 +// 使git对文件名大小写敏感
  106 +git config core.ignorecase false
85 107  
86 108 // 拉取项目代码
87 109  
88   -git clone https://github.com/anncwb/vue-vben-admin.git
  110 +git clone https://github.com/anncwb/vue-vben-admin.git vue-vben-admin-2.0
89 111  
90   -cd vue-vben-admin
  112 +cd vue-vben-admin-2.0
91 113  
92   -// 最好使用yarn,否则热更新可能出现问题
  114 +// 如果使用别的包,可以执行安装
  115 +// 如果未安装yarn,请运行:npm install -g yarn
93 116 yarn install
94 117  
95 118 ```
96 119  
97   -## 命令参考(Terminal)
  120 +## 使用
98 121  
99   -### 启动开发环境
  122 +### 开发环境
100 123  
101 124 ```bash
102 125 yarn serve
... ... @@ -104,13 +127,11 @@ yarn serve
104 127  
105 128 ### 打包
106 129  
107   -同时会生成文件名 `window-glob.js` 配置文件,项目配置可以动态修改该文件实时更新代码变量,比如接口地址
108   -
109 130 ```bash
110 131  
111   -yarn build # 打包 会使用hardSource进行打包
  132 +yarn build # 打包
112 133  
113   -yarn build:no-cache # 打包 不会使用hardSource进行打包
  134 +yarn build:no-cache # 打包,执行之前会先删除缓存
114 135  
115 136 yarn report # 生成构建包表表预览
116 137 ```
... ... @@ -131,6 +152,10 @@ yarn reinstall # 删除依赖重新装,兼容window
131 152 yarn preview # 本地进行打包预览
132 153  
133 154 yarn log # 生成CHANGELOG
  155 +
  156 +yarn clean:cache # 删除缓存
  157 +
  158 +yarn clean:lib # 删除node_modules,兼容window系统
134 159 ```
135 160  
136 161 ## Git 提交规范
... ... @@ -148,7 +173,7 @@ yarn log # 生成CHANGELOG
148 173 - `chore` 依赖更新/脚手架配置修改等
149 174 - `workflow` 工作流改进
150 175 - `ci` 持续集成
151   - - `mod` 不确定分类的修
  176 + - `types` 类型定义文件更
152 177 - `wip` 删除文件
153 178  
154 179 ## 代码贡献
... ... @@ -159,11 +184,7 @@ yarn log # 生成CHANGELOG
159 184 4. 推送您的分支: `git push origin feat/xxxx`
160 185 5. 提交`pull request`
161 186  
162   -## 开发计划
163   -
164   -由于开发时间较短,所以功能暂时较少
165   -
166   -后续会逐步完善,有需要什么组件可以提出来
  187 +## 已完成功能
167 188  
168 189 - [x] 项目搭建(基于 vite)
169 190 - [x] 登录和注销
... ... @@ -199,6 +220,10 @@ yarn log # 生成CHANGELOG
199 220 - [x] 图片预览组件
200 221 - [x] 表格组件
201 222 - [x] 可编辑表格
  223 +
  224 +## 正在开发的功能
  225 +
  226 +- [ ] 全局错误处理
202 227 - [ ] 图表库
203 228 - [ ] 数字动画
204 229 - [ ] 主题配置
... ... @@ -207,6 +232,8 @@ yarn log # 生成CHANGELOG
207 232 - [ ] 上传组件
208 233 - [ ] 数据导入导出
209 234 - [ ] 黑暗主题
  235 +- [ ] 打包 Gzip
  236 +- [ ] 抽取生产环境配置文件
210 237  
211 238 更多组件/功能/建议/bug/欢迎提交 pr 或者 issue
212 239  
... ... @@ -216,4 +243,4 @@ yarn log # 生成CHANGELOG
216 243  
217 244 - QQ 群 `569291866`
218 245  
219   - <img alt="VbenAdmin Logo" width="100" src="./build/docs/imgs/qq.jpeg">
  246 + <img alt="VbenAdmin Logo" width="100" src="./.github/res/imgs/qq.jpeg">
... ...