feat: updated all empty cards

This commit is contained in:
Arman committed 2022-11-04 14:14:46 +01:00
1 parent 771cabf562
commit 43bc72eca6
26 files changed
+267 -217

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@
<slot />
{#if total > 3 ? total < limit + offset : total % 2 !== 0}
<Empty isButton on:click>
<Empty on:click>
<slot name="empty" />
</Empty>
{/if}
+18 -39
View File
@@ -4,51 +4,30 @@
import EmptyLight from '$lib/images/empty-light.svg';
import EmptyDark from '$lib/images/empty-dark.svg';
export let isButton = false;
export let single = false;
</script>
{#if isButton}
{#if single}
<article class="card u-grid u-cross-center u-width-full-line" class:common-section={single}>
<div class="u-flex u-flex-vertical u-cross-center u-gap-24">
<button type="button" on:click|preventDefault>
{#if $app.themeInUse === 'dark'}
<img src={EmptyDark} alt="create" aria-hidden="true" />
{:else}
<img src={EmptyLight} alt="create" aria-hidden="true" />
{/if}
</button>
<slot />
</div>
</article>
{:else}
<button
on:click|preventDefault
type="button"
class="card u-grid u-cross-center u-width-full-line dashed"
class:common-section={single}>
{#if single}
<div class="u-flex u-flex-vertical u-cross-center u-gap-24">
{#if $app.themeInUse === 'dark'}
<img src={EmptyDark} alt="create" aria-hidden="true" />
{:else}
<img src={EmptyLight} alt="create" aria-hidden="true" />
{/if}
<slot />
</div>
{:else}
<div class="u-flex u-cross-center u-flex-vertical u-main-center u-flex">
<div class="common-section">
<Button secondary round>
<i class="icon-plus" />
</Button>
</div>
<div class="common-section">
<slot />
</div>
</div>
{/if}
</button>
{:else}
<article class="card u-grid u-cross-center u-width-full-line" class:common-section={single}>
{#if single}
<div class="u-flex u-flex-vertical u-cross-center u-gap-24">
{#if $app.themeInUse === 'dark'}
<img src={EmptyDark} alt="create" aria-hidden="true" />
{:else}
<img src={EmptyLight} alt="create" aria-hidden="true" />
{/if}
<slot />
</div>
{:else}
<div class="common-section u-main-center u-flex">
<div class="u-flex u-cross-center u-flex-vertical u-main-center u-flex">
<div class="common-section">
<Button secondary round>
<i class="icon-plus" />
</Button>
@@ -56,6 +35,6 @@
<div class="common-section">
<slot />
</div>
{/if}
</article>
</div>
</button>
{/if}
@@ -66,7 +66,7 @@
</svelte:fragment>
</CardContainer>
{:else}
<Empty isButton single on:click={() => (addOrganization = true)}>
<Empty single on:click={() => (addOrganization = true)}>
<p>Create a new organization</p>
</Empty>
{/if}
@@ -90,7 +90,7 @@
</svelte:fragment>
</CardContainer>
{:else}
<Empty isButton single on:click={() => (showCreate = true)}>
<Empty single on:click={() => (showCreate = true)}>
<p>Create a new project</p>
</Empty>
{/if}
@@ -139,7 +139,7 @@
</Button>
</EmptySearch>
{:else}
<Empty isButton single on:click={() => (showCreate = true)}>
<Empty single on:click={() => (showCreate = true)}>
<div
class="common-section"
use:event={{
@@ -150,14 +150,14 @@
}
}}>
<div class="u-text-center common-section">
<p>Create your first User to get started.</p>
<p>Create your first user to get started.</p>
<p>Need a hand? Check out our documentation.</p>
</div>
<div class="u-flex u-gap-16 common-section u-main-center">
<Button external href="https://appwrite.io/docs/server/users" text>
Documentation
</Button>
<Button secondary>Create User</Button>
<Button secondary on:click={() => (showCreate = true)}>Create user</Button>
</div>
</div>
</Empty>
@@ -94,7 +94,7 @@
</Button>
</EmptySearch>
{:else}
<Empty isButton single on:click={() => (showCreate = true)}>
<Empty single on:click={() => (showCreate = true)}>
<div
class="common-section"
use:event={{
@@ -105,14 +105,14 @@
}
}}>
<div class="u-text-center common-section">
<p>Create your first Team to get started.</p>
<p>Create your first team to get started.</p>
<p>Need a hand? Check out our documentation.</p>
</div>
<div class="u-flex u-gap-16 common-section u-main-center">
<Button external href="https://appwrite.io/docs/client/teams" text>
Documentation
</Button>
<Button secondary>Create team</Button>
<Button secondary on:click={() => (showCreate = true)}>Create team</Button>
</div>
</div>
</Empty>
@@ -99,8 +99,20 @@
>Clear Search</Button>
</EmptySearch>
{:else}
<Empty isButton single on:click={() => (showCreate = true)}>
<p>Add your first member to get started</p>
<Empty single on:click={() => (showCreate = true)}>
<div class="u-text-center">
<p class="text u-line-height-1-5">Add your first member to get started</p>
<p class="text u-line-height-1-5">Need a hand? Check out our documentation.</p>
</div>
<div class="u-flex u-gap-16">
<Button
external
href="https://appwrite.io/docs/client/teams?sdk=web-default#teamsCreateMembership"
text>
Documentation
</Button>
<Button secondary on:click={() => (showCreate = true)}>Create membership</Button>
</div>
</Empty>
{/if}
</Container>
@@ -58,16 +58,16 @@
sum={data.databases.total} />
</div>
{:else}
<Empty isButton single on:click={() => (showCreate = true)}>
<Empty single on:click={() => (showCreate = true)}>
<div class="u-text-center">
<p class="text u-line-height-1-5">Create your first Database to get started</p>
<p class="text u-line-height-1-5">Create your first database to get started</p>
<p class="text u-line-height-1-5">Need a hand? Check out our documentation.</p>
</div>
<div class="u-flex u-gap-12">
<Button external href="https://appwrite.io/docs/databases" text>
Documentation
</Button>
<Button secondary>Create Database</Button>
<Button secondary on:click={() => (showCreate = true)}>Create database</Button>
</div>
</Empty>
{/if}
@@ -77,16 +77,16 @@
sum={data.collections.total} />
</div>
{:else}
<Empty isButton single on:click={() => (showCreate = true)}>
<Empty single on:click={() => (showCreate = true)}>
<div class="u-text-center">
<p class="text u-line-height-1-5">Create your first collection to get started</p>
<p class="text u-line-height-1-5">Need a hand? Check out our documentation.</p>
</div>
<div class="u-flex u-gap-12 ">
<div class="u-flex u-gap-16">
<Button external href="https://appwrite.io/docs/databases#collection" text>
Documentation
</Button>
<Button secondary>Create Collection</Button>
<Button secondary on:click={() => (showCreate = true)}>Create collection</Button>
</div>
</Empty>
{/if}
@@ -18,8 +18,10 @@
import { collection } from '../store';
import { page } from '$app/stores';
import { PAGE_LIMIT } from '$lib/constants';
import CreateAttribute from '../createAttribute.svelte';
export let data: PageData;
let showCreateAttribute = false;
function openWizard() {
wizard.start(Create);
@@ -83,13 +85,38 @@
sum={data.documents.total} />
</div>
{:else}
<Empty isButton single on:click={openWizard}>
<p>Create your first document to get started</p>
<Empty single on:click={openWizard}>
<div class="u-text-center">
<p class="text u-line-height-1-5">Create your first document to get started</p>
<p class="text u-line-height-1-5">Need a hand? Check out our documentation.</p>
</div>
<div class="u-flex u-gap-16">
<Button
external
href="https://appwrite.io/docs/databases#create-documents"
text>
Documentation
</Button>
<Button secondary on:click={openWizard}>Create document</Button>
</div>
</Empty>
{/if}
{:else}
<Empty single>
<p>Create your first attribute to get started</p>
<Empty single on:click={() => (showCreateAttribute = true)}>
<div class="u-text-center">
<p class="text u-line-height-1-5">Create your first attribute to get started</p>
<p class="text u-line-height-1-5">Need a hand? Check out our documentation.</p>
</div>
<div class="u-flex u-gap-16">
<Button external href="https://appwrite.io/docs/databases#attributes" text>
Documentation
</Button>
<Button secondary on:click={() => (showCreateAttribute = true)}>
Create attribute
</Button>
</div>
</Empty>
{/if}
</Container>
<CreateAttribute bind:showCreate={showCreateAttribute} />
@@ -13,7 +13,7 @@
import { attributes, type Attributes } from '../store';
import { Container } from '$lib/layout';
import { Pill } from '$lib/elements';
import Create from './createAttribute.svelte';
import Create from '../createAttribute.svelte';
import CreateIndex from '../indexes/createIndex.svelte';
import Delete from './deleteAttribute.svelte';
import Overview from './overview.svelte';
@@ -110,8 +110,17 @@
<p class="text">Total results: {$attributes.length}</p>
</div>
{:else}
<Empty isButton single on:click={() => (showCreate = true)}>
<p>Crate your first attribute to get started</p>
<Empty single on:click={() => (showCreate = true)}>
<div class="u-text-center">
<p class="text u-line-height-1-5">Create your first attribute to get started</p>
<p class="text u-line-height-1-5">Need a hand? Check out our documentation.</p>
</div>
<div class="u-flex u-gap-16">
<Button external href="https://appwrite.io/docs/databases#attributes" text>
Documentation
</Button>
<Button secondary on:click={() => (showCreate = true)}>Create attribute</Button>
</div>
</Empty>
{/if}
</Container>
@@ -1,6 +1,6 @@
<script lang="ts">
import { Modal } from '$lib/components';
import { option, options } from './store';
import { option, options } from './attributes/store';
import { Button, InputText, FormList, InputSelect } from '$lib/elements/forms';
import { invalidate } from '$app/navigation';
import { Dependencies } from '$lib/constants';
@@ -11,10 +11,11 @@
TableRow
} from '$lib/elements/table';
import { Container } from '$lib/layout';
import { indexes } from '../store';
import { collection, indexes } from '../store';
import Delete from './deleteIndex.svelte';
import Create from './createIndex.svelte';
import Overview from './overviewIndex.svelte';
import CreateAttribute from '../createAttribute.svelte';
import type { Models } from '@aw-labs/appwrite-console';
import { invalidate } from '$app/navigation';
import { Dependencies } from '$lib/constants';
@@ -25,6 +26,7 @@
let showCreateIndex = false;
let showOverview = false;
let showDelete = false;
let showCreateAttribute = false;
const handleDelete = async () => {
invalidate(Dependencies.COLLECTION);
@@ -35,85 +37,113 @@
<div class="u-flex u-gap-12 common-section u-main-space-between">
<Heading tag="h2" size="5">Indexes</Heading>
<Button on:click={() => (showCreateIndex = true)}>
<Button
disabled={!$collection?.attributes?.length}
on:click={() => (showCreateIndex = true)}>
<span class="icon-plus" aria-hidden="true" />
<span class="text">Create Index</span>
<span class="text">Create index</span>
</Button>
</div>
{#if $indexes.length}
<Table>
<TableHeader>
<TableCellHead>Key</TableCellHead>
<TableCellHead>Type</TableCellHead>
<TableCellHead>Attributes</TableCellHead>
<TableCellHead>Asc/Desc</TableCellHead>
<TableCellHead width={30} />
</TableHeader>
<TableBody>
{#each $indexes as index, i}
<TableRow>
<TableCell title="Key">
<div class="u-flex u-main-space-between">
<span class="text u-trim"> {index.key}</span>
{#if index.status !== 'available'}
<Pill
warning={index.status === 'processing'}
danger={['deleting', 'stuck', 'failed'].includes(
index.status
)}>
{index.status}
</Pill>
{/if}
</div>
</TableCell>
<TableCellText title="Type">{index.type}</TableCellText>
<TableCellText title="Attributes">
{index.attributes}
</TableCellText>
<TableCellText title="ASC/DESC">
{index.orders}
</TableCellText>
<TableCell showOverflow>
<DropList bind:show={showDropdown[i]} placement="bottom-start" noArrow>
<button
class="button is-only-icon is-text"
aria-label="More options"
on:click|preventDefault={() => {
showDropdown[i] = !showDropdown[i];
}}>
<span class="icon-dots-horizontal" aria-hidden="true" />
</button>
<svelte:fragment slot="list">
<DropListItem
icon="eye"
on:click={() => {
selectedIndex = index;
showOverview = true;
}}>Overview</DropListItem>
{#if $collection?.attributes?.length}
{#if $indexes.length}
<Table>
<TableHeader>
<TableCellHead>Key</TableCellHead>
<TableCellHead>Type</TableCellHead>
<TableCellHead>Attributes</TableCellHead>
<TableCellHead>Asc/Desc</TableCellHead>
<TableCellHead width={30} />
</TableHeader>
<TableBody>
{#each $indexes as index, i}
<TableRow>
<TableCell title="Key">
<div class="u-flex u-main-space-between">
<span class="text u-trim"> {index.key}</span>
{#if index.status !== 'available'}
<Pill
warning={index.status === 'processing'}
danger={['deleting', 'stuck', 'failed'].includes(
index.status
)}>
{index.status}
</Pill>
{/if}
</div>
</TableCell>
<TableCellText title="Type">{index.type}</TableCellText>
<TableCellText title="Attributes">
{index.attributes}
</TableCellText>
<TableCellText title="ASC/DESC">
{index.orders}
</TableCellText>
<TableCell showOverflow>
<DropList
bind:show={showDropdown[i]}
placement="bottom-start"
noArrow>
<button
class="button is-only-icon is-text"
aria-label="More options"
on:click|preventDefault={() => {
showDropdown[i] = !showDropdown[i];
}}>
<span class="icon-dots-horizontal" aria-hidden="true" />
</button>
<svelte:fragment slot="list">
<DropListItem
icon="eye"
on:click={() => {
selectedIndex = index;
showOverview = true;
}}>Overview</DropListItem>
<DropListItem
icon="trash"
on:click={() => {
selectedIndex = index;
showDelete = true;
}}>Delete</DropListItem>
</svelte:fragment>
</DropList>
</TableCell>
</TableRow>
{/each}
</TableBody>
</Table>
<div class="u-flex u-margin-block-start-32 u-main-space-between">
<p class="text">Total results: {$indexes.length}</p>
</div>
{:else if $indexes?.length}
<Empty isButton single on:click={() => (showCreateIndex = true)}>
<p>Create your first attribute to get started</p>
</Empty>
<DropListItem
icon="trash"
on:click={() => {
selectedIndex = index;
showDelete = true;
}}>Delete</DropListItem>
</svelte:fragment>
</DropList>
</TableCell>
</TableRow>
{/each}
</TableBody>
</Table>
<div class="u-flex u-margin-block-start-32 u-main-space-between">
<p class="text">Total results: {$indexes.length}</p>
</div>
{:else}
<Empty single on:click={() => (showCreateIndex = true)}>
<div class="u-text-center">
<p class="text u-line-height-1-5">Create your first index to get started</p>
<p class="text u-line-height-1-5">Need a hand? Check out our documentation.</p>
</div>
<div class="u-flex u-gap-16">
<Button external href="https://appwrite.io/docs/databases#indexes" text>
Documentation
</Button>
<Button secondary on:click={() => (showCreateIndex = true)}
>Create index</Button>
</div>
</Empty>
{/if}
{:else}
<Empty isButton single on:click={() => (showCreateIndex = true)}>
<p>Create your first index to get started</p>
<Empty single on:click={() => (showCreateAttribute = true)}>
<div class="u-text-center">
<p class="text u-line-height-1-5">Create your first attribute to get started</p>
<p class="text u-line-height-1-5">Need a hand? Check out our documentation.</p>
</div>
<div class="u-flex u-gap-16">
<Button external href="https://appwrite.io/docs/databases#attributes" text>
Documentation
</Button>
<Button secondary on:click={() => (showCreateAttribute = true)}>
Create attribute
</Button>
</div>
</Empty>
{/if}
</Container>
@@ -124,3 +154,5 @@
<Delete bind:showDelete {selectedIndex} on:deleted={handleDelete} />
<Overview bind:showOverview {selectedIndex} />
{/if}
<CreateAttribute bind:showCreate={showCreateAttribute} />
@@ -101,13 +101,15 @@
sum={data.functions.total} />
</div>
{:else}
<Empty isButton single on:click={openWizard}>
<Empty single on:click={openWizard}>
<div class="u-text-center">
<p class="text">Create your first function to get started</p>
<p class="text">Need a hand? Check out our documentation.</p>
<p class="text u-line-height-1-5">Create your first function to get started</p>
<p class="text u-line-height-1-5">Need a hand? Check out our documentation.</p>
</div>
<div class="u-flex u-gap-12">
<Button external text>Documentation</Button>
<Button href="https://appwrite.io/docs/functions" external text>
Documentation
</Button>
<Button secondary on:click={openWizard}>Create function</Button>
</div>
</Empty>
@@ -128,20 +128,20 @@
</svelte:fragment>
</CardGrid>
{:else}
<Empty single isButton on:click={() => (showCreate = true)}>
<Empty single on:click={() => (showCreate = true)}>
<div class="u-text-center">
<p>
<p class="text u-line-height-1-5">
Create a new deployment, or activate an existing one to see your function in
action.
</p>
<p>Need a hand? Check out our documentation.</p>
<p class="text u-line-height-1-5">Need a hand? Check out our documentation.</p>
</div>
<div class="u-flex u-gap-12">
<Button text external href="https://appwrite.io/docs/functions#createFunction">
Documentation
</Button>
<Button secondary on:click={() => (showCreate = true)}>
Create Deployment
Create deployment
</Button>
</div>
</Empty>
@@ -235,19 +235,19 @@
</TableBody>
</Table>
{:else}
<Empty isButton single on:click={() => (showCreate = true)}>
<Empty single on:click={() => (showCreate = true)}>
<div class="u-text-center">
<p>
<p class="text u-line-height-1-5">
Create a new deployment, or activate an existing one to see your function in
action.
</p>
<p>Need a hand? Check out our documentation.</p>
<p class="text u-line-height-1-5">Need a hand? Check out our documentation.</p>
</div>
<div class="u-flex u-gap-12">
<Button text external href="https://appwrite.io/docs/functions#createFunction">
Documentation
</Button>
<Button secondary on:click={() => (showCreate = true)}>Create Deployment</Button>
<Button secondary on:click={() => (showCreate = true)}>Create deployment</Button>
</div>
</Empty>
{/if}
@@ -1,6 +1,5 @@
<script lang="ts">
import { Container } from '$lib/layout';
import { Button } from '$lib/elements/forms';
import { Pill } from '$lib/elements';
import { Copy, Empty, Status, Heading, Pagination } from '$lib/components';
import {
@@ -92,9 +91,8 @@
</TableBody>
</Table>
{:else}
<Empty isButton single>
<p>Execute your function to view execution logs</p>
<Button external secondary href="#">Documentation</Button>
<Empty single>
<p class="text u-line-height-1-5">Execute your function to view execution logs</p>
</Empty>
{/if}
<div class="u-flex u-margin-block-start-32 u-main-space-between">
@@ -359,18 +359,16 @@
</li>
{/each}
</TableList>
{:else}
<Empty isButton on:click={() => (showEvents = true)}>
Add a event to get started
</Empty>
{/if}
<div class="u-flex u-margin-block-start-16">
<Button text noMargin on:click={() => (showEvents = true)}>
<span class="icon-plus" aria-hidden="true" />
<span class="u-text">Add event</span>
</Button>
</div>
<div class="u-flex u-margin-block-start-16">
<Button text noMargin on:click={() => (showEvents = true)}>
<span class="icon-plus" aria-hidden="true" />
<span class="u-text">Add event</span>
</Button>
</div>
{:else}
<Empty on:click={() => (showEvents = true)}>Add a event to get started</Empty>
{/if}
</svelte:fragment>
<svelte:fragment slot="actions">
@@ -45,18 +45,15 @@
</li>
{/each}
</TableList>
<div class="u-flex u-margin-block-start-16">
<Button text noMargin on:click={() => (showCreate = !showCreate)}>
<span class="icon-plus" aria-hidden="true" />
<span class="u-text">Add event</span>
</Button>
</div>
{:else}
<Empty isButton on:click={() => (showCreate = !showCreate)}
>Add a event to get started
</Empty>
<Empty on:click={() => (showCreate = !showCreate)}>Add a event to get started</Empty>
{/if}
<div class="u-flex u-margin-block-start-16">
<Button text noMargin on:click={() => (showCreate = !showCreate)}>
<span class="icon-plus" aria-hidden="true" />
<span class="u-text">Add event</span>
</Button>
</div>
</WizardStep>
{#if showCreate}
@@ -100,19 +100,15 @@
{/each}
</TableBody>
</Table>
<div class="u-flex u-margin-block-start-16">
<Button text noMargin on:click={() => (showCreate = !showCreate)}>
<span class="icon-plus" aria-hidden="true" />
<span class="u-text">Create variable</span>
</Button>
</div>
{:else}
<span class="u-sep-block-end">VARIABLES</span>
<Empty isButton on:click={() => (showCreate = !showCreate)}
>Create a variable to get started
</Empty>
<Empty on:click={() => (showCreate = !showCreate)}>Create a variable to get started</Empty>
{/if}
<div class="u-flex u-margin-block-start-16">
<Button text noMargin on:click={() => (showCreate = !showCreate)}>
<span class="icon-plus" aria-hidden="true" />
<span class="u-text">Create variable</span>
</Button>
</div>
</WizardStep>
{#if showCreate}
@@ -59,14 +59,14 @@
</TableBody>
</Table>
{:else}
<Empty isButton single on:click={create}>
<Empty single on:click={create}>
<div class="u-text-center">
<p class="text u-line-height-1-5">Create your first API Key to get started</p>
<p class="text u-line-height-1-5">Need a hand? Check out our documentation.</p>
</div>
<div class="u-flex u-gap-12">
<Button external href="https://appwrite.io/docs/keys" text>Documentation</Button>
<Button secondary>Create API Key</Button>
<Button secondary on:click={create}>Create API Key</Button>
</div>
</Empty>
{/if}
@@ -139,16 +139,17 @@
</TableBody>
</Table>
{:else}
<Empty isButton single on:click={openWizard}>
<Empty single on:click={openWizard}>
<div class="common-section">
<div class="u-text-center common-section">
<p>Create your first Domain to get started</p>
<p class="text u-line-height-1-5">Create your first domain to get started</p>
<p class="text u-line-height-1-5">Need a hand? Check out our documentation.</p>
</div>
<div class="u-flex u-gap-16 common-section u-main-center">
<Button external href="https://appwrite.io/docs/custom-domains" text>
Documentation
</Button>
<Button secondary>Create domain</Button>
<Button secondary on:click={openWizard}>Create domain</Button>
</div>
</div>
</Empty>
@@ -71,10 +71,12 @@
</TableBody>
</Table>
{:else}
<Empty isButton single>
<Empty single>
<div class="common-section u-text-center">
<p class="text">Create your first Webhook to get startedNeed a hand?</p>
<p class="text">Check out our documentation.</p>
<p class="text u-line-height-1-5">
Create your first Webhook to get startedNeed a hand?
</p>
<p class="text u-line-height-1-5">Check out our documentation.</p>
</div>
<div class="u-flex u-gap-12 common-section">
<Button text href="https://appwrite.io/docs/webhooks">Documentation</Button>
@@ -239,18 +239,17 @@
</li>
{/each}
</TableList>
<div class="u-flex u-margin-block-start-16">
<Button text noMargin on:click={() => (showCreateEvent = true)}>
<span class="icon-plus" aria-hidden="true" />
<span class="u-text">Add event</span>
</Button>
</div>
{:else}
<Empty isButton on:click={() => (showCreateEvent = true)}>
<Empty on:click={() => (showCreateEvent = true)}>
Add a event to get started
</Empty>
{/if}
<div class="u-flex u-margin-block-start-16">
<Button text noMargin on:click={() => (showCreateEvent = true)}>
<span class="icon-plus" aria-hidden="true" />
<span class="u-text">Add event</span>
</Button>
</div>
</svelte:fragment>
<svelte:fragment slot="actions">
@@ -44,17 +44,15 @@
</li>
{/each}
</TableList>
<div class="u-flex u-margin-block-start-16">
<Button text on:click={() => (showCreate = !showCreate)}>
<span class="icon-plus" aria-hidden="true" />
<span class="u-text">Add event</span>
</Button>
</div>
{:else}
<Empty isButton on:click={() => (showCreate = !showCreate)}>
Add a event to get started
</Empty>
<Empty on:click={() => (showCreate = !showCreate)}>Add a event to get started</Empty>
{/if}
<div class="u-flex u-margin-block-start-16">
<Button text on:click={() => (showCreate = !showCreate)}>
<span class="icon-plus" aria-hidden="true" />
<span class="u-text">Add event</span>
</Button>
</div>
</WizardStep>
{#if showCreate}
@@ -91,14 +91,14 @@
sum={data.buckets.total} />
</div>
{:else}
<Empty isButton single on:click={() => (showCreate = true)}>
<Empty single on:click={() => (showCreate = true)}>
<div class="u-text-center">
<p class="text u-line-height-1-5">Create your first bucket to get started</p>
<p class="text u-line-height-1-5">Need a hand? Check out our documentation.</p>
</div>
<div class="u-flex u-gap-12">
<Button external href="https://appwrite.io/docs/storage" text>Documentation</Button>
<Button secondary>Create bucket</Button>
<Button secondary on:click={() => (showCreate = true)}>Create bucket</Button>
</div>
</Empty>
{/if}
@@ -191,16 +191,16 @@
>Clear Search</Button>
</EmptySearch>
{:else}
<Empty isButton single on:click={() => (showCreate = true)}>
<Empty single on:click={() => (showCreate = true)}>
<div class="u-text-center">
<p class="text u-line-height-1-5">Upload some files to get started</p>
<p class="text u-line-height-1-5">Need a hand? Check out our documentation.</p>
</div>
<div class="u-flex u-gap-12 ">
<div class="u-flex u-gap-16">
<Button external href="https://appwrite.io/docs/storage#createFile" text>
Documentation
</Button>
<Button secondary>Add file</Button>
<Button secondary on:click={() => (showCreate = true)}>Add file</Button>
</div>
</Empty>
{/if}