working pages and app router

This commit is contained in:
2024-09-07 08:52:03 -06:00
parent 3c86d3be88
commit 5b610e2777
135 changed files with 16129 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ export default function CourseList() {
return (
<div>
{courses.map((c) => (
<Link href={`/course/${c}`} key={c}>
<Link href={`/course/${c}`} key={c} shallow={true}>
{c}{" "}
</Link>
))}

View File

@@ -81,7 +81,7 @@ function Pages({ moduleName, day }: { moduleName: string; day: string }) {
encodeURIComponent(moduleName) +
"/page/" +
encodeURIComponent(p.name)
}
} shallow={true}
>
{p.name}
</Link>
@@ -142,7 +142,7 @@ function Quizzes({ moduleName, day }: { moduleName: string; day: string }) {
encodeURIComponent(moduleName) +
"/quiz/" +
encodeURIComponent(q.name)
}
} shallow={true}
>
{q.name}
</Link>
@@ -204,7 +204,7 @@ function Assignments({ moduleName, day }: { moduleName: string; day: string }) {
encodeURIComponent(moduleName) +
"/assignment/" +
encodeURIComponent(a.name)
}
} shallow={true}
>
{a.name}
</Link>

View File

@@ -7,6 +7,8 @@ export function makeQueryClient() {
// With SSR, we usually want to set some default staleTime
// above 0 to avoid refetching immediately on the client
staleTime: 60_000,
refetchOnWindowFocus: false,
retry: 0,
},
},
});