File tree Expand file tree Collapse file tree 4 files changed +39
-1
lines changed Expand file tree Collapse file tree 4 files changed +39
-1
lines changed Original file line number Diff line number Diff line change 15
15
"tasks" : " Tasks" ,
16
16
"upload" : " Upload" ,
17
17
"copy" : " Copy" ,
18
+ "move" : " Move" ,
18
19
"decompress" : " Decompress" ,
19
20
"backup-restore" : " Backup & Restore" ,
20
21
"home" : " Home" ,
Original file line number Diff line number Diff line change 3
3
"offline_download_transfer" : " Transfer downloaded file to corresponding storage" ,
4
4
"upload" : " Upload file to corresponding storage" ,
5
5
"copy" : " Copy file from a storage to another storage" ,
6
+ "move" : " Move file from a storage to another storage" ,
6
7
"decompress" : " Download and decompress an archive file" ,
7
8
"decompress_upload" : " Upload extracted file into target storage" ,
8
9
"done" : " Completed" ,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import { FiLogIn } from "solid-icons/fi"
19
19
import { SiMetabase } from "solid-icons/si"
20
20
import { CgDatabase } from "solid-icons/cg"
21
21
import { OcWorkflow2 } from "solid-icons/oc"
22
- import { IoCopy , IoHome , IoMagnetOutline } from "solid-icons/io"
22
+ import { IoCopy , IoMove , IoHome , IoMagnetOutline } from "solid-icons/io"
23
23
import { Component , lazy } from "solid-js"
24
24
import { Group , UserRole } from "~/types"
25
25
import { FaSolidBook , FaSolidDatabase } from "solid-icons/fa"
@@ -146,6 +146,13 @@ export const side_menu_items: SideMenuItem[] = [
146
146
role : UserRole . GENERAL ,
147
147
component : lazy ( ( ) => import ( "./tasks/Copy" ) ) ,
148
148
} ,
149
+ {
150
+ title : "manage.sidemenu.move" ,
151
+ icon : IoMove ,
152
+ to : "/@manage/tasks/move" ,
153
+ role : UserRole . GENERAL ,
154
+ component : lazy ( ( ) => import ( "./tasks/Move" ) ) ,
155
+ } ,
149
156
{
150
157
title : "manage.sidemenu.decompress" ,
151
158
icon : TbArchive ,
Original file line number Diff line number Diff line change
1
+ import { useManageTitle , useT } from "~/hooks"
2
+ import { TypeTasks } from "./Tasks"
3
+ import { getPath } from "./helper"
4
+
5
+ const Move = ( ) => {
6
+ const t = useT ( )
7
+ useManageTitle ( "manage.sidemenu.move" )
8
+ return (
9
+ < TypeTasks
10
+ type = "move"
11
+ canRetry
12
+ nameAnalyzer = { {
13
+ regex : / ^ m o v e \[ ( .* \/ ( [ ^ \/ ] * ) ) ] \( ( .* \/ ( [ ^ \/ ] * ) ) \) t o \[ ( .+ ) ] \( ( .+ ) \) $ / ,
14
+ title : ( matches ) => {
15
+ if ( matches [ 4 ] !== "" ) return matches [ 4 ]
16
+ return matches [ 2 ] === "" ? "/" : matches [ 2 ]
17
+ } ,
18
+ attrs : {
19
+ [ t ( `tasks.attr.copy.src` ) ] : ( matches ) =>
20
+ getPath ( matches [ 1 ] , matches [ 3 ] ) ,
21
+ [ t ( `tasks.attr.copy.dst` ) ] : ( matches ) =>
22
+ getPath ( matches [ 5 ] , matches [ 6 ] ) ,
23
+ } ,
24
+ } }
25
+ />
26
+ )
27
+ }
28
+
29
+ export default Move
You can’t perform that action at this time.
0 commit comments