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
33d95aa2
Commit
33d95aa2
authored
Feb 22, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
standard
parent
00131882
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
migrateFileSystem.js
apps/remix-ide/src/migrateFileSystem.js
+2
-3
No files found.
apps/remix-ide/src/migrateFileSystem.js
View file @
33d95aa2
...
@@ -21,7 +21,7 @@ export default (fileProvider) => {
...
@@ -21,7 +21,7 @@ export default (fileProvider) => {
fileStorageBrowserFS
.
set
(
flag
,
'done'
)
fileStorageBrowserFS
.
set
(
flag
,
'done'
)
}
}
export
async
function
migrateToWorkspace
(
fileManager
)
{
export
async
function
migrateToWorkspace
(
fileManager
)
{
const
browserProvider
=
fileManager
.
getProvider
(
'browser'
)
const
browserProvider
=
fileManager
.
getProvider
(
'browser'
)
const
workspaceProvider
=
fileManager
.
getProvider
(
'workspace'
)
const
workspaceProvider
=
fileManager
.
getProvider
(
'workspace'
)
const
flag
=
'status'
const
flag
=
'status'
...
@@ -33,7 +33,7 @@ export async function migrateToWorkspace (fileManager) {
...
@@ -33,7 +33,7 @@ export async function migrateToWorkspace (fileManager) {
const
workspacePath
=
joinPath
(
'browser'
,
workspaceProvider
.
workspacesPath
,
workspaceName
)
const
workspacePath
=
joinPath
(
'browser'
,
workspaceProvider
.
workspacesPath
,
workspaceName
)
await
fileManager
.
createWorkspace
(
workspaceName
)
await
fileManager
.
createWorkspace
(
workspaceName
)
await
populateWorkspace
(
workspacePath
,
files
,
fileManager
)
await
populateWorkspace
(
workspacePath
,
files
,
fileManager
)
fileStorageBrowserWorkspace
.
set
(
flag
,
'done'
)
fileStorageBrowserWorkspace
.
set
(
flag
,
'done'
)
}
}
const
populateWorkspace
=
async
(
workspace
,
json
,
fileManager
)
=>
{
const
populateWorkspace
=
async
(
workspace
,
json
,
fileManager
)
=>
{
...
@@ -47,4 +47,3 @@ const populateWorkspace = async (workspace, json, fileManager) => {
...
@@ -47,4 +47,3 @@ const populateWorkspace = async (workspace, json, fileManager) => {
}
}
}
}
}
}
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