Skip to content

Commit 87164a2

Browse files
author
w-xuefeng
committed
feat: add common files
1 parent 636bb5f commit 87164a2

File tree

10 files changed

+748
-2
lines changed

10 files changed

+748
-2
lines changed

.eslintignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
node_modules/
2+
**/*.spec.*
3+
**/assets/
4+
*.html
5+
build/
6+
config/
7+
dist/
8+
test/
9+
static/
10+
package.json
11+
public/res

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ config/
77
dist/
88
test/
99
static/
10-
package.json
10+
package.json
11+
public/res

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img width="230" src="./public/res/logo.png">
2+
<img width="230" src="./public/res/img/logo.png">
33
</p>
44
<h1 align="center">
55
vue-apicloud-quickstart

public/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,18 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
66
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
7+
<link rel="stylesheet" href="res/css/api.css">
78
<title><%= htmlWebpackPlugin.options.title %></title>
89
</head>
910

1011
<body>
12+
<noscript>
13+
<strong>We're sorry but empty doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
14+
</noscript>
1115
<div id="app"></div>
16+
<script type="text/javascript" src="res/js/api.js"></script>
17+
<script type="text/javascript" src="res/js/init.js"></script>
18+
<script type="text/javascript" src="res/js/fastclick.min.js"></script>
1219
</body>
1320

1421
</html>

public/res/css/api.css

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
html{
2+
font-family: sans-serif;
3+
}
4+
html,body,header,section,footer,div,ul,ol,li,img,a,span,em,del,legend,center,strong,var,fieldset,form,label,dl,dt,dd,cite,input,hr,time,mark,code,figcaption,figure,textarea,h1,h2,h3,h4,h5,h6,p{
5+
margin:0;
6+
border:0;
7+
padding:0;
8+
font-style:normal;
9+
}
10+
html,body {
11+
-webkit-touch-callout:none;
12+
-webkit-text-size-adjust:none;
13+
-webkit-tap-highlight-color:rgba(0, 0, 0, 0);
14+
-webkit-user-select:none;
15+
background-color: #fff;
16+
}
17+
nav,article,aside,details,main,header,footer,section,fieldset,figcaption,figure{
18+
display: block;
19+
}
20+
img,a,button,em,del,strong,var,label,cite,small,time,mark,code,textarea{
21+
display:inline-block;
22+
}
23+
header,section,footer {
24+
position:relative;
25+
}
26+
ol,ul{
27+
list-style:none;
28+
}
29+
input,button,textarea {
30+
border:0;
31+
margin:0;
32+
padding:0;
33+
font-size:1em;
34+
line-height:1em;
35+
/*-webkit-appearance:none;*/
36+
background-color:rgba(0, 0, 0, 0);
37+
}
38+
span{
39+
display:inline-block;
40+
}
41+
a:active, a:hover {
42+
outline: 0;
43+
}
44+
a, a:visited{
45+
text-decoration:none;
46+
}
47+
48+
label, .wordWrap{
49+
word-wrap: break-word;
50+
word-break: break-all;
51+
}
52+
table {
53+
border-collapse: collapse;
54+
border-spacing: 0;
55+
}
56+
td,th {
57+
padding: 0;
58+
}
59+
.clearfix:after{
60+
content: ' ';
61+
display: block;
62+
clear: both;
63+
visibility:hidden;
64+
line-height: 0;
65+
height:0;
66+
}
67+
.loading_more{
68+
display: block;
69+
height: 1.5em;
70+
width: 100%;
71+
}
72+
.loading_more:before {
73+
display: inline-block; vertical-align: text-bottom;
74+
content: ' '; height: 16px; width: 16px; margin-right: 6px;
75+
background: url(../image/loading_more.gif) no-repeat center;
76+
-webkit-background-size: contain;
77+
background-size: contain;
78+
}
79+
.loading_more:after {
80+
content: '加载更多';
81+
}

0 commit comments

Comments
 (0)