mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: repo screens
This commit is contained in:
1 parent
4659414668
commit
2adf2a7c52
4 files changed
+20
-7
No files matched your search
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { EmptySearch, Paginator } from '$lib/components';
|
||||
import { Empty, EmptySearch, Paginator } from '$lib/components';
|
||||
import { Button, InputSearch, InputSelect } from '$lib/elements/forms';
|
||||
import { timeFromNow } from '$lib/helpers/date';
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
@@ -20,6 +20,7 @@
|
||||
import { VCSDetectionType, type Models } from '@appwrite.io/console';
|
||||
import { getFrameworkIcon } from '$lib/stores/sites';
|
||||
import { connectGitHub } from '$lib/stores/git';
|
||||
import Card from '../card.svelte';
|
||||
|
||||
let {
|
||||
action = $bindable('select'),
|
||||
@@ -147,7 +148,10 @@
|
||||
);
|
||||
}}
|
||||
bind:value={selectedInstallation} />
|
||||
<InputSearch placeholder="Search repositories" bind:value={search} />
|
||||
<InputSearch
|
||||
placeholder="Search repositories"
|
||||
bind:value={search}
|
||||
disabled={!search && !$repositories?.repositories?.length} />
|
||||
</Layout.Stack>
|
||||
{/await}
|
||||
</Layout.Stack>
|
||||
@@ -259,7 +263,7 @@
|
||||
</Table.Root>
|
||||
{/snippet}
|
||||
</Paginator>
|
||||
{:else}
|
||||
{:else if search}
|
||||
<EmptySearch hidePages hidePagination bind:search target="repositories">
|
||||
<svelte:fragment slot="actions">
|
||||
{#if search}
|
||||
@@ -269,6 +273,14 @@
|
||||
{/if}
|
||||
</svelte:fragment>
|
||||
</EmptySearch>
|
||||
{:else}
|
||||
<Card>
|
||||
<Layout.Stack alignItems="center" justifyContent="center">
|
||||
<Typography.Text variation="m-500" color="--fgcolor-neutral-tertiary">
|
||||
No repositories available
|
||||
</Typography.Text>
|
||||
</Layout.Stack>
|
||||
</Card>
|
||||
{/if}
|
||||
{/await}
|
||||
{/if}
|
||||
|
||||
@@ -57,8 +57,9 @@
|
||||
Missing a repository?
|
||||
</Typography.Text>
|
||||
<Typography.Text variation="m-400">
|
||||
Check your permissions in GitHub, your repository might be set to
|
||||
private.
|
||||
Make sure Appwrite has access to your GitHub repositories. If you chose
|
||||
specific repos, you may need to update your permissions to include the
|
||||
missing one.
|
||||
</Typography.Text>
|
||||
</Layout.Stack>
|
||||
<Layout.Stack gap="s" direction="row">
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
hasFilters
|
||||
analyticsSource="site_deployments"
|
||||
hideView>
|
||||
<Popover padding="none" let:toggle>
|
||||
<Popover padding="none" let:toggle placement="bottom-end">
|
||||
<Button size="s" on:click={toggle}>
|
||||
<Icon size="s" icon={IconPlus} />
|
||||
Create deployment
|
||||
|
||||
+1
-1
@@ -36,6 +36,6 @@
|
||||
<p data-private>Are you sure you want to cancel this deployment?</p>
|
||||
<svelte:fragment slot="footer">
|
||||
<Button text on:click={() => (showCancel = false)}>Cancel</Button>
|
||||
<Button secondary submit>Continue</Button>
|
||||
<Button submit>Confirm</Button>
|
||||
</svelte:fragment>
|
||||
</Confirm>
|
||||
Reference in new issue
Block a user