Redesign responsive MyTube interface

This commit is contained in:
vrubelroman 2026-09-16 21:40:32 +00:00
parent 90eb012e0d
commit c4a772b1e3
23 changed files with 787 additions and 1119 deletions

View file

@ -39,6 +39,10 @@ export function getAuthStatus() {
return request<AuthStatus>('/api/auth/status')
}
export function getHealth() {
return request<{ status: string; database: string; metube: string }>('/api/health')
}
export function startGoogleAuth() {
window.location.href = '/api/auth/google/start'
}
@ -205,6 +209,7 @@ export function getFeed(
uncategorized?: boolean
channelId?: number
downloaded?: boolean
search?: string
cursor?: string
} = {},
) {
@ -213,6 +218,7 @@ export function getFeed(
if (params.uncategorized) qs.set('uncategorized', 'true')
if (params.channelId != null) qs.set('channel_id', String(params.channelId))
if (params.downloaded) qs.set('downloaded', 'true')
if (params.search) qs.set('search', params.search)
if (params.cursor) qs.set('cursor', params.cursor)
const suffix = qs.toString() ? `?${qs.toString()}` : ''
return request<{ items: FeedVideoDto[]; next_cursor: string | null }>(`/api/feed${suffix}`)