Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
edda84a6
Commit
edda84a6
authored
Jan 11, 2018
by
ninabreznik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restyle setting tab
parent
85327645
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
17 deletions
+43
-17
settings-tab.js
src/app/tabs/settings-tab.js
+43
-17
No files found.
src/app/tabs/settings-tab.js
View file @
edda84a6
...
...
@@ -19,15 +19,22 @@ var css = csjs`
}
.info {
${
styles
.
rightPanel
.
settingsTab
.
box_SolidityVersionInfo
}
margin-bottom:
2
em;
margin-bottom:
1
em;
word-break: break-word;
}
.title {
font-size: 1.1em;
font-weight: bold;
margin-bottom: 1em;
}
.crow {
display: flex;
overflow: auto;
clear: both;
padding: .5em;
font-weight: bold;
}
.checkboxText {
font-weight: normal;
}
.crow label {
cursor:pointer;
...
...
@@ -39,6 +46,8 @@ var css = csjs`
font-weight: bold;
}
.select {
font-weight: bold;
margin-top: 1em;
${
styles
.
rightPanel
.
settingsTab
.
dropdown_SelectCompiler
}
}
.heading {
...
...
@@ -79,23 +88,39 @@ function SettingsTab (container, appAPI, appEvents, opts) {
var
el
=
yo
`
<div class="
${
css
.
settingsTabView
}
"id="settingsView">
<div class="
${
css
.
info
}
">
<div>Your current Solidity version is</div>
<div id="version"></div>
</div>
<div class="
${
css
.
crow
}
">
<select class="
${
css
.
select
}
" id="versionSelector"></select>
</div>
<div class="
${
css
.
crow
}
">
<div><input id="editorWrap" type="checkbox"></div>
<span class="
${
css
.
checkboxText
}
">Text Wrap</span>
<div class=
${
css
.
title
}
>Solidity version</div>
<span>Current version:</span> <span id="version"></span>
<div class="
${
css
.
crow
}
">
<select class="
${
css
.
select
}
" id="versionSelector"></select>
</div>
</div>
<div class="
${
css
.
crow
}
">
<div>
${
optionVM
}
</div>
<span class="
${
css
.
checkboxText
}
">Always use VM at Load</span>
<div class="
${
css
.
info
}
">
<div class=
${
css
.
title
}
>General settings</div>
<div class="
${
css
.
crow
}
">
<div><input id="editorWrap" type="checkbox"></div>
<span class="
${
css
.
checkboxText
}
">Text Wrap</span>
</div>
<div class="
${
css
.
crow
}
">
<div>
${
optionVM
}
</div>
<span class="
${
css
.
checkboxText
}
">Always use VM at Load</span>
</div>
<div class="
${
css
.
crow
}
">
<div><input id="optimize" type="checkbox"></div>
<span class="
${
css
.
checkboxText
}
">Enable Optimization</span>
</div>
</div>
<div class="
${
css
.
crow
}
">
<div><input id="optimize" type="checkbox"></div>
<span class="
${
css
.
checkboxText
}
">Enable Optimization</span>
<div class="
${
css
.
info
}
">
<div class=
${
css
.
title
}
>Plugin</div>
<div class="
${
css
.
crowNoFlex
}
">
<div>
<i title="Do not use this feature yet" class="fa fa-exclamation-triangle" aria-hidden="true"></i>
<span> Do not use this alpha feature if you are not sure what you are doing!</span>
</div>
<div>
<textarea rows="4" cols="70" id="plugininput" type="text" class="
${
css
.
pluginTextArea
}
" ></textarea>
<input onclick=
${
loadPlugin
}
type="button" value="Load" class="
${
css
.
pluginLoad
}
">
</div>
</div>
</div>
<hr>
<h4 class="
${
css
.
heading
}
">Themes ( Selecting a theme will trigger a page reload )</h4>
...
...
@@ -118,6 +143,7 @@ function SettingsTab (container, appAPI, appEvents, opts) {
</div>
</div>
</div>
`
function
loadPlugin
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment