diff --git a/frontend/package.json b/frontend/package.json index 64744e8..ffe8a5c 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "frontend", - "version": "0.0.1", + "version": "0.1.0", "private": true, "scripts": { "dev": "vite dev", @@ -19,12 +19,14 @@ "@tailwindcss/forms": "^0.5.4", "@tailwindcss/typography": "^0.5.9", "@types/chart.js": "^2.9.37", + "@types/cookie": "^0.5.1", "@types/uuid": "^9.0.2", "@typescript-eslint/eslint-plugin": "^5.45.0", "@typescript-eslint/parser": "^5.45.0", "@urql/svelte": "^4.0.3", "autoprefixer": "^10.4.14", "chart.js": "^4.3.0", + "cookie": "^0.5.0", "daisyui": "^3.2.1", "dotenv": "^16.3.1", "eslint": "^8.28.0", diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index d771f88..7ebd1c0 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -26,6 +26,9 @@ devDependencies: '@types/chart.js': specifier: ^2.9.37 version: 2.9.37 + '@types/cookie': + specifier: ^0.5.1 + version: 0.5.1 '@types/uuid': specifier: ^9.0.2 version: 9.0.2 @@ -44,6 +47,9 @@ devDependencies: chart.js: specifier: ^4.3.0 version: 4.3.0 + cookie: + specifier: ^0.5.0 + version: 0.5.0 daisyui: specifier: ^3.2.1 version: 3.2.1 diff --git a/frontend/src/app.d.ts b/frontend/src/app.d.ts index 8b6c350..cefe3a6 100644 --- a/frontend/src/app.d.ts +++ b/frontend/src/app.d.ts @@ -2,15 +2,18 @@ // for information about these interfaces declare global { namespace App { - // interface Error { - // status: number; - // message: string; - // } + // interface Error {} interface Locals { session: boolean; } - // interface PageData {} + interface PageData { + user?: { + id: string; + username: string; + avatar: string; + }; + } // interface Platform {} } } diff --git a/frontend/src/app.html b/frontend/src/app.html index 8b457cb..89ea9b4 100644 --- a/frontend/src/app.html +++ b/frontend/src/app.html @@ -7,6 +7,6 @@ %sveltekit.head%
- %sveltekit.body% +