update: platform derived from profile.

This commit is contained in:
Darshan
2025-12-01 18:35:44 +05:30
parent ed22f1ca9c
commit 0d3fe45f23
4 changed files with 9 additions and 6 deletions
+3 -2
View File
@@ -3,6 +3,7 @@ import type { Component } from 'svelte';
import { browser } from '$app/environment';
import { get, writable } from 'svelte/store';
import { Submit, trackEvent } from '$lib/actions/analytics';
import { resolvedProfile } from '$lib/profiles/index.svelte';
import FeedbackNps from '$lib/components/feedback/feedbackNPS.svelte';
import FeedbackGeneral from '$lib/components/feedback/feedbackGeneral.svelte';
@@ -29,12 +30,12 @@ export type FeedbackOption = {
export const feedbackOptions: FeedbackOption[] = [
{
type: 'general',
desc: `Appwrite evolves with your input. Share your thoughts and help us improve Appwrite.`,
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 Appwrite to a friend or colleague?`,
desc: `How likely are you to recommend ${resolvedProfile.platform} to a friend or colleague?`,
component: FeedbackNps
}
];
@@ -48,6 +48,7 @@
} from '../(suggestions)';
import EmptySheetCards from './layout/emptySheetCards.svelte';
import IconAI from '../(suggestions)/icon/aiForButton.svelte';
import { resolvedProfile } from '$lib/profiles/index.svelte';
export let data: PageData;
@@ -346,7 +347,7 @@
<EmptySheetCards
icon={IconBookOpen}
title="Documentation"
subtitle="Read the Appwrite docs"
subtitle="Read the {resolvedProfile.platform} docs"
href="https://appwrite.io/docs/products/databases" />
{/if}
{/snippet}
@@ -45,6 +45,7 @@
import { realtime } from '$lib/stores/sdk';
import { invalidate } from '$app/navigation';
import { Dependencies } from '$lib/constants';
import { resolvedProfile } from '$lib/profiles/index.svelte';
let {
data
@@ -340,7 +341,7 @@
<EmptySheetCards
icon={IconBookOpen}
title="Documentation"
subtitle="Read the Appwrite docs"
subtitle="Read the {resolvedProfile.platform} docs"
href="https://appwrite.io/docs/products/databases/tables#indexes" />
{/if}
{/snippet}
@@ -390,7 +391,7 @@
<EmptySheetCards
icon={IconBookOpen}
title="Documentation"
subtitle="Read the Appwrite docs"
subtitle="Read the {resolvedProfile.platform} docs"
href="https://appwrite.io/docs/products/databases/tables#columns" />
{/if}
{/snippet}
@@ -359,7 +359,7 @@
<Typography.Title size="s"
>Create API key</Typography.Title>
<Typography.Text
>Connect your server or backend to Appwrite</Typography.Text>
>Connect your server or backend to {resolvedProfile.platform}</Typography.Text>
</Layout.Stack>
<div class="arrow-icon">
<Icon icon={IconArrowRight} size="s" />