@sjtdev/koishi-plugin-dota2tracker 1.1.2-beta.2 → 1.1.2-beta.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.
package/package.json
CHANGED
|
@@ -43,7 +43,10 @@
|
|
|
43
43
|
.player.full .info > .name > .nick_name {
|
|
44
44
|
font-size: 18px;
|
|
45
45
|
line-height: 24px;
|
|
46
|
-
}
|
|
46
|
+
}
|
|
47
|
+
.player.full .info > .name >p{
|
|
48
|
+
display: flex;justify-content: space-around;
|
|
49
|
+
}
|
|
47
50
|
.player.full .last_match_date {
|
|
48
51
|
position: relative;
|
|
49
52
|
padding-top: 1px;
|
|
@@ -73,12 +76,12 @@
|
|
|
73
76
|
width: 150px;
|
|
74
77
|
height: 36px;
|
|
75
78
|
border-radius: 36px;
|
|
76
|
-
padding:
|
|
79
|
+
padding: 0 6px;
|
|
77
80
|
display: flex;
|
|
78
81
|
box-sizing: border-box;
|
|
79
82
|
align-items: center;
|
|
80
83
|
flex-direction: row;
|
|
81
|
-
justify-content: space-
|
|
84
|
+
justify-content: space-between;
|
|
82
85
|
}
|
|
83
86
|
.player.full .last10match .match.win {
|
|
84
87
|
background-color: #006400;
|
|
@@ -119,12 +122,12 @@
|
|
|
119
122
|
let playerInMatch = match.players.find(player=>player.steamAccount.id==user.steamId)
|
|
120
123
|
return `
|
|
121
124
|
<div class="match ${match.didRadiantWin==playerInMatch.isRadiant?"win":"lose"}">
|
|
122
|
-
<img src="${utils.getImageUrl(playerInMatch.hero.shortName
|
|
125
|
+
<img src="${utils.getImageUrl(playerInMatch.hero.shortName,ImageType.HeroIcons)}" alt="" />
|
|
123
126
|
<span>${playerInMatch.kills}/${playerInMatch.deaths}/${playerInMatch.assists}</span>
|
|
124
127
|
<span>${(playerInMatch.imp > 0 ? "+" : "") + playerInMatch.imp}</span>
|
|
125
128
|
</div>`}).join("")}
|
|
126
129
|
</div>`:0}
|
|
127
|
-
<div class="last_match_date">最近游戏: ${user.matches[0].startDateTime}</div>
|
|
130
|
+
<div class="last_match_date">最近游戏: ${moment(new Date(user.matches[0].startDateTime * 1000)).format("YYYY-MM-DD HH:mm:ss")}</div>
|
|
128
131
|
</div>`).join("")
|
|
129
132
|
%>
|
|
130
133
|
</body>
|