mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
chore: update naming convention
This commit is contained in:
@@ -213,13 +213,13 @@ export type OrganizationUsage = {
|
||||
executions: Array<Models.Metric>;
|
||||
databasesReads: Array<Models.Metric>;
|
||||
databasesWrites: Array<Models.Metric>;
|
||||
fileTransformations: Array<Models.Metric>;
|
||||
imageTransformations: Array<Models.Metric>;
|
||||
executionsTotal: number;
|
||||
filesStorageTotal: number;
|
||||
buildsStorageTotal: number;
|
||||
databasesReadsTotal: number;
|
||||
databasesWritesTotal: number;
|
||||
fileTransformationsTotal: number;
|
||||
imageTransformationsTotal: number;
|
||||
deploymentsStorageTotal: number;
|
||||
executionsMBSecondsTotal: number;
|
||||
buildsMBSecondsTotal: number;
|
||||
@@ -237,7 +237,6 @@ export type OrganizationUsage = {
|
||||
users: number;
|
||||
authPhoneTotal: number;
|
||||
authPhoneEstimate: number;
|
||||
fileTransformations: number;
|
||||
}>;
|
||||
authPhoneTotal: number;
|
||||
authPhoneEstimate: number;
|
||||
|
||||
@@ -188,11 +188,11 @@ export type UsageBuckets = {
|
||||
/**
|
||||
* Aggregated statistics of bucket file transformations per period.
|
||||
*/
|
||||
fileTransformations: Metric[];
|
||||
imageTransformations: Metric[];
|
||||
/**
|
||||
* Total aggregated number of file transformations.
|
||||
*/
|
||||
fileTransformationsTotal: number;
|
||||
imageTransformationsTotal: number;
|
||||
};
|
||||
/**
|
||||
* UsageFunctions
|
||||
|
||||
@@ -266,7 +266,7 @@
|
||||
The total number of image transformations across all projects in your organization.
|
||||
</p>
|
||||
<svelte:fragment slot="aside">
|
||||
{#if data.organizationUsage.fileTransformationsTotal}
|
||||
{#if data.organizationUsage.imageTransformationsTotal}
|
||||
<div style:margin-top="-1.5em" style:margin-bottom="-1em">
|
||||
<BarChart
|
||||
options={{
|
||||
@@ -280,7 +280,7 @@
|
||||
{
|
||||
name: 'Transformations',
|
||||
data: [
|
||||
...(data.organizationUsage.fileTransformations ?? []).map(
|
||||
...(data.organizationUsage.imageTransformations ?? []).map(
|
||||
(e) => [e.date, e.value]
|
||||
)
|
||||
]
|
||||
@@ -292,7 +292,7 @@
|
||||
legendData={[
|
||||
{
|
||||
name: 'Transformations',
|
||||
value: data.organizationUsage.fileTransformationsTotal
|
||||
value: data.organizationUsage.imageTransformationsTotal
|
||||
}
|
||||
]} />
|
||||
|
||||
|
||||
@@ -34,8 +34,8 @@ export const load: PageLoad = async ({ params, parent }) => {
|
||||
databasesWrites: null,
|
||||
databasesReadsTotal: null,
|
||||
databasesWritesTotal: null,
|
||||
fileTransformations: null,
|
||||
fileTransformationsTotal: null
|
||||
imageTransformations: null,
|
||||
imageTransformationsTotal: null
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
+2
-2
@@ -7,8 +7,8 @@
|
||||
export let data: PageData;
|
||||
$: filesTotal = data.filesTotal;
|
||||
$: files = data.files;
|
||||
$: transformationsTotal = data.fileTransformationsTotal;
|
||||
$: transformations = data.fileTransformations;
|
||||
$: transformationsTotal = data.imageTransformationsTotal;
|
||||
$: transformations = data.imageTransformations;
|
||||
|
||||
console.log(data);
|
||||
</script>
|
||||
|
||||
+2
-2
@@ -16,7 +16,7 @@ export const load: PageLoad = async ({ params }) => {
|
||||
return {
|
||||
filesTotal: response.filesTotal,
|
||||
files: response.files as Metric[],
|
||||
fileTransformationsTotal: response.fileTransformationsTotal,
|
||||
fileTransformations: response.fileTransformations as Metric[]
|
||||
imageTransformationsTotal: response.imageTransformationsTotal,
|
||||
imageTransformations: response.imageTransformations as Metric[]
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user