mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 09:11:10 +00:00
Renames project content from Lumina to Nemera
This commit is contained in:
1 parent
0f659a4877
commit
c583c9327c
6127 files changed
+41884
-41884
No files matched your search
@@ -1,11 +1,11 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Plugins.Contracts.Core.Reading;
|
||||
using Lumina.Plugins.Epub.Core;
|
||||
using Nemera.Plugins.Contracts.Core.Reading;
|
||||
using Nemera.Plugins.Epub.Core;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Plugins.Epub.Common.DependencyInjection;
|
||||
namespace Nemera.Plugins.Epub.Common.DependencyInjection;
|
||||
|
||||
/// <summary>
|
||||
/// Utility class for registering the services of the EPUB format reader into the Dependency Injection container.
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Plugins.Epub.Common.Models.DTO.Opf;
|
||||
namespace Nemera.Plugins.Epub.Common.Models.DTO.Opf;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for the parsed OPF package document of an EPUB.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Plugins.Epub.Common.Models.DTO.Opf;
|
||||
namespace Nemera.Plugins.Epub.Common.Models.DTO.Opf;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for a manifest item of the OPF package document of an EPUB.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary.Reading;
|
||||
using Lumina.Plugins.Epub.Common.Models.DTO.Opf;
|
||||
using Nemera.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary.Reading;
|
||||
using Nemera.Plugins.Epub.Common.Models.DTO.Opf;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
@@ -14,7 +14,7 @@ using System.Xml;
|
||||
using System.Xml.Linq;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Plugins.Epub.Core.Epub;
|
||||
namespace Nemera.Plugins.Epub.Core.Epub;
|
||||
|
||||
/// <summary>
|
||||
/// Parses an EPUB into a normalized reading document, extracting its sections and resources into a working directory.
|
||||
@@ -159,7 +159,7 @@ internal static class EpubDocumentParser
|
||||
|
||||
// Build a lookup that maps every reachable archive file to the opaque value its references should be rewritten to.
|
||||
// A section's HTML references other files of the book by their archive path, for example, <img src="images/cover.png">, but the client could be remote, and cannot reach into the ZIP.
|
||||
// So, before a section is served, every such reference must be replaced by a marker (data-lumina-resource) that the host turns into a resource endpoint URL.
|
||||
// So, before a section is served, every such reference must be replaced by a marker (data-nemera-resource) that the host turns into a resource endpoint URL.
|
||||
// This lookup is what makes that rewrite possible: given the archive path a reference points to, it answers which marker to use.
|
||||
Dictionary<string, string> targetByResolvedPath = [];
|
||||
HashSet<string> spineItemIds = [.. opfDocument.SpineIds];
|
||||
@@ -482,7 +482,7 @@ internal static class EpubDocumentParser
|
||||
|
||||
// The original attribute is removed and replaced by the resource marker, so that the browser does not attempt to load the internal archive path,
|
||||
// which it cannot reach; the client resolves the marker to the resource endpoint instead.
|
||||
element.SetAttributeValue("data-lumina-resource", target);
|
||||
element.SetAttributeValue("data-nemera-resource", target);
|
||||
attribute.Remove();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Plugins.Contracts.Common.Models.DTO.Settings;
|
||||
using Lumina.Plugins.Contracts.Core.Plugins;
|
||||
using Lumina.Plugins.Epub.Common.DependencyInjection;
|
||||
using Nemera.Plugins.Contracts.Common.Models.DTO.Settings;
|
||||
using Nemera.Plugins.Contracts.Core.Plugins;
|
||||
using Nemera.Plugins.Epub.Common.DependencyInjection;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Plugins.Epub.Core;
|
||||
namespace Nemera.Plugins.Epub.Core;
|
||||
|
||||
/// <summary>
|
||||
/// Plugin that decodes EPUB books into a normalized reading document.
|
||||
@@ -32,7 +32,7 @@ public sealed class EpubPlugin : IPlugin, IPluginServiceRegistrator
|
||||
/// <summary>
|
||||
/// Gets the author of the plugin.
|
||||
/// </summary>
|
||||
public string Author => "Lumina";
|
||||
public string Author => "Nemera";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the version of the plugin.
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary.Reading;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||
using Lumina.Plugins.Contracts.Core.Reading;
|
||||
using Lumina.Plugins.Epub.Core.Epub;
|
||||
using Nemera.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary.Reading;
|
||||
using Nemera.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||
using Nemera.Plugins.Contracts.Core.Reading;
|
||||
using Nemera.Plugins.Epub.Core.Epub;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Plugins.Epub.Core;
|
||||
namespace Nemera.Plugins.Epub.Core;
|
||||
|
||||
/// <summary>
|
||||
/// Book reader for the EPUB format.
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</Target>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\Lumina.Plugins.Contracts\Lumina.Plugins.Contracts.csproj">
|
||||
<ProjectReference Include="..\..\src\Nemera.Plugins.Contracts\Nemera.Plugins.Contracts.csproj">
|
||||
<Private>false</Private><!--Do not copy this assembly in the output directory, it's loaded from somewhere else.-->
|
||||
<ExcludeAssets>runtime</ExcludeAssets>
|
||||
</ProjectReference>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
[assembly: InternalsVisibleTo("Lumina.Plugins.Epub.UnitTests")]
|
||||
[assembly: InternalsVisibleTo("Lumina.Plugins.Epub.IntegrationTests")]
|
||||
[assembly: InternalsVisibleTo("Lumina.Plugins.Epub.Fixtures")]
|
||||
[assembly: InternalsVisibleTo("Nemera.Plugins.Epub.UnitTests")]
|
||||
[assembly: InternalsVisibleTo("Nemera.Plugins.Epub.IntegrationTests")]
|
||||
[assembly: InternalsVisibleTo("Nemera.Plugins.Epub.Fixtures")]
|
||||
Reference in new issue
Block a user