移动文件
This commit is contained in:
@@ -5,7 +5,7 @@ import { Tooltip } from "@/components/Tooltip";
|
||||
import TransferProgress from "./TransferProgress";
|
||||
import { formatFileSize, generateFileId } from "@/lib/fileUtils";
|
||||
import { AutoPopupDialog } from "@/components/common/AutoPopupDialog";
|
||||
import { FileMeta, CustomFile, Progress } from "@/lib/types/file";
|
||||
import { FileMeta, CustomFile, Progress } from "@/types/webrtc";
|
||||
import FileTransferButton from "./FileTransferButton";
|
||||
import { getDictionary } from "@/lib/dictionary";
|
||||
import { useLocale } from "@/hooks/useLocale";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { useState, useEffect, ChangeEvent, useRef, useCallback } from 'react';
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { Upload } from 'lucide-react';
|
||||
import {FileMeta,CustomFile } from '@/lib/types/file';
|
||||
import {FileMeta,CustomFile } from '@/types/webrtc';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
} from "@/components/common/clipboard_btn";
|
||||
import FileListDisplay from "@/components/ClipboardApp/FileListDisplay";
|
||||
import type { Messages } from "@/types/messages";
|
||||
import type { FileMeta } from "@/lib/types/file";
|
||||
import type { FileMeta } from "@/types/webrtc";
|
||||
import type { ProgressState } from "@/hooks/useWebRTCConnection"; // 假设此类型已导出
|
||||
import type WebRTC_Recipient from "@/lib/webrtc_Recipient";
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import { FileUploadHandler } from "@/components/ClipboardApp/FileUploadHandler";
|
||||
import FileListDisplay from "@/components/ClipboardApp/FileListDisplay";
|
||||
import AnimatedButton from "@/components/ui/AnimatedButton";
|
||||
import type { Messages } from "@/types/messages";
|
||||
import type { CustomFile, FileMeta } from "@/lib/types/file";
|
||||
import type { CustomFile, FileMeta } from "@/types/webrtc";
|
||||
import type { ProgressState } from "@/hooks/useWebRTCConnection";
|
||||
import type WebRTC_Initiator from "@/lib/webrtc_Initiator";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import {Progress } from '@/lib/types/file';
|
||||
import {Progress } from '@/types/webrtc';
|
||||
|
||||
interface TransferProgressProps {
|
||||
message: string;
|
||||
|
||||
Reference in New Issue
Block a user