Skip to content

Commit 5a15002

Browse files
committed
创建初始版本
1 parent c36478b commit 5a15002

31 files changed

+18200
-0
lines changed

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# Editor directories and files
17+
.idea
18+
.vscode
19+
*.suo
20+
*.ntvs*
21+
*.njsproj
22+
*.sln
23+
*.sw?

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# layout
2+
3+
## Project setup
4+
```
5+
npm install
6+
```
7+
8+
### Compiles and hot-reloads for development
9+
```
10+
npm run serve
11+
```
12+
13+
### Compiles and minifies for production
14+
```
15+
npm run build
16+
```
17+
18+
### Lints and fixes files
19+
```
20+
npm run lint
21+
```
22+
23+
### Customize configuration
24+
See [Configuration Reference](https://cli.vuejs.org/config/).

babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
5+
}

package-lock.json

Lines changed: 12069 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"name": "basics",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"serve": "vue-cli-service serve",
7+
"build": "vue-cli-service build",
8+
"lint": "vue-cli-service lint"
9+
},
10+
"dependencies": {
11+
"ant-design-vue": "^1.7.6",
12+
"core-js": "^3.6.5",
13+
"sass-loader": "^8.0.2",
14+
"vue": "^2.6.11"
15+
},
16+
"devDependencies": {
17+
"@vue/cli-plugin-babel": "~4.5.0",
18+
"@vue/cli-plugin-eslint": "~4.5.0",
19+
"@vue/cli-service": "~4.5.0",
20+
"babel-eslint": "^10.1.0",
21+
"eslint": "^6.7.2",
22+
"eslint-plugin-vue": "^6.2.2",
23+
"sass": "^1.32.8",
24+
"sass-loader": "^8.0.2",
25+
"vue-template-compiler": "^2.6.11",
26+
"svg-sprite-loader": "^4.1.6"
27+
},
28+
"eslintConfig": {
29+
"root": true,
30+
"env": {
31+
"node": true
32+
},
33+
"extends": [
34+
"plugin:vue/essential",
35+
"eslint:recommended"
36+
],
37+
"parserOptions": {
38+
"parser": "babel-eslint"
39+
},
40+
"rules": {
41+
"no-unused-vars": 0,
42+
"no-empty":0
43+
},
44+
"globals":{
45+
"IDM": true,
46+
"$": true,
47+
"_":true
48+
}
49+
},
50+
"browserslist": [
51+
"> 1%",
52+
"last 2 versions",
53+
"not dead"
54+
]
55+
}

public/favicon.ico

16.6 KB
Binary file not shown.

public/index.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!DOCTYPE html>
2+
<html lang="zh-cmn-Hans" class="notranslate" translate="no">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7+
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
8+
<title><%= htmlWebpackPlugin.options.title %></title>
9+
10+
<%if(htmlWebpackPlugin.options.includeCss){
11+
htmlWebpackPlugin.options.includeCss.forEach((el)=>{%>
12+
<link rel="stylesheet" href="<%=el%>">
13+
<%})}%>
14+
</head>
15+
<body>
16+
<noscript>
17+
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
18+
</noscript>
19+
<div id="module_demo"></div>
20+
<!-- built files will be auto injected -->
21+
<%if(htmlWebpackPlugin.options.includeScripts){
22+
htmlWebpackPlugin.options.includeScripts.forEach((el)=>{%>
23+
<script type="text/javascript" src="<%=el%>"></script>
24+
<%})}%>
25+
</body>
26+
</html>

public/lib/axios.min.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/lib/idm.base.css

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*样式重写,这里其实就跟ant design vue的base.less基本一致,所以这里重写也覆盖预览页面,这是基础样式,所有组件都以此样式为基础*/
2+
body{
3+
margin: 0;
4+
padding: 0;
5+
color: rgba(0,0,0,.65);
6+
font-size: 14px;
7+
font-variant: tabular-nums;
8+
line-height: 1.4;
9+
background-color: #fff;
10+
font-feature-settings: "tnum";
11+
}
12+
* {
13+
font-family: pingfang SC, helvetica neue, arial, hiragino sans gb, microsoft yahei ui, microsoft yahei, simsun, sans-serif;
14+
}
15+
input::-ms-clear,
16+
input::-ms-reveal {
17+
display: none;
18+
}
19+
*,
20+
*::before,
21+
*::after {
22+
box-sizing: border-box;
23+
}
24+
@-ms-viewport {
25+
width: device-width;
26+
}
27+
28+
@-ms-viewport {
29+
width: device-width;
30+
}
31+
32+
article,
33+
aside,
34+
dialog,
35+
figcaption,
36+
figure,
37+
footer,
38+
header,
39+
hgroup,
40+
main,
41+
nav,
42+
section {
43+
display: block;
44+
}
45+
img{
46+
vertical-align: middle;
47+
border-style: none;
48+
}

0 commit comments

Comments
 (0)