Febe 0.1.0 — prima versione completa (M0–M8) #1

Merged
Alby96 merged 39 commits from febe-v1 into main 2026-10-14 09:15:02 +02:00
33 changed files with 41 additions and 1 deletions
Showing only changes of commit 8a318fe531 - Show all commits

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 676 KiB

After

Width:  |  Height:  |  Size: 941 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 454 KiB

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 258 KiB

After

Width:  |  Height:  |  Size: 254 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 KiB

After

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 214 KiB

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 KiB

After

Width:  |  Height:  |  Size: 202 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 189 KiB

After

Width:  |  Height:  |  Size: 189 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 236 KiB

After

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 177 KiB

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 170 KiB

After

Width:  |  Height:  |  Size: 170 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 206 KiB

After

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 KiB

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 162 KiB

After

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 658 KiB

After

Width:  |  Height:  |  Size: 920 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 235 KiB

After

Width:  |  Height:  |  Size: 377 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 147 KiB

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 534 KiB

After

Width:  |  Height:  |  Size: 745 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 166 KiB

After

Width:  |  Height:  |  Size: 256 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 KiB

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 KiB

After

Width:  |  Height:  |  Size: 238 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 KiB

After

Width:  |  Height:  |  Size: 171 KiB

+40
View File
@@ -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);
}
+1 -1
View File
@@ -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);