mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #56 from appwrite/empty-card
draft: empty card refactor
This commit is contained in:
@@ -1,11 +1,28 @@
|
||||
<script>
|
||||
export let dashed = false;
|
||||
export let centered = false;
|
||||
<script lang="ts">
|
||||
import { app } from '$lib/stores/app';
|
||||
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>
|
||||
|
||||
<article
|
||||
class="card common-section u-flex u-flex-vertical"
|
||||
class:is-border-dashed={dashed}
|
||||
class:u-cross-center={centered}>
|
||||
<slot />
|
||||
</article>
|
||||
{#if isButton}
|
||||
<button
|
||||
on:click
|
||||
class="card u-grid u-cross-center u-width-full-line dashed"
|
||||
class:common-section={single}>
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
{#if $app.themeInUse === 'dark'}
|
||||
<img src={EmptyDark} alt="create" aria-hidden="true" />
|
||||
{:else}
|
||||
<img src={EmptyLight} alt="create" aria-hidden="true" />
|
||||
{/if}
|
||||
<slot />
|
||||
</div>
|
||||
</button>
|
||||
{:else}
|
||||
<article class="card u-grid u-cross-center u-width-full-line" class:common-section={single}>
|
||||
<slot />
|
||||
</article>
|
||||
{/if}
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
<button on:click class="card is-border-dashed u-grid u-cross-center">
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
<slot />
|
||||
</div>
|
||||
</button>
|
||||
@@ -24,6 +24,5 @@ export { default as Alert } from './alert.svelte';
|
||||
export { default as Box } from './box.svelte';
|
||||
export { default as Search } from './search.svelte';
|
||||
export { default as GridItem1 } from './gridItem1.svelte';
|
||||
export { default as EmptyGridItem } from './emptyGridItem.svelte';
|
||||
export { default as Steps } from './steps.svelte';
|
||||
export { default as Step } from './step.svelte';
|
||||
|
||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 6.3 KiB |
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 6.3 KiB |
@@ -87,7 +87,7 @@
|
||||
</TableBody>
|
||||
</Table>
|
||||
{:else}
|
||||
<Empty centered>
|
||||
<Empty>
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
<div class="common-section">
|
||||
<p>No logs available</p>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { base } from '$app/paths';
|
||||
import { GridItem1, EmptyGridItem, Empty, Pagination, AvatarGroup } from '$lib/components';
|
||||
import { GridItem1, Empty, Pagination, AvatarGroup } from '$lib/components';
|
||||
import { Button } from '$lib/elements/forms';
|
||||
import { Container } from '$lib/layout';
|
||||
import CreateOrganization from '../../_createOrganization.svelte';
|
||||
@@ -68,16 +68,9 @@
|
||||
{/if}
|
||||
{/each}
|
||||
{#if $organizationList?.total < limit + offset && ($organizationList?.total % 2 !== 0 || $organizationList?.total % 4 === 0)}
|
||||
<EmptyGridItem on:click={() => (addOrganization = true)}>
|
||||
<div class="common-section">
|
||||
<Button secondary round>
|
||||
<i class="icon-plus" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Create a new organization</p>
|
||||
</div>
|
||||
</EmptyGridItem>
|
||||
<Empty isButton on:click={() => (addOrganization = true)}>
|
||||
<p>Create a new organization</p>
|
||||
</Empty>
|
||||
{/if}
|
||||
</ul>
|
||||
|
||||
@@ -86,19 +79,8 @@
|
||||
<Pagination {limit} bind:offset sum={$organizationList?.total} />
|
||||
</div>
|
||||
{:else}
|
||||
<Empty dashed centered>
|
||||
<div class="grid-item-1">
|
||||
<div class="u-flex u-flex-vertical u-cross-center ">
|
||||
<div class="common-section">
|
||||
<Button secondary round on:click={() => (addOrganization = true)}>
|
||||
<i class="icon-plus" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Create a new organization</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<Empty isButton single on:click={() => (addOrganization = true)}>
|
||||
<p>Create a new organization</p>
|
||||
</Empty>
|
||||
<div class="u-flex u-margin-block-start-32 u-main-space-between">
|
||||
<p class="text">Total results: {$organizationList?.total}</p>
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
</TableBody>
|
||||
</Table>
|
||||
{:else}
|
||||
<Empty centered>
|
||||
<Empty>
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
<div class="common-section">
|
||||
<p>No sessions available</p>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { afterNavigate, goto } from '$app/navigation';
|
||||
import { base } from '$app/paths';
|
||||
import { Pill } from '$lib/elements';
|
||||
import { GridItem1, EmptyGridItem, Empty, Pagination } from '$lib/components';
|
||||
import { GridItem1, Empty, Pagination } from '$lib/components';
|
||||
import { Button } from '$lib/elements/forms';
|
||||
import { Container } from '$lib/layout';
|
||||
import { Query, type Models } from '@aw-labs/appwrite-console';
|
||||
@@ -113,16 +113,9 @@
|
||||
{/if}
|
||||
{/each}
|
||||
{#if projects.length < limit + offset && (projects.length % 2 !== 0 || projects.length % 4 === 0)}
|
||||
<EmptyGridItem on:click={() => (showCreate = true)}>
|
||||
<div class="common-section">
|
||||
<Button secondary round>
|
||||
<i class="icon-plus" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Create a new project</p>
|
||||
</div>
|
||||
</EmptyGridItem>
|
||||
<Empty isButton on:click={() => (showCreate = true)}>
|
||||
<p>Create a new project</p>
|
||||
</Empty>
|
||||
{/if}
|
||||
</ul>
|
||||
|
||||
@@ -131,19 +124,8 @@
|
||||
<Pagination {limit} bind:offset sum={projects.length} />
|
||||
</div>
|
||||
{:else}
|
||||
<Empty dashed centered>
|
||||
<div class="grid-item-1">
|
||||
<div class="u-flex u-flex-vertical u-cross-center ">
|
||||
<div class="common-section">
|
||||
<Button secondary round on:click={() => (showCreate = true)}>
|
||||
<i class="icon-plus" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Create a new project</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<Empty isButton single on:click={() => (showCreate = true)}>
|
||||
<p>Create a new project</p>
|
||||
</Empty>
|
||||
<div class="u-flex u-margin-block-start-32 u-main-space-between">
|
||||
<p class="text">Total results: {projects?.length}</p>
|
||||
|
||||
@@ -118,27 +118,17 @@
|
||||
<Pagination limit={$pageLimit} bind:offset sum={$usersList.total} />
|
||||
</div>
|
||||
{:else}
|
||||
<Empty dashed centered>
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
<div
|
||||
class="common-section"
|
||||
use:event={{
|
||||
name: 'console_users',
|
||||
action: 'click_create',
|
||||
parameters: {
|
||||
type: 'user'
|
||||
}
|
||||
}}>
|
||||
<Button secondary round on:click={() => (showCreate = true)}>
|
||||
<span class="icon-plus" aria-hidden="true" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Add Your First User To Get Started</p>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<Button secondary href="#">Documentation</Button>
|
||||
</div>
|
||||
<Empty isButton single on:click={() => (showCreate = true)}>
|
||||
<div
|
||||
class="common-section"
|
||||
use:event={{
|
||||
name: 'console_users',
|
||||
action: 'click_create',
|
||||
parameters: {
|
||||
type: 'user'
|
||||
}
|
||||
}}>
|
||||
<p>Add Your First User To Get Started</p>
|
||||
</div>
|
||||
</Empty>
|
||||
{/if}
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
<Pagination {limit} bind:offset sum={$teamsList.total} />
|
||||
</div>
|
||||
{:else}
|
||||
<Empty dashed centered>
|
||||
<Empty isButton single on:click={() => (showCreate = true)}>
|
||||
<div
|
||||
class="common-section"
|
||||
use:event={{
|
||||
@@ -107,16 +107,8 @@
|
||||
type: 'team'
|
||||
}
|
||||
}}>
|
||||
<Button secondary round on:click={() => (showCreate = true)}>
|
||||
<span class="icon-plus" aria-hidden="true" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Create your first team to get started</p>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<Button secondary href="#">Documentation</Button>
|
||||
</div>
|
||||
</Empty>
|
||||
{/if}
|
||||
</Container>
|
||||
|
||||
+1
-1
@@ -88,7 +88,7 @@
|
||||
</TableBody>
|
||||
</Table>
|
||||
{:else}
|
||||
<Empty centered>
|
||||
<Empty>
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
<div class="common-section">
|
||||
<p>No logs available</p>
|
||||
|
||||
+2
-14
@@ -124,20 +124,8 @@
|
||||
<Pagination limit={$pageLimit} bind:offset sum={$memberships.total} />
|
||||
</div>
|
||||
{:else}
|
||||
<Empty dashed centered>
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
<div class="common-section">
|
||||
<Button secondary round on:click={() => (showCreate = true)}>
|
||||
<span class="icon-plus" aria-hidden="true" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Add your first member to get started</p>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<Button external secondary href="#">Documentation</Button>
|
||||
</div>
|
||||
</div>
|
||||
<Empty isButton single on:click={() => (showCreate = true)}>
|
||||
<p>Add your first member to get started</p>
|
||||
</Empty>
|
||||
{/if}
|
||||
</Container>
|
||||
|
||||
+1
-1
@@ -88,7 +88,7 @@
|
||||
</TableBody>
|
||||
</Table>
|
||||
{:else}
|
||||
<Empty centered>
|
||||
<Empty>
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
<div class="common-section">
|
||||
<p>No logs available</p>
|
||||
|
||||
+1
-1
@@ -78,7 +78,7 @@
|
||||
</TableBody>
|
||||
</Table>
|
||||
{:else}
|
||||
<Empty centered>
|
||||
<Empty>
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
<div class="common-section">
|
||||
<p>No memberships available</p>
|
||||
|
||||
+1
-1
@@ -91,7 +91,7 @@
|
||||
</TableBody>
|
||||
</Table>
|
||||
{:else}
|
||||
<Empty centered>
|
||||
<Empty>
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
<div class="common-section">
|
||||
<p>No session available</p>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { page } from '$app/stores';
|
||||
import { goto } from '$app/navigation';
|
||||
import { Button } from '$lib/elements/forms';
|
||||
import { Empty, EmptyGridItem, Pagination, Copy, GridItem1 } from '$lib/components';
|
||||
import { Empty, Pagination, Copy, GridItem1 } from '$lib/components';
|
||||
import { Pill } from '$lib/elements';
|
||||
import { Query, type Models } from '@aw-labs/appwrite-console';
|
||||
import Create from './_create.svelte';
|
||||
@@ -49,16 +49,9 @@
|
||||
</GridItem1>
|
||||
{/each}
|
||||
{#if ($databaseList.total % 2 !== 0 || $databaseList.total % 4 === 0) && $databaseList.total - offset <= limit}
|
||||
<EmptyGridItem on:click={() => (showCreate = true)}>
|
||||
<div class="common-section">
|
||||
<Button secondary round>
|
||||
<i class="icon-plus" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Create a new database</p>
|
||||
</div>
|
||||
</EmptyGridItem>
|
||||
<Empty isButton on:click={() => (showCreate = true)}>
|
||||
<p>Create a new database</p>
|
||||
</Empty>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -67,20 +60,8 @@
|
||||
<Pagination {limit} bind:offset sum={$databaseList.total} />
|
||||
</div>
|
||||
{:else}
|
||||
<Empty dashed centered>
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
<div class="common-section">
|
||||
<Button secondary round on:click={() => (showCreate = true)}>
|
||||
<i class="icon-plus" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Create your first Database to get started</p>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<Button secondary href="#">Documentation</Button>
|
||||
</div>
|
||||
</div>
|
||||
<Empty isButton single on:click={() => (showCreate = true)}>
|
||||
<p>Create your first Database to get started</p>
|
||||
</Empty>
|
||||
{/if}
|
||||
</Container>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { page } from '$app/stores';
|
||||
import { goto } from '$app/navigation';
|
||||
import { Button } from '$lib/elements/forms';
|
||||
import { Empty, EmptyGridItem, Pagination, Copy, GridItem1 } from '$lib/components';
|
||||
import { Empty, Pagination, Copy, GridItem1 } from '$lib/components';
|
||||
import { Pill } from '$lib/elements';
|
||||
import { Query, type Models } from '@aw-labs/appwrite-console';
|
||||
import Create from './_create.svelte';
|
||||
@@ -63,16 +63,9 @@
|
||||
</GridItem1>
|
||||
{/each}
|
||||
{#if ($collections.total % 2 !== 0 || $collections.total % 4 === 0) && $collections.total - offset <= limit}
|
||||
<EmptyGridItem on:click={() => (showCreate = true)}>
|
||||
<div class="common-section">
|
||||
<Button secondary round>
|
||||
<i class="icon-plus" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Create a new collection</p>
|
||||
</div>
|
||||
</EmptyGridItem>
|
||||
<Empty isButton on:click={() => (showCreate = true)}>
|
||||
<p>Create a new collection</p>
|
||||
</Empty>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -97,20 +90,8 @@
|
||||
<Pagination {limit} bind:offset sum={$collections?.total} />
|
||||
</div>
|
||||
{:else}
|
||||
<Empty dashed centered>
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
<div class="common-section">
|
||||
<Button secondary round on:click={() => (showCreate = true)}>
|
||||
<i class="icon-plus" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Create your first collection to get started</p>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<Button secondary href="#">Documentation</Button>
|
||||
</div>
|
||||
</div>
|
||||
<Empty isButton single on:click={() => (showCreate = true)}>
|
||||
<p>Create your first collection to get started</p>
|
||||
</Empty>
|
||||
{/if}
|
||||
</Container>
|
||||
|
||||
+2
-14
@@ -82,20 +82,8 @@
|
||||
<Pagination {limit} bind:offset sum={$documentList.total} />
|
||||
</div>
|
||||
{:else}
|
||||
<Empty dashed centered>
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
<div class="common-section">
|
||||
<Button secondary round on:click={openWizard}>
|
||||
<span class="icon-plus" aria-hidden="true" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Crate your first document to get started</p>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<Button secondary href="#">Documentation</Button>
|
||||
</div>
|
||||
</div>
|
||||
<Empty isButton single on:click={openWizard}>
|
||||
<p>Crate your first document to get started</p>
|
||||
</Empty>
|
||||
{/if}
|
||||
</Container>
|
||||
|
||||
+2
-14
@@ -115,20 +115,8 @@
|
||||
<Pagination {limit} bind:offset sum={$collection?.attributes?.length} />
|
||||
</div>
|
||||
{:else}
|
||||
<Empty dashed centered>
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
<div class="common-section">
|
||||
<Button secondary round on:click={() => (showCreate = true)}>
|
||||
<span class="icon-plus" aria-hidden="true" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Crate your first attribute to get started</p>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<Button secondary href="#">Documentation</Button>
|
||||
</div>
|
||||
</div>
|
||||
<Empty isButton single on:click={() => (showCreate = true)}>
|
||||
<p>Crate your first attribute to get started</p>
|
||||
</Empty>
|
||||
{/if}
|
||||
</Container>
|
||||
|
||||
+4
-28
@@ -157,36 +157,12 @@
|
||||
<Pagination {limit} bind:offset sum={$indexList?.total} />
|
||||
</div>
|
||||
{:else if $collection.indexes?.length}
|
||||
<Empty dashed centered>
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
<div class="common-section">
|
||||
<Button secondary round on:click={() => (showCreateIndex = true)}>
|
||||
<span class="icon-plus" aria-hidden="true" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Create your first attribute to get started</p>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<Button secondary href="#?">Documentation</Button>
|
||||
</div>
|
||||
</div>
|
||||
<Empty isButton single on:click={() => (showCreateIndex = true)}>
|
||||
<p>Create your first attribute to get started</p>
|
||||
</Empty>
|
||||
{:else}
|
||||
<Empty dashed centered>
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
<div class="common-section">
|
||||
<Button secondary round on:click={() => (showCreateIndex = true)}>
|
||||
<span class="icon-plus" aria-hidden="true" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Create your first index to get started</p>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<Button secondary href="#">Documentation</Button>
|
||||
</div>
|
||||
</div>
|
||||
<Empty isButton single on:click={() => (showCreateIndex = true)}>
|
||||
<p>Create your first index to get started</p>
|
||||
</Empty>
|
||||
{/if}
|
||||
</Container>
|
||||
|
||||
@@ -41,13 +41,18 @@
|
||||
<Pagination {limit} bind:offset sum={response.total} />
|
||||
{:else if search}
|
||||
<Empty>
|
||||
<svelte:fragment slot="header"
|
||||
>No results found for <b>{search}</b></svelte:fragment>
|
||||
<div class="u-flex u-flex-vertical">
|
||||
No results found for <b>{search}</b>
|
||||
</div>
|
||||
</Empty>
|
||||
{:else}
|
||||
<Empty>
|
||||
<svelte:fragment slot="header">No Functions Found</svelte:fragment>
|
||||
You haven't created any functions for your project yet.
|
||||
<div class="u-flex u-flex-vertical">
|
||||
<div class="common-section">No Functions Found</div>
|
||||
<div class="common-section">
|
||||
You haven't created any functions for your project yet.
|
||||
</div>
|
||||
</div>
|
||||
</Empty>
|
||||
{/if}
|
||||
{/await}
|
||||
|
||||
@@ -48,8 +48,12 @@
|
||||
</Table>
|
||||
{:else}
|
||||
<Empty>
|
||||
<svelte:fragment slot="header">No API Keys Found</svelte:fragment>
|
||||
You haven't created any API keys for your project yet.
|
||||
<div class="u-flex u-flex-vertical">
|
||||
<div class="common-section">No API Keys Found</div>
|
||||
<div class="common-section">
|
||||
You haven't created any API keys for your project yet.
|
||||
</div>
|
||||
</div>
|
||||
</Empty>
|
||||
{/if}
|
||||
<Button on:click={() => (showCreate = true)}>Add API Key</Button>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { page } from '$app/stores';
|
||||
import { goto } from '$app/navigation';
|
||||
import { Button } from '$lib/elements/forms';
|
||||
import { Empty, Pagination, Copy, GridItem1, EmptyGridItem } from '$lib/components';
|
||||
import { Empty, Pagination, Copy, GridItem1 } from '$lib/components';
|
||||
import { Pill } from '$lib/elements';
|
||||
import { Query, type Models } from '@aw-labs/appwrite-console';
|
||||
import Create from './_create.svelte';
|
||||
@@ -82,16 +82,9 @@
|
||||
</GridItem1>
|
||||
{/each}
|
||||
{#if $bucketList.total % 2 !== 0}
|
||||
<EmptyGridItem on:click={() => (showCreate = true)}>
|
||||
<div class="common-section">
|
||||
<Button secondary round>
|
||||
<i class="icon-plus" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Add a new bucket</p>
|
||||
</div>
|
||||
</EmptyGridItem>
|
||||
<Empty isButton on:click={() => (showCreate = true)}>
|
||||
<p>Add a new bucket</p>
|
||||
</Empty>
|
||||
{/if}
|
||||
</ul>
|
||||
|
||||
@@ -116,22 +109,8 @@
|
||||
<Pagination limit={$pageLimit} bind:offset sum={$bucketList?.total} />
|
||||
</div>
|
||||
{:else}
|
||||
<Empty dashed centered>
|
||||
<div class="grid-item-1">
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
<div class="common-section">
|
||||
<Button secondary round on:click={() => (showCreate = true)}>
|
||||
<i class="icon-plus" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Add your first bucket to get started</p>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<Button secondary href="#">Documentation</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<Empty isButton single on:click={() => (showCreate = true)}>
|
||||
<p>Add your first bucket to get started</p>
|
||||
</Empty>
|
||||
{/if}
|
||||
</Container>
|
||||
|
||||
@@ -195,20 +195,8 @@
|
||||
<Pagination limit={$pageLimit} bind:offset sum={$files?.total} />
|
||||
</div>
|
||||
{:else}
|
||||
<Empty dashed centered>
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
<div class="common-section">
|
||||
<Button secondary round on:click={() => (showCreate = true)}>
|
||||
<i class="icon-plus" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Upload some files to get started</p>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<Button secondary href="#">Documentation</Button>
|
||||
</div>
|
||||
</div>
|
||||
<Empty isButton single on:click={() => (showCreate = true)}>
|
||||
<p>Upload some files to get started</p>
|
||||
</Empty>
|
||||
{/if}
|
||||
</Container>
|
||||
|
||||
@@ -46,8 +46,12 @@
|
||||
</Table>
|
||||
{:else}
|
||||
<Empty>
|
||||
<svelte:fragment slot="header">No Webhooks Found</svelte:fragment>
|
||||
You haven't created any webhooks for your project yet.
|
||||
<div class="u-flex u-flex-vertical">
|
||||
<div class="common-section">No Webhooks Found</div>
|
||||
<div class="common-section">
|
||||
You haven't created any webhooks for your project yet.
|
||||
</div>
|
||||
</div>
|
||||
</Empty>
|
||||
{/if}
|
||||
{/await}
|
||||
|
||||
Reference in New Issue
Block a user