fix: admin login overlay and version footer
TaxBaik CI/CD / build-and-deploy (push) Successful in 1m53s
TaxBaik CI/CD / build-and-deploy (push) Successful in 1m53s
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
@inherits LayoutComponentBase
|
@inherits LayoutComponentBase
|
||||||
@inject NavigationManager Navigation
|
@inject NavigationManager Navigation
|
||||||
@inject IJSRuntime JS
|
@inject IJSRuntime JS
|
||||||
|
@inject VersionInfo VersionInfo
|
||||||
@implements IDisposable
|
@implements IDisposable
|
||||||
@rendermode @(new InteractiveWebAssemblyRenderMode(prerender: false))
|
@rendermode @(new InteractiveWebAssemblyRenderMode(prerender: false))
|
||||||
|
|
||||||
@@ -88,6 +89,12 @@
|
|||||||
<MudNavLink Href="/taxbaik/admin/inquiries" Icon="@Icons.Material.Filled.Forum">문의 관리</MudNavLink>
|
<MudNavLink Href="/taxbaik/admin/inquiries" Icon="@Icons.Material.Filled.Forum">문의 관리</MudNavLink>
|
||||||
<MudNavLink Href="/taxbaik/admin/settings" Icon="@Icons.Material.Filled.Tune">설정</MudNavLink>
|
<MudNavLink Href="/taxbaik/admin/settings" Icon="@Icons.Material.Filled.Tune">설정</MudNavLink>
|
||||||
</MudNavMenu>
|
</MudNavMenu>
|
||||||
|
|
||||||
|
<div class="admin-drawer-version">
|
||||||
|
<div class="admin-drawer-version-label">Version</div>
|
||||||
|
<div class="admin-drawer-version-value">v@(VersionInfo.Version)</div>
|
||||||
|
<div class="admin-drawer-version-built">@VersionInfo.Built</div>
|
||||||
|
</div>
|
||||||
</MudDrawer>
|
</MudDrawer>
|
||||||
|
|
||||||
<MudMainContent Class="admin-main">
|
<MudMainContent Class="admin-main">
|
||||||
|
|||||||
@@ -572,6 +572,33 @@ textarea:focus-visible {
|
|||||||
color: var(--text-tertiary);
|
color: var(--text-tertiary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.admin-drawer-version {
|
||||||
|
margin-top: auto;
|
||||||
|
padding: var(--space-4);
|
||||||
|
border-top: 1px solid var(--border-color-light);
|
||||||
|
font-size: 0.72rem;
|
||||||
|
color: var(--text-tertiary);
|
||||||
|
line-height: 1.35;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-drawer-version-label {
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.08em;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
font-weight: var(--font-weight-semibold);
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-drawer-version-value {
|
||||||
|
font-weight: var(--font-weight-semibold);
|
||||||
|
color: var(--text-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-drawer-version-built {
|
||||||
|
margin-top: 2px;
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
.admin-main {
|
.admin-main {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|||||||
@@ -21,6 +21,11 @@ window.taxbaikAdminSession = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
showLoading: function () {
|
showLoading: function () {
|
||||||
|
if (document.documentElement.classList.contains('admin-login-route')) {
|
||||||
|
window.taxbaikAdminSession.hideLoading();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const overlay = document.getElementById('blazor-loading');
|
const overlay = document.getElementById('blazor-loading');
|
||||||
if (!overlay) return;
|
if (!overlay) return;
|
||||||
|
|
||||||
@@ -84,6 +89,10 @@ window.taxbaikAdminSession = {
|
|||||||
window.taxbaikAdminSession.syncRouteClass();
|
window.taxbaikAdminSession.syncRouteClass();
|
||||||
window.addEventListener('popstate', window.taxbaikAdminSession.syncRouteClass);
|
window.addEventListener('popstate', window.taxbaikAdminSession.syncRouteClass);
|
||||||
|
|
||||||
|
if (document.documentElement.classList.contains('admin-login-route')) {
|
||||||
|
window.taxbaikAdminSession.hideLoading();
|
||||||
|
}
|
||||||
|
|
||||||
// Show loading on initial page load — overlay has 'show' from HTML,
|
// Show loading on initial page load — overlay has 'show' from HTML,
|
||||||
// but we still need to set up the observer to detect when to hide it.
|
// but we still need to set up the observer to detect when to hide it.
|
||||||
window.taxbaikAdminSession.showLoading();
|
window.taxbaikAdminSession.showLoading();
|
||||||
|
|||||||
Reference in New Issue
Block a user