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
f44f7332
Commit
f44f7332
authored
Feb 18, 2020
by
yann300
Committed by
LianaHus
Feb 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use out of the box profiles
parent
b13a97ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
remixAppManager.js
src/remixAppManager.js
+7
-10
No files found.
src/remixAppManager.js
View file @
f44f7332
...
@@ -18,7 +18,6 @@ export class RemixAppManager extends PluginManager {
...
@@ -18,7 +18,6 @@ export class RemixAppManager extends PluginManager {
constructor
(
plugins
)
{
constructor
(
plugins
)
{
super
()
super
()
this
.
event
=
new
EventEmitter
()
this
.
event
=
new
EventEmitter
()
this
.
registered
=
{}
this
.
pluginsDirectory
=
'https://raw.githubusercontent.com/ethereum/remix-plugins-directory/master/build/metadata.json'
this
.
pluginsDirectory
=
'https://raw.githubusercontent.com/ethereum/remix-plugins-directory/master/build/metadata.json'
this
.
pluginLoader
=
new
PluginLoader
()
this
.
pluginLoader
=
new
PluginLoader
()
}
}
...
@@ -42,13 +41,13 @@ export class RemixAppManager extends PluginManager {
...
@@ -42,13 +41,13 @@ export class RemixAppManager extends PluginManager {
}
}
getAll
()
{
getAll
()
{
return
Object
.
keys
(
this
.
registered
).
map
((
p
)
=>
{
return
Object
.
keys
(
this
.
profiles
).
map
((
p
)
=>
{
return
this
.
registered
[
p
]
return
this
.
profiles
[
p
]
})
})
}
}
getIds
()
{
getIds
()
{
return
Object
.
keys
(
this
.
registered
)
return
Object
.
keys
(
this
.
profiles
)
}
}
onPluginDeactivated
(
plugin
)
{
onPluginDeactivated
(
plugin
)
{
...
@@ -57,18 +56,16 @@ export class RemixAppManager extends PluginManager {
...
@@ -57,18 +56,16 @@ export class RemixAppManager extends PluginManager {
}
}
onRegistration
(
plugin
)
{
onRegistration
(
plugin
)
{
if
(
!
this
.
registered
)
this
.
registered
=
{}
this
.
registered
[
plugin
.
name
]
=
plugin
this
.
event
.
emit
(
'added'
,
plugin
.
name
)
this
.
event
.
emit
(
'added'
,
plugin
.
name
)
}
}
ensureActivated
(
apiName
)
{
async
ensureActivated
(
apiName
)
{
if
(
!
this
.
isActive
(
apiName
))
this
.
activateOne
(
apiName
)
await
this
.
activatePlugin
(
apiName
)
this
.
event
.
emit
(
'ensureActivated'
,
apiName
)
this
.
event
.
emit
(
'ensureActivated'
,
apiName
)
}
}
ensureDeactivated
(
apiName
)
{
async
ensureDeactivated
(
apiName
)
{
if
(
this
.
isActive
(
apiName
))
this
.
deactivateOne
(
apiName
)
await
this
.
deactivatePlugin
(
apiName
)
this
.
event
.
emit
(
'ensureDeactivated'
,
apiName
)
this
.
event
.
emit
(
'ensureDeactivated'
,
apiName
)
}
}
...
...
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