Files
shumai/packages/webui/hooks/use-server-features.ts
T
Yiling-J d3899d1257 feat(video): add video transcripts (#559)
* feat(video): generate transcripts with the local embedding server

* feat(video): show saved transcripts in the player

* fix(video): preserve transcript seek timestamps

* fix(video): refine transcript viewing and generation

* feat(video): resize transcripts and follow playback earlier

* fix(video): animate transcript playback scrolling

* fix(video): transcribe from the smallest full proxy

* fix(video): refine the sync to playback button

* feat(video): edit transcript segment text inline

* fix(video): keep transcript segment highlighted over edit button

* docs(video): note embedding server version for transcripts
2026-12-04 13:49:25 +08:00

15 lines
369 B
TypeScript

import { useQuery } from '@tanstack/react-query'
import { client } from '@/ui/api/client'
export function useServerFeatures() {
return useQuery({
queryKey: ['signup-info'],
queryFn: async () => {
const res = await client.api['signup-info'].$get()
if (!res.ok) return null
return await res.json()
},
staleTime: 5 * 60 * 1000,
})
}