-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
353 lines (307 loc) · 17.5 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Makes all links and form submissions default to opening a new tab -->
<base target="_blank" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SerenityOS Changelog</title>
<link rel="shortcut icon" type="image/png" href="ladyball.png" />
<link rel="preconnect" href="https://api.github.com" />
<link rel="dns-prefetch" href="https://avatars.githubusercontent.com" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.0.1/css/bootstrap.min.css" integrity="sha512-Ez0cGzNzHR1tYAv56860NLspgUGuQw16GiOOp/I2LuTmpSK9xDXlgJz3XN4cnpXWDmkNBKXR/VDMTCnAaEooxA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.5.0/font/bootstrap-icons.min.css" integrity="sha512-xnP2tOaCJnzp2d2IqKFcxuOiVCbuessxM6wuiolT9eeEJCyy0Vhcwa4zQvdrZNVqlqaxXhHqsSV1Ww7T2jSCUQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<style>
:root {
--color-highlight: #1d60df;
--color-text: #312f2f;
--color-background: #f6fcfc;
--color-background-alt: #dfecec;
--color-revealed-accordion: #c1d7d7;
}
@media (prefers-color-scheme: dark) {
:root {
--color-highlight: #03a9f4;
--color-text: #dddddd;
--color-background: #191922;
--color-background-alt: #262635;
--color-revealed-accordion: #1c1c2f;
}
#token-group-label, #token-input {
color: var(--color-text);
background-color: var(--color-background-alt);
border-color: var(--color-background-alt);
}
#token-input::placeholder {
color: #aaa;
}
}
body {
background: var(--color-background);
color: var(--color-text);
}
.accordion-item, .accordion-header, .accordion-button {
background: var(--color-background-alt);
color: var(--color-text);
}
.accordion-body > .accordion-item:first-of-type {
margin-top: 1rem;
}
.accordion-button:not(.collapsed) {
background: var(--color-revealed-accordion);
color: var(--color-text);
}
/*
* Bootstrap uses a background-image for the accordion-button icon.
* This background-image is visually the same as the chevron-down icon from Bootstrap Icons.
* background-images can't be coloured. However, since we pull in Bootstrap Icons,
* we can just replace the background-image with a chevron-down icon.
*/
.accordion-button::after {
font-family: bootstrap-icons !important;
background-image: none !important;
content: "\f282";
}
.small-button {
font-size: 0.8rem;
padding: 0.1rem 0.2rem;
}
ul > li:not(:first-child) {
margin-top: 0.5rem;
}
ul {
margin-bottom: 0;
}
.card {
background: var(--color-revealed-accordion);
}
.accordion-button {
font-size: 1.25rem;
}
code {
display: inline-block;
padding: 0 2px;
border-radius: 4px;
font-size: 1rem;
background: var(--color-background-alt);
}
.form-text {
color: var(--color-text);
}
</style>
</head>
<body>
<noscript>
<div class="alert alert-danger text-center">
<strong>Please enable JavaScript.</strong>
</div>
</noscript>
<div class="container mt-5 justify-content-center">
<h1 class="text-center" id="changelog-title">SerenityOS Changelog</h1>
<h3 class="text-center" id="date"></h3>
<div class="text-center mb-3 d-none" id="daily-buttons">
<div class="btn-group justify-content-center" role="group">
<button class="btn btn-primary d-flex gap-1" id="yesterday-button" disabled>
<i class="bi-arrow-left"></i>
Yesterday
</button>
<button class="btn btn-primary d-flex gap-1" id="today-button" disabled>
<i class="bi-circle-fill"></i>
Today
</button>
<button class="btn btn-primary d-flex gap-1" id="tomorrow-button" disabled>
Tomorrow
<i class="bi-arrow-right"></i>
</button>
</div>
</div>
<div class="text-center mb-3 d-none" id="monthly-buttons">
<div class="btn-group justify-content-center" role="group">
<button class="btn btn-primary d-flex gap-1" id="last-month-button" disabled>
<i class="bi-arrow-left"></i>
Last Month
</button>
<button class="btn btn-primary d-flex gap-1" id="this-month-button" disabled>
<i class="bi-circle-fill"></i>
This Month
</button>
<button class="btn btn-primary d-flex gap-1" id="next-month-button" disabled>
Next Month
<i class="bi-arrow-right"></i>
</button>
</div>
</div>
<div class="d-flex justify-content-center gap-3 mb-2">
<p class="form-check-label m-0">Daily</p>
<div class="form-check form-switch p-0 m-0">
<input class="form-check-input ms-0" type="checkbox" id="monthly-toggle" disabled>
</div>
<p class="form-check-label m-0">Monthly</p>
</div>
<div class="d-flex justify-content-center gap-2 mb-2">
<span>Repository:</span>
<select id="repo-selection">
<option value="serenity" selected id="repo-option-serenity">SerenityOS</option>
<option value="jakt" id="repo-option-jakt">Jakt</option>
<option value="ladybird" id="repo-option-ladybird">Ladybird</option>
</select>
</div>
<p>
This is an easy-to-read version of the
<a href="https://github.com/SerenityOS/serenity/commits/master" rel="noopener noreferrer" id="serenity-commit-log-link">SerenityOS commit log.</a>
<a href="https://github.com/SerenityOS/jakt/commits/main" rel="noopener noreferrer" id="jakt-commit-log-link" class="d-none">Jakt commit log.</a>
<a href="https://github.com/SerenityOS/ladybird/commits/main" rel="noopener noreferrer" id="ladybird-commit-log-link" class="d-none">Ladybird commit log.</a>
It fetches a list of commits for a given day or month and categorises the commits based on the subsystem they target.
</p>
<p>
The source code for this website can be found <a href="https://github.com/Lubrsi/serenityos-web-changelog" rel="noopener noreferrer">here.</a>
</p>
<p>
If you wish to discuss <span id="project-to-discuss">SerenityOS</span> and its development, feel free to get in touch on the
<a href="https://discord.gg/serenityos" rel="noopener noreferrer">SerenityOS Discord server.</a>
<span id="serenity-discord-channels">(<code>#serenityos</code> or <code>#development</code>)</span>
<span id="jakt-discord-channels" class="d-none">(<code>#jakt</code>, <code>#jakt-compiler</code>, <code>#jakt-design</code> or <code>#jakt-tooling</code>)</span>
<span id="ladybird-discord-channels" class="d-none">(<code>#js</code>, <code>#browser</code> or <code>#browser-qt</code>)</span>
</p>
<p class="d-flex align-items-center gap-2 d-none" id="no-access-token-alert">
You have not provided a GitHub personal access token. You are limited to 60 requests (or 6,000 commits) an hour.
<button class="btn btn-primary small-button" type="button" data-bs-toggle="collapse" data-bs-target="#access-token-form-collapse" aria-expanded="false" aria-controls="access-token-form-collapse">
Set Access Token
</button>
</p>
<p class="d-flex align-items-center gap-2 d-none" id="have-access-token-alert">
You have provided a GitHub personal access token. You are limited to 5,000 requests (or 500,000 commits) an hour.
<button class="btn btn-primary small-button" type="button" data-bs-toggle="collapse" data-bs-target="#access-token-form-collapse" aria-expanded="false" aria-controls="access-token-form-collapse">
Change Access Token
</button>
<button class="btn btn-primary small-button" id="remove-access-token-button" type="button">
Remove Access Token
</button>
</p>
<div class="collapse" id="access-token-form-collapse">
<form class="mb-3" id="access-token-form" autocomplete="off">
<div class="input-group input-group-sm">
<span class="input-group-text" id="token-group-label">Access Token</span>
<input type="text" class="form-control" id="token-input" placeholder="Enter your personal access token here" aria-label="Token" aria-describedby="token-group-label" required pattern="ghp_[A-Za-z0-9]{36}">
<button class="btn btn-success" type="submit" id="submit-access-token-button">Set Access Token</button>
</div>
<div class="form-text">
Follow the instructions
<a href="https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token" rel="noopener noreferrer">
here
</a>
to generate a personal access token.
<strong>Do not provide any permissions on this token.</strong>
It is purely used to increase the rate limit.
</div>
<div class="form-text">
Once set, it will be stored in local storage. You will be given the option to remove it.
</div>
</form>
</div>
<div class="d-flex align-items-center" id="loading-indicator">
<div class="spinner-border" role="status"></div>
<span class="ms-3">Loading...</span>
</div>
<div class="alert alert-danger d-flex align-items-center justify-content-center d-none" role="alert" id="load-failed">
Failed to retrieve commits.
<button class="btn btn-primary ms-3 retry-fetch d-flex gap-1">
<i class="bi-arrow-repeat"></i>
Retry
</button>
</div>
<div class="alert alert-danger d-flex align-items-center justify-content-center d-none" role="alert" id="load-failed-rate-limited">
Unable to show any commits due to rate limiting. Please try again later.
<button class="btn btn-primary ms-3 retry-fetch d-flex gap-1">
<i class="bi-arrow-repeat"></i>
Retry
</button>
</div>
<div class="alert alert-warning d-flex align-items-center justify-content-center d-none" role="alert" id="partial-load-rate-limited">
This is a partial changelog, as rate limiting was enforced while retrieving the commits.
<button class="btn btn-primary ms-3 retry-fetch d-flex gap-1">
<i class="bi-arrow-repeat"></i>
Retry
</button>
</div>
<div class="alert alert-danger d-flex align-items-center justify-content-center d-none" role="alert" id="load-failed-bad-token">
The provided personal access token is invalid. Please change/remove it, then press Retry.
<button class="btn btn-primary ms-3 retry-fetch d-flex gap-1">
<i class="bi-arrow-repeat"></i>
Retry
</button>
</div>
<div class="alert alert-warning d-flex align-items-center justify-content-center d-none" role="alert" id="partial-load-bad-token">
This is a partial changelog, as an invalid personal access token was provided after retrieving some commits.
Please change/remove the access token, then press Retry.
<button class="btn btn-primary ms-3 retry-fetch d-flex gap-1">
<i class="bi-arrow-repeat"></i>
Retry
</button>
</div>
<div class="alert alert-primary text-center d-none" role="alert" id="no-commits">
No commits for this date. Try another date.
</div>
<div id="changelog" class="d-none">
<div class="d-flex gap-3 mb-2">
<button class="btn btn-primary w-100" id="show-all">
<i class="bi-chevron-down"></i>
Show All
</button>
<button class="btn btn-primary w-100" id="hide-all">
<i class="bi-chevron-up"></i>
Hide All
</button>
</div>
<p class="text-center mb-2" id="commit-count"></p>
<main id="changelog-body" class="accordion">
<template id="category-template">
<section class="accordion-item">
<h4 class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse" aria-expanded="true"></button>
</h4>
<div class="accordion-collapse collapse show">
<ul class="accordion-body list-unstyled">
<h6></h6>
</ul>
</div>
</section>
</template>
<template id="commit-element-template">
<li class="d-flex align-items-center">
<a rel="noopener noreferrer"></a>
<div class="badge bg-danger ms-2">Revert</div>
<button class="btn btn-primary small-button ms-2" type="button" data-bs-toggle="collapse" aria-expanded="false">Details</button>
</li>
<div class="collapse">
<div class="card card-body mt-2 details">
<h5 class="card-title d-flex align-items-center">
<img class="lazyload img-fluid rounded author-image" width="20" height="20" />
<span class="ms-2 author-name"></span>
<img class="lazyload img-fluid rounded committer-image" width="20" height="20" />
<span class="ms-2 committer-name"></span>
</h5>
<pre class="card-text"></pre>
</div>
<div class="card card-body mt-2 linked-commits">
<h5>Linked commits</h5>
<template id="link">
<div class="d-flex align-items-center">
<span class="sha"></span>
<a rel="noopener noreferrer" class="ms-2 link"></a>
</div>
</template>
</div>
</div>
</template>
</main>
</div>
<p class="text-center m-5">
Made by <a href="mailto:[email protected]">Luke Wilde.</a> (<code>@Lubrsi</code> on <a href="https://discord.gg/serenityos" rel="noopener noreferrer">Discord</a>)
</p>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lazysizes/5.3.2/lazysizes.min.js" integrity="sha512-q583ppKrCRc7N5O0n2nzUiJ+suUv7Et1JGels4bXOaMFQcamPk9HjdUknZuuFjBNs7tsMuadge5k9RzdmO+1GQ==" crossorigin="anonymous" referrerpolicy="no-referrer" async></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.0.1/js/bootstrap.min.js" integrity="sha512-EKWWs1ZcA2ZY9lbLISPz8aGR2+L7JVYqBAYTq5AXgBkSjRSuQEGqWx8R1zAX16KdXPaCjOCaKE8MCpU0wcHlHA==" crossorigin="anonymous" referrerpolicy="no-referrer" defer></script>
<script src="index.js" defer></script>
</body>
</html>