From e115ee1db1b0dd93d21ed547d4815f26eca0dde5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E6=82=A6?= Date: Tue, 6 Jan 2026 11:26:56 +0800 Subject: [PATCH] feat(ui): rebrand to Meishi Music and wire up sidebar - Rename application from TuneHub to Meishi Music in UI and PWA manifest - Implement cache clearing logic to remove local storage items - Pass sync state and handlers to the Sidebar component --- index.html | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 30a9121..01c09e7 100644 --- a/index.html +++ b/index.html @@ -361,7 +361,7 @@
-

TuneHub

+

Meishi Music

@@ -1077,6 +1077,15 @@ return () => audio.removeEventListener('loadedmetadata', onLoadedMetadata); }, []); + const handleClearCache = () => { + localStorage.removeItem('th_playlist'); + localStorage.removeItem('th_current'); + localStorage.removeItem('th_favorites'); + localStorage.removeItem('th_quality'); + localStorage.removeItem('th_sync_token'); + window.location.reload(); + }; + // --- Render --- return ( @@ -1089,6 +1098,9 @@ quality={quality} setQuality={setQuality} onClearCache={handleClearCache} + syncToken={syncToken} + setSyncToken={setSyncToken} + onSyncNow={handleSync} /> {/* Top Navigation / Search Bar */} @@ -1244,8 +1256,8 @@