feat: add dropdown for links and collection header

This commit is contained in:
Sonny
2024-05-13 00:04:01 +02:00
committed by Sonny
parent 0f1dc9b69c
commit 2f0e1dd375
13 changed files with 204 additions and 131 deletions

View File

@@ -12,10 +12,10 @@ export default defineConfig({
sharedData: {
errors: (ctx) => ctx.session?.flashMessages.get('errors'),
auth: async (ctx) => {
await ctx.auth.check();
await ctx.auth?.check();
return {
user: ctx.auth.user,
isAuthenticated: ctx.auth.isAuthenticated,
user: ctx.auth?.user || null,
isAuthenticated: ctx.auth?.isAuthenticated || false,
};
},
},