Skip to content

Commit

Permalink
fix: formating
Browse files Browse the repository at this point in the history
  • Loading branch information
awwpotato committed Nov 9, 2024
1 parent 4105ff5 commit a9571e0
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 37 deletions.
58 changes: 29 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{
"name": "floatingchickens",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write ."
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.1",
"@sveltejs/kit": "^1.30.4",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-svelte": "^2.44.1",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.1",
"svelte": "^5.0.0-next.272",
"svelte-check": "^3.8.6",
"tslib": "^2.7.0",
"typescript": "^5.6.3",
"vite": "^4.5.5"
},
"type": "module"
"name": "floatingchickens",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write ."
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.1",
"@sveltejs/kit": "^1.30.4",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-svelte": "^2.44.1",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.1",
"svelte": "^5.0.0-next.272",
"svelte-check": "^3.8.6",
"tslib": "^2.7.0",
"typescript": "^5.6.3",
"vite": "^4.5.5"
},
"type": "module"
}
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
3 changes: 2 additions & 1 deletion src/lib/components/SuccessFail.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
let { complete, cancel }: { complete: (success: boolean) => void; cancel: () => void } = $props();
let { complete, cancel }: { complete: (success: boolean) => void; cancel: () => void } =
$props();
</script>

<div
Expand Down
16 changes: 10 additions & 6 deletions src/routes/scout/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import type { AutoInputState, TeamMatch, TeleActionData, TeleAction } from '$lib/types';
import SuccessFail from '$lib/components/SuccessFail.svelte';
import Timeline from '$lib/components/Timeline.svelte';
import Timeline from '$lib/components/Timeline.svelte';
let actionState: AutoInputState = $state('None');
const intake_piece = () => (actionState = actionState === 'None' ? 'Intake' : actionState);
Expand All @@ -28,7 +28,7 @@
tele_actions: []
});
let actions: ActionData[] = $state([]);
let actions: ActionData[] = $state([]);
let timelineExtended = $state(false);
let latestActions: ActionData[] = $state([]);
</script>
Expand All @@ -39,16 +39,20 @@
{/if}
<span class="text-center font-bold pb-2">team {team_key}</span>
<div class="grid gap-2 grid-cols-2 flex-grow">
<button class="bg-zinc-500 p-2 rounded" onclick={() => score_low('Balloon')}> Score </button>
<button class="bg-zinc-500 p-2 rounded" onclick={() => (actionState = 'Intake')}>Intake</button>
<button class="bg-zinc-500 p-2 rounded" onclick={() => score_low('Balloon')}>
Score
</button>
<button class="bg-zinc-500 p-2 rounded" onclick={() => (actionState = 'Intake')}
>Intake</button
>
<button class="bg-zinc-500 p-2 rounded col-span-2"> Timeline </button>
<button
class="bg-btn_grey w-80 p-1 rounded border-2 border-outline_gray static"
onclick={() => console.log("todo")}>Add Action</button
onclick={() => console.log('todo')}>Add Action</button
>
<button
class="bg-btn_grey w-80 p-1 rounded border-2 border-outline_gray static"
onclick={() => timelineExtended = !timelineExtended}>Show Timeline</button
onclick={() => (timelineExtended = !timelineExtended)}>Show Timeline</button
>
</div>
<Timeline bind:actions={latestActions} bind:displaying={timelineExtended} />
Expand Down

0 comments on commit a9571e0

Please sign in to comment.