|
|
|
@ -11,7 +11,7 @@ module.exports = class SupportTab { |
|
|
|
|
constructor (localRegistry) { |
|
|
|
|
const self = this |
|
|
|
|
self.event = new EventManager() |
|
|
|
|
self._view = { el: null, gitterIframe: '' } |
|
|
|
|
self._view = { el: null, gitterIframe: '', config: {} } |
|
|
|
|
self.data = { gitterIsLoaded: false } |
|
|
|
|
self._components = {} |
|
|
|
|
self._components.registry = localRegistry || globalRegistry |
|
|
|
@ -33,6 +33,31 @@ module.exports = class SupportTab { |
|
|
|
|
const self = this |
|
|
|
|
if (self._view.el) return self._view.el |
|
|
|
|
self._view.gitterIframe = yo`<div></div>` |
|
|
|
|
self._view.config.remixd = yo` |
|
|
|
|
<div class="${css.info}"> |
|
|
|
|
<div class=${css.title}>Accessing local files</div> |
|
|
|
|
<div class="${css.crow}"> |
|
|
|
|
Remixd is a tool which allow Remix IDE to access files located in your local computer. |
|
|
|
|
it can also be used to setup a development environment. |
|
|
|
|
</div> |
|
|
|
|
<div class="${css.crow}">More infos:</div> |
|
|
|
|
<div class="${css.crow}"><a target="_blank" href="https://github.com/ethereum/remixd"> https://github.com/ethereum/remixd</a></div>
|
|
|
|
|
<div class="${css.crow}"><a target="_blank" href="https://remix.readthedocs.io/en/latest/tutorial_remixd_filesystem">http://remix.readthedocs.io/en/latest/tutorial_remixd_filesystem.html</a></div>
|
|
|
|
|
<div class="${css.crow}">Installation: <pre class=${css.remixdinstallation}>npm install remixd -g</pre></div> |
|
|
|
|
</div>` |
|
|
|
|
self._view.config.localremixd = yo` |
|
|
|
|
<div class="${css.info}"> |
|
|
|
|
<div class=${css.title}>Running Remix locally</div> |
|
|
|
|
<div class="${css.crow}"> |
|
|
|
|
as a NPM module: |
|
|
|
|
</div> |
|
|
|
|
<a target="_blank" href="https://www.npmjs.com/package/remix-ide">https://www.npmjs.com/package/remix-ide</a>
|
|
|
|
|
<pre class=${css.remixdinstallation}>npm install remix-ide -g</pre> |
|
|
|
|
<div class="${css.crow}"> |
|
|
|
|
as an electron app: |
|
|
|
|
</div> |
|
|
|
|
<a target="_blank" href="https://github.com/horizon-games/remix-app">https://github.com/horizon-games/remix-app</a>
|
|
|
|
|
</div>` |
|
|
|
|
self._view.el = yo` |
|
|
|
|
<div class="${css.supportTabView}" id="supportView"> |
|
|
|
|
<div class="${css.infoBox}"> |
|
|
|
@ -47,6 +72,8 @@ module.exports = class SupportTab { |
|
|
|
|
</div> |
|
|
|
|
${self._view.gitterIframe} |
|
|
|
|
</div> |
|
|
|
|
${self._view.config.remixd} |
|
|
|
|
${self._view.config.localremixd} |
|
|
|
|
</div>` |
|
|
|
|
return self._view.el |
|
|
|
|
function openLink () { window.open('https://gitter.im/ethereum/remix') } |
|
|
|
@ -55,12 +82,13 @@ module.exports = class SupportTab { |
|
|
|
|
|
|
|
|
|
const css = csjs` |
|
|
|
|
.supportTabView { |
|
|
|
|
height: 100vh; |
|
|
|
|
height: 100%; |
|
|
|
|
padding: 2%; |
|
|
|
|
padding-bottom: 3em; |
|
|
|
|
display: flex; |
|
|
|
|
flex-direction: column; |
|
|
|
|
overflow: hidden; |
|
|
|
|
overflow-y: auto; |
|
|
|
|
} |
|
|
|
|
.chat { |
|
|
|
|
${styles.rightPanel.supportTab.box_IframeContainer} |
|
|
|
@ -102,4 +130,32 @@ const css = csjs` |
|
|
|
|
.infoBox { |
|
|
|
|
${styles.rightPanel.supportTab.box_SupportInfo} |
|
|
|
|
} |
|
|
|
|
.remixdinstallation { |
|
|
|
|
padding: 3px; |
|
|
|
|
border-radius: 2px; |
|
|
|
|
margin-left: 5px; |
|
|
|
|
} |
|
|
|
|
.info { |
|
|
|
|
${styles.rightPanel.settingsTab.box_SolidityVersionInfo}; |
|
|
|
|
margin-top: 1em; |
|
|
|
|
word-break: break-word; |
|
|
|
|
} |
|
|
|
|
.title { |
|
|
|
|
font-size: 1.1em; |
|
|
|
|
font-weight: bold; |
|
|
|
|
margin-bottom: 1em; |
|
|
|
|
} |
|
|
|
|
.crow { |
|
|
|
|
display: flex; |
|
|
|
|
overflow: auto; |
|
|
|
|
clear: both; |
|
|
|
|
padding: .2em; |
|
|
|
|
} |
|
|
|
|
.crow label { |
|
|
|
|
cursor:pointer; |
|
|
|
|
} |
|
|
|
|
.crowNoFlex { |
|
|
|
|
overflow: auto; |
|
|
|
|
clear: both; |
|
|
|
|
} |
|
|
|
|
` |
|
|
|
|