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
e81614b9
Commit
e81614b9
authored
Mar 24, 2021
by
lianahus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added modal to ask for download`
parent
e6e02988
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
landing-page.js
apps/remix-ide/src/app/ui/landing-page/landing-page.js
+15
-3
No files found.
apps/remix-ide/src/app/ui/landing-page/landing-page.js
View file @
e81614b9
...
...
@@ -7,6 +7,7 @@ const csjs = require('csjs-inject')
const
globalRegistry
=
require
(
'../../../global/registry'
)
const
CompilerImport
=
require
(
'../../compiler/compiler-imports'
)
const
modalDialogCustom
=
require
(
'../modal-dialog-custom'
)
const
modalDialog
=
require
(
'../modaldialog'
)
const
tooltip
=
require
(
'../tooltip'
)
const
GistHandler
=
require
(
'../../../lib/gist-handler'
)
const
QueryParams
=
require
(
'../../../lib/query-params.js'
)
...
...
@@ -315,8 +316,7 @@ export class LandingPage extends ViewPlugin {
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
)
evt
.
initMouseEvent
(
'click'
,
true
,
true
,
window
,
0
,
0
,
0
,
80
,
20
,
false
,
false
,
false
,
false
,
0
,
null
)
node
.
dispatchEvent
(
evt
)
}
},
0
)
// 40s
...
...
@@ -387,6 +387,18 @@ export class LandingPage extends ViewPlugin {
}
const
migrateWorkspace
=
async
()
=>
{
modalDialog
(
'File system Migration'
,
yo
`<span>'Do you want to save your files first?'</span>`
,
{
label
:
'Yes'
,
fn
:
async
()
=>
{
await
downloadFiles
()
}
},
{
label
:
'No'
,
fn
:
()
=>
{}
}
)
tooltip
(
'migrating workspace...'
)
try
{
const
workspaceName
=
await
migrateToWorkspace
(
this
.
fileManager
,
this
.
filePanel
)
...
...
@@ -474,7 +486,7 @@ export class LandingPage extends ViewPlugin {
${
this
.
websiteIcon
}
<a class="
${
css
.
text
}
" target="__blank" href="https://remix-project.org">Featuring website</a>
</p>
<p>
<p
class="mb-1"
>
<i class="fab fa-ethereum
${
css
.
image
}
"></i>
<span class="
${
css
.
text
}
" onclick=
${()
=>
switchToPreviousVersion
()}
>Old experience</span>
</p>
...
...
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