Simplify project structure

pull/1001/head
Oleksii Holub 2 years ago
parent 3436f6b060
commit 6917406101

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

@ -4,10 +4,10 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
using DiscordChatExporter.Core.Discord.Data;
using DiscordChatExporter.Core.Exporting.Writers.MarkdownVisitors;
using DiscordChatExporter.Core.Exporting.PlainText;
using DiscordChatExporter.Core.Utils.Extensions;
namespace DiscordChatExporter.Core.Exporting.Writers;
namespace DiscordChatExporter.Core.Exporting.Csv;
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.Writers.MarkdownVisitors;
namespace DiscordChatExporter.Core.Exporting.Html;
internal partial class HtmlMarkdownVisitor : MarkdownVisitor
{

@ -5,10 +5,9 @@ using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using DiscordChatExporter.Core.Discord.Data;
using DiscordChatExporter.Core.Exporting.Writers.Html;
using WebMarkupMin.Core;
namespace DiscordChatExporter.Core.Exporting.Writers;
namespace DiscordChatExporter.Core.Exporting.Html;
internal class HtmlMessageWriter : MessageWriter
{

@ -2,7 +2,7 @@ using System;
using DiscordChatExporter.Core.Discord.Data;
using DiscordChatExporter.Core.Discord.Data.Embeds;
namespace DiscordChatExporter.Core.Exporting.Writers.Html;
namespace DiscordChatExporter.Core.Exporting.Html;
internal static class MessageExtensions
{

@ -1,13 +1,9 @@
@using System
@using System.Collections.Generic
@using System.Linq
@using System.Threading
@using System.Threading.Tasks
@using DiscordChatExporter.Core.Discord.Data
@using DiscordChatExporter.Core.Discord.Data.Embeds
@using DiscordChatExporter.Core.Exporting
@using DiscordChatExporter.Core.Exporting.Writers.Html
@using DiscordChatExporter.Core.Exporting.Writers.MarkdownVisitors
@using DiscordChatExporter.Core.Utils.Extensions
@inherits RazorBlade.HtmlTemplate

@ -1,7 +1,4 @@
@using System.Threading
@using DiscordChatExporter.Core.Exporting
@inherits RazorBlade.HtmlTemplate
@inherits RazorBlade.HtmlTemplate
@functions {
public required ExportContext ExportContext { get; init; }

@ -1,8 +1,6 @@
@using System
@using System.Threading
@using System.Threading.Tasks
@using DiscordChatExporter.Core.Exporting
@using DiscordChatExporter.Core.Exporting.Writers.MarkdownVisitors
@inherits RazorBlade.HtmlTemplate

@ -5,11 +5,11 @@ using System.Threading;
using System.Threading.Tasks;
using DiscordChatExporter.Core.Discord.Data;
using DiscordChatExporter.Core.Discord.Data.Embeds;
using DiscordChatExporter.Core.Exporting.Writers.MarkdownVisitors;
using DiscordChatExporter.Core.Exporting.PlainText;
using DiscordChatExporter.Core.Utils.Extensions;
using JsonExtensions.Writing;
namespace DiscordChatExporter.Core.Exporting.Writers;
namespace DiscordChatExporter.Core.Exporting.Json;
internal class JsonMessageWriter : MessageWriter
{

@ -3,7 +3,10 @@ using System.IO;
using System.Threading;
using System.Threading.Tasks;
using DiscordChatExporter.Core.Discord.Data;
using DiscordChatExporter.Core.Exporting.Writers;
using DiscordChatExporter.Core.Exporting.Csv;
using DiscordChatExporter.Core.Exporting.Html;
using DiscordChatExporter.Core.Exporting.Json;
using DiscordChatExporter.Core.Exporting.PlainText;
namespace DiscordChatExporter.Core.Exporting;

@ -4,7 +4,7 @@ using System.Threading;
using System.Threading.Tasks;
using DiscordChatExporter.Core.Discord.Data;
namespace DiscordChatExporter.Core.Exporting.Writers;
namespace DiscordChatExporter.Core.Exporting;
internal abstract class MessageWriter : IAsyncDisposable
{

@ -5,7 +5,7 @@ using DiscordChatExporter.Core.Markdown;
using DiscordChatExporter.Core.Markdown.Parsing;
using DiscordChatExporter.Core.Utils.Extensions;
namespace DiscordChatExporter.Core.Exporting.Writers.MarkdownVisitors;
namespace DiscordChatExporter.Core.Exporting.PlainText;
internal partial class PlainTextMarkdownVisitor : MarkdownVisitor
{

@ -5,9 +5,8 @@ using System.Threading;
using System.Threading.Tasks;
using DiscordChatExporter.Core.Discord.Data;
using DiscordChatExporter.Core.Discord.Data.Embeds;
using DiscordChatExporter.Core.Exporting.Writers.MarkdownVisitors;
namespace DiscordChatExporter.Core.Exporting.Writers;
namespace DiscordChatExporter.Core.Exporting.PlainText;
internal class PlainTextMessageWriter : MessageWriter
{
Loading…
Cancel
Save