Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
rk4718
wacc_26_web_client
Commits
46d886eb
Commit
46d886eb
authored
Mar 13, 2020
by
Raghav Khanna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve display layout and look
parent
7879c0dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
src/App.js
src/App.js
+12
-3
src/view/ButonStrip.js
src/view/ButonStrip.js
+5
-4
No files found.
src/App.js
View file @
46d886eb
...
...
@@ -69,7 +69,7 @@ class App extends React.Component {
test
=
""
;
}
processWaccCode
=
async
(
code
)
=>
{
processWaccCode
=
async
(
code
)
=>
{
let
rsp
=
await
sendWaccCode
(
code
);
let
graph
=
this
.
state
.
graphData
;
if
(
typeof
rsp
.
isError
!==
"
undefined
"
)
{
...
...
@@ -143,7 +143,7 @@ class App extends React.Component {
<
/CardBody
>
<
/Card
>
<
/GridItem
>
<
GridItem
xs
=
{
12
}
sm
=
{
12
}
md
=
{
6
}
>
<
GridItem
xs
=
{
12
}
sm
=
{
12
}
md
=
{
8
}
>
<
Card
>
<
CardBody
>
<
div
style
=
{{
height
:
'
50em
'
}}
>
...
...
@@ -154,12 +154,21 @@ class App extends React.Component {
<
/CardBody
>
<
/Card
>
<
/GridItem
>
<
GridItem
xs
=
{
12
}
sm
=
{
12
}
md
=
{
6
}
>
<
GridItem
xs
=
{
12
}
sm
=
{
12
}
md
=
{
4
}
>
<
Card
>
<
CardBody
>
<
div
style
=
{{
display
:
"
flex
"
,
justifyContent
:
"
center
"
,
alignItems
:
"
center
"
,
height
:
"
50em
"
}}
>
<
Terminal
commandPassThrough
=
{
cmd
=>
{
test
=
cmd
[
0
]
}}
watchConsoleLogging
hideTopBar
allowTabs
=
{
false
}
/
>
<
/div
>
<
/CardBody
>
<
/Card
>
<
/GridItem
>
...
...
src/view/ButonStrip.js
View file @
46d886eb
import
React
from
'
react
'
;
import
Button
from
"
../components/CustomButtons/Button
"
;
class
ButtonStrip
extends
React
.
Component
{
constructor
(
props
)
{
...
...
@@ -8,10 +9,10 @@ class ButtonStrip extends React.Component {
render
()
{
return
(
<
div
>
<
b
utton
onClick
=
{
this
.
props
.
onCompileClick
}
>
▶
<
/
b
utton
>
<
b
utton
onClick
=
{
this
.
props
.
onStepJsClick
}
>
STEP
JS
LINE
<
/
b
utton
>
<
b
utton
onClick
=
{
this
.
props
.
onStepIntoAstClick
}
>
STEP
INTO
AST
NODE
<
/
b
utton
>
<
b
utton
onClick
=
{
this
.
props
.
onStepOverAstClick
}
>
STEP
OVER
AST
NODE
<
/
b
utton
>
<
B
utton
onClick
=
{
this
.
props
.
onCompileClick
}
>
▶
<
/
B
utton
>
<
B
utton
onClick
=
{
this
.
props
.
onStepJsClick
}
>
STEP
JS
LINE
<
/
B
utton
>
<
B
utton
onClick
=
{
this
.
props
.
onStepIntoAstClick
}
>
STEP
INTO
AST
NODE
<
/
B
utton
>
<
B
utton
onClick
=
{
this
.
props
.
onStepOverAstClick
}
>
STEP
OVER
AST
NODE
<
/
B
utton
>
<
/div
>
)
}
...
...
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