@sjtdev/koishi-plugin-dota2tracker 1.1.2-beta.1 → 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;
|
|
@@ -92,11 +95,11 @@
|
|
|
92
95
|
</style>
|
|
93
96
|
</head>
|
|
94
97
|
<body>
|
|
95
|
-
|
|
96
|
-
users.map(user=>`
|
|
98
|
+
<% const users = data; %>
|
|
99
|
+
<%-users.map(user=>`
|
|
97
100
|
<div class="player full">
|
|
98
101
|
<div class="info">
|
|
99
|
-
<img class="avatar user" src="${user
|
|
102
|
+
<img class="avatar user" src="${user?.user?.avatar}" alt="" />
|
|
100
103
|
<img class="avatar steam" src="${user.steamAccount.avatar}" alt="" />
|
|
101
104
|
<div class="name">
|
|
102
105
|
<p class="nick_name">
|
|
@@ -104,7 +107,7 @@
|
|
|
104
107
|
</p>
|
|
105
108
|
<p class="user">
|
|
106
109
|
<span>账号:${user.userId}</span>
|
|
107
|
-
<span>用户名:${user
|
|
110
|
+
<span>用户名:${user?.user?.name}</span>
|
|
108
111
|
</p>
|
|
109
112
|
<p class="steam">
|
|
110
113
|
<span>SteamID:${user.steamId}</span>
|
|
@@ -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
|
-
</div>`:0
|
|
127
|
-
<div class="last_match_date">最近游戏: ${user.matches[0].startDateTime}</div>
|
|
129
|
+
</div>`:0}
|
|
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>
|