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
101f3599
Commit
101f3599
authored
Sep 21, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing panels
parent
cf262246
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
dropdown-panel.tsx
...mix-ui/debugger-ui/src/lib/vm-debugger/dropdown-panel.tsx
+4
-4
stack-panel.tsx
.../remix-ui/debugger-ui/src/lib/vm-debugger/stack-panel.tsx
+0
-1
vm-debugger.tsx
.../remix-ui/debugger-ui/src/lib/vm-debugger/vm-debugger.tsx
+4
-4
No files found.
libs/remix-ui/debugger-ui/src/lib/vm-debugger/dropdown-panel.tsx
View file @
101f3599
...
@@ -38,8 +38,8 @@ export const DropdownPanel = (props: DropdownPanelProps) => {
...
@@ -38,8 +38,8 @@ export const DropdownPanel = (props: DropdownPanelProps) => {
})
})
useEffect
(()
=>
{
useEffect
(()
=>
{
update
(
calldata
,
header
)
update
(
calldata
)
},
[
calldata
,
header
])
},
[
calldata
])
useEffect
(()
=>
{
useEffect
(()
=>
{
message
(
dropdownMessage
)
message
(
dropdownMessage
)
...
@@ -99,7 +99,7 @@ export const DropdownPanel = (props: DropdownPanelProps) => {
...
@@ -99,7 +99,7 @@ export const DropdownPanel = (props: DropdownPanelProps) => {
})
})
}
}
const
update
=
function
(
calldata
,
header
)
{
const
update
=
function
(
calldata
)
{
setState
(
prevState
=>
{
setState
(
prevState
=>
{
return
{
return
{
...
prevState
,
...
prevState
,
...
@@ -179,7 +179,7 @@ export const DropdownPanel = (props: DropdownPanelProps) => {
...
@@ -179,7 +179,7 @@ export const DropdownPanel = (props: DropdownPanelProps) => {
}
}
const
title
=
<
div
className=
"py-0 px-1 title"
>
const
title
=
<
div
className=
"py-0 px-1 title"
>
<
div
className=
{
state
.
toggleDropdown
?
'icon fas fa-caret-down'
:
'icon fas fa-caret-right'
}
onClick=
{
handleToggle
}
></
div
>
<
div
className=
{
state
.
toggleDropdown
?
'icon fas fa-caret-down'
:
'icon fas fa-caret-right'
}
onClick=
{
handleToggle
}
></
div
>
<
div
className=
"name"
onClick=
{
handleToggle
}
>
{
dropdownName
}
</
div
><
span
className=
"nameDetail"
onClick=
{
handleToggle
}
>
</
span
>
<
div
className=
"name"
onClick=
{
handleToggle
}
>
{
dropdownName
}
</
div
><
span
className=
"nameDetail"
onClick=
{
handleToggle
}
>
{
header
}
</
span
>
<
CopyToClipboard
getContent=
{
copyClipboard
}
/>
<
CopyToClipboard
getContent=
{
copyClipboard
}
/>
</
div
>
</
div
>
...
...
libs/remix-ui/debugger-ui/src/lib/vm-debugger/stack-panel.tsx
View file @
101f3599
...
@@ -2,7 +2,6 @@ import React from 'react'
...
@@ -2,7 +2,6 @@ import React from 'react'
import
DropdownPanel
from
'./dropdown-panel'
import
DropdownPanel
from
'./dropdown-panel'
export
const
StackPanel
=
({
calldata
})
=>
{
export
const
StackPanel
=
({
calldata
})
=>
{
console
.
log
(
'calldata: '
,
calldata
)
return
(
return
(
<
div
id=
"stackpanel"
>
<
div
id=
"stackpanel"
>
<
DropdownPanel
dropdownName=
'Stack'
opts=
{
{
json
:
true
}
}
calldata=
{
calldata
}
/>
<
DropdownPanel
dropdownName=
'Stack'
opts=
{
{
json
:
true
}
}
calldata=
{
calldata
}
/>
...
...
libs/remix-ui/debugger-ui/src/lib/vm-debugger/vm-debugger.tsx
View file @
101f3599
...
@@ -64,10 +64,10 @@ export const VmDebugger = ({ vmDebuggerLogic, ready }) => {
...
@@ -64,10 +64,10 @@ export const VmDebugger = ({ vmDebuggerLogic, ready }) => {
<
div
id=
"vmdebugger"
className=
"px-2"
>
<
div
id=
"vmdebugger"
className=
"px-2"
>
<
div
>
<
div
>
<
StackPanel
calldata=
{
stackPanel
||
{}
}
/>
<
StackPanel
calldata=
{
stackPanel
||
{}
}
/>
{
/* <MemoryPanel calldata={memoryPanel} /> */
}
<
MemoryPanel
calldata=
{
memoryPanel
||
{}
}
/>
{
/* <StoragePanel storage={storagePanel.calldata} header={storagePanel.header} /> */
}
<
StoragePanel
storage=
{
storagePanel
.
calldata
||
{}
}
header=
{
storagePanel
.
header
}
/>
{
/* <CallstackPanel calldata={callStackPanel} /> */
}
<
CallstackPanel
calldata=
{
callStackPanel
||
{}
}
/>
{
/* <CalldataPanel calldata={calldataPanel} /> */
}
<
CalldataPanel
calldata=
{
calldataPanel
||
{}
}
/>
</
div
>
</
div
>
</
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