Compare commits

...

6 Commits

Author SHA1 Message Date
Sheldan
3f80fabf69 [maven-release-plugin] prepare release templates-1.2.20 2021-09-06 01:46:17 +02:00
Sheldan
a14b6f4d67 [AB-268] adding templates for suggestion button features 2021-09-06 01:43:05 +02:00
Sheldan
19135a7312 [AB-xxx] updating docs response 2021-09-05 20:41:47 +02:00
Sheldan
3f8a0c81db [AB-318] adding reference to original message to embedded message 2021-09-04 16:35:32 +02:00
Sheldan
bace0facee [AB-xxx] fixing profanity report json safety 2021-08-21 16:07:05 +02:00
Sheldan
1d518337c4 [maven-release-plugin] prepare for next development iteration 2021-08-09 23:45:52 +02:00
60 changed files with 149 additions and 73 deletions

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>core</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
<build>
<plugins>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>experience-tracking</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
<build>
<plugins>
<plugin>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -53,5 +53,13 @@
}
],
</#if>
<#if mentionsReferencedMessage?has_content>
"metaConfig": {
"mentionsReferencedMessage": ${mentionsReferencedMessage?string('true', 'false')}
},
</#if>
"timeStamp": "${embeddedMessage.timeCreated}"
<#if referencedMessageId?has_content>
,"referencedMessageId": "${referencedMessageId?c}"
</#if>
}

View File

@@ -3,7 +3,7 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>moderation</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
<build>
<plugins>
<plugin>

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>modmail</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
<build>
<plugins>
<plugin>

View File

@@ -4,14 +4,14 @@
<parent>
<groupId>dev.sheldan.abstracto-templates</groupId>
<artifactId>templates</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
<modules>
<module>core</module>

View File

@@ -3,7 +3,7 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -15,12 +15,12 @@
},
{
"name": "<@safe_include "profanityListener_report_embed_profanity_type_field_title"/>",
"value": "${profanityGroupKey}",
"value": "${profanityGroupKey?json_string}",
"inline": "true"
},
{
"name": "<@safe_include "profanityListener_report_embed_message_content_field_title"/>",
"value": "${profaneMessage.contentRaw}",
"value": "${profaneMessage.contentRaw?json_string}",
"inline": "true"
}
]

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>statistic</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
<build>
<plugins>
<plugin>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -0,0 +1,6 @@
{
<#include "abstracto_color">,
<#assign agreements=agreements>
<#assign disagreements=disagreements>
"description": "<@safe_include "suggestion_info_response_embed_description"/>"
}

View File

@@ -9,6 +9,34 @@
<#if message?? && message.attachments?size gt 0>
"imageUrl": "${message.attachments[0].proxyUrl}",
</#if>
<#if useButtons>
"buttons": [
{
"label": "<@safe_include "suggest_button_agree_label"/>",
"id": "${agreeButtonModel.buttonId}",
"buttonStyle": "success",
"metaConfig": {
"persistCallback": false
}
},
{
"label": "<@safe_include "suggest_button_disagree_label"/>",
"id": "${disAgreeButtonModel.buttonId}",
"buttonStyle": "danger",
"metaConfig": {
"persistCallback": false
}
},
{
"label": "<@safe_include "suggest_button_reset_vote_label"/>",
"id": "${removeVoteButtonModel.buttonId}",
"buttonStyle": "secondary",
"metaConfig": {
"persistCallback": false
}
}
],
</#if>
"footer": {
"text": "<@safe_include "suggest_suggestion_id_footer"/>"
}

View File

@@ -1,19 +1,25 @@
{
<#assign id>${suggestionId}</#assign>
"additionalMessage": "<@safe_include "suggest_state_${state?lower_case}_comment"/>",
<#if reason?has_content || message?? && message.attachments?size gt 0>
<#include "abstracto_color">,
<#if message?? && message.attachments?size gt 0>
"imageUrl": "${message.attachments[0].proxyUrl}",
</#if>
<#if reason?has_content>
"fields": [
{
"name": "<@safe_include "suggest_reason_field_title"/>",
"value": "${reason?json_string}"
}
],
</#if>
<#include "abstracto_color">,
<#if message?? && message.attachments?size gt 0>
"imageUrl": "${message.attachments[0].proxyUrl}",
</#if>
"fields": [
<#if reason?has_content>
{
"name": "<@safe_include "suggest_reason_field_title"/>",
"value": "${reason?json_string}"
},
</#if>
{
"name": "<@safe_include "suggestion_agreements_field_title"/>",
"value": "${agreeVotes?c}"
},
{
"name": "<@safe_include "suggestion_disagreements_field_title"/>",
"value": "${disAgreeVotes?c}"
}
],
"referencedMessageId": "${originalMessageId?c}"
}

View File

@@ -0,0 +1,8 @@
{
<#include "abstracto_color">,
"metaConfig" : {
"preventEmptyEmbed": "true",
"ephemeral": true
},
"description": "<@safe_include "suggestion_vote_cast_notification_text"/>"
}

View File

@@ -0,0 +1,8 @@
{
<#include "abstracto_color">,
"metaConfig" : {
"preventEmptyEmbed": "true",
"ephemeral": true
},
"description": "<@safe_include "suggestion_vote_removed_notification_text"/>"
}

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>utility</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
<build>
<plugins>
<plugin>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -5,7 +5,7 @@
<groupId>dev.sheldan.abstracto-templates</groupId>
<artifactId>templates</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
<modules>
<module>abstracto-modules</module>
@@ -23,7 +23,7 @@
<scm>
<url>https://maven.pkg.github.com/Sheldan/abstracto-templates</url>
<developerConnection>scm:git:git@github.com:Sheldan/abstracto-templates.git</developerConnection>
<tag>templates-1.2.19</tag>
<tag>templates-1.2.20</tag>
</scm>
<repositories>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>translations</artifactId>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>translations</artifactId>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>core</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
<build>
<plugins>
<plugin>

View File

@@ -1,2 +1,2 @@
Documentation is available in [HTML](https://github.com/Sheldan/abstracto-docs/current) and [PDF](https://github.com/Sheldan/abstracto-docs/current/documentation.pdf).
They are also available for older versions via https://github.com/Sheldan/abstracto-docs/$VERSION.
Documentation is available in [HTML](https://sheldan.github.io/abstracto-docs/current/) and [PDF](https://sheldan.github.io/abstracto-docs/current/documentation.pdf).
They are also available for older versions via https://sheldan.github.io/abstracto-docs/$VERSION.

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>translations</artifactId>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>experience-tracking</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
<build>
<plugins>
<plugin>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>translations</artifactId>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>translations</artifactId>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>translations</artifactId>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>moderation</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
<build>
<plugins>
<plugin>

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>modmail</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
<build>
<plugins>
<plugin>

View File

@@ -4,14 +4,14 @@
<parent>
<groupId>dev.sheldan.abstracto-templates</groupId>
<artifactId>templates</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
<modules>
<module>core</module>

View File

@@ -3,7 +3,7 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>translations</artifactId>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>translations</artifactId>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>translations</artifactId>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>statistic</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
<build>
<plugins>
<plugin>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>translations</artifactId>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -0,0 +1 @@
Shows information about suggestions

View File

@@ -0,0 +1,2 @@
Shows the amount of agreeing and disagreeing members of a given suggestions.
Only shows the amount as long the suggestion has not been removed from the database.

View File

@@ -0,0 +1 @@
The ID of the suggestion to show information for

View File

@@ -0,0 +1 @@
There are ${agreements} agreeing and ${disagreements} disagreeing members.

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>utility</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
<build>
<plugins>
<plugin>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>translations</artifactId>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -3,7 +3,7 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.2.19</version>
<version>1.2.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>