diff --git a/.vscode/assignment-3.code-workspace b/.vscode/assignment-3.code-workspace index b1b825a9..7d178dcb 100644 --- a/.vscode/assignment-3.code-workspace +++ b/.vscode/assignment-3.code-workspace @@ -4,5 +4,28 @@ "path": ".." } ], - "settings": {} + "settings": { + "editor.formatOnSave": true, + "eslint.workingDirectories": ["./frontend"], + "[jsonc]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[typescript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[typescriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "javascript.preferences.importModuleSpecifier": "non-relative", + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit" + }, + "files.exclude": { + "frontend/.next": true, + "frontend/next-env.d.ts": true, + "frontend/node_modules": true, + "frontend/next.config.mjs": true, + "frontend/postcss.config.mjs": true + } + } } diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 704d3cd7..00000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "editor.formatOnSave": true, - "eslint.workingDirectories": ["./frontend"], - "[jsonc]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "[typescript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "[typescriptreact]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "javascript.preferences.importModuleSpecifier": "non-relative", - "editor.codeActionsOnSave": { - "source.fixAll.eslint": "explicit" - } -} diff --git a/backend/src/auth/dependencies.py b/backend/src/auth/dependencies.py index a47cdcee..8eeaabf8 100644 --- a/backend/src/auth/dependencies.py +++ b/backend/src/auth/dependencies.py @@ -27,7 +27,7 @@ async def __call__(self, request: Request) -> Optional[str]: ALGORITHM = "HS256" -ACCESS_TOKEN_EXPIRE_MINUTES = 30 +ACCESS_TOKEN_EXPIRE_MINUTES = 10080 ################## # Password utils # diff --git a/frontend/.env.example b/frontend/.env.example index 419cd7d0..3304aa4d 100644 --- a/frontend/.env.example +++ b/frontend/.env.example @@ -1,3 +1,4 @@ NEXT_PUBLIC_APP_NAME=TODO +NEXT_PUBLIC_FRONTEND_URL="http://localhost:3000" NEXT_PUBLIC_BACKEND_URL="http://localhost:8000" NEXT_PUBLIC_GOOGLE_CLIENT_ID= \ No newline at end of file diff --git a/frontend/.eslintrc.json b/frontend/.eslintrc.json index 4dd51cd9..b41e09fb 100644 --- a/frontend/.eslintrc.json +++ b/frontend/.eslintrc.json @@ -29,7 +29,9 @@ "alias": { "@": "./", "@/components": "./components/", - "@/lib": "./lib/" + "@/lib": "./lib/", + "@/hooks": "./hooks/", + "@/store": "./store/" }, "aliasForSubpaths": true } diff --git a/frontend/app/layout.tsx b/frontend/app/layout.tsx index 7292fbf7..a54f15ee 100644 --- a/frontend/app/layout.tsx +++ b/frontend/app/layout.tsx @@ -1,9 +1,9 @@ import type { Metadata } from "next"; import { Inter as FontSans } from "next/font/google"; -import Navbar from "@/components/navigation/navbar"; -import { Toaster } from "@/components/ui/toaster"; +import AppLayout from "@/components/layout/app-layout"; import { cn } from "@/lib/utils"; +import { StoreProvider } from "@/store/store-provider"; import "./globals.css"; @@ -29,11 +29,9 @@ export default function RootLayout({ fontSans.variable, )} > -