Merge remote-tracking branch 'origin/main' into feat/project-premium-geo-db-addon

This commit is contained in:
Damodar Lohani committed 2026-07-09 12:30:05 +05:45
commit 641e67f623
4 files changed
-44

No files matched your search

@@ -137,15 +137,6 @@
disabled: page.url.pathname.endsWith('indexes'),
group: 'collections'
},
{
label: 'Go to usage',
keys: ['g', 'u'],
callback() {
goto(withPath(basePath, '/usage'));
},
disabled: page.url.pathname.endsWith('usage'),
group: 'collections'
},
{
label: 'Go to settings',
keys: ['g', 's'],
@@ -27,12 +27,6 @@
title: 'Indexes',
event: 'indexes'
},
{
href: `${path}/usage`,
title: 'Usage',
event: 'usage',
hasChildren: true
},
{
href: `${path}/settings`,
title: 'Settings',
@@ -1,11 +0,0 @@
<script lang="ts">
import type { PageProps } from './$types';
import { Usage } from '$database/(entity)';
let { data }: PageProps = $props();
const count = $derived(data.documents);
const total = $derived(data.documentsTotal);
</script>
<Usage {count} {total} />
@@ -1,18 +0,0 @@
import { isValueOfStringEnum } from '$lib/helpers/types';
import { sdk } from '$lib/stores/sdk';
import { UsageRange } from '@appwrite.io/console';
import type { PageLoad } from './$types';
export const load: PageLoad = async ({ params }) => {
const period = isValueOfStringEnum(UsageRange, params.period)
? params.period
: UsageRange.ThirtyDays;
return {
...(await sdk.forProject(params.region, params.project).documentsDB.getCollectionUsage({
databaseId: params.database,
collectionId: params.collection,
range: period
}))
};
};