Dashboard: replace inline fully-qualified type refs with @using
ApiKeysPage and GalaxyPage referenced ApiKeyConstraints and GalaxyRepositoryOptions by full namespace inside @code. Add the appropriate @using directive at the top of each file and let the short type names resolve through that. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
@page "/apikeys"
|
@page "/apikeys"
|
||||||
@inherits DashboardPageBase
|
@inherits DashboardPageBase
|
||||||
|
@using ZB.MOM.WW.MxGateway.Server.Security.Authentication
|
||||||
@inject AuthenticationStateProvider AuthenticationStateProvider
|
@inject AuthenticationStateProvider AuthenticationStateProvider
|
||||||
@inject IDashboardApiKeyManagementService ApiKeyManagementService
|
@inject IDashboardApiKeyManagementService ApiKeyManagementService
|
||||||
|
|
||||||
@@ -416,7 +417,7 @@ else
|
|||||||
KeyId: CreateModel.KeyId,
|
KeyId: CreateModel.KeyId,
|
||||||
DisplayName: CreateModel.DisplayName,
|
DisplayName: CreateModel.DisplayName,
|
||||||
Scopes: CreateModel.SelectedScopes,
|
Scopes: CreateModel.SelectedScopes,
|
||||||
Constraints: new ZB.MOM.WW.MxGateway.Server.Security.Authentication.ApiKeyConstraints(
|
Constraints: new ApiKeyConstraints(
|
||||||
ReadSubtrees: ParseList(CreateModel.ReadSubtrees),
|
ReadSubtrees: ParseList(CreateModel.ReadSubtrees),
|
||||||
WriteSubtrees: ParseList(CreateModel.WriteSubtrees),
|
WriteSubtrees: ParseList(CreateModel.WriteSubtrees),
|
||||||
ReadTagGlobs: ParseList(CreateModel.ReadTagGlobs),
|
ReadTagGlobs: ParseList(CreateModel.ReadTagGlobs),
|
||||||
@@ -447,7 +448,7 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static string ConstraintText(ZB.MOM.WW.MxGateway.Server.Security.Authentication.ApiKeyConstraints constraints)
|
private static string ConstraintText(ApiKeyConstraints constraints)
|
||||||
{
|
{
|
||||||
if (constraints.IsEmpty)
|
if (constraints.IsEmpty)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
@page "/galaxy"
|
@page "/galaxy"
|
||||||
@inherits DashboardPageBase
|
@inherits DashboardPageBase
|
||||||
|
@using ZB.MOM.WW.MxGateway.Server.Galaxy
|
||||||
|
|
||||||
<PageTitle>Dashboard Galaxy</PageTitle>
|
<PageTitle>Dashboard Galaxy</PageTitle>
|
||||||
|
|
||||||
@@ -140,7 +141,7 @@ else
|
|||||||
|
|
||||||
@code {
|
@code {
|
||||||
[Inject]
|
[Inject]
|
||||||
private IOptions<ZB.MOM.WW.MxGateway.Server.Galaxy.GalaxyRepositoryOptions> GalaxyOptions { get; set; } = null!;
|
private IOptions<GalaxyRepositoryOptions> GalaxyOptions { get; set; } = null!;
|
||||||
|
|
||||||
private string RefreshHeading()
|
private string RefreshHeading()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user