Fix admin WASM bootstrap and dashboard render
TaxBaik CI/CD / build-and-deploy (push) Successful in 6m10s
TaxBaik CI/CD / build-and-deploy (push) Successful in 6m10s
This commit is contained in:
@@ -15,8 +15,8 @@ const files = [
|
||||
const required = [
|
||||
{
|
||||
file: 'src/TaxBaik.Web/Program.cs',
|
||||
pattern: 'MapGroup("/taxbaik/admin")',
|
||||
message: '관리자 Razor Components는 /taxbaik/admin 그룹에만 매핑되어야 합니다.'
|
||||
pattern: 'app.MapFallbackToFile("admin/{*path:nonfile}", "admin/index.html");',
|
||||
message: '관리자 SPA 폴백은 admin/index.html로만 연결되어야 합니다.'
|
||||
},
|
||||
{
|
||||
file: 'tests/e2e/route-isolation.spec.ts',
|
||||
@@ -48,12 +48,18 @@ const adminFiles = files
|
||||
for (const file of adminFiles) {
|
||||
const fullPath = path.join(root, file);
|
||||
const text = fs.readFileSync(fullPath, 'utf8');
|
||||
if (file === 'src/TaxBaik.Web/Program.cs') continue;
|
||||
|
||||
if (text.includes('ToBaseRelativePath(Navigation.Uri)')) {
|
||||
console.error(`[route-lint] FAIL ${file}: unsafe ToBaseRelativePath(Navigation.Uri) usage detected.`);
|
||||
failed = true;
|
||||
}
|
||||
|
||||
if (file === 'src/TaxBaik.Web.Client/Components/Admin/App.razor') {
|
||||
if (text.includes('<html') || text.includes('<body') || text.includes('blazor.webassembly.js')) {
|
||||
console.error('[route-lint] FAIL App.razor: host HTML or Blazor bootstrap script must not live in the root component.');
|
||||
failed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (failed) process.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user