2024-08-04 18:44:33 -05:00
|
|
|
@using LANCommander.Server.Services;
|
2024-10-07 18:38:27 -05:00
|
|
|
@using LANCommander.Server.Services.Models;
|
2024-08-04 18:44:33 -05:00
|
|
|
@using LANCommander.Server.Models;
|
2023-09-05 19:41:11 -05:00
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
2023-01-03 19:41:28 -06:00
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
|
<title>@ViewData["Title"] - LANCommander</title>
|
2023-03-03 17:33:30 -06:00
|
|
|
<base href="~/" />
|
2023-09-05 19:41:11 -05:00
|
|
|
|
|
|
|
|
@switch (SettingService.GetSettings().Theme)
|
|
|
|
|
{
|
|
|
|
|
case LANCommanderTheme.Light:
|
|
|
|
|
<link href="_content/AntDesign/css/ant-design-blazor.css" rel="stylesheet" />
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case LANCommanderTheme.Dark:
|
|
|
|
|
<link href="_content/AntDesign/css/ant-design-blazor.dark.css" rel="stylesheet" />
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-22 01:40:24 -06:00
|
|
|
<link rel="stylesheet" href="_content/LANCommander.UI/ui.css" />
|
|
|
|
|
<link rel="stylesheet" href="css/site.css" />
|
|
|
|
|
<link rel="stylesheet" href="css/app.css" />
|
|
|
|
|
<link rel="stylesheet" href="css/custom.css" />
|
2023-01-03 19:41:28 -06:00
|
|
|
</head>
|
|
|
|
|
<body>
|
2023-09-03 16:17:45 -05:00
|
|
|
<section class="layout ant-layout">
|
|
|
|
|
<main class="ant-layout-content" style="padding: 24px; min-height: 100vh;">
|
|
|
|
|
@RenderBody()
|
|
|
|
|
</main>
|
|
|
|
|
</section>
|
2023-01-03 19:41:28 -06:00
|
|
|
|
2023-03-03 17:33:30 -06:00
|
|
|
<script src="~/lib/antv/g2plot/dist/g2plot.js"></script>
|
|
|
|
|
<script src="~/_content/AntDesign/js/ant-design-blazor.js"></script>
|
|
|
|
|
<script src="~/_content/AntDesign.Charts/ant-design-charts-blazor.js"></script>
|
|
|
|
|
<script src="~/js/site.js"></script>
|
|
|
|
|
|
|
|
|
|
<script>
|
2023-09-12 18:02:30 -05:00
|
|
|
var checkboxes = document.querySelectorAll('.ant-checkbox-input');
|
|
|
|
|
|
|
|
|
|
function handleCheckboxChange(event) {
|
|
|
|
|
var checkbox = event.target;
|
|
|
|
|
var parentWrapper = checkbox.closest('.ant-checkbox-wrapper');
|
|
|
|
|
|
|
|
|
|
if (checkbox.checked) {
|
|
|
|
|
parentWrapper.classList.add('ant-checkbox-wrapper-checked');
|
|
|
|
|
parentWrapper.querySelector('.ant-checkbox').classList.add('ant-checkbox-checked');
|
|
|
|
|
} else {
|
|
|
|
|
parentWrapper.classList.remove('ant-checkbox-wrapper-checked');
|
|
|
|
|
parentWrapper.querySelector('.ant-checkbox').classList.remove('ant-checkbox-checked');
|
2023-03-03 17:33:30 -06:00
|
|
|
}
|
2023-09-12 18:02:30 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
checkboxes.forEach(function (checkbox) {
|
|
|
|
|
checkbox.addEventListener('change', handleCheckboxChange);
|
2023-03-03 17:33:30 -06:00
|
|
|
});
|
|
|
|
|
</script>
|
2023-01-11 21:24:57 -06:00
|
|
|
|
2023-01-03 19:41:28 -06:00
|
|
|
@await RenderSectionAsync("Scripts", required: false)
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|