mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-28 21:54:11 -04:00
More namespace refactoring
This commit is contained in:
parent
4cb8866429
commit
90c68e3cde
27 changed files with 52 additions and 58 deletions
|
@ -32,7 +32,7 @@ public record Message(
|
|||
if (embeds.Count <= 1)
|
||||
return embeds;
|
||||
|
||||
// Discord API doesn't support embeds with multiple images, even though the Discord client does.
|
||||
// Discord API doesn't support embeds with multiple images, even though Discord client does.
|
||||
// To work around this, it seems that the API returns multiple consecutive embeds with different images,
|
||||
// which are then merged together on the client. We need to replicate the same behavior ourselves.
|
||||
// Currently, only known case where this workaround is required is Twitter embeds.
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<RazorBlade Include="Exporting\Html\*.cshtml" />
|
||||
<RazorBlade Include="**\*.cshtml" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
|
@ -4,10 +4,9 @@ using System.Text;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using DiscordChatExporter.Core.Discord.Data;
|
||||
using DiscordChatExporter.Core.Exporting.PlainText;
|
||||
using DiscordChatExporter.Core.Utils.Extensions;
|
||||
|
||||
namespace DiscordChatExporter.Core.Exporting.Csv;
|
||||
namespace DiscordChatExporter.Core.Exporting;
|
||||
|
||||
internal partial class CsvMessageWriter : MessageWriter
|
||||
{
|
|
@ -10,7 +10,7 @@ using DiscordChatExporter.Core.Markdown;
|
|||
using DiscordChatExporter.Core.Markdown.Parsing;
|
||||
using DiscordChatExporter.Core.Utils.Extensions;
|
||||
|
||||
namespace DiscordChatExporter.Core.Exporting.Html;
|
||||
namespace DiscordChatExporter.Core.Exporting;
|
||||
|
||||
internal partial class HtmlMarkdownVisitor : MarkdownVisitor
|
||||
{
|
|
@ -2,9 +2,9 @@ using System;
|
|||
using DiscordChatExporter.Core.Discord.Data;
|
||||
using DiscordChatExporter.Core.Discord.Data.Embeds;
|
||||
|
||||
namespace DiscordChatExporter.Core.Exporting.Html;
|
||||
namespace DiscordChatExporter.Core.Exporting;
|
||||
|
||||
internal static class MessageExtensions
|
||||
internal static class HtmlMessageExtensions
|
||||
{
|
||||
// Message content is hidden if it's a link to an embedded media
|
||||
// https://github.com/Tyrrrz/DiscordChatExporter/issues/682
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using DiscordChatExporter.Core.Discord.Data;
|
||||
using WebMarkupMin.Core;
|
||||
|
||||
namespace DiscordChatExporter.Core.Exporting.Html;
|
||||
namespace DiscordChatExporter.Core.Exporting;
|
||||
|
||||
internal class HtmlMessageWriter : MessageWriter
|
||||
{
|
|
@ -5,11 +5,10 @@ using System.Threading;
|
|||
using System.Threading.Tasks;
|
||||
using DiscordChatExporter.Core.Discord.Data;
|
||||
using DiscordChatExporter.Core.Discord.Data.Embeds;
|
||||
using DiscordChatExporter.Core.Exporting.PlainText;
|
||||
using DiscordChatExporter.Core.Utils.Extensions;
|
||||
using JsonExtensions.Writing;
|
||||
|
||||
namespace DiscordChatExporter.Core.Exporting.Json;
|
||||
namespace DiscordChatExporter.Core.Exporting;
|
||||
|
||||
internal class JsonMessageWriter : MessageWriter
|
||||
{
|
|
@ -3,10 +3,6 @@ using System.IO;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using DiscordChatExporter.Core.Discord.Data;
|
||||
using DiscordChatExporter.Core.Exporting.Csv;
|
||||
using DiscordChatExporter.Core.Exporting.Html;
|
||||
using DiscordChatExporter.Core.Exporting.Json;
|
||||
using DiscordChatExporter.Core.Exporting.PlainText;
|
||||
|
||||
namespace DiscordChatExporter.Core.Exporting;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using DiscordChatExporter.Core.Markdown;
|
|||
using DiscordChatExporter.Core.Markdown.Parsing;
|
||||
using DiscordChatExporter.Core.Utils.Extensions;
|
||||
|
||||
namespace DiscordChatExporter.Core.Exporting.PlainText;
|
||||
namespace DiscordChatExporter.Core.Exporting;
|
||||
|
||||
internal partial class PlainTextMarkdownVisitor : MarkdownVisitor
|
||||
{
|
|
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
|||
using DiscordChatExporter.Core.Discord.Data;
|
||||
using DiscordChatExporter.Core.Discord.Data.Embeds;
|
||||
|
||||
namespace DiscordChatExporter.Core.Exporting.PlainText;
|
||||
namespace DiscordChatExporter.Core.Exporting;
|
||||
|
||||
internal class PlainTextMessageWriter : MessageWriter
|
||||
{
|
Loading…
Add table
Add a link
Reference in a new issue