-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #241 from 4201VitruvianBots/240-repository-cleanup
240 repository cleanup
- Loading branch information
Showing
94 changed files
with
3,102 additions
and
2,089 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
IMAGE_NAME=scouting-database | ||
CONTAINER_NAME=LAR-quals | ||
CONTAINER_NAME=offseason_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,27 @@ | ||
import { RobotPosition, SuperPosition } from "requests"; | ||
import PositionCell from "./PositionCell"; | ||
import { RobotPosition, SuperPosition } from 'requests'; | ||
import PositionCell from './PositionCell'; | ||
|
||
|
||
function MatchRow ({matchNumber, scouters} : {matchNumber:string, scouters:Record<RobotPosition, {schedule: number, real:number[]}> & Record<SuperPosition, boolean>}){ | ||
return( | ||
function MatchRow({ | ||
matchNumber, | ||
scouters, | ||
}: { | ||
matchNumber: string; | ||
scouters: Record<RobotPosition, { schedule: number; real: number[] }> & | ||
Record<SuperPosition, boolean>; | ||
}) { | ||
return ( | ||
<tr> | ||
<th> | ||
{matchNumber} | ||
</th> | ||
<PositionCell scouter={scouters.red_1}/> | ||
<PositionCell scouter={scouters.red_2}/> | ||
<PositionCell scouter={scouters.red_3}/> | ||
<PositionCell scouter={scouters.red_ss}/> | ||
<PositionCell scouter={scouters.blue_1}/> | ||
<PositionCell scouter={scouters.blue_2}/> | ||
<PositionCell scouter={scouters.blue_3}/> | ||
<PositionCell scouter={scouters.blue_ss}/> | ||
<th>{matchNumber}</th> | ||
<PositionCell scouter={scouters.red_1} /> | ||
<PositionCell scouter={scouters.red_2} /> | ||
<PositionCell scouter={scouters.red_3} /> | ||
<PositionCell scouter={scouters.red_ss} /> | ||
<PositionCell scouter={scouters.blue_1} /> | ||
<PositionCell scouter={scouters.blue_2} /> | ||
<PositionCell scouter={scouters.blue_3} /> | ||
<PositionCell scouter={scouters.blue_ss} /> | ||
</tr> | ||
) | ||
); | ||
} | ||
|
||
export default MatchRow | ||
export default MatchRow; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
import { StatusRecieve } from "requests" | ||
import MatchRow from "./MatchRow" | ||
import { StatusRecieve } from 'requests'; | ||
import MatchRow from './MatchRow'; | ||
|
||
|
||
function MatchTable({matches}:{matches : StatusRecieve['matches']}) { | ||
|
||
return( | ||
<table className="match-status overflow-auto h-72"> | ||
<thead><tr> | ||
<th>Match</th> | ||
<th className="status-red col-span-1">Red 1</th> | ||
<th className="status-red col-span-1">Red 2</th> | ||
<th className="status-red col-span-1">Red 3</th> | ||
<th className="status-red col-span-1">Red SS</th> | ||
<th className="status-blue col-span-1">Blue 1</th> | ||
<th className="status-blue col-span-1">Blue 2</th> | ||
<th className="status-blue col-span-1">Blue 3</th> | ||
<th className="status-blue col-span-1">Blue SS</th> | ||
</tr></thead> | ||
<tbody> | ||
{Object.entries(matches).map(([matchNumber, scouters]) => <MatchRow matchNumber={matchNumber} scouters={scouters}/>)} | ||
</tbody> | ||
</table> | ||
) | ||
function MatchTable({ matches }: { matches: StatusRecieve['matches'] }) { | ||
return ( | ||
<table className='match-status h-72 overflow-auto'> | ||
<thead> | ||
<tr> | ||
<th>Match</th> | ||
<th className='status-red col-span-1'>Red 1</th> | ||
<th className='status-red col-span-1'>Red 2</th> | ||
<th className='status-red col-span-1'>Red 3</th> | ||
<th className='status-red col-span-1'>Red SS</th> | ||
<th className='status-blue col-span-1'>Blue 1</th> | ||
<th className='status-blue col-span-1'>Blue 2</th> | ||
<th className='status-blue col-span-1'>Blue 3</th> | ||
<th className='status-blue col-span-1'>Blue SS</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{Object.entries(matches).map(([matchNumber, scouters]) => ( | ||
<MatchRow matchNumber={matchNumber} scouters={scouters} /> | ||
))} | ||
</tbody> | ||
</table> | ||
); | ||
} | ||
|
||
export {MatchTable} | ||
export { MatchTable }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
import { MaterialSymbol } from "react-material-symbols" | ||
import { MaterialSymbol } from 'react-material-symbols'; | ||
|
||
function PositionCell ({scouter}:{scouter:{schedule: number, real:number[]} | boolean }){ | ||
const isBoolean = typeof scouter==='boolean' | ||
function PositionCell({ | ||
scouter, | ||
}: { | ||
scouter: { schedule: number; real: number[] } | boolean; | ||
}) { | ||
const isBoolean = typeof scouter === 'boolean'; | ||
return ( | ||
<td className={`border-2 border-slate-700 text-center w-auto ${(isBoolean? scouter: scouter.real.length > 0)? 'bg-amber-400': ''}`}>{ | ||
isBoolean | ||
?scouter&&<MaterialSymbol icon='check'/> | ||
:scouter.real.length===0?scouter.schedule | ||
:scouter.real.length===1?scouter.real[0] | ||
:<MaterialSymbol icon="warning"/>} | ||
<td | ||
className={`w-auto border-2 border-slate-700 text-center ${(isBoolean ? scouter : scouter.real.length > 0) ? 'bg-amber-400' : ''}`}> | ||
{isBoolean ? ( | ||
scouter && <MaterialSymbol icon='check' /> | ||
) : scouter.real.length === 0 ? ( | ||
scouter.schedule | ||
) : scouter.real.length === 1 ? ( | ||
scouter.real[0] | ||
) : ( | ||
<MaterialSymbol icon='warning' /> | ||
)} | ||
</td> | ||
) | ||
); | ||
} | ||
export default PositionCell | ||
export default PositionCell; |
Oops, something went wrong.