@sjtdev/koishi-plugin-dota2tracker 1.5.2 → 1.5.4

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.
@@ -1,4 +1,3 @@
1
-
2
1
  p {
3
2
  margin: 0;
4
3
  }
@@ -12,7 +11,6 @@ html,
12
11
  body {
13
12
  overflow: hidden;
14
13
  width: 800px;
15
- font-family: 'MiSans', sans-serif;
16
14
  }
17
15
 
18
16
  nav {
@@ -99,7 +97,7 @@ nav > .rank > img {
99
97
  border-top: 3px solid #fff;
100
98
  font-size: 13.3px;
101
99
  display: grid;
102
- grid-template-columns: 32px 56px 378px repeat(4,1fr);
100
+ grid-template-columns: 32px 56px 378px repeat(4, 1fr);
103
101
  }
104
102
  .players .panel.radiant {
105
103
  border-color: #3c9028;
@@ -107,15 +105,15 @@ nav > .rank > img {
107
105
  .players .panel.dire {
108
106
  border-color: #9c3628;
109
107
  }
110
- .players .panel p{
108
+ .players .panel p {
111
109
  line-height: 16px;
112
110
  margin-left: 8px;
113
111
  }
114
- .players .panel .win{
112
+ .players .panel .win {
115
113
  font-size: 20px;
116
114
  line-height: 32px;
117
115
  }
118
- .players .panel .data{
116
+ .players .panel .data {
119
117
  color: #aaa;
120
118
  }
121
119
 
@@ -277,6 +275,11 @@ nav > .rank > img {
277
275
  .player > .facet.Gray {
278
276
  background: linear-gradient(to right, #adb6be, #4e5557);
279
277
  }
278
+ .player > .facet.Black {
279
+ background: linear-gradient(to right, #2d2d2d, #000000);
280
+ display: flex;
281
+ justify-content: center;
282
+ }
280
283
 
281
284
  .player > .rank {
282
285
  position: relative;
@@ -311,9 +314,9 @@ nav > .rank > img {
311
314
  .player > .player_name {
312
315
  grid-row: 1;
313
316
  grid-column: 3 / span 2;
314
- white-space: nowrap; /* 禁止换行 */
315
- overflow: hidden; /* 隐藏溢出部分 */
316
- text-overflow: ellipsis; /* 用省略号表示溢出的文本 */
317
+ white-space: nowrap; /* 禁止换行 */
318
+ overflow: hidden; /* 隐藏溢出部分 */
319
+ text-overflow: ellipsis; /* 用省略号表示溢出的文本 */
317
320
  }
318
321
  .player > .player_name > .rank {
319
322
  color: #aaa;
@@ -404,7 +407,7 @@ nav > .rank > img {
404
407
  color: #ccc;
405
408
  background-color: #323232;
406
409
  }
407
- .player .items .backpack{
410
+ .player .items .backpack {
408
411
  filter: grayscale(100%);
409
412
  }
410
413
  .player .items .backpack .item,
@@ -434,20 +437,20 @@ nav > .rank > img {
434
437
  grid-row: 1 / span 3;
435
438
  grid-column: 8;
436
439
  }
437
- .player .items .bear{
440
+ .player .items .bear {
438
441
  height: 24px;
439
442
  width: 192px;
440
443
  grid-row: 2;
441
444
  grid-column: 2;
442
445
  }
443
- .player.bear .items .bear .time{
446
+ .player.bear .items .bear .time {
444
447
  font-size: 10px;
445
448
  }
446
- .player.bear .items .bear_icon{
449
+ .player.bear .items .bear_icon {
447
450
  grid-row: 2;
448
451
  grid-column: 1;
449
452
  }
450
- .player.bear .items .neutral_item{
453
+ .player.bear .items .neutral_item {
451
454
  height: 24px;
452
455
  width: 24px;
453
456
  grid-row: 2;
@@ -78,11 +78,10 @@
78
78
  <p class="party_line"></p>
79
79
  <p class="party_mark"></p>
80
80
  </div>
81
- ${player.facet ? `
82
- <div class="facet ${player.facet.color}">
83
- <img src="${utils.getImageUrl(player.facet.icon, ImageType.IconsFacets)}">
84
- <span style="font-size: ${player.facet.name?.length>4?8:11}px;"><p>${player.facet.name??""}</p></span>
85
- </div>` : ""}
81
+ <div class="facet ${player.facet?.color ?? "Black"}">
82
+ ${player.facet ? `<img src="${utils.getImageUrl(player.facet.icon, ImageType.IconsFacets)}">` : ""}
83
+ <span style="font-size: ${player.facet?.name?.length>4?8:11}px;"><p>${player.facet?.name??"?"}</p></span>
84
+ </div>
86
85
  <div class="rank">
87
86
  <img
88
87
  src="${utils.getImageUrl('medal_' +(player.rank.inTop100??player.rank.medal))}"
@@ -8,6 +8,9 @@
8
8
  <%- "<style>" %>
9
9
  <%- include("./match_2/original.css") %>
10
10
  <%- include("./match_2+/extra.css") %>
11
+ <% if (fontFamily && fontFamily.length > 0) { %>
12
+ <%- `body { font-family: ${fontFamily.map(f => `${f}`).join(", ")}; }` %>
13
+ <% } %>
11
14
  <%- "</style>" %>
12
15
  </head>
13
16
  <body>
@@ -7,6 +7,9 @@
7
7
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" />
8
8
  <%- "<style>" %>
9
9
  <%- include("./match_2/original.css") %>
10
+ <% if (fontFamily && fontFamily.length > 0) { %>
11
+ <%- `body { font-family: ${fontFamily.map(f => `${f}`).join(", ")}; }` %>
12
+ <% } %>
10
13
  <%- "</style>" %>
11
14
  </head>
12
15
  <body>
@@ -11,7 +11,6 @@
11
11
  background-color: black;
12
12
  color: white;
13
13
  width: 800px;
14
- font-family: 'MiSans', sans-serif;
15
14
  }
16
15
 
17
16
  .wrapper > * {
@@ -346,6 +345,12 @@
346
345
  color: #aaa;
347
346
  }
348
347
  </style>
348
+
349
+ <% if (fontFamily && fontFamily.length > 0) { %>
350
+ <%- "<style>" %>
351
+ <%- `body { font-family: ${fontFamily.map(f => `${f}`).join(", ")}; }` %>
352
+ <%- "</style>" %>
353
+ <% } %>
349
354
  </head>
350
355
  <body>
351
356
  <% const player = data;
@@ -12,7 +12,6 @@
12
12
  html {
13
13
  width: 1024px;
14
14
  height: 768px;
15
- font-family: 'MiSans', sans-serif;
16
15
  }
17
16
  body {
18
17
  background: no-repeat center center / cover;
@@ -82,6 +81,12 @@
82
81
  position: absolute;
83
82
  }
84
83
  </style>
84
+
85
+ <% if (fontFamily && fontFamily.length > 0) { %>
86
+ <%- "<style>" %>
87
+ <%- `body { font-family: ${fontFamily.map(f => `${f}`).join(", ")}; }` %>
88
+ <%- "</style>" %>
89
+ <% } %>
85
90
  </head>
86
91
  <% const {name, avatar, isRising, prevRank, currRank, date} = data; %>
87
92
  <% const kind = isRising ? "xi" : "bei"; %>
@@ -12,7 +12,6 @@
12
12
  color: white;
13
13
  width: 600px;
14
14
  font-size: 14px;
15
- font-family: 'MiSans', sans-serif;
16
15
  }
17
16
  body > * {
18
17
  width: 100%;
@@ -135,6 +134,12 @@
135
134
  color: #B30000;
136
135
  }
137
136
  </style>
137
+
138
+ <% if (fontFamily && fontFamily.length > 0) { %>
139
+ <%- "<style>" %>
140
+ <%- `body { font-family: ${fontFamily.map(f => `${f}`).join(", ")}; }` %>
141
+ <%- "</style>" %>
142
+ <% } %>
138
143
  </head>
139
144
  <body>
140
145
  <% const { title, players, combinations, showCombi } = data; %>