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
7aee52fc
Commit
7aee52fc
authored
Jan 03, 2019
by
Rob Stupay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slight update of code from our conversation
parent
8a15fb7c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
app.js
src/app.js
+1
-1
plugin-manager-component.js
src/app/components/plugin-manager-component.js
+7
-2
swap-panel-api.js
src/app/components/swap-panel-api.js
+6
-1
No files found.
src/app.js
View file @
7aee52fc
...
...
@@ -445,7 +445,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
type
:
'solidityCompile'
,
methods
:
[],
}
appManager
.
addPlugin
({
json
:
compileTabProfile
,
api
:
compileTab
})
appManager
.
addPlugin
({
json
:
compileTabProfile
,
api
:
new
InternalModule
(
compileTab
)
})
const
testTab
=
new
TestTab
(
self
.
_components
.
registry
,
compileTab
)
const
testTabProfile
=
{
...
...
src/app/components/plugin-manager-component.js
View file @
7aee52fc
...
...
@@ -25,11 +25,15 @@ class PluginManagerComponent {
}
_activate
(
item
)
{
this
.
appManager
.
activate
(
item
)
this
.
event
.
emit
(
'activation'
,
item
)
}
_deactivate
(
item
)
{
this
.
appManager
.
deactivate
(
item
)
this
.
event
.
emit
(
'deactivation'
,
item
)
}
_addPlugin
(
url
){
this
.
event
.
emit
(
'plugin loading'
,
url
)
}
renderItem
(
item
)
{
...
...
@@ -42,6 +46,7 @@ class PluginManagerComponent {
<button onclick=
${()
=>
{
self
.
_activate
(
item
)
}}
><
button
>
<
button
onclick
=
$
{()
=>
{
self
.
_deactivate
(
item
)
}}
><
button
>
<
/div
>
<
button
onclick
=
$
{}
><
button
>
`
}
}
...
...
src/app/components/swap-panel-api.js
View file @
7aee52fc
...
...
@@ -8,7 +8,7 @@ const styles = styleguide.chooser()
const
EventManager
=
remixLib
.
EventManager
class
SwapPanelApi
{
constructor
(
swapPanelComponent
)
{
constructor
(
swapPanelComponent
,
pluginManagerApi
)
{
this
.
component
=
swapPanelComponent
}
...
...
@@ -20,6 +20,11 @@ class SwapPanelApi {
// add the DOM to the swappanel
this
.
component
.
addView
(
viewTitle
,
contents
)
}
activate
()
{
this
.
event
.
emit
(
activated
)
this
.
pluginManagerApi
.
activated
(
this
.
type
)
}
}
...
...
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