Refactored the settings page (#258)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2025-01-05 15:11:15 +01:00
1 parent b9a65d9ca0
commit 06f66fdab2
53 files changed
+1057 -888

No files matched your search

@@ -0,0 +1,23 @@
using AIStudio.Settings;
using Microsoft.AspNetCore.Components;
namespace AIStudio.Components.Settings;
public abstract class SettingsPanelBase : ComponentBase
{
[Parameter]
public Func<IReadOnlyList<ConfigurationSelectData<string>>> AvailableLLMProvidersFunc { get; set; } = () => [];
[Inject]
protected SettingsManager SettingsManager { get; init; } = null!;
[Inject]
protected IDialogService DialogService { get; init; } = null!;
[Inject]
protected MessageBus MessageBus { get; init; } = null!;
[Inject]
protected RustService RustService { get; init; } = null!;
}