Dimostrazione con orologio plausibile (mai sessioni di notte) e schermate rifatte con il codice finale
verifica / prove (push) Successful in 5m16s
verifica / prove (pull_request) Successful in 4m59s
verifica / immagine (push) Successful in 7m33s
verifica / immagine (pull_request) Successful in 16s
rilascio / prove (push) Successful in 5m20s
rilascio / windows (push) Successful in 3m50s
rilascio / immagine (push) Successful in 14m54s
rilascio / release (push) Successful in 1m6s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
No files matched your search
|
Before Width: | Height: | Size: 676 KiB After Width: | Height: | Size: 941 KiB |
|
Before Width: | Height: | Size: 454 KiB After Width: | Height: | Size: 112 KiB |
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 258 KiB After Width: | Height: | Size: 254 KiB |
|
Before Width: | Height: | Size: 239 KiB After Width: | Height: | Size: 239 KiB |
|
Before Width: | Height: | Size: 214 KiB After Width: | Height: | Size: 214 KiB |
|
Before Width: | Height: | Size: 200 KiB After Width: | Height: | Size: 202 KiB |
|
Before Width: | Height: | Size: 189 KiB After Width: | Height: | Size: 189 KiB |
|
Before Width: | Height: | Size: 236 KiB After Width: | Height: | Size: 236 KiB |
|
Before Width: | Height: | Size: 177 KiB After Width: | Height: | Size: 176 KiB |
|
Before Width: | Height: | Size: 170 KiB After Width: | Height: | Size: 170 KiB |
|
Before Width: | Height: | Size: 206 KiB After Width: | Height: | Size: 205 KiB |
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 83 KiB |
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 80 KiB |
|
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB |
|
Before Width: | Height: | Size: 126 KiB After Width: | Height: | Size: 126 KiB |
|
Before Width: | Height: | Size: 133 KiB After Width: | Height: | Size: 146 KiB |
|
Before Width: | Height: | Size: 162 KiB After Width: | Height: | Size: 160 KiB |
|
Before Width: | Height: | Size: 658 KiB After Width: | Height: | Size: 920 KiB |
|
Before Width: | Height: | Size: 235 KiB After Width: | Height: | Size: 377 KiB |
|
Before Width: | Height: | Size: 127 KiB After Width: | Height: | Size: 126 KiB |
|
Before Width: | Height: | Size: 147 KiB After Width: | Height: | Size: 147 KiB |
|
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 534 KiB After Width: | Height: | Size: 745 KiB |
|
Before Width: | Height: | Size: 166 KiB After Width: | Height: | Size: 256 KiB |
|
Before Width: | Height: | Size: 165 KiB After Width: | Height: | Size: 161 KiB |
|
Before Width: | Height: | Size: 239 KiB After Width: | Height: | Size: 238 KiB |
|
Before Width: | Height: | Size: 128 KiB After Width: | Height: | Size: 128 KiB |
|
Before Width: | Height: | Size: 150 KiB After Width: | Height: | Size: 150 KiB |
|
Before Width: | Height: | Size: 168 KiB After Width: | Height: | Size: 171 KiB |
@@ -0,0 +1,40 @@
|
||||
using Febe.Core.Abstractions;
|
||||
|
||||
namespace Febe.Web.Demo;
|
||||
|
||||
/// <summary>
|
||||
/// Clock of the demo mode (spec §10.6: «gli orari sono plausibili»). It follows the real time, but when the demo starts
|
||||
/// at night it moves to the afternoon of the same day, so a session, the queue and the day strip never show the engine
|
||||
/// working outside the active window of the default profile.
|
||||
/// </summary>
|
||||
public sealed class DemoClock : IClock
|
||||
{
|
||||
private static readonly TimeOnly EarliestPlausible = new(9, 0);
|
||||
private static readonly TimeOnly LatestPlausible = new(21, 0);
|
||||
private static readonly TimeOnly Afternoon = new(15, 12);
|
||||
private readonly TimeSpan _offset;
|
||||
|
||||
public DemoClock(TimeZoneInfo zone, DateTimeOffset realNow)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(zone);
|
||||
LocalZone = zone;
|
||||
var local = TimeZoneInfo.ConvertTime(realNow, zone);
|
||||
var time = TimeOnly.FromDateTime(local.DateTime);
|
||||
if (time >= EarliestPlausible && time <= LatestPlausible)
|
||||
{
|
||||
_offset = TimeSpan.Zero;
|
||||
return;
|
||||
}
|
||||
|
||||
var target = local.Date + Afternoon.ToTimeSpan();
|
||||
var targetInstant = new DateTimeOffset(target, zone.GetUtcOffset(target));
|
||||
_offset = targetInstant - realNow;
|
||||
}
|
||||
|
||||
public DateTimeOffset Now => DateTimeOffset.UtcNow + _offset;
|
||||
|
||||
public TimeZoneInfo LocalZone { get; }
|
||||
|
||||
public Task Delay(TimeSpan time, CancellationToken ct) =>
|
||||
time <= TimeSpan.Zero ? Task.CompletedTask : Task.Delay(time, ct);
|
||||
}
|
||||
@@ -62,7 +62,7 @@ public sealed class DemoHost : IAsyncDisposable
|
||||
ImportService? import = null;
|
||||
try
|
||||
{
|
||||
var clock = new SystemClock(options.Zone ?? TimeZoneInfo.Local);
|
||||
var clock = new DemoClock(options.Zone ?? TimeZoneInfo.Local, DateTimeOffset.UtcNow);
|
||||
var data = new DataFolderLayout(Path.Combine(root, "dati"));
|
||||
var layout = new LibraryLayout(Path.Combine(root, "libreria"));
|
||||
Directory.CreateDirectory(data.Root);
|
||||
|
||||