Convert remaining admin routes to Razor Pages
TaxBaik CI/CD / build-and-deploy (push) Failing after 2m40s
TaxBaik CI/CD / build-and-deploy (push) Failing after 2m40s
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
var returnUrl = Uri.EscapeDataString(GetSafeReturnUrl());
|
var returnUrl = Uri.EscapeDataString(GetSafeReturnUrl());
|
||||||
Navigation.NavigateTo($"./login?returnUrl={returnUrl}", replace: true);
|
Navigation.NavigateTo($"/admin/login?returnUrl={returnUrl}", forceLoad: true, replace: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private string GetSafeReturnUrl()
|
private string GetSafeReturnUrl()
|
||||||
@@ -31,6 +31,6 @@
|
|||||||
// Fall through to a safe default.
|
// Fall through to a safe default.
|
||||||
}
|
}
|
||||||
|
|
||||||
return "dashboard";
|
return "/admin/dashboard";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,5 @@
|
|||||||
@namespace TaxBaik.WasmClient.Components.Admin
|
@namespace TaxBaik.WasmClient.Components.Admin
|
||||||
@using Microsoft.AspNetCore.Components.Routing
|
@using Microsoft.AspNetCore.Components.Routing
|
||||||
|
|
||||||
<Router AppAssembly="@typeof(TaxBaik.WasmClient.Components.Admin.Pages.AdminIndex).Assembly">
|
<PageTitle>관리자 이동</PageTitle>
|
||||||
<Found Context="routeData">
|
<RedirectToLogin />
|
||||||
<RouteView RouteData="@routeData" DefaultLayout="@typeof(TaxBaik.WasmClient.Components.Admin.Layout.MainLayout)" />
|
|
||||||
</Found>
|
|
||||||
<NotFound>
|
|
||||||
<PageTitle>찾을 수 없음</PageTitle>
|
|
||||||
<LayoutView Layout="@typeof(TaxBaik.WasmClient.Components.Admin.Layout.MainLayout)">
|
|
||||||
<p>요청한 페이지를 찾을 수 없습니다.</p>
|
|
||||||
</LayoutView>
|
|
||||||
</NotFound>
|
|
||||||
</Router>
|
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page
|
||||||
|
@model TaxBaik.Web.Pages.Admin.Announcements.IndexModel
|
||||||
|
@{ ViewData["Title"] = "공지사항"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">공지사항 관리</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.Announcements;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class IndexModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page
|
||||||
|
@model TaxBaik.Web.Pages.Admin.Blog.CreateModel
|
||||||
|
@{ ViewData["Title"] = "블로그 등록"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">블로그 등록</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.Blog;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class CreateModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page "{id:int}"
|
||||||
|
@model TaxBaik.Web.Pages.Admin.Blog.EditModel
|
||||||
|
@{ ViewData["Title"] = "블로그 수정"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">블로그 수정</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.Blog;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class EditModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page
|
||||||
|
@model TaxBaik.Web.Pages.Admin.Blog.IndexModel
|
||||||
|
@{ ViewData["Title"] = "블로그"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">블로그 관리</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.Blog;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class IndexModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page
|
||||||
|
@model TaxBaik.Web.Pages.Admin.ClientLogs.IndexModel
|
||||||
|
@{ ViewData["Title"] = "클라이언트 로그"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">클라이언트 로그</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.ClientLogs;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class IndexModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page "{id:int}"
|
||||||
|
@model TaxBaik.Web.Pages.Admin.Clients.DetailModel
|
||||||
|
@{ ViewData["Title"] = "클라이언트 상세"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">클라이언트 상세</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.Clients;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class DetailModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page "{id:int}"
|
||||||
|
@model TaxBaik.Web.Pages.Admin.Clients.EditModel
|
||||||
|
@{ ViewData["Title"] = "클라이언트 수정"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">클라이언트 수정</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.Clients;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class EditModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page
|
||||||
|
@model TaxBaik.Web.Pages.Admin.Clients.IndexModel
|
||||||
|
@{ ViewData["Title"] = "클라이언트"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">클라이언트 목록</h1><p class="text-muted">Blazor 관리자 화면을 Razor Pages로 전환하는 자리입니다.</p></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.Clients;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class IndexModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page
|
||||||
|
@model TaxBaik.Web.Pages.Admin.CommonCodes.IndexModel
|
||||||
|
@{ ViewData["Title"] = "공통코드"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">공통코드 관리</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.CommonCodes;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class IndexModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page
|
||||||
|
@model TaxBaik.Web.Pages.Admin.Companies.IndexModel
|
||||||
|
@{ ViewData["Title"] = "회사"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">회사 관리</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.Companies;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class IndexModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page
|
||||||
|
@model TaxBaik.Web.Pages.Admin.ConsultingActivities.IndexModel
|
||||||
|
@{ ViewData["Title"] = "상담 활동"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">상담 활동</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.ConsultingActivities;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class IndexModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page
|
||||||
|
@model TaxBaik.Web.Pages.Admin.Contracts.IndexModel
|
||||||
|
@{ ViewData["Title"] = "계약"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">계약 관리</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.Contracts;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class IndexModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page
|
||||||
|
@model TaxBaik.Web.Pages.Admin.Faqs.IndexModel
|
||||||
|
@{ ViewData["Title"] = "FAQ"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">FAQ 관리</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.Faqs;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class IndexModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page
|
||||||
|
@model TaxBaik.Web.Pages.Admin.Inquiries.CreateModel
|
||||||
|
@{ ViewData["Title"] = "문의 등록"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">문의 등록</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.Inquiries;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class CreateModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page "{id:int}"
|
||||||
|
@model TaxBaik.Web.Pages.Admin.Inquiries.DetailModel
|
||||||
|
@{ ViewData["Title"] = "문의 상세"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">문의 상세</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.Inquiries;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class DetailModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page "{id:int}"
|
||||||
|
@model TaxBaik.Web.Pages.Admin.Inquiries.EditModel
|
||||||
|
@{ ViewData["Title"] = "문의 수정"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">문의 수정</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.Inquiries;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class EditModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page
|
||||||
|
@model TaxBaik.Web.Pages.Admin.Inquiries.IndexModel
|
||||||
|
@{ ViewData["Title"] = "문의"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">문의 관리</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.Inquiries;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class IndexModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page
|
||||||
|
@model TaxBaik.Web.Pages.Admin.RevenueTrackings.IndexModel
|
||||||
|
@{ ViewData["Title"] = "매출 추적"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">매출 추적</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.RevenueTrackings;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class IndexModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page
|
||||||
|
@model TaxBaik.Web.Pages.Admin.SeasonSimulator.IndexModel
|
||||||
|
@{ ViewData["Title"] = "시즌 시뮬레이터"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">시즌 시뮬레이터</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.SeasonSimulator;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class IndexModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page
|
||||||
|
@model TaxBaik.Web.Pages.Admin.Settings.IndexModel
|
||||||
|
@{ ViewData["Title"] = "설정"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">설정</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.Settings;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class IndexModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page
|
||||||
|
@model TaxBaik.Web.Pages.Admin.TaxFilingSchedules.IndexModel
|
||||||
|
@{ ViewData["Title"] = "신고 일정"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">신고 일정 관리</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.TaxFilingSchedules;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class IndexModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page
|
||||||
|
@model TaxBaik.Web.Pages.Admin.TaxFilings.IndexModel
|
||||||
|
@{ ViewData["Title"] = "세금 신고"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">세금 신고 관리</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.TaxFilings;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class IndexModel : PageModel { }
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@page
|
||||||
|
@model TaxBaik.Web.Pages.Admin.TaxProfiles.IndexModel
|
||||||
|
@{ ViewData["Title"] = "세무 프로필"; }
|
||||||
|
<section class="container py-5"><h1 class="h2 fw-bold">세무 프로필 관리</h1></section>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using TaxBaik.Web.Services;
|
||||||
|
namespace TaxBaik.Web.Pages.Admin.TaxProfiles;
|
||||||
|
[Authorize(AuthenticationSchemes = AdminAuthDefaults.Scheme)]
|
||||||
|
public class IndexModel : PageModel { }
|
||||||
|
|
||||||
Reference in New Issue
Block a user