load plugin

pull/1/head
yann300 6 years ago
parent 014d2edf08
commit d4dad9ae08
  1. 13
      src/app/tabs/settings-tab.js
  2. 7
      src/app/ui/styles-guide/style-guide.js

@ -150,13 +150,12 @@ module.exports = class SettingsTab {
<div class="${css.info}"> <div class="${css.info}">
<div class=${css.title}>Plugin</div> <div class=${css.title}>Plugin</div>
<div class="${css.crowNoFlex}"> <div class="${css.crowNoFlex}">
<div><input onclick=${() => { onLoadPlugin('oraclize') }} type="button" value="Oraclize" class="${css.pluginLoad}"></div> <input onclick=${() => { onLoadPlugin('oraclize') }} type="button" value="Oraclize" class="${css.pluginLoad}">
<div><input onclick=${() => { onLoadPlugin('etherscan-general') }} type="button" value="Etherscan-general" class="${css.pluginLoad}"></div> <input onclick=${() => { onLoadPlugin('etherscan-general') }} type="button" value="Etherscan-general" class="${css.pluginLoad}">
<div> <div>Load plugin from JSON description: </div>
${self._view.pluginInput} ${self._view.pluginInput}
<input onclick=${onloadPluginJson} type="button" value="Load" class="${css.pluginLoad}"> <input onclick=${onloadPluginJson} type="button" value="Load" class="${css.pluginLoad}">
</div> </div>
</div>
</div>` </div>`
self._view.config.remixd = yo` self._view.config.remixd = yo`
<div class="${css.info}"> <div class="${css.info}">
@ -331,7 +330,7 @@ const css = csjs`
.select { .select {
font-weight: bold; font-weight: bold;
margin-top: 1em; margin-top: 1em;
${styles.rightPanel.settingsTab.dropdown_SelectCompiler} ${styles.rightPanel.settingsTab.dropdown_SelectCompiler};
} }
.heading { .heading {
margin-bottom: 0; margin-bottom: 0;
@ -343,6 +342,7 @@ const css = csjs`
input { input {
margin-right: 5px; margin-right: 5px;
cursor: pointer; cursor: pointer;
width: inherit;
} }
input[type=radio] { input[type=radio] {
margin-top: 2px; margin-top: 2px;
@ -352,6 +352,9 @@ const css = csjs`
} }
.pluginLoad { .pluginLoad {
vertical-align: top; vertical-align: top;
${styles.rightPanel.settingsTab.button_LoadPlugin};
width: inherit;
display: inline-block;
} }
i.warnIt { i.warnIt {
color: ${styles.appProperties.warningText_Color}; color: ${styles.appProperties.warningText_Color};

@ -688,8 +688,13 @@ function styleGuide () {
BackgroundColor: appProperties.dropdown_BackgroundColor, BackgroundColor: appProperties.dropdown_BackgroundColor,
BorderColor: appProperties.dropdown_BorderColor, BorderColor: appProperties.dropdown_BorderColor,
Color: appProperties.dropdown_TextColor Color: appProperties.dropdown_TextColor
}) }),
button_LoadPlugin: appProperties.uiElements.button({
BackgroundColor: appProperties.secondaryButton_BackgroundColor,
BorderColor: appProperties.secondaryButton_BorderColor,
Color: appProperties.secondaryButton_TextColor
})
}, },
/* :::::::::::::: /* ::::::::::::::

Loading…
Cancel
Save