From 760c15ebc9800007b17227583d48e38f307e38f3 Mon Sep 17 00:00:00 2001 From: Arman Date: Wed, 15 May 2024 15:50:23 +0200 Subject: [PATCH] feat: centralize url --- .../components/billing/alerts/limitReached.svelte | 4 ++-- src/lib/components/cardPlanLimit.svelte | 7 ++----- src/lib/components/support.svelte | 4 ++-- src/lib/elements/table/body.svelte | 8 +++----- src/lib/layout/containerHeader.svelte | 13 +++++-------- src/lib/layout/header.svelte | 3 ++- src/lib/layout/logs.svelte | 10 +++------- src/lib/layout/navigation.svelte | 5 ++--- src/lib/stores/billing.ts | 9 ++++++--- .../billing/+page.svelte | 5 ++--- .../billing/availableCredit.svelte | 4 ++-- .../billing/budgetCap.svelte | 5 ++--- .../billing/planSummary.svelte | 6 +++--- .../excesLimitModal.svelte | 5 ++--- .../usage/[[invoice]]/+page.svelte | 15 ++++++++------- .../project-[project]/settings/smtp/+page.svelte | 7 ++----- .../settings/usage/[[invoice]]/+page.svelte | 9 +++------ .../bucket-[bucket]/create-file/step1.svelte | 9 ++------- .../settings/updateMaxFileSize.svelte | 9 ++------- 19 files changed, 55 insertions(+), 82 deletions(-) diff --git a/src/lib/components/billing/alerts/limitReached.svelte b/src/lib/components/billing/alerts/limitReached.svelte index 1a0d70e95..7666658e4 100644 --- a/src/lib/components/billing/alerts/limitReached.svelte +++ b/src/lib/components/billing/alerts/limitReached.svelte @@ -5,7 +5,7 @@ import { BillingPlan } from '$lib/constants'; import { Button } from '$lib/elements/forms'; import { HeaderAlert } from '$lib/layout'; - import { readOnly, tierToPlan } from '$lib/stores/billing'; + import { readOnly, tierToPlan, upgradeURL } from '$lib/stores/billing'; import { organization } from '$lib/stores/organization'; @@ -25,7 +25,7 @@ View usage + diff --git a/src/lib/components/support.svelte b/src/lib/components/support.svelte index ce925487e..ec768ed4a 100644 --- a/src/lib/components/support.svelte +++ b/src/lib/components/support.svelte @@ -9,7 +9,7 @@ import { BillingPlan } from '$lib/constants'; import { trackEvent } from '$lib/actions/analytics'; import { localeTimezoneName, utcHourToLocaleHour } from '$lib/helpers/date'; - import { base } from '$app/paths'; + import { upgradeURL } from '$lib/stores/billing'; export let show = false; @@ -33,7 +33,7 @@ {#if $organization?.billingPlan === BillingPlan.STARTER}