diff --git a/src/lib/components/cardContainer.svelte b/src/lib/components/cardContainer.svelte new file mode 100644 index 000000000..4c37246ce --- /dev/null +++ b/src/lib/components/cardContainer.svelte @@ -0,0 +1,20 @@ + + +
Total results: 0
+There are no users that match your search.
-There are no users that match your search.
Total results: {$usersList.total}
-There are no teams that match your search.
Total results: {$teamsList.total}
-There are no members that match your search.
-There are no members that match your search.
Total results: {$memberships.total}
-Add your first member to get started
diff --git a/src/routes/console/project-[project]/databases/+page.svelte b/src/routes/console/project-[project]/databases/+page.svelte index 940a2fcce..cc4249673 100644 --- a/src/routes/console/project-[project]/databases/+page.svelte +++ b/src/routes/console/project-[project]/databases/+page.svelte @@ -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 } from '$lib/components'; + import { Empty, Pagination, Copy, GridItem1, CardContainer } from '$lib/components'; import { Pill } from '$lib/elements'; import { Query, type Models } from '@aw-labs/appwrite-console'; import Create from './_create.svelte'; @@ -34,9 +34,7 @@Create a new database
-Create a new database
+Total results: {$databaseList.total}
diff --git a/src/routes/console/project-[project]/databases/database/[database]/+page.svelte b/src/routes/console/project-[project]/databases/database/[database]/+page.svelte index 109598432..7a3993733 100644 --- a/src/routes/console/project-[project]/databases/database/[database]/+page.svelte +++ b/src/routes/console/project-[project]/databases/database/[database]/+page.svelte @@ -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 } from '$lib/components'; + import { Empty, Pagination, Copy, GridItem1, CardContainer } from '$lib/components'; import { Pill } from '$lib/elements'; import { Query, type Models } from '@aw-labs/appwrite-console'; import Create from './_create.svelte'; @@ -12,7 +12,6 @@ import { cardLimit } from '$lib/stores/layout'; let showCreate = false; - let search = ''; let offset = 0; const project = $page.params.project; @@ -24,8 +23,7 @@ ); }; - $: collections.load(databaseId, [Query.limit($cardLimit), Query.offset(offset)], search); - $: if (search) offset = 0; + $: collections.load(databaseId, [Query.limit($cardLimit), Query.offset(offset)]);Create a new collection
-Create a new collection
+Total results: {$collections.total}
There are no collections that match your search.
-Total results: {$collections?.total}
-Create your first collection to get started
diff --git a/src/routes/console/project-[project]/databases/database/[database]/collection/[collection]/indexes/+page.svelte b/src/routes/console/project-[project]/databases/database/[database]/collection/[collection]/indexes/+page.svelte index d538d15f2..3eb349bf2 100644 --- a/src/routes/console/project-[project]/databases/database/[database]/collection/[collection]/indexes/+page.svelte +++ b/src/routes/console/project-[project]/databases/database/[database]/collection/[collection]/indexes/+page.svelte @@ -1,6 +1,13 @@Add a new bucket
-Add a new bucket
+Total results: {$bucketList.total}
There are no buckets that match your search.
-Total results: {$bucketList?.total}
-Add your first bucket to get started
diff --git a/src/routes/console/project-[project]/storage/bucket/[bucket]/+page.svelte b/src/routes/console/project-[project]/storage/bucket/[bucket]/+page.svelte index 88faf3648..07852c7a6 100644 --- a/src/routes/console/project-[project]/storage/bucket/[bucket]/+page.svelte +++ b/src/routes/console/project-[project]/storage/bucket/[bucket]/+page.svelte @@ -5,6 +5,7 @@ import { Button } from '$lib/elements/forms'; import { Empty, + EmptySearch, Pagination, Avatar, Search, @@ -179,21 +180,13 @@There are no files that match your search.
-There are no files that match your search.
Total results: {$files?.total}
-Upload some files to get started
diff --git a/src/routes/console/project-[project]/storage/store.ts b/src/routes/console/project-[project]/storage/store.ts index 64130f4d3..dac5aed69 100644 --- a/src/routes/console/project-[project]/storage/store.ts +++ b/src/routes/console/project-[project]/storage/store.ts @@ -5,12 +5,12 @@ import { cachedStore } from '$lib/helpers/cache'; export const bucketList = cachedStore< Models.BucketList, { - load: (queries: string[], search: string) => Promise