|
|
@ -15,15 +15,8 @@ var css = csjs` |
|
|
|
display : flex; |
|
|
|
display : flex; |
|
|
|
flex-direction : column; |
|
|
|
flex-direction : column; |
|
|
|
height : 100%; |
|
|
|
height : 100%; |
|
|
|
} |
|
|
|
|
|
|
|
.content { |
|
|
|
|
|
|
|
position : relative; |
|
|
|
|
|
|
|
display : flex; |
|
|
|
|
|
|
|
flex-direction : column; |
|
|
|
|
|
|
|
height : 100%; |
|
|
|
|
|
|
|
width : 100%; |
|
|
|
width : 100%; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
` |
|
|
|
` |
|
|
|
|
|
|
|
|
|
|
|
export class MainView { |
|
|
|
export class MainView { |
|
|
@ -181,13 +174,13 @@ export class MainView { |
|
|
|
} |
|
|
|
} |
|
|
|
render () { |
|
|
|
render () { |
|
|
|
var self = this |
|
|
|
var self = this |
|
|
|
if (self._view.el) return self._view.el |
|
|
|
if (self._view.mainview) return self._view.mainview |
|
|
|
self._view.editor = self.editor.render() |
|
|
|
self._view.editor = self.editor.render() |
|
|
|
self._view.editor.style.display = 'none' |
|
|
|
self._view.editor.style.display = 'none' |
|
|
|
self._view.mainPanel = self.mainPanel.render() |
|
|
|
self._view.mainPanel = self.mainPanel.render() |
|
|
|
self._view.terminal = self._components.terminal.render() |
|
|
|
self._view.terminal = self._components.terminal.render() |
|
|
|
self._view.content = yo` |
|
|
|
self._view.mainview = yo` |
|
|
|
<div class=${css.content}> |
|
|
|
<div class=${css.mainview}> |
|
|
|
${self.tabProxy.renderTabsbar()} |
|
|
|
${self.tabProxy.renderTabsbar()} |
|
|
|
${self._view.editor} |
|
|
|
${self._view.editor} |
|
|
|
${self._view.mainPanel} |
|
|
|
${self._view.mainPanel} |
|
|
@ -195,11 +188,6 @@ export class MainView { |
|
|
|
${self._view.terminal} |
|
|
|
${self._view.terminal} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
` |
|
|
|
` |
|
|
|
self._view.el = yo` |
|
|
|
|
|
|
|
<div class=${css.mainview}> |
|
|
|
|
|
|
|
${self._view.content} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
` |
|
|
|
|
|
|
|
// INIT
|
|
|
|
// INIT
|
|
|
|
self._adjustLayout('top', self.data._layout.top.offset) |
|
|
|
self._adjustLayout('top', self.data._layout.top.offset) |
|
|
|
|
|
|
|
|
|
|
@ -207,7 +195,7 @@ export class MainView { |
|
|
|
if (e.altKey && e.keyCode === 84) self.tabProxy.switchNextTab() // alt + t
|
|
|
|
if (e.altKey && e.keyCode === 84) self.tabProxy.switchNextTab() // alt + t
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
return self._view.el |
|
|
|
return self._view.mainview |
|
|
|
} |
|
|
|
} |
|
|
|
registerCommand (name, command, opts) { |
|
|
|
registerCommand (name, command, opts) { |
|
|
|
var self = this |
|
|
|
var self = this |
|
|
|