diff --git a/package-lock.json b/package-lock.json
index 743ea1d..f1c7189 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -8670,6 +8670,11 @@
"integrity": "sha1-fRh9tcbNu9ZNdaMvkbiZi94yc8M=",
"dev": true
},
+ "svelte-routing": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/svelte-routing/-/svelte-routing-1.4.0.tgz",
+ "integrity": "sha512-09ypn0/vD2PcuyZEEocUHFgi7kvLOxSoUUuJZ4j3p4Y4sT/kMIWtHIRpnLdsr8bQ+sGo77sbEkO+av6yd1RjPg=="
+ },
"svgo": {
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/svgo/-/svgo-1.3.2.tgz",
diff --git a/package.json b/package.json
index 21e2525..926f423 100644
--- a/package.json
+++ b/package.json
@@ -26,7 +26,8 @@
"core-js-pure": "^3.6.4",
"date-fns": "^2.9.0",
"get-urls": "^9.2.0",
- "iter-tools": "^7.0.0-rc.0"
+ "iter-tools": "^7.0.0-rc.0",
+ "svelte-routing": "^1.4.0"
},
"browserslist": [
"last 1 chrome versions"
diff --git a/src/components/App.svelte b/src/components/App.svelte
index 3cee635..9660ecf 100644
--- a/src/components/App.svelte
+++ b/src/components/App.svelte
@@ -1,92 +1,10 @@
-
- {`${ $current ? `${$current.metadata.title} ∴ ` : ''}Eldritch Radio`}
-
-
-
-
-
-
- {#if $current}
-
-
- {/if}
-
-
-
-
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/src/components/Radio.svelte b/src/components/Radio.svelte
new file mode 100644
index 0000000..ceeb82f
--- /dev/null
+++ b/src/components/Radio.svelte
@@ -0,0 +1,90 @@
+
+ {`${ $current ? `${$current.metadata.title} ∴ ` : ''}Eldritch Radio`}
+
+
+
+
+
+
+ {#if $current}
+
+
+ {/if}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/routes/Home.svelte b/src/routes/Home.svelte
new file mode 100644
index 0000000..9e2fbed
--- /dev/null
+++ b/src/routes/Home.svelte
@@ -0,0 +1,5 @@
+
+
+
\ No newline at end of file
diff --git a/src/routes/Share.svelte b/src/routes/Share.svelte
new file mode 100644
index 0000000..3588368
--- /dev/null
+++ b/src/routes/Share.svelte
@@ -0,0 +1,16 @@
+
+
+
\ No newline at end of file
diff --git a/src/services/mastodon.js b/src/services/mastodon.js
index 1b397f1..1fc5987 100644
--- a/src/services/mastodon.js
+++ b/src/services/mastodon.js
@@ -3,6 +3,8 @@ import { observableToAsyncIterator } from '/services/misc.js'
const LINK_RE = /<(.+?)>; rel="(\w+)"/gi
+export const fetchStatus = (domain, id) => fetch(`https://${domain}/api/v1/statuses/${id}`).then(x => x.json())
+
function parseLinkHeader(link) {
const links = {}