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
7bf76379
Commit
7bf76379
authored
Mar 24, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linting
parent
0429892c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
workspaceFileProvider.js
apps/remix-ide/src/app/files/workspaceFileProvider.js
+1
-1
landing-page.js
apps/remix-ide/src/app/ui/landing-page/landing-page.js
+3
-3
No files found.
apps/remix-ide/src/app/files/workspaceFileProvider.js
View file @
7bf76379
...
@@ -54,7 +54,7 @@ class WorkspaceFileProvider extends FileProvider {
...
@@ -54,7 +54,7 @@ class WorkspaceFileProvider extends FileProvider {
const
regex
=
new
RegExp
(
`.workspaces/
${
this
.
workspace
}
/`
,
'g'
)
const
regex
=
new
RegExp
(
`.workspaces/
${
this
.
workspace
}
/`
,
'g'
)
let
json
=
await
super
.
_copyFolderToJsonInternal
(
directory
,
({
path
,
content
})
=>
{
let
json
=
await
super
.
_copyFolderToJsonInternal
(
directory
,
({
path
,
content
})
=>
{
visitFile
({
path
:
path
.
replace
(
regex
,
''
),
content
})
visitFile
({
path
:
path
.
replace
(
regex
,
''
),
content
})
},({
path
})
=>
{
},
({
path
})
=>
{
visitFolder
({
path
:
path
.
replace
(
regex
,
''
)
})
visitFolder
({
path
:
path
.
replace
(
regex
,
''
)
})
})
})
json
=
JSON
.
stringify
(
json
).
replace
(
regex
,
''
)
json
=
JSON
.
stringify
(
json
).
replace
(
regex
,
''
)
...
...
apps/remix-ide/src/app/ui/landing-page/landing-page.js
View file @
7bf76379
import
*
as
packageJson
from
'../../../../../../package.json'
import
*
as
packageJson
from
'../../../../../../package.json'
import
{
ViewPlugin
}
from
'@remixproject/engine-web'
import
{
ViewPlugin
}
from
'@remixproject/engine-web'
import
{
migrateToWorkspace
}
from
'../../../migrateFileSystem'
import
{
migrateToWorkspace
}
from
'../../../migrateFileSystem'
import
JSZip
from
"jszip"
import
JSZip
from
'jszip'
const
yo
=
require
(
'yo-yo'
)
const
yo
=
require
(
'yo-yo'
)
const
csjs
=
require
(
'csjs-inject'
)
const
csjs
=
require
(
'csjs-inject'
)
...
@@ -327,7 +327,7 @@ export class LandingPage extends ViewPlugin {
...
@@ -327,7 +327,7 @@ export class LandingPage extends ViewPlugin {
const
zip
=
new
JSZip
()
const
zip
=
new
JSZip
()
await
fileProviders
.
browser
.
copyFolderToJson
(
'/'
,
({
path
,
content
})
=>
{
await
fileProviders
.
browser
.
copyFolderToJson
(
'/'
,
({
path
,
content
})
=>
{
zip
.
file
(
path
,
content
)
zip
.
file
(
path
,
content
)
},({
path
})
=>
{
},
({
path
})
=>
{
zip
.
folder
(
path
)
zip
.
folder
(
path
)
})
})
zip
.
generateAsync
({
type
:
'blob'
}).
then
(
function
(
blob
)
{
zip
.
generateAsync
({
type
:
'blob'
}).
then
(
function
(
blob
)
{
...
@@ -417,7 +417,7 @@ export class LandingPage extends ViewPlugin {
...
@@ -417,7 +417,7 @@ export class LandingPage extends ViewPlugin {
yo
`<span>Do you want to download your files to local device first?</span>`
,
yo
`<span>Do you want to download your files to local device first?</span>`
,
{
{
label
:
'Download and Migrate'
,
label
:
'Download and Migrate'
,
fn
:
async
()
=>
{
fn
:
async
()
=>
{
await
downloadFiles
()
await
downloadFiles
()
migrate
()
migrate
()
}
}
...
...
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