decocms
Version:
Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools
68 lines (67 loc) • 3.41 kB
HTML
<!--
Studio ships its own translations. Browser translation rewrites React-owned
text nodes, and the next render crashes with "removeChild ... is not a child".
-->
<html translate="no">
<head>
<meta name="theme-color" content="#f6f4ed" />
<script>
// Reload once on modulepreload 404 (rolling deployment — old pod missing new chunk).
// Shares the cooldown key with ChunkErrorBoundary to prevent double-reload loops.
window.addEventListener('vite:preloadError', function() {
var key = '__studio_chunk_reload_ts';
var last = sessionStorage.getItem(key);
var now = Date.now();
if (!last || now - Number(last) > 10000) {
sessionStorage.setItem(key, String(now));
location.reload();
}
});
</script>
<script>
// Apply dark mode class and language before first paint to prevent flash
(function() {
try {
var p = JSON.parse(
localStorage.getItem("studio:user:preferences") ||
localStorage.getItem("mesh:user:preferences") ||
"{}",
);
document.documentElement.lang =
p.language === "en" || p.language === "pt-BR"
? p.language
: /^pt/i.test(navigator.language || "") ? "pt-BR" : "en";
var theme = p.theme || "system";
var isDark = theme === "dark" || (theme === "system" && window.matchMedia("(prefers-color-scheme: dark)").matches);
if (isDark) {
document.documentElement.classList.add("dark");
// Also pre-set <meta name="theme-color"> so the mobile browser
// chrome doesn't flash light before the React runtime syncs it
// from --sidebar. Value approximates dark --sidebar:
// oklch(0.155 0.005 60).
var meta = document.querySelector('meta[name="theme-color"]');
if (meta) meta.setAttribute("content", "#272524");
}
} catch(e) {}
})();
</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>deco Studio</title>
<meta name="description" content="Hire specialized agents, give them access to your tools, and let them deliver real projects — with planning, verification, and observability built in." />
<meta property="og:title" content="deco Studio" />
<meta property="og:description" content="Hire specialized agents, give them access to your tools, and let them deliver real projects — with planning, verification, and observability built in." />
<meta property="og:image" content="/og-image.png" />
<meta property="og:site_name" content="deco Studio" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="deco Studio" />
<meta name="twitter:description" content="Hire specialized agents, give them access to your tools, and let them deliver real projects — with planning, verification, and observability built in." />
<meta name="twitter:image" content="/og-image.png" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<script type="module" crossorigin src="/assets/index-DoEtSiIe.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DOMlzk_A.css">
</head>
<body>
<div id="root"></div>
</body>
</html>