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
676837b3
Commit
676837b3
authored
Jun 17, 2021
by
yann300
Committed by
joseph izang
Aug 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use monospace for memory and stack
parent
3a9c2d15
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
dropdown-panel.tsx
...mix-ui/debugger-ui/src/lib/vm-debugger/dropdown-panel.tsx
+3
-3
memory-panel.tsx
...remix-ui/debugger-ui/src/lib/vm-debugger/memory-panel.tsx
+1
-1
stack-panel.tsx
.../remix-ui/debugger-ui/src/lib/vm-debugger/stack-panel.tsx
+1
-1
index.ts
libs/remix-ui/debugger-ui/src/types/index.ts
+3
-1
No files found.
libs/remix-ui/debugger-ui/src/lib/vm-debugger/dropdown-panel.tsx
View file @
676837b3
...
...
@@ -7,7 +7,7 @@ import './styles/dropdown-panel.css'
export
const
DropdownPanel
=
(
props
:
DropdownPanelProps
)
=>
{
const
[
calldataObj
,
dispatch
]
=
useReducer
(
reducer
,
initialState
)
const
{
dropdownName
,
dropdownMessage
,
calldata
,
header
,
loading
,
extractFunc
,
formatSelfFunc
,
registerEvent
,
triggerEvent
,
loadMoreEvent
,
loadMoreCompletedEvent
}
=
props
const
{
dropdownName
,
dropdownMessage
,
calldata
,
header
,
loading
,
extractFunc
,
formatSelfFunc
,
registerEvent
,
triggerEvent
,
loadMoreEvent
,
loadMoreCompletedEvent
,
headStyle
,
bodyStyle
}
=
props
const
extractDataDefault
:
ExtractFunc
=
(
item
,
parent
?)
=>
{
const
ret
:
ExtractData
=
{}
...
...
@@ -193,14 +193,14 @@ export const DropdownPanel = (props: DropdownPanelProps) => {
return
(
<
div
className=
"border rounded px-1 mt-1 bg-light"
>
<
div
className=
"py-0 px-1 title"
>
<
div
className=
"py-0 px-1 title"
style=
{
headStyle
}
>
<
div
className=
{
state
.
toggleDropdown
?
'icon fas fa-caret-down'
:
'icon fas fa-caret-right'
}
onClick=
{
handleToggle
}
></
div
>
<
div
className=
"name"
data
-
id=
{
`dropdownPanel${uniquePanelName}`
}
onClick=
{
handleToggle
}
>
{
dropdownName
}
</
div
><
span
className=
"nameDetail"
onClick=
{
handleToggle
}
>
{
header
}
</
span
>
<
CopyToClipboard
content=
{
state
.
copiableContent
}
data
-
id=
{
`dropdownPanelCopyToClipboard${uniquePanelName}`
}
/>
</
div
>
<
div
className=
'dropdownpanel'
style=
{
{
display
:
state
.
toggleDropdown
?
'block'
:
'none'
}
}
>
<
i
className=
"refresh fas fa-sync"
style=
{
{
display
:
state
.
updating
?
'inline-block'
:
'none'
}
}
aria
-
hidden=
"true"
></
i
>
<
div
className=
'dropdowncontent'
style=
{
{
display
:
state
.
dropdownContent
.
display
}
}
>
<
div
className=
'dropdowncontent'
style=
{
{
display
:
state
.
dropdownContent
.
display
,
...
bodyStyle
}
}
>
{
state
.
data
&&
<
TreeView
id=
"treeView"
>
...
...
libs/remix-ui/debugger-ui/src/lib/vm-debugger/memory-panel.tsx
View file @
676837b3
...
...
@@ -3,7 +3,7 @@ import DropdownPanel from './dropdown-panel' // eslint-disable-line
export
const
MemoryPanel
=
({
calldata
})
=>
{
return
(
<
DropdownPanel
dropdownName=
'Memory'
calldata=
{
calldata
||
{}
}
/>
<
DropdownPanel
bodyStyle=
{
{
fontFamily
:
'monospace'
}
}
dropdownName=
'Memory'
calldata=
{
calldata
||
{}
}
/>
)
}
...
...
libs/remix-ui/debugger-ui/src/lib/vm-debugger/stack-panel.tsx
View file @
676837b3
...
...
@@ -4,7 +4,7 @@ import DropdownPanel from './dropdown-panel' // eslint-disable-line
export
const
StackPanel
=
({
calldata
})
=>
{
return
(
<
div
id=
'stackpanel'
>
<
DropdownPanel
dropdownName=
'Stack'
calldata=
{
calldata
||
{}
}
/>
<
DropdownPanel
bodyStyle=
{
{
fontFamily
:
'monospace'
}
}
dropdownName=
'Stack'
calldata=
{
calldata
||
{}
}
/>
</
div
>
)
}
...
...
libs/remix-ui/debugger-ui/src/types/index.ts
View file @
676837b3
...
...
@@ -27,7 +27,9 @@ export interface DropdownPanelProps {
registerEvent
?:
Function
,
triggerEvent
?:
Function
,
loadMoreEvent
?:
string
,
loadMoreCompletedEvent
?:
string
loadMoreCompletedEvent
?:
string
,
bodyStyle
?:
React
.
CSSProperties
headStyle
?:
React
.
CSSProperties
}
export
type
FormatSelfFunc
=
(
key
:
string
|
number
,
data
:
ExtractData
)
=>
JSX
.
Element
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