feat(ui): neues Dark-Theme (blau/lila), bessere Kontraste, Lautstärke-Regler; feat(server): Volume-Support (inlineVolume)

This commit is contained in:
vibe-bot 2025-08-08 01:23:52 +02:00
parent 2c8340081e
commit 7d95858a3e
4 changed files with 83 additions and 30 deletions

View file

@ -16,11 +16,11 @@ export async function fetchChannels(): Promise<VoiceChannelInfo[]> {
return res.json();
}
export async function playSound(soundName: string, guildId: string, channelId: string): Promise<void> {
export async function playSound(soundName: string, guildId: string, channelId: string, volume: number): Promise<void> {
const res = await fetch(`${API_BASE}/play`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ soundName, guildId, channelId })
body: JSON.stringify({ soundName, guildId, channelId, volume })
});
if (!res.ok) {
const data = await res.json().catch(() => ({}));