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
e5f04a7b
Commit
e5f04a7b
authored
Feb 22, 2021
by
lianahus
Committed by
Liana Husikyan
Feb 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
message for users of < 0.4.12 version``
parent
a4cf6d0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
compilerContainer.js
apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js
+13
-4
No files found.
apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js
View file @
e5f04a7b
import
toaster
from
'../../ui/tooltip'
import
{
canUseWorker
,
baseURLBin
,
baseURLWasm
,
urlFromVersion
,
pathToURL
,
promisedMiniXhr
}
from
'../../compiler/compiler-utils'
const
yo
=
require
(
'yo-yo'
)
const
helper
=
require
(
'../../../lib/helper'
)
...
...
@@ -210,19 +211,19 @@ class CompilerContainer {
}
this
.
_view
.
versionSelector
=
yo
`
<select onchange="
${
this
.
onchangeLoadVersion
.
bind
(
this
)}
" class="custom-select" id="versionSelector" disabled>
<select onchange="
${
()
=>
this
.
onchangeLoadVersion
(
)}
" class="custom-select" id="versionSelector" disabled>
<option disabled selected>
${
this
.
data
.
defaultVersion
}
</option>
<option disabled>builtin</option>
</select>`
this
.
_view
.
languageSelector
=
yo
`
<select onchange="
${
this
.
onchangeLanguage
.
bind
(
this
)}
" class="custom-select" id="compilierLanguageSelector" title="Available since v0.5.7">
<select onchange="
${
()
=>
this
.
onchangeLanguage
(
)}
" class="custom-select" id="compilierLanguageSelector" title="Available since v0.5.7">
<option>Solidity</option>
<option>Yul</option>
</select>`
this
.
_view
.
version
=
yo
`<span id="version"></span>`
this
.
_view
.
evmVersionSelector
=
yo
`
<select onchange="
${
this
.
onchangeEvmVersion
.
bind
(
this
)}
" class="custom-select" id="evmVersionSelector">
<select onchange="
${
()
=>
this
.
onchangeEvmVersion
(
)}
" class="custom-select" id="evmVersionSelector">
<option value="default" selected="selected">compiler default</option>
<option>muirGlacier</option>
<option>istanbul</option>
...
...
@@ -397,7 +398,6 @@ class CompilerContainer {
The following functions map with the above event handlers.
They are an external API for modifying the compiler configuration.
*/
setConfiguration
(
settings
)
{
this
.
setLanguage
(
settings
.
language
)
this
.
setEvmVersion
(
settings
.
evmVersion
)
...
...
@@ -476,6 +476,15 @@ class CompilerContainer {
this
.
_view
.
versionSelector
.
appendChild
(
option
)
}
})
if
(
semver
.
lt
(
this
.
_retrieveVersion
(),
'v0.4.12+commit.194ff033.js'
))
{
toaster
(
yo
`
<div>
<b>Old compiler usage detected.</b>
<p>You are using a compiler older than v0.4.12.</p>
<p>Some Functionallity may not work.</p>
</div>`
)
}
// Workers cannot load js on "file:"-URLs and we get a
// "Uncaught RangeError: Maximum call stack size exceeded" error on Chromium,
...
...
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