-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathlegend.html
More file actions
39 lines (39 loc) · 1.12 KB
/
Copy pathlegend.html
File metadata and controls
39 lines (39 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<div
class="legend"
>
<div class="date" v-if="interval > 1">
{{formatInterval(date)}}
</div>
<div class="date" v-else>
{{date | formatDate('dddd MMMM Do, YYYY')}}
</div>
<table class="modules">
<tbody
@mouseover="handleMouseEnterLegend()"
@mouseleave="handleMouseLeaveLegend()"
>
<tr
class="module"
v-for="module in sortedModules"
track-by="name"
:style="{color: module.color}"
@mouseover="handleMouseEnterPackage(module.name)"
@mouseleave="handleMouseLeavePackage(module.name)"
>
<td class="actions">
<button class="remove-entry-button" @click="removePackage(module.name)" :title="`remove '${module.name}' from comparison`">
<div class="nub" :style="{ '--module-color': module.color }"></div>
</button>
</td>
<td class="name-wrapper">
<div class="name">
{{module.name}}
</div>
</td>
<td class="downloads" style="min-width: 4.5em;">
{{module.downloads.toLocaleString()}}
</td>
</tr>
</tbody>
</table>
</div>