generated from xhofe/solid-lib
-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enhance task manage page (#205)
Simplify and arrange task details Add the feature to select tasks and retry/delete them in batches Add a regex matcher to filter tasks Support sorting tasks by name, creator, state or progress Support redirecting to paths of files operated Closes AlistGo/alist#7184, AlistGo/alist#7096
- Loading branch information
Showing
10 changed files
with
659 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,26 @@ | ||
import { useManageTitle } from "~/hooks" | ||
import { useManageTitle, useT } from "~/hooks" | ||
import { TypeTasks } from "./Tasks" | ||
import { getPath } from "./helper" | ||
|
||
const Copy = () => { | ||
const t = useT() | ||
useManageTitle("manage.sidemenu.copy") | ||
return <TypeTasks type="copy" canRetry /> | ||
return ( | ||
<TypeTasks | ||
type="copy" | ||
canRetry | ||
nameAnalyzer={{ | ||
regex: /^copy \[(.+)]\((.*\/([^\/]+))\) to \[(.+)]\((.+)\)$/, | ||
title: (matches) => matches[3], | ||
attrs: { | ||
[t(`tasks.attr.copy.src`)]: (matches) => | ||
getPath(matches[1], matches[2]), | ||
[t(`tasks.attr.copy.dst`)]: (matches) => | ||
getPath(matches[4], matches[5]), | ||
}, | ||
}} | ||
/> | ||
) | ||
} | ||
|
||
export default Copy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.