From bfca7fdc2a6c85d13c7086f87b1cd236e5e43041 Mon Sep 17 00:00:00 2001 From: Avris Date: Thu, 12 Aug 2021 12:14:34 +0200 Subject: [PATCH] #245 require ban reason --- components/Ban.vue | 15 +++++++++++++++ components/Header.vue | 6 +++--- locale/de/translations.suml | 1 + locale/en/translations.suml | 1 + locale/es/translations.suml | 3 ++- locale/fr/translations.suml | 1 + locale/nl/translations.suml | 1 + locale/no/translations.suml | 9 +++++---- locale/pl/translations.suml | 1 + locale/pt/translations.suml | 1 + locale/ru/translations.suml | 1 + locale/yi/translations.suml | 1 + locale/zh/translations.suml | 1 + migrations/034-ban-admin-reason.sql | 7 +++++++ routes/terms.vue | 17 ++++++++++++++--- server/routes/admin.js | 23 ++++++++++++++++++----- server/routes/profile.js | 3 +++ src/forbidden.js | 19 +++++++++++++++++++ 18 files changed, 95 insertions(+), 16 deletions(-) create mode 100644 migrations/034-ban-admin-reason.sql create mode 100644 src/forbidden.js diff --git a/components/Ban.vue b/components/Ban.vue index de8d14d5..70b1b920 100644 --- a/components/Ban.vue +++ b/components/Ban.vue @@ -23,6 +23,17 @@
+
+

+
+
+ +
+
+