Updated plugin version control. Added notification system to web ui

This commit is contained in:
2025-05-06 13:11:14 +03:00
parent 2bd368dcce
commit 3a7bd53cfc
14 changed files with 313 additions and 69 deletions

View File

@@ -0,0 +1,12 @@
using WebUI.Models;
namespace WebUI.Services;
public class NotificationService
{
public event Action<Notification> OnNotify;
public void Notify(string message, NotificationType type = NotificationType.Info)
{
OnNotify?.Invoke(new Notification { Message = message, Type = type });
}
}