mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
improve onboarding mobile layout and add region tag to project header
This commit is contained in:
+2
-2
@@ -17,14 +17,14 @@
|
||||
</CoverTitle>
|
||||
<Layout.Stack direction="row" inline>
|
||||
{#if $key?.secret}
|
||||
<Copy value={$key.secret} copyText="Copy API key">
|
||||
<Copy value={$key.secret} copyText="Copy API secret">
|
||||
<Tag size="xs" variant="code">
|
||||
<Icon icon={IconDuplicate} size="s" slot="start" />
|
||||
<span
|
||||
style:white-space="nowrap"
|
||||
style:overflow="hidden"
|
||||
style:word-break="break-all">
|
||||
API key
|
||||
API secret
|
||||
</span>
|
||||
</Tag>
|
||||
</Copy>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 405 KiB After Width: | Height: | Size: 308 KiB |
@@ -2,14 +2,15 @@
|
||||
import { page } from '$app/state';
|
||||
import { Id, ApiEndpoint } from '$lib/components';
|
||||
import { Cover } from '$lib/layout';
|
||||
import { project } from '../store';
|
||||
import { project, projectRegion } from '../store';
|
||||
import { hasOnboardingDismissed, setHasOnboardingDismissed } from '$lib/helpers/onboarding';
|
||||
import { goto } from '$app/navigation';
|
||||
import { base } from '$app/paths';
|
||||
import { Layout, Button, Typography } from '@appwrite.io/pink-svelte';
|
||||
import { Layout, Button, Typography, Tag } from '@appwrite.io/pink-svelte';
|
||||
import { user } from '$lib/stores/user';
|
||||
import { isSmallViewport } from '$lib/stores/viewport';
|
||||
import { trackEvent } from '$lib/actions/analytics';
|
||||
import { getFlagUrl } from '$lib/helpers/flag';
|
||||
|
||||
function dismissOnboarding() {
|
||||
setHasOnboardingDismissed($project.$id, $user);
|
||||
@@ -30,6 +31,21 @@
|
||||
<Layout.Stack direction="row" inline>
|
||||
<Id value={$project.$id} copyText="Copy project ID">{$project.$id}</Id>
|
||||
<ApiEndpoint />
|
||||
{#if $projectRegion?.flag}
|
||||
<Tag size="xs" variant="code">
|
||||
<img
|
||||
src={getFlagUrl($projectRegion.flag)}
|
||||
alt={$projectRegion.flag}
|
||||
slot="start"
|
||||
style="width: 16px; height: 12px;" />
|
||||
<span
|
||||
style:white-space="nowrap"
|
||||
style:overflow="hidden"
|
||||
style:word-break="break-all">
|
||||
{$projectRegion.name}
|
||||
</span>
|
||||
</Tag>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
</Layout.Stack>
|
||||
</svelte:fragment>
|
||||
|
||||
@@ -99,7 +99,9 @@
|
||||
</Layout.Stack>
|
||||
</div>
|
||||
<Layout.Stack gap="l">
|
||||
<Layout.Stack gap="l" direction="row">
|
||||
<Layout.Stack
|
||||
gap="l"
|
||||
direction={$isSmallViewport ? 'column' : 'row'}>
|
||||
<Card.Button
|
||||
on:click={() => {
|
||||
openPlatformWizard(0, platformMap.get('Web'));
|
||||
|
||||
Reference in New Issue
Block a user