|
@@ -1,42 +1,37 @@
|
|
import {
|
|
import {
|
|
- Avatar,
|
|
|
|
- List,
|
|
|
|
message,
|
|
message,
|
|
- Checkbox,
|
|
|
|
Row,
|
|
Row,
|
|
Col,
|
|
Col,
|
|
Space,
|
|
Space,
|
|
Button,
|
|
Button,
|
|
- Spin,
|
|
|
|
Empty,
|
|
Empty,
|
|
Table,
|
|
Table,
|
|
Input,
|
|
Input,
|
|
InputRef,
|
|
InputRef,
|
|
} from "antd";
|
|
} from "antd";
|
|
import React, { useEffect, useState, useRef } from "react";
|
|
import React, { useEffect, useState, useRef } from "react";
|
|
-import { SearchOutlined } from "@ant-design/icons";
|
|
|
|
-import {
|
|
|
|
- del_file_by_id,
|
|
|
|
- get_fileInfo_by_id,
|
|
|
|
- searchDuplicateFile,
|
|
|
|
- setDuplicateFile,
|
|
|
|
- getDuplicateFiles_v2,
|
|
|
|
-} from "@/services";
|
|
|
|
|
|
+import { SearchOutlined, FolderOpenOutlined } from "@ant-design/icons";
|
|
import {
|
|
import {
|
|
message as tauriMessage,
|
|
message as tauriMessage,
|
|
save as dialogSave,
|
|
save as dialogSave,
|
|
open as dialogopen,
|
|
open as dialogopen,
|
|
} from "@tauri-apps/api/dialog";
|
|
} from "@tauri-apps/api/dialog";
|
|
-import { homeDir } from "@tauri-apps/api/path";
|
|
|
|
-import styles from "./CalculateListPage.module.less";
|
|
|
|
-import { useParams } from "react-router";
|
|
|
|
import { insertSearchFilesPasamsType } from "@/types/files";
|
|
import { insertSearchFilesPasamsType } from "@/types/files";
|
|
|
|
+import dayjs from "dayjs";
|
|
|
|
+import { useParams } from "react-router";
|
|
|
|
+import { useLocation } from "react-router-dom";
|
|
|
|
+import { homeDir } from "@tauri-apps/api/path";
|
|
import File from "@/plugins/tauri-plugin-file/file";
|
|
import File from "@/plugins/tauri-plugin-file/file";
|
|
import { CopyText } from "@/components/Table/CopyText";
|
|
import { CopyText } from "@/components/Table/CopyText";
|
|
-import { FolderOpenOutlined } from "@ant-design/icons";
|
|
|
|
-import dayjs from "dayjs";
|
|
|
|
import { formatFileSize } from "@/utils";
|
|
import { formatFileSize } from "@/utils";
|
|
-import { useLocation } from "react-router-dom";
|
|
|
|
|
|
+import styles from "./CalculateListPage.module.less";
|
|
|
|
+import {
|
|
|
|
+ del_file_by_id,
|
|
|
|
+ get_fileInfo_by_id,
|
|
|
|
+ searchDuplicateFile,
|
|
|
|
+ setDuplicateFile,
|
|
|
|
+ getDuplicateFiles_v2,
|
|
|
|
+} from "@/services";
|
|
|
|
|
|
type KeywordsType<T> = {
|
|
type KeywordsType<T> = {
|
|
[key: string]: T;
|
|
[key: string]: T;
|