mirror of
https://github.com/appwrite/console.git
synced 2026-04-07 19:17:46 +00:00
address comments.
This commit is contained in:
@@ -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`
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
@@ -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">
|
||||
<Typography.Caption variant="400">
|
||||
ⓒ {currentYear}
|
||||
{PLATFORM} . All rights reserved.
|
||||
{resolvedProfile.platform} . All rights reserved.
|
||||
</Typography.Caption>
|
||||
<span class="divider-wrapper">
|
||||
<Divider vertical />
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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
|
||||
}
|
||||
];
|
||||
|
||||
@@ -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 @@
|
||||
|
||||
<CardGrid>
|
||||
<svelte:fragment slot="title">Billing address</svelte:fragment>
|
||||
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}.
|
||||
<svelte:fragment slot="aside">
|
||||
{#if $addressList.total && countryList?.total}
|
||||
<Table.Root
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
import { organization } from '$lib/stores/organization';
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
import { createEventDispatcher } from 'svelte';
|
||||
import { PLATFORM } from '$lib/profiles/index.svelte';
|
||||
import { resolvedProfile } from '$lib/profiles/index.svelte';
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
export let show = false;
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
<Modal bind:show title="Add credits" onSubmit={redeem} bind:error size="s">
|
||||
<svelte:fragment slot="description">
|
||||
Apply {PLATFORM} credits to your organization.
|
||||
Apply {resolvedProfile.platform} credits to your organization.
|
||||
</svelte:fragment>
|
||||
|
||||
<InputText
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
import { Click, trackEvent } from '$lib/actions/analytics';
|
||||
import { upgradeURL } from '$lib/stores/billing';
|
||||
|
||||
import { PLATFORM } from '$lib/profiles/index.svelte';
|
||||
import { resolvedProfile } from '$lib/profiles/index.svelte';
|
||||
import { IconPlus } from '@appwrite.io/pink-icons-svelte';
|
||||
import { Alert, Badge, Icon, Link, Table, Tooltip, Typography } from '@appwrite.io/pink-svelte';
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
<svelte:fragment slot="title">
|
||||
{!areCreditsSupported ? 'Credits' : 'Available credit'}
|
||||
</svelte:fragment>
|
||||
{PLATFORM} credit will automatically be applied to your next invoice.
|
||||
{resolvedProfile.platform} credit will automatically be applied to your next invoice.
|
||||
<svelte:fragment slot="aside">
|
||||
{#if !areCreditsSupported}
|
||||
<Alert.Inline status="info" title="Upgrade to Pro to add credits">
|
||||
|
||||
@@ -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 @@
|
||||
|
||||
<CardGrid>
|
||||
<svelte:fragment slot="title">Billing address</svelte:fragment>
|
||||
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}
|
||||
.
|
||||
<svelte:fragment slot="aside">
|
||||
{#if organization?.billingAddressId && billingAddress}
|
||||
|
||||
@@ -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<Coupon> = {
|
||||
@@ -41,8 +41,8 @@
|
||||
<WizardStep beforeSubmit={validateCoupon}>
|
||||
<svelte:fragment slot="title">Credits</svelte:fragment>
|
||||
<svelte:fragment slot="subtitle">
|
||||
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.
|
||||
</svelte:fragment>
|
||||
<CouponInput
|
||||
bind:coupon
|
||||
|
||||
Reference in New Issue
Block a user