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
e6e02988
Commit
e6e02988
authored
Mar 24, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linting
parent
f7926284
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
landing-page.js
apps/remix-ide/src/app/ui/landing-page/landing-page.js
+4
-4
migrateFileSystem.js
apps/remix-ide/src/migrateFileSystem.js
+1
-1
No files found.
apps/remix-ide/src/app/ui/landing-page/landing-page.js
View file @
e6e02988
...
...
@@ -304,19 +304,19 @@ export class LandingPage extends ViewPlugin {
try
{
const
fileProviders
=
globalRegistry
.
get
(
'fileproviders'
).
api
const
json
=
await
fileProviders
.
browser
.
copyFolderToJson
(
'/'
)
const
blob
=
new
Blob
([
JSON
.
stringify
(
json
,
null
,
'
\
t'
)
],
{
type
:
'text/plain;charset=utf-8'
})
const
blob
=
new
Blob
([
JSON
.
stringify
(
json
,
null
,
'
\
t'
)
],
{
type
:
'text/plain;charset=utf-8'
})
const
node
=
document
.
createElement
(
'a'
)
node
.
download
=
'remix.json'
node
.
rel
=
'noopener'
node
.
href
=
URL
.
createObjectURL
(
blob
)
setTimeout
(
function
()
{
URL
.
revokeObjectURL
(
a
.
href
)
},
4
E4
)
// 40s
setTimeout
(
function
()
{
URL
.
revokeObjectURL
(
node
.
href
)
},
4
E4
)
// 40s
setTimeout
(
function
()
{
try
{
node
.
dispatchEvent
(
new
MouseEvent
(
'click'
))
}
catch
(
e
)
{
var
evt
=
document
.
createEvent
(
'MouseEvents'
)
evt
.
initMouseEvent
(
'click'
,
true
,
true
,
window
,
0
,
0
,
0
,
80
,
20
,
false
,
false
,
false
,
false
,
0
,
null
)
20
,
false
,
false
,
false
,
false
,
0
,
null
)
node
.
dispatchEvent
(
evt
)
}
},
0
)
// 40s
...
...
@@ -393,7 +393,7 @@ export class LandingPage extends ViewPlugin {
tooltip
(
'done. '
+
workspaceName
+
' created.'
)
}
catch
(
e
)
{
return
tooltip
(
e
.
message
)
}
}
}
const
img
=
yo
`<img class=
${
css
.
logoImg
}
src="assets/img/guitarRemiCroped.webp" onclick="
${()
=>
playRemi
()}
"></img>`
...
...
apps/remix-ide/src/migrateFileSystem.js
View file @
e6e02988
...
...
@@ -29,7 +29,7 @@ export async function migrateToWorkspace (fileManager, filePanel) {
const
workspaceName
=
'workspace_migrated_'
+
Date
.
now
()
await
filePanel
.
processCreateWorkspace
(
workspaceName
)
filePanel
.
getWorkspaces
()
// refresh list
if
(
Object
.
keys
(
files
).
length
>
0
)
{
if
(
Object
.
keys
(
files
).
length
>
0
)
{
const
workspacePath
=
joinPath
(
'browser'
,
workspaceProvider
.
workspacesPath
,
workspaceName
)
await
populateWorkspace
(
workspacePath
,
files
,
browserProvider
)
}
...
...
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