From 37352574579bdb9f2d7bab4620724fef4f98ec55 Mon Sep 17 00:00:00 2001 From: Darshan Date: Tue, 23 Dec 2025 17:59:09 +0530 Subject: [PATCH] lint. --- src/lib/components/billing/planExcess.svelte | 4 ++-- src/lib/stores/organization.ts | 2 +- .../billing/planSummaryOld.svelte | 3 +-- .../project-[region]-[project]/functions/+page.svelte | 6 +----- .../functions/templates/template-[template]/+page.svelte | 3 +-- 5 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/lib/components/billing/planExcess.svelte b/src/lib/components/billing/planExcess.svelte index dedd265fc..7bdf28e3f 100644 --- a/src/lib/components/billing/planExcess.svelte +++ b/src/lib/components/billing/planExcess.svelte @@ -47,8 +47,8 @@ title={` Your organization will switch to ${tierToPlan(BillingPlan.FREE).name} plan on ${toLocaleDate( $organization.billingNextInvoiceDate )}`}> - You will retain access to {tierToPlan($organization.billingPlan).name} plan features until - your billing period ends. After that, + You will retain access to {tierToPlan($organization.billingPlan).name} plan features until your + billing period ends. After that, {#if excess?.members > 0} all team members except the owner will be removed, {:else} diff --git a/src/lib/stores/organization.ts b/src/lib/stores/organization.ts index 3a413c36b..851b2bfb6 100644 --- a/src/lib/stores/organization.ts +++ b/src/lib/stores/organization.ts @@ -16,7 +16,7 @@ export type OrganizationError = { export type Organization = Models.Team> & { billingBudget: number; billingPlan: Tier; - billingPlanDetails: Plan; /* unused for now! */ + billingPlanDetails: Plan /* unused for now! */; budgetAlerts: number[]; paymentMethodId: string; backupPaymentMethodId: string; diff --git a/src/routes/(console)/organization-[organization]/billing/planSummaryOld.svelte b/src/routes/(console)/organization-[organization]/billing/planSummaryOld.svelte index f593b54d6..083aff444 100644 --- a/src/routes/(console)/organization-[organization]/billing/planSummaryOld.svelte +++ b/src/routes/(console)/organization-[organization]/billing/planSummaryOld.svelte @@ -51,8 +51,7 @@ {currentPlan.name} plan - {isTrial || - $organization?.billingPlan === BillingPlan.GITHUB_EDUCATION + {isTrial || $organization?.billingPlan === BillingPlan.GITHUB_EDUCATION ? formatCurrency(0) : currentPlan ? formatCurrency(currentPlan?.price) diff --git a/src/routes/(console)/project-[region]-[project]/functions/+page.svelte b/src/routes/(console)/project-[region]-[project]/functions/+page.svelte index 6ffe38400..0bc701817 100644 --- a/src/routes/(console)/project-[region]-[project]/functions/+page.svelte +++ b/src/routes/(console)/project-[region]-[project]/functions/+page.svelte @@ -68,11 +68,7 @@ keys: ['c'], disabled: $wizard.show || - isServiceLimited( - 'functions', - $organization?.billingPlan, - data.functions?.total - ) || + isServiceLimited('functions', $organization?.billingPlan, data.functions?.total) || !$canWriteFunctions, icon: IconPlus, group: 'functions' diff --git a/src/routes/(console)/project-[region]-[project]/functions/templates/template-[template]/+page.svelte b/src/routes/(console)/project-[region]-[project]/functions/templates/template-[template]/+page.svelte index f76cf4bb8..4f5ca68a1 100644 --- a/src/routes/(console)/project-[region]-[project]/functions/templates/template-[template]/+page.svelte +++ b/src/routes/(console)/project-[region]-[project]/functions/templates/template-[template]/+page.svelte @@ -26,8 +26,7 @@ import { IconExternalLink } from '@appwrite.io/pink-icons-svelte'; $: buttonDisabled = - isCloud && - isServiceLimited('functions', $organization?.billingPlan, $functionsList?.total); + isCloud && isServiceLimited('functions', $organization?.billingPlan, $functionsList?.total);