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
30062fb3
Commit
30062fb3
authored
Nov 17, 2020
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
standard
parent
bcc19e33
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
26 deletions
+20
-26
app.js
apps/remix-ide/src/app.js
+2
-2
debugger-tab.js
apps/remix-ide/src/app/tabs/debugger-tab.js
+16
-22
test-tab.js
apps/remix-ide/src/app/tabs/test-tab.js
+1
-1
landing-page.js
apps/remix-ide/src/app/ui/landing-page/landing-page.js
+1
-1
No files found.
apps/remix-ide/src/app.js
View file @
30062fb3
...
...
@@ -371,8 +371,8 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
)
const
analysis
=
new
AnalysisTab
(
registry
)
const
debug
=
new
DebuggerTab
(
blockchain
,
registry
.
get
(
'editor'
).
api
,
blockchain
,
registry
.
get
(
'editor'
).
api
,
registry
.
get
(
'offsettolinecolumnconverter'
).
api
)
const
test
=
new
TestTab
(
registry
.
get
(
'filemanager'
).
api
,
...
...
apps/remix-ide/src/app/tabs/debugger-tab.js
View file @
30062fb3
...
...
@@ -22,7 +22,6 @@ const profile = {
}
class
DebuggerTab
extends
ViewPlugin
{
constructor
(
blockchain
,
editor
,
offsetToLineColumnConverter
)
{
super
(
profile
)
this
.
el
=
null
...
...
@@ -106,27 +105,22 @@ class DebuggerTab extends ViewPlugin {
async
getTrace
(
hash
)
{
if
(
!
hash
)
return
try
{
const
web3
=
await
this
.
getDebugWeb3
()
const
currentReceipt
=
await
web3
.
eth
.
getTransactionReceipt
(
hash
)
const
debug
=
new
Debugger
({
web3
,
offsetToLineColumnConverter
:
this
.
offsetToLineColumnConverter
,
compilationResult
:
async
(
address
)
=>
{
try
{
return
await
this
.
fetchContractAndCompile
(
address
,
currentReceipt
)
}
catch
(
e
)
{
console
.
error
(
e
)
}
return
null
},
debugWithGeneratedSources
:
false
})
return
await
debug
.
debugger
.
traceManager
.
getTrace
(
hash
)
}
catch
(
e
)
{
throw
e
}
const
web3
=
await
this
.
getDebugWeb3
()
const
currentReceipt
=
await
web3
.
eth
.
getTransactionReceipt
(
hash
)
const
debug
=
new
Debugger
({
web3
,
offsetToLineColumnConverter
:
this
.
offsetToLineColumnConverter
,
compilationResult
:
async
(
address
)
=>
{
try
{
return
await
this
.
fetchContractAndCompile
(
address
,
currentReceipt
)
}
catch
(
e
)
{
console
.
error
(
e
)
}
return
null
},
debugWithGeneratedSources
:
false
})
return
await
debug
.
debugger
.
traceManager
.
getTrace
(
hash
)
}
fetchContractAndCompile
(
address
,
receipt
)
{
...
...
apps/remix-ide/src/app/tabs/test-tab.js
View file @
30062fb3
...
...
@@ -34,7 +34,7 @@ module.exports = class TestTab extends ViewPlugin {
this
.
readyTestsNumber
=
0
this
.
areTestsRunning
=
false
this
.
defaultPath
=
'browser/tests'
this
.
offsetToLineColumnConverter
=
offsetToLineColumnConverter
this
.
offsetToLineColumnConverter
=
offsetToLineColumnConverter
appManager
.
event
.
on
(
'activate'
,
(
name
)
=>
{
if
(
name
===
'solidity'
)
this
.
updateRunAction
()
...
...
apps/remix-ide/src/app/ui/landing-page/landing-page.js
View file @
30062fb3
...
...
@@ -339,7 +339,7 @@ export class LandingPage extends ViewPlugin {
document
.
location
.
reload
()
}
const
img
=
yo
`<img class=
${
css
.
logoImg
}
src="assets/img/guitarRemiCroped.webp" onclick="
${()
=>
playRemi
()}
"></img>`
le
t
playRemi
=
async
()
=>
{
await
document
.
getElementById
(
'remiAudio'
).
play
()
}
cons
t
playRemi
=
async
()
=>
{
await
document
.
getElementById
(
'remiAudio'
).
play
()
}
// to retrieve medium posts
document
.
body
.
appendChild
(
yo
`<script src="https://www.retainable.io/assets/retainable/rss-embed/retainable-rss-embed.js"></script>`
)
const
container
=
yo
`
...
...
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