diff --git a/js/src/graphql/report.ts b/js/src/graphql/report.ts index 3766bc938..495ec00fb 100644 --- a/js/src/graphql/report.ts +++ b/js/src/graphql/report.ts @@ -158,51 +158,54 @@ export const CREATE_REPORT_NOTE = gql` `; export const LOGS = gql` - query { - actionLogs { - id - action - actor { + query ActionLogs($page: Int, $limit: Int) { + actionLogs(page: $page, limit: $limit) { + elements { id - preferredUsername - domain - avatar { + action + actor { id - url - } - } - object { - ... on Report { - id - } - ... on ReportNote { - report { + preferredUsername + domain + avatar { id + url } } - ... on Event { - id - title - } - ... on Person { - id - preferredUsername - domain - name - } - ... on Group { - id - preferredUsername - domain - name - } - ... on User { - id - email - confirmedAt + object { + ... on Report { + id + } + ... on ReportNote { + report { + id + } + } + ... on Event { + id + title + } + ... on Person { + id + preferredUsername + domain + name + } + ... on Group { + id + preferredUsername + domain + name + } + ... on User { + id + email + confirmedAt + } } + insertedAt } - insertedAt + total } } `; diff --git a/js/src/i18n/en_US.json b/js/src/i18n/en_US.json index cffa26a7d..e407330b7 100644 --- a/js/src/i18n/en_US.json +++ b/js/src/i18n/en_US.json @@ -985,5 +985,7 @@ "Unable to update the profile. The avatar picture may be too heavy.": "Unable to update the profile. The avatar picture may be too heavy.", "Unable to create the profile. The avatar picture may be too heavy.": "Unable to create the profile. The avatar picture may be too heavy.", "Error while loading the preview": "Error while loading the preview", - "Instance feeds": "Instance feeds" + "Instance feeds": "Instance feeds", + "{moderator} suspended group {profile}": "{moderator} suspended group {profile}", + "{moderator} has unsuspended group {profile}": "{moderator} has unsuspended group {profile}" } diff --git a/js/src/i18n/fr_FR.json b/js/src/i18n/fr_FR.json index 1866b0f3a..65300b43a 100644 --- a/js/src/i18n/fr_FR.json +++ b/js/src/i18n/fr_FR.json @@ -1079,5 +1079,7 @@ "Unable to update the profile. The avatar picture may be too heavy.": "Impossible de mettre à jour le profil. L'image d'avatar est probablement trop lourde.", "Unable to create the profile. The avatar picture may be too heavy.": "Impossible de créer le profil. L'image d'avatar est probablement trop lourde.", "Error while loading the preview": "Erreur lors du chargement de l'aperçu", - "Instance feeds": "Flux de l'instance" + "Instance feeds": "Flux de l'instance", + "{moderator} suspended group {profile}": "{moderator} a suspendu le groupe {profile}", + "{moderator} has unsuspended group {profile}": "{moderator} a annulé la suspension du groupe {profile}" } diff --git a/js/src/views/Moderation/Logs.vue b/js/src/views/Moderation/Logs.vue index fde4b4ffc..a515257e0 100644 --- a/js/src/views/Moderation/Logs.vue +++ b/js/src/views/Moderation/Logs.vue @@ -14,9 +14,9 @@ -
-