af724ce570
Replaces flat RELEASES/SESSIONS/MIXES nav with ARCHIVE dropdown (PageRoute.Children,
one-level cap, dual-role node). Adds /archive overview, /cuts (AlbumsView + medium
filter; /albums redirects), /sessions + /sessions/{id} (hero-dominant), /mixes +
/mixes/{id} (MixWaveformVisualizer full-page background). Extracts ReleaseDetailScaffold
from TrackDetail (invariant trio). PersistentComponentState bridge on all new pages.
Click-to-seek seam designed on MixWaveformVisualizer (inert until wired).
48 lines
1.8 KiB
C#
48 lines
1.8 KiB
C#
using DeepDrftPublic.Client.Clients;
|
|
using DeepDrftPublic.Client.Common;
|
|
using DeepDrftPublic.Client.Services;
|
|
using DeepDrftPublic.Client.ViewModels;
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
namespace DeepDrftPublic.Client;
|
|
|
|
public static class Startup
|
|
{
|
|
public static void ConfigureDomainServices(IServiceCollection services)
|
|
{
|
|
// Theme Support
|
|
services.AddScoped<DarkModeSettings>();
|
|
services.AddScoped<DarkModeCookieService>();
|
|
|
|
// Track Client. The HTTP-backed ITrackDataService is used by both WASM and SSR
|
|
// prerender — both call DeepDrftAPI over the "DeepDrft.API" client.
|
|
services.AddScoped<TrackClient>();
|
|
services.AddScoped<ITrackDataService, TrackClientDataService>();
|
|
services.AddScoped<TracksViewModel>();
|
|
services.AddScoped<TrackDetailViewModel>();
|
|
|
|
// Release read surface (Phase 9). Same HTTP posture as the track client — both
|
|
// WASM and SSR prerender call DeepDrftAPI over the "DeepDrft.API" client.
|
|
services.AddScoped<ReleaseClient>();
|
|
services.AddScoped<IReleaseDataService, ReleaseClientDataService>();
|
|
services.AddScoped<ReleaseDetailViewModel>();
|
|
}
|
|
|
|
public static void ConfigureApiHttpClient(IServiceCollection services, string baseAddress)
|
|
{
|
|
services.AddHttpClient("DeepDrft.API", client =>
|
|
{
|
|
client.BaseAddress = new Uri(baseAddress);
|
|
});
|
|
}
|
|
|
|
public static void ConfigureContentServices(IServiceCollection services, string contentApiUrl)
|
|
{
|
|
services.AddHttpClient("DeepDrft.Content", client =>
|
|
{
|
|
client.BaseAddress = new Uri(contentApiUrl);
|
|
});
|
|
services.AddScoped<TrackMediaClient>();
|
|
services.AddScoped<AudioInteropService>();
|
|
}
|
|
} |