add missing ipfs

pull/1/head
yann300 5 years ago
parent de2ec3087e
commit 936f0368ab
  1. 6
      src/app/panels/file-panel.js

@ -61,6 +61,7 @@ module.exports = class Filepanel extends ViewPlugin {
var gistExplorer = new FileExplorer(self._components.registry, self._deps.fileProviders['gist'], ['updateGist']) var gistExplorer = new FileExplorer(self._components.registry, self._deps.fileProviders['gist'], ['updateGist'])
var httpExplorer = new FileExplorer(self._components.registry, self._deps.fileProviders['http']) var httpExplorer = new FileExplorer(self._components.registry, self._deps.fileProviders['http'])
var httpsExplorer = new FileExplorer(self._components.registry, self._deps.fileProviders['https']) var httpsExplorer = new FileExplorer(self._components.registry, self._deps.fileProviders['https'])
var ipfsExplorer = new FileExplorer(self._components.registry, self._deps.fileProviders['ipfs'])
self.remixdHandle = new RemixdHandle(fileSystemExplorer, self._deps.fileProviders['localhost'], appManager) self.remixdHandle = new RemixdHandle(fileSystemExplorer, self._deps.fileProviders['localhost'], appManager)
@ -76,6 +77,7 @@ module.exports = class Filepanel extends ViewPlugin {
<div class="gistexplorer ${css.treeview}">${gistExplorer.init()}</div> <div class="gistexplorer ${css.treeview}">${gistExplorer.init()}</div>
<div class="httpexplorer ${css.treeview}">${httpExplorer.init()}</div> <div class="httpexplorer ${css.treeview}">${httpExplorer.init()}</div>
<div class="httpsexplorer ${css.treeview}">${httpsExplorer.init()}</div> <div class="httpsexplorer ${css.treeview}">${httpsExplorer.init()}</div>
<div class="httpsexplorer ${css.treeview}">${ipfsExplorer.init()}</div>
</div> </div>
</div> </div>
</div> </div>
@ -129,6 +131,10 @@ module.exports = class Filepanel extends ViewPlugin {
self._deps.fileManager.switchFile(path) self._deps.fileManager.switchFile(path)
}) })
ipfsExplorer.events.register('focus', function (path) {
self._deps.fileManager.switchFile(path)
})
self.render = function render () { return element } self.render = function render () { return element }
} }
} }

Loading…
Cancel
Save