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
ad540577
Commit
ad540577
authored
Oct 26, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dgit flag for empty workspace and expose rename workspace api
parent
838f0caa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
dgitProvider.js
apps/remix-ide/src/app/files/dgitProvider.js
+2
-2
file-panel.js
apps/remix-ide/src/app/panels/file-panel.js
+1
-1
No files found.
apps/remix-ide/src/app/files/dgitProvider.js
View file @
ad540577
...
@@ -227,7 +227,7 @@ class DGitProvider extends Plugin {
...
@@ -227,7 +227,7 @@ class DGitProvider extends Plugin {
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
(
'The local storage of the browser 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
()}
`
,
fals
e
)
await
this
.
call
(
'filePanel'
,
'createWorkspace'
,
`workspace_
${
Date
.
now
()}
`
,
tru
e
)
const
cmd
=
{
const
cmd
=
{
url
:
input
.
url
,
url
:
input
.
url
,
...
@@ -459,7 +459,7 @@ class DGitProvider extends Plugin {
...
@@ -459,7 +459,7 @@ class DGitProvider extends Plugin {
if
(
!
permission
)
return
false
if
(
!
permission
)
return
false
if
(
this
.
calculateLocalStorage
()
>
10000
)
throw
new
Error
(
'The local storage of the browser 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
()}
`
,
fals
e
)
await
this
.
call
(
'filePanel'
,
'createWorkspace'
,
`workspace_
${
Date
.
now
()}
`
,
tru
e
)
const
workspace
=
await
this
.
call
(
'filePanel'
,
'getCurrentWorkspace'
)
const
workspace
=
await
this
.
call
(
'filePanel'
,
'getCurrentWorkspace'
)
let
result
let
result
if
(
cmd
.
local
)
{
if
(
cmd
.
local
)
{
...
...
apps/remix-ide/src/app/panels/file-panel.js
View file @
ad540577
...
@@ -29,7 +29,7 @@ const globalRegistry = require('../../global/registry')
...
@@ -29,7 +29,7 @@ const globalRegistry = require('../../global/registry')
const
profile
=
{
const
profile
=
{
name
:
'filePanel'
,
name
:
'filePanel'
,
displayName
:
'File explorers'
,
displayName
:
'File explorers'
,
methods
:
[
'createNewFile'
,
'uploadFile'
,
'getCurrentWorkspace'
,
'getWorkspaces'
,
'createWorkspace'
,
'setWorkspace'
,
'registerContextMenuItem'
],
methods
:
[
'createNewFile'
,
'uploadFile'
,
'getCurrentWorkspace'
,
'getWorkspaces'
,
'createWorkspace'
,
'setWorkspace'
,
'registerContextMenuItem'
,
'renameWorkspace'
],
events
:
[
'setWorkspace'
,
'renameWorkspace'
,
'deleteWorkspace'
,
'createWorkspace'
],
events
:
[
'setWorkspace'
,
'renameWorkspace'
,
'deleteWorkspace'
,
'createWorkspace'
],
icon
:
'assets/img/fileManager.webp'
,
icon
:
'assets/img/fileManager.webp'
,
description
:
' - '
,
description
:
' - '
,
...
...
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