hana-cli
Version:
HANA Developer Command Line Interface
67 lines (61 loc) • 2.56 kB
HTML
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy"
content="default-src 'self' https://ui5.sap.com; script-src 'self' https://ui5.sap.com 'unsafe-inline' 'unsafe-eval'; style-src 'self' https://ui5.sap.com 'unsafe-inline'; img-src 'self' data: https://ui5.sap.com; font-src 'self' https://ui5.sap.com; connect-src 'self' https://ui5.sap.com; frame-ancestors 'self'">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title data-i18n-key="html.title.main">hana-cli LaunchPad</title>
<script>
document.addEventListener('sap-ui-core-init', function() {
if (window.sap && sap.ui && sap.ui.getCore()) {
const core = sap.ui.getCore();
if (core._oLinkMetadata && core._oLinkMetadata.getResourceBundle) {
const bundle = core._oLinkMetadata.getResourceBundle();
if (bundle) document.title = bundle.getText('html.title.main');
}
}
});
</script>
<script src="https://ui5.sap.com/1.147.1/test-resources/sap/ushell/bootstrap/sandbox.js"></script>
<script src="https://ui5.sap.com/1.147.1/resources/sap-ui-core.js"
data-sap-ui-libs="sap.m, sap.ushell, sap.collaboration, sap.ui.layout, sap.ui.rta, sap.dfa.help,sap.uxap"
data-sap-ui-compatVersion="edge" data-sap-ui-theme="sap_horizon" data-sap-ui-async="true"
data-sap-ui-frameOptions="trusted" data-sap-ui-bindingSyntax="complex"
data-sap-ui-resourceroots='{"sap.hanacli.common": "./common", "sap.dfa.help": "/sap/dfa/help/"}'></script>
<style>
html,
body {
height: 100%;
}
</style>
<style>
.swa_banner {
width: auto ;
}
.swa_banner img {
vertical-align: middle ;
}
</style>
<!-- Extended help system requires absolute /sap/dfa/help/ path. -->
<!-- <script src="./WebAssistant.js"></script> -->
<script>
sap.ui.getCore().attachInit(() => {
const allowedThemes = new Set(["sap_horizon", "sap_horizon_dark"])
const urlTheme = new URLSearchParams(window.location.search).get("theme")
const resolvedTheme = allowedThemes.has(urlTheme) ? urlTheme : null
if (resolvedTheme) {
sap.ui.getCore().applyTheme(resolvedTheme)
} else if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
sap.ui.getCore().applyTheme("sap_horizon_dark")
}
sap.ushell.Container.createRenderer().placeAt("content")
sap.ui.getCore().getConfiguration()
.setFlexibilityServices([{
connector: "SessionStorageConnector"
}])
})
</script>
</head>
<body class="sapUiBody" id="content"></body>
</html>