mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 12: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,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.
|
||||
|
||||
Reference in new issue
Block a user