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
d21de047
Commit
d21de047
authored
Mar 12, 2020
by
Matej Genci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make code editors for JS and ASM read-only
parent
cedfba9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/App.js
src/App.js
+6
-3
No files found.
src/App.js
View file @
d21de047
...
...
@@ -28,7 +28,8 @@ class App extends React.Component {
wacc
:
{
code
:
newCode
,
markers
:
[{
startRow
:
0
,
startCol
:
2
,
endRow
:
0
,
endCol
:
20
,
className
:
'
warning
'
,
type
:
'
text
'
}]
}
},
graphData
:
[{}]
})
}
...
...
@@ -59,11 +60,13 @@ class App extends React.Component {
<
CodeEditor
heading
=
'
JavaScript
'
value
=
{
this
.
state
.
js
.
code
}
markers
=
{
this
.
state
.
js
.
markers
}
/
>
markers
=
{
this
.
state
.
js
.
markers
}
readOnly
=
{
true
}
/
>
<
CodeEditor
heading
=
'
ARM Assembly
'
value
=
{
this
.
state
.
arm
.
code
}
markers
=
{
this
.
state
.
arm
.
markers
}
/
>
markers
=
{
this
.
state
.
arm
.
markers
}
readOnly
=
{
true
}
/
>
<
/div
>
<
div
id
=
"
treeWrapper
"
style
=
{{
width
:
'
50em
'
,
height
:
'
20em
'
,
background
:
'
white
'
}}
>
...
...
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