forked from itxve/aliyundriver-refresh-token
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
98 lines (86 loc) · 2.02 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>QR Code扫码获取阿里云盘refresh token</title>
</head>
<script type="module" src="./index.ts"></script>
<body>
<div id="app" class="main">
<img id="qrcode" class="qrcode-img" />
<div id="expire">
<p>二维码已失效</p>
<button class="refresh">刷新二维码</button>
</div>
</div>
<span class="main" id="tip"></span>
<div class="main" id="user">
<h4>用户信息</h4>
<img width="120px" height="120px" id="user-img" />
<span style="font-size: 28px; color: #673ab7;" id="nick-name"></span>
<div style="margin:10px;">
<label for="user-info">
<b><i>refreshToken: </i><span id="user-info"
style="overflow: auto;width: 600px;font-size: 18px; color: #8315cd"></span></b>
</label>
</div>
</div>
</body>
<style>
.main {
display: flex;
position: relative;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 30px;
}
.qrcode-img {
box-shadow: 0px 0px 1px 1px rgb(28 28 32 / 5%), 0px 8px 24px rgb(28 28 32 / 12%);
border-radius: 10px;
width: 128px;
height: 128px;
display: flex;
justify-content: center;
align-items: center;
}
button.refresh {
cursor: pointer;
font-size: 12px;
color: #f0f0f0;
background: #637dff;
line-height: 24px;
height: 24px;
width: auto;
padding: 0px 10px;
border-radius: 30px;
border: 0;
}
#expire {
background: hsla(0, 0%, 100%, .9);
display: none;
flex-direction: column;
justify-content: center;
align-items: center;
position: absolute;
height: 100%;
top: 0;
height: 100%;
width: 100%;
}
#expire p {
font-size: 14px;
}
#token {
z-index: 100;
}
.hidden {
display: none !important;
}
.show {
display: flex !important;
}
</style>
</html>