M6 Windows: composizione condivisa Febe.App per Server e Desktop; Febe per Windows (WPF) con l'interfaccia in WebView2, area di notifica, istanza unica, «Browser di Febe» su WebView2 con CDP filtrato (WebView2CdpSession) e ripieghi di S2 (composizione, Edge), guscio nativo, avvisi, spostamento verificato della cartella dei dati, icona del marchio; un solo Febe.exe, installatore NSIS e zip portabile; guida docs/windows.md e prove dal vivo S1–S3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
This commit is contained in:
Claude committed 2026-10-13 21:50:25 +00:00
1 parent dc4d1fc738
commit b443adfa8b
73 files changed
+7914 -699

No files matched your search

+5 -35
View File
@@ -1,3 +1,4 @@
using Febe.App;
using Febe.Core.Library;
using Febe.Web.Connection;
@@ -11,9 +12,9 @@ internal static class StartupChecks
{
public const string PasswordMissing = "password-mancante";
public const string DataNotWritable = "dati-non-scrivibili";
public const string DataNotWritable = DataFolderProblems.DataNotWritable;
public const string DataOnNetwork = "dati-in-rete";
public const string DataOnNetwork = DataFolderProblems.DataOnNetwork;
/// <summary>Every problem found, in the order the error page shows them.</summary>
public static IReadOnlyList<ConfigurationProblem> Run(ServerOptions options, DataFolderCheck? check = null)
@@ -30,42 +31,11 @@ internal static class StartupChecks
"Imposta FEBE_PASSWORD (nel modello di Unraid o in compose.yml) con una frase lunga che usi solo qui, poi riavvia il contenitore."));
}
if ((check ?? new DataFolderCheck()).Check(options.DataFolder) is { } data)
if (DataFolderProblems.Check(options.DataFolder, check) is { } data)
{
problems.Add(new ConfigurationProblem(
data.Kind == DataFolderProblemKind.NetworkPath ? DataOnNetwork : DataNotWritable,
data.Title,
data.Explanation,
data.Remedy));
problems.Add(data);
}
return problems;
}
}
/// <summary>The problems found at start-up; fixed for the life of the process (fixing one needs a restart).</summary>
internal sealed class StartupProblems(IReadOnlyList<ConfigurationProblem> problems) : IConfigurationProblems
{
public IReadOnlyList<ConfigurationProblem> Current { get; } = problems;
}
/// <summary>
/// The link to Instagram while a configuration problem keeps the browser from starting: always «browser non
/// disponibile», and every command refused with the problem (the configuration gate refuses them earlier anyway).
/// </summary>
internal sealed class UnavailableConnectionService(IReadOnlyList<ConfigurationProblem> problems) : IConnectionService
{
public Task<ConnectionStatus> GetStatusAsync(CancellationToken ct) =>
Task.FromResult(new ConnectionStatus(ConnectionState.BrowserUnavailable, null, null, false, null));
public Task BeginUserDrivingAsync(bool openLogin, CancellationToken ct) => throw Refused();
public Task<FinishResult> FinishAsync(CancellationToken ct) => throw Refused();
public Task CancelAsync(CancellationToken ct) => Task.CompletedTask;
public Task DisconnectAsync(CancellationToken ct) => throw Refused();
private Febe.Web.Api.BadRequestException Refused() =>
new($"{(problems.Count > 0 ? problems[0].Title : "Configurazione da sistemare")}: il browser di Febe non è partito.");
}