mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-26 01:34:38 +10:00
Adds new tile on the admin home page with system data. (#301)
* Adds new tile on the admin home page with system data. Also fixes the active users bug in the pie chart * Fixes missing parentheses * Updates user stats cache when signing in * Reads active number of users from session provider * Removes unused variable * Small improvements * Removes acl properties from system data websocket and performs initial push of data * fix: remove acl fetch --------- Co-authored-by: DecDuck <declanahofmeyr@gmail.com>
This commit is contained in:
@@ -43,6 +43,8 @@ export const userACLDescriptions: ObjectFromList<typeof userACLs> = {
|
||||
"emoji:read": "Read built in emojis",
|
||||
|
||||
"settings:read": "Read system settings.",
|
||||
"system-data:listen":
|
||||
"Connect to a websocket to receive system data updates.",
|
||||
};
|
||||
|
||||
export const systemACLDescriptions: ObjectFromList<typeof systemACLs> = {
|
||||
@@ -108,4 +110,7 @@ export const systemACLDescriptions: ObjectFromList<typeof systemACLs> = {
|
||||
|
||||
"depot:new": "Create a new download depot",
|
||||
"depot:delete": "Remove a download depot",
|
||||
|
||||
"system-data:listen":
|
||||
"Connect to a websocket to receive system data updates.",
|
||||
};
|
||||
|
||||
@@ -37,6 +37,8 @@ export const userACLs = [
|
||||
"news:read",
|
||||
|
||||
"settings:read",
|
||||
|
||||
"system-data:listen",
|
||||
] as const;
|
||||
const userACLPrefix = "user:";
|
||||
|
||||
@@ -100,6 +102,8 @@ export const systemACLs = [
|
||||
"maintenance:read",
|
||||
|
||||
"settings:update",
|
||||
|
||||
"system-data:listen",
|
||||
] as const;
|
||||
const systemACLPrefix = "system:";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user