From 15d28aa8ef84788aa640aac67838380bfacf63b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Wed, 23 Oct 2019 15:59:34 +0200 Subject: [PATCH] Finish redesign of moderators report list - It is not perfect, but will do it for now. --- backend/src/seed/seed-db.js | 12 +- webapp/locales/de.json | 6 +- webapp/locales/en.json | 6 +- webapp/pages/moderation/index.vue | 371 +++++++++++------------------- 4 files changed, 145 insertions(+), 250 deletions(-) diff --git a/backend/src/seed/seed-db.js b/backend/src/seed/seed-db.js index 225ffa834..3b3564533 100644 --- a/backend/src/seed/seed-db.js +++ b/backend/src/seed/seed-db.js @@ -693,24 +693,24 @@ import { gql } from '../jest/helpers' mutation: reportMutation, variables: { resourceId: 'c1', - reasonCategory: 'other', - reasonDescription: 'This comment is bigoted', + reasonCategory: 'pornographic_content_links', + reasonDescription: 'This comment is porno!!!', }, }), mutate({ mutation: reportMutation, variables: { resourceId: 'p1', - reasonCategory: 'discrimination_etc', - reasonDescription: 'This post is bigoted', + reasonCategory: 'intentional_intimidation_stalking_persecution', + reasonDescription: '', }, }), mutate({ mutation: reportMutation, variables: { resourceId: 'u1', - reasonCategory: 'doxing', - reasonDescription: 'This user is harassing me with bigoted remarks', + reasonCategory: 'glorific_trivia_of_cruel_inhuman_acts', + reasonDescription: 'murder', }, }), ]) diff --git a/webapp/locales/de.json b/webapp/locales/de.json index 9c7cde641..6dc8b2b78 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -449,8 +449,10 @@ "reasonCategory": "Kategorie", "reasonDescription": "Beschreibung", "createdAt": "Datum", - "submitter": "Gemeldet von / am", - "disabledBy": "Deaktiviert von" + "submitter": "Gemeldet von", + "disabledBy": "Deaktiviert von", + "decision": "Entscheidung", + "noDecision": "Keine Entscheidung!" } }, "disable": { diff --git a/webapp/locales/en.json b/webapp/locales/en.json index 9a5b0e634..816815142 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -450,8 +450,10 @@ "reasonCategory": "Category", "reasonDescription": "Description", "createdAt": "Date", - "submitter": "Reported by / at", - "disabledBy": "Disabled by" + "submitter": "Reported by", + "disabledBy": "Disabled by", + "decision": "Decision", + "noDecision": "No decision!" } }, "disable": { diff --git a/webapp/pages/moderation/index.vue b/webapp/pages/moderation/index.vue index 18aa8475c..1d485cc2c 100644 --- a/webapp/pages/moderation/index.vue +++ b/webapp/pages/moderation/index.vue @@ -1,251 +1,127 @@