mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-02-14 00:29:17 -06:00
FF-1289 - added custom colors
This commit is contained in:
@@ -3,14 +3,24 @@ using System.Text.Json;
|
||||
|
||||
namespace FileFlows.Apprise.Communication;
|
||||
|
||||
/// <summary>
|
||||
/// Flow element that send a notification via apprise
|
||||
/// </summary>
|
||||
public class Apprise: Node
|
||||
{
|
||||
public override int Inputs => 1;
|
||||
/// <inheritdoc />
|
||||
public override int Outputs => 2;
|
||||
public override FlowElementType Type => FlowElementType.Communication;
|
||||
/// <inheritdoc />
|
||||
public override FlowElementType Type => FlowElementType.Communication;
|
||||
/// <inheritdoc />
|
||||
public override string Icon => "fas fa-bell";
|
||||
/// <inheritdoc />
|
||||
public override bool FailureNode => true;
|
||||
/// <inheritdoc />
|
||||
public override string HelpUrl => "https://fileflows.com/docs/plugins/apprise/apprise";
|
||||
/// <inheritdoc />
|
||||
public override string CustomColor => "#257575";
|
||||
|
||||
[Required]
|
||||
[TextVariable(1)]
|
||||
@@ -42,6 +52,7 @@ public class Apprise: Node
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override int Execute(NodeParameters args)
|
||||
{
|
||||
try
|
||||
|
||||
@@ -24,7 +24,10 @@ public class FailFlow : Node
|
||||
/// Gets the URL for the help page
|
||||
/// </summary>
|
||||
public override string HelpUrl => "https://fileflows.com/docs/plugins/basic-nodes/fail-flow";
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public override string CustomColor => "var(--error)";
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the reason to fail the flow
|
||||
/// </summary>
|
||||
|
||||
@@ -5,12 +5,19 @@ namespace FileFlows.DiscordNodes.Communication;
|
||||
|
||||
public class Discord: Node
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override int Inputs => 1;
|
||||
/// <inheritdoc />
|
||||
public override int Outputs => 2;
|
||||
public override FlowElementType Type => FlowElementType.Communication;
|
||||
/// <inheritdoc />
|
||||
public override string Icon => "fab fa-discord";
|
||||
/// <inheritdoc />
|
||||
public override bool FailureNode => true;
|
||||
/// <inheritdoc />
|
||||
public override string HelpUrl => "https://fileflows.com/docs/plugins/discord/discord";
|
||||
/// <inheritdoc />
|
||||
public override string CustomColor => "#5865F2";
|
||||
|
||||
[Required]
|
||||
[TextVariable(1)]
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -28,6 +28,9 @@ public class Gotify: Node
|
||||
/// Gets if this can be used in a failure flow
|
||||
/// </summary>
|
||||
public override bool FailureNode => true;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override string CustomColor => "#6fc4e7";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Help URL
|
||||
|
||||
@@ -20,11 +20,14 @@ public class Telegram: Node
|
||||
/// <summary>
|
||||
/// Gets the icon for this flow element
|
||||
/// </summary>
|
||||
public override string Icon => "fas fa-bell";
|
||||
public override string Icon => "fab fa-telegram-plane";
|
||||
/// <summary>
|
||||
/// Gets if this can be used in a failure flow
|
||||
/// </summary>
|
||||
public override bool FailureNode => true;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override string CustomColor => "#0088CC";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Help URL
|
||||
|
||||
Reference in New Issue
Block a user