feat: live-Volume während Wiedergabe (inlineVolume state) + Anzeige Gesamtanzahl Sounds

This commit is contained in:
vibe-bot 2025-08-08 01:40:49 +02:00
parent 826b07e994
commit 9a97a9d7bb
5 changed files with 28 additions and 8 deletions

View file

@ -1,8 +1,8 @@
import type { Sound, VoiceChannelInfo } from './types';
import type { Sound, SoundsResponse, VoiceChannelInfo } from './types';
const API_BASE = import.meta.env.VITE_API_BASE_URL || '/api';
export async function fetchSounds(q?: string): Promise<Sound[]> {
export async function fetchSounds(q?: string): Promise<SoundsResponse> {
const url = new URL(`${API_BASE}/sounds`, window.location.origin);
if (q) url.searchParams.set('q', q);
const res = await fetch(url.toString());