diff --git a/src/lib/components/support.svelte b/src/lib/components/support.svelte
index d660d04a9..654477fdd 100644
--- a/src/lib/components/support.svelte
+++ b/src/lib/components/support.svelte
@@ -12,7 +12,7 @@
import { isCloud } from '$lib/system';
import { Typography } from '@appwrite.io/pink-svelte';
import { base } from '$app/paths';
- import { PLATFORM, resolvedProfile } from '$lib/profiles/index.svelte';
+ import { resolvedProfile } from '$lib/profiles/index.svelte';
export let show = false;
@@ -47,7 +47,7 @@
showSupport: true,
icon: 'support',
label: 'Premium support',
- description: `Get priority email support from the ${PLATFORM} team`
+ description: `Get priority email support from the ${resolvedProfile.platform} team`
},
{
diff --git a/src/lib/layout/footer.svelte b/src/lib/layout/footer.svelte
index 1a44e4c43..266165f70 100644
--- a/src/lib/layout/footer.svelte
+++ b/src/lib/layout/footer.svelte
@@ -13,7 +13,7 @@
} from '@appwrite.io/pink-svelte';
import { isSmallViewport } from '$lib/stores/viewport';
import { page } from '$app/state';
- import { PLATFORM, resolvedProfile } from '$lib/profiles/index.svelte.ts';
+ import { resolvedProfile } from '$lib/profiles/index.svelte.ts';
const currentYear = new Date().getFullYear();
@@ -33,7 +33,7 @@
justifyContent="flex-start">
ⓒ {currentYear}
- {PLATFORM} . All rights reserved.
+ {resolvedProfile.platform} . All rights reserved.
diff --git a/src/lib/profiles/index.svelte.ts b/src/lib/profiles/index.svelte.ts
index 005e06a4e..2e71033a5 100644
--- a/src/lib/profiles/index.svelte.ts
+++ b/src/lib/profiles/index.svelte.ts
@@ -1,4 +1,3 @@
-import { VARS } from '$lib/system';
import { resolve } from '$app/paths';
import type { ResolvedPathname } from '$app/types';
import { PUBLIC_CONSOLE_PROFILE } from '$env/static/public';
@@ -10,6 +9,7 @@ export const enum ProfileMode {
export type Profile = {
id: ProfileMode;
+ platform: string;
logo: {
src: {
dark: string;
@@ -28,6 +28,7 @@ export type Profile = {
export const base: Profile = {
id: ProfileMode.CONSOLE,
+ platform: 'Appwrite',
logo: {
src: {
dark: 'https://appwrite.io/images/logos/logo.svg',
@@ -51,6 +52,7 @@ export const base: Profile = {
export const studio: Profile = {
id: ProfileMode.STUDIO,
+ platform: 'Imagine',
logo: {
src: {
dark: 'https://imagine-console.up.railway.app/images/imagine-logo-dark.svg',
@@ -82,7 +84,3 @@ const resolver = $derived(() => {
});
export const resolvedProfile = resolver();
-
-export const isStudio = VARS.CONSOLE_PROFILE === ProfileMode.STUDIO;
-
-export const PLATFORM = isStudio ? 'Imagine' : 'Appwrite';
diff --git a/src/lib/stores/feedback.ts b/src/lib/stores/feedback.ts
index 9ccb7d2f3..c41af9369 100644
--- a/src/lib/stores/feedback.ts
+++ b/src/lib/stores/feedback.ts
@@ -1,5 +1,5 @@
import { VARS } from '$lib/system';
-import { PLATFORM } from '$lib/profiles/index.svelte';
+import { resolvedProfile } from '$lib/profiles/index.svelte';
import type { Component } from 'svelte';
import { browser } from '$app/environment';
@@ -31,12 +31,12 @@ export type FeedbackOption = {
export const feedbackOptions: FeedbackOption[] = [
{
type: 'general',
- desc: `${PLATFORM} evolves with your input. Share your thoughts and help us improve ${PLATFORM}.`,
+ desc: `${resolvedProfile.platform} evolves with your input. Share your thoughts and help us improve ${resolvedProfile.platform}.`,
component: FeedbackGeneral
},
{
type: 'nps',
- desc: `How likely are you to recommend ${PLATFORM} to a friend or colleague?`,
+ desc: `How likely are you to recommend ${resolvedProfile.platform} to a friend or colleague?`,
component: FeedbackNps
}
];
diff --git a/src/routes/(console)/account/payments/billingAddress.svelte b/src/routes/(console)/account/payments/billingAddress.svelte
index 00354514d..fd77f1cfe 100644
--- a/src/routes/(console)/account/payments/billingAddress.svelte
+++ b/src/routes/(console)/account/payments/billingAddress.svelte
@@ -27,7 +27,7 @@
Typography
} from '@appwrite.io/pink-svelte';
import type { PageData } from './$types';
- import { PLATFORM } from '$lib/profiles/index.svelte';
+ import { resolvedProfile } from '$lib/profiles/index.svelte';
export let data: PageData;
@@ -45,7 +45,7 @@
Billing address
- View or update your billing address. This address will be included in your invoices from {PLATFORM}.
+ View or update your billing address. This address will be included in your invoices from {resolvedProfile.platform}.
{#if $addressList.total && countryList?.total}
- Apply {PLATFORM} credits to your organization.
+ Apply {resolvedProfile.platform} credits to your organization.
{!areCreditsSupported ? 'Credits' : 'Available credit'}
- {PLATFORM} credit will automatically be applied to your next invoice.
+ {resolvedProfile.platform} credit will automatically be applied to your next invoice.
{#if !areCreditsSupported}
diff --git a/src/routes/(console)/organization-[organization]/billing/billingAddress.svelte b/src/routes/(console)/organization-[organization]/billing/billingAddress.svelte
index b384dd5ad..66f915f69 100644
--- a/src/routes/(console)/organization-[organization]/billing/billingAddress.svelte
+++ b/src/routes/(console)/organization-[organization]/billing/billingAddress.svelte
@@ -23,7 +23,7 @@
IconTrash
} from '@appwrite.io/pink-icons-svelte';
import type { Models } from '@appwrite.io/console';
- import { PLATFORM } from '$lib/profiles/index.svelte';
+ import { resolvedProfile } from '$lib/profiles/index.svelte';
export let organization: Organization;
export let locale: Models.Locale;
@@ -59,7 +59,7 @@
Billing address
- View or update your billing address. This address will be included in your invoices from {PLATFORM}
+ View or update your billing address. This address will be included in your invoices from {resolvedProfile.platform}
.
{#if organization?.billingAddressId && billingAddress}
diff --git a/src/routes/(console)/organization-[organization]/billing/wizard/addCredit.svelte b/src/routes/(console)/organization-[organization]/billing/wizard/addCredit.svelte
index f705ce343..324586088 100644
--- a/src/routes/(console)/organization-[organization]/billing/wizard/addCredit.svelte
+++ b/src/routes/(console)/organization-[organization]/billing/wizard/addCredit.svelte
@@ -6,7 +6,7 @@
import { wizard } from '$lib/stores/wizard';
import { onMount } from 'svelte';
import { addCreditWizardStore } from '../store';
- import { PLATFORM } from '$lib/profiles/index.svelte';
+ import { resolvedProfile } from '$lib/profiles/index.svelte';
let coupon: string;
export let couponData: Partial = {
@@ -41,8 +41,8 @@
Credits
- Add {PLATFORM} credits to your organization. A payment method is required before credits can
- be applied.
+ Add {resolvedProfile.platform} credits to your organization. A payment method is required before
+ credits can be applied.