More namespace refactoring

This commit is contained in:
Oleksii Holub 2023-02-06 15:57:08 +02:00
parent 4cb8866429
commit 90c68e3cde
27 changed files with 52 additions and 58 deletions

View file

@ -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.

View file

@ -14,7 +14,7 @@
</ItemGroup>
<ItemGroup>
<RazorBlade Include="Exporting\Html\*.cshtml" />
<RazorBlade Include="**\*.cshtml" />
</ItemGroup>
</Project>

View file

@ -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
{

View file

@ -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
{

View file

@ -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

View file

@ -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
{

View file

@ -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
{

View file

@ -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;

View file

@ -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
{

View file

@ -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
{