e5981769b9
TaxBaik CI/CD / build-and-deploy (push) Successful in 2m11s
- Admin: replace the global @rendermode on <Routes>/<Router> with per-page render mode. Login.razor now prerenders (form visible before WASM loads); every other [Authorize] page stays prerender: false to avoid the AuthorizeRouteView blank-render regression from earlier attempts. Adds a "준비 중" -> "로그인" splash tied to WASM boot completion, and lets the authenticated-shell loading overlay stay up until AdminShell actually renders. - Contact.cshtml: fix the "Agree" checkbox missing value="true" - a checked box sent the browser-default "on", which bool model binding can't parse, so ModelState.IsValid silently went false and OnPostAsync returned a blank form with no visible error on every submission. Validation summary widened from ModelOnly to All so this class of failure isn't silent again. - TelegramInquiryNotificationService: read Telegram:InquiryChatId (falling back to ChatId) instead of only ChatId, matching the channel routing CLAUDE.md documents and deploy.yml already provisions as separate secrets. - Reconcile CLAUDE.md's self-contradicting Phase 8 prerender notes (Phase 9), rewrite validate_admin_render.sh for the per-page design, and add a SmartAdmin 5.5 design reference section to DOUZONE_UX_GUIDE.md for future admin screens (existing screens unchanged, tracked as WBS P4-03). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
73 lines
2.7 KiB
Plaintext
73 lines
2.7 KiB
Plaintext
@inject ILocalStorageService LocalStorageService
|
|
@inject IJSRuntime Js
|
|
|
|
<MudContainer MaxWidth="MaxWidth.Small" Class="admin-login-page d-flex align-center justify-center" Style="min-height: 100vh;">
|
|
<MudPaper Class="pa-8" Elevation="3" Style="width: 100%; max-width: 400px;">
|
|
<MudText Typo="Typo.h4" Class="mb-6 text-center">관리자 로그인</MudText>
|
|
|
|
<form id="admin-login-form">
|
|
<input class="mud-input mud-input-outlined mud-input-root mud-input-root-adorned-start mb-4"
|
|
style="width: 100%; min-height: 56px; padding: 16px 14px;"
|
|
placeholder="사용자명"
|
|
autocomplete="username"
|
|
name="username"
|
|
value="@rememberedUsername" />
|
|
|
|
<input type="password"
|
|
class="mud-input mud-input-outlined mud-input-root mud-input-root-adorned-start mb-4"
|
|
style="width: 100%; min-height: 56px; padding: 16px 14px;"
|
|
placeholder="비밀번호"
|
|
autocomplete="current-password"
|
|
name="password" />
|
|
|
|
<div class="mb-4">
|
|
<input class="mud-checkbox" type="checkbox" name="rememberMe" />
|
|
<label style="margin-left: 8px; cursor: pointer;">아이디 저장</label>
|
|
</div>
|
|
|
|
<div class="mud-alert mud-alert-filled-error mb-4 login-error-message" style="display:none;">로그인 중 오류가 발생했습니다.</div>
|
|
|
|
<button type="submit"
|
|
id="admin-login-submit"
|
|
disabled
|
|
class="mud-button-root mud-button mud-button-filled mud-button-filled-primary mud-elevation-0"
|
|
style="width: 100%; min-height: 52px; border: 0; border-radius: 4px; color: white;">
|
|
<span>준비 중...</span>
|
|
</button>
|
|
</form>
|
|
</MudPaper>
|
|
</MudContainer>
|
|
|
|
@code {
|
|
private string rememberedUsername = "";
|
|
private const string RememberedUsernameKey = "admin-remembered-username";
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
try
|
|
{
|
|
rememberedUsername = await LocalStorageService.GetItemAsStringAsync(RememberedUsernameKey) ?? "";
|
|
}
|
|
catch
|
|
{
|
|
rememberedUsername = "";
|
|
}
|
|
}
|
|
|
|
protected override async Task OnAfterRenderAsync(bool firstRender)
|
|
{
|
|
if (firstRender)
|
|
{
|
|
try
|
|
{
|
|
await Js.InvokeVoidAsync("taxbaikAdminSession.syncRouteClass");
|
|
await Js.InvokeVoidAsync("taxbaikAdminSession.bindLoginForm");
|
|
}
|
|
catch
|
|
{
|
|
// Login UI must remain visible even if JS binding fails.
|
|
}
|
|
}
|
|
}
|
|
}
|