Unione dell'ondata 5 (desktop M6, rifiniture M8): avvisi collegati una sola volta nella composizione condivisa per le due vesti
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
This commit is contained in:
62 files changed
+4168
-327
No files matched your search
@@ -5,7 +5,6 @@ using Febe.App;
|
||||
using Febe.Browser.Cdp;
|
||||
using Febe.Browser.Hosting;
|
||||
using Febe.Core.Abstractions;
|
||||
using Febe.Core.Alerts;
|
||||
using Febe.Desktop.Core;
|
||||
using Febe.Web.Native;
|
||||
|
||||
@@ -16,12 +15,8 @@ internal sealed class FakeDesktopShell : IDesktopShell
|
||||
{
|
||||
public FakeNativeShell NativeShell { get; } = new();
|
||||
|
||||
public RecordingAlertChannel Alerts { get; } = new();
|
||||
|
||||
public INativeShell Native => NativeShell;
|
||||
|
||||
public IAlertChannel? Notifications => Alerts;
|
||||
|
||||
/// <summary>The WebView2 runtime this «Windows» has (null: missing).</summary>
|
||||
public string? RuntimeVersion { get; set; } = "141.0.3537.71";
|
||||
|
||||
@@ -57,7 +52,7 @@ internal sealed class FakeDesktopShell : IDesktopShell
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Folder picker, explorer, default browser, notifications and autostart, faked.</summary>
|
||||
/// <summary>Folder picker, explorer, default browser, notifications (the Windows alerts) and autostart, faked.</summary>
|
||||
internal sealed class FakeNativeShell : INativeShell
|
||||
{
|
||||
public bool CanPickFolder => true;
|
||||
@@ -109,20 +104,6 @@ internal sealed class FakeNativeShell : INativeShell
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>The Windows notifications, recorded.</summary>
|
||||
internal sealed class RecordingAlertChannel : IAlertChannel
|
||||
{
|
||||
public ConcurrentQueue<FebeAlert> Received { get; } = new();
|
||||
|
||||
public bool IsEnabled(AlertSettings settings) => settings.WindowsNotifications;
|
||||
|
||||
public Task SendAsync(FebeAlert alert, AlertSettings settings, CancellationToken ct)
|
||||
{
|
||||
Received.Enqueue(alert);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The window «Browser di Febe», faked: a CDP session that answers like a browser on a blank page, a session cookie
|
||||
/// that exists once «Alberto» has logged in, and a record of every time the window came to the front or went away.
|
||||
|
||||
Reference in new issue
Block a user