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
486daf4b
Commit
486daf4b
authored
Jul 05, 2021
by
tizah
Committed by
davidzagi93@gmail.com
Sep 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
olved conflicts on package.json dding method to the terminal.ts
parent
7b044213
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
remix-ui-terminal.tsx
libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx
+14
-2
package.json
package.json
+1
-1
No files found.
libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx
View file @
486daf4b
...
@@ -18,7 +18,7 @@ export interface RemixUiTerminalProps {
...
@@ -18,7 +18,7 @@ export interface RemixUiTerminalProps {
export
const
RemixUiTerminal
=
(
props
:
RemixUiTerminalProps
)
=>
{
export
const
RemixUiTerminal
=
(
props
:
RemixUiTerminalProps
)
=>
{
const
[
toggleDownUp
,
setToggleDownUp
]
=
useState
(
'fa-angle-double-down'
)
const
[
toggleDownUp
,
setToggleDownUp
]
=
useState
(
'fa-angle-double-down'
)
const
[
inserted
,
setInserted
]
=
useState
(
false
)
// events
// events
useEffect
(()
=>
{
useEffect
(()
=>
{
// window.addEventListener('resize', function () {
// window.addEventListener('resize', function () {
...
@@ -46,6 +46,16 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -46,6 +46,16 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
}
}
console
.
log
(
props
.
event
,
'event.trigger'
)
console
.
log
(
props
.
event
,
'event.trigger'
)
}
}
const
reattached
=
(
event
)
=>
{
let
el
=
event
.
currentTarget
var
isBottomed
=
el
.
scrollHeight
-
el
.
scrollTop
-
el
.
clientHeight
<
30
if
(
isBottomed
)
{
}
}
return
(
return
(
<
div
>
<
div
>
<
div
className=
"bar"
>
<
div
className=
"bar"
>
...
@@ -91,7 +101,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -91,7 +101,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
"terminal_container"
data
-
id=
"terminalContainer"
>
<
div
className=
"terminal_container"
data
-
id=
"terminalContainer"
>
{
/* onScroll=${throttle(reattach, 10)} onkeydown=${focusinput} */
}
{
/* onScroll=${throttle(reattach, 10)} onkeydown=${focusinput} */
}
{
/* {props.autoCompletePopup.render()} */
}
{
/* {props.autoCompletePopup.render()} */
}
{
console
.
log
({
props
})
}
{
console
.
log
({
props
})
}
...
@@ -103,6 +113,8 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -103,6 +113,8 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
zIndex
:
-1
zIndex
:
-1
}}
></
div
>
}}
></
div
>
<
div
className=
"terminal"
>
<
div
className=
"terminal"
>
<
div
id=
"journal"
className=
"journal"
data
-
id=
"terminalJournal"
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
package.json
View file @
486daf4b
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
"onchange"
:
"onchange apps/remix-ide/build/app.js -- npm-run-all lint"
,
"onchange"
:
"onchange apps/remix-ide/build/app.js -- npm-run-all lint"
,
"remixd"
:
"nx build remixd && nx serve remixd --folder=./apps/remix-ide/contracts --remixide=http://127.0.0.1:8080"
,
"remixd"
:
"nx build remixd && nx serve remixd --folder=./apps/remix-ide/contracts --remixide=http://127.0.0.1:8080"
,
"selenium"
:
"selenium-standalone start"
,
"selenium"
:
"selenium-standalone start"
,
"selenium-install"
:
"selenium-standalone install"
,
"selenium-install"
:
"selenium-standalone install"
,
"sourcemap"
:
"exorcist --root ../ apps/remix-ide/build/app.js.map > apps/remix-ide/build/app.js"
,
"sourcemap"
:
"exorcist --root ../ apps/remix-ide/build/app.js.map > apps/remix-ide/build/app.js"
,
"test-browser"
:
"npm-run-all -lpr selenium make-mock-compiler serve browsertest"
,
"test-browser"
:
"npm-run-all -lpr selenium make-mock-compiler serve browsertest"
,
"watch"
:
"watchify apps/remix-ide/src/index.js -dv -p browserify-reload -o apps/remix-ide/build/app.js --exclude solc"
,
"watch"
:
"watchify apps/remix-ide/src/index.js -dv -p browserify-reload -o apps/remix-ide/build/app.js --exclude solc"
,
...
...
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