Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/lib/shared/stores/gameKeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const keys = [
"passesByBump",
"passesByLowBar",
"feedingFuelNumber",
"Observations",

//INFO
"robotFunction",
Expand Down
10 changes: 10 additions & 0 deletions src/routes/info/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
let passesByLowBar = $state(false);
let validationError = $state(false);
let animationTrigger = $state(0);
let observations = $state("");
let obsPlaceHolder = $state("e.g. Equipe não veio, partida cancelada, etc.");

async function onSubmit() {
if(teamRole == '' || robotStatus == '' || humanPlayer == '') {
Expand All @@ -32,6 +34,7 @@
"humanPlayer": humanPlayer,
"passesByBump": passesByBump ? 1 : 0,
"passesByLowBar": passesByLowBar ? 1 : 0,
"Observations": observations,
});
goto("/qrcode")
}
Expand Down Expand Up @@ -104,6 +107,13 @@
<div onclick={()=>{passesByLowBar=!passesByLowBar}} class="text-normal flex justify-center items-center grow basis-1 p-3 {passesByLowBar ? 'bg-primary-base text-[#E0E0E0]':''}">Trench</div>
</div>
</div>
<div class="mt-12 container items-center justify-center ">
<div class="w-full flex items-center justify-center bg-primary-base p-1 rounded-t-lg">
<h2 class="text-white text-normal font-medium"> Observações </h2>
</div>
<textarea class="rounded-b-lg h-full w-full border-2 border-gray-500 flex border-b-2 " bind:value={observations} name="observations" id="observations" placeholder= {obsPlaceHolder}></textarea>

</div>

<button onclick={onSubmit} class="w-full btn mt-4 btn-primary hover:bg-primary-base bg-buttons border-buttons">{$_('info.continue_button')}</button>

Expand Down
2 changes: 1 addition & 1 deletion src/routes/teleop/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
return; // User cancelled, don't start the timer
}
}

climbTimeCounting = true;
climbTime = 0;
climb = false; // Reset climb status when restarting
Expand Down