@sjtdev/koishi-plugin-dota2tracker 1.2.12 → 1.2.14

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/changelog.md CHANGED
@@ -1,3 +1,15 @@
1
+ # 1.2.14
2
+ **修复**:
3
+ - 修复插件配置中`周报功能`与`日报功能`错误地成为必须项的问题,感谢[issue](../../issues/1)捉虫!
4
+
5
+ # 1.2.13
6
+ **新增&改进**:
7
+ - 战报模板`match_1`追加显示命石名,并调整了其他信息的显示效果以适配此改动。
8
+
9
+ # 1.2.12
10
+ **新增&改进**:
11
+ - 战报模板`match_2`追加显示命石名,并调整了其他信息的显示效果以适配此改动。
12
+
1
13
  # 1.2.11
2
14
  **新增&改进**:
3
15
  - 对战报模板添加命石显示,微调了其他信息的显示效果以适配此改动。
package/lib/index.js CHANGED
@@ -1248,7 +1248,8 @@ var Config = import_koishi.Schema.intersect([
1248
1248
  dailyReportSwitch: import_koishi.Schema.const(true).required(),
1249
1249
  dailyReportHours: import_koishi.Schema.number().min(0).max(23).default(6).description("日报时间小时"),
1250
1250
  dailyReportShowCombi: import_koishi.Schema.boolean().default(true).description("日报是否显示组合")
1251
- })
1251
+ }),
1252
+ import_koishi.Schema.object({})
1252
1253
  ]),
1253
1254
  import_koishi.Schema.object({
1254
1255
  weeklyReportSwitch: import_koishi.Schema.boolean().default(false).description("周报功能")
@@ -1258,7 +1259,8 @@ var Config = import_koishi.Schema.intersect([
1258
1259
  weeklyReportSwitch: import_koishi.Schema.const(true).required(),
1259
1260
  weeklyReportDayHours: import_koishi.Schema.tuple([import_koishi.Schema.number().min(1).max(7), import_koishi.Schema.number().min(0).max(23)]).default([1, 10]).description("周报发布于周(几)的(几)点"),
1260
1261
  weeklyReportShowCombi: import_koishi.Schema.boolean().default(true).description("周报是否显示组合")
1261
- })
1262
+ }),
1263
+ import_koishi.Schema.object({})
1262
1264
  ])
1263
1265
  ]),
1264
1266
  import_koishi.Schema.object({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sjtdev/koishi-plugin-dota2tracker",
3
3
  "description": "koishi插件-追踪群友的DOTA2对局",
4
- "version": "1.2.12",
4
+ "version": "1.2.14",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -146,7 +146,6 @@
146
146
  height: 63px;
147
147
  position: relative;
148
148
  border-radius: 4px;
149
- overflow: hidden;
150
149
  flex-grow: 0;
151
150
  }
152
151
 
@@ -267,9 +266,8 @@
267
266
  }
268
267
 
269
268
  .hero .player_avatar .level {
270
- left: 2px;
269
+ right: 2px;
271
270
  bottom: 1px;
272
- right: auto;
273
271
  font-size: 12px;
274
272
  color: rgba(255, 255, 255, 1);
275
273
  /* color: #cccccc; */
@@ -277,19 +275,38 @@
277
275
  }
278
276
 
279
277
  .hero .player_avatar .facet {
280
- width: 24px;
278
+ width: 112px;
281
279
  height: 24px;
282
280
  position: absolute;
283
- right: 0;
284
- bottom: 0;
285
- border-radius: 4px;
286
- display: flex;
287
- justify-content: center;
281
+ left: 0;
282
+ bottom: -24px;
283
+ display: grid;
284
+ grid-template-columns: 24px auto;
288
285
  align-items: center;
289
286
  }
290
287
  .hero .player_avatar .facet img{
288
+ padding: 3px;
291
289
  width: 18px;
292
290
  height: 18px;
291
+ background-color: #4444;
292
+ }
293
+ .hero .player_avatar .facet span{
294
+ display: grid;
295
+ place-items: center;
296
+ align-items: center;
297
+ justify-content: center;
298
+ height: 100%;
299
+ width: 88px;
300
+ position: relative;
301
+ }
302
+ .hero .player_avatar .facet span > * {
303
+ box-sizing: border-box;
304
+ padding: 0 4px;
305
+ max-width: 100%;
306
+ overflow: hidden;
307
+ text-overflow: ellipsis;
308
+ white-space: nowrap;
309
+ font-size: 14px;
293
310
  }
294
311
  .hero > .player_avatar > .facet.Red {
295
312
  background: linear-gradient(to right, #9f3c3c, #4a2026);
@@ -454,6 +471,7 @@
454
471
  margin-bottom: 4px;
455
472
  padding-left: 4px;
456
473
  height: 24px;
474
+ margin-left: 120px;
457
475
  /* text-shadow: -1px -1px 2px #aaa, 1px -1px 2px #aaa, -1px 1px 2px #aaa, 1px 1px 2px #aaa; */ /*描边效果 */
458
476
  }
459
477
 
@@ -764,6 +782,7 @@
764
782
  ${player.facet ? `
765
783
  <div class="facet ${player.facet.color}">
766
784
  <img src="${utils.getImageUrl(player.facet.icon, ImageType.IconsFacets)}">
785
+ <span><p style="font-size: ${player.facet.name.length > 7 ? 10 : player.facet.name.length > 5 ? 12 : 14}px;">${player.facet.name}</p></span>
767
786
  </div>` : ""}
768
787
  </div>
769
788
  <div class="player_info">
@@ -250,7 +250,6 @@
250
250
  background-color: #4444;
251
251
  }
252
252
  .player > .facet > span {
253
- display: block;
254
253
  padding: 0 2px;
255
254
  line-height: 1;
256
255
  display: grid;
@@ -540,7 +539,6 @@
540
539
  <div class="player ${player.team}${player.hero.id==80?" bear":""}" style="order: ${player.team==="radiant"?1:100};">
541
540
  <div class="hero_avatar row-1${player.partyId != null ? " party_" + match.party[player.partyId] : ""}">
542
541
  <img src="${utils.getImageUrl(player.hero.shortName, ImageType.Heroes)}" />
543
-
544
542
  <p class="level">${player.level}</p>
545
543
  <p class="party_line"></p>
546
544
  <p class="party_mark"></p>