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
0c34ac2d
Commit
0c34ac2d
authored
May 21, 2019
by
LianaHus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed see more button
restyle debuger -> tx N field
parent
96d23cc5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
5 deletions
+31
-5
TxBrowser.js
src/app/debugger/debuggerUI/TxBrowser.js
+12
-1
compile-tab.js
src/app/tabs/compile-tab.js
+10
-3
tooltip.js
src/app/ui/tooltip.js
+9
-1
No files found.
src/app/debugger/debuggerUI/TxBrowser.js
View file @
0c34ac2d
...
...
@@ -18,6 +18,10 @@ var css = csjs`
}
.txinput {
width: inherit;
font-size: small;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.txbuttons {
width: 100%;
...
...
@@ -80,7 +84,14 @@ TxBrowser.prototype.render = function () {
var
view
=
yo
`<div class="
${
css
.
container
}
">
<div class="
${
css
.
txContainer
}
">
<div class="
${
css
.
txinputs
}
p-1 input-group">
<input value="
${
this
.
state
.
txNumber
||
''
}
" class="form-control
${
css
.
txinput
}
" id='txinput' onkeyup=
${
function
()
{
self
.
updateTxN
(
arguments
[
0
])
}
} type='text' placeholder=
${
'Transaction hash'
}
/>
<input
value="
${
this
.
state
.
txNumber
||
''
}
"
class="form-control m-0
${
css
.
txinput
}
"
id='txinput'
onkeyup=
${
function
()
{
self
.
updateTxN
(
arguments
[
0
])
}
}
type='text'
placeholder=
${
'Transaction hash'
}
/>
</div>
<div class="
${
css
.
txbuttons
}
btn-group p-1">
<button class='btn btn-primary btn-sm
${
css
.
txbutton
}
' id='load' title='
${
this
.
state
.
debugging
?
'Stop'
:
'Start'
}
debugging' onclick=
${
function
()
{
self
.
submit
()
}
}>
${
this
.
state
.
debugging
?
'Stop'
:
'Start'
}
debugging</button>
...
...
src/app/tabs/compile-tab.js
View file @
0c34ac2d
...
...
@@ -183,11 +183,14 @@ class CompileTab extends CompilerApi {
*/
contractSelection
(
contractList
=
[],
sourceFile
)
{
let
selectEl
=
yo
`
<select onchange="
${
e
=>
this
.
selectContract
(
e
.
target
.
value
)}
" id="compiledContracts" class="custom-select">
<select
onchange="
${
e
=>
this
.
selectContract
(
e
.
target
.
value
)}
"
id="compiledContracts" class="custom-select"
>
${
contractList
.
map
((
name
)
=>
yo
`<option value="
${
name
}
">
${
name
}
</option>`
)}
</select>
`
let
result
=
!
contractList
.
length
let
result
=
contractList
.
length
?
yo
`<section class="
${
css
.
container
}
clearfix">
<!-- Select Compiler Version -->
<div class="navbar navbar-light bg-light input-group mb-3">
...
...
@@ -224,7 +227,11 @@ class CompileTab extends CompilerApi {
<span class="alert alert-warning" role="alert">No Contract Compiled Yet</span>
</article></section>`
if
(
!
contractList
.
length
)
this
.
selectedContract
=
selectEl
.
value
if
(
contractList
.
length
)
{
this
.
selectedContract
=
selectEl
.
value
}
else
{
delete
this
.
selectedContract
}
return
result
}
...
...
src/app/ui/tooltip.js
View file @
0c34ac2d
...
...
@@ -8,6 +8,7 @@ var modal = require('./modal-dialog-custom')
* @param {function} [action] Returns An HTMLElement to display for action
*/
module
.
exports
=
function
addTooltip
(
tooltipText
,
action
,
opts
)
{
action
=
action
||
function
()
{
return
yo
`<div></div>`
}
let
t
=
new
Toaster
()
return
t
.
render
(
tooltipText
,
action
(
t
),
opts
)
}
...
...
@@ -27,9 +28,16 @@ class Toaster {
return
new
Promise
((
resolve
,
reject
)
=>
{
const
shortTooltipText
=
tooltipText
.
length
>
201
?
tooltipText
.
substring
(
0
,
200
)
+
'...'
:
tooltipText
let
button
=
tooltipText
.
length
>
201
?
yo
`
<button class="btn btn-secondary btn-sm" onclick=
${()
=>
{
modal
.
alert
(
tooltipText
)
}}
>
show
full
message
<
/button
>
` : ``
this.tooltip = yo`
<
div
class
=
"${css.tooltip} alert alert-info"
onmouseenter
=
$
{()
=>
{
over
()
}}
onmouseleave
=
$
{()
=>
{
out
()
}}
>
<
span
>
$
{
shortTooltipText
}
<button class="btn btn-secondary btn-sm" onclick=
${()
=>
{
modal
.
alert
(
tooltipText
)
}}
>
show
full
message
<
/button></
span
>
<
span
>
$
{
shortTooltipText
}
${
button
}
</span>
${
action
}
</div>`
let
timeOut
=
()
=>
{
...
...
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