Fix: Sidebar Darstellung korrigert

- Zusätzlich Menueinträge Top Streams
- Topstreams DE und EN  anzeige filterte Livestreams.
- Einstellung Sidebarbreite und Flaggenbadge (Slider) hinzugefügt.
This commit is contained in:
Andre
2026-04-11 22:05:24 +02:00
parent cfb8a0b790
commit c84b8e16fe
16 changed files with 714 additions and 123 deletions
+7 -2
View File
@@ -94,6 +94,11 @@ export interface VodChapter {
gameId: string | null
}
export interface TopStreamsResult {
streams: FollowedChannelInfo[]
cursor?: string
}
const api = {
appVersion: process.env.npm_package_version ?? '0.0.0',
auth: {
@@ -115,8 +120,8 @@ const api = {
ipcRenderer.invoke(IPC.twitchGetVideos, broadcasterId),
getTopGames: (cursor?: string): Promise<{ games: GameInfo[]; cursor?: string }> =>
ipcRenderer.invoke(IPC.twitchGetTopGames, cursor),
getTopStreams: (gameId?: string): Promise<FollowedChannelInfo[]> =>
ipcRenderer.invoke(IPC.twitchGetTopStreams, gameId),
getTopStreams: (options?: { gameId?: string; language?: string; cursor?: string; limit?: number }): Promise<TopStreamsResult> =>
ipcRenderer.invoke(IPC.twitchGetTopStreams, options),
getVodChapters: (vodId: string): Promise<VodChapter[]> =>
ipcRenderer.invoke(IPC.twitchGetVodChapters, vodId)
},