Adds the plugins and metadata provider management UI

This commit is contained in:
BinaryAlley committed 2026-08-12 11:07:28 -07:00
1 parent 7d417c1710
commit 4926efbe8d
46 files changed
+2764 -20

No files matched your search

@@ -0,0 +1,17 @@
namespace Lumina.Presentation.Web.Common.Enums.Plugins;
/// <summary>
/// Enumeration for the load status of a plugin.
/// </summary>
public enum PluginLoadStatus
{
/// <summary>
/// The plugin was loaded successfully.
/// </summary>
Loaded,
/// <summary>
/// The plugin failed to load.
/// </summary>
FailedToLoad
}
@@ -0,0 +1,27 @@
namespace Lumina.Presentation.Web.Common.Enums.Plugins;
/// <summary>
/// Enumeration for the types of a plugin setting.
/// </summary>
public enum PluginSettingType
{
/// <summary>
/// A free-form single line text value.
/// </summary>
Text,
/// <summary>
/// A numeric value.
/// </summary>
Number,
/// <summary>
/// A boolean (true/false) value.
/// </summary>
Boolean,
/// <summary>
/// A value selected from a list of allowed values.
/// </summary>
Select
}
@@ -0,0 +1,33 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Models.Plugins;
/// <summary>
/// Represents a metadata provider configured for a media library.
/// </summary>
[DebuggerDisplay("Name: {Name}")]
public class LibraryMetadataProviderModel
{
/// <summary>
/// Gets or sets the unique identifier of the plugin providing the metadata.
/// </summary>
public Guid PluginId { get; set; }
/// <summary>
/// Gets or sets the display name of the metadata provider.
/// </summary>
public string Name { get; set; } = string.Empty;
/// <summary>
/// Gets or sets whether the metadata provider is enabled for the media library.
/// </summary>
public bool IsEnabled { get; set; }
/// <summary>
/// Gets or sets the rank of the metadata provider, determining the order in which providers are tried.
/// </summary>
public int Rank { get; set; }
}
@@ -0,0 +1,55 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Enums.Plugins;
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Models.Plugins;
/// <summary>
/// Represents a detected plugin.
/// </summary>
[DebuggerDisplay("Name: {Name}")]
public class PluginModel
{
/// <summary>
/// Gets or sets the unique identifier of the plugin.
/// </summary>
public Guid Id { get; set; }
/// <summary>
/// Gets or sets the display name of the plugin.
/// </summary>
public string Name { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the author of the plugin.
/// </summary>
public string Author { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the version of the plugin.
/// </summary>
public string Version { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the description of the plugin.
/// </summary>
public string Description { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the load status of the plugin.
/// </summary>
public PluginLoadStatus LoadStatus { get; set; }
/// <summary>
/// Gets or sets the error message when the plugin failed to load.
/// </summary>
public string? LoadError { get; set; }
/// <summary>
/// Gets or sets the settings of the plugin.
/// </summary>
public Dictionary<string, string>? Settings { get; set; }
}
@@ -0,0 +1,37 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Enums.Plugins;
using System.Collections.Generic;
#endregion
namespace Lumina.Presentation.Web.Common.Models.Plugins;
/// <summary>
/// Describes a single setting of a plugin.
/// </summary>
public class PluginSettingDescriptorModel
{
/// <summary>
/// Gets or sets the unique key of the setting.
/// </summary>
public string Key { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the display label of the setting.
/// </summary>
public string Label { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the type of the setting.
/// </summary>
public PluginSettingType Type { get; set; }
/// <summary>
/// Gets or sets the default value of the setting.
/// </summary>
public string? DefaultValue { get; set; }
/// <summary>
/// Gets or sets the list of allowed values, when the setting is a selection.
/// </summary>
public IReadOnlyList<string>? AllowedValues { get; set; }
}
@@ -0,0 +1,27 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Collections.Generic;
#endregion
namespace Lumina.Presentation.Web.Common.Models.Plugins;
/// <summary>
/// Represents the settings of a plugin and their schema.
/// </summary>
public class PluginSettingsModel
{
/// <summary>
/// Gets or sets the unique identifier of the plugin.
/// </summary>
public Guid PluginId { get; set; }
/// <summary>
/// Gets or sets the schema of the plugin settings.
/// </summary>
public List<PluginSettingDescriptorModel> Schema { get; set; } = [];
/// <summary>
/// Gets or sets the current values of the plugin settings.
/// </summary>
public Dictionary<string, string>? Settings { get; set; }
}
@@ -0,0 +1,22 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Collections.Generic;
#endregion
namespace Lumina.Presentation.Web.Common.Models.Plugins;
/// <summary>
/// Represents a request to reorder the metadata providers of a media library.
/// </summary>
public class ReorderLibraryMetadataProvidersModel
{
/// <summary>
/// Gets or sets the Id of the media library whose metadata providers are reordered.
/// </summary>
public Guid LibraryId { get; set; }
/// <summary>
/// Gets or sets the plugin Ids in the new order, from highest to lowest rank.
/// </summary>
public List<Guid> PluginIds { get; set; } = [];
}
@@ -0,0 +1,27 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Collections.Generic;
#endregion
namespace Lumina.Presentation.Web.Common.Models.Plugins;
/// <summary>
/// Represents a request to enable or disable a metadata provider for a media library.
/// </summary>
public class SetLibraryMetadataProviderEnabledModel
{
/// <summary>
/// Gets or sets the Id of the media library whose metadata provider is enabled or disabled.
/// </summary>
public Guid LibraryId { get; set; }
/// <summary>
/// Gets or sets the unique identifier of the plugin providing the metadata.
/// </summary>
public Guid PluginId { get; set; }
/// <summary>
/// Gets or sets whether the metadata provider should be enabled for the media library.
/// </summary>
public bool IsEnabled { get; set; }
}
@@ -0,0 +1,22 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Collections.Generic;
#endregion
namespace Lumina.Presentation.Web.Common.Models.Plugins;
/// <summary>
/// Represents a request to update the settings of a plugin.
/// </summary>
public class UpdatePluginSettingsModel
{
/// <summary>
/// Gets or sets the unique identifier of the plugin.
/// </summary>
public Guid PluginId { get; set; }
/// <summary>
/// Gets or sets the settings of the plugin.
/// </summary>
public Dictionary<string, string>? Settings { get; set; }
}
@@ -4,6 +4,7 @@ using Lumina.Presentation.Web.Common.Attributes;
using Lumina.Presentation.Web.Common.Enums.Authorization;
using Lumina.Presentation.Web.Common.Models.Common;
using Lumina.Presentation.Web.Common.Models.Libraries;
using Lumina.Presentation.Web.Common.Models.Plugins;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
@@ -172,4 +173,40 @@ public class LibraryManagementController : Controller
await _apiHttpClient.PostAsync<EmptyModel, EmptyModel>($"libraries/{libraryId}/scans/{scanId}/cancel", new EmptyModel(), cancellationToken).ConfigureAwait(false);
return Json(new { success = true });
}
/// <summary>
/// Gets the metadata providers configured for the media library identified by <paramref name="libraryId"/>.
/// </summary>
/// <param name="libraryId">The id of the media library whose metadata providers are retrieved.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
[HttpGet("api-get-metadata-providers/{libraryId}")]
public async Task<IActionResult> GetMetadataProviders(Guid libraryId, CancellationToken cancellationToken = default)
{
LibraryMetadataProviderModel[] response = await _apiHttpClient.GetAsync<LibraryMetadataProviderModel[]>($"libraries/{libraryId}/metadata-providers", cancellationToken).ConfigureAwait(false);
return Json(new { success = true, data = response });
}
/// <summary>
/// Enables or disables the metadata provider for the media library described by <paramref name="model"/>.
/// </summary>
/// <param name="model">The model containing the Ids of the media library and of the metadata provider.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
[HttpPut("api-set-metadata-provider-enabled")]
public async Task<IActionResult> SetMetadataProviderEnabled([FromBody] SetLibraryMetadataProviderEnabledModel model, CancellationToken cancellationToken = default)
{
await _apiHttpClient.PutAsync<EmptyModel, SetLibraryMetadataProviderEnabledModel>($"libraries/{model.LibraryId}/metadata-providers/{model.PluginId}/enabled", model, cancellationToken).ConfigureAwait(false);
return Json(new { success = true });
}
/// <summary>
/// Reorders the metadata providers of the media library described by <paramref name="model"/>.
/// </summary>
/// <param name="model">The model containing the Id of the media library and the plugin Ids in the new order.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
[HttpPut("api-reorder-metadata-providers")]
public async Task<IActionResult> ReorderMetadataProviders([FromBody] ReorderLibraryMetadataProvidersModel model, CancellationToken cancellationToken = default)
{
await _apiHttpClient.PutAsync<EmptyModel, ReorderLibraryMetadataProvidersModel>($"libraries/{model.LibraryId}/metadata-providers/reorder", model, cancellationToken).ConfigureAwait(false);
return Json(new { success = true });
}
}
@@ -0,0 +1,91 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.Attributes;
using Lumina.Presentation.Web.Common.Enums.Plugins;
using Lumina.Presentation.Web.Common.Models.Common;
using Lumina.Presentation.Web.Common.Models.Plugins;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Web.Controllers.Plugins;
/// <summary>
/// Controller for the plugin management related operations.
/// </summary>
[Authorize]
[RequireRole("Admin")]
[Route("{culture}/plugins")]
public class PluginsController : Controller
{
private readonly IApiHttpClient _apiHttpClient;
/// <summary>
/// Initializes a new instance of the <see cref="PluginsController"/> class.
/// </summary>
/// <param name="apiHttpClient">Injected service for interactions with the API.</param>
public PluginsController(IApiHttpClient apiHttpClient)
{
_apiHttpClient = apiHttpClient;
}
/// <summary>
/// Displays the view for managing the plugins and their settings.
/// </summary>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
[HttpGet("")]
public async Task<IActionResult> Index(CancellationToken cancellationToken)
{
PluginModel[] plugins = await _apiHttpClient.GetAsync<PluginModel[]>("plugins", cancellationToken).ConfigureAwait(false);
// load the settings of the loaded plugins, so that the settings forms can be rendered on the server
Dictionary<Guid, PluginSettingsModel> settingsByPluginId = [];
foreach (PluginModel plugin in plugins)
{
if (plugin.LoadStatus == PluginLoadStatus.Loaded)
settingsByPluginId[plugin.Id] = await _apiHttpClient.GetAsync<PluginSettingsModel>($"plugins/{plugin.Id}/settings", cancellationToken).ConfigureAwait(false);
}
ViewData["pluginSettings"] = settingsByPluginId;
return View(plugins);
}
/// <summary>
/// Gets the list of the detected plugins.
/// </summary>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
[HttpGet("api-get-plugins")]
public async Task<IActionResult> GetPlugins(CancellationToken cancellationToken = default)
{
PluginModel[] response = await _apiHttpClient.GetAsync<PluginModel[]>("plugins/", cancellationToken).ConfigureAwait(false);
return Json(new { success = true, data = response });
}
/// <summary>
/// Gets the settings and their schema of the plugin identified by <paramref name="pluginId"/>.
/// </summary>
/// <param name="pluginId">The unique identifier of the plugin.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
[HttpGet("api-get-plugin-settings/{pluginId}")]
public async Task<IActionResult> GetPluginSettings(Guid pluginId, CancellationToken cancellationToken = default)
{
PluginSettingsModel response = await _apiHttpClient.GetAsync<PluginSettingsModel>($"plugins/{pluginId}/settings", cancellationToken).ConfigureAwait(false);
return Json(new { success = true, data = response });
}
/// <summary>
/// Updates the settings of the plugin identified by <paramref name="model"/>.
/// </summary>
/// <param name="model">The model containing the Id of the plugin and its settings.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
[HttpPut("api-update-plugin-settings")]
public async Task<IActionResult> UpdatePluginSettings([FromBody] UpdatePluginSettingsModel model, CancellationToken cancellationToken)
{
await _apiHttpClient.PutAsync<EmptyModel, UpdatePluginSettingsModel>($"plugins/{model.PluginId}/settings", model, cancellationToken).ConfigureAwait(false);
return Json(new { success = true });
}
}
@@ -58,6 +58,11 @@
<AutoGen>True</AutoGen>
<DependentUpon>Item.resx</DependentUpon>
</Compile>
<Compile Update="Resources\Views\Plugins\Index.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Index.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
@@ -324,6 +329,37 @@
<EmbeddedResource Update="Resources\Views\Shared\_NavMenu.zh-CN.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
</EmbeddedResource>
<EmbeddedResource Update="Resources\Views\Plugins\Index.de-DE.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
</EmbeddedResource>
<EmbeddedResource Update="Resources\Views\Plugins\Index.en-US.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
</EmbeddedResource>
<EmbeddedResource Update="Resources\Views\Plugins\Index.es-ES.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
</EmbeddedResource>
<EmbeddedResource Update="Resources\Views\Plugins\Index.fr-FR.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
</EmbeddedResource>
<EmbeddedResource Update="Resources\Views\Plugins\Index.it-IT.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
</EmbeddedResource>
<EmbeddedResource Update="Resources\Views\Plugins\Index.ja-JP.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
</EmbeddedResource>
<EmbeddedResource Update="Resources\Views\Plugins\Index.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Index.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="Resources\Views\Plugins\Index.ro-RO.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
</EmbeddedResource>
<EmbeddedResource Update="Resources\Views\Plugins\Index.ru-RU.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
</EmbeddedResource>
<EmbeddedResource Update="Resources\Views\Plugins\Index.zh-CN.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
</EmbeddedResource>
</ItemGroup>
<!--disable warnings generated by Mediator source generator-->
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -315,4 +315,25 @@
<data name="YouTube" xml:space="preserve">
<value>YouTube</value>
</data>
<data name="Name" xml:space="preserve">
<value>Name</value>
</data>
<data name="MetadataProviders" xml:space="preserve">
<value>Metadatenanbieter</value>
</data>
<data name="Order" xml:space="preserve">
<value>Reihenfolge</value>
</data>
<data name="MoveUp" xml:space="preserve">
<value>Nach oben</value>
</data>
<data name="MoveDown" xml:space="preserve">
<value>Nach unten</value>
</data>
<data name="OrderSaved" xml:space="preserve">
<value>Reihenfolge gespeichert</value>
</data>
<data name="DescriptionMetadataProviders" xml:space="preserve">
<value>Die Metadatenanbieter, die verwendet werden, um die Elemente dieser Bibliothek anzureichern, in der Reihenfolge, in der sie versucht werden.</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -315,4 +315,25 @@
<data name="YouTube" xml:space="preserve">
<value>YouTube</value>
</data>
<data name="Name" xml:space="preserve">
<value>Name</value>
</data>
<data name="MetadataProviders" xml:space="preserve">
<value>Metadata providers</value>
</data>
<data name="Order" xml:space="preserve">
<value>Order</value>
</data>
<data name="MoveUp" xml:space="preserve">
<value>Move up</value>
</data>
<data name="MoveDown" xml:space="preserve">
<value>Move down</value>
</data>
<data name="OrderSaved" xml:space="preserve">
<value>Order saved</value>
</data>
<data name="DescriptionMetadataProviders" xml:space="preserve">
<value>The metadata providers used to enrich the items of this library, in the order they are tried.</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -315,4 +315,25 @@
<data name="YouTube" xml:space="preserve">
<value>YouTube</value>
</data>
<data name="Name" xml:space="preserve">
<value>Nombre</value>
</data>
<data name="MetadataProviders" xml:space="preserve">
<value>Proveedores de metadatos</value>
</data>
<data name="Order" xml:space="preserve">
<value>Orden</value>
</data>
<data name="MoveUp" xml:space="preserve">
<value>Subir</value>
</data>
<data name="MoveDown" xml:space="preserve">
<value>Bajar</value>
</data>
<data name="OrderSaved" xml:space="preserve">
<value>Orden guardado</value>
</data>
<data name="DescriptionMetadataProviders" xml:space="preserve">
<value>Los proveedores de metadatos utilizados para enriquecer los elementos de esta biblioteca, en el orden en que se prueban.</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -315,4 +315,25 @@
<data name="YouTube" xml:space="preserve">
<value>YouTube</value>
</data>
<data name="Name" xml:space="preserve">
<value>Nom</value>
</data>
<data name="MetadataProviders" xml:space="preserve">
<value>Fournisseurs de métadonnées</value>
</data>
<data name="Order" xml:space="preserve">
<value>Ordre</value>
</data>
<data name="MoveUp" xml:space="preserve">
<value>Monter</value>
</data>
<data name="MoveDown" xml:space="preserve">
<value>Descendre</value>
</data>
<data name="OrderSaved" xml:space="preserve">
<value>Ordre enregistré</value>
</data>
<data name="DescriptionMetadataProviders" xml:space="preserve">
<value>Les fournisseurs de métadonnées utilisés pour enrichir les éléments de cette bibliothèque, dans l'ordre où ils sont essayés.</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -315,4 +315,25 @@
<data name="YouTube" xml:space="preserve">
<value>YouTube</value>
</data>
<data name="Name" xml:space="preserve">
<value>Nome</value>
</data>
<data name="MetadataProviders" xml:space="preserve">
<value>Fornitori di metadati</value>
</data>
<data name="Order" xml:space="preserve">
<value>Ordine</value>
</data>
<data name="MoveUp" xml:space="preserve">
<value>Sposta su</value>
</data>
<data name="MoveDown" xml:space="preserve">
<value>Sposta giù</value>
</data>
<data name="OrderSaved" xml:space="preserve">
<value>Ordine salvato</value>
</data>
<data name="DescriptionMetadataProviders" xml:space="preserve">
<value>I fornitori di metadati utilizzati per arricchire gli elementi di questa libreria, nell'ordine in cui vengono provati.</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -315,4 +315,25 @@
<data name="YouTube" xml:space="preserve">
<value>ユーチューブ</value>
</data>
<data name="Name" xml:space="preserve">
<value>名前</value>
</data>
<data name="MetadataProviders" xml:space="preserve">
<value>メタデータプロバイダー</value>
</data>
<data name="Order" xml:space="preserve">
<value>順序</value>
</data>
<data name="MoveUp" xml:space="preserve">
<value>上へ移動</value>
</data>
<data name="MoveDown" xml:space="preserve">
<value>下へ移動</value>
</data>
<data name="OrderSaved" xml:space="preserve">
<value>順序を保存しました</value>
</data>
<data name="DescriptionMetadataProviders" xml:space="preserve">
<value>このライブラリのアイテムを補完するために使用されるメタデータプロバイダーを、試行する順序で指定します。</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -315,4 +315,25 @@
<data name="YouTube" xml:space="preserve">
<value>YouTube</value>
</data>
<data name="Name" xml:space="preserve">
<value>Name</value>
</data>
<data name="MetadataProviders" xml:space="preserve">
<value>Metadata providers</value>
</data>
<data name="Order" xml:space="preserve">
<value>Order</value>
</data>
<data name="MoveUp" xml:space="preserve">
<value>Move up</value>
</data>
<data name="MoveDown" xml:space="preserve">
<value>Move down</value>
</data>
<data name="OrderSaved" xml:space="preserve">
<value>Order saved</value>
</data>
<data name="DescriptionMetadataProviders" xml:space="preserve">
<value>The metadata providers used to enrich the items of this library, in the order they are tried.</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -315,4 +315,25 @@
<data name="YouTube" xml:space="preserve">
<value>YouTube</value>
</data>
<data name="Name" xml:space="preserve">
<value>Nume</value>
</data>
<data name="MetadataProviders" xml:space="preserve">
<value>Furnizori de metadate</value>
</data>
<data name="Order" xml:space="preserve">
<value>Ordine</value>
</data>
<data name="MoveUp" xml:space="preserve">
<value>Mută în sus</value>
</data>
<data name="MoveDown" xml:space="preserve">
<value>Mută în jos</value>
</data>
<data name="OrderSaved" xml:space="preserve">
<value>Ordine salvată</value>
</data>
<data name="DescriptionMetadataProviders" xml:space="preserve">
<value>Furnizorii de metadate folosiți pentru a îmbogăți elementele acestei biblioteci, în ordinea în care sunt încercați.</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -315,4 +315,25 @@
<data name="YouTube" xml:space="preserve">
<value>Ютуб</value>
</data>
<data name="Name" xml:space="preserve">
<value>Имя</value>
</data>
<data name="MetadataProviders" xml:space="preserve">
<value>Поставщики метаданных</value>
</data>
<data name="Order" xml:space="preserve">
<value>Порядок</value>
</data>
<data name="MoveUp" xml:space="preserve">
<value>Вверх</value>
</data>
<data name="MoveDown" xml:space="preserve">
<value>Вниз</value>
</data>
<data name="OrderSaved" xml:space="preserve">
<value>Порядок сохранен</value>
</data>
<data name="DescriptionMetadataProviders" xml:space="preserve">
<value>Поставщики метаданных, используемые для обогащения элементов этой библиотеки, в порядке, в котором они испытываются.</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -315,4 +315,25 @@
<data name="YouTube" xml:space="preserve">
<value>油管</value>
</data>
<data name="Name" xml:space="preserve">
<value>名称</value>
</data>
<data name="MetadataProviders" xml:space="preserve">
<value>元数据提供程序</value>
</data>
<data name="Order" xml:space="preserve">
<value>顺序</value>
</data>
<data name="MoveUp" xml:space="preserve">
<value>上移</value>
</data>
<data name="MoveDown" xml:space="preserve">
<value>下移</value>
</data>
<data name="OrderSaved" xml:space="preserve">
<value>顺序已保存</value>
</data>
<data name="DescriptionMetadataProviders" xml:space="preserve">
<value>用于丰富此库项目内容的元数据提供程序,按其尝试顺序排列。</value>
</data>
</root>
@@ -0,0 +1,180 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lumina.Presentation.Web.Resources.Views.Plugins {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class Index {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Index() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lumina.Presentation.Web.Resources.Views.Plugins.Index", typeof(Index).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to Author.
/// </summary>
public static string Author {
get {
return ResourceManager.GetString("Author", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Description.
/// </summary>
public static string Description {
get {
return ResourceManager.GetString("Description", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Failed to load.
/// </summary>
public static string FailedToLoad {
get {
return ResourceManager.GetString("FailedToLoad", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Loaded.
/// </summary>
public static string Loaded {
get {
return ResourceManager.GetString("Loaded", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Load error.
/// </summary>
public static string LoadError {
get {
return ResourceManager.GetString("LoadError", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Load status.
/// </summary>
public static string LoadStatus {
get {
return ResourceManager.GetString("LoadStatus", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Name.
/// </summary>
public static string Name {
get {
return ResourceManager.GetString("Name", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to No plugins have been detected..
/// </summary>
public static string NoPlugins {
get {
return ResourceManager.GetString("NoPlugins", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Plugins.
/// </summary>
public static string Plugins {
get {
return ResourceManager.GetString("Plugins", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Save.
/// </summary>
public static string Save {
get {
return ResourceManager.GetString("Save", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Settings.
/// </summary>
public static string Settings {
get {
return ResourceManager.GetString("Settings", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Settings saved.
/// </summary>
public static string SettingsSaved {
get {
return ResourceManager.GetString("SettingsSaved", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Version.
/// </summary>
public static string Version {
get {
return ResourceManager.GetString("Version", resourceCulture);
}
}
}
}
@@ -0,0 +1,159 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Plugins" xml:space="preserve">
<value>Plugins</value>
</data>
<data name="Name" xml:space="preserve">
<value>Name</value>
</data>
<data name="Author" xml:space="preserve">
<value>Autor</value>
</data>
<data name="Version" xml:space="preserve">
<value>Version</value>
</data>
<data name="Description" xml:space="preserve">
<value>Beschreibung</value>
</data>
<data name="LoadStatus" xml:space="preserve">
<value>Ladestatus</value>
</data>
<data name="Loaded" xml:space="preserve">
<value>Geladen</value>
</data>
<data name="FailedToLoad" xml:space="preserve">
<value>Fehler beim Laden</value>
</data>
<data name="LoadError" xml:space="preserve">
<value>Ladefehler</value>
</data>
<data name="Settings" xml:space="preserve">
<value>Einstellungen</value>
</data>
<data name="NoPlugins" xml:space="preserve">
<value>Es wurden keine Plugins erkannt.</value>
</data>
<data name="Save" xml:space="preserve">
<value>Speichern</value>
</data>
<data name="SettingsSaved" xml:space="preserve">
<value>Einstellungen gespeichert</value>
</data>
</root>
@@ -0,0 +1,159 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Plugins" xml:space="preserve">
<value>Plugins</value>
</data>
<data name="Name" xml:space="preserve">
<value>Name</value>
</data>
<data name="Author" xml:space="preserve">
<value>Author</value>
</data>
<data name="Version" xml:space="preserve">
<value>Version</value>
</data>
<data name="Description" xml:space="preserve">
<value>Description</value>
</data>
<data name="LoadStatus" xml:space="preserve">
<value>Load status</value>
</data>
<data name="Loaded" xml:space="preserve">
<value>Loaded</value>
</data>
<data name="FailedToLoad" xml:space="preserve">
<value>Failed to load</value>
</data>
<data name="LoadError" xml:space="preserve">
<value>Load error</value>
</data>
<data name="Settings" xml:space="preserve">
<value>Settings</value>
</data>
<data name="NoPlugins" xml:space="preserve">
<value>No plugins have been detected.</value>
</data>
<data name="Save" xml:space="preserve">
<value>Save</value>
</data>
<data name="SettingsSaved" xml:space="preserve">
<value>Settings saved</value>
</data>
</root>
@@ -0,0 +1,159 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Plugins" xml:space="preserve">
<value>Plugins</value>
</data>
<data name="Name" xml:space="preserve">
<value>Nombre</value>
</data>
<data name="Author" xml:space="preserve">
<value>Autor</value>
</data>
<data name="Version" xml:space="preserve">
<value>Versión</value>
</data>
<data name="Description" xml:space="preserve">
<value>Descripción</value>
</data>
<data name="LoadStatus" xml:space="preserve">
<value>Estado de carga</value>
</data>
<data name="Loaded" xml:space="preserve">
<value>Cargado</value>
</data>
<data name="FailedToLoad" xml:space="preserve">
<value>Error al cargar</value>
</data>
<data name="LoadError" xml:space="preserve">
<value>Error de carga</value>
</data>
<data name="Settings" xml:space="preserve">
<value>Configuración</value>
</data>
<data name="NoPlugins" xml:space="preserve">
<value>No se han detectado plugins.</value>
</data>
<data name="Save" xml:space="preserve">
<value>Guardar</value>
</data>
<data name="SettingsSaved" xml:space="preserve">
<value>Configuración guardada</value>
</data>
</root>
@@ -0,0 +1,159 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Plugins" xml:space="preserve">
<value>Plugins</value>
</data>
<data name="Name" xml:space="preserve">
<value>Nom</value>
</data>
<data name="Author" xml:space="preserve">
<value>Auteur</value>
</data>
<data name="Version" xml:space="preserve">
<value>Version</value>
</data>
<data name="Description" xml:space="preserve">
<value>Description</value>
</data>
<data name="LoadStatus" xml:space="preserve">
<value>État de chargement</value>
</data>
<data name="Loaded" xml:space="preserve">
<value>Chargé</value>
</data>
<data name="FailedToLoad" xml:space="preserve">
<value>Échec du chargement</value>
</data>
<data name="LoadError" xml:space="preserve">
<value>Erreur de chargement</value>
</data>
<data name="Settings" xml:space="preserve">
<value>Paramètres</value>
</data>
<data name="NoPlugins" xml:space="preserve">
<value>Aucun plugin n'a été détecté.</value>
</data>
<data name="Save" xml:space="preserve">
<value>Enregistrer</value>
</data>
<data name="SettingsSaved" xml:space="preserve">
<value>Paramètres enregistrés</value>
</data>
</root>
@@ -0,0 +1,159 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Plugins" xml:space="preserve">
<value>Plugin</value>
</data>
<data name="Name" xml:space="preserve">
<value>Nome</value>
</data>
<data name="Author" xml:space="preserve">
<value>Autore</value>
</data>
<data name="Version" xml:space="preserve">
<value>Versione</value>
</data>
<data name="Description" xml:space="preserve">
<value>Descrizione</value>
</data>
<data name="LoadStatus" xml:space="preserve">
<value>Stato di caricamento</value>
</data>
<data name="Loaded" xml:space="preserve">
<value>Caricato</value>
</data>
<data name="FailedToLoad" xml:space="preserve">
<value>Errore di caricamento</value>
</data>
<data name="LoadError" xml:space="preserve">
<value>Errore di caricamento</value>
</data>
<data name="Settings" xml:space="preserve">
<value>Impostazioni</value>
</data>
<data name="NoPlugins" xml:space="preserve">
<value>Nessun plugin rilevato.</value>
</data>
<data name="Save" xml:space="preserve">
<value>Salva</value>
</data>
<data name="SettingsSaved" xml:space="preserve">
<value>Impostazioni salvate</value>
</data>
</root>
@@ -0,0 +1,159 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Plugins" xml:space="preserve">
<value>プラグイン</value>
</data>
<data name="Name" xml:space="preserve">
<value>名前</value>
</data>
<data name="Author" xml:space="preserve">
<value>作者</value>
</data>
<data name="Version" xml:space="preserve">
<value>バージョン</value>
</data>
<data name="Description" xml:space="preserve">
<value>説明</value>
</data>
<data name="LoadStatus" xml:space="preserve">
<value>読み込み状態</value>
</data>
<data name="Loaded" xml:space="preserve">
<value>読み込み済み</value>
</data>
<data name="FailedToLoad" xml:space="preserve">
<value>読み込みに失敗</value>
</data>
<data name="LoadError" xml:space="preserve">
<value>読み込みエラー</value>
</data>
<data name="Settings" xml:space="preserve">
<value>設定</value>
</data>
<data name="NoPlugins" xml:space="preserve">
<value>プラグインが検出されませんでした。</value>
</data>
<data name="Save" xml:space="preserve">
<value>保存</value>
</data>
<data name="SettingsSaved" xml:space="preserve">
<value>設定を保存しました</value>
</data>
</root>
@@ -0,0 +1,159 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Plugins" xml:space="preserve">
<value>Plugins</value>
</data>
<data name="Name" xml:space="preserve">
<value>Name</value>
</data>
<data name="Author" xml:space="preserve">
<value>Author</value>
</data>
<data name="Version" xml:space="preserve">
<value>Version</value>
</data>
<data name="Description" xml:space="preserve">
<value>Description</value>
</data>
<data name="LoadStatus" xml:space="preserve">
<value>Load status</value>
</data>
<data name="Loaded" xml:space="preserve">
<value>Loaded</value>
</data>
<data name="FailedToLoad" xml:space="preserve">
<value>Failed to load</value>
</data>
<data name="LoadError" xml:space="preserve">
<value>Load error</value>
</data>
<data name="Settings" xml:space="preserve">
<value>Settings</value>
</data>
<data name="NoPlugins" xml:space="preserve">
<value>No plugins have been detected.</value>
</data>
<data name="Save" xml:space="preserve">
<value>Save</value>
</data>
<data name="SettingsSaved" xml:space="preserve">
<value>Settings saved</value>
</data>
</root>
@@ -0,0 +1,159 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Plugins" xml:space="preserve">
<value>Pluginuri</value>
</data>
<data name="Name" xml:space="preserve">
<value>Nume</value>
</data>
<data name="Author" xml:space="preserve">
<value>Autor</value>
</data>
<data name="Version" xml:space="preserve">
<value>Versiune</value>
</data>
<data name="Description" xml:space="preserve">
<value>Descriere</value>
</data>
<data name="LoadStatus" xml:space="preserve">
<value>Stare de încărcare</value>
</data>
<data name="Loaded" xml:space="preserve">
<value>Încărcat</value>
</data>
<data name="FailedToLoad" xml:space="preserve">
<value>Încărcare eșuată</value>
</data>
<data name="LoadError" xml:space="preserve">
<value>Eroare de încărcare</value>
</data>
<data name="Settings" xml:space="preserve">
<value>Setări</value>
</data>
<data name="NoPlugins" xml:space="preserve">
<value>Nu au fost detectate pluginuri.</value>
</data>
<data name="Save" xml:space="preserve">
<value>Salvare</value>
</data>
<data name="SettingsSaved" xml:space="preserve">
<value>Setări salvate</value>
</data>
</root>
@@ -0,0 +1,159 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Plugins" xml:space="preserve">
<value>Плагины</value>
</data>
<data name="Name" xml:space="preserve">
<value>Имя</value>
</data>
<data name="Author" xml:space="preserve">
<value>Автор</value>
</data>
<data name="Version" xml:space="preserve">
<value>Версия</value>
</data>
<data name="Description" xml:space="preserve">
<value>Описание</value>
</data>
<data name="LoadStatus" xml:space="preserve">
<value>Статус загрузки</value>
</data>
<data name="Loaded" xml:space="preserve">
<value>Загружен</value>
</data>
<data name="FailedToLoad" xml:space="preserve">
<value>Не удалось загрузить</value>
</data>
<data name="LoadError" xml:space="preserve">
<value>Ошибка загрузки</value>
</data>
<data name="Settings" xml:space="preserve">
<value>Настройки</value>
</data>
<data name="NoPlugins" xml:space="preserve">
<value>Плагины не обнаружены.</value>
</data>
<data name="Save" xml:space="preserve">
<value>Сохранить</value>
</data>
<data name="SettingsSaved" xml:space="preserve">
<value>Настройки сохранены</value>
</data>
</root>
@@ -0,0 +1,159 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Plugins" xml:space="preserve">
<value>插件</value>
</data>
<data name="Name" xml:space="preserve">
<value>名称</value>
</data>
<data name="Author" xml:space="preserve">
<value>作者</value>
</data>
<data name="Version" xml:space="preserve">
<value>版本</value>
</data>
<data name="Description" xml:space="preserve">
<value>说明</value>
</data>
<data name="LoadStatus" xml:space="preserve">
<value>加载状态</value>
</data>
<data name="Loaded" xml:space="preserve">
<value>已加载</value>
</data>
<data name="FailedToLoad" xml:space="preserve">
<value>加载失败</value>
</data>
<data name="LoadError" xml:space="preserve">
<value>加载错误</value>
</data>
<data name="Settings" xml:space="preserve">
<value>设置</value>
</data>
<data name="NoPlugins" xml:space="preserve">
<value>未检测到插件。</value>
</data>
<data name="Save" xml:space="preserve">
<value>保存</value>
</data>
<data name="SettingsSaved" xml:space="preserve">
<value>设置已保存</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -210,4 +210,7 @@
<data name="Home" xml:space="preserve">
<value>Startseite</value>
</data>
<data name="Plugins" xml:space="preserve">
<value>Plugins</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -210,4 +210,7 @@
<data name="Home" xml:space="preserve">
<value>Home</value>
</data>
<data name="Plugins" xml:space="preserve">
<value>Plugins</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -210,4 +210,7 @@
<data name="Home" xml:space="preserve">
<value>Inicio</value>
</data>
<data name="Plugins" xml:space="preserve">
<value>Plugins</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -210,4 +210,7 @@
<data name="Home" xml:space="preserve">
<value>Accueil</value>
</data>
<data name="Plugins" xml:space="preserve">
<value>Plugins</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -210,4 +210,7 @@
<data name="Home" xml:space="preserve">
<value>Home</value>
</data>
<data name="Plugins" xml:space="preserve">
<value>Plugin</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -210,4 +210,7 @@
<data name="Home" xml:space="preserve">
<value>ホーム</value>
</data>
<data name="Plugins" xml:space="preserve">
<value>プラグイン</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -210,4 +210,7 @@
<data name="Home" xml:space="preserve">
<value>Home</value>
</data>
<data name="Plugins" xml:space="preserve">
<value>Plugins</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -210,4 +210,7 @@
<data name="Home" xml:space="preserve">
<value>Acasă</value>
</data>
<data name="Plugins" xml:space="preserve">
<value>Pluginuri</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -210,4 +210,7 @@
<data name="Home" xml:space="preserve">
<value>Главная</value>
</data>
<data name="Plugins" xml:space="preserve">
<value>Плагины</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -210,4 +210,7 @@
<data name="Home" xml:space="preserve">
<value>首页</value>
</data>
<data name="Plugins" xml:space="preserve">
<value>插件</value>
</data>
</root>
@@ -204,6 +204,25 @@
</div>
<small class="form-label text-disabled form-description">@_localizer["DescriptionShouldSkipUnchangedDirectoriesDuringScan"]</small>
</div>
@if (id is not null)
{
<h3 class="text-light-two">@_localizer["MetadataProviders"]</h3>
<div class="form-row">
<table id="metadata-providers-table" class="w-100">
<thead>
<tr>
<th class="w-50">@_localizer["Name"]</th>
<th class="w-15 text-center">@_localizer["Enabled"]</th>
<th class="w-35 text-center">@_localizer["Order"]</th>
</tr>
</thead>
<tbody>
<!-- metadata providers will be populated here -->
</tbody>
</table>
<small class="form-label text-disabled form-description">@_localizer["DescriptionMetadataProviders"]</small>
</div>
}
<div class="form-row">
<button type="submit" class="confirm-button w-100px">@_localizer["Save"]</button>
</div>
@@ -343,6 +362,75 @@
e.target.parentElement.remove();
};
const id = '@id';
const metadataProvidersTable = document.getElementById('metadata-providers-table');
const metadataProvidersTbody = metadataProvidersTable ? metadataProvidersTable.querySelector('tbody') : null;
// loads the metadata providers configured for the library, when editing an existing library
async function loadMetadataProvidersAsync() {
if (!id || !metadataProvidersTbody) return;
const url = '@_urlService.GetAbsoluteUrl("GetMetadataProviders", "LibraryManagement", new { libraryId = default(Guid) })'
.replace('/@(default(Guid))', `/${id}`); // libraryId needs to be replaced here, because GetAbsoluteUrl is server side, libraryId is client side
const response = await callApiGetAsync(url);
if (response && response.length > 0) {
metadataProvidersTbody.innerHTML = response.map((provider, index) => renderMetadataProviderRow(provider, index, response.length)).join('');
}
}
// renders a metadata provider row of the library
function renderMetadataProviderRow(provider, index, count) {
return `
<tr data-provider-plugin-id="${provider.pluginId}">
<td>${provider.name}</td>
<td class="text-center">
<input type="checkbox" class="metadata-provider-enabled" ${provider.isEnabled ? 'checked' : ''} />
</td>
<td class="text-center">
<button type="button" class="metadata-provider-move-up confirm-button f-12 h-20px" ${index === 0 ? 'disabled' : ''}>@_localizer["MoveUp"]</button>
<button type="button" class="metadata-provider-move-down abort-button f-12 h-20px" ${index === count - 1 ? 'disabled' : ''}>@_localizer["MoveDown"]</button>
</td>
</tr>`;
}
// on metadata provider move button click, reorders the providers and persists the new order
async function handleMetadataProviderReorderAsync(e) {
const button = e.target.closest('.metadata-provider-move-up, .metadata-provider-move-down');
if (!button || !metadataProvidersTbody) return;
const row = button.closest('tr');
if (button.classList.contains('metadata-provider-move-up')) {
const previousRow = row.previousElementSibling;
if (previousRow) metadataProvidersTbody.insertBefore(row, previousRow);
} else {
const nextRow = row.nextElementSibling;
if (nextRow) metadataProvidersTbody.insertBefore(nextRow, row);
}
await saveMetadataProviderOrderAsync();
}
// persists the current order of the metadata providers of the library
async function saveMetadataProviderOrderAsync() {
if (!id || !metadataProvidersTbody) return;
const pluginIds = Array.from(metadataProvidersTbody.querySelectorAll('tr[data-provider-plugin-id]'))
.map(row => row.getAttribute('data-provider-plugin-id'));
const result = await callApiPutAsync('@_urlService.GetAbsoluteUrl("ReorderMetadataProviders", "LibraryManagement")', { libraryId: id, pluginIds: pluginIds });
if (result.success) {
notificationService.show('@_localizer["OrderSaved"]', NotificationType.SUCCESS);
}
}
// on metadata provider enabled checkbox change, persists the new state
async function handleMetadataProviderEnabledChangeAsync(e) {
if (e.target.matches('.metadata-provider-enabled')) {
const row = e.target.closest('tr');
const pluginId = row.getAttribute('data-provider-plugin-id');
const isEnabled = e.target.checked;
const result = await callApiPutAsync('@_urlService.GetAbsoluteUrl("SetMetadataProviderEnabled", "LibraryManagement")', { libraryId: id, pluginId: pluginId, isEnabled: isEnabled });
if (!result.success) {
e.target.checked = !isEnabled;
}
}
};
// add listeners
form.addEventListener('keypress', handleEnterKey);
form.addEventListener('submit', handleSubmit);
@@ -352,6 +440,10 @@
imgAddCover.addEventListener('click', handleImgAddCoverClick);
mediaCoverFormTable.addEventListener('click', handleRowRemoval);
mediaDirectoriesFormTable.addEventListener('click', handleRowRemoval);
if (metadataProvidersTbody) {
metadataProvidersTbody.addEventListener('click', handleMetadataProviderReorderAsync);
metadataProvidersTbody.addEventListener('change', handleMetadataProviderEnabledChangeAsync);
}
// register cleanup for these listeners
cleanupFunctions.push(() => {
@@ -363,8 +455,17 @@
imgAddCover.removeEventListener('click', handleImgAddCoverClick);
mediaCoverFormTable.removeEventListener('click', handleRowRemoval);
mediaDirectoriesFormTable.removeEventListener('click', handleRowRemoval);
if (metadataProvidersTbody) {
metadataProvidersTbody.removeEventListener('click', handleMetadataProviderReorderAsync);
metadataProvidersTbody.removeEventListener('change', handleMetadataProviderEnabledChangeAsync);
}
});
// load the metadata providers when editing an existing library
if (id) {
loadMetadataProvidersAsync();
}
// store all cleanups for this view on window object using the scriptId
window.viewCleanups = window.viewCleanups || {};
window.viewCleanups['@scriptId'] = () => {
@@ -0,0 +1,200 @@
@*
/plugins
*@
@using Lumina.Presentation.Web.Common.Enums.Plugins
@using Lumina.Presentation.Web.Common.Models.Plugins
@using Lumina.Presentation.Web.Common.Services
@using Microsoft.AspNetCore.Mvc.Localization
@model PluginModel[]
@{
var settingsByPluginId = ViewData["pluginSettings"] as Dictionary<Guid, PluginSettingsModel> ?? new Dictionary<Guid, PluginSettingsModel>();
// generate a unique id for the scripts section of this view, so it can be dynamically loaded/unloaded by the global AJAX navigator handler
var scriptId = ScriptIdentifierHelper.GenerateScriptId();
}
@inject IUrlService _urlService
@inject IViewLocalizer _localizer
<div style="display: grid; grid-template-rows: auto 1fr;"><!--container with two rows, one fixed, one filling remaining space-->
<div style="min-height: 1rem;"></div><!--the first row is a dummy row for "margin", because setting a margin on the next row would offset the parent's position-->
<div class="enlightenment-panel shadow-effect mx-auto panel w-75 mb-10" style="min-width: 320px;">
<div class="shine-effect"></div>
<div class="form-row">
<h1 class="text-light-two w-100 text-center pt-0 pb-0 engraved-title">
@_localizer["Plugins"]
</h1>
</div>
@if (Model.Length > 0)
{
<table class="w-100 text-light-two">
<thead>
<tr>
<th class="w-25">@_localizer["Name"]</th>
<th class="w-15">@_localizer["Author"]</th>
<th class="w-10">@_localizer["Version"]</th>
<th class="w-30">@_localizer["Description"]</th>
<th class="w-10">@_localizer["LoadStatus"]</th>
<th class="w-10">@_localizer["Settings"]</th>
</tr>
</thead>
<tbody>
@foreach (PluginModel plugin in Model)
{
<tr data-plugin-id="@plugin.Id">
<td>@plugin.Name</td>
<td>@plugin.Author</td>
<td>@plugin.Version</td>
<td>@plugin.Description</td>
<td>
@if (plugin.LoadStatus == PluginLoadStatus.Loaded)
{
<span class="text-light-one">@_localizer["Loaded"]</span>
}
else
{
<span class="text-disabled">@_localizer["FailedToLoad"]</span>
}
</td>
<td class="text-center">
@if (plugin.LoadStatus == PluginLoadStatus.Loaded && settingsByPluginId.ContainsKey(plugin.Id))
{
<button type="button" class="btn-plugin-settings-toggle confirm-button f-12 h-20px">@_localizer["Settings"]</button>
}
</td>
</tr>
@if (plugin.LoadStatus == PluginLoadStatus.FailedToLoad && !string.IsNullOrWhiteSpace(plugin.LoadError))
{
<tr>
<td colspan="6" class="text-disabled">
@_localizer["LoadError"]: @plugin.LoadError
</td>
</tr>
}
@if (plugin.LoadStatus == PluginLoadStatus.Loaded && settingsByPluginId.ContainsKey(plugin.Id))
{
PluginSettingsModel pluginSettings = settingsByPluginId[plugin.Id];
<tr class="plugin-settings-row hidden">
<td colspan="6">
<div class="plugin-settings-panel w-75 mx-auto mt-5 mb-5" data-plugin-id="@plugin.Id">
@foreach (PluginSettingDescriptorModel descriptor in pluginSettings.Schema)
{
string currentValue = pluginSettings.Settings is not null && pluginSettings.Settings.ContainsKey(descriptor.Key)
? pluginSettings.Settings[descriptor.Key]
: descriptor.DefaultValue ?? string.Empty;
<div class="form-row">
<div class="form-label">
<label>@descriptor.Label</label>:
</div>
<div class="form-field">
@if (descriptor.Type == PluginSettingType.Text)
{
<input type="text" class="enlightenment-input" name="@descriptor.Key" value="@currentValue" />
}
else if (descriptor.Type == PluginSettingType.Number)
{
<input type="number" class="enlightenment-input" name="@descriptor.Key" value="@currentValue" />
}
else if (descriptor.Type == PluginSettingType.Boolean)
{
bool isChecked = bool.TryParse(currentValue, out bool parsedChecked) && parsedChecked;
<label class="enlightenment-checkbox-label">
<input type="checkbox" class="enlightenment-checkbox-hidden" name="@descriptor.Key" @(isChecked ? "checked" : "") />
<span class="enlightenment-checkbox"></span>
</label>
}
else if (descriptor.Type == PluginSettingType.Select)
{
<select class="enlightenment-input" name="@descriptor.Key">
@foreach (string allowedValue in descriptor.AllowedValues ?? [])
{
if (allowedValue == currentValue)
{
<option value="@allowedValue" selected>@allowedValue</option>
}
else
{
<option value="@allowedValue">@allowedValue</option>
}
}
</select>
}
</div>
</div>
}
<div class="form-row text-end">
<button type="button" class="btn-save-plugin-settings confirm-button f-12 h-22px">@_localizer["Save"]</button>
</div>
</div>
</td>
</tr>
}
}
</tbody>
</table>
}
else
{
<p id="no-plugins" class="text-center">@_localizer["NoPlugins"]</p>
}
</div>
</div>
@section Scripts {
<script type="text/javascript" data-form="@scriptId" defer>
// create cleanup registry for this view
const cleanupFunctions = [];
// on settings toggle button click, show/hide the settings row of the plugin
const handleSettingsToggleClick = function(e) {
if (e.target.matches('.btn-plugin-settings-toggle')) {
const row = e.target.closest('tr');
const settingsRow = row.nextElementSibling;
if (settingsRow && settingsRow.classList.contains('plugin-settings-row')) {
settingsRow.classList.toggle('hidden');
}
}
};
// on save plugin settings button click, collect the settings of the panel and send them to the API
const handleSavePluginSettingsClick = async function(e) {
if (e.target.matches('.btn-save-plugin-settings')) {
const panel = e.target.closest('.plugin-settings-panel');
const pluginId = panel.getAttribute('data-plugin-id');
const settings = {};
panel.querySelectorAll('input[name], select[name]').forEach(input => {
if (input.type === 'checkbox') {
settings[input.name] = input.checked.toString();
} else {
settings[input.name] = input.value;
}
});
const url = '@_urlService.GetAbsoluteUrl("UpdatePluginSettings", "Plugins")';
const result = await callApiPutAsync(url, { pluginId: pluginId, settings: settings });
if (result.success) {
notificationService.show('@_localizer["SettingsSaved"]', NotificationType.SUCCESS);
}
}
};
// add listeners
document.addEventListener('click', handleSettingsToggleClick);
document.addEventListener('click', handleSavePluginSettingsClick);
// register cleanup for these listeners
cleanupFunctions.push(() => {
document.removeEventListener('click', handleSettingsToggleClick);
document.removeEventListener('click', handleSavePluginSettingsClick);
});
// store all cleanups for this view on window object using the scriptId
window.viewCleanups = window.viewCleanups || {};
window.viewCleanups['@scriptId'] = () => {
cleanupFunctions.forEach(cleanup => cleanup());
console.log(`Unloaded @scriptId`);
};
console.log(`Loaded @scriptId`);
</script>
}
@@ -51,6 +51,7 @@
<ul>
<li><a href="@_urlService.GetAbsoluteUrl("ManageRoles", "Admin")" class="nav-link"><span>@_localizer["ManageRoles"]</span></a></li>
<li><a href="@_urlService.GetAbsoluteUrl("ManagePermissions", "Admin")" class="nav-link"><span>@_localizer["ManagePermissions"]</span></a></li>
<li><a href="@_urlService.GetAbsoluteUrl("Index", "Plugins")" class="nav-link"><span>@_localizer["Plugins"]</span></a></li>
</ul>
}
<div class="mobile-menu-heading">
@@ -155,6 +156,7 @@
<ul>
<li><a href="@_urlService.GetAbsoluteUrl("ManageRoles", "Admin")" class="nav-link">@_localizer["ManageRoles"]</a></li>
<li><a href="@_urlService.GetAbsoluteUrl("ManagePermissions", "Admin")" class="nav-link">@_localizer["ManagePermissions"]</a></li>
<li><a href="@_urlService.GetAbsoluteUrl("Index", "Plugins")" class="nav-link">@_localizer["Plugins"]</a></li>
</ul>
</li>
}