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
e4e40c72
Commit
e4e40c72
authored
Aug 24, 2021
by
davidzagi93@gmail.com
Browse files
Options
Browse Files
Download
Plain Diff
fixing issues after pulling
parents
e4f31b8d
627341f6
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
71 additions
and
8 deletions
+71
-8
.env
.env
+0
-5
verifyContracts.ts
apps/remix-ide-e2e/src/commands/verifyContracts.ts
+1
-0
index.ts
libs/remix-ui/terminal/src/index.ts
+1
-1
remix-ui-terminal.css
libs/remix-ui/terminal/src/lib/remix-ui-terminal.css
+3
-0
remix-ui-terminal.tsx
libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx
+35
-0
nx.json
nx.json
+2
-0
tsconfig.json
tsconfig.json
+29
-2
No files found.
.env
deleted
100644 → 0
View file @
e4f31b8d
gist_token=<token>
account_passphrase=<passphrase>
account_password=<password>
NODE_OPTIONS=--max-old-space-size=2048
\ No newline at end of file
apps/remix-ide-e2e/src/commands/verifyContracts.ts
View file @
e4e40c72
...
@@ -17,6 +17,7 @@ function verifyContracts (browser: NightwatchBrowser, compiledContractNames: str
...
@@ -17,6 +17,7 @@ function verifyContracts (browser: NightwatchBrowser, compiledContractNames: str
browser
browser
.
clickLaunchIcon
(
'solidity'
)
.
clickLaunchIcon
(
'solidity'
)
.
pause
(
opts
.
wait
)
.
pause
(
opts
.
wait
)
.
pause
(
5000
)
.
waitForElementPresent
(
'*[data-id="compiledContracts"] option'
,
60000
)
.
waitForElementPresent
(
'*[data-id="compiledContracts"] option'
,
60000
)
.
perform
((
done
)
=>
{
.
perform
((
done
)
=>
{
if
(
opts
.
version
)
{
if
(
opts
.
version
)
{
...
...
libs/remix-ui/terminal/src/index.ts
View file @
e4e40c72
export
*
from
'./lib/remix-ui-terminal'
;
export
*
from
'./lib/remix-ui-terminal'
libs/remix-ui/terminal/src/lib/remix-ui-terminal.css
View file @
e4e40c72
...
@@ -287,8 +287,11 @@ element.style {
...
@@ -287,8 +287,11 @@ element.style {
.failed
{
.failed
{
color
:
var
(
--danger
);
color
:
var
(
--danger
);
}
}
<<<<<<<
HEAD
.notavailable
{
.notavailable
{
}
}
=======
>>>>>>>
627341f6a5ea4905e5a0330bcb41dc9aed7b420b
.call
{
.call
{
font-size
:
7px
;
font-size
:
7px
;
border-radius
:
50%
;
border-radius
:
50%
;
...
...
libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx
View file @
e4e40c72
import
React
,
{
useState
,
useEffect
,
useReducer
,
useRef
,
SyntheticEvent
,
MouseEvent
}
from
'react'
// eslint-disable-line
import
React
,
{
useState
,
useEffect
,
useReducer
,
useRef
,
SyntheticEvent
,
MouseEvent
}
from
'react'
// eslint-disable-line
import
{
useKeyPress
}
from
'./custom-hooks/useKeyPress'
// eslint-disable-line
import
{
useKeyPress
}
from
'./custom-hooks/useKeyPress'
// eslint-disable-line
import
{
useWindowResize
}
from
'beautiful-react-hooks'
import
{
useWindowResize
}
from
'beautiful-react-hooks'
<<
<
<<<<
HEAD
import
{
registerCommandAction
,
registerLogScriptRunnerAction
,
registerInfoScriptRunnerAction
,
registerErrorScriptRunnerAction
,
registerWarnScriptRunnerAction
,
registerRemixWelcomeTextAction
,
listenOnNetworkAction
,
initListeningOnNetwork
}
from
'
.
/
actions
/
terminalAction
'
import
{
registerCommandAction
,
registerLogScriptRunnerAction
,
registerInfoScriptRunnerAction
,
registerErrorScriptRunnerAction
,
registerWarnScriptRunnerAction
,
registerRemixWelcomeTextAction
,
listenOnNetworkAction
,
initListeningOnNetwork
}
from
'
.
/
actions
/
terminalAction
'
import
{
initialState
,
registerCommandReducer
,
registerFilterReducer
,
addCommandHistoryReducer
,
registerScriptRunnerReducer
,
remixWelcomeTextReducer
}
from
'
.
/
reducers
/
terminalReducer
'
import
{
initialState
,
registerCommandReducer
,
registerFilterReducer
,
addCommandHistoryReducer
,
registerScriptRunnerReducer
,
remixWelcomeTextReducer
}
from
'
.
/
reducers
/
terminalReducer
'
=======
import
{
registerCommandAction
,
registerLogScriptRunnerAction
,
registerInfoScriptRunnerAction
,
registerErrorScriptRunnerAction
,
registerWarnScriptRunnerAction
,
listenOnNetworkAction
,
initListeningOnNetwork
}
from
'
.
/
actions
/
terminalAction
'
import
{
initialState
,
registerCommandReducer
,
addCommandHistoryReducer
,
registerScriptRunnerReducer
,
remixWelcomeTextReducer
}
from
'
.
/
reducers
/
terminalReducer
'
>
>>>>>>
627341f6a5ea4905e5a0330bcb41dc9aed7b420b
import
{
remixWelcome
}
from './reducers/remixWelcom' // eslint-disable-line
import
{
remixWelcome
}
from './reducers/remixWelcom' // eslint-disable-line
import
{
getKeyOf
,
getValueOf
,
Objectfilter
,
matched
}
from './utils/utils'
import
{
getKeyOf
,
getValueOf
,
Objectfilter
,
matched
}
from './utils/utils'
import
{
allCommands
,
allPrograms
}
from './commands' // eslint-disable-line
import
{
allCommands
,
allPrograms
}
from './commands' // eslint-disable-line
...
@@ -44,8 +49,12 @@ export interface RemixUiTerminalProps {
...
@@ -44,8 +49,12 @@ export interface RemixUiTerminalProps {
registry
:
any
,
registry
:
any
,
commands
:
any
,
commands
:
any
,
txListener
:
any
,
txListener
:
any
,
<
<<<<<<
HEAD
eventsDecoder
:
any
,
eventsDecoder
:
any
,
logHtml
:
any
logHtml
:
any
=======
eventsDecoder
:
any
>
>>>>>>
627341f6a5ea4905e5a0330bcb41dc9aed7b420b
}
}
export interface ClipboardEvent
<
T
=
Element
>
extends SyntheticEvent
<
T
,
any
>
{
export interface ClipboardEvent
<
T
=
Element
>
extends SyntheticEvent
<
T
,
any
>
{
...
@@ -115,6 +124,10 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -115,6 +124,10 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
registerInfoScriptRunnerAction
(
props
.
thisState
,
'info'
,
newstate
.
commands
,
scriptRunnerDispatch
)
registerInfoScriptRunnerAction
(
props
.
thisState
,
'info'
,
newstate
.
commands
,
scriptRunnerDispatch
)
registerWarnScriptRunnerAction
(
props
.
thisState
,
'warn'
,
newstate
.
commands
,
scriptRunnerDispatch
)
registerWarnScriptRunnerAction
(
props
.
thisState
,
'warn'
,
newstate
.
commands
,
scriptRunnerDispatch
)
registerErrorScriptRunnerAction
(
props
.
thisState
,
'error'
,
newstate
.
commands
,
scriptRunnerDispatch
)
registerErrorScriptRunnerAction
(
props
.
thisState
,
'error'
,
newstate
.
commands
,
scriptRunnerDispatch
)
<<
<
<<<<
HEAD
=======
>
>>>>>>
627341f6a5ea4905e5a0330bcb41dc9aed7b420b
registerCommandAction('html', _blocksRenderer('html'),
{
activate
:
true
}
, dispatch)
registerCommandAction('html', _blocksRenderer('html'),
{
activate
:
true
}
, dispatch)
registerCommandAction('log', _blocksRenderer('log'),
{
activate
:
true
}
, dispatch)
registerCommandAction('log', _blocksRenderer('log'),
{
activate
:
true
}
, dispatch)
registerCommandAction('info', _blocksRenderer('info'),
{
activate
:
true
}
, dispatch)
registerCommandAction('info', _blocksRenderer('info'),
{
activate
:
true
}
, dispatch)
...
@@ -123,13 +136,20 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -123,13 +136,20 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
registerCommandAction('script', function execute (args, scopedCommands, append)
{
registerCommandAction('script', function execute (args, scopedCommands, append)
{
var
script
=
String
(
args
[
0
])
var
script
=
String
(
args
[
0
])
<<
<
<<<<
HEAD
console
.
log
({
script
},
'
script
')
console
.
log
({
script
},
'
script
')
=======
>
>>>>>>
627341f6a5ea4905e5a0330bcb41dc9aed7b420b
_shell(script, scopedCommands, function (error, output)
{
_shell(script, scopedCommands, function (error, output)
{
if
(
error
)
scriptRunnerDispatch
({
type
:
'error'
,
payload
:
{
message
:
error
}
})
if
(
error
)
scriptRunnerDispatch
({
type
:
'error'
,
payload
:
{
message
:
error
}
})
if
(
output
)
scriptRunnerDispatch
({
type
:
'script'
,
payload
:
{
message
:
'5'
}
})
if
(
output
)
scriptRunnerDispatch
({
type
:
'script'
,
payload
:
{
message
:
'5'
}
})
}
)
}
)
}
,
{
activate
:
true
}
, dispatch)
}
,
{
activate
:
true
}
, dispatch)
<
<<<<<<
HEAD
},
[
props
.
thisState
.
autoCompletePopup
,
autoCompletState
.
text
,
props
.
logHtml
])
},
[
props
.
thisState
.
autoCompletePopup
,
autoCompletState
.
text
,
props
.
logHtml
])
=======
}
, [props.thisState.autoCompletePopup, autoCompletState.text])
>>>>>>>
627341f6a5ea4905e5a0330bcb41dc9aed7b420b
useEffect(() =
>
{
useEffect(() =
>
{
scrollToBottom
()
scrollToBottom
()
...
@@ -820,7 +840,11 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -820,7 +840,11 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
const
handlePaste
=
()
=>
{
const
handlePaste
=
()
=>
{
setPaste
(
true
)
setPaste
(
true
)
<<
<
<<<<
HEAD
setAutoCompleteState
(
prevState
=
>
(
{
...
prevState
,
activeSuggestion
:
0
,
showSuggestions
:
false
}
))
setAutoCompleteState
(
prevState
=
>
(
{
...
prevState
,
activeSuggestion
:
0
,
showSuggestions
:
false
}
))
=======
setAutoCompleteState(prevState =
>
(
{
...
prevState
,
activeSuggestion
:
0
,
showSuggestions
:
false
}
))
>>>>>>>
627341f6a5ea4905e5a0330bcb41dc9aed7b420b
}
}
return (
return (
...
@@ -876,15 +900,26 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -876,15 +900,26 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
{
{
handleAutoComplete
()
handleAutoComplete
()
}
}
<
<<<<<<
HEAD
<
div
data
-
id=
'terminalContainerDisplay'
style
=
{{
<
div
data
-
id=
'terminalContainerDisplay'
style
=
{{
position
:
'
absolute
',
position
:
'
absolute
',
height
:
'100%',
height
:
'100%',
width
:
'100%',
width
:
'100%',
=======
<
div
data
-
id=
"terminalContainerDisplay"
style
=
{{
position
:
'
absolute
',
height
:
'100',
width
:
'100',
>
>>>>>>
627341f6a5ea4905e5a0330bcb41dc9aed7b420b
opacity: '0.1',
opacity: '0.1',
zIndex: -1
zIndex: -1
}}
>
</
div
>
}}
>
</
div
>
<
div
className=
"terminal"
>
<
div
className=
"terminal"
>
<
<<<<<<
HEAD
<
div
id=
'journal'
className=
'journal'
data
-
id=
'terminalJournal'
>
<
div
id=
'journal'
className=
'journal'
data
-
id=
'terminalJournal'
>
=======
<
div
id=
"journal"
className=
"journal"
data
-
id=
"terminalJournal"
>
>>>>>>>
627341f6a5ea4905e5a0330bcb41dc9aed7b420b
{
!
clearConsole
&&
<
TerminalWelcomeMessage
packageJson=
{
props
.
version
}
/>
}
{
!
clearConsole
&&
<
TerminalWelcomeMessage
packageJson=
{
props
.
version
}
/>
}
{
newstate
.
journalBlocks
&&
newstate
.
journalBlocks
.
map
((
x
,
index
)
=>
{
{
newstate
.
journalBlocks
&&
newstate
.
journalBlocks
.
map
((
x
,
index
)
=>
{
if
(
x
.
name
===
'emptyBlock'
)
{
if
(
x
.
name
===
'emptyBlock'
)
{
...
...
nx.json
View file @
e4e40c72
...
@@ -106,6 +106,8 @@
...
@@ -106,6 +106,8 @@
"remix-ui-checkbox"
:
{
"remix-ui-checkbox"
:
{
"tags"
:
[]
"tags"
:
[]
},
},
"remix-ui-terminal"
:
{
},
"remix-core-plugin"
:
{
"remix-core-plugin"
:
{
"tags"
:
[]
"tags"
:
[]
},
},
...
...
tsconfig.json
View file @
e4e40c72
...
@@ -14,8 +14,35 @@
...
@@ -14,8 +14,35 @@
"skipLibCheck"
:
true
,
"skipLibCheck"
:
true
,
"skipDefaultLibCheck"
:
true
,
"skipDefaultLibCheck"
:
true
,
"baseUrl"
:
"."
,
"baseUrl"
:
"."
,
"paths"
:
{},
"paths"
:
{
"allowSyntheticDefaultImports"
:
true
"@remix-project/remix-analyzer"
:
[
"dist/libs/remix-analyzer/index.js"
],
"@remix-project/remix-astwalker"
:
[
"dist/libs/remix-astwalker/index.js"
],
"@remix-project/remix-debug"
:
[
"dist/libs/remix-debug/src/index.js"
],
"@remix-project/remix-lib"
:
[
"dist/libs/remix-lib/src/index.js"
],
"@remix-project/remix-simulator"
:
[
"dist/libs/remix-simulator/src/index.js"
],
"@remix-project/remix-solidity"
:
[
"dist/libs/remix-solidity/index.js"
],
"@remix-project/remix-tests"
:
[
"dist/libs/remix-tests/src/index.js"
],
"@remix-project/remix-url-resolver"
:
[
"dist/libs/remix-url-resolver/index.js"
],
"@remixproject/debugger-plugin"
:
[
"apps/debugger/src/index.ts"
],
"@remix-project/remixd"
:
[
"dist/libs/remixd/index.js"
],
"@remix-ui/tree-view"
:
[
"libs/remix-ui/tree-view/src/index.ts"
],
"@remix-ui/debugger-ui"
:
[
"libs/remix-ui/debugger-ui/src/index.ts"
],
"@remix-ui/utils"
:
[
"libs/remix-ui/utils/src/index.ts"
],
"@remix-ui/clipboard"
:
[
"libs/remix-ui/clipboard/src/index.ts"
],
"@remix-project/remix-solidity-ts"
:
[
"libs/remix-solidity/src/index.ts"
],
"@remix-ui/modal-dialog"
:
[
"libs/remix-ui/modal-dialog/src/index.ts"
],
"@remix-ui/toaster"
:
[
"libs/remix-ui/toaster/src/index.ts"
],
"@remix-ui/file-explorer"
:
[
"libs/remix-ui/file-explorer/src/index.ts"
],
"@remix-ui/workspace"
:
[
"libs/remix-ui/workspace/src/index.ts"
],
"@remix-ui/static-analyser"
:
[
"libs/remix-ui/static-analyser/src/index.ts"
],
"@remix-ui/checkbox"
:
[
"libs/remix-ui/checkbox/src/index.ts"
],
"@remix-ui/terminal"
:
[
"libs/remix-ui/terminal/src/index.ts"
],
"@remix-ui/settings"
:
[
"libs/remix-ui/settings/src/index.ts"
],
"@remix-project/core-plugin"
:
[
"libs/remix-core-plugin/src/index.ts"
],
"@remix-ui/solidity-compiler"
:
[
"libs/remix-ui/solidity-compiler/src/index.ts"
],
"@remix-ui/publish-to-storage"
:
[
"libs/remix-ui/publish-to-storage/src/index.ts"
],
"@remix-ui/renderer"
:
[
"libs/remix-ui/renderer/src/index.ts"
]
}
},
},
"exclude"
:
[
"node_modules"
,
"tmp"
]
"exclude"
:
[
"node_modules"
,
"tmp"
]
}
}
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