LANCommander/LANCommander.Server/UI/Views/Shared/_LayoutBasic.cshtml
Pat Hartl add770b227 Refactor Settings
Settings for the server are now combined with the settings from the SDK. This introduces a large breaking change and a migration should be created. This refactor utilizes .NET Configuration and the Options pattern. This will allow for the overriding of any setting using envionment variables. It also means that Settings.yml can be used to override any .NET configuration. A SettingsProvider implementation was created, and any updating of settings was changed from SettingsService.SaveSettings() to SettingsProvider.Update(s => { ... })
2025-11-16 12:31:25 -06:00

51 lines
1.9 KiB
Text

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - LANCommander</title>
<base href="~/" />
<link href="_content/AntDesign/css/ant-design-blazor.dark.css" rel="stylesheet" />
<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" />
</head>
<body>
<section class="layout ant-layout">
<main class="ant-layout-content" style="background: none; padding: 24px; min-height: 100vh;">
@RenderBody()
</main>
</section>
<script src="~/lib/antv/g2plot/dist/g2plot.js"></script>
<script src="~/_framework/blazor.server.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>
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');
}
}
checkboxes.forEach(function (checkbox) {
checkbox.addEventListener('change', handleCheckboxChange);
});
</script>
@await RenderSectionAsync("Scripts", required: false)
</body>
</html>