Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
a95f1746
Commit
a95f1746
authored
Nov 11, 2021
by
gxkai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 下载文件夹
parent
7f3319bd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
index.ts
libs/remix-ui/workspace/src/lib/actions/index.ts
+1
-1
file-explorer.tsx
libs/remix-ui/workspace/src/lib/components/file-explorer.tsx
+1
-1
index.ts
libs/remix-ui/workspace/src/lib/utils/index.ts
+9
-7
No files found.
libs/remix-ui/workspace/src/lib/actions/index.ts
View file @
a95f1746
...
...
@@ -235,7 +235,7 @@ const saveAs = (blob, name) => {
}
},
0
)
// 40s
}
// todo 选中
目标
下载
// todo 选中
文件
下载
export
const
downloadFile
=
async
(
folder
?:
string
)
=>
{
try
{
tooltip
(
'preparing files for download, please wait..'
)
...
...
libs/remix-ui/workspace/src/lib/components/file-explorer.tsx
View file @
a95f1746
...
...
@@ -178,7 +178,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
const
downloadFile
=
()
=>
{
const
parentFolder
=
getFocusedFolder
()
props
.
dispatchDownloadFile
(
parentFolder
)
props
.
dispatchDownloadFile
(
parentFolder
!==
name
?
`
${
name
}
/
${
parentFolder
}
`
:
parentFolder
)
}
const
copyFile
=
(
src
:
string
,
dest
:
string
)
=>
{
...
...
libs/remix-ui/workspace/src/lib/utils/index.ts
View file @
a95f1746
...
...
@@ -36,13 +36,15 @@ export const contextMenuActions: MenuItems = [{
type
:
[
'gist'
],
multiselect
:
false
,
label
:
''
},
{
id
:
'publishFolderToGist'
,
name
:
'Publish folder to gist'
,
type
:
[
'folder'
],
multiselect
:
false
,
label
:
''
},
{
},
// {
// id: 'publishFolderToGist',
// name: 'Publish folder to gist',
// type: ['folder'],
// multiselect: false,
// label: ''
// },
{
id
:
'publishFileToGist'
,
name
:
'Publish file to gist'
,
type
:
[
'file'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment