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:
73 files changed
+7914
-699
No files matched your search
@@ -113,12 +113,12 @@ public sealed class ServerOptionsTests
|
||||
var clock = new ManualClock(new DateTimeOffset(2026, 10, 13, 10, 0, 0, TimeSpan.Zero), TestZones.Rome);
|
||||
var folder = temp.Combine("registro");
|
||||
Directory.CreateDirectory(folder);
|
||||
var old = Path.Combine(folder, ServerLog.FileNameFor(new DateOnly(2026, 9, 1)));
|
||||
var old = Path.Combine(folder, Febe.App.FebeLog.FileNameFor(new DateOnly(2026, 9, 1)));
|
||||
File.WriteAllText(old, "vecchio");
|
||||
var unrelated = Path.Combine(folder, "appunti.txt");
|
||||
File.WriteAllText(unrelated, "di Alberto");
|
||||
using var console = new StringWriter();
|
||||
using (var log = new ServerLog(folder, console, clock))
|
||||
using (var log = new Febe.App.FebeLog(folder, console, clock))
|
||||
{
|
||||
log.Info("prova", "Scaricato https://cdn.example/m/abc.jpg?firma=SEGRETA da marta.prova");
|
||||
log.Warn("prova", "Errore", new InvalidOperationException("riga uno https://x.example/?t=1\nriga due"));
|
||||
@@ -126,14 +126,14 @@ public sealed class ServerOptionsTests
|
||||
log.Info("prova", "Il giorno dopo");
|
||||
}
|
||||
|
||||
var first = File.ReadAllText(Path.Combine(folder, ServerLog.FileNameFor(new DateOnly(2026, 10, 13))));
|
||||
var first = File.ReadAllText(Path.Combine(folder, Febe.App.FebeLog.FileNameFor(new DateOnly(2026, 10, 13))));
|
||||
Assert.DoesNotContain("SEGRETA", first);
|
||||
Assert.DoesNotContain("cdn.example", first);
|
||||
StringAssert.Contains(first, "<indirizzo>");
|
||||
StringAssert.Contains(first, "marta.prova");
|
||||
StringAssert.Contains(first, "InvalidOperationException: riga uno <indirizzo>");
|
||||
Assert.DoesNotContain("riga due", first);
|
||||
StringAssert.Contains(File.ReadAllText(Path.Combine(folder, ServerLog.FileNameFor(new DateOnly(2026, 10, 14)))), "Il giorno dopo");
|
||||
StringAssert.Contains(File.ReadAllText(Path.Combine(folder, Febe.App.FebeLog.FileNameFor(new DateOnly(2026, 10, 14)))), "Il giorno dopo");
|
||||
Assert.IsFalse(File.Exists(old), "older than fourteen days");
|
||||
Assert.IsTrue(File.Exists(unrelated), "only febe-*.log files are removed");
|
||||
StringAssert.Contains(console.ToString(), "Il giorno dopo");
|
||||
@@ -144,7 +144,7 @@ public sealed class ServerOptionsTests
|
||||
{
|
||||
using var temp = new TempFolder("registro");
|
||||
var clock = new ManualClock(new DateTimeOffset(2026, 10, 13, 10, 0, 0, TimeSpan.Zero), TestZones.Rome);
|
||||
using (var log = new ServerLog(temp.Path, null, clock, maxBytesPerDay: 2000))
|
||||
using (var log = new Febe.App.FebeLog(temp.Path, null, clock, maxBytesPerDay: 2000))
|
||||
{
|
||||
for (var i = 0; i < 100; i++)
|
||||
{
|
||||
@@ -152,7 +152,7 @@ public sealed class ServerOptionsTests
|
||||
}
|
||||
}
|
||||
|
||||
var file = Path.Combine(temp.Path, ServerLog.FileNameFor(new DateOnly(2026, 10, 13)));
|
||||
var file = Path.Combine(temp.Path, Febe.App.FebeLog.FileNameFor(new DateOnly(2026, 10, 13)));
|
||||
Assert.IsLessThan(2200L, new FileInfo(file).Length);
|
||||
StringAssert.Contains(File.ReadAllText(file), "troppo lungo");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user