mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: check erroros
This commit is contained in:
@@ -79,7 +79,6 @@
|
||||
selectedRepository = $repositories.repositories[0].id;
|
||||
$repository = $repositories.repositories[0];
|
||||
}
|
||||
|
||||
return $repositories.repositories;
|
||||
}
|
||||
|
||||
@@ -173,7 +172,10 @@
|
||||
{:then response}
|
||||
{#if response?.length}
|
||||
<Paginator items={response} hideFooter={response?.length <= 6} limit={6}>
|
||||
{#snippet children(paginatedItems)}
|
||||
{#snippet children(
|
||||
paginatedItems: Models.ProviderRepositoryRuntime[] &
|
||||
Models.ProviderRepositoryFramework[]
|
||||
)}
|
||||
<Table.Root columns={1} let:root>
|
||||
{#each paginatedItems as repo}
|
||||
<Table.Row.Base {root}>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<script lang="ts">
|
||||
<script lang="ts" generics="T">
|
||||
import { Layout, Typography } from '@appwrite.io/pink-svelte';
|
||||
import PaginationInline from './paginationInline.svelte';
|
||||
import Limit from './limit.svelte';
|
||||
@@ -14,8 +14,8 @@
|
||||
gap = 's',
|
||||
children
|
||||
}: {
|
||||
items: unknown[];
|
||||
limit: number;
|
||||
items: T[];
|
||||
limit?: number;
|
||||
hideFooter?: boolean;
|
||||
hidePages?: boolean;
|
||||
hasLimit?: boolean;
|
||||
@@ -23,7 +23,7 @@
|
||||
gap?:
|
||||
| ('none' | 'xxxs' | 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl')
|
||||
| undefined;
|
||||
children: Snippet<[unknown[], number]>;
|
||||
children: Snippet<[T[], number]>;
|
||||
} = $props();
|
||||
|
||||
let total = $derived(items.length);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
export let selected: string[] = [];
|
||||
export let pageItemsIds: string[] = [];
|
||||
|
||||
function handleClick(e: MouseEvent) {
|
||||
function handleClick(e: CustomEvent) {
|
||||
if (!isHTMLInputElement(e.target)) return;
|
||||
if (e.target.checked) {
|
||||
const set = new Set(selected);
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
this={oAuthProvider.component}
|
||||
bind:provider={selectedProvider}
|
||||
bind:show={showProvider}
|
||||
on:close={() => {
|
||||
onclose={() => {
|
||||
selectedProvider = null;
|
||||
showProvider = false;
|
||||
}} />
|
||||
|
||||
+2
-1
@@ -22,6 +22,7 @@ import {
|
||||
IconToggle,
|
||||
IconViewList
|
||||
} from '@appwrite.io/pink-icons-svelte';
|
||||
import type { ComponentType } from 'svelte';
|
||||
|
||||
export type Option = {
|
||||
name:
|
||||
@@ -51,7 +52,7 @@ export type Option = {
|
||||
originalKey: string
|
||||
) => Promise<void>;
|
||||
format?: 'email' | 'ip' | 'url' | 'enum';
|
||||
icon: Component;
|
||||
icon: ComponentType;
|
||||
};
|
||||
|
||||
export const attributeOptions: Option[] = [
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
);
|
||||
|
||||
const selectedCollection = $derived.by(() =>
|
||||
sortedCollections()?.find((collection) => collection.$id === collectionId)
|
||||
sortedCollections?.find((collection) => collection.$id === collectionId)
|
||||
);
|
||||
|
||||
let openBottomSheet = $state(false);
|
||||
|
||||
Reference in New Issue
Block a user