Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pseuco
concurrent-programming-web
Commits
c94d3b36
Commit
c94d3b36
authored
Dec 05, 2022
by
Dominic
Browse files
KB63 was here
parent
ee01451d
Pipeline
#36882
failed with stages
in 4 minutes and 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/ts/ui/fileEdit/fileEditUi/execution/ExecutionManager.scss
View file @
c94d3b36
...
...
@@ -22,6 +22,17 @@
padding
:
4px
20px
4px
0px
;
}
.move-wrap
{
position
:
relative
;
&
.terminate
.skull
{
display
:
inline-block
;
}
.skull
{
display
:
none
;
filter
:
drop-shadow
(
1px
1px
2px
black
);
&
::before
{
content
:
"💀"
;
}
}
>
.no-spill
{
height
:
100%
;
width
:
20px
;
...
...
src/ts/ui/fileEdit/fileEditUi/execution/ExecutionManager.tsx
View file @
c94d3b36
...
...
@@ -198,10 +198,12 @@ export const ExecutionManager: React.FC<{ initializedDataAuthorityData: Initiali
const
gradientColors
=
containedColors
.
map
((
c
,
index
)
=>
`
${
c
}
${(
index
)
*
step
}
%
${(
index
+
1
)
*
step
}
%`
).
join
(
"
,
"
);
const
gradientString
=
`linear-gradient(to bottom,
${
gradientColors
}
)`
;
const
futureMove
=
index
>=
executionContext
.
state
.
numAliveMoves
;
return
[<
div
key
=
{
index
}
className
=
"move-wrap"
>
const
classNames
=
"
move-wrap
"
+
(
move
.
transition
.
extensions
[
"
plusplus
"
]?.[
"
type
"
]
===
"
terminate
"
?
"
terminate
"
:
""
);
return
[<
div
key
=
{
index
}
className
=
{
classNames
}
>
<
div
className
=
{
"
move
"
+
(
futureMove
?
"
future
"
:
""
)
}
style
=
{
{
background
:
gradientString
}
as
React
.
CSSProperties
}
onClick
=
{
()
=>
resetTrace
(
move
)
}
>
<
span
className
=
"label"
>
{
move
.
transition
.
displayName
}
<
span
className
=
"skull"
/>
</
span
>
</
div
>
</
div
>];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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