diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml new file mode 100644 index 00000000..77a938a1 --- /dev/null +++ b/.github/workflows/prettier.yml @@ -0,0 +1,26 @@ +name: prettier.yml +on: + pull_request: + types: + - synchronize + - opened + - reopened + +jobs: + prettier: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "lts/*" + + - name: Install dependencies + run: npm install + + - name: Run Prettier Check + run: npx prettier --check **/*.{ts,tsx,md} diff --git a/apps/scouting/backend/src/beedoogma.json b/apps/scouting/backend/src/beedoogma.json index b6399c7e..8e997f7c 100644 --- a/apps/scouting/backend/src/beedoogma.json +++ b/apps/scouting/backend/src/beedoogma.json @@ -1,134 +1,134 @@ [ - { - "G_Foulist":"0", - "Details":"Details", - "D_ScouterID":"Red 2", - "D_MatchNumber":"15", - "D_TeamNumber":"5534 - Onaway Onabots\n", - "D_Played":"1", - "Autonomous":"Autonomous", - "A_StartingPosition":"Hub", - "A_FuelScored":"9.5", - "A_FuelDelivered":"0", - "A_LeftAZFrom":"", - "A_CollectionZones":"DEPOT", - "A_Climb":"Didn't", - "Teleop":"Teleop", - "T_FuelScored":"85", - "T_FuelDelivered":"0", - "T_DeliveredFrom":"", - "T_CollectionZonesNetrual":"0", - "T_CollectionZonesOpAlliance":"1", - "T_CollectionZonesAllianceZone":"1.5", - "EndGame":"EndGame", - "E_ClimbHeight":"", - "E_ClimbSuccess":"Didn't", - "E_ClimbSide":"", - "General":"General", - "G_DrivingLevel":"2", - "G_DidDefence":"1", - "G_DefenceLevel":"1.5", - "G_CopeWithDefence":"", - "Comp":"Champs" - }, - { - "G_Foulist":"0", - "Details":"Details", - "D_ScouterID":"Red 3", - "D_MatchNumber":"16", - "D_TeamNumber":"1323 - MadTown Robotics\r\n", - "D_Played":"1", - "Autonomous":"Autonomous", - "A_StartingPosition":"LeftTrench", - "A_FuelScored":"32", - "A_FuelDelivered":"0", - "A_LeftAZFrom":"LeftTrench", - "A_CollectionZones":"NEUTRAL", - "A_Climb":"Didn't", - "Teleop":"Teleop", - "T_FuelScored":"150", - "T_FuelDelivered":"35", - "T_DeliveredFrom":"Neutral Zone", - "T_CollectionZonesNetrual":"6", - "T_CollectionZonesOpAlliance":"1", - "T_CollectionZonesAllianceZone":"1", - "EndGame":"EndGame", - "E_ClimbHeight":"", - "E_ClimbSuccess":"Didn't", - "E_ClimbSide":"", - "General":"General", - "G_DrivingLevel":"3", - "G_DidDefence":"0", - "G_DefenceLevel":"", - "G_DefenceType":"", - "G_CopeWithDefence":"3", - "Comp":"Champs" - }, - { - "G_Foulist":"0", - "Details":"Details", - "D_ScouterID":"Blue 1", - "D_MatchNumber":"16", - "D_TeamNumber":"1629 - Garrett Coalition (GaCo)\r\n", - "D_Played":"1", - "Autonomous":"Autonomous", - "A_StartingPosition":"LeftTrench", - "A_FuelScored":"15", - "A_FuelDelivered":"0", - "A_LeftAZFrom":"LeftTrench", - "A_CollectionZones":"NEUTRAL", - "A_Climb":"Didn't", - "Teleop":"Teleop", - "T_FuelScored":"70", - "T_FuelDelivered":"20", - "T_DeliveredFrom":"Neutral Zone", - "T_CollectionZonesNetrual":"2", - "T_CollectionZonesOpAlliance":"2", - "T_CollectionZonesAllianceZone":"2", - "EndGame":"EndGame", - "E_ClimbHeight":"", - "E_ClimbSuccess":"Didn't", - "E_ClimbSide":"", - "General":"General", - "G_DrivingLevel":"3", - "G_DidDefence":"1", - "G_DefenceLevel":"2", - "Comp":"Champs" - }, - { - "Details":"Details", - "D_ScouterID":"Red 1", - "D_MatchNumber":"16", - "D_TeamNumber":"3646 - INTEGRA BAHCESEHIR", - "D_Played":"1", - "Autonomous":"Autonomous", - "A_StartingPosition":"Hub", - "A_FuelScored":"5", - "A_FuelDelivered":"2.5", - "A_LeftAZFrom":"", - "A_CollectionZones":"Didn't collect", - "A_Climb":"Didn't", - "Teleop":"Teleop", - "T_FuelScored":"3.5", - "T_FuelDelivered":"5", - "T_DeliveredFrom":"", - "T_CollectionZonesNetrual":"1", - "T_CollectionZonesOpAlliance":"0.5", - "T_CollectionZonesAllianceZone":"0.5", - "EndGame":"EndGame", - "E_ClimbHeight":"", - "E_ClimbSuccess":"Didn't", - "E_ClimbSide":"", - "General":"General", - "G_DrivingLevel":"2", - "G_DidDefence":"0", - "G_DefenceLevel":"", - "G_DefenceType":"", - "G_wasDefended":"0", - "G_CopeWithDefence":"", - "G_Foulist":"0", - "G_Stuck":"1", - "G_Comments":"Bad auton, choppy driving, stopped halfway in game, Took balls straight from the hub\n""+""Stopped working in the middle of the game ", - "Comp":"Champs" - } -] \ No newline at end of file + { + "G_Foulist": "0", + "Details": "Details", + "D_ScouterID": "Red 2", + "D_MatchNumber": "15", + "D_TeamNumber": "5534 - Onaway Onabots\n", + "D_Played": "1", + "Autonomous": "Autonomous", + "A_StartingPosition": "Hub", + "A_FuelScored": "9.5", + "A_FuelDelivered": "0", + "A_LeftAZFrom": "", + "A_CollectionZones": "DEPOT", + "A_Climb": "Didn't", + "Teleop": "Teleop", + "T_FuelScored": "85", + "T_FuelDelivered": "0", + "T_DeliveredFrom": "", + "T_CollectionZonesNetrual": "0", + "T_CollectionZonesOpAlliance": "1", + "T_CollectionZonesAllianceZone": "1.5", + "EndGame": "EndGame", + "E_ClimbHeight": "", + "E_ClimbSuccess": "Didn't", + "E_ClimbSide": "", + "General": "General", + "G_DrivingLevel": "2", + "G_DidDefence": "1", + "G_DefenceLevel": "1.5", + "G_CopeWithDefence": "", + "Comp": "Champs" + }, + { + "G_Foulist": "0", + "Details": "Details", + "D_ScouterID": "Red 3", + "D_MatchNumber": "16", + "D_TeamNumber": "1323 - MadTown Robotics\r\n", + "D_Played": "1", + "Autonomous": "Autonomous", + "A_StartingPosition": "LeftTrench", + "A_FuelScored": "32", + "A_FuelDelivered": "0", + "A_LeftAZFrom": "LeftTrench", + "A_CollectionZones": "NEUTRAL", + "A_Climb": "Didn't", + "Teleop": "Teleop", + "T_FuelScored": "150", + "T_FuelDelivered": "35", + "T_DeliveredFrom": "Neutral Zone", + "T_CollectionZonesNetrual": "6", + "T_CollectionZonesOpAlliance": "1", + "T_CollectionZonesAllianceZone": "1", + "EndGame": "EndGame", + "E_ClimbHeight": "", + "E_ClimbSuccess": "Didn't", + "E_ClimbSide": "", + "General": "General", + "G_DrivingLevel": "3", + "G_DidDefence": "0", + "G_DefenceLevel": "", + "G_DefenceType": "", + "G_CopeWithDefence": "3", + "Comp": "Champs" + }, + { + "G_Foulist": "0", + "Details": "Details", + "D_ScouterID": "Blue 1", + "D_MatchNumber": "16", + "D_TeamNumber": "1629 - Garrett Coalition (GaCo)\r\n", + "D_Played": "1", + "Autonomous": "Autonomous", + "A_StartingPosition": "LeftTrench", + "A_FuelScored": "15", + "A_FuelDelivered": "0", + "A_LeftAZFrom": "LeftTrench", + "A_CollectionZones": "NEUTRAL", + "A_Climb": "Didn't", + "Teleop": "Teleop", + "T_FuelScored": "70", + "T_FuelDelivered": "20", + "T_DeliveredFrom": "Neutral Zone", + "T_CollectionZonesNetrual": "2", + "T_CollectionZonesOpAlliance": "2", + "T_CollectionZonesAllianceZone": "2", + "EndGame": "EndGame", + "E_ClimbHeight": "", + "E_ClimbSuccess": "Didn't", + "E_ClimbSide": "", + "General": "General", + "G_DrivingLevel": "3", + "G_DidDefence": "1", + "G_DefenceLevel": "2", + "Comp": "Champs" + }, + { + "Details": "Details", + "D_ScouterID": "Red 1", + "D_MatchNumber": "16", + "D_TeamNumber": "3646 - INTEGRA BAHCESEHIR", + "D_Played": "1", + "Autonomous": "Autonomous", + "A_StartingPosition": "Hub", + "A_FuelScored": "5", + "A_FuelDelivered": "2.5", + "A_LeftAZFrom": "", + "A_CollectionZones": "Didn't collect", + "A_Climb": "Didn't", + "Teleop": "Teleop", + "T_FuelScored": "3.5", + "T_FuelDelivered": "5", + "T_DeliveredFrom": "", + "T_CollectionZonesNetrual": "1", + "T_CollectionZonesOpAlliance": "0.5", + "T_CollectionZonesAllianceZone": "0.5", + "EndGame": "EndGame", + "E_ClimbHeight": "", + "E_ClimbSuccess": "Didn't", + "E_ClimbSide": "", + "General": "General", + "G_DrivingLevel": "2", + "G_DidDefence": "0", + "G_DefenceLevel": "", + "G_DefenceType": "", + "G_wasDefended": "0", + "G_CopeWithDefence": "", + "G_Foulist": "0", + "G_Stuck": "1", + "G_Comments": "Bad auton, choppy driving, stopped halfway in game, Took balls straight from the hub\nStopped working in the middle of the game ", + "Comp": "Champs" + } +] diff --git a/apps/training/frontend/src/App.tsx b/apps/training/frontend/src/App.tsx index 0cc1c2a1..ca41c37f 100644 --- a/apps/training/frontend/src/App.tsx +++ b/apps/training/frontend/src/App.tsx @@ -33,4 +33,4 @@ const App: FC = () => { ); }; -export default App; \ No newline at end of file +export default App; diff --git a/packages/video-utils/types.ts b/packages/video-utils/types.ts index 3d42ea6d..759d8661 100644 --- a/packages/video-utils/types.ts +++ b/packages/video-utils/types.ts @@ -1,5 +1,4 @@ //בס"ד -import type React from "react"; export interface VideoPlayerHandle { currentTime: number; @@ -10,4 +9,5 @@ export interface VideoPlayerHandle { } export type VideoSource = - { type: "file"; src: string } | { type: "youtube"; videoId: string }; + | { type: "file"; src: string } + | { type: "youtube"; videoId: string };