test(ui): retain ScadaBridge synthetic consumer validation host
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" data-bs-theme="light" data-canary="scadabridge">
|
||||
<head>
|
||||
<!-- Exact existing ScadaBridge pre-hydration preference script; fixture does not change production. -->
|
||||
<script>
|
||||
// Apply the persisted theme to <html> BEFORE first paint so a
|
||||
// dark-mode user never sees a light flash. Mirrors window.sbTheme.get/apply
|
||||
// (theme.js) — same key, same rule — but inlined so it runs without waiting
|
||||
// on the deferred script include. localStorage access is guarded for
|
||||
// private-browsing modes that throw on read.
|
||||
(function () {
|
||||
try {
|
||||
var m = localStorage.getItem('sb-theme') === 'dark' ? 'dark' : 'light';
|
||||
document.documentElement.setAttribute('data-bs-theme', m);
|
||||
} catch (e) { }
|
||||
})();
|
||||
</script>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<base href="/" />
|
||||
<link href="/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<link href="/lib/bootstrap-icons/bootstrap-icons.css" rel="stylesheet" />
|
||||
<ThemeHead />
|
||||
<link href="/ScadaBridgeUiCanary.styles.css" rel="stylesheet" />
|
||||
<link href="/_content/ZB.MOM.WW.ScadaBridge.CentralUI/css/site.css" rel="stylesheet" />
|
||||
<link href="/canary-adoption.css" rel="stylesheet" />
|
||||
<HeadOutlet @rendermode="InteractiveServer" />
|
||||
</head>
|
||||
<body>
|
||||
<Routes @rendermode="InteractiveServer" />
|
||||
<script src="/_framework/blazor.web.js"></script>
|
||||
<script src="/_content/ZB.MOM.WW.ScadaBridge.CentralUI/js/theme.js"></script>
|
||||
<script src="/_content/ZB.MOM.WW.ScadaBridge.CentralUI/js/dialog.js"></script>
|
||||
<script src="/_content/ZB.MOM.WW.ScadaBridge.CentralUI/js/monaco-init.js"></script>
|
||||
<script src="/js/treeview-storage.js"></script>
|
||||
<script src="/lib/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
<ThemeScripts />
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user