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
ec6aedb6
Commit
ec6aedb6
authored
May 10, 2019
by
Grandschtroumpf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use right order to load apis.
parent
2e1f8a1b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
14 deletions
+10
-14
app.js
src/app.js
+6
-10
main-view.js
src/app/panels/main-view.js
+4
-4
No files found.
src/app.js
View file @
ec6aedb6
...
@@ -334,10 +334,6 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
...
@@ -334,10 +334,6 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
const
themeModule
=
new
ThemeModule
(
registry
)
const
themeModule
=
new
ThemeModule
(
registry
)
registry
.
put
({
api
:
themeModule
,
name
:
'themeModule'
})
registry
.
put
({
api
:
themeModule
,
name
:
'themeModule'
})
// ----------------- main view ----------------------
self
.
_components
.
mainview
=
new
MainView
(
appStore
,
appManager
,
mainPanelComponent
)
registry
.
put
({
api
:
self
.
_components
.
mainview
,
name
:
'mainview'
})
// ----------------- landing page ----------------------------
// ----------------- landing page ----------------------------
// Need to have Home initialized before VerticalIconComponent render to access profile of it for icon
// Need to have Home initialized before VerticalIconComponent render to access profile of it for icon
const
landingPage
=
new
LandingPage
(
appManager
,
appStore
)
const
landingPage
=
new
LandingPage
(
appManager
,
appStore
)
...
@@ -349,6 +345,10 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
...
@@ -349,6 +345,10 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
const
swapPanel
=
new
SwapPanel
(
appStore
)
const
swapPanel
=
new
SwapPanel
(
appStore
)
const
mainPanel
=
new
MainPanel
(
appStore
)
const
mainPanel
=
new
MainPanel
(
appStore
)
// ----------------- main view ----------------------
self
.
_components
.
mainview
=
new
MainView
(
appStore
,
appManager
,
mainPanel
)
registry
.
put
({
api
:
self
.
_components
.
mainview
,
name
:
'mainview'
})
// ----------------- Renderer -----------------
// ----------------- Renderer -----------------
const
renderer
=
new
Renderer
()
const
renderer
=
new
Renderer
()
registry
.
put
({
api
:
renderer
,
name
:
'renderer'
})
registry
.
put
({
api
:
renderer
,
name
:
'renderer'
})
...
@@ -370,16 +370,12 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
...
@@ -370,16 +370,12 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
pluginManagerComponent
.
setApp
(
appManager
)
pluginManagerComponent
.
setApp
(
appManager
)
pluginManagerComponent
.
setStore
(
appStore
)
pluginManagerComponent
.
setStore
(
appStore
)
self
.
_components
.
mainview
.
init
()
self
.
_components
.
mainview
.
init
()
// Need to have Home initialized before VerticalIconComponent render to access profile of it for icon
const
landingPage
=
new
LandingPage
(
appManager
,
appStore
)
self
.
_components
.
fileManager
.
init
()
self
.
_components
.
fileManager
.
init
()
self
.
_view
.
mainpanel
.
appendChild
(
self
.
_components
.
mainview
.
render
())
self
.
_view
.
mainpanel
.
appendChild
(
self
.
_components
.
mainview
.
render
())
self
.
_view
.
iconpanel
.
appendChild
(
verticalIcons
Component
.
render
())
self
.
_view
.
iconpanel
.
appendChild
(
verticalIcons
.
render
())
self
.
_view
.
swappanel
.
appendChild
(
swapPanel
Component
.
render
())
self
.
_view
.
swappanel
.
appendChild
(
swapPanel
.
render
())
let
filePanel
=
new
FilePanel
()
let
filePanel
=
new
FilePanel
()
registry
.
put
({
api
:
filePanel
,
name
:
'filepanel'
})
registry
.
put
({
api
:
filePanel
,
name
:
'filepanel'
})
...
...
src/app/panels/main-view.js
View file @
ec6aedb6
...
@@ -28,7 +28,7 @@ var css = csjs`
...
@@ -28,7 +28,7 @@ var css = csjs`
`
`
export
class
MainView
{
export
class
MainView
{
constructor
(
appStore
,
appManager
,
mainPanel
Component
)
{
constructor
(
appStore
,
appManager
,
mainPanel
)
{
var
self
=
this
var
self
=
this
self
.
event
=
new
EventManager
()
self
.
event
=
new
EventManager
()
self
.
_view
=
{}
self
.
_view
=
{}
...
@@ -38,7 +38,7 @@ export class MainView {
...
@@ -38,7 +38,7 @@ export class MainView {
self
.
_components
.
registry
.
put
({
api
:
self
.
_components
.
editor
,
name
:
'editor'
})
self
.
_components
.
registry
.
put
({
api
:
self
.
_components
.
editor
,
name
:
'editor'
})
self
.
appStore
=
appStore
self
.
appStore
=
appStore
self
.
appManager
=
appManager
self
.
appManager
=
appManager
self
.
mainPanel
Component
=
mainPanelComponent
self
.
mainPanel
=
mainPanel
}
}
init
()
{
init
()
{
var
self
=
this
var
self
=
this
...
@@ -52,7 +52,7 @@ export class MainView {
...
@@ -52,7 +52,7 @@ export class MainView {
self
.
tabProxy
=
new
TabProxy
(
self
.
_deps
.
fileManager
,
self
.
_components
.
editor
,
self
.
appStore
,
self
.
appManager
)
self
.
tabProxy
=
new
TabProxy
(
self
.
_deps
.
fileManager
,
self
.
_components
.
editor
,
self
.
appStore
,
self
.
appManager
)
let
showApp
=
function
(
name
)
{
let
showApp
=
function
(
name
)
{
self
.
_deps
.
fileManager
.
unselectCurrentFile
()
self
.
_deps
.
fileManager
.
unselectCurrentFile
()
self
.
mainPanel
Component
.
showContent
(
name
)
self
.
mainPanel
.
showContent
(
name
)
self
.
_view
.
editor
.
style
.
display
=
'none'
self
.
_view
.
editor
.
style
.
display
=
'none'
self
.
_components
.
contextView
.
hide
()
self
.
_components
.
contextView
.
hide
()
self
.
_view
.
mainPanel
.
style
.
display
=
'block'
self
.
_view
.
mainPanel
.
style
.
display
=
'block'
...
@@ -178,7 +178,7 @@ export class MainView {
...
@@ -178,7 +178,7 @@ export class MainView {
if
(
self
.
_view
.
el
)
return
self
.
_view
.
el
if
(
self
.
_view
.
el
)
return
self
.
_view
.
el
self
.
_view
.
editor
=
self
.
_components
.
editor
.
render
()
self
.
_view
.
editor
=
self
.
_components
.
editor
.
render
()
self
.
_view
.
editor
.
style
.
display
=
'none'
self
.
_view
.
editor
.
style
.
display
=
'none'
self
.
_view
.
mainPanel
=
self
.
mainPanel
Component
.
render
()
self
.
_view
.
mainPanel
=
self
.
mainPanel
.
render
()
self
.
_view
.
terminal
=
self
.
_components
.
terminal
.
render
()
self
.
_view
.
terminal
=
self
.
_components
.
terminal
.
render
()
self
.
_view
.
content
=
yo
`
self
.
_view
.
content
=
yo
`
<div class=
${
css
.
content
}
>
<div class=
${
css
.
content
}
>
...
...
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