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
80de10cd
Commit
80de10cd
authored
Apr 15, 2018
by
serapath
Committed by
yann300
May 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix compilers url
parent
a9b2e598
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
settings-tab.js
src/app/tabs/settings-tab.js
+7
-3
No files found.
src/app/tabs/settings-tab.js
View file @
80de10cd
...
@@ -31,7 +31,11 @@ module.exports = class SettingsTab {
...
@@ -31,7 +31,11 @@ module.exports = class SettingsTab {
plugin
:
null
,
remixd
:
null
,
localremixd
:
null
plugin
:
null
,
remixd
:
null
,
localremixd
:
null
}
}
}
/* eslint-enable */
}
/* eslint-enable */
self
.
data
=
{
allversions
:
null
,
selectedVersion
:
null
}
self
.
data
=
{
allversions
:
null
,
selectedVersion
:
null
,
baseurl
:
'https://solc-bin.ethereum.org/bin'
}
self
.
event
=
new
EventManager
()
self
.
event
=
new
EventManager
()
self
.
_components
.
queryParams
=
new
QueryParams
()
self
.
_components
.
queryParams
=
new
QueryParams
()
self
.
_components
.
themeStorage
=
new
Storage
(
'style:'
)
self
.
_components
.
themeStorage
=
new
Storage
(
'style:'
)
...
@@ -238,7 +242,7 @@ module.exports = class SettingsTab {
...
@@ -238,7 +242,7 @@ module.exports = class SettingsTab {
if
(
self
.
data
.
selectedVersion
.
indexOf
(
'soljson'
)
!==
0
||
helper
.
checkSpecialChars
(
self
.
data
.
selectedVersion
))
{
if
(
self
.
data
.
selectedVersion
.
indexOf
(
'soljson'
)
!==
0
||
helper
.
checkSpecialChars
(
self
.
data
.
selectedVersion
))
{
return
console
.
log
(
'loading '
+
self
.
data
.
selectedVersion
+
' not allowed'
)
return
console
.
log
(
'loading '
+
self
.
data
.
selectedVersion
+
' not allowed'
)
}
}
url
=
'https://ethereum.github.io/solc-bin/bin/'
+
self
.
data
.
selectedVersion
url
=
`
${
self
.
data
.
baseurl
}
/
${
self
.
data
.
selectedVersion
}
`
}
}
var
isFirefox
=
typeof
InstallTrigger
!==
'undefined'
var
isFirefox
=
typeof
InstallTrigger
!==
'undefined'
if
(
document
.
location
.
protocol
!==
'file:'
&&
Worker
!==
undefined
&&
isFirefox
)
{
if
(
document
.
location
.
protocol
!==
'file:'
&&
Worker
!==
undefined
&&
isFirefox
)
{
...
@@ -254,7 +258,7 @@ module.exports = class SettingsTab {
...
@@ -254,7 +258,7 @@ module.exports = class SettingsTab {
}
}
fetchAllVersion
(
callback
)
{
fetchAllVersion
(
callback
)
{
var
self
=
this
var
self
=
this
minixhr
(
'https://ethereum.github.io/solc-bin/bin/list.json'
,
function
(
json
,
event
)
{
minixhr
(
`
${
self
.
data
.
baseurl
}
/list.json`
,
function
(
json
,
event
)
{
// @TODO: optimise and cache results to improve app loading times
// @TODO: optimise and cache results to improve app loading times
var
allversions
,
selectedVersion
var
allversions
,
selectedVersion
if
(
event
.
type
!==
'error'
)
{
if
(
event
.
type
!==
'error'
)
{
...
...
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