-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (67 loc) · 2.6 KB
/
index.html
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description"
content="A collection of useful Visual Studio Code Extensions to ease your developer life.">
<title>Useful VS Code Extensions</title>
<link rel="icon" href="icon.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.1/css/bulma.min.css">
<style>
body {
background: #f5f5f5;
}
</style>
<script src="exts.js"></script>
<script src="get.js"></script>
</head>
<body>
<div class="columns mb-0 is-centered">
<div class="box column content is-two-thirds is-loading">
<div class="mt-4 has-text-centered">
<img class="is-hidden-touch" src="icon.png">
<h1>Useful Visual Studio Code Extensions</h1>
</div>
<div class="table-container">
<table class="table is-hoverable is-striped is-fullwidth">
<thead>
<th>No.</th>
<th>Extension</th>
<th>Author</th>
<th>Installs</th>
<th></th>
</thead>
<tbody id="container"></tbody>
</table>
</div>
<footer class="has-text-centered has-text-grey">
<a href="https://github.com/khang-nd">@khangnd</a> -
<a href="https://github.com/khang-nd/vscode-exts" target="_blank">Crafted with ❤</a>
</footer>
</div>
</div>
<script>
getExtensions().then((extensions) => {
const rows = extensions
.sort((a, b) => a.name.localeCompare(b.name))
.map((ext, i) =>
`<tr>
<td>${i + 1}</td>
<td>
<a href="${ext.marketUrl}" target="_blank" rel="noopener">${ext.name}</a>
</td>
<td>${ext.author}</td>
<td>${ext.installs}</td>
<td>
<a href="${ext.installUrl}">
<img src="https://image.flaticon.com/icons/png/24/126/126476.png">
</a>
</td>
</tr>`
).join("");
document.querySelector("#container").innerHTML = rows;
})
</script>
</body>
</html>