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
4837c8be
Commit
4837c8be
authored
Jan 16, 2019
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remix-plugin alpha.6
parent
887051bd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
22 deletions
+17
-22
app.js
src/app.js
+14
-22
plugin-manager-component.js
src/app/components/plugin-manager-component.js
+2
-0
store.js
src/lib/store.js
+1
-0
No files found.
src/app.js
View file @
4837c8be
...
...
@@ -421,6 +421,13 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
pluginManagerComponent
.
setApp
(
appManager
)
pluginManagerComponent
.
setStore
(
appStore
)
self
.
_components
.
editorpanel
.
init
()
self
.
_components
.
fileManager
.
init
()
self
.
_view
.
mainpanel
.
appendChild
(
self
.
_components
.
editorpanel
.
render
())
self
.
_view
.
iconpanel
.
appendChild
(
verticalIconComponent
.
render
())
self
.
_view
.
swappanel
.
appendChild
(
swapPanelComponent
.
render
())
let
filePanel
=
new
FilePanel
()
registry
.
put
({
api
:
filePanel
,
name
:
'filepanel'
})
let
compileTab
=
new
CompileTab
(
self
.
_components
.
registry
)
...
...
@@ -433,7 +440,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
let
sourceHighlighters
=
registry
.
get
(
'editor'
).
api
.
sourceHighlighters
let
configProvider
=
self
.
_components
.
filesProviders
[
'config'
]
app
Store
.
addEntities
([
app
Manager
.
init
([
{
profile
:
this
.
profile
(),
api
:
this
},
{
profile
:
udapp
.
profile
(),
api
:
udapp
},
{
profile
:
fileManager
.
profile
(),
api
:
fileManager
},
...
...
@@ -442,40 +449,25 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
{
profile
:
txListenerModuleProxy
.
profile
(),
api
:
txListenerModuleProxy
},
{
profile
:
compileTab
.
profile
(),
api
:
compileTab
},
{
profile
:
filePanel
.
profile
(),
api
:
filePanel
},
{
profile
:
test
.
profile
(),
api
:
test
},
{
profile
:
support
.
profile
(),
api
:
support
},
{
profile
:
debug
.
profile
(),
api
:
debug
},
{
profile
:
analysis
.
profile
(),
api
:
analysis
},
{
profile
:
settings
.
profile
(),
api
:
settings
},
{
profile
:
run
.
profile
(),
api
:
run
},
{
profile
:
pluginManagerComponent
.
profile
(),
api
:
pluginManagerComponent
}])
appStore
.
addEntities
(
appManager
.
plugins
())
appManager
.
registerMany
([
{
profile
:
debug
.
profile
(),
api
:
debug
},
{
profile
:
analysis
.
profile
(),
api
:
analysis
},
{
profile
:
test
.
profile
(),
api
:
test
}
])
appManager
.
registerMany
(
appManager
.
plugins
())
swapPanelApi
.
event
.
on
(
'toggle'
,
()
=>
{
this
.
_components
.
resizeFeature
.
panel1
.
clientWidth
!==
0
?
this
.
_components
.
resizeFeature
.
minimize
()
:
this
.
_components
.
resizeFeature
.
maximise
()
})
swapPanelApi
.
event
.
on
(
'showing'
,
()
=>
{
this
.
_components
.
resizeFeature
.
panel1
.
clientWidth
===
0
?
this
.
_components
.
resizeFeature
.
maximise
()
:
''
})
self
.
_components
.
editorpanel
.
init
()
self
.
_components
.
fileManager
.
init
()
self
.
_view
.
mainpanel
.
appendChild
(
self
.
_components
.
editorpanel
.
render
())
self
.
_view
.
iconpanel
.
appendChild
(
verticalIconComponent
.
render
())
self
.
_view
.
swappanel
.
appendChild
(
swapPanelComponent
.
render
())
appManager
.
activateOne
(
'App'
)
appManager
.
activateOne
(
'Udapp'
)
appManager
.
activateOne
(
'FileManager'
)
appManager
.
activateOne
(
'SourceHighlighters'
)
appManager
.
activateOne
(
'config'
)
appManager
.
activateOne
(
'TxListener'
)
appManager
.
activateOne
(
'FilePanel'
)
appManager
.
activateOne
(
'SolidityCompile'
)
appManager
.
activateOne
(
'Run'
)
appManager
.
activateOne
(
'PluginManager'
)
appManager
.
activateOne
(
'Settings'
)
appManager
.
activateOne
(
'Support'
)
verticalIconComponent
.
select
(
'FilePanel'
)
...
...
src/app/components/plugin-manager-component.js
View file @
4837c8be
...
...
@@ -33,6 +33,8 @@ class PluginManagerComponent {
this
.
store
=
store
this
.
store
.
event
.
on
(
'activate'
,
(
name
)
=>
{
this
.
reRender
()
})
this
.
store
.
event
.
on
(
'deactivate'
,
(
name
)
=>
{
this
.
reRender
()
})
this
.
store
.
event
.
on
(
'add'
,
(
name
)
=>
{
this
.
reRender
()
})
this
.
store
.
event
.
on
(
'remove'
,
(
name
)
=>
{
this
.
reRender
()
})
}
render
()
{
...
...
src/lib/store.js
View file @
4837c8be
...
...
@@ -133,6 +133,7 @@ export class EntityStore extends Store {
add
(
id
,
entity
)
{
this
.
state
.
entities
[
id
]
=
entity
this
.
state
.
ids
.
push
(
id
)
this
.
event
.
emit
(
'add'
,
id
,
entity
)
}
/**
...
...
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