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
03a76d5b
Commit
03a76d5b
authored
Sep 13, 2021
by
bunsenstraat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix err message
parent
acf5859d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dgitProvider.js
apps/remix-ide/src/app/files/dgitProvider.js
+2
-2
No files found.
apps/remix-ide/src/app/files/dgitProvider.js
View file @
03a76d5b
...
@@ -226,7 +226,7 @@ class DGitProvider extends Plugin {
...
@@ -226,7 +226,7 @@ class DGitProvider extends Plugin {
async
clone
(
input
)
{
async
clone
(
input
)
{
const
permission
=
await
this
.
askUserPermission
(
'clone'
,
'Import multiple files into your workspaces.'
)
const
permission
=
await
this
.
askUserPermission
(
'clone'
,
'Import multiple files into your workspaces.'
)
if
(
!
permission
)
return
false
if
(
!
permission
)
return
false
if
(
this
.
calculateLocalStorage
()
>
10000
)
throw
new
Error
(
'
Local browser storage
is full.'
)
if
(
this
.
calculateLocalStorage
()
>
10000
)
throw
new
Error
(
'
The local storage of the browser
is full.'
)
await
this
.
call
(
'filePanel'
,
'createWorkspace'
,
`workspace_
${
Date
.
now
()}
`
,
false
)
await
this
.
call
(
'filePanel'
,
'createWorkspace'
,
`workspace_
${
Date
.
now
()}
`
,
false
)
const
cmd
=
{
const
cmd
=
{
...
@@ -457,7 +457,7 @@ class DGitProvider extends Plugin {
...
@@ -457,7 +457,7 @@ class DGitProvider extends Plugin {
async
import
(
cmd
)
{
async
import
(
cmd
)
{
const
permission
=
await
this
.
askUserPermission
(
'import'
,
'Import multiple files into your workspaces.'
)
const
permission
=
await
this
.
askUserPermission
(
'import'
,
'Import multiple files into your workspaces.'
)
if
(
!
permission
)
return
false
if
(
!
permission
)
return
false
if
(
this
.
calculateLocalStorage
()
>
10000
)
throw
new
Error
(
'
Local browser storage
is full.'
)
if
(
this
.
calculateLocalStorage
()
>
10000
)
throw
new
Error
(
'
The local storage of the browser
is full.'
)
const
cid
=
cmd
.
cid
const
cid
=
cmd
.
cid
await
this
.
call
(
'filePanel'
,
'createWorkspace'
,
`workspace_
${
Date
.
now
()}
`
,
false
)
await
this
.
call
(
'filePanel'
,
'createWorkspace'
,
`workspace_
${
Date
.
now
()}
`
,
false
)
const
workspace
=
await
this
.
call
(
'filePanel'
,
'getCurrentWorkspace'
)
const
workspace
=
await
this
.
call
(
'filePanel'
,
'getCurrentWorkspace'
)
...
...
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