mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-04-05 00:53:01 +00:00
[AB-197] moving templates from utility to their respective maven modules
This commit is contained in:
38
abstracto-modules/remind/pom.xml
Normal file
38
abstracto-modules/remind/pom.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
<artifactId>remind</artifactId>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<finalName>remind-templates-${project.version}</finalName>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
<descriptors>
|
||||
<descriptor>src/main/assembly/assembly.xml</descriptor>
|
||||
</descriptors>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
15
abstracto-modules/remind/src/main/assembly/assembly.xml
Normal file
15
abstracto-modules/remind/src/main/assembly/assembly.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
|
||||
<id>zip</id>
|
||||
<includeBaseDirectory>false</includeBaseDirectory>
|
||||
<formats>
|
||||
<format>zip</format>
|
||||
</formats>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<outputDirectory>.</outputDirectory>
|
||||
<directory>${project.basedir}/src/main/resources</directory>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</assembly>
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
<#include "member_author">
|
||||
<@member_author member=member/>,
|
||||
<#include "abstracto_color">,
|
||||
"description": "<@safe_include "remind_reminder_description"/>",
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "remind_reminder_duration_field_title"/>",
|
||||
"value": "${fmtDuration(duration)}"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "remind_reminder_note_field_title"/>",
|
||||
"value": "${reminder.text?js_string}"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "remind_reminder_link_field_title"/>",
|
||||
"value": "[<@safe_include "remind_reminder_link_content_display_text"/>](${messageUrl})"
|
||||
}
|
||||
],
|
||||
"additionalMessage": "${member.asMention?js_string}"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
<#assign id>${reminder.id}</#assign>
|
||||
<#assign messageUrl>${message.jumpUrl}</#assign>
|
||||
<#include "member_author">
|
||||
<@member_author member=member/>,
|
||||
<#include "abstracto_color">,
|
||||
"description": "<@safe_include "remind_reminding_description_text"/>",
|
||||
"additionalMessage": "${member.asMention?js_string}"
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
<#include "member_author">
|
||||
<@member_author member=member/>,
|
||||
<#include "abstracto_color">,
|
||||
"title": {
|
||||
"title": "<@safe_include "reminders_reminders_embed_title"/>"
|
||||
},
|
||||
"fields": [
|
||||
<#list reminders as reminder><#assign reminder=reminder/>
|
||||
{
|
||||
<#assign id>${reminder.id}</#assign>
|
||||
<#assign reminderTargetDate>${formatDate(reminder.targetDate,"yyyy-MM-dd HH:mm:ss")}</#assign>
|
||||
<#assign reminderText=reminder.text/>
|
||||
"name": "<@safe_include "reminders_reminder_field_title"/>",
|
||||
"value": "<@safe_include "reminders_due_on"/>"
|
||||
}
|
||||
<#sep>,
|
||||
</#list>
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#assign reminderId>${model.reminderId?c}</#assign><#include "reminder_does_not_exist_exception_text">
|
||||
Reference in New Issue
Block a user