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
fe7fc41a
Commit
fe7fc41a
authored
Apr 03, 2019
by
LianaHus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes standart errors
parent
22247f94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
landing-page.js
src/app/ui/landing-page/landing-page.js
+6
-11
No files found.
src/app/ui/landing-page/landing-page.js
View file @
fe7fc41a
...
...
@@ -5,7 +5,6 @@ let CompilerImport = require('../../compiler/compiler-imports')
var
modalDialogCustom
=
require
(
'../modal-dialog-custom'
)
var
tooltip
=
require
(
'../tooltip'
)
let
css
=
csjs
`
.sectionContainer {
display : flex;
...
...
@@ -43,14 +42,13 @@ let css = csjs`
import
{
defaultWorkspaces
}
from
'./workspace'
import
{
ApiFactory
}
from
'remix-plugin'
import
Section
from
'./section'
import
{
ENGINE_METHOD_ALL
}
from
'constants'
;
export
class
LandingPage
extends
ApiFactory
{
constructor
(
appManager
,
appStore
)
{
super
()
this
.
sections
=
[]
let
load
=
function
(
item
)
{
let
load
=
function
(
item
)
{
let
compilerImport
=
new
CompilerImport
()
let
fileProviders
=
globalRegistry
.
get
(
'fileproviders'
).
api
modalDialogCustom
.
prompt
(
null
,
'Enter the '
+
item
+
' you would like to load.'
,
null
,
(
target
)
=>
{
...
...
@@ -59,8 +57,9 @@ export class LandingPage extends ApiFactory {
target
,
(
loadingMsg
)
=>
{
tooltip
(
loadingMsg
)
},
(
error
,
content
,
cleanUrl
,
type
,
url
)
=>
{
if
(
error
)
{
modalDialogCustom
.
alert
(
error
)
}
else
{
if
(
error
)
{
modalDialogCustom
.
alert
(
error
)
}
else
{
if
(
fileProviders
[
type
])
{
fileProviders
[
type
].
addReadOnly
(
cleanUrl
,
content
,
url
)
}
...
...
@@ -106,8 +105,8 @@ export class LandingPage extends ApiFactory {
{
label
:
'Import from IPFS'
,
type
:
`callback`
,
description
:
``
,
payload
:
()
=>
{
load
(
'IPFS URL'
)
}
},
payload
:
()
=>
{
load
(
'IPFS URL'
)
}
},
{
label
:
'Connect to localhost'
,
type
:
`callback`
,
description
:
``
,
...
...
@@ -115,7 +114,6 @@ export class LandingPage extends ApiFactory {
appManager
.
ensureActivated
(
'remixd'
)
}
}
]
var
actionsHelp
=
[
...
...
@@ -152,9 +150,6 @@ export class LandingPage extends ApiFactory {
}
})
// var sectionWorkspaceMain = new Section('Workspaces', sectionsWorkspacesMain)
// this.sections.push(sectionWorkspaceMain)
this
.
sections
.
push
(
sectionStart
)
this
.
sections
.
push
(
sectionHelp
)
}
...
...
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