Improved code quality

This commit is contained in:
Thorsten Sommer 2025-03-16 21:16:08 +01:00
parent f5a49ff077
commit 909996656f
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
3 changed files with 2 additions and 9 deletions

View File

@ -41,10 +41,10 @@ public partial class ContentBlockComponent : ComponentBase
public string Class { get; set; } = string.Empty;
[Parameter]
public bool IsLastContentBlock { get; set; } = false;
public bool IsLastContentBlock { get; set; }
[Parameter]
public bool IsSecondToLastBlock { get; set; } = false;
public bool IsSecondToLastBlock { get; set; }
[Parameter]
public Func<IContent, Task>? RemoveBlockFunc { get; set; }

View File

@ -3,7 +3,6 @@ using AIStudio.Dialogs;
using AIStudio.Provider;
using AIStudio.Settings;
using AIStudio.Settings.DataModel;
using AIStudio.Tools.Services;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
@ -41,9 +40,6 @@ public partial class ChatComponent : MSGComponentBase, IAsyncDisposable
[Inject]
private IDialogService DialogService { get; init; } = null!;
[Inject]
private DataSourceService DataSourceService { get; init; } = null!;
private const Placement TOOLBAR_TOOLTIP_PLACEMENT = Placement.Top;
private static readonly Dictionary<string, object?> USER_INPUT_ATTRIBUTES = new();

View File

@ -13,9 +13,6 @@ namespace AIStudio.Components;
public partial class Workspaces : ComponentBase
{
[Inject]
private SettingsManager SettingsManager { get; init; } = null!;
[Inject]
private IDialogService DialogService { get; init; } = null!;