koishi-plugin-node-async-bot-all 2.30.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commands.d.ts +26 -57
- package/lib/config.d.ts +38 -0
- package/lib/fun.d.ts +29 -15
- package/lib/index.d.ts +24 -39
- package/lib/index.js +754 -880
- package/package.json +27 -21
- package/res/steamNews.html +179 -0
- package/res/slNews.html +0 -71
- package/res/userCard.html +0 -242
- package/res/userMsg.html +0 -110
package/package.json
CHANGED
|
@@ -1,30 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-node-async-bot-all",
|
|
3
|
+
"version": "3.0.0",
|
|
3
4
|
"description": "NodeAsync Bot插件(自用)",
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
"keywords": [
|
|
6
|
+
"chatbot",
|
|
7
|
+
"koishi",
|
|
8
|
+
"plugin"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://www.tasaed.top",
|
|
11
|
+
"license": "AGPL-3.0",
|
|
7
12
|
"contributors": [
|
|
8
13
|
"ccd2s <tasaedem@outlook.com>"
|
|
9
14
|
],
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/ccd2s/node-async-bot-all.git"
|
|
18
|
+
},
|
|
10
19
|
"files": [
|
|
11
20
|
"lib",
|
|
12
21
|
"dist",
|
|
13
22
|
"res"
|
|
14
23
|
],
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
"koishi": {
|
|
23
|
-
"preview": true
|
|
24
|
+
"main": "lib/index.js",
|
|
25
|
+
"typings": "lib/index.d.ts",
|
|
26
|
+
"scripts": {
|
|
27
|
+
"lint": "oxlint",
|
|
28
|
+
"lint:fix": "oxlint --fix",
|
|
29
|
+
"fmt": "oxfmt",
|
|
30
|
+
"fmt:check": "oxfmt --check"
|
|
24
31
|
},
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"feedsmith": "^2.9.4",
|
|
34
|
+
"minecraft-server-util": "^5.4.4",
|
|
35
|
+
"oxfmt": "^0.52.0",
|
|
36
|
+
"oxlint": "^1.67.0",
|
|
37
|
+
"steam-server-query": "^1.1.3"
|
|
28
38
|
},
|
|
29
39
|
"devDependencies": {
|
|
30
40
|
"@koishijs/client": "^5.30.11"
|
|
@@ -35,11 +45,7 @@
|
|
|
35
45
|
"@koishijs/plugin-market": "^2.11.8",
|
|
36
46
|
"koishi": "^4.18.7"
|
|
37
47
|
},
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"@bbob/preset-html5": "^4.3.1",
|
|
41
|
-
"bing-translate-api": "^4.2.0",
|
|
42
|
-
"minecraft-server-util": "^5.4.4",
|
|
43
|
-
"steam-server-query": "^1.1.3"
|
|
48
|
+
"koishi": {
|
|
49
|
+
"preview": true
|
|
44
50
|
}
|
|
45
51
|
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Steam News Template</title>
|
|
7
|
+
<style>
|
|
8
|
+
/* 基础样式与 Steam 经典暗色调背景 */
|
|
9
|
+
body {
|
|
10
|
+
background-color: #1b2838; /* Steam 经典蓝黑背景 */
|
|
11
|
+
color: #c6d4df; /* 浅灰色文字,降低视觉疲劳 */
|
|
12
|
+
font-family:
|
|
13
|
+
"Motiva Sans",
|
|
14
|
+
-apple-system,
|
|
15
|
+
BlinkMacSystemFont,
|
|
16
|
+
"Segoe UI",
|
|
17
|
+
Roboto,
|
|
18
|
+
"Helvetica Neue",
|
|
19
|
+
Arial,
|
|
20
|
+
sans-serif;
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: 40px 20px;
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* 新闻卡片容器 */
|
|
29
|
+
.news-container {
|
|
30
|
+
max-width: 800px;
|
|
31
|
+
width: 100%;
|
|
32
|
+
background: #121c27; /* 略深于背景的卡片色 */
|
|
33
|
+
border-radius: 5px;
|
|
34
|
+
padding: 30px;
|
|
35
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
|
|
36
|
+
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* 封面图容器(自适应比例,避免拉伸) */
|
|
40
|
+
.cover-image-container {
|
|
41
|
+
width: 100%;
|
|
42
|
+
aspect-ratio: 16 / 9; /* 保持 standard 16:9 比例 */
|
|
43
|
+
background-color: #2a3f5a;
|
|
44
|
+
border-radius: 4px;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
margin-bottom: 24px;
|
|
47
|
+
position: relative;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.cover-image {
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: 100%;
|
|
53
|
+
object-fit: cover; /* 画面裁切填充 */
|
|
54
|
+
display: block;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* 日期样式 */
|
|
58
|
+
.news-date {
|
|
59
|
+
font-size: 14px;
|
|
60
|
+
color: #66c0f4; /* Steam 经典亮蓝色 */
|
|
61
|
+
text-transform: uppercase;
|
|
62
|
+
letter-spacing: 1px;
|
|
63
|
+
margin-bottom: 10px;
|
|
64
|
+
font-weight: 500;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* 标题样式 */
|
|
68
|
+
.news-title {
|
|
69
|
+
font-size: 30px;
|
|
70
|
+
font-weight: 700;
|
|
71
|
+
color: #ffffff;
|
|
72
|
+
margin: 0 0 24px 0;
|
|
73
|
+
line-height: 1.3;
|
|
74
|
+
letter-spacing: -0.5px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* 分割线 */
|
|
78
|
+
.divider {
|
|
79
|
+
height: 1px;
|
|
80
|
+
background: linear-gradient(90deg, #2a3f5a 0%, rgba(42, 63, 90, 0) 100%);
|
|
81
|
+
margin-bottom: 24px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* ==========================================================================
|
|
85
|
+
Steam BBCode 标签适配样式
|
|
86
|
+
========================================================================== */
|
|
87
|
+
|
|
88
|
+
/* 段落 */
|
|
89
|
+
.bb_paragraph {
|
|
90
|
+
font-size: 16px;
|
|
91
|
+
line-height: 1.7;
|
|
92
|
+
color: #acb8c4;
|
|
93
|
+
margin-top: 0;
|
|
94
|
+
margin-bottom: 18px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* 一级标题 */
|
|
98
|
+
.bb_h1 {
|
|
99
|
+
font-size: 24px;
|
|
100
|
+
font-weight: 700;
|
|
101
|
+
color: #ffffff;
|
|
102
|
+
margin-top: 32px;
|
|
103
|
+
margin-bottom: 14px;
|
|
104
|
+
padding-bottom: 6px;
|
|
105
|
+
border-bottom: 1px solid #2a3f5a;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* 二级标题 */
|
|
109
|
+
.bb_h2 {
|
|
110
|
+
font-size: 20px;
|
|
111
|
+
font-weight: 700;
|
|
112
|
+
color: #ffffff;
|
|
113
|
+
margin-top: 26px;
|
|
114
|
+
margin-bottom: 12px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* 三级标题 */
|
|
118
|
+
.bb_h3 {
|
|
119
|
+
font-size: 18px;
|
|
120
|
+
font-weight: 600;
|
|
121
|
+
color: #66c0f4; /* 使用亮蓝强调 */
|
|
122
|
+
margin-top: 22px;
|
|
123
|
+
margin-bottom: 10px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* 无序列表 */
|
|
127
|
+
.bb_ul {
|
|
128
|
+
list-style-type: none; /* 移除默认圆点,改用自定义美化 */
|
|
129
|
+
padding-left: 0;
|
|
130
|
+
margin-top: 0;
|
|
131
|
+
margin-bottom: 18px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* 列表项 */
|
|
135
|
+
.bb_ul li {
|
|
136
|
+
position: relative;
|
|
137
|
+
padding-left: 20px;
|
|
138
|
+
margin-bottom: 8px;
|
|
139
|
+
font-size: 15px;
|
|
140
|
+
line-height: 1.6;
|
|
141
|
+
color: #acb8c4;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* 使用伪元素绘制 Steam 风格的点(小方块) */
|
|
145
|
+
.bb_ul li::before {
|
|
146
|
+
content: "•";
|
|
147
|
+
position: absolute;
|
|
148
|
+
left: 5px;
|
|
149
|
+
color: #66c0f4;
|
|
150
|
+
font-weight: bold;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.bb_link {
|
|
154
|
+
text-decoration: none;
|
|
155
|
+
color: #ffffff;
|
|
156
|
+
}
|
|
157
|
+
</style>
|
|
158
|
+
</head>
|
|
159
|
+
<body>
|
|
160
|
+
<div class="news-container">
|
|
161
|
+
<!--!
|
|
162
|
+
<div class="cover-image-container">
|
|
163
|
+
<img class="cover-image" src="{imgUrl}" alt="Cover Image">
|
|
164
|
+
</div>!!-->
|
|
165
|
+
|
|
166
|
+
<!-- 日期占位符 -->
|
|
167
|
+
<div class="news-date">{date}</div>
|
|
168
|
+
|
|
169
|
+
<!-- 标题占位符 -->
|
|
170
|
+
<h1 class="news-title">{title}</h1>
|
|
171
|
+
|
|
172
|
+
<!-- 装饰分割线 -->
|
|
173
|
+
<div class="divider"></div>
|
|
174
|
+
|
|
175
|
+
<!-- 新闻正文内容 -->
|
|
176
|
+
<div class="news-content">{content}</div>
|
|
177
|
+
</div>
|
|
178
|
+
</body>
|
|
179
|
+
</html>
|
package/res/slNews.html
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="zh-CN">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<style>
|
|
6
|
-
body {
|
|
7
|
-
margin: 0;
|
|
8
|
-
padding: 0;
|
|
9
|
-
background-color: #1b2838; /* Steam 经典深蓝背景 */
|
|
10
|
-
font-family: "Motiva Sans", Arial, Helvetica, sans-serif;
|
|
11
|
-
color: #acb2b8;
|
|
12
|
-
display: flex;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
}
|
|
15
|
-
.container {
|
|
16
|
-
width: 100%;
|
|
17
|
-
max-width: 800px;
|
|
18
|
-
background-color: #1b2838;
|
|
19
|
-
}
|
|
20
|
-
.content-padding {
|
|
21
|
-
padding: 30px;
|
|
22
|
-
}
|
|
23
|
-
.date {
|
|
24
|
-
color: #808589;
|
|
25
|
-
font-size: 13px;
|
|
26
|
-
text-transform: uppercase;
|
|
27
|
-
letter-spacing: 1px;
|
|
28
|
-
margin-bottom: 10px;
|
|
29
|
-
}
|
|
30
|
-
.title {
|
|
31
|
-
color: #ffffff;
|
|
32
|
-
font-size: 32px;
|
|
33
|
-
font-weight: bold;
|
|
34
|
-
line-height: 1.2;
|
|
35
|
-
margin-bottom: 20px;
|
|
36
|
-
text-shadow: 0 0 10px rgba(0,0,0,0.5);
|
|
37
|
-
}
|
|
38
|
-
.body-text {
|
|
39
|
-
font-size: 16px;
|
|
40
|
-
line-height: 1.6;
|
|
41
|
-
color: #d1d1d1;
|
|
42
|
-
}
|
|
43
|
-
.body-text p {
|
|
44
|
-
margin-bottom: 20px;
|
|
45
|
-
}
|
|
46
|
-
.update-box h3 {
|
|
47
|
-
color: #1a9fff;
|
|
48
|
-
margin-top: 0;
|
|
49
|
-
}
|
|
50
|
-
ul {
|
|
51
|
-
padding-left: 20px;
|
|
52
|
-
}
|
|
53
|
-
li {
|
|
54
|
-
margin-bottom: 10px;
|
|
55
|
-
}
|
|
56
|
-
</style>
|
|
57
|
-
<title>News</title>
|
|
58
|
-
</head>
|
|
59
|
-
<body>
|
|
60
|
-
<div class="container">
|
|
61
|
-
<div class="content-padding">
|
|
62
|
-
<div class="date">{date}</div>
|
|
63
|
-
<div class="title">{title}</div>
|
|
64
|
-
|
|
65
|
-
<div class="body-text">
|
|
66
|
-
{content}
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
</body>
|
|
71
|
-
</html>
|
package/res/userCard.html
DELETED
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="zh-CN">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>UserCard</title>
|
|
7
|
-
<style>
|
|
8
|
-
/* 全局重置 */
|
|
9
|
-
* {
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
margin: 0;
|
|
12
|
-
padding: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
body {
|
|
16
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
17
|
-
background-color: #f0f2f5;
|
|
18
|
-
display: flex;
|
|
19
|
-
justify-content: center;
|
|
20
|
-
align-items: flex-start; /* 顶部对齐 */
|
|
21
|
-
min-height: 100vh;
|
|
22
|
-
padding: 20px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/* 卡片容器 */
|
|
26
|
-
.card {
|
|
27
|
-
width: 400px; /* 固定宽度,配合 puppeteer 视口 */
|
|
28
|
-
background: #ffffff;
|
|
29
|
-
border-radius: 16px;
|
|
30
|
-
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
position: relative;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* 顶部背景图/颜色 */
|
|
36
|
-
.card-header-bg {
|
|
37
|
-
height: 120px;
|
|
38
|
-
background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/* 个人信息主要区域 */
|
|
42
|
-
.profile-main {
|
|
43
|
-
padding: 0 24px;
|
|
44
|
-
margin-top: -50px; /* 让头像上浮 */
|
|
45
|
-
text-align: center;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/* 头像容器 */
|
|
49
|
-
.avatar-container {
|
|
50
|
-
position: relative;
|
|
51
|
-
display: inline-block;
|
|
52
|
-
padding: 4px;
|
|
53
|
-
background: #fff;
|
|
54
|
-
border-radius: 50%;
|
|
55
|
-
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.avatar {
|
|
59
|
-
width: 90px;
|
|
60
|
-
height: 90px;
|
|
61
|
-
border-radius: 50%;
|
|
62
|
-
object-fit: cover;
|
|
63
|
-
display: block;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/* VIP 徽章 */
|
|
67
|
-
.vip-badge {
|
|
68
|
-
position: absolute;
|
|
69
|
-
bottom: 5px;
|
|
70
|
-
right: 5px;
|
|
71
|
-
background: #FFD700;
|
|
72
|
-
color: #d63031;
|
|
73
|
-
font-size: 10px;
|
|
74
|
-
font-weight: bold;
|
|
75
|
-
padding: 2px 6px;
|
|
76
|
-
border-radius: 8px;
|
|
77
|
-
border: 2px solid #fff;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.nickname-row {
|
|
81
|
-
margin-top: 12px;
|
|
82
|
-
display: flex;
|
|
83
|
-
align-items: center;
|
|
84
|
-
justify-content: center;
|
|
85
|
-
gap: 8px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.nickname {
|
|
89
|
-
font-size: 22px;
|
|
90
|
-
font-weight: 700;
|
|
91
|
-
color: #333;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/* 性别图标 */
|
|
95
|
-
.sex-icon {
|
|
96
|
-
font-size: 14px;
|
|
97
|
-
padding: 2px 6px;
|
|
98
|
-
border-radius: 4px;
|
|
99
|
-
color: white;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.sex-male {
|
|
103
|
-
background-color: #007bff;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.sex-female {
|
|
107
|
-
background-color: #ff6b81;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.sex-unknown {
|
|
111
|
-
background-color: #ff6be1;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.long-nick {
|
|
115
|
-
margin-top: 8px;
|
|
116
|
-
color: #666;
|
|
117
|
-
font-size: 14px;
|
|
118
|
-
font-style: italic;
|
|
119
|
-
margin-bottom: 24px;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/* 详细信息列表 */
|
|
123
|
-
.info-list {
|
|
124
|
-
padding: 0 24px 24px 24px;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.info-item {
|
|
128
|
-
display: flex;
|
|
129
|
-
justify-content: space-between;
|
|
130
|
-
padding: 12px 0;
|
|
131
|
-
border-bottom: 1px solid #f0f0f0;
|
|
132
|
-
font-size: 14px;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.info-item:last-child {
|
|
136
|
-
border-bottom: none;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.label {
|
|
140
|
-
color: #888;
|
|
141
|
-
font-weight: 500;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.value {
|
|
145
|
-
color: #333;
|
|
146
|
-
font-weight: 600;
|
|
147
|
-
text-align: right;
|
|
148
|
-
max-width: 220px;
|
|
149
|
-
white-space: nowrap;
|
|
150
|
-
overflow: hidden;
|
|
151
|
-
text-overflow: ellipsis;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/* 标签样式 (如 VIP 等级) */
|
|
155
|
-
.tag {
|
|
156
|
-
display: inline-block;
|
|
157
|
-
padding: 2px 8px;
|
|
158
|
-
border-radius: 12px;
|
|
159
|
-
font-size: 12px;
|
|
160
|
-
margin-left: 5px;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.tag-vip {
|
|
164
|
-
background-color: #fff3cd;
|
|
165
|
-
color: #856404;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.tag-level {
|
|
169
|
-
background-color: #e2e3e5;
|
|
170
|
-
color: #383d41;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
/* 底部时间戳 */
|
|
174
|
-
.footer {
|
|
175
|
-
background-color: #f8f9fa;
|
|
176
|
-
padding: 12px 24px;
|
|
177
|
-
font-size: 12px;
|
|
178
|
-
color: #adb5bd;
|
|
179
|
-
text-align: center;
|
|
180
|
-
border-top: 1px solid #eee;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
</style>
|
|
184
|
-
</head>
|
|
185
|
-
<body>
|
|
186
|
-
|
|
187
|
-
<div class="card" id="card-element">
|
|
188
|
-
<!-- 顶部背景 -->
|
|
189
|
-
<div class="card-header-bg"></div>
|
|
190
|
-
|
|
191
|
-
<!-- 主要信息 -->
|
|
192
|
-
<div class="profile-main">
|
|
193
|
-
<div class="avatar-container">
|
|
194
|
-
<img src="{avatarUrl}" alt="Avatar" class="avatar">
|
|
195
|
-
</div>
|
|
196
|
-
|
|
197
|
-
<div class="nickname-row">
|
|
198
|
-
<span class="nickname">{nickname}</span>
|
|
199
|
-
<!-- 性别: 男 -->
|
|
200
|
-
<span class="sex-icon {sex-so}">{sex} | {age} 岁</span>
|
|
201
|
-
</div>
|
|
202
|
-
|
|
203
|
-
<div class="long-nick">{longNick}</div>
|
|
204
|
-
</div>
|
|
205
|
-
|
|
206
|
-
<!-- 详细数据列表 -->
|
|
207
|
-
<div class="info-list">
|
|
208
|
-
<div class="info-item">
|
|
209
|
-
<span class="label">QQ账号</span>
|
|
210
|
-
<span class="value">{qq}</span>
|
|
211
|
-
</div>
|
|
212
|
-
<div class="info-item">
|
|
213
|
-
<span class="label">QQ等级</span>
|
|
214
|
-
<span class="value">
|
|
215
|
-
<span class="tag tag-level">LV {qqLevel}</span>
|
|
216
|
-
</span>
|
|
217
|
-
</div>
|
|
218
|
-
<div class="info-item">
|
|
219
|
-
<span class="label">个性域名 (QID)</span>
|
|
220
|
-
<span class="value">{qid}</span>
|
|
221
|
-
</div>
|
|
222
|
-
<div class="info-item">
|
|
223
|
-
<span class="label">所在地</span>
|
|
224
|
-
<span class="value">{location}</span>
|
|
225
|
-
</div>
|
|
226
|
-
<div class="info-item">
|
|
227
|
-
<span class="label">电子邮箱</span>
|
|
228
|
-
<span class="value">{email}</span>
|
|
229
|
-
</div>
|
|
230
|
-
<div class="info-item">
|
|
231
|
-
<span class="label">注册时间</span>
|
|
232
|
-
<span class="value">{regTime}</span>
|
|
233
|
-
</div>
|
|
234
|
-
</div>
|
|
235
|
-
|
|
236
|
-
<div class="footer">
|
|
237
|
-
数据更新于: {lastUpdated}
|
|
238
|
-
</div>
|
|
239
|
-
</div>
|
|
240
|
-
|
|
241
|
-
</body>
|
|
242
|
-
</html>
|
package/res/userMsg.html
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<title>UserMsg</title>
|
|
6
|
-
<style>
|
|
7
|
-
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
8
|
-
|
|
9
|
-
body {
|
|
10
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
11
|
-
background: transparent;
|
|
12
|
-
padding: 20px;
|
|
13
|
-
//// transform: rotate(180deg);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.message-card {
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: row;
|
|
19
|
-
align-items: flex-start;
|
|
20
|
-
width: 100%;
|
|
21
|
-
background: #ffffff;
|
|
22
|
-
padding: 15px;
|
|
23
|
-
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
|
24
|
-
border-radius: 8px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.avatar {
|
|
28
|
-
width: 50px;
|
|
29
|
-
height: 50px;
|
|
30
|
-
border-radius: 50%;
|
|
31
|
-
object-fit: cover;
|
|
32
|
-
flex-shrink: 0;
|
|
33
|
-
margin-right: 15px;
|
|
34
|
-
border: 1px solid #eee;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.content {
|
|
38
|
-
flex: 1;
|
|
39
|
-
display: flex;
|
|
40
|
-
flex-direction: column;
|
|
41
|
-
min-width: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.user-name {
|
|
45
|
-
font-weight: bold;
|
|
46
|
-
font-size: 14px;
|
|
47
|
-
color: #333;
|
|
48
|
-
margin-bottom: 6px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.reply-block {
|
|
52
|
-
background: #f7f8fa;
|
|
53
|
-
border-left: 3px solid #b9bbbe;
|
|
54
|
-
padding: 6px 10px;
|
|
55
|
-
border-radius: 0 4px 4px 0;
|
|
56
|
-
margin-bottom: 8px;
|
|
57
|
-
/**/display:none;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.reply-user {
|
|
61
|
-
font-size: 12px;
|
|
62
|
-
font-weight: 600;
|
|
63
|
-
color: #555;
|
|
64
|
-
margin-bottom: 3px;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.reply-text {
|
|
68
|
-
font-size: 13px;
|
|
69
|
-
color: #777;
|
|
70
|
-
display: -webkit-box;
|
|
71
|
-
-webkit-line-clamp: 2;
|
|
72
|
-
-webkit-box-orient: vertical;
|
|
73
|
-
overflow: hidden;
|
|
74
|
-
text-overflow: ellipsis;
|
|
75
|
-
word-break: break-all;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.text-bubble {
|
|
79
|
-
font-size: 15px;
|
|
80
|
-
line-height: 1.5;
|
|
81
|
-
color: #444;
|
|
82
|
-
background: #f2f3f5;
|
|
83
|
-
padding: 10px 14px;
|
|
84
|
-
border-radius: 0 12px 12px 12px;
|
|
85
|
-
|
|
86
|
-
white-space: pre-wrap;
|
|
87
|
-
word-wrap: break-word;
|
|
88
|
-
overflow-wrap: break-word;
|
|
89
|
-
word-break: break-all;
|
|
90
|
-
width: fit-content;
|
|
91
|
-
}
|
|
92
|
-
</style>
|
|
93
|
-
</head>
|
|
94
|
-
<body>
|
|
95
|
-
<div id="target-element" class="message-card">
|
|
96
|
-
<img src="{userData.avatarUrl}" class="avatar" alt="Avatar" />
|
|
97
|
-
<div class="content">
|
|
98
|
-
<div class="user-name">{userData.username}</div>
|
|
99
|
-
|
|
100
|
-
<!-- 新增的回复块 -->
|
|
101
|
-
<div class="reply-block">
|
|
102
|
-
<div class="reply-user">@{replyData.username}</div>
|
|
103
|
-
<div class="reply-text">{replyData.message}</div>
|
|
104
|
-
</div>
|
|
105
|
-
|
|
106
|
-
<div class="text-bubble">{userData.message}</div>
|
|
107
|
-
</div>
|
|
108
|
-
</div>
|
|
109
|
-
</body>
|
|
110
|
-
</html>
|