koishi-plugin-rocom 1.0.7 → 1.0.9
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/LICENSE +661 -0
- package/lib/client.js +8 -1
- package/lib/commands/account.d.ts +1 -1
- package/lib/commands/account.js +42 -7
- package/lib/commands/query.js +0 -9
- package/lib/index.js +1 -1
- package/lib/render-templates/player-search/index.html +68 -60
- package/lib/render-templates/player-search/style.css +300 -192
- package/package.json +1 -1
- package/readme.md +1 -1
|
@@ -1,192 +1,300 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: "rocom-player";
|
|
3
|
-
src: url("../../ttf/HYWenHei-85W-1.ttf") format("truetype");
|
|
4
|
-
font-display: swap;
|
|
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
|
-
color: #
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
font-size:
|
|
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
|
-
display:
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
color: #
|
|
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
|
-
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "rocom-player";
|
|
3
|
+
src: url("../../ttf/HYWenHei-85W-1.ttf") format("truetype");
|
|
4
|
+
font-display: swap;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
* {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
html,
|
|
12
|
+
body {
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 20px;
|
|
15
|
+
display: inline-block;
|
|
16
|
+
background: #f4ecdc;
|
|
17
|
+
color: #33271a;
|
|
18
|
+
font-family: "rocom-player", "Microsoft YaHei", "PingFang SC", sans-serif;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.player-page {
|
|
22
|
+
position: relative;
|
|
23
|
+
width: 1240px;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
border-radius: 28px;
|
|
26
|
+
padding: 0 32px 28px;
|
|
27
|
+
background: #f4ecdc;
|
|
28
|
+
box-shadow: 0 26px 58px rgba(76, 55, 32, 0.18);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.page-bg {
|
|
32
|
+
position: absolute;
|
|
33
|
+
inset: 0;
|
|
34
|
+
background:
|
|
35
|
+
radial-gradient(circle at 10% 12%, rgba(255, 231, 177, 0.52), transparent 28%),
|
|
36
|
+
radial-gradient(circle at 96% 18%, rgba(255, 188, 85, 0.24), transparent 30%);
|
|
37
|
+
pointer-events: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.page-header,
|
|
41
|
+
.profile-strip,
|
|
42
|
+
.summary-strip,
|
|
43
|
+
.signature-strip,
|
|
44
|
+
.content-grid,
|
|
45
|
+
.page-footer {
|
|
46
|
+
position: relative;
|
|
47
|
+
z-index: 1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* ── Header ── */
|
|
51
|
+
|
|
52
|
+
.page-header {
|
|
53
|
+
position: relative;
|
|
54
|
+
min-height: 88px;
|
|
55
|
+
display: grid;
|
|
56
|
+
place-items: center;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
margin: 0 -32px;
|
|
59
|
+
background: linear-gradient(90deg, #ffc95f, #f5b64c);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.page-title {
|
|
63
|
+
position: relative;
|
|
64
|
+
z-index: 2;
|
|
65
|
+
color: #10100e;
|
|
66
|
+
font-size: 42px;
|
|
67
|
+
line-height: 1;
|
|
68
|
+
letter-spacing: 4px;
|
|
69
|
+
text-shadow: 0 3px 0 rgba(255, 255, 255, 0.22);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.page-title-ghost {
|
|
73
|
+
position: absolute;
|
|
74
|
+
inset: -12px 0 auto;
|
|
75
|
+
z-index: 1;
|
|
76
|
+
text-align: center;
|
|
77
|
+
color: rgba(255, 228, 152, 0.24);
|
|
78
|
+
font-size: 100px;
|
|
79
|
+
line-height: 1.1;
|
|
80
|
+
letter-spacing: 8px;
|
|
81
|
+
white-space: nowrap;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* ── Profile Strip ── */
|
|
85
|
+
|
|
86
|
+
.profile-strip {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
gap: 22px;
|
|
91
|
+
margin-top: 20px;
|
|
92
|
+
padding: 20px 32px;
|
|
93
|
+
border-radius: 22px;
|
|
94
|
+
background: rgba(250, 247, 238, 0.78);
|
|
95
|
+
border: 1px solid rgba(143, 113, 73, 0.16);
|
|
96
|
+
box-shadow: 0 12px 26px rgba(88, 64, 38, 0.08);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.profile-main {
|
|
100
|
+
min-width: 0;
|
|
101
|
+
flex: 1;
|
|
102
|
+
text-align: center;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.profile-name-row {
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
flex-wrap: wrap;
|
|
110
|
+
gap: 14px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.player-name {
|
|
114
|
+
max-width: 820px;
|
|
115
|
+
overflow: hidden;
|
|
116
|
+
color: #171411;
|
|
117
|
+
font-size: 40px;
|
|
118
|
+
line-height: 1.12;
|
|
119
|
+
text-overflow: ellipsis;
|
|
120
|
+
white-space: nowrap;
|
|
121
|
+
font-weight: 800;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.uid-pill {
|
|
125
|
+
padding: 8px 18px;
|
|
126
|
+
border-radius: 999px;
|
|
127
|
+
background: #ffc65f;
|
|
128
|
+
color: #3c2a12;
|
|
129
|
+
font-size: 20px;
|
|
130
|
+
line-height: 1;
|
|
131
|
+
box-shadow: inset 0 -2px 0 rgba(141, 94, 30, 0.12);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.profile-subtitle {
|
|
135
|
+
margin-top: 8px;
|
|
136
|
+
color: #7f6e57;
|
|
137
|
+
font-size: 20px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* ── Summary Strip ── */
|
|
141
|
+
|
|
142
|
+
.summary-strip {
|
|
143
|
+
display: grid;
|
|
144
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
145
|
+
gap: 12px;
|
|
146
|
+
margin-top: 16px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.summary-item {
|
|
150
|
+
display: flex;
|
|
151
|
+
flex-direction: column;
|
|
152
|
+
align-items: center;
|
|
153
|
+
justify-content: center;
|
|
154
|
+
min-height: 72px;
|
|
155
|
+
padding: 12px 16px;
|
|
156
|
+
border-radius: 999px;
|
|
157
|
+
border: 1px solid rgba(143, 113, 73, 0.14);
|
|
158
|
+
background: rgba(250, 247, 238, 0.82);
|
|
159
|
+
box-shadow: 0 12px 26px rgba(88, 64, 38, 0.08);
|
|
160
|
+
text-align: center;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.summary-label {
|
|
164
|
+
color: #7e6a50;
|
|
165
|
+
font-size: 15px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.summary-value {
|
|
169
|
+
margin-top: 4px;
|
|
170
|
+
color: #33271a;
|
|
171
|
+
font-size: 26px;
|
|
172
|
+
line-height: 1.1;
|
|
173
|
+
white-space: nowrap;
|
|
174
|
+
font-weight: 800;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* ── Signature Strip ── */
|
|
178
|
+
|
|
179
|
+
.signature-strip {
|
|
180
|
+
margin-top: 14px;
|
|
181
|
+
padding: 16px 24px;
|
|
182
|
+
border-radius: 20px;
|
|
183
|
+
background: rgba(250, 247, 238, 0.78);
|
|
184
|
+
border: 1px solid rgba(143, 113, 73, 0.16);
|
|
185
|
+
box-shadow: 0 12px 26px rgba(88, 64, 38, 0.08);
|
|
186
|
+
text-align: center;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.signature-label {
|
|
190
|
+
color: #907b5e;
|
|
191
|
+
font-size: 14px;
|
|
192
|
+
margin-bottom: 6px;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.signature-text {
|
|
196
|
+
color: #4a3a28;
|
|
197
|
+
font-size: 20px;
|
|
198
|
+
line-height: 1.55;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* ── Content Grid ── */
|
|
202
|
+
|
|
203
|
+
.content-grid {
|
|
204
|
+
display: grid;
|
|
205
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
206
|
+
gap: 14px;
|
|
207
|
+
align-items: start;
|
|
208
|
+
margin-top: 14px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.panel {
|
|
212
|
+
border-radius: 22px;
|
|
213
|
+
padding: 20px 22px;
|
|
214
|
+
border: 1px solid rgba(143, 113, 73, 0.14);
|
|
215
|
+
background: rgba(250, 247, 238, 0.82);
|
|
216
|
+
box-shadow: 0 12px 26px rgba(88, 64, 38, 0.08);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.panel-head {
|
|
220
|
+
margin-bottom: 14px;
|
|
221
|
+
text-align: center;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.panel-head h2 {
|
|
225
|
+
margin: 0;
|
|
226
|
+
color: #171411;
|
|
227
|
+
font-size: 26px;
|
|
228
|
+
line-height: 1.1;
|
|
229
|
+
font-weight: 800;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.detail-list {
|
|
233
|
+
border-radius: 16px;
|
|
234
|
+
overflow: hidden;
|
|
235
|
+
background: rgba(255, 255, 255, 0.52);
|
|
236
|
+
border: 1px solid rgba(143, 113, 73, 0.10);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.detail-row {
|
|
240
|
+
display: flex;
|
|
241
|
+
align-items: center;
|
|
242
|
+
justify-content: space-between;
|
|
243
|
+
gap: 14px;
|
|
244
|
+
padding: 12px 20px;
|
|
245
|
+
border-bottom: 1px solid rgba(143, 113, 73, 0.08);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.detail-row:last-child {
|
|
249
|
+
border-bottom: none;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.detail-label {
|
|
253
|
+
flex-shrink: 0;
|
|
254
|
+
color: #8c7354;
|
|
255
|
+
font-size: 18px;
|
|
256
|
+
font-weight: 700;
|
|
257
|
+
min-width: 80px;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.detail-value {
|
|
261
|
+
color: #33271a;
|
|
262
|
+
font-size: 18px;
|
|
263
|
+
text-align: right;
|
|
264
|
+
word-break: break-word;
|
|
265
|
+
min-width: 0;
|
|
266
|
+
flex: 1;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* ── Footer ── */
|
|
270
|
+
|
|
271
|
+
.page-footer {
|
|
272
|
+
margin-top: 18px;
|
|
273
|
+
padding: 12px 0 0;
|
|
274
|
+
text-align: center;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.command-hint {
|
|
278
|
+
display: inline-block;
|
|
279
|
+
padding: 7px 18px;
|
|
280
|
+
border-radius: 999px;
|
|
281
|
+
background: rgba(255, 198, 95, 0.22);
|
|
282
|
+
color: #795f3f;
|
|
283
|
+
font-size: 16px;
|
|
284
|
+
margin-bottom: 8px;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.copyright {
|
|
288
|
+
color: rgba(113, 93, 73, 0.72);
|
|
289
|
+
font-size: 14px;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
@media (max-width: 1280px) {
|
|
293
|
+
.content-grid {
|
|
294
|
+
grid-template-columns: 1fr;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.summary-strip {
|
|
298
|
+
grid-template-columns: repeat(2, 1fr);
|
|
299
|
+
}
|
|
300
|
+
}
|
package/package.json
CHANGED
package/readme.md
CHANGED