From 5ac62cc1a4d9a5f50ea26d5bc1afb0fbf95da23c Mon Sep 17 00:00:00 2001 From: darkuss Date: Thu, 13 Aug 2026 05:13:32 +0200 Subject: init --- src/desktop/apps/buttons.tsx | 0 src/desktop/apps/edit.tsx | 13 +++++++++++++ src/desktop/apps/index.tsx | 5 +++++ src/desktop/apps/music.tsx | 43 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 src/desktop/apps/buttons.tsx create mode 100644 src/desktop/apps/edit.tsx create mode 100644 src/desktop/apps/index.tsx create mode 100644 src/desktop/apps/music.tsx (limited to 'src/desktop/apps') diff --git a/src/desktop/apps/buttons.tsx b/src/desktop/apps/buttons.tsx new file mode 100644 index 0000000..e69de29 diff --git a/src/desktop/apps/edit.tsx b/src/desktop/apps/edit.tsx new file mode 100644 index 0000000..00aba45 --- /dev/null +++ b/src/desktop/apps/edit.tsx @@ -0,0 +1,13 @@ +import { ComponentChildren } from "preact" + +export function Edit(props: Edit.Props) { + return +} + +namespace Edit { + export type Props = { + children?: ComponentChildren + } +} diff --git a/src/desktop/apps/index.tsx b/src/desktop/apps/index.tsx new file mode 100644 index 0000000..a2954b6 --- /dev/null +++ b/src/desktop/apps/index.tsx @@ -0,0 +1,5 @@ +import { FunctionalComponent } from "preact"; +import { Edit } from "./edit"; +import { Music } from "./music"; + +export const APP_REGISTRY: Map = new Map(); diff --git a/src/desktop/apps/music.tsx b/src/desktop/apps/music.tsx new file mode 100644 index 0000000..b5646bd --- /dev/null +++ b/src/desktop/apps/music.tsx @@ -0,0 +1,43 @@ +// 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 + } else { + return
+
Click here to load player from https://bandcamp.com
+ +
+ } +} + -- cgit v1.2.3