Simplify project structure

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

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

@ -4,10 +4,10 @@ using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Discord.Data;
using DiscordChatExporter.Core.Exporting.Writers.MarkdownVisitors; using DiscordChatExporter.Core.Exporting.PlainText;
using DiscordChatExporter.Core.Utils.Extensions; using DiscordChatExporter.Core.Utils.Extensions;
namespace DiscordChatExporter.Core.Exporting.Writers; namespace DiscordChatExporter.Core.Exporting.Csv;
internal partial class CsvMessageWriter : MessageWriter internal partial class CsvMessageWriter : MessageWriter
{ {

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

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

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

@ -1,13 +1,9 @@
@using System @using System
@using System.Collections.Generic @using System.Collections.Generic
@using System.Linq @using System.Linq
@using System.Threading
@using System.Threading.Tasks @using System.Threading.Tasks
@using DiscordChatExporter.Core.Discord.Data @using DiscordChatExporter.Core.Discord.Data
@using DiscordChatExporter.Core.Discord.Data.Embeds @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 @using DiscordChatExporter.Core.Utils.Extensions
@inherits RazorBlade.HtmlTemplate @inherits RazorBlade.HtmlTemplate

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

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

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

@ -3,7 +3,10 @@ using System.IO;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using DiscordChatExporter.Core.Discord.Data; 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; namespace DiscordChatExporter.Core.Exporting;

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

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

@ -5,9 +5,8 @@ using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Discord.Data;
using DiscordChatExporter.Core.Discord.Data.Embeds; 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 internal class PlainTextMessageWriter : MessageWriter
{ {
Loading…
Cancel
Save