mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
types fix
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
import type { UsagePeriods } from '$lib/layout';
|
||||
import { createEventDispatcher } from 'svelte';
|
||||
import { BarChart } from '$lib/charts';
|
||||
import type { Metric } from '$lib/sdk/usage';
|
||||
|
||||
export let period: UsagePeriods;
|
||||
|
||||
@@ -14,8 +13,11 @@
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
$: network = $usage?.network as Metric[];
|
||||
$: bandwith = humanFileSize(totalMetrics($usage?.network as Metric[]));
|
||||
$: network = $usage?.network as unknown as Array<{
|
||||
date: number;
|
||||
value: number;
|
||||
}>;
|
||||
$: bandwith = humanFileSize(totalMetrics($usage?.network));
|
||||
|
||||
$: if (period) {
|
||||
showPeriod = false;
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
import { createEventDispatcher } from 'svelte';
|
||||
import { LineChart } from '$lib/charts';
|
||||
import { formatNum } from '$lib/helpers/string';
|
||||
import type { Metric } from '$lib/sdk/usage';
|
||||
|
||||
export let period: UsagePeriods;
|
||||
|
||||
@@ -14,7 +13,10 @@
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
$: requests = $usage?.requests as Metric[];
|
||||
$: requests = $usage?.requests as unknown as Array<{
|
||||
date: number;
|
||||
value: number;
|
||||
}>;
|
||||
|
||||
$: if (period) {
|
||||
showPeriod = false;
|
||||
|
||||
Reference in New Issue
Block a user