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
1 change: 1 addition & 0 deletions frontend/components/theme-switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default function ThemeSwitch({className}: { className?: string }) {
return (
<Button
onClick={() => setTheme(resolvedTheme === "dark" ? "light" : "dark")}
variant={"ghost"}
className={cn('flex items-center aspect-square m-0', className)}
data-cy={'theme-toggle'}
>
Expand Down
5 changes: 2 additions & 3 deletions frontend/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ export async function middleware(request: NextRequest) {
const sid = request.cookies.get('sid')?.value;
if(!sid) return false;


try {
const apiUrl = new URL("/api", request.nextUrl.origin)
apiUrl.port = '8080'
const apiUrl = 'http://localhost:8080/api'
const client = new GraphQLClient(apiUrl.toString())
const loggedInData = await client.request<LoginCheckQuery>(LoginCheckDocument, { sid })
return loggedInData.loginCheck !== null
Expand Down Expand Up @@ -55,3 +53,4 @@ export const config = {
'/app-settings'
],
}

10 changes: 10 additions & 0 deletions server/graph/schema.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading