11<template >
22 <div class =" match-status" >
33 <div >
4- <div
4+ <div
55 :class =" {
6- 'highlight-command': true,
7- 'stop-command': isStop,
8- 'halt-command': isHalt,
9- 'robot-substitution-blue': isRobotSubstitutionBlue,
10- 'robot-substitution-yellow': isRobotSubstitutionYellow,
11- 'robot-substitution-both': isRobotSubstitutionBoth
6+ 'highlight-command': true,
7+ 'stop-command': isStop,
8+ 'halt-command': isHalt,
9+ 'robot-substitution-blue': isRobotSubstitutionBlue,
10+ 'robot-substitution-yellow': isRobotSubstitutionYellow,
11+ 'robot-substitution-both': isRobotSubstitutionBoth,
1212 }"
1313 >
1414 <div class =" stage" >{{ stage }}</div >
1515
1616 <span class =" score" >
17- {{ refereeStore.refereeMsg.yellow?.score || 0 }} : {{ refereeStore.refereeMsg.blue?.score || 0 }}
17+ {{ refereeStore.refereeMsg.yellow?.score || 0 }} :
18+ {{ refereeStore.refereeMsg.blue?.score || 0 }}
1819 </span >
1920
20- <div
21- class =" command"
21+ <div
22+ class =" command"
2223 :class =" { 'team-yellow': commandForYellow, 'team-blue': commandForBlue }"
2324 >
2425 {{ gameState }}
2526 <span v-if =" isBallPlacement && remainingTime >= 0" >
2627 ({{ formatDuration(Number(remainingTime)) }})
2728 </span >
28- <span v-if =" isTimeout" >
29- ({{ formatDuration(timeoutTime) }})
30- </span >
29+ <span v-if =" isTimeout" > ({{ formatDuration(timeoutTime) }}) </span >
3130 </div >
3231 </div >
3332
34- <hr class =" separator" />
33+ <hr class =" separator" />
3534
3635 <PowerPlay />
3736 <StatusMessage />
38-
3937 </div >
40- <div
38+ <div
4139 class =" time-container"
4240 :class =" { 'time-positive': stageTimeLeft >= 0, 'time-negative': stageTimeLeft < 0 }"
4341 >
@@ -97,23 +95,27 @@ const stage = computed(() => {
9795
9896const gameState = computed (() => {
9997 if (isRobotSubstitutionAny .value ) {
100- return " Robot Substitution"
98+ return ' Robot Substitution'
10199 }
102100 return mapCommandToText (refereeStore .refereeMsg .command )
103101})
104102
105103const isBallPlacement = computed (() => {
106- return refereeStore .refereeMsg .command === Referee_Command .BALL_PLACEMENT_BLUE ||
107- refereeStore .refereeMsg .command === Referee_Command .BALL_PLACEMENT_YELLOW
104+ return (
105+ refereeStore .refereeMsg .command === Referee_Command .BALL_PLACEMENT_BLUE ||
106+ refereeStore .refereeMsg .command === Referee_Command .BALL_PLACEMENT_YELLOW
107+ )
108108})
109109
110110const remainingTime = computed (() => {
111111 return refereeStore .refereeMsg .currentActionTimeRemaining || 0n
112112})
113113
114114const isTimeout = computed (() => {
115- return refereeStore .refereeMsg .command === Referee_Command .TIMEOUT_BLUE ||
116- refereeStore .refereeMsg .command === Referee_Command .TIMEOUT_YELLOW
115+ return (
116+ refereeStore .refereeMsg .command === Referee_Command .TIMEOUT_BLUE ||
117+ refereeStore .refereeMsg .command === Referee_Command .TIMEOUT_YELLOW
118+ )
117119})
118120
119121const timeoutTime = computed (() => {
@@ -204,17 +206,17 @@ const stageTimeLeft = computed(() => {
204206
205207.highlight-command {
206208 transition : background-color 500ms ease ;
207- border-radius : .5em ;
209+ border-radius : 0 .5em ;
208210 padding : 0.2em 0.1em 0.1em ;
209211 margin-top : 0.1em ;
210212}
211213
212214.highlight-command.stop-command {
213- background-color : #FF7000
215+ background-color : #ff7000 ;
214216}
215217
216218.highlight-command.halt-command {
217- background-color : #EE0022 ;
219+ background-color : #ee0022 ;
218220}
219221
220222.highlight-command.robot-substitution-blue {
@@ -231,4 +233,4 @@ const stageTimeLeft = computed(() => {
231233 background-image : linear-gradient (to right , #fff145 0% , #779fff 100% );
232234 color : #353535 ;
233235}
234- </style >
236+ </style >
0 commit comments