mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-14 04:33:48 +00:00
Added components for configuration options
This commit is contained in:
7 files changed
+146
No files matched your search
@@ -0,0 +1,29 @@
|
||||
using AIStudio.Settings;
|
||||
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace AIStudio.Components;
|
||||
|
||||
/// <summary>
|
||||
/// A base class for configuration options.
|
||||
/// </summary>
|
||||
public partial class ConfigurationBase : ComponentBase
|
||||
{
|
||||
/// <summary>
|
||||
/// The description of the option, i.e., the name. Should be
|
||||
/// as short as possible.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public string OptionDescription { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// A helpful text that explains the option in more detail.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public string OptionHelp { get; set; } = string.Empty;
|
||||
|
||||
[Inject]
|
||||
public SettingsManager SettingsManager { get; init; } = null!;
|
||||
|
||||
protected const string MARGIN_CLASS = "mb-6";
|
||||
}
|
||||
Reference in new issue
Block a user