Skip to content

Commit

Permalink
更新依赖 (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
Richasy authored Jul 12, 2024
1 parent c29eabb commit 03071aa
Show file tree
Hide file tree
Showing 56 changed files with 81 additions and 67 deletions.
2 changes: 1 addition & 1 deletion src/Console/RodelAudio.Console/RodelAudio.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.6" />
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.7" />
<PackageReference Include="Spectre.Console" Version="0.49.1" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions src/Console/RodelChat.Console/RodelChat.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.6" />
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.7" />
<PackageReference Include="Spectre.Console" Version="0.49.1" />
<PackageReference Include="System.Drawing.Common" Version="8.0.4" />
<PackageReference Include="System.Drawing.Common" Version="8.0.7" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Console/RodelDraw.Console/RodelDraw.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.6" />
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.7" />
<PackageReference Include="Spectre.Console" Version="0.49.1" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.6" />
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.7" />
<PackageReference Include="Spectre.Console" Version="0.49.1" />
</ItemGroup>

Expand Down
7 changes: 4 additions & 3 deletions src/Core/RodelAgent.Context/RodelAgent.Context.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.5" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.5">
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.5" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.7" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@
<ProjectReference Include="..\RodelDraw.Models\RodelDraw.Models.csproj" />
<ProjectReference Include="..\RodelTranslate.Models\RodelTranslate.Models.csproj" />
</ItemGroup>

</Project>
3 changes: 1 addition & 2 deletions src/Core/RodelAgent.Models/RodelAgent.Models.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<ItemGroup>
<PackageReference Include="Microsoft.Bcl.HashCode" Version="1.1.1" />
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
<PackageReference Include="System.Text.Json" Version="8.0.3" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
</ItemGroup>

</Project>
1 change: 0 additions & 1 deletion src/Core/RodelAgent.Statics/RodelAgent.Statics.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@
<ProjectReference Include="..\RodelDraw.Models\RodelDraw.Models.csproj" />
<ProjectReference Include="..\RodelTranslate.Models\RodelTranslate.Models.csproj" />
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions src/Core/RodelAudio.Core/RodelAudio.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Core/RodelAudio.Models/RodelAudio.Models.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Bcl.HashCode" Version="1.1.1" />
<PackageReference Include="System.Text.Json" Version="8.0.3" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
</ItemGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/Core/RodelChat.Core/RodelChat.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<NoWarn>SKEXP0110;SKEXP0010;SKEXP0001</NoWarn>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Core/RodelChat.Models/RodelChat.Models.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Bcl.HashCode" Version="1.1.1" />
<PackageReference Include="System.Text.Json" Version="8.0.3" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
</ItemGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/Core/RodelDraw.Core/RodelDraw.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 1 addition & 2 deletions src/Core/RodelDraw.Models/RodelDraw.Models.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@

<ItemGroup>
<PackageReference Include="Microsoft.Bcl.HashCode" Version="1.1.1" />
<PackageReference Include="System.Text.Json" Version="8.0.3" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\Libs\semantic-kernel\dotnet\src\SemanticKernel.Abstractions\SemanticKernel.Abstractions.csproj" />
<ProjectReference Include="..\RodelAgent.Models\RodelAgent.Models.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/Core/RodelTranslate.Core/RodelTranslate.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup>
Expand All @@ -21,5 +22,4 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@
<ProjectReference Include="..\..\Libs\semantic-kernel\dotnet\src\SemanticKernel.Abstractions\SemanticKernel.Abstractions.csproj" />
<ProjectReference Include="..\RodelTranslate.Models\RodelTranslate.Models.csproj" />
</ItemGroup>

</Project>
3 changes: 1 addition & 2 deletions src/Core/RodelTranslate.Models/RodelTranslate.Models.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
<PackageReference Include="System.Text.Json" Version="8.0.3" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\RodelAgent.Models\RodelAgent.Models.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.6.0" />
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.10.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace RodelAgent.UI.Controls;
/// </summary>
public partial class CardPanel
{
#pragma warning disable CS1591
#pragma warning disable SA1600 // Elements should be documented
public static readonly DependencyProperty IsEnableCheckProperty =
DependencyProperty.Register(nameof(IsEnableCheck), typeof(bool), typeof(CardPanel), new PropertyMetadata(false));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@
<Grid>
<ic:SymbolIcon
FontSize="16"
IsFilled="True"
IconVariant="Filled"
Symbol="Play"
Visibility="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ViewModel.IsPlaying, Converter={StaticResource BoolToVisibilityReverseConverter}}" />
<ic:SymbolIcon
FontSize="16"
IsFilled="True"
IconVariant="Filled"
Symbol="Pause"
Visibility="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ViewModel.IsPlaying}" />
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<ic:SymbolIcon
FontSize="14"
Foreground="{ThemeResource AccentTextFillColorPrimaryBrush}"
IsFilled="True"
IconVariant="Filled"
Symbol="BotAdd" />
</Button>
<Button
Expand All @@ -58,7 +58,7 @@
ToolTipService.ToolTip="{ext:Locale Name=MoreOptions}">
<ic:SymbolIcon
FontSize="14"
IsFilled="True"
IconVariant="Filled"
Symbol="MoreHorizontal" />
<Button.Flyout>
<MenuFlyout Placement="Bottom">
Expand Down Expand Up @@ -113,7 +113,7 @@
<ic:SymbolIcon
VerticalAlignment="Center"
FontSize="12"
IsFilled="{x:Bind ViewModel.IsServiceSectionVisible, Mode=OneWay}"
IconVariant="{x:Bind GetIconVariant(ViewModel.IsServiceSectionVisible), Mode=OneWay}"
Symbol="BotSparkle" />
<TextBlock
x:Name="ServiceBlock"
Expand All @@ -140,7 +140,7 @@
<ic:SymbolIcon
VerticalAlignment="Center"
FontSize="12"
IsFilled="{x:Bind ViewModel.IsPluginSectionVisible, Mode=OneWay}"
IconVariant="{x:Bind GetIconVariant(ViewModel.IsPluginSectionVisible), Mode=OneWay}"
Symbol="FlashSparkle" />
<TextBlock
x:Name="PresetBlock"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ public sealed partial class ChatServiceHeader : ChatServicePageControlBase
/// </summary>
public ChatServiceHeader() => InitializeComponent();

private FluentIcons.Common.IconVariant GetIconVariant(bool isSelected)
{
_ = this;
return isSelected ? FluentIcons.Common.IconVariant.Filled : FluentIcons.Common.IconVariant.Regular;
}

private void OnServiceButtonClick(object sender, RoutedEventArgs e)
=> ViewModel.IsServiceSectionVisible = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
VerticalAlignment="Center"
FontSize="14"
Foreground="{ThemeResource SystemFillColorSuccessBrush}"
IsFilled="True"
IconVariant="Filled"
Symbol="CheckmarkCircle"
Visibility="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ViewModel.IsCompleted}" />
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
VerticalAlignment="Center"
FontSize="14"
Foreground="{ThemeResource SystemFillColorSuccessBrush}"
IsFilled="True"
IconVariant="Filled"
Symbol="CheckmarkCircle"
Visibility="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ViewModel.IsCompleted}" />
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
VerticalAlignment="Center"
FontSize="14"
Foreground="{ThemeResource SystemFillColorSuccessBrush}"
IsFilled="True"
IconVariant="Filled"
Symbol="CheckmarkCircle"
Visibility="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ViewModel.IsCompleted}" />
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
VerticalAlignment="Center"
FontSize="20"
Foreground="{ThemeResource AccentTextFillColorPrimaryBrush}"
IsFilled="True"
IconVariant="Filled"
Symbol="{x:Bind ViewModel.Symbol, Mode=OneWay}"
Visibility="{x:Bind ViewModel.IsSelected, Mode=OneWay}">
<animations:Implicit.ShowAnimations>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
VerticalAlignment="Center"
FontSize="14"
Foreground="{ThemeResource SystemFillColorSuccessBrush}"
IsFilled="True"
IconVariant="Filled"
Symbol="CheckmarkCircle"
Visibility="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ViewModel.IsCompleted}" />
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<ic:SymbolIcon
FontSize="14"
Foreground="{ThemeResource SystemFillColorSuccessBrush}"
IsFilled="True"
IconVariant="Filled"
Symbol="CheckmarkCircle"
Visibility="{x:Bind ViewModel.IsCompleted, Mode=OneWay}" />
</community:SettingsExpander>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<ic:SymbolIcon
FontSize="14"
Foreground="{ThemeResource SystemFillColorSuccessBrush}"
IsFilled="True"
IconVariant="Filled"
Symbol="CheckmarkCircle"
Visibility="{x:Bind ViewModel.IsCompleted, Mode=OneWay}" />
</community:SettingsExpander>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Rodel. All rights reserved.

using System.Diagnostics;
using System.Text.Json;
using RodelAgent.Models.Constants;
using RodelAgent.UI.ViewModels.Items;
using RodelAudio.Models.Client;

Expand All @@ -24,8 +22,7 @@ public AzureOpenAIAudioConfigSettingSection()
/// <inheritdoc/>
protected override void OnViewModelChanged(DependencyPropertyChangedEventArgs e)
{
var newVM = e.NewValue as AudioServiceItemViewModel;
if (newVM == null)
if (e.NewValue is not AudioServiceItemViewModel newVM)
{
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<ic:SymbolIcon
FontSize="14"
Foreground="{ThemeResource SystemFillColorSuccessBrush}"
IsFilled="True"
IconVariant="Filled"
Symbol="CheckmarkCircle"
Visibility="{x:Bind ViewModel.IsCompleted, Mode=OneWay}" />
</community:SettingsExpander>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<ic:SymbolIcon
FontSize="14"
Foreground="{ThemeResource SystemFillColorSuccessBrush}"
IsFilled="True"
IconVariant="Filled"
Symbol="CheckmarkCircle"
Visibility="{x:Bind ViewModel.IsCompleted, Mode=OneWay}" />
</community:SettingsExpander>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<ic:SymbolIcon
FontSize="14"
Foreground="{ThemeResource SystemFillColorSuccessBrush}"
IsFilled="True"
IconVariant="Filled"
Symbol="CheckmarkCircle"
Visibility="{x:Bind ViewModel.IsCompleted, Mode=OneWay}" />
</community:SettingsExpander>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<ic:SymbolIcon
FontSize="14"
Foreground="{ThemeResource SystemFillColorSuccessBrush}"
IsFilled="True"
IconVariant="Filled"
Symbol="CheckmarkCircle"
Visibility="{x:Bind ViewModel.IsCompleted, Mode=OneWay}" />
</community:SettingsExpander>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<ic:SymbolIcon
FontSize="14"
Foreground="{ThemeResource SystemFillColorSuccessBrush}"
IsFilled="True"
IconVariant="Filled"
Symbol="CheckmarkCircle"
Visibility="{x:Bind ViewModel.IsCompleted, Mode=OneWay}" />
</community:SettingsExpander>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<ic:SymbolIcon
FontSize="14"
Foreground="{ThemeResource SystemFillColorSuccessBrush}"
IsFilled="True"
IconVariant="Filled"
Symbol="CheckmarkCircle"
Visibility="{x:Bind ViewModel.IsCompleted, Mode=OneWay}" />
</community:SettingsExpander>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<ic:SymbolIcon
FontSize="14"
Foreground="{ThemeResource SystemFillColorSuccessBrush}"
IsFilled="True"
IconVariant="Filled"
Symbol="CheckmarkCircle"
Visibility="{x:Bind ViewModel.IsCompleted, Mode=OneWay}" />
</community:SettingsExpander>
Expand Down
Loading

0 comments on commit 03071aa

Please sign in to comment.