Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spot-web-app
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Spot
spot-web-app
Commits
d8edb07f
Commit
d8edb07f
authored
Oct 04, 2018
by
Alexandre Duret-Lutz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better presentation of unabbreviation otions
parent
9f2868f2
Pipeline
#4000
passed with stage
in 1 minute and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
19 deletions
+34
-19
client/src/LtlApp.js
client/src/LtlApp.js
+34
-19
No files found.
client/src/LtlApp.js
View file @
d8edb07f
...
...
@@ -140,16 +140,17 @@ const styles = theme => ({
color
:
theme
.
palette
.
common
.
white
}
},
unabbrev
:
{
flexDirection
:
"
row
"
,
flexWrap
:
"
wrap
"
},
unabbrevboxroot
:
{
marginRight
:
"
10px
"
,
marginRight
:
"
16px
"
,
marginBottom
:
"
-8px
"
,
marginTop
:
"
-8px
"
},
unabbrevboxlabel
:
{
marginLeft
:
"
-10px
"
,
},
unabbrevlabel
:
{
...
theme
.
typography
.
body1
,
paddingLeft
:
"
8px
"
,
paddingRight
:
"
10px
"
marginLeft
:
"
-8px
"
},
parseerror
:
{
color
:
theme
.
palette
.
error
.
main
...
...
@@ -174,8 +175,8 @@ const styles = theme => ({
},
menu
:
{},
versions
:
{
float
:
"
right
"
,
marginTop
:
"
8px
"
float
:
"
right
"
,
marginTop
:
"
8px
"
},
vendiag
:
{
float
:
"
right
"
...
...
@@ -581,12 +582,14 @@ class LtlSimplificationOptions extends React.Component {
}
class
LtlUnabbrevOptions
extends
React
.
Component
{
options
=
{
options
1
=
{
F
:
[
"
F
"
,
"
<>
"
,
"
F
"
],
G
:
[
"
G
"
,
"
[]
"
,
"
G
"
],
R
:
[
"
R
"
,
"
V
"
,
"
R
"
],
M
:
[
"
M
"
,
"
M
"
,
"
M
"
],
W
:
[
"
W
"
,
"
W
"
,
"
W
"
],
W
:
[
"
W
"
,
"
W
"
,
"
W
"
]
};
options2
=
{
i
:
[
"
->
"
,
"
->
"
,
"
i
"
],
e
:
[
"
<->
"
,
"
<->
"
,
"
e
"
],
"
^
"
:
[
"
xor
"
,
"
xor
"
,
"
^
"
]
...
...
@@ -605,20 +608,32 @@ class LtlUnabbrevOptions extends React.Component {
color
=
"
primary
"
/>
}
classes
=
{{
root
:
this
.
props
.
classes
.
unabbrevboxroot
,
label
:
this
.
props
.
classes
.
unabbrevboxlabel
}}
classes
=
{{
root
:
this
.
props
.
classes
.
unabbrevboxroot
,
label
:
this
.
props
.
classes
.
unabbrevboxlabel
}}
label
=
{
<
code
>
{
values
[
1
][
syntaxId
]}
<
/code>
}
/>
);
};
render
()
{
return
(
<
span
>
<
FormLabel
className
=
{
this
.
props
.
classes
.
unabbrevlabel
}
>
Unabbreviate
<
FormControl
component
=
"
fieldset
"
className
=
{[
this
.
props
.
classes
.
borderedgroupprimary
,
this
.
props
.
classes
.
unabbrev
]}
>
<
FormLabel
component
=
"
legend
"
>
{
righthelp
(
"
Unabbreviate
"
,
"
Remove occurrances of selected operators by rewriting them using other operators.
"
)}
<
/FormLabel
>
{
Object
.
entries
(
this
.
options
).
map
(
this
.
form
)}
<
/span
>
<
span
>
{
Object
.
entries
(
this
.
options1
).
map
(
this
.
form
)}
<
/span
>
<
span
>
{
Object
.
entries
(
this
.
options2
).
map
(
this
.
form
)}
<
/span
>
<
/FormControl
>
);
}
}
...
...
@@ -1013,7 +1028,7 @@ class LtlTranslate extends React.Component {
{
res
[
"
edges
"
]
>
1
?
"
s
"
:
""
}.
<
/Typography
>
)}
{
"
note
"
in
res
&&
res
[
"
note
"
].
map
(
(
note
)
=>
<
NoteText
text
=
{
note
}
/>
)
}
{
"
note
"
in
res
&&
res
[
"
note
"
].
map
(
note
=>
<
NoteText
text
=
{
note
}
/>
)
}
{
"
automaton_svg
"
in
res
&&
(
<
SVGInline
className
=
{
this
.
props
.
classes
.
automaton_svg
}
...
...
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