Standardize cluster anatomy and gate authoring destinations
This commit is contained in:
@@ -16,8 +16,10 @@
|
||||
@inject NavigationManager Nav
|
||||
|
||||
<PageErrorBoundary>
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h4 class="mb-0">@(IsNew ? "New ACL grant" : "Edit ACL grant") · <span class="mono">@ClusterId</span></h4>
|
||||
<PageTitle>ACL grant · OtOpcUa</PageTitle>
|
||||
<div class="page-head">
|
||||
<h1>@(IsNew ? "New ACL grant" : "Edit ACL grant") · <span class="mono">@ClusterId</span></h1>
|
||||
<span class="spacer"></span>
|
||||
<a href="/clusters/@ClusterId/acls" class="btn btn-outline-secondary btn-sm">Cancel</a>
|
||||
</div>
|
||||
|
||||
@@ -37,7 +39,7 @@ else
|
||||
<DataAnnotationsValidator />
|
||||
<ValidationSummary class="alert alert-danger" />
|
||||
<section class="panel rise" style="animation-delay:.02s">
|
||||
<div class="panel-head">Grant</div>
|
||||
<h2 class="panel-head">Grant</h2>
|
||||
<div style="padding:1rem">
|
||||
<div class="row">
|
||||
<div class="col-md-6 mb-3">
|
||||
|
||||
@@ -9,8 +9,10 @@
|
||||
@inject IAclScopeService Scopes
|
||||
|
||||
<PageErrorBoundary>
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h4 class="mb-0">ACLs · <span class="mono">@ClusterId</span></h4>
|
||||
<PageTitle>Cluster ACLs · OtOpcUa</PageTitle>
|
||||
<div class="page-head">
|
||||
<h1>ACLs · <span class="mono">@ClusterId</span></h1>
|
||||
<span class="spacer"></span>
|
||||
<a href="/clusters/@ClusterId/acls/new" class="btn btn-primary btn-sm">New ACL grant</a>
|
||||
</div>
|
||||
|
||||
@@ -30,7 +32,7 @@ else
|
||||
</section>
|
||||
|
||||
<section class="panel rise mt-3" style="animation-delay:.08s">
|
||||
<div class="panel-head">@_rows.Count ACL row@(_rows.Count == 1 ? "" : "s")</div>
|
||||
<h2 class="panel-head">@_rows.Count ACL row@(_rows.Count == 1 ? "" : "s")</h2>
|
||||
@if (_rows.Count == 0)
|
||||
{
|
||||
<div style="padding:1rem" class="text-muted">
|
||||
@@ -39,17 +41,17 @@ else
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="table-wrap">
|
||||
<div class="table-wrap" role="region" aria-label="Cluster ACL grants" tabindex="0">
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>NodeAclId</th>
|
||||
<th>Principal</th>
|
||||
<th>Scope</th>
|
||||
<th>Scope target</th>
|
||||
<th>Permissions</th>
|
||||
<th>Notes</th>
|
||||
<th></th>
|
||||
<th scope="col">NodeAclId</th>
|
||||
<th scope="col">Principal</th>
|
||||
<th scope="col">Scope</th>
|
||||
<th scope="col">Scope target</th>
|
||||
<th scope="col">Permissions</th>
|
||||
<th scope="col">Notes</th>
|
||||
<th scope="col"><span class="visually-hidden">Actions</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -8,8 +8,10 @@
|
||||
@inject IDbContextFactory<OtOpcUaConfigDbContext> DbFactory
|
||||
|
||||
<PageErrorBoundary>
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h4 class="mb-0">Audit log · <span class="mono">@ClusterId</span></h4>
|
||||
<PageTitle>Cluster audit log · OtOpcUa</PageTitle>
|
||||
<div class="page-head">
|
||||
<h1>Audit log · <span class="mono">@ClusterId</span></h1>
|
||||
<span class="spacer"></span>
|
||||
</div>
|
||||
|
||||
<ClusterNav ClusterId="@ClusterId" ActiveTab="audit" />
|
||||
@@ -25,23 +27,23 @@ else
|
||||
</section>
|
||||
|
||||
<section class="panel rise mt-3" style="animation-delay:.08s">
|
||||
<div class="panel-head">@_rows.Count row@(_rows.Count == 1 ? "" : "s")</div>
|
||||
<h2 class="panel-head">@_rows.Count row@(_rows.Count == 1 ? "" : "s")</h2>
|
||||
@if (_rows.Count == 0)
|
||||
{
|
||||
<div style="padding:1rem" class="text-muted">No audit rows for this cluster yet.</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="table-wrap">
|
||||
<div class="table-wrap" role="region" aria-label="Cluster audit log" tabindex="0">
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Timestamp</th>
|
||||
<th>Principal</th>
|
||||
<th>Event</th>
|
||||
<th>Node</th>
|
||||
<th>Correlation</th>
|
||||
<th>Details</th>
|
||||
<th scope="col">Timestamp</th>
|
||||
<th scope="col">Principal</th>
|
||||
<th scope="col">Event</th>
|
||||
<th scope="col">Node</th>
|
||||
<th scope="col">Correlation</th>
|
||||
<th scope="col">Details</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -15,8 +15,10 @@
|
||||
@inject AuthenticationStateProvider AuthState
|
||||
|
||||
<PageErrorBoundary>
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h4 class="mb-0">Edit cluster · <span class="mono">@ClusterId</span></h4>
|
||||
<PageTitle>Edit cluster · OtOpcUa</PageTitle>
|
||||
<div class="page-head">
|
||||
<h1>Edit cluster · <span class="mono">@ClusterId</span></h1>
|
||||
<span class="spacer"></span>
|
||||
<a href="/clusters/@ClusterId" class="btn btn-outline-secondary btn-sm">Cancel</a>
|
||||
</div>
|
||||
|
||||
@@ -38,7 +40,7 @@ else
|
||||
<DataAnnotationsValidator />
|
||||
<ValidationSummary class="alert alert-danger py-2 px-3" />
|
||||
<section class="panel rise" style="animation-delay:.02s">
|
||||
<div class="panel-head">Identity</div>
|
||||
<h2 class="panel-head">Identity</h2>
|
||||
<div style="padding:1rem">
|
||||
<div class="mb-3">
|
||||
<label class="form-label">ClusterId</label>
|
||||
@@ -70,7 +72,7 @@ else
|
||||
</section>
|
||||
|
||||
<section class="panel rise mt-3" style="animation-delay:.08s">
|
||||
<div class="panel-head">Topology</div>
|
||||
<h2 class="panel-head">Topology</h2>
|
||||
<div style="padding:1rem">
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="redundancy">Redundancy mode</label>
|
||||
|
||||
+30
-18
@@ -8,12 +8,15 @@
|
||||
@inject NavigationManager Nav
|
||||
|
||||
<PageErrorBoundary>
|
||||
<PageTitle>Cluster overview · OtOpcUa</PageTitle>
|
||||
@if (!_loaded)
|
||||
{
|
||||
<div class="page-head"><h1>Cluster overview</h1></div>
|
||||
<p>Loading…</p>
|
||||
}
|
||||
else if (_cluster is null)
|
||||
{
|
||||
<div class="page-head"><h1>Cluster overview</h1></div>
|
||||
<section class="panel notice rise" style="animation-delay:.02s">
|
||||
Cluster <span class="mono">@ClusterId</span> was not found.
|
||||
<a class="ms-2" href="/clusters">Back to list</a>.
|
||||
@@ -21,23 +24,26 @@ else if (_cluster is null)
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<div class="page-head">
|
||||
<div>
|
||||
<h4 class="mb-0">@_cluster.Name</h4>
|
||||
<h1>@_cluster.Name</h1>
|
||||
<span class="mono text-muted">@_cluster.ClusterId</span>
|
||||
@if (!_cluster.Enabled) { <span class="chip chip-idle ms-2">Disabled</span> }
|
||||
</div>
|
||||
<div class="btn-group btn-group-sm" role="group">
|
||||
<a href="/clusters/@ClusterId/edit" class="btn btn-outline-secondary btn-sm">Edit cluster</a>
|
||||
<a href="/deployments" class="btn btn-outline-primary btn-sm">Deployments</a>
|
||||
</div>
|
||||
<span class="spacer"></span>
|
||||
<AuthorizeView Policy="@AdminUiPolicies.ConfigEditor">
|
||||
<div class="btn-group btn-group-sm" role="group" aria-label="Cluster authoring actions">
|
||||
<a href="/clusters/@ClusterId/edit" class="btn btn-outline-secondary btn-sm">Edit cluster</a>
|
||||
<a href="/deployments" class="btn btn-outline-primary btn-sm">Deployments</a>
|
||||
</div>
|
||||
</AuthorizeView>
|
||||
</div>
|
||||
|
||||
<ClusterNav ClusterId="@ClusterId" ActiveTab="overview" />
|
||||
|
||||
<section class="card-grid rise" style="animation-delay:.08s">
|
||||
<div class="metric-card">
|
||||
<div class="panel-head">Cluster details</div>
|
||||
<h2 class="panel-head">Cluster details</h2>
|
||||
<div class="kv"><span class="k">Enterprise / Site</span><span class="v">@_cluster.Enterprise / @_cluster.Site</span></div>
|
||||
<div class="kv"><span class="k">Redundancy</span><span class="v">@_cluster.RedundancyMode (@_cluster.NodeCount node@(_cluster.NodeCount == 1 ? "" : "s"))</span></div>
|
||||
<div class="kv"><span class="k">Created</span><span class="v">@_cluster.CreatedAt.ToString("u") by @_cluster.CreatedBy</span></div>
|
||||
@@ -52,7 +58,7 @@ else
|
||||
</div>
|
||||
|
||||
<div class="metric-card">
|
||||
<div class="panel-head">Last deployment</div>
|
||||
<h2 class="panel-head">Last deployment</h2>
|
||||
@if (_lastDeployment is null)
|
||||
{
|
||||
<div class="kv"><span class="k">Status</span><span class="v text-muted">none — cluster has never been deployed</span></div>
|
||||
@@ -72,8 +78,10 @@ else
|
||||
|
||||
<section class="panel rise mt-3" style="animation-delay:.14s">
|
||||
<div class="panel-head d-flex align-items-center">
|
||||
<span>Nodes</span>
|
||||
<a href="/clusters/@ClusterId/nodes/new" class="btn btn-sm btn-outline-primary ms-auto">New node</a>
|
||||
<h2 class="m-0" style="font:inherit">Nodes</h2>
|
||||
<AuthorizeView Policy="@AdminUiPolicies.ConfigEditor">
|
||||
<a href="/clusters/@ClusterId/nodes/new" class="btn btn-sm btn-outline-primary ms-auto">New node</a>
|
||||
</AuthorizeView>
|
||||
</div>
|
||||
@if (_nodes is null || _nodes.Count == 0)
|
||||
{
|
||||
@@ -81,16 +89,18 @@ else
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="table-wrap">
|
||||
<div class="table-wrap" role="region" aria-label="Cluster nodes" tabindex="0">
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Node ID</th>
|
||||
<th>Host</th>
|
||||
<th>OPC UA port</th>
|
||||
<th>ApplicationUri</th>
|
||||
<th class="num">ServiceLevel base</th>
|
||||
<th></th>
|
||||
<th scope="col">Node ID</th>
|
||||
<th scope="col">Host</th>
|
||||
<th scope="col">OPC UA port</th>
|
||||
<th scope="col">ApplicationUri</th>
|
||||
<th scope="col" class="num">ServiceLevel base</th>
|
||||
<AuthorizeView Policy="@AdminUiPolicies.ConfigEditor">
|
||||
<th scope="col"><span class="visually-hidden">Actions</span></th>
|
||||
</AuthorizeView>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -102,7 +112,9 @@ else
|
||||
<td class="num">@n.OpcUaPort</td>
|
||||
<td title="@n.ApplicationUri"><span class="mono small">@DisplayText.Abbreviate(n.ApplicationUri, 40)</span></td>
|
||||
<td class="num">@n.ServiceLevelBase</td>
|
||||
<td><a href="/clusters/@ClusterId/nodes/@n.NodeId" class="btn btn-sm btn-outline-primary">Edit</a></td>
|
||||
<AuthorizeView Policy="@AdminUiPolicies.ConfigEditor">
|
||||
<td><a href="/clusters/@ClusterId/nodes/@n.NodeId" class="btn btn-sm btn-outline-primary">Edit</a></td>
|
||||
</AuthorizeView>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
|
||||
+13
-10
@@ -13,12 +13,15 @@
|
||||
@inject IAuthorizationService AuthorizationService
|
||||
|
||||
<PageErrorBoundary>
|
||||
<PageTitle>Cluster redundancy · OtOpcUa</PageTitle>
|
||||
@if (!_loaded)
|
||||
{
|
||||
<div class="page-head"><h1>Cluster redundancy</h1></div>
|
||||
<p>Loading…</p>
|
||||
}
|
||||
else if (_cluster is null)
|
||||
{
|
||||
<div class="page-head"><h1>Cluster redundancy</h1></div>
|
||||
<section class="panel notice rise" style="animation-delay:.02s">
|
||||
Cluster <span class="mono">@ClusterId</span> was not found.
|
||||
<a class="ms-2" href="/clusters">Back to list</a>.
|
||||
@@ -26,9 +29,9 @@ else if (_cluster is null)
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<div class="page-head">
|
||||
<div>
|
||||
<h4 class="mb-0">@_cluster.Name · Redundancy</h4>
|
||||
<h1>@_cluster.Name · Redundancy</h1>
|
||||
<span class="mono text-muted">@_cluster.ClusterId</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -37,14 +40,14 @@ else
|
||||
|
||||
<section class="card-grid rise mt-3" style="animation-delay:.08s">
|
||||
<div class="metric-card">
|
||||
<div class="panel-head">Cluster redundancy</div>
|
||||
<h2 class="panel-head">Cluster redundancy</h2>
|
||||
<div class="kv"><span class="k">Mode</span><span class="v">@_cluster.RedundancyMode</span></div>
|
||||
<div class="kv"><span class="k">Node count</span><span class="v">@_cluster.NodeCount</span></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="panel rise mt-3" style="animation-delay:.11s">
|
||||
<div class="panel-head">Live redundancy</div>
|
||||
<h2 class="panel-head">Live redundancy</h2>
|
||||
<div style="padding:1rem">
|
||||
<div class="kv">
|
||||
<span class="k">Driver Primary</span>
|
||||
@@ -104,21 +107,21 @@ else
|
||||
</section>
|
||||
|
||||
<section class="panel rise mt-3" style="animation-delay:.14s">
|
||||
<div class="panel-head">Node service-level configuration</div>
|
||||
<h2 class="panel-head">Node service-level configuration</h2>
|
||||
@if (_nodes is null || _nodes.Count == 0)
|
||||
{
|
||||
<div style="padding:1rem" class="text-muted">No nodes registered.</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="table-wrap">
|
||||
<div class="table-wrap" role="region" aria-label="Node service-level configuration" tabindex="0">
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Node ID</th>
|
||||
<th>ApplicationUri</th>
|
||||
<th class="num">ServiceLevel base</th>
|
||||
<th>Notes</th>
|
||||
<th scope="col">Node ID</th>
|
||||
<th scope="col">ApplicationUri</th>
|
||||
<th scope="col" class="num">ServiceLevel base</th>
|
||||
<th scope="col">Notes</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -8,8 +8,10 @@
|
||||
@inject NavigationManager Nav
|
||||
|
||||
<PageErrorBoundary>
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h4 class="mb-0">Clusters</h4>
|
||||
<PageTitle>Clusters · OtOpcUa</PageTitle>
|
||||
<div class="page-head">
|
||||
<h1>Clusters</h1>
|
||||
<span class="spacer"></span>
|
||||
<a href="/clusters/new" class="btn btn-primary btn-sm">New cluster</a>
|
||||
</div>
|
||||
|
||||
@@ -26,17 +28,17 @@ else if (_rows.Count == 0)
|
||||
else
|
||||
{
|
||||
<section class="panel rise" style="animation-delay:.08s">
|
||||
<div class="panel-head">All clusters</div>
|
||||
<div class="table-wrap">
|
||||
<h2 class="panel-head">All clusters</h2>
|
||||
<div class="table-wrap" role="region" aria-label="Clusters" tabindex="0">
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Cluster</th>
|
||||
<th>Site</th>
|
||||
<th>Nodes</th>
|
||||
<th>Redundancy</th>
|
||||
<th>Status</th>
|
||||
<th>Created</th>
|
||||
<th scope="col">Cluster</th>
|
||||
<th scope="col">Site</th>
|
||||
<th scope="col">Nodes</th>
|
||||
<th scope="col">Redundancy</th>
|
||||
<th scope="col">Status</th>
|
||||
<th scope="col">Created</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -11,8 +11,10 @@
|
||||
@inject AuthenticationStateProvider AuthState
|
||||
|
||||
<PageErrorBoundary>
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h4 class="mb-0">New cluster</h4>
|
||||
<PageTitle>New cluster · OtOpcUa</PageTitle>
|
||||
<div class="page-head">
|
||||
<h1>New cluster</h1>
|
||||
<span class="spacer"></span>
|
||||
<a href="/clusters" class="btn btn-outline-secondary btn-sm">Cancel</a>
|
||||
</div>
|
||||
|
||||
@@ -20,7 +22,7 @@
|
||||
<DataAnnotationsValidator />
|
||||
<ValidationSummary class="alert alert-danger py-2 px-3" />
|
||||
<section class="panel rise" style="animation-delay:.02s">
|
||||
<div class="panel-head">Identity</div>
|
||||
<h2 class="panel-head">Identity</h2>
|
||||
<div style="padding:1rem">
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="clusterId">Cluster ID</label>
|
||||
@@ -47,7 +49,7 @@
|
||||
</section>
|
||||
|
||||
<section class="panel rise mt-3" style="animation-delay:.08s">
|
||||
<div class="panel-head">Topology</div>
|
||||
<h2 class="panel-head">Topology</h2>
|
||||
<div style="padding:1rem">
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="redundancy">Redundancy mode</label>
|
||||
|
||||
@@ -17,8 +17,10 @@
|
||||
@inject AuthenticationStateProvider AuthState
|
||||
|
||||
<PageErrorBoundary>
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h4 class="mb-0">@(IsNew ? "New node" : "Edit node") · <span class="mono">@ClusterId</span></h4>
|
||||
<PageTitle>Node editor · OtOpcUa</PageTitle>
|
||||
<div class="page-head">
|
||||
<h1>@(IsNew ? "New node" : "Edit node") · <span class="mono">@ClusterId</span></h1>
|
||||
<span class="spacer"></span>
|
||||
<a href="/clusters/@ClusterId" class="btn btn-outline-secondary btn-sm">Cancel</a>
|
||||
</div>
|
||||
|
||||
@@ -43,7 +45,7 @@ else
|
||||
NodeId-regex defect above stayed invisible. *@
|
||||
<ValidationSummary class="alert alert-danger py-2 px-3" />
|
||||
<section class="panel rise" style="animation-delay:.02s">
|
||||
<div class="panel-head">Identity</div>
|
||||
<h2 class="panel-head">Identity</h2>
|
||||
<div style="padding:1rem">
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="nodeId">NodeId</label>
|
||||
@@ -76,7 +78,7 @@ else
|
||||
</section>
|
||||
|
||||
<section class="panel rise mt-3" style="animation-delay:.08s">
|
||||
<div class="panel-head">Redundancy + behaviour</div>
|
||||
<h2 class="panel-head">Redundancy + behaviour</h2>
|
||||
<div style="padding:1rem">
|
||||
<div class="row">
|
||||
<div class="col-md-4 mb-3">
|
||||
|
||||
Reference in New Issue
Block a user