Skip to content

Commit

Permalink
Enable html view
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Apr 28, 2023
1 parent b6ecccc commit bcd43a1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>preview.18</VersionSuffix>
<VersionSuffix>preview.19</VersionSuffix>
<Authors>Wiesław Šoltés</Authors>
<Company>Wiesław Šoltés</Company>
<Copyright>Copyright © Wiesław Šoltés 2023</Copyright>
Expand All @@ -19,7 +19,7 @@
<CommunityToolkitMvvmVersion>8.1.0</CommunityToolkitMvvmVersion>
<MicrosoftExtensionsDependencyInjectionVersion>7.0.0</MicrosoftExtensionsDependencyInjectionVersion>
<MarkdownAvaloniaVersion>11.0.0-b1</MarkdownAvaloniaVersion>
<AvaloniaHtmlRendererVersion>11.0.0-preview5</AvaloniaHtmlRendererVersion>
<AvaloniaHtmlRendererVersion>11.0.0-preview6</AvaloniaHtmlRendererVersion>
<SystemCommandLineVersion>2.0.0-beta1.20104.2</SystemCommandLineVersion>
<XUnitVersion>2.4.1</XUnitVersion>
<XUnitAbstractionsVersion>2.0.3</XUnitAbstractionsVersion>
Expand Down
3 changes: 1 addition & 2 deletions src/ChatGPT.UI/ChatGPT.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
<!--<PackageReference Include="NodeEditorAvalonia" Version="$(NodeEditorVersion)" />-->
<!--<PackageReference Include="NodeEditorAvalonia.Mvvm" Version="$(NodeEditorVersion)" />-->
<PackageReference Include="Markdown.Avalonia" Version="$(MarkdownAvaloniaVersion)" />
<!-- TODO: -->
<!--<PackageReference Include="Avalonia.HtmlRenderer" Version="$(AvaloniaHtmlRendererVersion)" />-->
<PackageReference Include="Avalonia.HtmlRenderer" Version="$(AvaloniaHtmlRendererVersion)" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ChatGPT.Core\ChatGPT.Core.csproj" />
Expand Down
4 changes: 1 addition & 3 deletions src/ChatGPT.UI/Views/Chat/ChatMessageView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@
</DataTemplate>
<!-- Html -->
<DataTemplate x:DataType="vm:ChatMessageViewModel" x:Key="HtmlDataTemplate">
<!-- TODO: -->
<!-- <messages:ChatHtmlMessageView /> -->
<messages:ChatTextMessageView />
<messages:ChatHtmlMessageView />
</DataTemplate>
</dt:DataTemplateSelector.Resources>
</dt:DataTemplateSelector>
Expand Down
6 changes: 2 additions & 4 deletions src/ChatGPT.UI/Views/Chat/Messages/ChatHtmlMessageView.axaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<!-- TODO: -->
<!--<UserControl xmlns="https://github.com/avaloniaui"
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Expand All @@ -16,5 +15,4 @@
IsVisible="{Binding Message, Converter={x:Static ObjectConverters.IsNotNull}}"
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
Classes.error="{Binding IsError}" />
</UserControl>-->
<UserControl xmlns="https://github.com/avaloniaui" />
</UserControl>
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// TODO:
/*using Avalonia.Controls;
using Avalonia.Controls;

namespace ChatGPT.Views.Chat.Messages;

Expand All @@ -9,4 +8,4 @@ public ChatHtmlMessageView()
{
InitializeComponent();
}
}*/
}

0 comments on commit bcd43a1

Please sign in to comment.