新增房间验证工具函数,包含房间代码格式验证和房间状态检查逻辑

This commit is contained in:
MatrixSeven
2026-03-01 00:08:29 +08:00
parent 84d7caea8c
commit 1a6a7369b9
25 changed files with 2697 additions and 1241 deletions

View File

@@ -5,16 +5,7 @@ import { Button } from '@/components/ui/button';
import { Upload, FileText, Image, Video, Music, Archive, X } from 'lucide-react';
import RoomInfoDisplay from '@/components/RoomInfoDisplay';
import { ConnectionStatus } from '@/components/ConnectionStatus';
interface FileInfo {
id: string;
name: string;
size: number;
type: string;
status: 'ready' | 'downloading' | 'completed';
progress: number;
}
import type { FileInfo } from '@/types';
const getFileIcon = (mimeType: string) => {
if (mimeType.startsWith('image/')) return <Image className="w-5 h-5 text-white" />;