mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-23 13:33:48 +00:00
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
20 lines
756 B
Plaintext
20 lines
756 B
Plaintext
@using AIStudio.Components
|
|
@* Rider takes this using for unused, but without it, Razor does not recognize Router, Found, and FocusOnNavigate as components: *@
|
|
@* ReSharper disable once RedundantUsingDirective *@
|
|
@using Microsoft.AspNetCore.Components.Routing
|
|
@using MudBlazor
|
|
|
|
<Router AppAssembly="typeof(Program).Assembly">
|
|
<Found Context="routeData">
|
|
<RouteView RouteData="routeData" DefaultLayout="typeof(Layout.MainLayout)"/>
|
|
<FocusOnNavigate RouteData="routeData" Selector="h1"/>
|
|
</Found>
|
|
</Router>
|
|
|
|
<MudDialogProvider />
|
|
<MudPopoverProvider />
|
|
<MudSnackbarProvider />
|
|
|
|
@* Outside the router on purpose: which drop zone a drop belongs to is a question of the whole
|
|
session, not of the current page. *@
|
|
<DropZoneArbiter /> |