mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix(databases): remove leftover per-table Usage tab
Same cleanup as #3128, one level down: the per-table Usage tab still called tablesDB.getTableUsage(), which is going away with the backend usage-endpoint removal and is already showing empty data on cloud.
This commit is contained in:
1 parent
1d1eabcec7
commit
90057188f2
3 files changed
-35
No files matched your search
-6
@@ -32,12 +32,6 @@
|
||||
title: 'Indexes',
|
||||
event: 'indexes'
|
||||
},
|
||||
{
|
||||
href: `${path}/usage`,
|
||||
title: 'Usage',
|
||||
event: 'usage',
|
||||
hasChildren: true
|
||||
},
|
||||
{
|
||||
href: `${path}/settings`,
|
||||
title: 'Settings',
|
||||
|
||||
-11
@@ -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.rows);
|
||||
const total = $derived(data.rowsTotal);
|
||||
</script>
|
||||
|
||||
<Usage {count} {total} />
|
||||
-18
@@ -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).tablesDB.getTableUsage({
|
||||
databaseId: params.database,
|
||||
tableId: params.table,
|
||||
range: period
|
||||
}))
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user