From 3c6d9d74a48f07c0f6b85fea10628abca1710f27 Mon Sep 17 00:00:00 2001 From: Luke Date: Sun, 20 Jun 2021 08:50:14 -0400 Subject: [PATCH] Lazy load images (#613) --- .../Writers/Html/MessageGroupTemplate.cshtml | 18 +++++++++--------- .../Writers/Html/PreambleTemplate.cshtml | 4 ++-- .../MarkdownVisitors/HtmlMarkdownVisitor.cs | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/DiscordChatExporter.Core/Exporting/Writers/Html/MessageGroupTemplate.cshtml b/DiscordChatExporter.Core/Exporting/Writers/Html/MessageGroupTemplate.cshtml index 351a6ea..0f5b4c4 100644 --- a/DiscordChatExporter.Core/Exporting/Writers/Html/MessageGroupTemplate.cshtml +++ b/DiscordChatExporter.Core/Exporting/Writers/Html/MessageGroupTemplate.cshtml @@ -52,7 +52,7 @@
@if (Model.MessageGroup.ReferencedMessage is not null) { - Avatar + Avatar @referencedUserNick }
- Avatar + Avatar
@userNick @@ -120,7 +120,7 @@ @if (attachment.IsImage) { - Image attachment + Image attachment } else if (attachment.IsVideo) @@ -182,7 +182,7 @@
@if (!string.IsNullOrWhiteSpace(embed.Author.IconUrl)) { - Author icon + Author icon } @if (!string.IsNullOrWhiteSpace(embed.Author.Name)) @@ -261,7 +261,7 @@ { } @@ -271,7 +271,7 @@ { } @@ -281,7 +281,7 @@ }
-
\ No newline at end of file +
diff --git a/DiscordChatExporter.Core/Exporting/Writers/Html/PreambleTemplate.cshtml b/DiscordChatExporter.Core/Exporting/Writers/Html/PreambleTemplate.cshtml index 517373f..d385d7b 100644 --- a/DiscordChatExporter.Core/Exporting/Writers/Html/PreambleTemplate.cshtml +++ b/DiscordChatExporter.Core/Exporting/Writers/Html/PreambleTemplate.cshtml @@ -67,7 +67,7 @@
- Guild icon + Guild icon
@Model.ExportContext.Request.Guild.Name
@@ -98,4 +98,4 @@
-
\ No newline at end of file +
diff --git a/DiscordChatExporter.Core/Exporting/Writers/MarkdownVisitors/HtmlMarkdownVisitor.cs b/DiscordChatExporter.Core/Exporting/Writers/MarkdownVisitors/HtmlMarkdownVisitor.cs index a05ca70..9f122e4 100644 --- a/DiscordChatExporter.Core/Exporting/Writers/MarkdownVisitors/HtmlMarkdownVisitor.cs +++ b/DiscordChatExporter.Core/Exporting/Writers/MarkdownVisitors/HtmlMarkdownVisitor.cs @@ -131,7 +131,7 @@ namespace DiscordChatExporter.Core.Exporting.Writers.MarkdownVisitors var jumboClass = _isJumbo ? "emoji--large" : ""; _buffer - .Append($"\"{emoji.Name}\""); + .Append($"\"{emoji.Name}\""); return base.VisitEmoji(emoji); } @@ -179,4 +179,4 @@ namespace DiscordChatExporter.Core.Exporting.Writers.MarkdownVisitors return buffer.ToString(); } } -} \ No newline at end of file +}