From 78098c883ca6d7dc5f943c9939693bcff019c1fc Mon Sep 17 00:00:00 2001 From: data-miner00 Date: Sun, 29 Sep 2024 07:32:37 +0800 Subject: [PATCH 1/5] refactor: Fix comments typo --- src/lib/components/eventModal.svelte | 2 +- src/lib/helpers/date.ts | 4 ++-- src/lib/sdk/billing.ts | 2 +- src/lib/stores/headerAlert.ts | 2 +- src/routes/(console)/(migration-wizard)/resource-form.svelte | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/components/eventModal.svelte b/src/lib/components/eventModal.svelte index e89d4b74c..1b20dbb36 100644 --- a/src/lib/components/eventModal.svelte +++ b/src/lib/components/eventModal.svelte @@ -79,7 +79,7 @@ : selected.service?.actions; // We need to check if the selected action name is still - // on the available list, and if so, change tje action to the + // on the available list, and if so, change the action to the // appropriate one, as it may contain different attributes const availableAction = availableActions.find( (a) => a.name === selected.action?.name diff --git a/src/lib/helpers/date.ts b/src/lib/helpers/date.ts index 49b5ff7ee..f8275753b 100644 --- a/src/lib/helpers/date.ts +++ b/src/lib/helpers/date.ts @@ -51,7 +51,7 @@ export const toLocaleDateTime = (datetime: string | number) => { }; /** - * Returns a date string usig the local timezone in ISO format (yyyy-mm-dd) + * Returns a date string using the local timezone in ISO format (yyyy-mm-dd) * * @param datetime date string or milliseconds since the epoch */ @@ -67,7 +67,7 @@ export const toLocaleDateISO = (datetime: string | number) => { }; /** - * Returns a time string usig the local timezone in ISO format (hh:mm:ss) + * Returns a time string using the local timezone in ISO format (hh:mm:ss) * * @param datetime date string or milliseconds since the epoch */ diff --git a/src/lib/sdk/billing.ts b/src/lib/sdk/billing.ts index a665d2e72..c9e8a6c4d 100644 --- a/src/lib/sdk/billing.ts +++ b/src/lib/sdk/billing.ts @@ -146,7 +146,7 @@ export type Aggregation = { */ amount: number; /** - * Price for addional members + * Price for additional members */ additionalMembers: number; /** diff --git a/src/lib/stores/headerAlert.ts b/src/lib/stores/headerAlert.ts index 2f5ed499f..ed8ecfeca 100644 --- a/src/lib/stores/headerAlert.ts +++ b/src/lib/stores/headerAlert.ts @@ -31,7 +31,7 @@ function createHeaderAlertStore() { }); }, get: (): HeaderAlert => { - //return higest importance component + //return highest importance component let component = { id: '', show: false, diff --git a/src/routes/(console)/(migration-wizard)/resource-form.svelte b/src/routes/(console)/(migration-wizard)/resource-form.svelte index 1da67926c..cc7e34ca8 100644 --- a/src/routes/(console)/(migration-wizard)/resource-form.svelte +++ b/src/routes/(console)/(migration-wizard)/resource-form.svelte @@ -36,7 +36,7 @@ /** * * @param field {string} The field to update. - * Representes the path to the field in the formData object e.g. 'users.root' + * Represents the path to the field in the formData object e.g. 'users.root' */ function handleInputChange(field: FormKeys) { return (event: Event) => { From 3ed9c354089dbbfc3e178505c7319e9a1c196cc8 Mon Sep 17 00:00:00 2001 From: data-miner00 Date: Sun, 29 Sep 2024 07:36:28 +0800 Subject: [PATCH 2/5] refactor: Fix in-app typos --- src/lib/components/permissions/label.svelte | 2 +- .../collection-[collection]/attributes/enum.svelte | 2 +- .../function-[function]/settings/updateConfiguration.svelte | 2 +- .../(console)/project-[project]/settings/transferProject.svelte | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/components/permissions/label.svelte b/src/lib/components/permissions/label.svelte index b927b544f..86a86b714 100644 --- a/src/lib/components/permissions/label.svelte +++ b/src/lib/components/permissions/label.svelte @@ -34,7 +34,7 @@ diff --git a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/enum.svelte b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/enum.svelte index a9cb99c02..9fba77784 100644 --- a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/enum.svelte +++ b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/enum.svelte @@ -88,7 +88,7 @@ label="Elements" bind:tags={data.elements} placeholder="Add elements here" - tooltip="Enum elements have a maxiumum length of 255 characters. This limit can not be exceeded." + tooltip="Enum elements have a maximum length of 255 characters. This limit can not be exceeded." required> diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/settings/updateConfiguration.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/settings/updateConfiguration.svelte index 98f0d7ee1..666b1e0a7 100644 --- a/src/routes/(console)/project-[project]/functions/function-[function]/settings/updateConfiguration.svelte +++ b/src/routes/(console)/project-[project]/functions/function-[function]/settings/updateConfiguration.svelte @@ -326,7 +326,7 @@ diff --git a/src/routes/(console)/project-[project]/settings/transferProject.svelte b/src/routes/(console)/project-[project]/settings/transferProject.svelte index 73445839e..11997a4ef 100644 --- a/src/routes/(console)/project-[project]/settings/transferProject.svelte +++ b/src/routes/(console)/project-[project]/settings/transferProject.svelte @@ -18,7 +18,7 @@ show = false; addNotification({ type: 'success', - message: `${$project.name} has been transfered to ${teamName}` + message: `${$project.name} has been transferred to ${teamName}` }); trackEvent(Submit.ProjectUpdateTeam); await goto(`${base}/organization-${teamId}`); From 44a7bbd3d72c9d1519ab4eafaf7a110257c5d0fc Mon Sep 17 00:00:00 2001 From: data-miner00 Date: Sun, 29 Sep 2024 07:38:20 +0800 Subject: [PATCH 3/5] refactor: Fix function and variable typos --- src/lib/stores/stripe.ts | 6 +++--- .../auth/user-[user]/updateStatus.svelte | 10 +++++----- .../project-[project]/messaging/smsPhone.svelte | 4 ++-- .../project-[project]/messaging/wizard/step3.svelte | 10 +++++----- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/lib/stores/stripe.ts b/src/lib/stores/stripe.ts index a25ad7a7b..58edfd431 100644 --- a/src/lib/stores/stripe.ts +++ b/src/lib/stores/stripe.ts @@ -36,7 +36,7 @@ export async function initializeStripe() { // Set up the options for the stripe elements const options = { clientSecret: clientSecret, - appearance: get(app).themeInUse === 'dark' ? apperanceDark : apperanceLight + appearance: get(app).themeInUse === 'dark' ? appearanceDark : appearanceLight }; // Set up Elements and then create form elements = get(stripe).elements(options); @@ -184,7 +184,7 @@ export async function confirmSetup( } } -const apperanceLight = { +const appearanceLight = { variables: { colorPrimary: '#606a7b', colorText: 'rgb(107, 107, 112)', @@ -213,7 +213,7 @@ const apperanceLight = { } }; -const apperanceDark = { +const appearanceDark = { variables: { colorPrimary: '#606a7b', colorText: 'rgb(195, 195, 198)', diff --git a/src/routes/(console)/project-[project]/auth/user-[user]/updateStatus.svelte b/src/routes/(console)/project-[project]/auth/user-[user]/updateStatus.svelte index c0790da99..fcc6fd09a 100644 --- a/src/routes/(console)/project-[project]/auth/user-[user]/updateStatus.svelte +++ b/src/routes/(console)/project-[project]/auth/user-[user]/updateStatus.svelte @@ -10,10 +10,10 @@ import { sdk } from '$lib/stores/sdk'; import { user } from './store'; - let showVerifcationDropdown = false; + let showVerificationDropdown = false; async function updateVerificationEmail() { - showVerifcationDropdown = false; + showVerificationDropdown = false; try { await sdk.forProject.users.updateEmailVerification($user.$id, !$user.emailVerification); await invalidate(Dependencies.USER); @@ -33,7 +33,7 @@ } } async function updateVerificationPhone() { - showVerifcationDropdown = false; + showVerificationDropdown = false; try { await sdk.forProject.users.updatePhoneVerification($user.$id, !$user.phoneVerification); await invalidate(Dependencies.USER); @@ -135,10 +135,10 @@ {#if $user.status} {#if $user.phone && $user.email} - + diff --git a/src/routes/(console)/project-[project]/messaging/smsPhone.svelte b/src/routes/(console)/project-[project]/messaging/smsPhone.svelte index 46191efd1..63526c264 100644 --- a/src/routes/(console)/project-[project]/messaging/smsPhone.svelte +++ b/src/routes/(console)/project-[project]/messaging/smsPhone.svelte @@ -4,7 +4,7 @@ export let content = ''; export let classes = ''; - function getIntials(name: string) { + function getInitials(name: string) { let words = name.split(' '); // If there is only one word, split it by underscore if (words.length === 1) { @@ -32,7 +32,7 @@
- {getIntials($project.name)} + {getInitials($project.name)}
{$project.name}
diff --git a/src/routes/(console)/project-[project]/messaging/wizard/step3.svelte b/src/routes/(console)/project-[project]/messaging/wizard/step3.svelte index f240a4041..19d865909 100644 --- a/src/routes/(console)/project-[project]/messaging/wizard/step3.svelte +++ b/src/routes/(console)/project-[project]/messaging/wizard/step3.svelte @@ -16,7 +16,7 @@ let time: string; let dateTime: Date; let docsUrl = `https://appwrite.io/docs/products/messaging`; - let showConfimation = false; + let showConfirmation = false; let totalTargets = $messageParams[$providerType].targets?.length ?? 0; @@ -60,14 +60,14 @@ async function askForConfirmation() { $wizard.interceptorNotificationEnabled = false; - showConfimation = true; + showConfirmation = true; throw 'Show confirmation'; } async function submit() { $wizard.interceptorNotificationEnabled = true; await $wizard.finalAction(); - showConfimation = false; + showConfirmation = false; } $: if (when === 'now') { @@ -127,14 +127,14 @@ - +

You are about to send a message to an estimated {totalTargets} recipients. Would you like to proceed?

This action is irreversible.

- +
From 7b4010e4fecf66849c3fbabcb5d0738d1a9f62db Mon Sep 17 00:00:00 2001 From: data-miner00 Date: Sun, 29 Sep 2024 07:42:30 +0800 Subject: [PATCH 4/5] refactor: Fix css naming typo --- src/routes/(public)/card/Card.svelte | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/(public)/card/Card.svelte b/src/routes/(public)/card/Card.svelte index d89854f82..584a83f31 100644 --- a/src/routes/(public)/card/Card.svelte +++ b/src/routes/(public)/card/Card.svelte @@ -231,7 +231,7 @@
-
+