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
5f087838
Unverified
Commit
5f087838
authored
Jul 04, 2018
by
yann300
Committed by
GitHub
Jul 04, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1396 from ethereum/refactor8
Clean app.js (8)
parents
2d24d2c9
36ed68fa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
5 deletions
+6
-5
app.js
src/app.js
+0
-0
txLogger.js
src/app/execution/txLogger.js
+3
-3
fileManager.js
src/app/files/fileManager.js
+1
-0
compile-tab.js
src/app/tabs/compile-tab.js
+1
-1
settings-tab.js
src/app/tabs/settings-tab.js
+1
-1
No files found.
src/app.js
View file @
5f087838
This diff is collapsed.
Click to expand it.
src/app/execution/txLogger.js
View file @
5f087838
...
...
@@ -120,7 +120,6 @@ var css = csjs`
}`
/**
* This just export a function that register to `newTransaction` and forward them to the logger.
* Emit debugRequested
*
*/
class
TxLogger
{
...
...
@@ -141,7 +140,8 @@ class TxLogger {
editorPanel
:
this
.
_components
.
registry
.
get
(
'editorpanel'
).
api
,
txListener
:
this
.
_components
.
registry
.
get
(
'txlistener'
).
api
,
eventsDecoder
:
this
.
_components
.
registry
.
get
(
'eventsdecoder'
).
api
,
compiler
:
this
.
_components
.
registry
.
get
(
'compiler'
).
api
compiler
:
this
.
_components
.
registry
.
get
(
'compiler'
).
api
,
app
:
this
.
_components
.
registry
.
get
(
'app'
).
api
}
this
.
logKnownTX
=
this
.
_deps
.
editorPanel
.
registerCommand
(
'knownTransaction'
,
(
args
,
cmds
,
append
)
=>
{
...
...
@@ -205,7 +205,7 @@ function debug (e, data, self) {
if
(
data
.
tx
.
isCall
&&
data
.
tx
.
envMode
!==
'vm'
)
{
modalDialog
.
alert
(
'Cannot debug this call. Debugging calls is only possible in JavaScript VM mode.'
)
}
else
{
self
.
event
.
trigger
(
'debugRequested'
,
[
data
.
tx
.
hash
]
)
self
.
_deps
.
app
.
startdebugging
(
data
.
tx
.
hash
)
}
}
...
...
src/app/files/fileManager.js
View file @
5f087838
...
...
@@ -85,6 +85,7 @@ class FileManager {
self
.
_deps
.
editor
.
discardCurrentSession
()
delete
this
.
tabbedFiles
[
path
]
this
.
refreshTabs
()
this
.
switchFile
()
}
// Display files that have already been selected
...
...
src/app/tabs/compile-tab.js
View file @
5f087838
...
...
@@ -127,7 +127,7 @@ module.exports = class CompileTab {
var
error
=
false
if
(
data
[
'error'
])
{
error
=
true
self
.
_deps
.
renderer
.
error
(
data
[
'error'
].
formattedMessage
,
self
.
_view
.
errorContainer
,
{
type
:
data
[
'error'
].
severity
})
self
.
_deps
.
renderer
.
error
(
data
[
'error'
].
formattedMessage
,
self
.
_view
.
errorContainer
,
{
type
:
data
[
'error'
].
severity
||
'error'
})
}
if
(
data
.
errors
&&
data
.
errors
.
length
)
{
error
=
true
...
...
src/app/tabs/settings-tab.js
View file @
5f087838
...
...
@@ -111,7 +111,7 @@ module.exports = class SettingsTab {
<span class="
${
css
.
checkboxText
}
">Always use Ethereum VM at Load</span>
</div>
<div class="
${
css
.
crow
}
">
<div><input id="editorWrap" type="checkbox"></div>
<div><input id="editorWrap" type="checkbox"
onchange=
${
function
()
{
self
.
_deps
.
editor
.
resize
(
this
.
checked
)
}
}
></div>
<span class="
${
css
.
checkboxText
}
">Text Wrap</span>
</div>
<div class="
${
css
.
crow
}
">
...
...
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