|
|
|
@ -143,24 +143,24 @@ function filepanel (localRegistry) { |
|
|
|
|
fileExplorer.ensureRoot() |
|
|
|
|
configExplorer.ensureRoot() |
|
|
|
|
var websocketconn = element.querySelector('.websocketconn') |
|
|
|
|
self._deps.fileProviders['localhost'].remixd.event.register('connecting', (event) => { |
|
|
|
|
self._deps.fileProviders['localhost'].event.register('connecting', (event) => { |
|
|
|
|
websocketconn.style.color = styles.colors.yellow |
|
|
|
|
websocketconn.setAttribute('title', 'Connecting to localhost. ' + JSON.stringify(event)) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
self._deps.fileProviders['localhost'].remixd.event.register('connected', (event) => { |
|
|
|
|
self._deps.fileProviders['localhost'].event.register('connected', (event) => { |
|
|
|
|
websocketconn.style.color = styles.colors.green |
|
|
|
|
websocketconn.setAttribute('title', 'Connected to localhost. ' + JSON.stringify(event)) |
|
|
|
|
fileSystemExplorer.show() |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
self._deps.fileProviders['localhost'].remixd.event.register('errored', (event) => { |
|
|
|
|
self._deps.fileProviders['localhost'].event.register('errored', (event) => { |
|
|
|
|
websocketconn.style.color = styles.colors.red |
|
|
|
|
websocketconn.setAttribute('title', 'localhost connection errored. ' + JSON.stringify(event)) |
|
|
|
|
fileSystemExplorer.hide() |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
self._deps.fileProviders['localhost'].remixd.event.register('closed', (event) => { |
|
|
|
|
self._deps.fileProviders['localhost'].event.register('closed', (event) => { |
|
|
|
|
websocketconn.style.color = styles.colors.black |
|
|
|
|
websocketconn.setAttribute('title', 'localhost connection closed. ' + JSON.stringify(event)) |
|
|
|
|
fileSystemExplorer.hide() |
|
|
|
|