@sjtdev/koishi-plugin-dota2tracker 1.0.3

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.
@@ -0,0 +1,414 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Document</title>
7
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" />
8
+ <style>
9
+ html,
10
+ body {
11
+ background-color: black;
12
+ color: white;
13
+ width: 800px;
14
+ }
15
+
16
+ .wrapper > * {
17
+ margin: 5px;
18
+ box-shadow: 0 0 5px #fff;
19
+ width: 790px;
20
+ border-radius: 5px;
21
+ overflow: hidden;
22
+ }
23
+
24
+ img {
25
+ width: auto;
26
+ vertical-align: middle;
27
+ }
28
+
29
+ p {
30
+ margin: 0;
31
+ }
32
+
33
+ .player {
34
+ display: flex;
35
+ position: relative;
36
+ height: 128px;
37
+ }
38
+
39
+ .player .avatar {
40
+ width: 128px;
41
+ height: 128px;
42
+ position: absolute;
43
+ }
44
+
45
+ .player .avatar img {
46
+ width: 100%;
47
+ border-radius: 5px;
48
+ }
49
+
50
+ .player .name {
51
+ font-size: 24px;
52
+ }
53
+
54
+ .player .info {
55
+ width: 100%;
56
+ display: flex;
57
+ flex-direction: column;
58
+ align-items: center;
59
+ /* line-height: 2; */
60
+ justify-content: space-around;
61
+ }
62
+
63
+ .player .info .guild.Copper {
64
+ color: #b4775f;
65
+ }
66
+ .player .info .guild.Silver {
67
+ color: #9a9593;
68
+ }
69
+ .player .info .guild.Gold {
70
+ color: #bda97f;
71
+ }
72
+ .player .info .guild.Diamond {
73
+ color: #a5cbcf;
74
+ }
75
+
76
+ .player .info p > span:not(:last-child) {
77
+ margin-right: 20px;
78
+ }
79
+
80
+ .player .info .matches span.win {
81
+ color: #006400;
82
+ }
83
+ .player .info .matches span.lose {
84
+ color: #8b0000;
85
+ }
86
+
87
+ .player .info .matches span.victory {
88
+ color: lightgreen;
89
+ }
90
+ .player .info .matches span.stomp {
91
+ color: green;
92
+ /* font-size: 8px; */
93
+ }
94
+ .player .info .matches span.fail {
95
+ color: #ff6961;
96
+ }
97
+ .player .info .matches span.stomped {
98
+ color: red;
99
+ /* font-size: 8px; */
100
+ }
101
+
102
+ .player .rank {
103
+ width: 64px;
104
+ height: 64px;
105
+ flex-grow: 1;
106
+ position: absolute;
107
+ top: 0;
108
+ right: 0;
109
+ }
110
+
111
+ .player .rank .medal {
112
+ z-index: 1;
113
+ }
114
+
115
+ .player .rank .star {
116
+ z-index: 2;
117
+ }
118
+
119
+ .player .rank p {
120
+ z-index: 4;
121
+ }
122
+
123
+ .player .rank div {
124
+ height: 100%;
125
+ width: 100%;
126
+ top: 0;
127
+ right: 0;
128
+ position: absolute;
129
+ }
130
+
131
+ .player .rank img {
132
+ top: 0;
133
+ right: 0;
134
+ position: absolute;
135
+ height: 64px;
136
+ }
137
+
138
+ .player .rank p {
139
+ font-size: 12px;
140
+ line-height: 1;
141
+ position: absolute;
142
+ text-align: center;
143
+ width: 64px;
144
+ bottom: 4px;
145
+ right: 0;
146
+ /* background-color: #222; */
147
+ /* border: black 1px solid; */
148
+ box-sizing: border-box;
149
+ text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; /* 描边效果 */
150
+ }
151
+
152
+ .hero_winrate > *:not(:last-child) {
153
+ /* margin-bottom: 10px; */
154
+ }
155
+
156
+ .hero_winrate .heroes {
157
+ display: grid;
158
+ /* line-height: 2; */
159
+ grid-template-columns: 32px auto auto auto auto auto;
160
+ /* grid-template-rows: repeat(auto-fill, 1fr); */
161
+ justify-content: start;
162
+ align-items: center;
163
+ }
164
+
165
+ .hero_winrate .heroes .hero {
166
+ width: 100%;
167
+ display: flex;
168
+ align-items: center;
169
+ }
170
+
171
+ .hero_winrate .heroes img {
172
+ width: auto;
173
+ height: 32px;
174
+ border-radius: 6px;
175
+ overflow: hidden;
176
+ }
177
+
178
+ .hero_winrate .heroes span.imp {
179
+ margin: 0 4px;
180
+ }
181
+
182
+ .hero_winrate .heroes span {
183
+ text-align: center;
184
+ }
185
+
186
+ .hero_winrate .heroes .tip.row {
187
+ grid-column: 1/-1;
188
+ }
189
+
190
+ .hero_winrate .heroes .win {
191
+ /* color: #000; */
192
+ text-align: right;
193
+ padding-right: 8px;
194
+ background-color: #006400;
195
+ border-radius: 16px 0 0 16px;
196
+ height: 16px;
197
+ justify-self: end;
198
+ }
199
+ .hero_winrate .heroes .lose {
200
+ /* color: #000; */
201
+ text-align: left;
202
+ padding-left: 8px;
203
+ background-color: #8b0000;
204
+ border-radius: 0 16px 16px 0;
205
+ height: 16px;
206
+ justify-self: start;
207
+ }
208
+
209
+ .matches {
210
+ table-layout: fixed;
211
+ }
212
+
213
+ .matches .match.win {
214
+ background-color: #006400;
215
+ }
216
+ .matches .match.lose {
217
+ background-color: #8b0000;
218
+ }
219
+
220
+ .matches .match td {
221
+ text-align: center;
222
+ /* line-height: 40px; */
223
+ height: 40px;
224
+ overflow: hidden;
225
+ }
226
+
227
+ .matches .match .player_lane {
228
+ width: 100%;
229
+ height: 100%;
230
+ justify-content: center; /* 水平居中 */
231
+ align-items: center; /* 垂直居中 */
232
+ display: flex;
233
+ }
234
+
235
+ .matches .match .player_lane:not(.tie) {
236
+ /* background-color: #000; */
237
+ }
238
+
239
+ .matches .match .player_lane svg {
240
+ width: 36px;
241
+ height: 36px;
242
+ }
243
+ .player_lane.victory svg path {
244
+ fill: lightgreen;
245
+ }
246
+
247
+ .player_lane.stomp svg path {
248
+ fill: green;
249
+ }
250
+
251
+ .player_lane.stomped svg path {
252
+ fill: red;
253
+ }
254
+
255
+ .plus {
256
+ display: grid;
257
+ grid-template-columns: repeat(4, 1fr);
258
+ gap: 10px;
259
+ }
260
+
261
+ .plus .hero {
262
+ width: 190px;
263
+ height: 190px;
264
+ border-radius: 5px;
265
+ position: relative;
266
+ display: grid;
267
+ grid-template-columns: repeat(2, 1fr);
268
+ grid-template-rows: 118.75px auto;
269
+ justify-items: center;
270
+ align-items: center;
271
+ }
272
+ .plus .hero img {
273
+ width: 100%;
274
+ grid-column: 1/-1;
275
+ }
276
+
277
+ .plus .level {
278
+ position: absolute;
279
+ width: 50px;
280
+ height: 50px;
281
+ left: calc(50% - 25px);
282
+ top: calc(118.75px - 25px);
283
+ }
284
+
285
+ .plus .level span {
286
+ position: absolute;
287
+ width: 100%;
288
+ text-align: center;
289
+ left: 0;
290
+ bottom: 18px;
291
+ font-size: 14px;
292
+ text-shadow: -1px -1px 1px #000, 1px -1px 1px #000, -1px 1px 1px #000, 1px 1px 1px #000;
293
+ }
294
+ </style>
295
+ </head>
296
+ <body>
297
+ <div class="wrapper">
298
+ <div class="player">
299
+ <div class="avatar"><img src="https://avatars.steamstatic.com/3e890ecfb44e0835f4c9d58d7fd8b1df7e628baa_full.jpg" alt="" /></div>
300
+ <div class="info">
301
+ <p class="name">12345687 <span class="guild Diamond">[xx]</span></p>
302
+ <p class="matches"><span>场次:4444(1234/4321)</span><span>胜率:55.55%</span></p>
303
+ <p class="matches"><span>最近25场:11/22</span><span>胜率:55.55%</span><span>评分:111</span></p>
304
+ <p class="matches"><span>对线:11-2-33</span><span>线优:55.55%</span></p>
305
+ </div>
306
+ <div class="rank">
307
+ <img class="medal" src="../images/medal_8.png" alt="" />
308
+ <img class="star" src="../iamges/star_5.png" alt="" />
309
+ <p>1</p>
310
+ </div>
311
+ </div>
312
+ <div class="hero_winrate">
313
+ <div class="heroes">
314
+ <p class="tip row total">全期场次前十的英雄:</p>
315
+ <span class="tip">英雄</span>
316
+ <span class="tip" style="margin: 0 4px">场次</span>
317
+ <span class="tip" style="margin: 0 4px">胜率</span>
318
+ <span class="tip" style="margin: 0 4px">表现</span>
319
+ <span class="tip win_count" style="justify-self: end; margin-right: 2px">胜场</span>
320
+ <span class="tip lose_count" style="justify-self: start; margin-left: 2px">败场</span>
321
+ <span><img alt="" src="https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/icons/morphling.png" /></span>
322
+ <span class="count">15</span>
323
+ <span class="win_rate">15%</span>
324
+ <span class="imp">+123</span>
325
+ <span class="win" style="width: 300px">10</span>
326
+ <span class="lose" style="width: 150px">5</span>
327
+
328
+ <p class="tip row near">近期使用场次大于1的英雄:</p>
329
+ <span><img alt="" src="https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/icons/morphling.png" /></span>
330
+ <span class="count">15</span>
331
+ <span class="win_rate">15%</span>
332
+ <span class="imp">+123</span>
333
+ <span class="win" style="width: 300px">10</span>
334
+ <span class="lose" style="width: 150px">5</span>
335
+ </div>
336
+ </div>
337
+ <div class="streak"></div>
338
+ <table class="matches">
339
+ <colgroup>
340
+ <col style="width: auto" />
341
+ <col style="width: auto" />
342
+ <col style="width: 40px" />
343
+ <col style="width: auto" />
344
+ <col style="width: 40px" />
345
+ <col style="width: auto" />
346
+ <col style="width: auto" />
347
+ <col style="width: auto" />
348
+ <col style="width: 40px" />
349
+ </colgroup>
350
+ <thead>
351
+ <tr>
352
+ <th>编号</th>
353
+ <th>模式</th>
354
+ <th>英雄</th>
355
+ <th>KDA(参战率)</th>
356
+ <th>对线</th>
357
+ <th>结束于</th>
358
+ <th>时长</th>
359
+ <th>表现</th>
360
+ <th>段位</th>
361
+ </tr>
362
+ </thead>
363
+ <tbody>
364
+ <tr class="match win">
365
+ <td>1234567890</td>
366
+ <td>
367
+ <p>天梯</p>
368
+ <p>全英雄选择</p>
369
+ </td>
370
+ <td><img alt="" src="https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/icons/morphling.png" /></td>
371
+ <td style="line-height: 20px">
372
+ <p>22.22 (80%)</p>
373
+ <p>10/10/10</p>
374
+ </td>
375
+ <td>
376
+ <div class="player_lane tie"></div>
377
+ </td>
378
+ <td style="line-height: 20px">24/04/44 22:22:22</td>
379
+ <td>44:44</td>
380
+ <td>+11</td>
381
+ <td><img class="medal" src="../images/medal_8.png" style="width: 100%" /></td>
382
+ </tr>
383
+ <tr class="match lose">
384
+ <td>1234567890</td>
385
+ <td>
386
+ <p>天梯</p>
387
+ <p>全英雄选择</p>
388
+ </td>
389
+ <td><img alt="" src="https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/icons/morphling.png" /></td>
390
+ <td style="line-height: 20px">
391
+ <p>22.22 (80%)</p>
392
+ <p>10/10/10</p>
393
+ </td>
394
+ <td>
395
+ <div class="player_lane tie"></div>
396
+ </td>
397
+ <td style="line-height: 20px">24/04/44 22:22:22</td>
398
+ <td>44:44</td>
399
+ <td>+11</td>
400
+ <td><img class="medal" src="../images/medal_8.png" style="width: 100%" /></td>
401
+ </tr>
402
+ </tbody>
403
+ </table>
404
+ <div class="plus">
405
+ <div class="hero">
406
+ <img src="https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/storm_spirit.png" alt="" />
407
+ <div class="level"><img src="../images/hero_badge_3.png" alt="" /><span>12</span></div>
408
+ <span>55%</span>
409
+ <span>55</span>
410
+ </div>
411
+ </div>
412
+ </div>
413
+ </body>
414
+ </html>