chore: commit pending admin-panel, api auth and parity doc changes

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
s.esmaeili
2026-10-14 04:33:24 +03:30
co-authored by Claude Haiku 5.5
parent 55856cac89
commit cf014e1f6c
41 changed files with 3471 additions and 969 deletions
+7
View File
@@ -67,6 +67,9 @@ export const useUsersStore = defineStore('users', {
// undefined = "not fetched yet" (distinct from [] = "fetched, has none").
// The router guard relies on that distinction, as legacy's did.
roles: undefined as string[] | undefined,
// The super-admin-only features (see utils/superAdmin.ts) show for this
// account alone, whatever rids other admins hold. Set by the server.
isSuperAdmin: false,
}),
getters: {
/**
@@ -107,8 +110,12 @@ export const useUsersStore = defineStore('users', {
getRoles(roles: string[]) {
this.roles = checkParent(roles);
},
setSuperAdmin(value: unknown) {
this.isSuperAdmin = value === true;
},
deleteRoles() {
this.roles = undefined;
this.isSuperAdmin = false;
},
},
});