Small ui adjustment
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
@attribute [RequirePermission(9998)]
|
@attribute [RequirePermission(9998)]
|
||||||
|
|
||||||
<AdminApiNavigation Index="1" />
|
<AdminApiNavigation Index="1"/>
|
||||||
|
|
||||||
<div class="mt-5">
|
<div class="mt-5">
|
||||||
<AutoCrud TItem="ApiKey"
|
<AutoCrud TItem="ApiKey"
|
||||||
@@ -27,10 +27,12 @@
|
|||||||
var apiKeyHalf = Formatter.CutInHalf(context!.Key);
|
var apiKeyHalf = Formatter.CutInHalf(context!.Key);
|
||||||
var bogusHalf = Formatter.IntToStringWithLeadingZeros(69, apiKeyHalf.Length);
|
var bogusHalf = Formatter.IntToStringWithLeadingZeros(69, apiKeyHalf.Length);
|
||||||
}
|
}
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<span class="blur-unless-hover">@apiKeyHalf</span>
|
<span class="blur-unless-hover">
|
||||||
<span class="blur d-none d-lg-inline">@bogusHalf</span>
|
@apiKeyHalf
|
||||||
|
[...]
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</Template>
|
</Template>
|
||||||
</CrudColumn>
|
</CrudColumn>
|
||||||
@@ -45,7 +47,7 @@
|
|||||||
@Formatter.FormatDate(context!.ExpiresAt)
|
@Formatter.FormatDate(context!.ExpiresAt)
|
||||||
</Template>
|
</Template>
|
||||||
</CrudColumn>
|
</CrudColumn>
|
||||||
<CrudColumn TItem="ApiKey" Field="@(x => x.PermissionJson)" Title="Permissions" />
|
<CrudColumn TItem="ApiKey" Field="@(x => x.PermissionJson)" Title="Permissions"/>
|
||||||
</View>
|
</View>
|
||||||
</AutoCrud>
|
</AutoCrud>
|
||||||
</div>
|
</div>
|
||||||
@@ -56,7 +58,7 @@
|
|||||||
{
|
{
|
||||||
return repository.Get();
|
return repository.Get();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task ValidateAdd(ApiKey apiKey)
|
private async Task ValidateAdd(ApiKey apiKey)
|
||||||
{
|
{
|
||||||
var key = Formatter.GenerateString(32);
|
var key = Formatter.GenerateString(32);
|
||||||
@@ -65,4 +67,4 @@
|
|||||||
await ClipboardService.Copy(key);
|
await ClipboardService.Copy(key);
|
||||||
await ToastService.Info("Copied api key into your clipboard");
|
await ToastService.Info("Copied api key into your clipboard");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user