Agent code and restructuring

This commit is contained in:
2026-06-04 11:05:21 -04:00
parent 0feac0f0a0
commit 7310e4ed71
134 changed files with 3074 additions and 895 deletions
+5 -5
View File
@@ -4,16 +4,16 @@ namespace Services.Website;
public class DialogContents
{
public string Title { get; set; }
public string Message { get; set; }
public string ConfirmButtonLabel { get; set; }
public string Title { get; set; } = string.Empty;
public string Message { get; set; } = string.Empty;
public string ConfirmButtonLabel { get; set; } = string.Empty;
public EventCallback<EventArgs> OnConfirm { get; set; }
public EventCallback<EventArgs> OnCancel { get; set; }
}
public class MyDialogService : IMyDialogService
{
private DialogContents _dialogContents;
private DialogContents _dialogContents = null!;
public bool IsVisible { get; set; }
@@ -24,7 +24,7 @@ public class MyDialogService : IMyDialogService
public void Unsubscribe(Action action)
{
OnChange += action;
OnChange -= action;
}
public void Show(DialogContents dialogContents)
+1 -2
View File
@@ -7,8 +7,7 @@ public class PermissionService : IPermissionService, IDisposable
private readonly IStorageService _storageService;
private IJSRuntime _jsRuntime;
private IToastService _toastService;
private bool isLoaded;
private bool isStorageEnabled = false;
public PermissionService(IJSRuntime jsRuntime, IToastService toastService, IStorageService storageService)
{
+1 -1
View File
@@ -29,7 +29,7 @@ public class SearchService : ISearchService
public void Unsubscribe(Action action)
{
OnChange += action;
OnChange -= action;
}
public void Search(string entityId)
+3 -3
View File
@@ -40,17 +40,17 @@ public class StorageService : IStorageService
public void Unsubscribe(Action action)
{
OnChange += action;
OnChange -= action;
}
public T GetValue<T>(string forKey)
{
return _localStorageService.GetItem<T>(forKey);
return _localStorageService.GetItem<T>(forKey)!;
}
public void SetValue<T>(string key, T value)
{
if (key.Equals(StorageKeys.EnabledStorage) && value.Equals(true))
if (value != null && key.Equals(StorageKeys.EnabledStorage) && value.Equals(true))
{
_localStorageService.SetItem(key, value);
NotifyDataChanged();
+1 -1
View File
@@ -13,7 +13,7 @@ public class ToastService : IToastService
public void Unsubscribe(Action action)
{
OnChange += action;
OnChange -= action;
}
public void AddToast(ToastModel toast)