diff --git a/web/src/app/models/data/server.model.ts b/web/src/app/models/data/server.model.ts index 024a1a6e..9c9891c3 100644 --- a/web/src/app/models/data/server.model.ts +++ b/web/src/app/models/data/server.model.ts @@ -20,6 +20,7 @@ export interface Server extends Data { autoRoles?: AutoRole[]; clientCount?: number; clients?: Client[]; + statistic?: ServerStatistic; levelCount?: number; levels?: Level[]; userCount?: number; @@ -35,3 +36,16 @@ export interface ServerFilter { discordId?: String; name?: String; } + +export interface ServerStatistic { + achievementsAchieved?: Number + messageCount?: Number + userCount?: Number + activeUserCount?: Number + userJoinedVoiceChannelCount?: Number + userJoinedVoiceChannelOntime?: Number + userJoinedGameServerCount?: Number + userJoinedGameServerOntime?: Number + userWarningCount?: Number + activityScore?: Number +} diff --git a/web/src/app/models/graphql/queries.model.ts b/web/src/app/models/graphql/queries.model.ts index d16e94c1..1f6bb6a9 100644 --- a/web/src/app/models/graphql/queries.model.ts +++ b/web/src/app/models/graphql/queries.model.ts @@ -79,6 +79,18 @@ export class Queries { receivedCommandCount movedUsersCount } + statistic { + achievementsAchieved + messageCount + userCount + activeUserCount + userJoinedVoiceChannelCount + userJoinedVoiceChannelOntime + userJoinedGameServerCount + userJoinedGameServerOntime + userWarningCount + activityScore + } } } `; diff --git a/web/src/app/modules/view/server/server-dashboard/components/server-statistic/server-statistic.component.html b/web/src/app/modules/view/server/server-dashboard/components/server-statistic/server-statistic.component.html new file mode 100644 index 00000000..5721a2e8 --- /dev/null +++ b/web/src/app/modules/view/server/server-dashboard/components/server-statistic/server-statistic.component.html @@ -0,0 +1,35 @@ +