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
2992a0f2
Commit
2992a0f2
authored
Nov 17, 2020
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inherit from Plugin Engine
parent
c1dc7a4b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
8 deletions
+25
-8
app.js
apps/remix-ide/src/app.js
+2
-6
plugin-manager-component.js
.../remix-ide/src/app/components/plugin-manager-component.js
+2
-2
remixEngine.js
apps/remix-ide/src/remixEngine.js
+21
-0
No files found.
apps/remix-ide/src/app.js
View file @
2992a0f2
...
...
@@ -5,6 +5,7 @@ import { RunTab, makeUdapp } from './app/udapp'
import
PanelsResize
from
'./lib/panels-resize'
import
{
Engine
}
from
'@remixproject/engine'
import
{
RemixEngine
}
from
'./remixEngine'
import
{
RemixAppManager
}
from
'./remixAppManager'
import
{
FramingService
}
from
'./framingService'
import
{
MainView
}
from
'./app/panels/main-view'
...
...
@@ -231,12 +232,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
const
appManager
=
self
.
appManager
const
pluginLoader
=
appManager
.
pluginLoader
const
workspace
=
pluginLoader
.
get
()
const
engine
=
new
Engine
()
engine
.
setPluginOption
=
({
name
,
kind
})
=>
{
if
(
kind
===
'provider'
)
return
{
queueTimeout
:
60000
*
2
}
if
(
name
===
'LearnEth'
)
return
{
queueTimeout
:
60000
}
return
{
queueTimeout
:
10000
}
}
const
engine
=
new
RemixEngine
()
engine
.
register
(
appManager
)
// SERVICES
...
...
apps/remix-ide/src/app/components/plugin-manager-component.js
View file @
2992a0f2
...
...
@@ -84,9 +84,9 @@ class PluginManagerComponent extends ViewPlugin {
this
.
localPlugin
=
new
LocalPlugin
()
this
.
filter
=
''
this
.
appManager
.
event
.
on
(
'activate'
,
()
=>
{
this
.
reRender
()
})
this
.
appManager
.
event
.
on
(
'deactivate'
,
()
=>
{
this
.
reRender
()
})
this
.
appManager
.
event
.
on
(
'added'
,
()
=>
{
this
.
reRender
()
})
this
.
appManager
.
event
.
on
(
'deactivate'
,
()
=>
{
this
.
reRender
()
})
this
.
engine
=
engine
this
.
engine
.
event
.
on
(
'onRegistration'
,
()
=>
{
this
.
reRender
()
})
}
isActive
(
name
)
{
...
...
apps/remix-ide/src/remixEngine.js
0 → 100644
View file @
2992a0f2
/* global localStorage, fetch */
import
{
Engine
}
from
'@remixproject/engine'
import
{
EventEmitter
}
from
'events'
export
class
RemixEngine
extends
Engine
{
constructor
()
{
super
()
this
.
event
=
new
EventEmitter
()
}
setPluginOption
({
name
,
kind
})
{
if
(
kind
===
'provider'
)
return
{
queueTimeout
:
60000
*
2
}
if
(
name
===
'LearnEth'
)
return
{
queueTimeout
:
60000
}
return
{
queueTimeout
:
10000
}
}
onRegistration
(
plugin
)
{
this
.
event
.
emit
(
'onRegistration'
,
plugin
)
}
}
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