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
14de9055
Commit
14de9055
authored
Jun 04, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Websocket plugin activation
parent
3bbf0aab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
app.js
apps/remix-ide/src/app.js
+5
-2
fileManager.js
apps/remix-ide/src/app/files/fileManager.js
+7
-7
No files found.
apps/remix-ide/src/app.js
View file @
14de9055
...
...
@@ -42,7 +42,7 @@ import { basicLogo } from './app/ui/svgLogo'
import
{
RunTab
,
makeUdapp
}
from
'./app/udapp'
import
PanelsResize
from
'./lib/panels-resize'
import
{
Engine
}
from
'@remixproject/engine'
import
{
Engine
,
WebsocketPlugin
}
from
'@remixproject/engine'
import
{
RemixAppManager
}
from
'./remixAppManager'
import
{
FramingService
}
from
'./framingService'
import
{
MainView
}
from
'./app/panels/main-view'
...
...
@@ -155,6 +155,7 @@ class App {
self
.
_components
.
filesProviders
[
'localhost'
]
=
new
RemixDProvider
(
self
.
appManager
)
registry
.
put
({
api
:
self
.
_components
.
filesProviders
[
'localhost'
],
name
:
'fileproviders/localhost'
})
console
.
log
(
'self._components.filesProviders: '
,
self
.
_components
.
filesProviders
)
registry
.
put
({
api
:
self
.
_components
.
filesProviders
,
name
:
'fileproviders'
})
migrateFileSystem
(
self
.
_components
.
filesProviders
[
'browser'
])
...
...
@@ -305,6 +306,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
makeUdapp
(
blockchain
,
compilersArtefacts
,
(
domEl
)
=>
terminal
.
logHtml
(
domEl
))
const
contextualListener
=
new
ContextualListener
({
editor
})
const
{
remixd
}
=
self
.
_components
engine
.
register
([
contentImport
,
...
...
@@ -318,7 +320,8 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
contextualListener
,
terminal
,
web3Provider
,
fetchAndCompile
fetchAndCompile
,
remixd
])
// LAYOUT & SYSTEM VIEWS
...
...
apps/remix-ide/src/app/files/fileManager.js
View file @
14de9055
...
...
@@ -266,13 +266,13 @@ class FileManager extends Plugin {
localhostExplorer
:
this
.
_components
.
registry
.
get
(
'fileproviders/localhost'
).
api
,
filesProviders
:
this
.
_components
.
registry
.
get
(
'fileproviders'
).
api
}
this
.
_deps
.
browserExplorer
.
event
.
register
(
'fileChanged'
,
(
path
)
=>
{
this
.
fileChangedEvent
(
path
)
})
this
.
_deps
.
browserExplorer
.
event
.
register
(
'fileRenamed'
,
(
oldName
,
newName
,
isFolder
)
=>
{
this
.
fileRenamedEvent
(
oldName
,
newName
,
isFolder
)
})
this
.
_deps
.
localhostExplorer
.
event
.
register
(
'fileRenamed'
,
(
oldName
,
newName
,
isFolder
)
=>
{
this
.
fileRenamedEvent
(
oldName
,
newName
,
isFolder
)
})
this
.
_deps
.
browserExplorer
.
event
.
register
(
'fileRemoved'
,
(
path
)
=>
{
this
.
fileRemovedEvent
(
path
)
})
this
.
_deps
.
localhostExplorer
.
event
.
register
(
'fileRemoved'
,
(
path
)
=>
{
this
.
fileRemovedEvent
(
path
)
})
this
.
_deps
.
localhostExplorer
.
event
.
register
(
'errored'
,
(
event
)
=>
{
this
.
removeTabsOf
(
this
.
_deps
.
localhostExplorer
)
})
this
.
_deps
.
localhostExplorer
.
event
.
register
(
'closed'
,
(
event
)
=>
{
this
.
removeTabsOf
(
this
.
_deps
.
localhostExplorer
)
})
//
this._deps.browserExplorer.event.register('fileChanged', (path) => { this.fileChangedEvent(path) })
//
this._deps.browserExplorer.event.register('fileRenamed', (oldName, newName, isFolder) => { this.fileRenamedEvent(oldName, newName, isFolder) })
//
this._deps.localhostExplorer.event.register('fileRenamed', (oldName, newName, isFolder) => { this.fileRenamedEvent(oldName, newName, isFolder) })
//
this._deps.browserExplorer.event.register('fileRemoved', (path) => { this.fileRemovedEvent(path) })
//
this._deps.localhostExplorer.event.register('fileRemoved', (path) => { this.fileRemovedEvent(path) })
//
this._deps.localhostExplorer.event.register('errored', (event) => { this.removeTabsOf(this._deps.localhostExplorer) })
//
this._deps.localhostExplorer.event.register('closed', (event) => { this.removeTabsOf(this._deps.localhostExplorer) })
this
.
getCurrentFile
=
this
.
file
this
.
getFile
=
this
.
readFile
this
.
getFolder
=
this
.
readdir
...
...
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