From 75a5a1ff1a679857eeed509e2e1b3f7d72b17380 Mon Sep 17 00:00:00 2001
From: Sheldan <5037282+Sheldan@users.noreply.github.com>
Date: Sun, 4 Jul 2021 13:23:33 +0200
Subject: [PATCH] [OPB-28] enabling modmail adding overrides for moderation
colors overriding ban notification text
---
application/executable/pom.xml | 5 ++
deployment/image-packaging/pom.xml | 69 +++++++++++++++++++
.../deployment/config/artifact_versions.json | 7 +-
templates/overrides/pom.xml | 1 +
.../template-overrides/moderation/pom.xml | 39 +++++++++++
.../moderation/src/main/assembly/assembly.xml | 15 ++++
.../colors/moderation_action_color_en_US.ftl | 5 ++
.../template-overrides/modmail/pom.xml | 38 ++++++++++
.../modmail/src/main/assembly/assembly.xml | 15 ++++
.../config/colors/modmail_color_en_US.ftl | 5 ++
.../overrides/template-overrides/pom.xml | 2 +
.../translation-overrides/moderation/pom.xml | 37 ++++++++++
.../moderation/src/main/assembly/assembly.xml | 15 ++++
.../ban/ban_notification_text_en_US.ftl | 1 +
.../overrides/translation-overrides/pom.xml | 20 ++++++
15 files changed, 272 insertions(+), 2 deletions(-)
create mode 100644 templates/overrides/template-overrides/moderation/pom.xml
create mode 100644 templates/overrides/template-overrides/moderation/src/main/assembly/assembly.xml
create mode 100644 templates/overrides/template-overrides/moderation/src/main/resources/en_US/config/colors/moderation_action_color_en_US.ftl
create mode 100644 templates/overrides/template-overrides/modmail/pom.xml
create mode 100644 templates/overrides/template-overrides/modmail/src/main/assembly/assembly.xml
create mode 100644 templates/overrides/template-overrides/modmail/src/main/resources/en_US/config/colors/modmail_color_en_US.ftl
create mode 100644 templates/overrides/translation-overrides/moderation/pom.xml
create mode 100644 templates/overrides/translation-overrides/moderation/src/main/assembly/assembly.xml
create mode 100644 templates/overrides/translation-overrides/moderation/src/main/resources/en_US/commands/ban/ban_notification_text_en_US.ftl
create mode 100644 templates/overrides/translation-overrides/pom.xml
diff --git a/application/executable/pom.xml b/application/executable/pom.xml
index 22abb69..a3c85da 100644
--- a/application/executable/pom.xml
+++ b/application/executable/pom.xml
@@ -100,6 +100,11 @@
starboard-impl
+
+ dev.sheldan.abstracto.modules
+ modmail-impl
+
+
dev.sheldan.abstracto.modules
logging-impl
diff --git a/deployment/image-packaging/pom.xml b/deployment/image-packaging/pom.xml
index 21341bb..30e2654 100644
--- a/deployment/image-packaging/pom.xml
+++ b/deployment/image-packaging/pom.xml
@@ -63,6 +63,17 @@
experience-tracking.zip
+
+
+ dev.sheldan.abstracto-templates.templates
+ modmail
+ ${abstracto.templates.version}
+ zip
+ true
+ ${file.basedir}/deployment/template-artifacts/
+ modmail.zip
+
+
dev.sheldan.abstracto-templates.templates
moderation
@@ -232,6 +243,16 @@
core.zip
+
+ dev.sheldan.abstracto-templates.translations
+ modmail
+ ${abstracto.templates.version}
+ zip
+ true
+ ${file.basedir}/deployment/translation-artifacts/
+ modmail.zip
+
+
dev.sheldan.abstracto-templates.translations
utility
@@ -241,6 +262,7 @@
${file.basedir}/deployment/translation-artifacts/
utility.zip
+
dev.sheldan.abstracto-templates.translations
experience-tracking
@@ -250,6 +272,7 @@
${file.basedir}/deployment/translation-artifacts/
experience-tracking.zip
+
dev.sheldan.abstracto-templates.translations
entertainment
@@ -259,6 +282,7 @@
${file.basedir}/deployment/translation-artifacts/
entertainment.zip
+
dev.sheldan.abstracto-templates.translations
moderation
@@ -268,6 +292,7 @@
${file.basedir}/deployment/translation-artifacts/
moderation.zip
+
dev.sheldan.abstracto-templates.translations
link-embed
@@ -277,6 +302,7 @@
${file.basedir}/deployment/translation-artifacts/
link-embed.zip
+
dev.sheldan.abstracto-templates.translations
starboard
@@ -452,6 +478,17 @@
utility.zip
+
+ dev.sheldan.abstracto.modules
+ modmail-impl
+ ${abstracto.version}
+ liquibase
+ zip
+ true
+ ${file.basedir}/deployment/liquibase-artifacts/
+ modmail.zip
+
+
dev.sheldan.abstracto.modules
moderation-impl
@@ -695,6 +732,38 @@
overrides-templates-statistic.zip
+
+ dev.sheldan.oneplus.bot.templates.overrides.templates
+ modmail
+ ${project.version}
+ zip
+ true
+ ${file.basedir}/deployment/template-artifacts/
+ overrides-templates-modmail.zip
+
+
+
+ dev.sheldan.oneplus.bot.templates.overrides.templates
+ moderation
+ ${project.version}
+ zip
+ true
+ ${file.basedir}/deployment/template-artifacts/
+ overrides-templates-moderation.zip
+
+
+
+
+ dev.sheldan.oneplus.bot.templates.overrides.translations
+ moderation
+ ${project.version}
+ zip
+ true
+ ${file.basedir}/deployment/translation-artifacts/
+ overrides-translation-moderation.zip
+
+
+
diff --git a/deployment/image-packaging/src/main/docker/deployment/config/artifact_versions.json b/deployment/image-packaging/src/main/docker/deployment/config/artifact_versions.json
index c16453a..2e5c43a 100644
--- a/deployment/image-packaging/src/main/docker/deployment/config/artifact_versions.json
+++ b/deployment/image-packaging/src/main/docker/deployment/config/artifact_versions.json
@@ -1,12 +1,14 @@
{
"template_artifacts": ["utility", "core", "entertainment", "starboard", "link-embed", "webservices", "remind", "logging",
- "suggestion", "invite-filter", "profanity-filter", "statistic", "experience-tracking", "moderation",
+ "suggestion", "invite-filter", "profanity-filter", "statistic", "experience-tracking", "moderation", "modmail",
"starboard-custom",
"overrides-templates-webservices", "overrides-templates-core", "overrides-templates-logging", "overrides-templates-statistic",
+ "overrides-templates-modmail", "overrides-templates-moderation",
"news", "referral", "faq"],
"translation_artifacts": ["utility", "core", "entertainment", "starboard", "link-embed", "webservices", "suggestion",
- "remind", "logging", "invite-filter", "profanity-filter", "statistic", "experience-tracking", "moderation",
+ "remind", "logging", "invite-filter", "profanity-filter", "statistic", "experience-tracking", "moderation", "modmail",
"starboard-custom",
+ "overrides-translation-moderation",
"news", "setup", "referral", "faq"],
"liquibase_artifacts": [
{ "zip": "scheduling", "file": "scheduling-changeLog.xml" },
@@ -24,6 +26,7 @@
{ "zip": "statistic", "file": "statistic-changeLog.xml"},
{ "zip": "experience-tracking", "file": "experience-changeLog.xml"},
{ "zip": "moderation", "file": "moderation-changeLog.xml"},
+ { "zip": "modmail", "file": "modMail-changeLog.xml"},
{ "zip": "setup", "file": "setup-changeLog.xml"},
{ "zip": "referral", "file": "referral-changeLog.xml"},
{ "zip": "starboard-custom", "file": "starboard-custom-changeLog.xml"},
diff --git a/templates/overrides/pom.xml b/templates/overrides/pom.xml
index 855f0ae..bb9b825 100644
--- a/templates/overrides/pom.xml
+++ b/templates/overrides/pom.xml
@@ -13,6 +13,7 @@
template-overrides
+ translation-overrides
\ No newline at end of file
diff --git a/templates/overrides/template-overrides/moderation/pom.xml b/templates/overrides/template-overrides/moderation/pom.xml
new file mode 100644
index 0000000..e9b0f75
--- /dev/null
+++ b/templates/overrides/template-overrides/moderation/pom.xml
@@ -0,0 +1,39 @@
+
+
+
+ template-overrides
+ dev.sheldan.oneplus.bot.templates.overrides.templates
+ 1.4.5-SNAPSHOT
+
+ 4.0.0
+
+ moderation
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+
+
+ package
+
+ single
+
+
+ template-overrides-moderation-${project.version}
+ false
+
+ src/main/assembly/assembly.xml
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/overrides/template-overrides/moderation/src/main/assembly/assembly.xml b/templates/overrides/template-overrides/moderation/src/main/assembly/assembly.xml
new file mode 100644
index 0000000..aca1e51
--- /dev/null
+++ b/templates/overrides/template-overrides/moderation/src/main/assembly/assembly.xml
@@ -0,0 +1,15 @@
+
+ zip
+ false
+
+ zip
+
+
+
+ .
+ ${project.basedir}/src/main/resources
+
+
+
\ No newline at end of file
diff --git a/templates/overrides/template-overrides/moderation/src/main/resources/en_US/config/colors/moderation_action_color_en_US.ftl b/templates/overrides/template-overrides/moderation/src/main/resources/en_US/config/colors/moderation_action_color_en_US.ftl
new file mode 100644
index 0000000..06457df
--- /dev/null
+++ b/templates/overrides/template-overrides/moderation/src/main/resources/en_US/config/colors/moderation_action_color_en_US.ftl
@@ -0,0 +1,5 @@
+"color" : {
+ "r": 151,
+ "g": 0,
+ "b": 69
+}
\ No newline at end of file
diff --git a/templates/overrides/template-overrides/modmail/pom.xml b/templates/overrides/template-overrides/modmail/pom.xml
new file mode 100644
index 0000000..b2995ed
--- /dev/null
+++ b/templates/overrides/template-overrides/modmail/pom.xml
@@ -0,0 +1,38 @@
+
+
+
+ template-overrides
+ dev.sheldan.oneplus.bot.templates.overrides.templates
+ 1.4.5-SNAPSHOT
+
+ 4.0.0
+
+ modmail
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+
+
+ package
+
+ single
+
+
+ template-overrides-modmail-${project.version}
+ false
+
+ src/main/assembly/assembly.xml
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/overrides/template-overrides/modmail/src/main/assembly/assembly.xml b/templates/overrides/template-overrides/modmail/src/main/assembly/assembly.xml
new file mode 100644
index 0000000..aca1e51
--- /dev/null
+++ b/templates/overrides/template-overrides/modmail/src/main/assembly/assembly.xml
@@ -0,0 +1,15 @@
+
+ zip
+ false
+
+ zip
+
+
+
+ .
+ ${project.basedir}/src/main/resources
+
+
+
\ No newline at end of file
diff --git a/templates/overrides/template-overrides/modmail/src/main/resources/en_US/config/colors/modmail_color_en_US.ftl b/templates/overrides/template-overrides/modmail/src/main/resources/en_US/config/colors/modmail_color_en_US.ftl
new file mode 100644
index 0000000..06457df
--- /dev/null
+++ b/templates/overrides/template-overrides/modmail/src/main/resources/en_US/config/colors/modmail_color_en_US.ftl
@@ -0,0 +1,5 @@
+"color" : {
+ "r": 151,
+ "g": 0,
+ "b": 69
+}
\ No newline at end of file
diff --git a/templates/overrides/template-overrides/pom.xml b/templates/overrides/template-overrides/pom.xml
index c86446e..102b0a7 100644
--- a/templates/overrides/template-overrides/pom.xml
+++ b/templates/overrides/template-overrides/pom.xml
@@ -17,6 +17,8 @@
core
logging
statistic
+ modmail
+ moderation
\ No newline at end of file
diff --git a/templates/overrides/translation-overrides/moderation/pom.xml b/templates/overrides/translation-overrides/moderation/pom.xml
new file mode 100644
index 0000000..6d0a8d3
--- /dev/null
+++ b/templates/overrides/translation-overrides/moderation/pom.xml
@@ -0,0 +1,37 @@
+
+
+
+ dev.sheldan.oneplus.bot.templates.overrides.translations
+ translation-overrides
+ 1.4.5-SNAPSHOT
+
+ 4.0.0
+
+ moderation
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+
+
+ package
+
+ single
+
+
+ translation-overrides-moderation-${project.version}
+ false
+
+ src/main/assembly/assembly.xml
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/overrides/translation-overrides/moderation/src/main/assembly/assembly.xml b/templates/overrides/translation-overrides/moderation/src/main/assembly/assembly.xml
new file mode 100644
index 0000000..aca1e51
--- /dev/null
+++ b/templates/overrides/translation-overrides/moderation/src/main/assembly/assembly.xml
@@ -0,0 +1,15 @@
+
+ zip
+ false
+
+ zip
+
+
+
+ .
+ ${project.basedir}/src/main/resources
+
+
+
\ No newline at end of file
diff --git a/templates/overrides/translation-overrides/moderation/src/main/resources/en_US/commands/ban/ban_notification_text_en_US.ftl b/templates/overrides/translation-overrides/moderation/src/main/resources/en_US/commands/ban/ban_notification_text_en_US.ftl
new file mode 100644
index 0000000..6bc6efe
--- /dev/null
+++ b/templates/overrides/translation-overrides/moderation/src/main/resources/en_US/commands/ban/ban_notification_text_en_US.ftl
@@ -0,0 +1 @@
+You were banned from the server ${serverName} for `${reason}`. You can appeal at: oneplus.appeals@pm.me.
\ No newline at end of file
diff --git a/templates/overrides/translation-overrides/pom.xml b/templates/overrides/translation-overrides/pom.xml
new file mode 100644
index 0000000..686d731
--- /dev/null
+++ b/templates/overrides/translation-overrides/pom.xml
@@ -0,0 +1,20 @@
+
+
+
+ overrides
+ dev.sheldan.oneplus.bot.templates.overrides
+ 1.4.5-SNAPSHOT
+
+ 4.0.0
+
+ dev.sheldan.oneplus.bot.templates.overrides.translations
+ translation-overrides
+ pom
+
+ moderation
+
+
+
+
\ No newline at end of file