From c26f42638d0f701a2813857eb640461a381994da Mon Sep 17 00:00:00 2001 From: walaura Date: Mon, 1 Jun 2026 18:24:31 +0100 Subject: [PATCH 1/4] login page refresh --- app/components/ui/Input.vue | 22 ++++++++++++++++++++++ app/pages/login.vue | 30 ++++++++++++++++-------------- worker-configuration.d.ts | 24 +++++++++++++++++++++++- 3 files changed, 61 insertions(+), 15 deletions(-) create mode 100644 app/components/ui/Input.vue diff --git a/app/components/ui/Input.vue b/app/components/ui/Input.vue new file mode 100644 index 0000000..f3ddd7d --- /dev/null +++ b/app/components/ui/Input.vue @@ -0,0 +1,22 @@ + + + diff --git a/app/pages/login.vue b/app/pages/login.vue index feda179..2073463 100644 --- a/app/pages/login.vue +++ b/app/pages/login.vue @@ -1,8 +1,8 @@ diff --git a/worker-configuration.d.ts b/worker-configuration.d.ts index b68c6b7..ef09323 100644 --- a/worker-configuration.d.ts +++ b/worker-configuration.d.ts @@ -1,16 +1,38 @@ /* eslint-disable */ -// Generated by Wrangler by running `wrangler types` (hash: 1224b5b86c5bfbfdc24911a0d4ce5c0f) +// Generated by Wrangler by running `wrangler types` (hash: 933066b3a95ca283951caf6d326d4588) // Runtime types generated with workerd@1.20260529.1 2026-02-01 no_nodejs_compat_v2,nodejs_compat interface __BaseEnv_Env { DB: D1Database; IMAGES: ImagesBinding; CF_VERSION_METADATA: WorkerVersionMetadata; ASSETS: Fetcher; + CLOUDFLARE_ACCOUNT_ID: string; + CLOUDFLARE_DATABASE_ID: string; + CLOUDFLARE_PRODUCTION_DATABASE_ID: string; + CLOUDFLARE_STAGING_DATABASE_ID: string; + CLOUDFLARE_D1_TOKEN: string; + NUXT_SESSION_PASSWORD: string; } declare namespace Cloudflare { interface Env extends __BaseEnv_Env {} } interface Env extends __BaseEnv_Env {} +type StringifyValues> = { + [Binding in keyof EnvType]: EnvType[Binding] extends string ? EnvType[Binding] : string; +}; +declare namespace NodeJS { + interface ProcessEnv extends StringifyValues< + Pick< + Cloudflare.Env, + | "CLOUDFLARE_ACCOUNT_ID" + | "CLOUDFLARE_DATABASE_ID" + | "CLOUDFLARE_PRODUCTION_DATABASE_ID" + | "CLOUDFLARE_STAGING_DATABASE_ID" + | "CLOUDFLARE_D1_TOKEN" + | "NUXT_SESSION_PASSWORD" + > + > {} +} // Begin runtime types /*! ***************************************************************************** From 45d6f2889117aef6785d284948eb37f9e675e8fb Mon Sep 17 00:00:00 2001 From: walaura Date: Mon, 1 Jun 2026 18:27:39 +0100 Subject: [PATCH 2/4] reg --- app/pages/register.vue | 42 +++++++++++++++++++----------------------- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/app/pages/register.vue b/app/pages/register.vue index 69c4e6b..03e019b 100644 --- a/app/pages/register.vue +++ b/app/pages/register.vue @@ -1,14 +1,8 @@ From 3cc4437f7d6bc64f0eec81c7af8dc04fc692951b Mon Sep 17 00:00:00 2001 From: walaura Date: Mon, 1 Jun 2026 18:29:26 +0100 Subject: [PATCH 3/4] lints --- app/components/ui/Input.vue | 6 +++--- app/pages/login.vue | 2 +- app/pages/register.vue | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/components/ui/Input.vue b/app/components/ui/Input.vue index f3ddd7d..b629854 100644 --- a/app/components/ui/Input.vue +++ b/app/components/ui/Input.vue @@ -2,7 +2,7 @@ withDefaults( defineProps<{ type?: string; - placeholder?: string; + placeholder: string; label: string; }>(), { @@ -10,13 +10,13 @@ withDefaults( }, ); -const model = defineModel(); +const model = defineModel(); const id = useId(); diff --git a/app/pages/login.vue b/app/pages/login.vue index 2073463..c49d1d6 100644 --- a/app/pages/login.vue +++ b/app/pages/login.vue @@ -23,7 +23,7 @@ async function handleLogin() {