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
b8bbe3dd
Commit
b8bbe3dd
authored
Jan 19, 2021
by
yann300
Committed by
Liana Husikyan
Jan 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix rebasing
parent
b9bded4a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
67 deletions
+8
-67
debugger-api.ts
apps/debugger/src/app/debugger-api.ts
+2
-0
debugger-tab.js
apps/remix-ide/src/app/tabs/debugger-tab.js
+4
-0
DebuggerAPI.ts
libs/remix-ui/debugger-ui/src/lib/DebuggerAPI.ts
+0
-66
idebugger-api.ts
libs/remix-ui/debugger-ui/src/lib/idebugger-api.ts
+2
-1
No files found.
apps/debugger/src/app/debugger-api.ts
View file @
b8bbe3dd
...
...
@@ -130,6 +130,8 @@ export const DebuggerApiMixin = (Base) => class extends Base {
this
.
off
(
'editor'
,
'breakpointAdded'
)
this
.
off
(
'editor'
,
'contentChanged'
)
}
showMessage
(
title
:
string
,
body
:
string
)
{}
}
export
class
CompilerAbstract
implements
CompilationOutput
{
// this is a subset of /remix-ide/src/app/compiler/compiler-abstract.js
...
...
apps/remix-ide/src/app/tabs/debugger-tab.js
View file @
b8bbe3dd
...
...
@@ -62,6 +62,10 @@ export class DebuggerTab extends DebuggerApiMixin(ViewPlugin) {
return
this
.
el
}
showMessage
(
title
,
body
)
{
modalDialogCustom
.
alert
(
title
,
body
)
}
renderComponent
()
{
ReactDOM
.
render
(
<
DebuggerUI
debuggerAPI
=
{
this
}
/
>
...
...
libs/remix-ui/debugger-ui/src/lib/DebuggerAPI.ts
deleted
100644 → 0
View file @
b9bded4a
import
type
{
CompilationResult
,
CompilationSource
}
from
'@remix-project/remix-solidity-ts'
export
interface
DebuggerUIProps
{
debuggerAPI
:
DebuggerAPI
}
interface
EditorEvent
{
event
:
{
register
(
eventName
:
'breakpointCleared'
|
'breakpointAdded'
|
'contentChanged'
,
callback
:
(
fileName
:
string
,
row
:
string
|
number
)
=>
void
)
}
}
interface
LineColumnLocation
{
start
:
{
line
:
number
,
column
:
number
},
end
:
{
line
:
number
,
column
:
number
}
}
interface
RawLocation
{
start
:
number
,
length
:
number
}
interface
Sources
{
[
fileName
:
string
]
:
{
content
:
string
}
}
interface
CompilationOutput
{
source
:
{
sources
:
Sources
,
target
:
string
}
data
:
CompilationResult
getSourceName
:
(
id
:
number
)
=>
string
}
interface
Asts
{
[
fileName
:
string
]
:
CompilationSource
// ast
}
interface
TransactionReceipt
{
blockHash
:
string
blockNumber
:
number
transactionHash
:
string
transactionIndex
:
number
from
:
string
to
:
string
contractAddress
:
string
|
null
}
export
interface
DebuggerAPI
{
offsetToLineColumnConverter
:
{
offsetToLineColumn
:
(
sourceLocation
:
RawLocation
,
file
:
number
,
contents
:
Sources
,
asts
:
Asts
)
=>
LineColumnLocation
}
debugHash
:
string
debugHashRequest
:
string
removeHighlights
:
boolean
editor
:
EditorEvent
discardHighlight
:
()
=>
void
highlight
:
(
lineColumnPos
:
LineColumnLocation
,
path
:
string
)
=>
void
fetchContractAndCompile
:
(
address
:
string
,
currentReceipt
:
TransactionReceipt
)
=>
CompilationOutput
getFile
:
(
path
:
string
)
=>
string
setFile
:
(
path
:
string
,
content
:
string
)
=>
void
getDebugWeb3
:
()
=>
any
// returns an instance of web3.js
showMessage
:
(
title
:
string
,
message
:
string
)
=>
void
}
\ No newline at end of file
libs/remix-ui/debugger-ui/src/lib/idebugger-api.ts
View file @
b8bbe3dd
...
...
@@ -63,4 +63,5 @@ export interface IDebuggerApi {
getFile
:
(
path
:
string
)
=>
Promise
<
string
>
setFile
:
(
path
:
string
,
content
:
string
)
=>
Promise
<
void
>
getDebugWeb3
:
()
=>
any
// returns an instance of web3.js
}
showMessage
(
title
:
string
,
body
:
string
):
void
}
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