diff --git a/app/components/layout/Sidebar.tsx b/app/components/layout/Sidebar.tsx index 49c81b8..5ad1551 100644 --- a/app/components/layout/Sidebar.tsx +++ b/app/components/layout/Sidebar.tsx @@ -34,7 +34,7 @@ export function Sidebar({ onToggle, collapsed }: SidebarProps) { { id: 'file-upload', title: '文件上传', - path: '/files/new', + path: '/files/upload', icon: 'ri-upload-cloud-line' }, { diff --git a/app/components/ui/FileProgress.tsx b/app/components/ui/FileProgress.tsx new file mode 100644 index 0000000..1b648d4 --- /dev/null +++ b/app/components/ui/FileProgress.tsx @@ -0,0 +1,44 @@ +import fileProgressStyles from "~/styles/components/file-progress.css?url"; + +interface FileProgressProps { + fileName: string; + fileSize?: string; + progress: number; + speed?: string; + className?: string; +} + +export function links() { + return [{ rel: "stylesheet", href: fileProgressStyles }]; +} + +export function FileProgress({ + fileName, + fileSize, + progress, + speed = "0KB/s", + className = "" +}: FileProgressProps) { + return ( +
{tipText}
} + +文件已成功上传并评查完成,请查看结果
+文件上传页面加载失败。请刷新页面或联系系统管理员。
+ +{"{varName}"},在使用时会自动替换。系统将自动识别模板中的变量。请从以下{"{docType}"}文档中抽取关键信息...{"{varName}"} 形式在模板中使用,无需手动定义。