Next.js 16 App Router application with: - AI-powered interactive classroom generation from PDF/text requirements - Multi-agent discussion system (teacher, students, assistant roles) - Provider abstraction for LLM, TTS, ASR, image, video, web search - Local-first data architecture (IndexedDB/Dexie) - i18n support (zh-CN/en-US) - Structured logger, SSRF guard, lint/build passing (0 errors) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
29 lines
534 B
TypeScript
29 lines
534 B
TypeScript
export const USER_AVATAR = '/avatars/user.png';
|
|
|
|
export type ParticipantRole = 'teacher' | 'student' | 'user';
|
|
|
|
export interface Participant {
|
|
id: string;
|
|
name: string;
|
|
role: ParticipantRole;
|
|
avatar: string;
|
|
isOnline: boolean;
|
|
isSpeaking?: boolean;
|
|
}
|
|
|
|
export interface MessageAction {
|
|
id: string;
|
|
label: string;
|
|
icon?: string;
|
|
onClick: () => void;
|
|
}
|
|
|
|
export interface Message {
|
|
id: string;
|
|
senderId: string;
|
|
senderRole: ParticipantRole;
|
|
content: string;
|
|
timestamp: number;
|
|
actions?: MessageAction[];
|
|
}
|