Public Access
feat(ui): add people lists for game owners and community stats
This commit is contained in:
1 parent
b213b067dc
commit
3aed243e35
22 files changed
+425
-12
No files matched your search
@@ -52,6 +52,15 @@ export const saveSettings = (changes) => {
|
||||
return result;
|
||||
};
|
||||
|
||||
/** PUT on Auth, 204: show (or hide) the user by name in owner lists. The caller handles the response status. */
|
||||
export const saveOwnerLists = (enabled) =>
|
||||
apiFetch(`${import.meta.env.VITE_API_URL}/api/users/settings/owner-lists`, {
|
||||
method: 'PUT',
|
||||
headers: {'Content-Type': 'application/json'},
|
||||
body: JSON.stringify({enabled}),
|
||||
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS),
|
||||
});
|
||||
|
||||
/** PUT on Auth, 204: the welcome page was seen. The caller handles the response status. */
|
||||
export const markWelcomeSeen = () =>
|
||||
apiFetch(`${import.meta.env.VITE_API_URL}/api/users/settings/welcome-seen`, {
|
||||
|
||||
Reference in new issue
Block a user