diff --git a/.env.example b/.env.example index e9457b89f..0f445822b 100644 --- a/.env.example +++ b/.env.example @@ -2,4 +2,6 @@ VITE_APPWRITE_ENDPOINT= VITE_APPWRITE_GROWTH_ENDPOINT= VITE_GA_PROJECT= VITE_SENTRY_DSN= -VITE_CONSOLE_MODE=self-hosted \ No newline at end of file +VITE_CONSOLE_MODE=self-hosted +VITE_CONSOLE_MODE=cloud +VITE_CONSOLE_TIER=base \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 000000000..64f113ab2 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,7 @@ +# This configuration file was automatically generated by Gitpod. +# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file) +# and commit this file to your remote git repository to share the goodness with others. + +tasks: + - init: npm install && npm run build + command: npm run dev diff --git a/src/lib/layout/unauthenticated.svelte b/src/lib/layout/unauthenticated.svelte index da3ee42dc..20cb1e814 100644 --- a/src/lib/layout/unauthenticated.svelte +++ b/src/lib/layout/unauthenticated.svelte @@ -1,10 +1,13 @@ @@ -67,7 +65,7 @@ {:else} {#if $usage} - {@const storage = humanFileSize(last($usage.filesStorage)?.value ?? 0)} + {@const storage = humanFileSize(total($usage.storage))}
@@ -91,14 +89,14 @@
- {format(last($usage.documentsTotal)?.value ?? 0)} + {format(total($usage.documents))}
Documents
- Databases: {format(last($usage.databasesTotal)?.value ?? 0)} + Databases: {format(total($usage.databases))}
@@ -126,7 +124,7 @@
- Buckets: {format(last($usage.bucketsTotal)?.value ?? 0)} + Buckets: {format(total($usage.buckets))}
@@ -146,7 +144,7 @@
- {format(last($usage.usersTotal)?.value ?? 0)} + {format(total($usage.users))}
Users
@@ -167,7 +165,7 @@
- {format(last($usage.executionsTotal)?.value ?? 0)} + {format(total($usage.executions))}
Executions
diff --git a/src/routes/console/project-[project]/overview/store.ts b/src/routes/console/project-[project]/overview/store.ts index 17c8ad4a1..3da5a6adf 100644 --- a/src/routes/console/project-[project]/overview/store.ts +++ b/src/routes/console/project-[project]/overview/store.ts @@ -1,16 +1,16 @@ -import { sdkForConsole } from '$lib/stores/sdk'; +import { sdkForProject } from '$lib/stores/sdk'; import { cachedStore } from '$lib/helpers/cache'; import type { Models } from '@aw-labs/appwrite-console'; export const usage = cachedStore< Models.UsageProject, { - load: (projectId: string, range: string) => Promise; + load: (range: string) => Promise; } >('projectUsage', function ({ set }) { return { - load: async (projectId, range) => { - const usages = await sdkForConsole.projects.getUsage(projectId, range); + load: async (range) => { + const usages = await sdkForProject.project.getUsage(range); set(usages); } }; diff --git a/src/routes/register/+page.svelte b/src/routes/register/+page.svelte index 9a7bdf65c..cc0b939c0 100644 --- a/src/routes/register/+page.svelte +++ b/src/routes/register/+page.svelte @@ -16,6 +16,11 @@ import FormList from '$lib/elements/forms/formList.svelte'; import { Dependencies } from '$lib/constants'; import { trackEvent } from '$lib/actions/analytics'; + import LoginLight from '$lib/images/login/login-light-mode.svg'; + import LoginDark from '$lib/images/login/login-dark-mode.svg'; + + let imgLight = LoginLight; + let imgDark = LoginDark; let name: string, mail: string, pass: string, disabled: boolean; let terms = false; @@ -42,7 +47,7 @@ Sign up - Appwrite - + Sign up
diff --git a/src/routes/register/invite/[slug]/+page.svelte b/src/routes/register/invite/[slug]/+page.svelte new file mode 100644 index 000000000..cf742a44c --- /dev/null +++ b/src/routes/register/invite/[slug]/+page.svelte @@ -0,0 +1,147 @@ + + + + Sign up - Appwrite + + + + {title} + + + + + + + + + By registering, you agree that you have read, understand, and acknowledge our + Privacy Policy + and accept our + General Terms of Use. + + + + + + + + + +
diff --git a/src/routes/register/invite/[slug]/mlh-dark.svg b/src/routes/register/invite/[slug]/mlh-dark.svg new file mode 100644 index 000000000..0e5dbcdf8 --- /dev/null +++ b/src/routes/register/invite/[slug]/mlh-dark.svg @@ -0,0 +1,181 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/routes/register/invite/[slug]/mlh-light.svg b/src/routes/register/invite/[slug]/mlh-light.svg new file mode 100644 index 000000000..2ec970a5d --- /dev/null +++ b/src/routes/register/invite/[slug]/mlh-light.svg @@ -0,0 +1,173 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +