- Twitch Helix-Client + Followed-Channels-Home-Screen
- Navigation über Sidebar
- Karten-Design überarbeitet
This commit is contained in:
Andre
2026-04-07 20:57:25 +02:00
parent 7d19ccf652
commit 1f5d1254db
18 changed files with 1294 additions and 95 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
import { app, BrowserWindow, shell } from 'electron'
import { join } from 'node:path'
import { AuthService } from './auth/authService'
import { HelixClient } from './twitch/helixClient'
import { registerIpcHandlers } from './ipc/handlers'
const isDev = !app.isPackaged
@@ -42,7 +43,8 @@ app.whenReady().then(async () => {
const clientId = import.meta.env.MAIN_VITE_TWITCH_CLIENT_ID ?? ''
const auth = new AuthService(clientId)
await auth.init()
registerIpcHandlers(auth)
const helix = new HelixClient(clientId, () => auth.getValidAccessToken())
registerIpcHandlers(auth, helix)
if (!clientId) {
console.warn(