summaryrefslogtreecommitdiff
path: root/src/desktop/apps
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop/apps')
-rw-r--r--src/desktop/apps/buttons.tsx0
-rw-r--r--src/desktop/apps/edit.tsx13
-rw-r--r--src/desktop/apps/index.tsx5
-rw-r--r--src/desktop/apps/music.tsx43
4 files changed, 0 insertions, 61 deletions
diff --git a/src/desktop/apps/buttons.tsx b/src/desktop/apps/buttons.tsx
deleted file mode 100644
index e69de29..0000000
--- a/src/desktop/apps/buttons.tsx
+++ /dev/null
diff --git a/src/desktop/apps/edit.tsx b/src/desktop/apps/edit.tsx
deleted file mode 100644
index 00aba45..0000000
--- a/src/desktop/apps/edit.tsx
+++ /dev/null
@@ -1,13 +0,0 @@
-import { ComponentChildren } from "preact"
-
-export function Edit(props: Edit.Props) {
- return <textarea autocomplete="off" spellcheck={false}>
- {props.children}
- </textarea>
-}
-
-namespace Edit {
- export type Props = {
- children?: ComponentChildren
- }
-}
diff --git a/src/desktop/apps/index.tsx b/src/desktop/apps/index.tsx
deleted file mode 100644
index a2954b6..0000000
--- a/src/desktop/apps/index.tsx
+++ /dev/null
@@ -1,5 +0,0 @@
-import { FunctionalComponent } from "preact";
-import { Edit } from "./edit";
-import { Music } from "./music";
-
-export const APP_REGISTRY: Map<string, FunctionalComponent> = new Map();
diff --git a/src/desktop/apps/music.tsx b/src/desktop/apps/music.tsx
deleted file mode 100644
index b5646bd..0000000
--- a/src/desktop/apps/music.tsx
+++ /dev/null
@@ -1,43 +0,0 @@
-// type Song = {
-// name: string,
-// url: string,
-// length: number,
-//
-// bc_exclusive: boolean
-// }
-//
-// const SONGS: = [
-// [],
-// [],
-// [],
-// [],
-// [],
-// [],
-// [],
-// [],
-// [],
-// [],
-// []
-// ]
-//
-// function Song() {
-//
-// }
-
-import { useState } from "preact/hooks"
-
-export function Music() {
- const [userApproves, setUserApproves] = useState(false);
-
- if (userApproves) {
- return <iframe style="border: 0; width: 350px; height: 500px;" src="https://bandcamp.com/EmbeddedPlayer/album=3374731395/size=large/bgcol=000000/linkcol=ff0047/transparent=true/" seamless><a href="https://sunnexo.bandcamp.com/album/netpunk">Netpunk by Sunnexo</a></iframe>
- } else {
- return <div class="external_warning">
- <div>Click here to load player from <a href="https://bandcamp.com">https://bandcamp.com</a></div>
- <button onClick={() => setUserApproves(true)}>
- Load player
- </button>
- </div>
- }
-}
-