[SIS-25] adding rss news module

updating abstracto version
This commit is contained in:
Sheldan
2023-10-29 19:00:16 +01:00
parent 0d6f71baac
commit 96d3918a4d
151 changed files with 4679 additions and 15 deletions

View File

@@ -13,6 +13,7 @@
<module>quotes-templates</module>
<module>meetup-templates</module>
<module>debra-templates</module>
<module>rss-news-templates</module>
</modules>
</project>

View File

@@ -0,0 +1,37 @@
<?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>module-templates</artifactId>
<groupId>dev.sheldan.sissi.templates</groupId>
<version>1.4.19-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>rss-news-templates</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>rss-news-templates-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View 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>

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "createServerNewsCategory_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "createServerNewsCategoryMapping_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "createNewsCategorySubscription_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "deleteServerNewsCategory_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "deleteServerNewsCategoryMapping_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "deleteNewsCategorySubscription_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,27 @@
{
"embeds": [
{
<#include "abstracto_color">,
<#macro categoryDisplay category>
<#assign categoryName=category.name>
<@safe_include "showNewsCategories_category_display"/>
<#list category.mappings as mapping>
<#assign channelDisplay = mapping.channel>
<#assign statusIndicator>${mapping.enabled?string('✅', '❌')}</#assign>
<@safe_include "showNewsCategories_mapping_display"/>
<#else> <@safe_include "showNewsCategories_no_mappings"/>
</#list>
<#list category.subscriptions as subscription>
<#assign feedName = subscription.newsFeedName>
<#assign categories>`${subscription.newsFeedCategories?join("`, `")}`</#assign>
<@safe_include "showNewsCategories_subscription_display"/>
<#else> <@safe_include "showNewsCategories_no_subscriptions"/>
</#list>
</#macro>
"description": "<#list newsCategories as category><@categoryDisplay category=category/><#else><@safe_include "showNewsCategories_no_categories"/></#list>"
}
]
}

View File

@@ -0,0 +1 @@
<#include "news_category_already_exists_exception_text">

View File

@@ -0,0 +1 @@
<#include "news_category_channel_mapping_already_exists_exception_text">

View File

@@ -0,0 +1 @@
<#include "news_category_channel_mapping_not_found_exception_text">

View File

@@ -0,0 +1 @@
<#include "news_feed_source_category_not_found_exception_text">

View File

@@ -0,0 +1 @@
<#include "news_feed_source_category_subscription_already_exists_exception_text">

View File

@@ -0,0 +1 @@
<#include "news_feed_source_category_subscription_not_found_exception_text">

View File

@@ -0,0 +1 @@
<#include "news_feed_source_not_found_exception_text">

View File

@@ -0,0 +1,21 @@
{
"embeds": [
{
<#include "abstracto_color">,
"author": {
"name": "<@safe_include "orf_news_post_author"/>"
},
"title": {
"title": "${title}",
"url": "${url}"
},
"description": "${url}<#if description?has_content>\n-${description}</#if>",
"footer": {
"text": "${category}"
}
<#if imageURL?has_content>
,"imageUrl": "${imageURL}"
</#if>
}
]
}