Refactor user storage and update

Rename accounts to users to be consistent with the new naming scheme
where account only referes to the logged in user of the session and
implement live updates of users via a user store which listens for
updates from the event stream.
This commit is contained in:
Hornwitser 2025-06-23 00:17:22 +02:00
parent 6336ccdb96
commit 3be7f8be05
24 changed files with 331 additions and 182 deletions

View file

@ -1,10 +0,0 @@
export const useAccounts = () => useFetch(
"/api/accounts",
{
transform: (input) => input === undefined ? false as any as null: input,
getCachedData(key, nuxtApp) {
return nuxtApp.payload.data[key];
},
dedupe: "defer",
}
);