|
|
|
@ -58,6 +58,8 @@ function filepanel (localRegistry) { |
|
|
|
|
var githubExplorer = new FileExplorer(self._components.registry, self._deps.fileProviders['github']) |
|
|
|
|
var gistExplorer = new FileExplorer(self._components.registry, self._deps.fileProviders['gist']) |
|
|
|
|
var configExplorer = new FileExplorer(self._components.registry, self._deps.fileProviders['config']) |
|
|
|
|
var httpExplorer = new FileExplorer(self._components.registry, self._deps.fileProviders['http']) |
|
|
|
|
var httpsExplorer = new FileExplorer(self._components.registry, self._deps.fileProviders['https']) |
|
|
|
|
|
|
|
|
|
// ----------------- editor panel ----------------------
|
|
|
|
|
self._compilerMetadata = new CompilerMetadata( |
|
|
|
@ -125,6 +127,8 @@ function filepanel (localRegistry) { |
|
|
|
|
<div class="swarmexplorer ${css.treeview}">${swarmExplorer.init()}</div> |
|
|
|
|
<div class="githubexplorer ${css.treeview}">${githubExplorer.init()}</div> |
|
|
|
|
<div class="gistexplorer ${css.treeview}">${gistExplorer.init()}</div> |
|
|
|
|
<div class="httpexplorer ${css.treeview}">${httpExplorer.init()}</div> |
|
|
|
|
<div class="httpsexplorer ${css.treeview}">${httpsExplorer.init()}</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
${dragbar} |
|
|
|
@ -185,6 +189,14 @@ function filepanel (localRegistry) { |
|
|
|
|
self._deps.fileManager.switchFile(path) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
httpExplorer.events.register('focus', function (path) { |
|
|
|
|
self._deps.fileManager.switchFile(path) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
httpsExplorer.events.register('focus', function (path) { |
|
|
|
|
self._deps.fileManager.switchFile(path) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
self.render = function render () { return element } |
|
|
|
|
|
|
|
|
|
function uploadFile (event) { |
|
|
|
|