fix(secrets-ui): align fields, confirmation lifecycle and list recovery
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en"><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width,initial-scale=1" /><base href="/" />
|
||||
<link rel="stylesheet" href="/fixture-bootstrap/bootstrap.min.css" />
|
||||
<ThemeHead /><title>Secrets synthetic acceptance fixture</title>
|
||||
<style>body{margin:0}.fixture-main{padding:1.5rem;max-width:92rem;margin:auto;min-width:0}.fixture-note{font-size:.85rem;color:var(--ink-muted)}.fixture-transform{transform:translateZ(0)}.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}</style>
|
||||
<HeadOutlet @rendermode="InteractiveServer" /></head><body><div class="fixture-main fixture-transform"><p class="fixture-note">Synthetic local fixture · bootstrap · No production data or services</p>
|
||||
<Routes @rendermode="InteractiveServer" /></div><ThemeScripts /><script src="/_framework/blazor.web.js"></script></body></html>
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
<ErrorBoundary><div data-fixture-ready="@(_ready ? "true" : "false")">@ChildContent</div></ErrorBoundary>
|
||||
@code {
|
||||
[Parameter] public RenderFragment? ChildContent { get; set; }
|
||||
private bool _ready;
|
||||
protected override void OnAfterRender(bool firstRender) { if (firstRender) { _ready = true; StateHasChanged(); } }
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
@page "/admin/secrets"
|
||||
@attribute [Authorize(Policy = SecretsAuthorization.ManagePolicy)]
|
||||
<PageErrorBoundary><SecretsPage /></PageErrorBoundary>
|
||||
@@ -0,0 +1 @@
|
||||
<Router AppAssembly="typeof(App).Assembly"><Found Context="routeData"><AuthorizeRouteView RouteData="routeData"><NotAuthorized><p role="status">Synthetic principal is not authorized.</p></NotAuthorized></AuthorizeRouteView></Found><NotFound><p>Fixture route not found.</p></NotFound></Router>
|
||||
@@ -0,0 +1,9 @@
|
||||
@using Microsoft.AspNetCore.Components
|
||||
@using Microsoft.AspNetCore.Components.Authorization
|
||||
@using Microsoft.AspNetCore.Components.Routing
|
||||
@using Microsoft.AspNetCore.Components.Web
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
@using static Microsoft.AspNetCore.Components.Web.RenderMode
|
||||
@using ZB.MOM.WW.Theme
|
||||
@using ZB.MOM.WW.Secrets.Ui
|
||||
@using SecretsUiFixture.Components
|
||||
Reference in New Issue
Block a user