From b6fb7dff13e23e55d753beaf565f2246f9eecd22 Mon Sep 17 00:00:00 2001 From: awwpotato <153149335+awwpotato@users.noreply.github.com> Date: Mon, 4 Nov 2024 15:47:25 -0800 Subject: [PATCH 1/4] format on push/pull request --- .github/workflows/format.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/format.yml diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 0000000..5620938 --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,21 @@ +name: Format + +on: + push: + pull_request: + +jobs: + format: + runs-on: ubuntu-latest + name: Format Files + steps: + - uses: actions/checkout@v3 + - uses: oven-sh/setup-bun@v2 + - name: Prettier + run: bun run format + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: stefanzweifel/git-auto-commit-action@v4 + if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} + with: + commit_message: "style: format files" From a39d199d73649e7c8d1e3238b5ec3a8791c23550 Mon Sep 17 00:00:00 2001 From: awwpotato Date: Mon, 4 Nov 2024 15:48:33 -0800 Subject: [PATCH 2/4] fix: bun install :3 --- .github/workflows/format.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 5620938..130c1b1 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -11,11 +11,12 @@ jobs: steps: - uses: actions/checkout@v3 - uses: oven-sh/setup-bun@v2 + - run: bun install - name: Prettier - run: bun run format + run: bun run format ./src env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} - uses: stefanzweifel/git-auto-commit-action@v4 if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} with: - commit_message: "style: format files" + commit_message: 'style: format files' From 787fd129c0de82b2cd246481b21ecb96e5a3c40f Mon Sep 17 00:00:00 2001 From: awwpotato Date: Mon, 4 Nov 2024 23:59:44 +0000 Subject: [PATCH 3/4] style: format files --- README.md | 1 + bun.lockb | Bin 135231 -> 135231 bytes postcss.config.js | 10 ++++---- src/app.html | 20 ++++++++-------- src/lib/components/Action.svelte | 12 +++++++--- src/lib/components/Timeline.svelte | 2 +- src/lib/types.ts | 24 +++++++++---------- src/routes/+layout.svelte | 8 +++---- src/routes/+page.svelte | 8 ++----- src/routes/scout/+page.svelte | 8 ++++--- tailwind.config.js | 36 ++++++++++++++--------------- 11 files changed, 67 insertions(+), 62 deletions(-) diff --git a/README.md b/README.md index 3620165..337d398 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # inflatedchickens ## usage + ```bash # install dependencies bun i diff --git a/bun.lockb b/bun.lockb index 1cffc2ef16fac1d58fa2c713a32841f0f8f7049d..1e6848d8cadde3a7c1e13459388e0f145ed6555e 100755 GIT binary patch delta 79 zcmdnLfMfpxj)pCa_tO~-r$0z%lr%GDU;rWp1qOzO6KBr7k_w2^<6w-l&@(jBGhzq^ Z%18ob(r(&s3e~lE3YXcgpTQ`w0szx~7SsR$ delta 79 zcmdnLfMfpxj)pCa_tO~-rawq$lr%G9U@&H2U{GLSXgG1^+$*VoI6V%=I14>PLp=kA aV4#d7P$uoB{iaY|i>Gjz?fMyv0xJO0gBHvH diff --git a/postcss.config.js b/postcss.config.js index 2e7af2b..0f77216 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,6 +1,6 @@ export default { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -} + plugins: { + tailwindcss: {}, + autoprefixer: {} + } +}; diff --git a/src/app.html b/src/app.html index 165a387..00b6bae 100644 --- a/src/app.html +++ b/src/app.html @@ -1,12 +1,12 @@ - + - - - - - %sveltekit.head% - - -
%sveltekit.body%
- + + + + + %sveltekit.head% + + +
%sveltekit.body%
+ diff --git a/src/lib/components/Action.svelte b/src/lib/components/Action.svelte index 647d543..53dcd92 100644 --- a/src/lib/components/Action.svelte +++ b/src/lib/components/Action.svelte @@ -1,11 +1,17 @@ - diff --git a/src/lib/components/Timeline.svelte b/src/lib/components/Timeline.svelte index 820141d..9d6700a 100644 --- a/src/lib/components/Timeline.svelte +++ b/src/lib/components/Timeline.svelte @@ -2,7 +2,7 @@ import type { ActionData } from '$lib/types'; import Action from './Action.svelte'; - let { actions = $bindable() }: { actions: ActionData[] } = $props() + let { actions = $bindable() }: { actions: ActionData[] } = $props();
diff --git a/src/lib/types.ts b/src/lib/types.ts index 3b0d357..712d52b 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -1,19 +1,19 @@ export enum actionType { - IntakeTote = 'Intake Tote', - EjectTote = 'Eject Tote', - IntakeBalloon = 'Intake Balloon', - ScoreLow = 'Score Low', - ScoreExternalTote = 'Score External Tote', - ScoreInternalTote = 'Score Internal Tote', - ScoreAnotherRobotsTote = 'Score Another Robots Tote' + IntakeTote = 'Intake Tote', + EjectTote = 'Eject Tote', + IntakeBalloon = 'Intake Balloon', + ScoreLow = 'Score Low', + ScoreExternalTote = 'Score External Tote', + ScoreInternalTote = 'Score Internal Tote', + ScoreAnotherRobotsTote = 'Score Another Robots Tote' } export enum actionResult { - success = 'success', - fail = 'fail' + success = 'success', + fail = 'fail' } export type ActionData = { - type: actionType; - result: actionResult; -} + type: actionType; + result: actionResult; +}; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index b5cccfa..8ee9618 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,12 +1,12 @@ +{@render children()} + - -{@render children()} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 28b1357..78fc900 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,8 +1,4 @@
-

- hiiii :3 -

- - scout - +

hiiii :3

+ scout
diff --git a/src/routes/scout/+page.svelte b/src/routes/scout/+page.svelte index e6b4fb4..2de844f 100644 --- a/src/routes/scout/+page.svelte +++ b/src/routes/scout/+page.svelte @@ -13,8 +13,10 @@
- + - - + +
diff --git a/tailwind.config.js b/tailwind.config.js index d8fb534..b96a0a2 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,20 +1,20 @@ /** @type {import('tailwindcss').Config} */ export default { - content: ['./src/**/*.{html,js,svelte,ts}'], - theme: { - colors: { - "navbar_black": "#1c1c1c", - "outline_gray": "#c2c2c2", - "cresc_green": "#00d586", - "bg_gray": "#2c2c2c", - "slack_purple": "#4A154B", - "robot_blue": "#0083E6", - "robot_red": "#ED1C24", - "fail_red": "#EE3C42", - "btn_grey": "#5C5C5C", - "text_white": "#ffffff" - }, - extend: {}, - }, - plugins: [], -} + content: ['./src/**/*.{html,js,svelte,ts}'], + theme: { + colors: { + navbar_black: '#1c1c1c', + outline_gray: '#c2c2c2', + cresc_green: '#00d586', + bg_gray: '#2c2c2c', + slack_purple: '#4A154B', + robot_blue: '#0083E6', + robot_red: '#ED1C24', + fail_red: '#EE3C42', + btn_grey: '#5C5C5C', + text_white: '#ffffff' + }, + extend: {} + }, + plugins: [] +}; From aff12db68bd606072d17228053d6a42497815bfc Mon Sep 17 00:00:00 2001 From: awwpotato Date: Mon, 4 Nov 2024 16:02:27 -0800 Subject: [PATCH 4/4] fix pretter formating --- .editorconfig | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..a882442 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,7 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 4