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
d71ac840
Commit
d71ac840
authored
Oct 27, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused comments
parent
f1e597d2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
27 deletions
+1
-27
assembly-items.tsx
...mix-ui/debugger-ui/src/lib/vm-debugger/assembly-items.tsx
+0
-10
dropdown-panel.tsx
...mix-ui/debugger-ui/src/lib/vm-debugger/dropdown-panel.tsx
+1
-3
assembly-items.ts
libs/remix-ui/debugger-ui/src/reducers/assembly-items.ts
+0
-14
No files found.
libs/remix-ui/debugger-ui/src/lib/vm-debugger/assembly-items.tsx
View file @
d71ac840
...
...
@@ -5,7 +5,6 @@ import './styles/assembly-items.css'
export
const
AssemblyItems
=
({
registerEvent
})
=>
{
const
[
assemblyItems
,
dispatch
]
=
useReducer
(
reducer
,
initialState
)
const
[
selectedItem
,
setSelectedItem
]
=
useState
(
0
)
// const [index, setIndex] = useState(assemblyItems.opCodes.index)
const
refs
=
useRef
({})
const
asmItemsRef
=
useRef
(
null
)
...
...
@@ -42,15 +41,6 @@ export const AssemblyItems = ({ registerEvent }) => {
}
}
// const handleScroll = () => {
// const codeView = asmItemsRef.current
// if (codeView.scrollTop === 0) {
// dispatch({ type: 'FETCH_PREV_OPCODES', payload: {} })
// codeView.scrollTop = 0
// }
// }
return
(
<
div
className=
"border rounded px-1 mt-1 bg-light"
>
<
div
className=
'dropdownpanel'
>
...
...
libs/remix-ui/debugger-ui/src/lib/vm-debugger/dropdown-panel.tsx
View file @
d71ac840
import
React
,
{
useState
,
useEffect
,
useReducer
}
from
'react'
import
React
,
{
useState
,
useEffect
}
from
'react'
import
{
TreeView
,
TreeViewItem
}
from
'@remix-ui/tree-view'
import
{
DropdownPanelProps
,
ExtractData
,
ExtractFunc
}
from
'../../types'
import
{
CopyToClipboard
}
from
'@remix-ui/clipboard'
import
{
default
as
deepequal
}
from
'deep-equal'
import
{
initialState
,
reducer
}
from
'../../reducers/calldata'
import
'./styles/dropdown-panel.css'
export
const
DropdownPanel
=
(
props
:
DropdownPanelProps
)
=>
{
const
[
data
,
dispatch
]
=
useReducer
(
reducer
,
initialState
)
const
{
dropdownName
,
dropdownMessage
,
calldata
,
header
,
loading
,
extractFunc
,
formatSelfFunc
}
=
props
const
extractDataDefault
:
ExtractFunc
=
(
item
,
parent
?)
=>
{
const
ret
:
ExtractData
=
{}
...
...
libs/remix-ui/debugger-ui/src/reducers/assembly-items.ts
View file @
d71ac840
...
...
@@ -57,20 +57,6 @@ export const reducer = (state = initialState, action: Action) => {
hasError
:
action
.
payload
};
}
// case 'FETCH_PREV_OPCODES': {
// const top = state.top - 10 > 0 ? state.top - 10 : 0
// const display = state.opCodes.code.slice(top, state.bottom)
// return {
// ...state,
// display,
// index: display.findIndex(code => code === state.opCodes.code[state.opCodes.index]),
// top,
// isRequesting: false,
// isSuccessful: true,
// hasError: null
// };
// }
default
:
throw
new
Error
();
}
...
...
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