From f6bdfbf90b312a2afc080cbf962120b7c5d8cd47 Mon Sep 17 00:00:00 2001 From: scosman Date: Sat, 20 Jul 2024 01:30:44 -0400 Subject: [PATCH 1/2] Add misspell utility to check for spelling errors --- .github/workflows/format.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 040f0a2a..a9474b85 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -15,9 +15,16 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 - name: NPM install run: npm install - name: Check Code Format run: npm run format_check + + - name: Download go misspell utility + run: go install github.com/client9/misspell/cmd/misspell@latest + + - name: Run misspell to fine misspelled words + run: misspell -error ./src README.md From cceceb30f0da1812539990472448369d41130c2d Mon Sep 17 00:00:00 2001 From: scosman Date: Sat, 20 Jul 2024 01:33:55 -0400 Subject: [PATCH 2/2] Fix typos found by new spelling check tool --- src/routes/(admin)/account/(menu)/billing/+page.svelte | 2 +- .../(admin)/account/(menu)/settings/change_email/+page.svelte | 2 +- src/routes/(admin)/account/api/+page.server.ts | 2 +- src/routes/(marketing)/+page.svelte | 2 +- src/routes/(marketing)/login/sign_in/+page.svelte | 2 +- src/routes/(marketing)/pricing/pricing_plans.ts | 2 +- src/routes/+error.svelte | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/routes/(admin)/account/(menu)/billing/+page.svelte b/src/routes/(admin)/account/(menu)/billing/+page.svelte index 2045efdf..97f2e5a7 100644 --- a/src/routes/(admin)/account/(menu)/billing/+page.svelte +++ b/src/routes/(admin)/account/(menu)/billing/+page.svelte @@ -51,7 +51,7 @@ initialValue: currentPlanName || "", }, ]} - editButtonTitle="Manage Subscripton" + editButtonTitle="Manage Subscription" editLink="/account/billing/manage" /> {/if} diff --git a/src/routes/(admin)/account/(menu)/settings/change_email/+page.svelte b/src/routes/(admin)/account/(menu)/settings/change_email/+page.svelte index 1bd0acb9..6a9b38f3 100644 --- a/src/routes/(admin)/account/(menu)/settings/change_email/+page.svelte +++ b/src/routes/(admin)/account/(menu)/settings/change_email/+page.svelte @@ -21,7 +21,7 @@ title="Change Email" editable={true} successTitle="Email change initiated" - successBody="You should recieve emails at both the old and new address to confirm the change. Please click the link in both emails to finalized the change. Until finalized, you must sign in with your current email." + successBody="You should receive emails at both the old and new address to confirm the change. Please click the link in both emails to finalized the change. Until finalized, you must sign in with your current email." formTarget="/account/api?/updateEmail" fields={[ { diff --git a/src/routes/(admin)/account/api/+page.server.ts b/src/routes/(admin)/account/api/+page.server.ts index 690849c6..fc64c697 100644 --- a/src/routes/(admin)/account/api/+page.server.ts +++ b/src/routes/(admin)/account/api/+page.server.ts @@ -115,7 +115,7 @@ export const actions = { } // Check current password is correct before updating, but only if they didn't log in with "recover" link - // Note: to make this truely enforced you need to contact supabase. See: https://www.reddit.com/r/Supabase/comments/12iw7o1/updating_password_in_supabase_seems_insecure/ + // Note: to make this truly enforced you need to contact supabase. See: https://www.reddit.com/r/Supabase/comments/12iw7o1/updating_password_in_supabase_seems_insecure/ // However, having the UI accessible route still verify password is still helpful, and needed once you get the setting above enabled if (!isRecoverySession) { const { error } = await supabase.auth.signInWithPassword({ diff --git a/src/routes/(marketing)/+page.svelte b/src/routes/(marketing)/+page.svelte index b287195a..689ff3ae 100644 --- a/src/routes/(marketing)/+page.svelte +++ b/src/routes/(marketing)/+page.svelte @@ -167,7 +167,7 @@ `, }, { - name: "Scaleable", + name: "Scalable", description: "Handle new users and scale with horizontally scaling edge functions.", svgContent: ` diff --git a/src/routes/(marketing)/login/sign_in/+page.svelte b/src/routes/(marketing)/login/sign_in/+page.svelte index ef3ef703..6457d880 100644 --- a/src/routes/(marketing)/login/sign_in/+page.svelte +++ b/src/routes/(marketing)/login/sign_in/+page.svelte @@ -10,7 +10,7 @@ onMount(() => { supabase.auth.onAuthStateChange((event) => { - // Redirect to account after sucessful login + // Redirect to account after successful login if (event == "SIGNED_IN") { // Delay needed because order of callback not guaranteed. // Give the layout callback priority to update state or diff --git a/src/routes/(marketing)/pricing/pricing_plans.ts b/src/routes/(marketing)/pricing/pricing_plans.ts index a58b2816..e214ce57 100644 --- a/src/routes/(marketing)/pricing/pricing_plans.ts +++ b/src/routes/(marketing)/pricing/pricing_plans.ts @@ -29,7 +29,7 @@ export const pricingPlans = [ id: "enterprise", name: "Enterprise", description: - "A plan to test the upgrade expereince. Try buying this with the test credit card 4242424242424242.", + "A plan to test the upgrade experience. Try buying this with the test credit card 4242424242424242.", price: "$15", priceIntervalName: "per month", stripe_price_id: "price_1Nkda2HMjzZ8mGZn4sKvbDAV", diff --git a/src/routes/+error.svelte b/src/routes/+error.svelte index 872198cb..b744a489 100644 --- a/src/routes/+error.svelte +++ b/src/routes/+error.svelte @@ -6,7 +6,7 @@
-

This is embarassing...

+

This is embarrassing...

There was an error: {$page?.error?.message}