Skip to content

Commit

Permalink
Rewrite (#1)
Browse files Browse the repository at this point in the history
* 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
encode42 committed Feb 12, 2024
1 parent 755408c commit 304157a
Show file tree
Hide file tree
Showing 84 changed files with 2,840 additions and 5,497 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SPOTIFY_CLIENT_ID=
SPOTIFY_SECRET=
38 changes: 0 additions & 38 deletions .eslintignore

This file was deleted.

167 changes: 0 additions & 167 deletions .eslintrc.cjs

This file was deleted.

1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/scripts/index.js
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();
1 change: 1 addition & 0 deletions .github/scripts/latest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
G03C
10 changes: 10 additions & 0 deletions .github/scripts/package.json
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"
}
}
Loading

0 comments on commit 304157a

Please sign in to comment.