Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion frontend/src/routes/__root.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { ReactQueryDevtools } from "@tanstack/react-query-devtools"
import { createRootRoute, Outlet } from "@tanstack/react-router"
import { createRootRoute, HeadContent, Outlet } from "@tanstack/react-router"
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools"
import ErrorComponent from "@/components/Common/ErrorComponent"
import NotFound from "@/components/Common/NotFound"

export const Route = createRootRoute({
component: () => (
<>
<HeadContent />
<Outlet />
<TanStackRouterDevtools position="bottom-right" />
<ReactQueryDevtools initialIsOpen={false} />
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/routes/_layout/admin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ function getUsersQueryOptions() {

export const Route = createFileRoute("/_layout/admin")({
component: Admin,
head: () => ({
meta: [
{
title: "Admin - FastAPI Cloud",
},
],
}),
})

function UsersTableContent() {
Expand Down
9 changes: 8 additions & 1 deletion frontend/src/routes/_layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ import useAuth from "@/hooks/useAuth"

export const Route = createFileRoute("/_layout/")({
component: Dashboard,
head: () => ({
meta: [
{
title: "Dashboard - FastAPI Cloud",
},
],
}),
})

function Dashboard() {
Expand All @@ -16,7 +23,7 @@ function Dashboard() {
Hi, {currentUser?.full_name || currentUser?.email} 👋
</h1>
<p className="text-muted-foreground">
Welcome back, nice to see you again!
Welcome back, nice to see you again!!!
</p>
</div>
</div>
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/routes/_layout/items.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ function getItemsQueryOptions() {

export const Route = createFileRoute("/_layout/items")({
component: Items,
head: () => ({
meta: [
{
title: "Items - FastAPI Cloud",
},
],
}),
})

function ItemsTableContent() {
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/routes/_layout/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ const tabsConfig = [

export const Route = createFileRoute("/_layout/settings")({
component: UserSettings,
head: () => ({
meta: [
{
title: "Settings - FastAPI Cloud",
},
],
}),
})

function UserSettings() {
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/routes/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ export const Route = createFileRoute("/login")({
})
}
},
head: () => ({
meta: [
{
title: "Log In - FastAPI Cloud",
},
],
}),
})

function Login() {
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/routes/recover-password.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ export const Route = createFileRoute("/recover-password")({
})
}
},
head: () => ({
meta: [
{
title: "Recover Password - FastAPI Cloud",
},
],
}),
})

function RecoverPassword() {
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/routes/reset-password.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ export const Route = createFileRoute("/reset-password")({
throw redirect({ to: "/login" })
}
},
head: () => ({
meta: [
{
title: "Reset Password - FastAPI Cloud",
},
],
}),
})

function ResetPassword() {
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/routes/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ export const Route = createFileRoute("/signup")({
})
}
},
head: () => ({
meta: [
{
title: "Sign Up - FastAPI Cloud",
},
],
}),
})

function SignUp() {
Expand Down