This repository was archived by the owner on Mar 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.html
More file actions
200 lines (174 loc) · 6.2 KB
/
dev.html
File metadata and controls
200 lines (174 loc) · 6.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="keywords" content="Valine,极简风,评论系统,极简风评论系统,comment system">
<meta name="description" content="Valine - 一款基于Leancloud的极简风评论系统">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta content="telephone=no,email=no" name="format-detection">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,Chrome=1">
<title>AprilComment</title>
<script src="./dist/april-comment.js"></script>
<link rel="stylesheet" type="text/css" href="./dist/april-comment.css" />
</head>
<body>
<div class="market"></div>
<header>
<div class="container">
<a href="./" class="logo">Valine</a>
<span class="sub">A simple comment system based on Leancloud.</span>
<span class="april-comment-visit" pathname="/" expires="10">xx</span>
</div>
</header>
<div class="container">
<div class="placeholder"></div>
<div class="content">
<div id="va-comment-widget2"></div>
</div>
</div>
<div class="copy">
© 2017 <a href="https://github.com/xCss" target="_blank">云淡风轻</a>
</div>
<!-- <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> -->
<script>
console.log('AprilComment v'+AprilComment.version()+' ('+(AprilComment.isProduction()?'prod':'dev')+')')
var ac = null
// fetch('index.json', { method: 'GET' }).then(data => data.json()).then(async (json) => {
new Promise(async (a, b) => {
ac = new AprilComment({
el: 'va-comment-widget2',
pathname: '/',
// api: 'https://server.innc11.cn:6679',
// api: 'https://www.innc11.cn',
// api: 'https://hello-cloudbase-9gyv4rta0bd17d6a-1254063044.ap-shanghai.app.tcloudbase.com/waline',
api: 'https://innc11-waline-development.vercel.app',
authorMail: '8136be1d3863cfde23c3ddcbec892d27',
// smilies: simlies,
// smilies: [
// 'http://localhost/Smilies/maomao'
// ],
smilies: [
'https://cdn.jsdelivr.net/gh/innc11/Smilies@latest/aru',
'@https://cdn.jsdelivr.net/gh/walinejs/emojis@1.0.0/bilibili',
'@https://cdn.jsdelivr.net/gh/walinejs/emojis@1.0.0/qq',
'@https://cdn.jsdelivr.net/gh/walinejs/emojis@1.0.0/alus'
],
smilieAsUrl: false,
// websiteRequired: false,
capacity: 5,
placeholders: {
comment_tips: '还有什么要补充的吗?\n(支持MD格式)',
nick: '昵称*',
mail: '邮箱(会被保密)',
website: '网站',
}
})
// console.log('recent: ', await va.recent())
// console.log('count: ', await va.count('/'))
// console.log('views: ', await va.views('/'))
// console.log('visit: ', await va.visit('/'))
console.log('api: '+ac.opt.api)
a()
})
</script>
<style>
* {
/* margin: 0 auto; */
/* padding: 0;
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, "helvetica neue", helvetica, ubuntu, roboto, noto, "segoe ui", Arial, sans-serif; */
}
body {
background-color: rgb(238, 238, 238);
margin: 0 auto;
}
header {
background: #fff;
}
/* a {
color: #999;
text-decoration: none;
border-bottom: 1px dotted #dedede;
} */
.logo {
display: inline-block;
height: 60px;
font-size: 24px;
line-height: 60px;
color: #4286f494;
vertical-align: base-line;
}
.sub {
font-size: 12px;
color: #9c9c9c;
padding: 0 5px;
}
.market {
background-color: #4ec780;
height: 398px;
position: absolute;
top: 60px;
width: 100%;
outline: none;
display: block;
z-index: -1;
}
.container {
width: 80%;
margin: auto;
}
.placeholder {
height: 56px;
}
@media screen and (max-width:720px) {
header {
text-align: center;
}
.sub {
display: block;
padding-bottom: 10px;
}
.container {
width: 100%;
}
.placeholder,
.market {
display: none;
}
}
.content {
background: #fff;
padding: 10px;
}
/* ul,
li {
list-style: none;
} */
/* .prolist {
padding: 10px 20px 20px 20px;
font-weight: 400;
font-size: 16px;
font-family: -apple-system, BlinkMacSystemFont, 'Mirages Custom', 'Merriweather', 'Open Sans', "Segoe UI", Roboto, "PingFang SC", "Microsoft Yahei", "WenQuanYi Micro Hei", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", Helvetica, Arial, sans-serif;
line-height: 1.5;
} */
/* blockquote {
margin: 10px 0;
padding: 0 1em;
color: #6a737d;
border-left: 0.25em solid #dfe2e5;
} */
#github {
padding: 20px 0;
}
.copy {
line-height: 60px;
text-align: center;
font-size: 14px;
color: #9c9c9c;
}
</style>
</body>
</html>