Commit 42ddb16ae40c3dcd1c7674d2d89c45de077861a7
0 parents
first
Showing
459 changed files
with
123940 additions
and
0 deletions
Too many changes to show.
To preserve performance only 15 of 459 files are displayed.
.dockerignore
0 → 100644
1 | +++ a/.dockerignore | |
1 | +docs | |
2 | +public | |
3 | +src | |
4 | +.dockerignore | |
5 | +.editorconfig | |
6 | +.eslintignore | |
7 | +.gitattributes | |
8 | +.gitignore | |
9 | +.prettierrc | |
10 | +babel.config.js | |
11 | +Dockerfile | |
12 | +idea.config.js | |
13 | +LICENSE | |
14 | +package.json | |
15 | +package-lock.json | |
16 | +README.md | |
17 | +vue.config.js | |
18 | +yarn | |
19 | +yarn.lock | |
20 | +yarn-error.log | |
21 | +.idea | |
22 | +.svn | |
23 | +node_modules | |
0 | 24 | \ No newline at end of file |
... | ... |
.editorconfig
0 → 100644
1 | +++ a/.editorconfig | |
1 | +[*] | |
2 | +charset=utf-8 | |
3 | +end_of_line=crlf | |
4 | +insert_final_newline=false | |
5 | +indent_style=space | |
6 | +indent_size=2 | |
7 | + | |
8 | +[{*.ng,*.sht,*.html,*.shtm,*.shtml,*.htm}] | |
9 | +indent_style=space | |
10 | +indent_size=2 | |
11 | + | |
12 | +[{*.jhm,*.xslt,*.xul,*.rng,*.xsl,*.xsd,*.ant,*.tld,*.fxml,*.jrxml,*.xml,*.jnlp,*.wsdl}] | |
13 | +indent_style=space | |
14 | +indent_size=2 | |
15 | + | |
16 | +[{.babelrc,.stylelintrc,jest.config,.eslintrc,.prettierrc,*.json,*.jsb3,*.jsb2,*.bowerrc}] | |
17 | +indent_style=space | |
18 | +indent_size=2 | |
19 | + | |
20 | +[*.svg] | |
21 | +indent_style=space | |
22 | +indent_size=2 | |
23 | + | |
24 | +[*.js.map] | |
25 | +indent_style=space | |
26 | +indent_size=2 | |
27 | + | |
28 | +[*.less] | |
29 | +indent_style=space | |
30 | +indent_size=2 | |
31 | + | |
32 | +[*.vue] | |
33 | +indent_style=space | |
34 | +indent_size=2 | |
35 | + | |
36 | +[{.analysis_options,*.yml,*.yaml}] | |
37 | +indent_style=space | |
38 | +indent_size=2 | |
39 | + | |
... | ... |
.env
0 → 100644
.env.development
0 → 100644
.env.production
0 → 100644
.env.test
0 → 100644
.eslintignore
0 → 100644
.gitattributes
0 → 100644
.gitignore
0 → 100644
1 | +++ a/.gitignore | |
1 | +.DS_Store | |
2 | +node_modules | |
3 | +/dist | |
4 | + | |
5 | +# local env files | |
6 | +.env.local | |
7 | +.env.*.local | |
8 | + | |
9 | +# Log files | |
10 | +npm-debug.log* | |
11 | +yarn-debug.log* | |
12 | +yarn-error.log* | |
13 | + | |
14 | +# Editor directories and files | |
15 | +.idea | |
16 | +.vscode | |
17 | +*.suo | |
18 | +*.ntvs* | |
19 | +*.njsproj | |
20 | +*.sln | |
21 | +*.sw* | |
... | ... |
.prettierrc
0 → 100644
Dockerfile
0 → 100644
1 | +++ a/Dockerfile | |
1 | +FROM nginx | |
2 | +MAINTAINER jeecgos@163.com | |
3 | +VOLUME /tmp | |
4 | +ENV LANG en_US.UTF-8 | |
5 | +RUN echo "server { \ | |
6 | + listen 80; \ | |
7 | + location ^~ /jeecg-boot { \ | |
8 | + proxy_pass http://jeecg-boot-system:8080/jeecg-boot/; \ | |
9 | + proxy_set_header Host jeecg-boot-system; \ | |
10 | + proxy_set_header X-Real-IP \$remote_addr; \ | |
11 | + proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; \ | |
12 | + } \ | |
13 | + #解决Router(mode: 'history')模式下,刷新路由地址不能找到页面的问题 \ | |
14 | + location / { \ | |
15 | + root /var/www/html/; \ | |
16 | + index index.html index.htm; \ | |
17 | + if (!-e \$request_filename) { \ | |
18 | + rewrite ^(.*)\$ /index.html?s=\$1 last; \ | |
19 | + break; \ | |
20 | + } \ | |
21 | + } \ | |
22 | + access_log /var/log/nginx/access.log ; \ | |
23 | + } " > /etc/nginx/conf.d/default.conf \ | |
24 | + && mkdir -p /var/www \ | |
25 | + && mkdir -p /var/www/html | |
26 | + | |
27 | +ADD dist/ /var/www/html/ | |
28 | +EXPOSE 80 | |
29 | +EXPOSE 443 | |
0 | 30 | \ No newline at end of file |
... | ... |
LICENSE
0 → 100644
1 | +++ a/LICENSE | |
1 | +MIT License | |
2 | + | |
3 | +Copyright (c) 2019 DaiHao Zhang | |
4 | + | |
5 | +Permission is hereby granted, free of charge, to any person obtaining a copy | |
6 | +of this software and associated documentation files (the "Software"), to deal | |
7 | +in the Software without restriction, including without limitation the rights | |
8 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
9 | +copies of the Software, and to permit persons to whom the Software is | |
10 | +furnished to do so, subject to the following conditions: | |
11 | + | |
12 | +The above copyright notice and this permission notice shall be included in all | |
13 | +copies or substantial portions of the Software. | |
14 | + | |
15 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
16 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
17 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
18 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
19 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
20 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
21 | +SOFTWARE. | |
0 | 22 | \ No newline at end of file |
... | ... |
README.md
0 → 100644
1 | +++ a/README.md | |
1 | +Ant Design Jeecg Vue | |
2 | +==== | |
3 | + | |
4 | +当前最新版本: 2.4.2(发布日期:20210126) | |
5 | + | |
6 | +Overview | |
7 | +---- | |
8 | + | |
9 | +基于 [Ant Design of Vue](https://vuecomponent.github.io/ant-design-vue/docs/vue/introduce-cn/) 实现的 Ant Design Pro Vue 版 | |
10 | +Jeecg-boot 的前段UI框架,采用前后端分离方案,提供强大代码生成器的快速开发平台。 | |
11 | +前端页面代码和后端功能代码一键生成,不需要写任何代码,保持jeecg一贯的强大!! | |
12 | + | |
13 | + | |
14 | + | |
15 | +#### 前端技术 | |
16 | + | |
17 | +- 基础框架:[ant-design-vue](https://github.com/vueComponent/ant-design-vue) - Ant Design Of Vue 实现 | |
18 | +- JavaScript框架:Vue | |
19 | +- Webpack | |
20 | +- node | |
21 | +- yarn | |
22 | +- eslint | |
23 | +- @vue/cli 3.2.1 | |
24 | +- [vue-cropper](https://github.com/xyxiao001/vue-cropper) - 头像裁剪组件 | |
25 | +- [@antv/g2](https://antv.alipay.com/zh-cn/index.html) - Alipay AntV 数据可视化图表 | |
26 | +- [Viser-vue](https://viserjs.github.io/docs.html#/viser/guide/installation) - antv/g2 封装实现 | |
27 | + | |
28 | + | |
29 | + | |
30 | +项目下载和运行 | |
31 | +---- | |
32 | + | |
33 | +- 拉取项目代码 | |
34 | +```bash | |
35 | +git clone https://github.com/zhangdaiscott/jeecg-boot.git | |
36 | +cd jeecg-boot/ant-design-jeecg-vue | |
37 | +``` | |
38 | + | |
39 | +- 安装依赖 | |
40 | +``` | |
41 | +yarn install | |
42 | +``` | |
43 | + | |
44 | +- 开发模式运行 | |
45 | +``` | |
46 | +yarn run serve | |
47 | +``` | |
48 | + | |
49 | +- 编译项目 | |
50 | +``` | |
51 | +yarn run build | |
52 | +``` | |
53 | + | |
54 | +- Lints and fixes files | |
55 | +``` | |
56 | +yarn run lint | |
57 | +``` | |
58 | + | |
59 | + | |
60 | + | |
61 | +其他说明 | |
62 | +---- | |
63 | + | |
64 | +- 项目使用的 [vue-cli3](https://cli.vuejs.org/guide/), 请更新您的 cli | |
65 | + | |
66 | +- 关闭 Eslint (不推荐) 移除 `package.json` 中 `eslintConfig` 整个节点代码 | |
67 | + | |
68 | +- 修改 Ant Design 配色,在文件 `vue.config.js` 中,其他 less 变量覆盖参考 [ant design](https://ant.design/docs/react/customize-theme-cn) 官方说明 | |
69 | +```ecmascript 6 | |
70 | + css: { | |
71 | + loaderOptions: { | |
72 | + less: { | |
73 | + modifyVars: { | |
74 | + /* less 变量覆盖,用于自定义 ant design 主题 */ | |
75 | + | |
76 | + 'primary-color': '#F5222D', | |
77 | + 'link-color': '#F5222D', | |
78 | + 'border-radius-base': '4px', | |
79 | + }, | |
80 | + javascriptEnabled: true, | |
81 | + } | |
82 | + } | |
83 | + } | |
84 | +``` | |
85 | + | |
86 | + | |
87 | + | |
88 | +附属文档 | |
89 | +---- | |
90 | +- [Ant Design Vue](https://vuecomponent.github.io/ant-design-vue/docs/vue/introduce-cn) | |
91 | + | |
92 | +- [报表 viser-vue](https://viserjs.github.io/demo.html#/viser/bar/basic-bar) | |
93 | + | |
94 | +- [Vue](https://cn.vuejs.org/v2/guide) | |
95 | + | |
96 | +- [路由/菜单说明](https://github.com/zhangdaiscott/jeecg-boot/tree/master/ant-design-jeecg-vue/src/router/README.md) | |
97 | + | |
98 | +- [ANTD 默认配置项](https://github.com/zhangdaiscott/jeecg-boot/tree/master/ant-design-jeecg-vue/src/defaultSettings.js) | |
99 | + | |
100 | +- 其他待补充... | |
101 | + | |
102 | + | |
103 | +备注 | |
104 | +---- | |
105 | + | |
106 | +> @vue/cli 升级后,eslint 规则更新了。由于影响到全部 .vue 文件,需要逐个验证。既暂时关闭部分原本不验证的规则,后期维护时,在逐步修正这些 rules | |
107 | + | |
108 | + | |
109 | +Docker 镜像使用 | |
110 | +---- | |
111 | + | |
112 | + ``` | |
113 | +# 1.修改前端项目的后台域名 | |
114 | + .env.development | |
115 | + 域名改成: http://jeecg-boot-system:8080/jeecg-boot | |
116 | + | |
117 | +# 2.先进入打包前端项目 | |
118 | + yarn run build | |
119 | + | |
120 | +# 3.构建镜像 | |
121 | + docker build -t nginx:jeecgboot . | |
122 | + | |
123 | +# 4.启动镜像 | |
124 | + docker run --name jeecg-boot-nginx -p 80:80 -d nginx:jeecgboot | |
125 | + | |
126 | +# 5.配置host | |
127 | + | |
128 | + # jeecgboot | |
129 | + 127.0.0.1 jeecg-boot-redis | |
130 | + 127.0.0.1 jeecg-boot-mysql | |
131 | + 127.0.0.1 jeecg-boot-system | |
132 | + | |
133 | +# 6.访问前台项目 | |
134 | + http://localhost:80 | |
135 | +``` | |
0 | 136 | \ No newline at end of file |
... | ... |
babel.config.js
0 → 100644
idea.config.js
0 → 100644
1 | +++ a/idea.config.js | |
1 | +'use strict' | |
2 | +const path = require('path') | |
3 | + | |
4 | +function resolve (dir) { | |
5 | + return path.join(__dirname, '.', dir) | |
6 | +} | |
7 | + | |
8 | +module.exports = { | |
9 | + context: path.resolve(__dirname, './'), | |
10 | + resolve: { | |
11 | + extensions: ['.js', '.vue', '.json'], | |
12 | + alias: { | |
13 | + 'config': resolve('config'), | |
14 | + '@': resolve('src'), | |
15 | + '@views': resolve('src/views'), | |
16 | + '@comp': resolve('src/components'), | |
17 | + '@core': resolve('src/core'), | |
18 | + '@utils': resolve('src/utils'), | |
19 | + '@entry': resolve('src/entry'), | |
20 | + '@router': resolve('src/router'), | |
21 | + '@store': resolve('src/store') | |
22 | + } | |
23 | + }, | |
24 | +} | |
0 | 25 | \ No newline at end of file |
... | ... |