Files
SCM-Manager/scm-ui/ui-webapp/public/index.mustache

68 lines
2.5 KiB
Plaintext
Raw Normal View History

2018-07-02 14:50:13 +02:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
2018-07-02 14:50:13 +02:00
<meta name="theme-color" content="#000000">
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link rel="manifest" href="{{ contextPath }}/manifest.json">
<link rel="shortcut icon" href="{{ contextPath }}/favicon.ico">
2018-08-30 08:49:28 +02:00
<base href="{{ contextPath }}">
2018-07-11 14:59:01 +02:00
<title>SCM-Manager</title>
<script>
var modernBrowser = (
'fetch' in window &&
'assign' in Object
);
if ( !modernBrowser ) {
var scriptElement = document.createElement("script");
scriptElement.async = false;
2019-10-11 14:26:57 +02:00
scriptElement.src = "{{ contextPath }}/assets/polyfills.bundle.js";
document.head.appendChild(scriptElement);
}
var linkElement = document.createElement("link");
linkElement.rel = 'stylesheet';
linkElement.type = 'text/css';
var theme = localStorage.getItem('scm.theme');
if (theme === 'light') {
linkElement.href = "{{ contextPath }}/assets/ui-theme-light.css"
} else if (theme === 'dark') {
linkElement.href = "{{ contextPath }}/assets/ui-theme-dark.css"
} else if (theme === 'highcontrast') {
linkElement.href = "{{ contextPath }}/assets/ui-theme-highcontrast.css"
} else {
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
linkElement.href = "{{ contextPath }}/assets/ui-theme-dark.css"
} else {
linkElement.href = "{{ contextPath }}/assets/ui-theme-light.css"
}
}
document.head.appendChild(linkElement);
</script>
2018-07-02 14:50:13 +02:00
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root"></div>
2019-02-01 08:47:38 +01:00
<div id="modalRoot"></div>
2018-08-27 15:47:02 +02:00
<script>
window.ctxPath = "{{ contextPath }}";
2020-08-25 08:42:16 +02:00
window.scmStage = "{{ scmStage }}";
2018-08-27 15:47:02 +02:00
</script>
2019-10-08 16:01:31 +02:00
<script src="{{ contextPath }}/assets/runtime.bundle.js"></script>
<script src="{{ contextPath }}/assets/vendors~webapp.bundle.js"></script>
2019-10-08 08:36:53 +02:00
<script src="{{ contextPath }}/assets/webapp.bundle.js"></script>
{{#liveReloadURL}}
<script src="{{liveReloadURL}}"></script>
{{/liveReloadURL}}
2018-07-02 14:50:13 +02:00
</body>
</html>