Skip to content

Commit a1ee6c3

Browse files
committed
init
1 parent 709097f commit a1ee6c3

File tree

131 files changed

+9539
-23
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+9539
-23
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[Makefile]
16+
indent_style = tab

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "umi"
3+
}

.gitignore

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
1-
# Compiled class file
2-
*.class
3-
4-
# Log file
5-
*.log
6-
7-
# BlueJ files
8-
*.ctxt
9-
10-
# Mobile Tools for Java (J2ME)
11-
.mtj.tmp/
12-
13-
# Package Files #
14-
*.jar
15-
*.war
16-
*.nar
17-
*.ear
18-
*.zip
19-
*.tar.gz
20-
*.rar
21-
22-
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
23-
hs_err_pid*
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
.idea
3+
node_modules
4+
# dependencies
5+
/node_modules
6+
7+
# production
8+
/dist
9+
10+
# misc
11+
.DS_Store
12+
npm-debug.log*

.roadhogrc.mock.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// export default {
2+
// 'GET /*': 'http://localhost:8080/',
3+
// 'POST /*': 'http://localhost:8080/',
4+
// };

.webpackrc.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
const path = require('path');
2+
3+
export default {
4+
entry: './src/index.js',
5+
extraBabelPlugins: [
6+
['import', { libraryName: 'antd', libraryDirectory: 'es', style: true }],
7+
],
8+
html: {
9+
template: './src/index.ejs',
10+
},
11+
publicPath: "/",
12+
proxy: {
13+
'/api': {
14+
target:"http://127.0.0.1:8080",
15+
changeOrigin:true,
16+
secure: false,
17+
/*pathRewrite:{
18+
"^/api":""
19+
}*/
20+
21+
},
22+
},
23+
};

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# react-springboot-shiro
2+
3+
基于ant-design-pro的简易权限系统
4+
25
配合 springboot-shiro 一起使用的demo

mock/.gitkeep

Whitespace-only changes.

package.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"private": true,
3+
"scripts": {
4+
"start": "roadhog server",
5+
"build": "roadhog build",
6+
"lint": "eslint --ext .js src test",
7+
"precommit": "npm run lint"
8+
},
9+
"dependencies": {
10+
"@antv/data-set": "^0.8.0",
11+
"antd": "^3.9.3",
12+
"babel-plugin-import": "^1.8.0",
13+
"babel-polyfill": "^6.26.0",
14+
"classnames": "^2.2.5",
15+
"container-query-toolkit": "^0.1.3",
16+
"dva": "^2.3.1",
17+
"dva-loading": "^2.0.3",
18+
"enquire-js": "^0.2.1",
19+
"exenv": "^1.2.2",
20+
"lodash": "^4.17.10",
21+
"lodash-decorators": "^6.0.0",
22+
"moment": "^2.19.1",
23+
"path-to-regexp": "^2.1.0",
24+
"prop-types": "^15.5.10",
25+
"rc-drawer": "^1.7.6",
26+
"react": "^16.2.0",
27+
"react-container-query": "^0.11.0",
28+
"react-document-title": "^2.0.3",
29+
"react-dom": "^16.2.0",
30+
"react-fittext": "^1.0.0",
31+
"react-side-effect": "^1.1.5",
32+
"resize-observer-lite": "^0.2.3",
33+
"rollbar": "^2.3.4",
34+
"url-polyfill": "^1.0.10"
35+
},
36+
"devDependencies": {
37+
"babel-plugin-dva-hmr": "^0.3.2",
38+
"eslint": "^4.14.0",
39+
"eslint-config-umi": "^0.1.1",
40+
"eslint-plugin-flowtype": "^2.34.1",
41+
"eslint-plugin-import": "^2.6.0",
42+
"eslint-plugin-jsx-a11y": "^5.1.1",
43+
"eslint-plugin-react": "^7.1.0",
44+
"husky": "^0.12.0",
45+
"redbox-react": "^1.4.3",
46+
"roadhog": "^2.0.0"
47+
}
48+
}

public/index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<title>Dva Demo</title>
7+
<link rel="stylesheet" href="index.css" />
8+
</head>
9+
<body>
10+
11+
<div id="root"></div>
12+
<script src="index.js"></script>
13+
14+
</body>
15+
</html>

src/assets/logo.svg

Lines changed: 43 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)