1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2026-03-29 10:29:45 +08:00

Fixes #399 (#415) 修复tailwind主题

* 引入tailwindcss, 更新默认主题ui

* 引入tailwindcss, 添加新的主题ui

* 引入tailwindcss, 添加新的主题ui

* 更新tailwind主题

* fix merge error

* fix merge error

* feat: Enhance song metadata display and API fetching

- Add more detailed song metadata in frontend (title, artist, album, year, genre, lyrics)
- Update API call to include music tags
- Replace default music icon with song cover image
- Improve type hinting in httpserver.py

* feat: Add keyboard shortcuts for music playback control

- Implement keyboard shortcuts for play/pause (Space), previous/next track (Left/Right arrows)
- Add volume control via Up/Down arrow keys
- Prevent default browser actions for shortcut keys
- Add event listener for keydown and remove on component unmount
- Enhance user interaction with music player

* feat: Improve song metadata handling and error resilience

- Enhance current song information retrieval with more robust error handling
- Add fallback values for song metadata when API calls fail
- Update current song state with additional properties like cover image
- Optimize song loading process with better error management
- Ensure consistent song information display even with incomplete data

* fix bugs

* tailwind fix bugs

* Merge branch 'main' of github.com:xiaomusic

* Merge branch 'main' of github.com:xiaomusic

* 修复刮削歌曲的歌曲名称和文件名称不一致,播放失败的问题
This commit is contained in:
jhcj.z
2025-03-04 18:35:05 +08:00
committed by GitHub
parent 57a1fb5ed4
commit 61bf233704
8 changed files with 1290 additions and 102 deletions

View File

@@ -8,10 +8,13 @@ import tempfile
import urllib.parse
from contextlib import asynccontextmanager
from dataclasses import asdict
from typing import TYPE_CHECKING, Annotated
from typing import TYPE_CHECKING, TYPE_CHECKING, Annotated
import socketio
if TYPE_CHECKING:
from xiaomusic.xiaomusic import XiaoMusic
if TYPE_CHECKING:
from xiaomusic.xiaomusic import XiaoMusic