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
d7a88ae5
Commit
d7a88ae5
authored
Nov 28, 2019
by
LianaHus
Committed by
Liana Husikyan
Nov 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style fix for plus btn
parent
745485f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
compilerContainer.js
src/app/tabs/compileTab/compilerContainer.js
+4
-7
No files found.
src/app/tabs/compileTab/compilerContainer.js
View file @
d7a88ae5
...
@@ -209,8 +209,8 @@ class CompilerContainer {
...
@@ -209,8 +209,8 @@ class CompilerContainer {
<div class="row w-100 no-gutters mb-2">
<div class="row w-100 no-gutters mb-2">
<div class="col-sm-4">
<div class="col-sm-4">
<div class="d-flex flex-row justify-content-end">
<div class="d-flex flex-row justify-content-end">
<label class="
${
css
.
compilerLabel
}
input-group-text pr-0 border-0" for="versionSelector">
<label class="
${
css
.
compilerLabel
}
input-group-text pr-0 border-0
w-100
" for="versionSelector">
<button class="far fa-plus-square border-0
bg-light
text-dark btn-sm" onclick=
${
this
.
loadCompiler
.
bind
(
this
)}
title="Add a custom compiler with URL"></button>
<button class="far fa-plus-square border-0
p-0 m-2
text-dark btn-sm" onclick=
${
this
.
loadCompiler
.
bind
(
this
)}
title="Add a custom compiler with URL"></button>
Compiler
Compiler
</label>
</label>
</div>
</div>
...
@@ -269,7 +269,7 @@ class CompilerContainer {
...
@@ -269,7 +269,7 @@ class CompilerContainer {
modalDialogCustom
.
prompt
(
modalDialogCustom
.
prompt
(
'Add a custom compiler'
,
'Add a custom compiler'
,
'URL'
,
'URL'
,
'
https://203137-40892817-gh.circle-artifacts.com/0/soljson.js'
,
// removed me before merge
'
'
,
(
url
)
=>
{
(
url
)
=>
{
this
.
addCustomCompiler
(
url
)
this
.
addCustomCompiler
(
url
)
}
}
...
@@ -278,7 +278,6 @@ class CompilerContainer {
...
@@ -278,7 +278,6 @@ class CompilerContainer {
addCustomCompiler
(
url
)
{
addCustomCompiler
(
url
)
{
this
.
data
.
selectedVersion
=
this
.
_view
.
versionSelector
.
value
this
.
data
.
selectedVersion
=
this
.
_view
.
versionSelector
.
value
this
.
data
.
customVersion
=
this
.
_view
.
versionSelector
.
value
// todo remove
this
.
_updateVersionSelector
(
url
)
this
.
_updateVersionSelector
(
url
)
}
}
...
@@ -357,7 +356,6 @@ class CompilerContainer {
...
@@ -357,7 +356,6 @@ class CompilerContainer {
let
url
let
url
if
(
customUrl
)
{
if
(
customUrl
)
{
this
.
data
.
selectedVersion
=
customUrl
this
.
data
.
selectedVersion
=
customUrl
this
.
data
.
version
=
'custom'
// TODO REMOVE
this
.
_view
.
versionSelector
.
appendChild
(
yo
`<option value="
${
customUrl
}
" selected>custom</option>`
)
this
.
_view
.
versionSelector
.
appendChild
(
yo
`<option value="
${
customUrl
}
" selected>custom</option>`
)
url
=
customUrl
url
=
customUrl
}
else
if
(
this
.
data
.
selectedVersion
===
'builtin'
)
{
}
else
if
(
this
.
data
.
selectedVersion
===
'builtin'
)
{
...
@@ -397,13 +395,12 @@ class CompilerContainer {
...
@@ -397,13 +395,12 @@ class CompilerContainer {
}
}
setVersionText
(
text
)
{
setVersionText
(
text
)
{
this
.
data
.
version
=
text
// todo remove
if
(
this
.
_view
.
version
)
this
.
_view
.
version
.
innerText
=
text
if
(
this
.
_view
.
version
)
this
.
_view
.
version
.
innerText
=
text
}
}
fetchAllVersion
(
callback
)
{
fetchAllVersion
(
callback
)
{
minixhr
(
`
${
this
.
data
.
baseurl
}
/list.json`
,
(
json
,
event
)
=>
{
minixhr
(
`
${
this
.
data
.
baseurl
}
/list.json`
,
(
json
,
event
)
=>
{
// @TODO: optimise and cache results to improve app loading times
// @TODO: optimise and cache results to improve app loading times
#2461
var
allversions
,
selectedVersion
var
allversions
,
selectedVersion
if
(
event
.
type
!==
'error'
)
{
if
(
event
.
type
!==
'error'
)
{
try
{
try
{
...
...
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