vben
2020-11-27 68a96b7f81a1ad72c93a53c2ebfde046c66c215f
提交 | 用户 | age
743789 1 <p align="center">
C 2   <a href="https://github.com/anncwb/vue-vben-admin" target="_blank">
d37806 3     <img alt="VbenAdmin Logo" width="200" src="/anncwb/vue-vben-admin/raw/main/.github/res/imgs/logo.png">
743789 4   </a>
C 5 </p>
6 <h2 align="center">VUE VBEN ADMIN2.0</h2>
7
8 [Chinese](./README.md) | **English**
9
28392c 10 [CHANGELOG](CHANGELOG.en_US.md)
743789 11
e828ba 12 - [Introduction](#introduction)
V 13 - [GitHub](#github)
8f4d51 14   - [Thin](#thin)
e828ba 15 - [Preview](#preview)
V 16 - [Documentation](#documentation)
17 - [Preinstallation](#preinstallation)
18   - [Environmental requirements](#environmental-requirements)
19   - [UI framework](#ui-framework)
20   - [Icon](#icon)
21   - [Plugin](#plugin)
22   - [Suggested development environment](#suggested-development-environment)
23 - [Install](#install)
24 - [Usage](#usage)
25   - [Development environment](#development-environment)
26   - [Build](#build)
27   - [Format](#format)
28   - [Other](#other)
29 - [Git submit specifications](#git-submit-specifications)
30 - [Code contribution](#code-contribution)
31 - [Finished features](#finished-features)
32 - [Developing features](#developing-features)
70fba7 33 - [Browser support](#browser-support)
173d40 34 - [Plugins](#plugins)
743789 35
C 36 ## Introduction
37
d37806 38 The project is based on the vue3 style background management system implemented by ʻant-design-vue`, `typescript`,`vue3.0`,`vite`,`tsx`,
743789 39
C 40 ## GitHub
41
42 [vue-vben-admin2.0](https://github.com/anncwb/vue-vben-admin) - `main` branch
43
8f4d51 44 ### Thin
V 45
46 [vue-vben-admin-thin-next](https://github.com/anncwb/vben-admin-thin-next)
47
743789 48 ## Preview
C 49
8f4d51 50 - [2.0 preview](https://vvbin.cn/next/)
V 51
52 - [2.0 Thin Preview](https://vvbin.cn/thin/next/)
743789 53
C 54 Account for test: vben/123456
55
56 <p align="center">
57     <img alt="VbenAdmin Logo" width="100%" src="./.github/res/imgs/preview1.png">
58     <img alt="VbenAdmin Logo" width="100%" src="./.github/res/imgs/preview2.png">
59     <img alt="VbenAdmin Logo" width="100%" src="./.github/res/imgs/preview3.png">
60 </p>
61
62 ## Documentation
63
64 The documentation for 2.0 hasn't started yet, it will be provided later.
65
66 ## Preinstallation
67
68 ### Environmental requirements
69
70 - `Node.js`: - Version>`12.0.0` is better.
71 - `yarn` > `npm` > `cnpm`: - Package management tool.
72
73 ### UI framework
74
75 - [Tailwind CSS](https://tailwindcss.com/) - 2.0.0-beta.5 has deleted.
76 - [Ant Design Vue 2.0](https://2x.antdv.com/docs/vue/introduce-cn/)
77
78 ### Icon
79
80 - [Ant Design Vue Icon Component](https://2x.antdv.com/components/icon-cn/) - Icon which is imported on demand.
81 - [Iconify](https://iconify.design) - Icon can be used [Icônes](https://icones.netlify.app/)
82 - [PurgeIcons](https://github.com/antfu/purge-icons) - Icon which is used by build.
83
84 ### Plugin
85
86 - [Vue Router Next](https://github.com/vuejs/vue-router-next)
87 - [Vuex Next](https://github.com/vuejs/vuex)
88 - [vuex-module-decorators](https://github.com/championswimmer/vuex-module-decorators) - vuex modular
89 - [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock) - Mock plugin base on vite
90 - [vue-i18n](https://github.com/intlify/vue-i18n-next) - Internationalization
91 - [lodash-es](https://github.com/lodash/lodash) - JavaScript utility library
92 - [axios](https://github.com/axios/axios) - Http data interaction
93 - [TypeScript](https://www.typescriptlang.org/)
94
95 ### Suggested development environment
96
97 - `Git`: - Tool of version management
98 - `Visual Studio Code` - (VSCode): Latest version
99   - [VS Code Extensions](./.vscode/extensions.json)
100     - [Iconify IntelliSense](https://marketplace.visualstudio.com/items?itemName=antfu.iconify)
101     - [Tailwind CSS IntelliSense](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss) - Tailwind css style association
102     - [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur) - Essential for vue development
103     - [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) - Checking script code
104     - [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) - Code formatting
105     - [Stylelint](https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint) - Css formatting
106
107 ## Install
108
d37806 109 ```bash
V 110 #  Make git case sensitive to file names
743789 111 git config core.ignorecase false
C 112
d37806 113 # Pull code of the project
743789 114 git clone https://github.com/anncwb/vue-vben-admin.git vue-vben-admin-2.0
C 115
116 cd vue-vben-admin-2.0
117
d37806 118 # If you use other package management tool, you can install it by yourself
V 119 #  if you hasn't install yarn, please run: npm install -g yarn
743789 120 yarn install
C 121
122 ```
123
124 ## Usage
125
126 ### Development environment
127
128 ```bash
129 yarn serve
130 ```
131
132 ### Build
133
134 ```bash
135
136 yarn build # build
137
138 yarn build:no-cache # build, cache will be removed before build
139
140 yarn report # Generate build package report preview
141 ```
142
143 ### Format
144
145 ```bash
146 yarn lint:stylelint # css formatting
147
148 yarn lint:prettier # js/ts code formatting
149 ```
150
151 ### Other
152
153 ```bash
154 yarn reinstall # Remove dependencies and reinstall, supported window
155
156 yarn preview # Build and preview in local
157
158 yarn log # Generate CHANGELOG
159
160 yarn clean:cache # Delete cache
161
162 yarn clean:lib # Delete node_modules, supported window
163 ```
164
165 ## Git submit specifications
166
167 - Refer to [vue](https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md) specifications ([Angular](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular))
168
169   - `feat` Add new features
170   - `fix` Fix problem/BUG
171   - `style` Code style related and doesn't affect the running result
172   - `perf` Optimization/performance improvement
173   - `refactor` Refactor
174   - `revert` Undo edit
175   - `test` Test related
176   - `docs` Documentation/notes
177   - `chore` Dependent update/scaffolding configuration modification etc
178   - `workflow` Workflow improvements
179   - `ci` Continuous integration
180   - `types` Update file of type definition
181   - `wip` Developing
182
183 ## Code contribution
184
185 1. Fork code!
186 2. Create your own branch: `git checkout -b feat/xxxx`
187 3. Submit your changes: `git commit -am 'feat(function): add xxxxx'`
188 4. Push your branch: `git push origin feat/xxxx`
189 5. submit`pull request`
190
191 ## Finished features
192
193 - [x] Project construction (based on vite))
194 - [x] Login and exit
195 - [x] Menu (can search, drag and drop and menu layout)
196 - [x] Multiple tabs/breadcrumbs
197 - [x] Permission management base on role
198 - [x] Permission management base on background
199 - [x] The separation of routing and menu settings
200 - [x] Collapsible sidebar
201 - [x] Draggable sidebar
202 - [x] Multi-tab mode/global control
203 - [x] Menu search
204 - [x] Page loading
205 - [x] Scroll bar component
206 - [x] Pop-up window expansion (dragable, full screen, adaptive height)
207 - [x] Mock data
208 - [x] hook Package
209 - [x] Form component
210 - [x] Right-click menu
211 - [x] Watermark plugin
212 - [x] Animation component
213 - [x] QR code plugin
214 - [x] Internationalization plugin
215 - [x] Details component
216 - [x] Validation component
217 - [x] Tree component
218 - [x] Picture preview component
219 - [x] Table component
220 - [x] Chart library
221 - [x] Digital animation
222 - [x] First screen loading waiting animation
223 - [x] Extract the production environment profile
8a1bfd 224 - [x] Build Gzip
710158 225 - [x] System performance optimization
V 226 - [x] Data import and export
227 - [x] Global error handling
a0c319 228 - [x] Rich text component
661db0 229 - [x] Upload component
743789 230
C 231 ## Developing features
232
233 - [ ] Theme configuration
234 - [ ] Dark theme
235 - [ ] Build CDN
236
237 If you have more components/functions/suggestions/bugs/, welcome to submit pr or issue.
70fba7 238
V 239 ## Browser support
240
241 It is recommended to use the `Chrome` browser for local development. Development in the Firefox browser is relatively slow.
242
243 Support modern browsers, Not currently supported ie11,Follow-up consideration support ie11
244
8a1bfd 245 | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt=" Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt=" Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari |
V 246 | :-: | :-: | :-: | :-: | :-: |
247 | not support | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
248
249 More browsers can view [Can I Use Es Module](https://caniuse.com/?search=ES%20Module)
173d40 250
V 251 ## Plugins
252
253 If these plugins are helpful to you, you can give a star
254
255 - [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock)
256 - [vite-plugin-html](https://github.com/anncwb/vite-plugin-html)