From cb30657b99e722fbadcb7fed9ac0d0bd8a05153e Mon Sep 17 00:00:00 2001 From: lavisor Date: Sun, 11 Oct 2026 12:36:39 +0530 Subject: [PATCH 1/2] feat: added gui --- README.md | 20 ++ package-lock.json | 474 +++++++++++++++++----------------- package.json | 14 +- src/cli/args.ts | 25 ++ src/core/createApp.ts | 224 ++++++++++++++++ src/gui/protocol.ts | 54 ++++ src/gui/server.ts | 345 +++++++++++++++++++++++++ src/index.tsx | 59 +++++ src/ui/App.tsx | 213 ++------------- test/cli-args.test.ts | 28 ++ test/gui-server.test.ts | 160 ++++++++++++ web/index.html | 12 + web/src/App.tsx | 114 ++++++++ web/src/NowPlaying.tsx | 65 +++++ web/src/connection.ts | 92 +++++++ web/src/format.ts | 21 ++ web/src/main.tsx | 5 + web/src/sections/Download.tsx | 79 ++++++ web/src/sections/Settings.tsx | 69 +++++ web/src/sections/Songs.tsx | 141 ++++++++++ web/src/styles.css | 66 +++++ web/tsconfig.json | 8 + web/vite.config.ts | 10 + 23 files changed, 1868 insertions(+), 430 deletions(-) create mode 100644 src/core/createApp.ts create mode 100644 src/gui/protocol.ts create mode 100644 src/gui/server.ts create mode 100644 test/gui-server.test.ts create mode 100644 web/index.html create mode 100644 web/src/App.tsx create mode 100644 web/src/NowPlaying.tsx create mode 100644 web/src/connection.ts create mode 100644 web/src/format.ts create mode 100644 web/src/main.tsx create mode 100644 web/src/sections/Download.tsx create mode 100644 web/src/sections/Settings.tsx create mode 100644 web/src/sections/Songs.tsx create mode 100644 web/src/styles.css create mode 100644 web/tsconfig.json create mode 100644 web/vite.config.ts diff --git a/README.md b/README.md index f9a80a8..e894932 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,26 @@ Everything runs from the keyboard, with controls that are quick to pick up. Pres
Queue is empty.
+ Library folder: {c.libraryDir} (change it from the terminal + app, which can move your files safely). +
{c.libraryDir}
{empty}
No playlists yet.