mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
* Remove excel export from cli interactive tables code * Remove vulnerable dependency * Remove posthog from interactive table html template * Incorporate additional styles to the index.css * Update the deploy command * Update the built static file and deploy script --------- Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
40 lines
1.4 KiB
HTML
Vendored
40 lines
1.4 KiB
HTML
Vendored
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>OpenBB Interactive Tables</title>
|
|
<script>
|
|
if (
|
|
// check if user had saved dark as their
|
|
// theme when accessing page before
|
|
localStorage.theme === "dark" ||
|
|
// or user's requesting dark color
|
|
// scheme through operating system
|
|
(!("theme" in localStorage) &&
|
|
window.matchMedia("(prefers-color-scheme: dark)").matches)
|
|
) {
|
|
// then if we have access to the document and the element
|
|
// we add the dark class to the html element and
|
|
// store the dark value in the localStorage
|
|
if (document && document.documentElement) {
|
|
document.documentElement.classList.add("dark");
|
|
localStorage.setItem("theme", "dark");
|
|
}
|
|
} else {
|
|
// else if we have access to the document and the element
|
|
// we remove the dark class to the html element and
|
|
// store the value light in the localStorage
|
|
if (document && document.documentElement) {
|
|
document.documentElement.classList.remove("dark");
|
|
localStorage.setItem("theme", "light");
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|