file drop

This commit is contained in:
John Andrews
2025-02-15 21:34:18 +13:00
parent c07e4832e7
commit f226872cc5
23 changed files with 180 additions and 180 deletions

View File

@@ -4,17 +4,17 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>FileFlows.ResellerPlugin</RootNamespace>
<RootNamespace>FileFlows.FileDropPlugin</RootNamespace>
<FileVersion>1.1.1.528</FileVersion>
<ProductVersion>1.1.1.528</ProductVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<Company>FileFlows</Company>
<Authors>John Andrews</Authors>
<Product>Reseller</Product>
<Product>File Drop</Product>
<PackageProjectUrl>https://fileflows.com/</PackageProjectUrl>
<Description>Plugin that provides Reseller related flow elements</Description>
<Description>Plugin that provides File Drop related flow elements</Description>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<LicenseFlag>Reseller</LicenseFlag>
<LicenseFlag>File Drop</LicenseFlag>
</PropertyGroup>
<ItemGroup>
<None Update="i18n\*.json">

View File

@@ -1,6 +1,6 @@
using FileFlows.Plugin.Helpers;
namespace FileFlows.ResellerPlugin.FlowElements;
namespace FileFlows.FileDropPlugin.FlowElements;
/// <summary>
/// Moves a file to a new location
@@ -16,15 +16,15 @@ public class MoveToUserFolder: Node
/// <inheritdoc />
public override string Icon => "fas fa-file-export";
/// <inheritdoc />
public override string HelpUrl => "https://fileflows.com/docs/plugins/reseller/move-to-user-folder";
public override string HelpUrl => "https://fileflows.com/docs/plugins/file-drop/move-to-user-folder";
/// <inheritdoc />
public override string Group => "Reseller";
public override string Group => "File Drop";
/// <inheritdoc />
public override int Execute(NodeParameters args)
{
if (args.Variables.TryGetValue("ResellerUserOutputDir", out var oOutputDir) == false || string.IsNullOrWhiteSpace(oOutputDir as string))
if (args.Variables.TryGetValue("FileDropUserOutputDir", out var oOutputDir) == false || string.IsNullOrWhiteSpace(oOutputDir as string))
return args.Fail("No user output directory in variables");
var outputDir = (string)oOutputDir;

View File

@@ -1,18 +1,18 @@
namespace FileFlows.ResellerPlugin.FlowElements;
namespace FileFlows.FileDropPlugin.FlowElements;
/// <summary>
/// Sets the display name ot a reseller friendly name
/// Sets the display name ot a file drop friendly name
/// </summary>
public class SetResellerDisplayName : Node
public class SetFileDropDisplayName : Node
{
/// <inheritdoc />
public override int Inputs => 1;
/// <inheritdoc />
public override int Outputs => 1;
/// <inheritdoc />
public override string HelpUrl => "https://fileflows.com/docs/plugins/reseller/set-reseller-display-name";
public override string HelpUrl => "https://fileflows.com/docs/plugins/file-drop/set-file-drop-display-name";
/// <inheritdoc />
public override string Group => "Reseller";
public override string Group => "File Drop";
/// <inheritdoc />
public override FlowElementType Type => FlowElementType.Process;
/// <inheritdoc />
@@ -21,11 +21,11 @@ public class SetResellerDisplayName : Node
/// <inheritdoc />
public override int Execute(NodeParameters args)
{
var username = Variables["ResellerUser"]?.ToString() ??
Variables["ResellerUserUid"]?.ToString();
var username = Variables["FileDropUser"]?.ToString() ??
Variables["FileDropUserUid"]?.ToString();
if (string.IsNullOrWhiteSpace(username))
{
args.Logger?.WLog("Failed to get reseller username");
args.Logger?.WLog("Failed to get file drop username");
return 1;
}

View File

@@ -1,4 +1,4 @@
namespace FileFlows.ResellerPlugin;
namespace FileFlows.FileDropPlugin;
/// <summary>
/// Plugin Information
@@ -8,7 +8,7 @@ public class Plugin : FileFlows.Plugin.IPlugin
/// <inheritdoc />
public Guid Uid => new Guid("ba8cfaa3-4ac0-4a39-9e1b-a48def94eb3d");
/// <inheritdoc />
public string Name => "Reseller";
public string Name => "File Drop";
/// <inheritdoc />
public string MinimumVersion => "24.12.4.4168";
/// <inheritdoc />

View File

@@ -8,9 +8,9 @@
"1": "Datei wurde erfolgreich verschoben"
}
},
"SetResellerDisplayName": {
"Description": "Legt den Anzeigenamen für eine Datei basierend auf den Wiederverkäufer-Dateiinformationen fest, um Klarheit über Identität und Eigentum der Datei zu gewährleisten.",
"Label": "Reseller-Anzeigenamen setzen",
"SetFileDropDisplayName": {
"Description": "Legt den Anzeigenamen für eine Datei basierend auf den Dateiinformationen des File Drops fest, um Klarheit über die Dateiidentität und den Besitz zu gewährleisten.",
"Label": "Datei Drop Anzeigenamen festlegen",
"Outputs": {
"1": "Anzeigename festgelegt"
}
@@ -18,9 +18,9 @@
}
},
"Plugins": {
"Reseller": {
"Description": "Plugin, das flow-bezogene Elemente für Reseller bereitstellt",
"Label": "Reseller"
"FileDrop": {
"Description": "Plugin, das File Drop bezogene Flow-Elemente bereitstellt",
"Label": "File Drop"
}
}
}

View File

@@ -8,9 +8,9 @@
"1": "File was was successfully moved"
}
},
"SetResellerDisplayName": {
"Description": "Sets the display name for a file based on reseller file information, ensuring clarity on file identity and ownership.",
"Label": "Set Reseller Display Name",
"SetFileDropDisplayName": {
"Description": "Sets the display name for a file based on file drop file information, ensuring clarity on file identity and ownership.",
"Label": "Set File Drop Display Name",
"Outputs": {
"1": "Display name set"
}
@@ -18,9 +18,9 @@
}
},
"Plugins": {
"Reseller": {
"Description": "Plugin that provides Reseller related flow elements",
"Label": "Reseller"
"FileDrop": {
"Description": "Plugin that provides File Drop related flow elements",
"Label": "File Drop"
}
}
}

View File

@@ -8,19 +8,19 @@
"1": "El archivo se movió con éxito"
}
},
"SetResellerDisplayName": {
"Description": "Establece el nombre para mostrar de un archivo basado en la información del archivo del distribuidor, asegurando claridad sobre la identidad y propiedad del archivo.",
"Label": "Establecer Nombre de Distribuidor",
"SetFileDropDisplayName": {
"Description": "Establece el nombre para mostrar de un archivo según la información del archivo de File Drop, asegurando claridad sobre la identidad y propiedad del archivo.",
"Label": "Establecer nombre para mostrar del archivo de File Drop",
"Outputs": {
"1": "Nombre de visualización establecido"
"1": "Nombre para mostrar establecido"
}
}
}
},
"Plugins": {
"Reseller": {
"Description": "Complemento que proporciona elementos de flujo relacionados con el revendedor",
"Label": "Revendedor"
"FileDrop": {
"Description": "Complemento que proporciona elementos de flujo relacionados con File Drop",
"Label": "File Drop"
}
}
}

View File

@@ -8,19 +8,19 @@
"1": "Le fichier a été déplacé avec succès"
}
},
"SetResellerDisplayName": {
"Description": "Définit le nom d'affichage d'un fichier en fonction des informations du fichier du revendeur, garantissant une clarté sur l'identité et la propriété du fichier.",
"Label": "Définir le Nom d'Affichage du Revendeur",
"SetFileDropDisplayName": {
"Description": "Définit le nom affiché d'un fichier en fonction des informations du fichier de File Drop, garantissant la clarté de l'identité et de la propriété du fichier.",
"Label": "Définir le nom affiché du fichier de File Drop",
"Outputs": {
"1": "Nom d'affichage défini"
"1": "Nom affiché défini"
}
}
}
},
"Plugins": {
"Reseller": {
"Description": "Plugin qui fournit des éléments de flux liés aux revendeurs",
"Label": "Revendeur"
"FileDrop": {
"Description": "Plugin qui fournit des éléments de flux liés à File Drop",
"Label": "File Drop"
}
}
}

View File

@@ -8,9 +8,9 @@
"1": "Il file è stato spostato con successo"
}
},
"SetResellerDisplayName": {
"Description": "Imposta il nome visualizzato per un file in base alle informazioni del file del rivenditore, garantendo chiarezza sull'identità e sulla proprietà del file.",
"Label": "Imposta Nome Visualizzato Rivenditore",
"SetFileDropDisplayName": {
"Description": "Imposta il nome visualizzato di un file in base alle informazioni del file di File Drop, garantendo chiarezza sull'identità e la proprietà del file.",
"Label": "Imposta il nome visualizzato del file di File Drop",
"Outputs": {
"1": "Nome visualizzato impostato"
}
@@ -18,9 +18,9 @@
}
},
"Plugins": {
"Reseller": {
"Description": "Plugin che fornisce elementi di flusso relativi ai rivenditori",
"Label": "Rivenditore"
"FileDrop": {
"Description": "Plugin che fornisce elementi di flusso relativi a File Drop",
"Label": "File Drop"
}
}
}

View File

@@ -8,9 +8,9 @@
"1": "ファイルは正常に移動されました"
}
},
"SetResellerDisplayName": {
"Description": "リセラーのファイル情報に基づいてファイルの表示名を設定し、ファイルの識別と所有者を明確にします。",
"Label": "リセラーの表示名を設定",
"SetFileDropDisplayName": {
"Description": "ファイルのドロップ情報に基づいてファイルの表示名を設定し、ファイルの識別と所有権が明確であることを保証します。",
"Label": "ファイルドロップ表示名を設定",
"Outputs": {
"1": "表示名が設定されました"
}
@@ -18,9 +18,9 @@
}
},
"Plugins": {
"Reseller": {
"Description": "リセラー関連のフロー要素を提供するプラグイン",
"Label": "リセラー"
"FileDrop": {
"Description": "File Drop 関連のフロー要素を提供するプラグイン",
"Label": "File Drop"
}
}
}

26
FileDrop/i18n/ko.json Normal file
View File

@@ -0,0 +1,26 @@
{
"Flow": {
"Parts": {
"MoveToUserFolder": {
"Description": "작업 파일을 사용자의 출력 디렉토리로 이동합니다.",
"Label": "사용자 폴더로 이동",
"Outputs": {
"1": "파일이 성공적으로 이동되었습니다"
}
},
"SetFileDropDisplayName": {
"Description": "파일 드롭 파일 정보를 기반으로 파일의 표시 이름을 설정하여 파일의 정체성과 소유권을 명확하게 보장합니다.",
"Label": "파일 드롭 표시 이름 설정",
"Outputs": {
"1": "표시 이름이 설정됨"
}
}
}
},
"Plugins": {
"FileDrop": {
"Description": "File Drop 관련 흐름 요소를 제공하는 플러그인",
"Label": "File Drop"
}
}
}

26
FileDrop/i18n/nl.json Normal file
View File

@@ -0,0 +1,26 @@
{
"Flow": {
"Parts": {
"MoveToUserFolder": {
"Description": "Verplaatst het werkbestand naar de uitvoermap van de gebruiker.",
"Label": "Verplaats naar Gebruikersmap",
"Outputs": {
"1": "Bestand is succesvol verplaatst"
}
},
"SetFileDropDisplayName": {
"Description": "Stelt de weergavenaam van een bestand in op basis van de bestandsinformatie van File Drop, om duidelijkheid te waarborgen over de identiteit en eigendom van het bestand.",
"Label": "Weergavenaam voor File Drop instellen",
"Outputs": {
"1": "Weergavenaam ingesteld"
}
}
}
},
"Plugins": {
"FileDrop": {
"Description": "Plugin die File Drop gerelateerde flow-elementen biedt",
"Label": "File Drop"
}
}
}

View File

@@ -8,19 +8,19 @@
"1": "O arquivo foi movido com sucesso"
}
},
"SetResellerDisplayName": {
"Description": "Define o nome de exibição de um arquivo com base nas informações do arquivo do revendedor, garantindo clareza sobre a identidade e propriedade do arquivo.",
"Label": "Definir Nome de Exibição do Revendedor",
"SetFileDropDisplayName": {
"Description": "Define o nome exibido de um arquivo com base nas informações do arquivo de File Drop, garantindo clareza sobre a identidade e a propriedade do arquivo.",
"Label": "Definir nome exibido do arquivo de File Drop",
"Outputs": {
"1": "Nome de exibição definido"
"1": "Nome exibido definido"
}
}
}
},
"Plugins": {
"Reseller": {
"Description": "Plugin que fornece elementos de fluxo relacionados ao revendedor",
"Label": "Revendedor"
"FileDrop": {
"Description": "Plugin que fornece elementos de fluxo relacionados ao File Drop",
"Label": "File Drop"
}
}
}

View File

@@ -8,9 +8,9 @@
"1": "Файл успешно перемещен"
}
},
"SetResellerDisplayName": {
"Description": "Устанавливает отображаемое имя файла на основе информации о файле реселлера, обеспечивая ясность в идентификации и владении файлом.",
"Label": "Установить отображаемое имя реселлера",
"SetFileDropDisplayName": {
"Description": "Устанавливает отображаемое имя файла на основе информации о файле в File Drop, обеспечивая ясность относительно идентичности и собственности файла.",
"Label": "Установить отображаемое имя файла для File Drop",
"Outputs": {
"1": "Отображаемое имя установлено"
}
@@ -18,9 +18,9 @@
}
},
"Plugins": {
"Reseller": {
"Description": "Плагин, предоставляющий элементы потока, связанные с реселлерами",
"Label": "Реселлер"
"FileDrop": {
"Description": "Плагин, который предоставляет элементы потока, связанные с File Drop",
"Label": "File Drop"
}
}
}

26
FileDrop/i18n/sv.json Normal file
View File

@@ -0,0 +1,26 @@
{
"Flow": {
"Parts": {
"MoveToUserFolder": {
"Description": "Flyttar arbetsfilen till användarens utmatningskatalog.",
"Label": "Flytta till Användarmapp",
"Outputs": {
"1": "Filen flyttades framgångsrikt"
}
},
"SetFileDropDisplayName": {
"Description": "Sätter visningsnamnet för en fil baserat på filinformation från File Drop, vilket säkerställer tydlighet om filens identitet och ägande.",
"Label": "Ställ in visningsnamn för File Drop",
"Outputs": {
"1": "Visningsnamn inställt"
}
}
}
},
"Plugins": {
"FileDrop": {
"Description": "Plugin som tillhandahåller flow-element relaterade till File Drop",
"Label": "File Drop"
}
}
}

View File

@@ -8,9 +8,9 @@
"1": "文件已成功移动"
}
},
"SetResellerDisplayName": {
"Description": "根据经销商的文件信息设置文件的显示名称,以清晰显示文件的身份和归属。",
"Label": "设置经销商显示名称",
"SetFileDropDisplayName": {
"Description": "根据文件上传信息设置文件的显示名称,确保文件的身份和所有权清晰可见。",
"Label": "设置文件上传显示名称",
"Outputs": {
"1": "显示名称已设置"
}
@@ -18,9 +18,9 @@
}
},
"Plugins": {
"Reseller": {
"Description": "提供与经销商相关的流程元素的插件",
"Label": "经销商"
"FileDrop": {
"Description": "提供与文件上传相关的流程元素的插件",
"Label": "文件上传"
}
}
}

26
FileDrop/i18n/zht.json Normal file
View File

@@ -0,0 +1,26 @@
{
"Flow": {
"Parts": {
"MoveToUserFolder": {
"Description": "將工作檔案移動到使用者的輸出目錄。",
"Label": "移動到使用者資料夾",
"Outputs": {
"1": "檔案已成功移動"
}
},
"SetFileDropDisplayName": {
"Description": "根據文件上傳資訊設定文件的顯示名稱,確保文件的身份和所有權清晰可見。",
"Label": "設定文件上傳顯示名稱",
"Outputs": {
"1": "顯示名稱已設定"
}
}
}
},
"Plugins": {
"FileDrop": {
"Description": "提供與文件上傳相關的流程元素的插件",
"Label": "文件上傳"
}
}
}

View File

@@ -43,7 +43,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PluginTestLibrary", "Plugin
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Docker", "Docker\Docker.csproj", "{2E26B8A7-269B-4E0C-A4D6-936B6FEC01F5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Reseller", "Reseller\Reseller.csproj", "{AB24139B-9B44-47EA-829A-954CFFC23A65}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FileDrop", "FileDrop\FileDrop.csproj", "{AB24139B-9B44-47EA-829A-954CFFC23A65}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Pdf", "Pdf\Pdf.csproj", "{4E968B9E-7B02-4F2B-BA99-F671C9336F0D}"
EndProject

View File

@@ -1,26 +0,0 @@
{
"Flow": {
"Parts": {
"MoveToUserFolder": {
"Description": "작업 파일을 사용자의 출력 디렉토리로 이동합니다.",
"Label": "사용자 폴더로 이동",
"Outputs": {
"1": "파일이 성공적으로 이동되었습니다"
}
},
"SetResellerDisplayName": {
"Description": "리셀러 파일 정보를 기반으로 파일의 표시 이름을 설정하여 파일의 정체성과 소유권을 명확히 합니다.",
"Label": "리셀러 표시 이름 설정",
"Outputs": {
"1": "표시 이름 설정됨"
}
}
}
},
"Plugins": {
"Reseller": {
"Description": "리셀러 관련 흐름 요소를 제공하는 플러그인",
"Label": "리셀러"
}
}
}

View File

@@ -1,26 +0,0 @@
{
"Flow": {
"Parts": {
"MoveToUserFolder": {
"Description": "Verplaatst het werkbestand naar de uitvoermap van de gebruiker.",
"Label": "Verplaats naar Gebruikersmap",
"Outputs": {
"1": "Bestand is succesvol verplaatst"
}
},
"SetResellerDisplayName": {
"Description": "Stelt de weergavenaam in voor een bestand op basis van de wederverkoperbestandgegevens, zodat de identiteit en het eigendom van het bestand duidelijk zijn.",
"Label": "Stel Weergavenaam Wederverkoper In",
"Outputs": {
"1": "Weergavenaam ingesteld"
}
}
}
},
"Plugins": {
"Reseller": {
"Description": "Plugin die reseller-gerelateerde flow-elementen biedt",
"Label": "Reseller"
}
}
}

View File

@@ -1,26 +0,0 @@
{
"Flow": {
"Parts": {
"MoveToUserFolder": {
"Description": "Flyttar arbetsfilen till användarens utmatningskatalog.",
"Label": "Flytta till Användarmapp",
"Outputs": {
"1": "Filen flyttades framgångsrikt"
}
},
"SetResellerDisplayName": {
"Description": "Ställer in visningsnamnet för en fil baserat på återförsäljarens filinformation, vilket säkerställer tydlighet om filens identitet och ägande.",
"Label": "Ställ in återförsäljarens visningsnamn",
"Outputs": {
"1": "Visningsnamn inställt"
}
}
}
},
"Plugins": {
"Reseller": {
"Description": "Plugin som tillhandahåller flödesrelaterade element för återförsäljare",
"Label": "Återförsäljare"
}
}
}

View File

@@ -1,26 +0,0 @@
{
"Flow": {
"Parts": {
"MoveToUserFolder": {
"Description": "將工作檔案移動到使用者的輸出目錄。",
"Label": "移動到使用者資料夾",
"Outputs": {
"1": "檔案已成功移動"
}
},
"SetResellerDisplayName": {
"Description": "根據經銷商的文件信息設置文件的顯示名稱,以清晰顯示文件的身份和歸屬。",
"Label": "設置經銷商顯示名稱",
"Outputs": {
"1": "顯示名稱已設置"
}
}
}
},
"Plugins": {
"Reseller": {
"Description": "提供與經銷商相關的流程元素的外掛程式",
"Label": "經銷商"
}
}
}