- Full rewrite of legacy vanilla JS UI into React SPA - Implement modern design system using Tailwind CSS and shadcn/ui primitives - Create typed API modules and hooks for voice, media, and moderation - Add new features: separated Music and Screen Share panels, Image Grid - Implement unified WebSocket hook for real-time state and PCM audio - Improve visualizer with smooth CSS transitions and live state sync - Add __dirname polyfill for ES module compatibility - Ensure responsive layout for mobile and desktop Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
14 lines
358 B
TypeScript
14 lines
358 B
TypeScript
import { request } from "./client";
|
|
import type { UIState } from "../types/ui";
|
|
|
|
export function getUIState(): Promise<UIState> {
|
|
return request<UIState>('/api/ui-state');
|
|
}
|
|
|
|
export function updateUIState(patch: Partial<UIState>): Promise<UIState> {
|
|
return request<UIState>('/api/ui-state', {
|
|
method: 'POST',
|
|
body: JSON.stringify(patch),
|
|
});
|
|
}
|