Interfaccia, parte 2: Attività, Impostazioni, collegamento, Importa, doppioni, primo avvio ed errori di configurazione

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 20:27:34 +00:00
1 parent 0515776b04
commit d614050ee5
90 files changed
+7825 -49

No files matched your search

+22
View File
@@ -1,10 +1,15 @@
using System.Net;
using Febe.Core.Abstractions;
using Febe.Core.Alerts;
using Febe.Core.Engine;
using Febe.Core.Import;
using Febe.Core.Storage;
using Febe.Web.Api;
using Febe.Web.Connection;
using Febe.Web.Demo;
using Febe.Web.Engine;
using Febe.Web.Hosting;
using Febe.Web.Import;
using Febe.Web.Library;
using Febe.Web.Native;
using Febe.Web.Security;
@@ -58,6 +63,18 @@ public static class FebeWeb
services.TryAddSingleton<OfflineEngine>();
services.TryAddSingleton<IEngineMonitor>(sp => sp.GetRequiredService<OfflineEngine>());
services.TryAddSingleton<IEngineControl>(sp => sp.GetRequiredService<OfflineEngine>());
services.TryAddSingleton<IEngineSettingsControl>(sp => new StoredEngineSettingsControl(sp.GetRequiredService<IFebeStorage>()));
services.TryAddSingleton<IConfigurationProblems, NoConfigurationProblems>();
services.TryAddSingleton<IConnectionService, UnavailableConnectionService>();
services.TryAddSingleton<IBrowserPreview, NoBrowserPreview>();
services.TryAddSingleton<IIncidentHistory>(sp => new StoredIncidentHistory(sp.GetRequiredService<IFebeStorage>()));
services.TryAddSingleton<IAlertTestSender, TelegramNotAvailableYet>();
services.TryAddSingleton<IDataFolderChange, FixedDataFolder>();
services.TryAddSingleton<FolderSizes>();
services.TryAddSingleton<RebuildJob>();
services.TryAddSingleton(sp => sp.GetService<ImportService>() is { } import
? new ImportHub(import, sp.GetRequiredService<IClock>(), sp.GetRequiredService<LibraryChanges>())
: new ImportHub(sp.GetRequiredService<IFebeStorage>(), sp.GetRequiredService<FebeLibrary>(), sp.GetRequiredService<IClock>(), options, sp.GetRequiredService<LibraryChanges>()));
services.AddHttpContextAccessor();
if (options.Access == AccessMode.Password && !string.IsNullOrEmpty(options.Password))
{
@@ -111,6 +128,11 @@ public static class FebeWeb
LibraryApi.Map(endpoints);
AccountsApi.Map(endpoints);
AccessApi.Map(endpoints);
ConnectionApi.Map(endpoints);
ActivityApi.Map(endpoints);
SettingsApi.Map(endpoints);
ImportApi.Map(endpoints);
DuplicatesApi.Map(endpoints);
endpoints.Map("/api/{**rest}", static context =>
{