Merge pull request #1054 from ethereum/settingsTabEnablePersonalMode

Restyle settings tab - enable personal mode
pull/1/head
yann300 7 years ago committed by GitHub
commit 7308becdff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      src/app/tabs/settings-tab.js

@ -18,6 +18,13 @@ function SettingsTab (container, appAPI, appEvents) {
var optionVM = yo`<input id="alwaysUseVM" type="checkbox">` var optionVM = yo`<input id="alwaysUseVM" type="checkbox">`
var personal = yo`<input id="personal" type="checkbox">` var personal = yo`<input id="personal" type="checkbox">`
var warnText = `Transaction sent over Web3 will use the web3.personal API - be sure the endpoint is opened before enabling it.
This mode allows to provide the passphrase in the Remix interface without having to unlock the account.
Although this is very convenient, you should completely trust the backend you are connected to (Geth, Parity, ...).
It is not recommended (and also most likely not relevant) to use this mode with an injected provider (Mist, Metamask, ...) or with JavaScript VM.
Remix never persist any passphrase.`
var warnPersonalMode = yo`<i title=${warnText} class="${css.icon} fa fa-exclamation-triangle" aria-hidden="true"></i>`
var el = yo` var el = yo`
<div class="${css.settingsTabView} "id="settingsView"> <div class="${css.settingsTabView} "id="settingsView">
<div class="${css.info}"> <div class="${css.info}">
@ -42,16 +49,10 @@ function SettingsTab (container, appAPI, appEvents) {
<span class="${css.checkboxText}">Enable Optimization</span> <span class="${css.checkboxText}">Enable Optimization</span>
</div> </div>
<div class="${css.crow}"> <div class="${css.crow}">
<div>${personal}></div> <div>${personal}></div>
<span class="${css.checkboxText}">Enable Personal Mode (transaction sent over Web3 will use the web3.personal API - be sure the endpoint is opened before enabling it -).</span> <span class="${css.checkboxText}">Enable Personal Mode ${warnPersonalMode}></span>
<div>
This mode allows to provide the passphrase in the Remix interface without having to unlock the account. <br>
Although this is very convenient, you should <b>completely trust</b> the backend you are connected to (Geth, Parity, ...). <br>
It is not recommended (and also most likely not relevant) to use this mode with an injected provider (Mist, Metamask, ...) or with JavaScript VM <br>
Remix never persist any passphrase.
</div> </div>
</div> </div>
</div>
<div class="${css.info}"> <div class="${css.info}">
<div class=${css.title}>Themes</div> <div class=${css.title}>Themes</div>
<div class=${css.attention}> <div class=${css.attention}>

Loading…
Cancel
Save