tmp-console-sdk

This commit is contained in:
shimon committed 2023-02-08 16:34:42 +02:00
1 parent 3eadb551d0
commit 9d414f486c
5 files changed
+16 -14

No files matched your search

+5 -4
View File
@@ -10,7 +10,7 @@
"dependencies": {
"@analytics/google-analytics": "^1.0.5",
"@appwrite.io/pink": "^0.0.3",
"@aw-labs/appwrite-console": "^13.1.0",
"@aw-labs/appwrite-console": "npm:appwrite-shimon@^7.1.0",
"@popperjs/core": "^2.11.6",
"@sentry/svelte": "^7.36.0",
"@sentry/tracing": "^7.36.0",
@@ -161,9 +161,10 @@
"integrity": "sha512-GFOodekDck6xX7OAZuI1mo7F87ThEZ9Gt0xMsgTR79zkWcnBRq0+J89pFWRPAtFNEVMPQLVHuu6s8S4UleHwtQ=="
},
"node_modules/@aw-labs/appwrite-console": {
"version": "13.1.0",
"resolved": "https://registry.npmjs.org/@aw-labs/appwrite-console/-/appwrite-console-13.1.0.tgz",
"integrity": "sha512-1FyKke5b3vx+D3VfNYd3YnFhzUOlsj9bD+KTRLWA4WRItb55thFVZJMWQQ4XnZtDiLPuJAn2XjbMSfMr+9XYwg==",
"name": "appwrite-shimon",
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/appwrite-shimon/-/appwrite-shimon-7.1.0.tgz",
"integrity": "sha512-yYZqZfL7SlbAnM7HOwxkZSQ9XhHMr+vmhmiAbB2K9+5FeWlmL+W3atdRKL5rp0Tq0BotRywX8Bf2LwTyZy1uqw==",
"dependencies": {
"cross-fetch": "3.1.5",
"isomorphic-form-data": "2.0.0"
+1 -1
View File
@@ -21,7 +21,7 @@
"dependencies": {
"@analytics/google-analytics": "^1.0.5",
"@appwrite.io/pink": "^0.0.3",
"@aw-labs/appwrite-console": "^13.1.0",
"@aw-labs/appwrite-console": "npm:appwrite-shimon@^7.1.0",
"@popperjs/core": "^2.11.6",
"@sentry/svelte": "^7.36.0",
"@sentry/tracing": "^7.36.0",
@@ -65,7 +65,8 @@
<Onboard {projectId} />
{:else}
{#if $usage}
{@const storage = humanFileSize(total($usage.storage))}
{@const storage = humanFileSize(total($usage.filesStorage))}
<section class="common-section">
<div class="grid-dashboard-1s-2m-6l">
<div class="card is-2-columns-medium-screen is-3-columns-large-screen">
@@ -89,14 +90,14 @@
<div class="grid-item-1-end-start">
<div class="heading-level-4">
{format(total($usage.documents))}
{format(total($usage.documentsTotal))}
</div>
<div>Documents</div>
</div>
<div class="grid-item-1-end-end">
<div class="text">
Databases: {format(total($usage.databases))}
Databases: {format(total($usage.databasesTotal))}
</div>
</div>
</div>
@@ -124,7 +125,7 @@
<div class="grid-item-1-end-end">
<div class="text">
Buckets: {format(total($usage.buckets))}
Buckets: {format(total($usage.bucketsTotal))}
</div>
</div>
</div>
@@ -144,7 +145,7 @@
<div class="grid-item-1-end-start">
<div class="heading-level-4">
{format(total($usage.users))}
{format(total($usage.usersTotal))}
</div>
<div>Users</div>
</div>
@@ -165,7 +166,7 @@
<div class="grid-item-1-end-start">
<div class="heading-level-4">
{format(total($usage.executions))}
{format(total($usage.executionsTotal))}
</div>
<div>Executions</div>
</div>
@@ -17,7 +17,7 @@
date: number;
value: number;
}>;
$: bandwith = humanFileSize(total($usage.network));
$: bandwith = humanFileSize(total($usage?.network));
$: if (period) {
showPeriod = false;
@@ -25,7 +25,7 @@
<div class="u-flex u-gap-16 u-main-space-between">
<div>
<div class="heading-level-4">
{format(total($usage.requests))}
{format(total($usage?.requestsTotal))}
</div>
<div>Requests</div>
</div>
@@ -41,7 +41,7 @@
</svelte:fragment>
</DropList>
</div>
{#if total($usage.requestsTotal) !== 0}
{#if total($usage?.requestsTotal) !== 0}
<div style="height: 12rem;">
<LineChart
options={{