feat(SPA): profile page, display name and the new account menu

This commit is contained in:
fsylvain committed 2026-09-29 10:13:09 +02:00
1 parent 55525c06d6
commit b0f7b7892b
29 files changed
+3166 -469

No files matched your search

+9 -1
View File
@@ -8,6 +8,8 @@ export interface Session {
id?: number
verified: boolean
username?: string
email?: string
displayName: string
}
export const useSessionStore = defineStore('session', () => {
@@ -53,5 +55,11 @@ export const useSessionStore = defineStore('session', () => {
status.value = 'ready'
}
return { status, session, check, retry, clear }
function setDisplayName(displayName: string | null | undefined) {
if (session.value) {
session.value = { ...session.value, displayName: displayName ?? '' }
}
}
return { status, session, check, retry, clear, setDisplayName }
})