mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Remove unused duplicate file
This commit is contained in:
1 parent
0b3e6bf730
commit
394cbcbb8f
1 file changed
-53
@@ -1,53 +0,0 @@
|
||||
<script lang="ts">
|
||||
import { Id } from '$lib/components';
|
||||
import { Cover, CoverTitle } from '$lib/layout';
|
||||
import { project } 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 { isSmallViewport } from '$lib/stores/viewport';
|
||||
</script>
|
||||
|
||||
{#if hasOnboardingDismissed($project.$id)}
|
||||
<Cover>
|
||||
<svelte:fragment slot="header">
|
||||
<CoverTitle>
|
||||
{$project?.name}
|
||||
</CoverTitle>
|
||||
<Id value={$project.$id}>{$project.$id}</Id>
|
||||
</svelte:fragment>
|
||||
</Cover>
|
||||
{:else}
|
||||
<Cover>
|
||||
<svelte:fragment slot="header">
|
||||
<Layout.Stack
|
||||
direction={$isSmallViewport ? 'column' : 'row'}
|
||||
justifyContent="space-between"
|
||||
alignItems={$isSmallViewport ? 'flex-start' : 'center'}
|
||||
gap="xl">
|
||||
<Layout.Stack direction="column" gap={$isSmallViewport ? 's' : 'xs'}>
|
||||
<Typography.Title color="--color-fgcolor-neutral-primary" size="xl"
|
||||
>Welcome, hoi</Typography.Title>
|
||||
<Typography.Text size="m" color="--color-fgcolor-neutral-secondary"
|
||||
>Follow a few quick steps to get started with Appwrite</Typography.Text>
|
||||
</Layout.Stack>
|
||||
<div class="dashboard-header-button">
|
||||
{#if !hasOnboardingDismissed($project.$id)}
|
||||
<Button.Button
|
||||
variant="secondary"
|
||||
size="s"
|
||||
on:click={() => {
|
||||
setHasOnboardingDismissed($project.$id);
|
||||
if (location.href.endsWith('get-started')) {
|
||||
goto(`${base}/project-${$project.$id}`);
|
||||
} else {
|
||||
location.reload();
|
||||
}
|
||||
}}>Dismiss this page</Button.Button>
|
||||
{/if}
|
||||
</div>
|
||||
</Layout.Stack>
|
||||
</svelte:fragment>
|
||||
</Cover>
|
||||
{/if}
|
||||
Reference in new issue
Block a user