- 新增直播评论/上下文/礼物等 API 与回放组件 - 主播开播、云端推流配置与 streamer 校验 - 依赖与 Mongo 集合/种子更新 - 需求与调研文档补充 Made-with: Cursor
24 lines
788 B
TypeScript
24 lines
788 B
TypeScript
"use client"
|
||
|
||
import { Suspense } from "react"
|
||
import { ConditionalShell } from "@/components/layout/conditional-shell"
|
||
import { DevPortBanner } from "@/components/layout/dev-port-banner"
|
||
import { AppProvider } from "@/components/providers/app-provider"
|
||
import { StreamerRefCapture } from "@/components/streamer-ref-capture"
|
||
import { Toaster } from "@/components/ui/toaster"
|
||
|
||
/** 全站仅用 MongoDB,不再使用本地 IndexedDB (Dexie)。 */
|
||
export function RootProviders({ children }: { children: React.ReactNode }) {
|
||
const content = (
|
||
<>
|
||
<DevPortBanner />
|
||
<Suspense fallback={null}>
|
||
<StreamerRefCapture />
|
||
</Suspense>
|
||
<ConditionalShell>{children}</ConditionalShell>
|
||
<Toaster />
|
||
</>
|
||
)
|
||
return <AppProvider>{content}</AppProvider>
|
||
}
|