-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Begin Svelte rewrite * Remove outdated reference to favicon.png * Progress bar patches for Chromium * Add text stroke to discograpgy * Focus tweaks * Improve modal close button * More 3D * Prevent mobile from horizontally scrolling * Add debug log function * Add Spotify fetching, refactor types * Hard-code dialog backdrop colors until Chromium supports variables * Slight page tweaks * Refactor all logic out of +page.server.ts * Add (static) API route * Attempt to use Cloudflare Pages * Add a favicon fallback to static root * Use Cloudflare KV * Start work on periodic updates * Add published date * RSS feed :3 * GUID must be a link * Appease the validator * Always test before committing * Use actions to rebuild the site when discography updates * Fix button alignment * Patches for better mobile experience
- Loading branch information
Showing
84 changed files
with
2,840 additions
and
5,497 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SPOTIFY_CLIENT_ID= | ||
SPOTIFY_SECRET= |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { readFile, writeFile } from "node:fs/promises"; | ||
import bandcamp from "@encode42/bandcamp-fetch"; | ||
import { basename, resolve } from "node:path"; | ||
|
||
const latestPath = resolve("./latest.txt"); | ||
|
||
async function update() { | ||
const previous = await readFile(latestPath, { | ||
"encoding": "utf-8" | ||
}); | ||
|
||
const discography = await bandcamp.band.getDiscography({ | ||
"bandUrl": "https://erora.bandcamp.com/" | ||
}); | ||
|
||
const name = discography[0].name; | ||
console.log(`Latest release is ${name}!`); | ||
|
||
if (name !== previous) { | ||
console.log(`Updating ${basename(latestPath)}...`); | ||
await writeFile(latestPath, name); | ||
} | ||
|
||
process.exit(0); | ||
} | ||
|
||
update(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
G03C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "scripts", | ||
"license": "MIT", | ||
"private": true, | ||
"type": "module", | ||
"main": "index.js", | ||
"dependencies": { | ||
"@encode42/bandcamp-fetch": "^1.2.0" | ||
} | ||
} |
Oops, something went wrong.