Skip to content

Commit

Permalink
client-1.7.7: add bmc freshness to changelog subnav + update bmc data
Browse files Browse the repository at this point in the history
  • Loading branch information
r002 committed Dec 24, 2024
1 parent 0eb93ad commit 5886302
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 1 deletion.
7 changes: 7 additions & 0 deletions changelog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
[
{
"dt": "2024-12-24",
"version": "client-1.7.7",
"notes": [
"add `bmc` freshness to changelog subnav"
]
},
{
"dt": "2024-12-22",
"version": "client-1.7.6",
Expand Down
28 changes: 28 additions & 0 deletions data/movies.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
[
{
"title": "The Lord of the Rings: The War of the Rohirrim",
"yearMonth": "2024-12",
"ticketCost": 10,
"month": "December",
"year": 2024
},
{
"title": "No movie",
"yearMonth": "2024-11",
"ticketCost": 0,
"month": "November",
"year": 2024
},
{
"title": "No movie",
"yearMonth": "2024-11",
"ticketCost": 0,
"month": "November",
"year": 2024
},
{
"title": "Activate",
"yearMonth": "2024-10",
"ticketCost": 20,
"month": "October",
"year": 2024
},
{
"title": "Beatlejuice Beatlejuice",
"yearMonth": "2024-09",
Expand Down
Binary file added img/bmc/2024-10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/bmc/2024-11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/bmc/2024-12.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion js/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ async function renderDatalog() {
const latest = await rs.text();
// console.log(">> latest:", latest);
// console.log(">> latest in ET:", convertToEasternTime(latest));

const ms = await fetch("../data/movies.json");
const movieJson = await ms.json();
// console.log(movieJson[0].yearMonth);

const d = new Date();
const freshness = calculateFreshness(latest, d.toISOString());
const syncTitle = `last data sync\n• ${convertToEasternTime(latest)}`;
const syncTitle = `data freshness:\n• bsky: ${convertToEasternTime(latest)}\n• bmc: ${movieJson[0].yearMonth}`;
document.getElementById("releasenotes").innerHTML += ` &nbsp;∾&nbsp; <a href="${LATEST_URL}" title="${syncTitle}">${freshness}</a>`;
}

Expand Down

0 comments on commit 5886302

Please sign in to comment.