mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-01-06 11:39:44 -06:00
FF-1066 - added try/catch around discord/gotify/apprise/email
This commit is contained in:
@@ -12,7 +12,7 @@ public class IfString: IfBase
|
||||
/// <summary>
|
||||
/// Gets or sets the URL to the help page
|
||||
/// </summary>
|
||||
public override string HelpUrl => "https://fileflows.com/docs/plugins/basic-nodes/conditions/if-boolean";
|
||||
public override string HelpUrl => "https://fileflows.com/docs/plugins/basic-nodes/conditions/if-string";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the number of outputs
|
||||
|
||||
40
BasicNodes/Templating/OutputPath.cs
Normal file
40
BasicNodes/Templating/OutputPath.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using FileFlows.Plugin;
|
||||
|
||||
namespace FileFlows.BasicNodes.Templating;
|
||||
|
||||
/// <summary>
|
||||
/// Special templating node for the output path
|
||||
/// </summary>
|
||||
public class OutputPath : TemplatingNode
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the number of inputs
|
||||
/// </summary>
|
||||
public override int Inputs => 1;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the icon
|
||||
/// </summary>
|
||||
public override string Icon => "fas fa-folder";
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the URL to the help page
|
||||
/// </summary>
|
||||
public override string HelpUrl => "https://fileflows.com/docs/plugins/basic-nodes/templating/output-path";
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the flow element type
|
||||
/// </summary>
|
||||
public override FlowElementType Type => FlowElementType.Logic;
|
||||
|
||||
/// <summary>
|
||||
/// Executes the flow element
|
||||
/// </summary>
|
||||
/// <param name="args">the node paramters</param>
|
||||
/// <returns>the output</returns>
|
||||
public override int Execute(NodeParameters args)
|
||||
{
|
||||
args.Logger?.ELog("This templating node cannot be used in an executed flow");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
11
BasicNodes/Templating/TemplatingNode.cs
Normal file
11
BasicNodes/Templating/TemplatingNode.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using FileFlows.Plugin;
|
||||
|
||||
namespace FileFlows.BasicNodes.Templating;
|
||||
|
||||
/// <summary>
|
||||
/// Flow element used for templating
|
||||
/// </summary>
|
||||
public abstract class TemplatingNode : Node
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user