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
92f67e51
Commit
92f67e51
authored
Jul 02, 2020
by
LianaHus
Committed by
Liana Husikyan
Jul 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
last corrections of UI
parent
40acc5a6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
17 deletions
+17
-17
file-explorer.js
src/app/files/file-explorer.js
+9
-8
CodeListView.js
src/app/tabs/debugger/debuggerUI/vmDebugger/CodeListView.js
+0
-3
StepDetail.js
src/app/tabs/debugger/debuggerUI/vmDebugger/StepDetail.js
+2
-1
TreeView.js
src/app/ui/TreeView.js
+6
-5
No files found.
src/app/files/file-explorer.js
View file @
92f67e51
...
@@ -636,7 +636,7 @@ fileExplorer.prototype.renderMenuItems = function () {
...
@@ -636,7 +636,7 @@ fileExplorer.prototype.renderMenuItems = function () {
<label
<label
id=
${
action
}
id=
${
action
}
data-id="fileExplorerUploadFile
${
action
}
"
data-id="fileExplorerUploadFile
${
action
}
"
class="
${
icon
}
${
css
.
newFile
}
"
class="
${
icon
}
mb-0
${
css
.
newFile
}
"
title="
${
title
}
"
title="
${
title
}
"
>
>
<input id="fileUpload" data-id="fileExplorerFileUpload" type="file" onchange=
${(
event
)
=>
{
<input id="fileUpload" data-id="fileExplorerFileUpload" type="file" onchange=
${(
event
)
=>
{
...
@@ -647,13 +647,14 @@ fileExplorer.prototype.renderMenuItems = function () {
...
@@ -647,13 +647,14 @@ fileExplorer.prototype.renderMenuItems = function () {
`
`
} else {
} else {
return yo`
return yo`
<
span
<
span
id
=
$
{
action
}
id
=
$
{
action
}
data-id="fileExplorerNewFile
${
action
}
"
data-id="fileExplorerNewFile
${
action
}
"
onclick=
${(
event
)
=>
{
event
.
stopPropagation
();
this
[
action
]()
}}
onclick=
${(
event
)
=>
{
event
.
stopPropagation
();
this
[
action
]()
}}
class
=
"newFile ${icon} ${css.newFile}"
class
=
"newFile ${icon} ${css.newFile}"
title
=
$
{
title
}
>
title
=
$
{
title
}
</span>
>
</span>
`
`
}
}
})
})
...
...
src/app/tabs/debugger/debuggerUI/vmDebugger/CodeListView.js
View file @
92f67e51
...
@@ -44,9 +44,6 @@ CodeListView.prototype.indexChanged = function (index) {
...
@@ -44,9 +44,6 @@ CodeListView.prototype.indexChanged = function (index) {
this
.
itemSelected
.
style
.
setProperty
(
'border-color'
,
'var(--primary)'
)
this
.
itemSelected
.
style
.
setProperty
(
'border-color'
,
'var(--primary)'
)
this
.
itemSelected
.
style
.
setProperty
(
'border-style'
,
'solid'
)
this
.
itemSelected
.
style
.
setProperty
(
'border-style'
,
'solid'
)
this
.
itemSelected
.
setAttribute
(
'selected'
,
'selected'
)
this
.
itemSelected
.
setAttribute
(
'selected'
,
'selected'
)
if
(
this
.
itemSelected
.
firstChild
)
{
//this.itemSelected.firstChild.setAttribute('style', 'margin-left: 2px')
}
codeView
.
scrollTop
=
this
.
itemSelected
.
offsetTop
-
parseInt
(
codeView
.
offsetTop
)
codeView
.
scrollTop
=
this
.
itemSelected
.
offsetTop
-
parseInt
(
codeView
.
offsetTop
)
}
}
...
...
src/app/tabs/debugger/debuggerUI/vmDebugger/StepDetail.js
View file @
92f67e51
...
@@ -2,7 +2,8 @@ var yo = require('yo-yo')
...
@@ -2,7 +2,8 @@ var yo = require('yo-yo')
var
DropdownPanel
=
require
(
'./DropdownPanel'
)
var
DropdownPanel
=
require
(
'./DropdownPanel'
)
function
StepDetail
()
{
function
StepDetail
()
{
this
.
basicPanel
=
new
DropdownPanel
(
'Step detail'
,
{
json
:
true
,
displayContentOnly
:
true
})
this
.
basicPanel
=
new
DropdownPanel
(
'Step details'
,
{
json
:
true
,
displayContentOnly
:
false
})
this
.
basicPanel
.
show
()
this
.
detail
=
{
'vm trace step'
:
'-'
,
'execution step'
:
'-'
,
'add memory'
:
''
,
'gas'
:
''
,
'remaining gas'
:
'-'
,
'loaded address'
:
'-'
}
this
.
detail
=
{
'vm trace step'
:
'-'
,
'execution step'
:
'-'
,
'add memory'
:
''
,
'gas'
:
''
,
'remaining gas'
:
'-'
,
'loaded address'
:
'-'
}
}
}
...
...
src/app/ui/TreeView.js
View file @
92f67e51
...
@@ -28,10 +28,11 @@ var css = csjs`
...
@@ -28,10 +28,11 @@ var css = csjs`
}
}
.label_key {
.label_key {
min-width: 15%;
min-width: 15%;
word-break: break-all;
max-width: 80%;
word-break: break-word;
}
}
.label_value {
.label_value {
min-width:
3
0%;
min-width:
1
0%;
}
}
`
`
...
@@ -89,7 +90,7 @@ class TreeView {
...
@@ -89,7 +90,7 @@ class TreeView {
var
label
=
yo
`
var
label
=
yo
`
<div key=
${
keyPath
}
data-id="treeViewDiv
${
keyPath
}
" class="d-flex flex-row align-items-center">
<div key=
${
keyPath
}
data-id="treeViewDiv
${
keyPath
}
" class="d-flex flex-row align-items-center">
${
caret
}
${
caret
}
<span>
${
self
.
formatSelf
(
key
,
data
,
li
)}
</span>
<span
class="w-100"
>
${
self
.
formatSelf
(
key
,
data
,
li
)}
</span>
</div>`
</div>`
const
expanded
=
self
.
expandPath
.
includes
(
keyPath
)
const
expanded
=
self
.
expandPath
.
includes
(
keyPath
)
li
.
appendChild
(
label
)
li
.
appendChild
(
label
)
...
@@ -169,8 +170,8 @@ class TreeView {
...
@@ -169,8 +170,8 @@ class TreeView {
formatSelfDefault
(
key
,
data
)
{
formatSelfDefault
(
key
,
data
)
{
return
yo
`
return
yo
`
<div class="d-flex flex-row
${
css
.
label_item
}
">
<div class="d-flex
mb-1
flex-row
${
css
.
label_item
}
">
<label class="font-weight-bold pr-1
${
css
.
label_key
}
">
${
key
}
:</label>
<label class="
small
font-weight-bold pr-1
${
css
.
label_key
}
">
${
key
}
:</label>
<label class="m-0
${
css
.
label_value
}
">
${
data
.
self
}
</label>
<label class="m-0
${
css
.
label_value
}
">
${
data
.
self
}
</label>
</div>
</div>
`
`
...
...
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