UNPKG

@bitkyc08/opencodex

Version:

Universal provider proxy for OpenAI Codex & Claude Code — use any LLM with Codex CLI/App/SDK and Claude Code

45 lines (44 loc) • 2 kB
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <link rel="icon" type="image/png" href="/favicon.png" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="color-scheme" content="light dark" /> <title>opencodex · proxy dashboard</title> <script> // FOWT guard: apply an explicit light/dark choice before first paint. "system" leaves the // attribute unset so color-scheme:light-dark follows the OS. Mirrors App.tsx. (function () { try { var t = localStorage.getItem("ocx-theme"); if (t === "light" || t === "dark") document.documentElement.setAttribute("data-theme", t); } catch (e) {} // FOUT guard: set <html lang> before first paint so :lang() font stacks apply immediately. // Mirrors detectInitial() + LOCALES in src/i18n/shared.ts. var langMap = { en: "en", de: "de", fr: "fr", ko: "ko", zh: "zh-CN", "zh-TW": "zh-TW", ru: "ru", ja: "ja", tr: "tr", vi: "vi" }; var stored = null; try { stored = localStorage.getItem("ocx-lang"); } catch (e) { stored = null; // storage blocked: fall back to navigator.language below } var locale = stored && Object.prototype.hasOwnProperty.call(langMap, stored) ? stored : null; if (!locale) { var nav = (navigator.language || "en").toLowerCase(); if (nav.indexOf("zh") === 0) { locale = /tw|hk|mo|hant/.test(nav) ? "zh-TW" : "zh"; } else { locale = ["de", "fr", "ko", "ru", "ja", "tr", "vi"].filter(function (c) { return nav.indexOf(c) === 0; })[0] || "en"; } } document.documentElement.lang = langMap[locale]; })(); </script> <script type="module" crossorigin src="/assets/index-D_RGAT6Q.js"></script> <link rel="stylesheet" crossorigin href="/assets/index-DBT3Q31Y.css"> </head> <body> <div id="root"></div> </body> </html>