* refactor(desktop): remove the onboarding intro cinematic and the guided-onboarding tests The guided first run now opens straight into the guide: the gate's `cinematic` phase becomes `pending`, and OnboardingChatGate owes the guide on mount (the old HERMES_SKIP_INTRO path, now the only path). Removes the native intro window, its IPC bridge, the `?win=intro` renderer, its assets, and the skipIntro launch flag. Deletes the guided-onboarding test files ahead of the rewrite, plus the reset helpers only they called. * refactor(onboarding): strip comments from the guided-onboarding modules Clears comments and docstrings from the guided-onboarding files ahead of their rewrite, desktop and backend. Lint and type pragmas stay. No code changes.
51 lines
2.3 KiB
HTML
51 lines
2.3 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="color-scheme" content="light dark" />
|
|
<meta name="theme-color" content="#0a0a0a" />
|
|
<link rel="icon" type="image/png" sizes="180x180" href="/apple-touch-icon.png" />
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
|
<link rel="shortcut icon" href="/apple-touch-icon.png" />
|
|
<title>Hermes</title>
|
|
<script>
|
|
// Pre-paint the themed background before the app bundle loads. Without
|
|
// this, the first frame (which is what `ready-to-show` waits for) is the
|
|
// UA-default white page, and the real theme only lands once the whole
|
|
// module graph has executed — i.e. the "white flash" on every new
|
|
// window. applyTheme() in src/themes/context.tsx keeps these keys fresh.
|
|
//
|
|
// OPAQUE WINDOWS ONLY. The `?win=` kinds Electron creates with
|
|
// `transparent: true` already have a clear canvas, and pre-painting a
|
|
// theme colour there does not prevent a flash, it IS the flash: an
|
|
// opaque rectangle standing until that window's module graph executes.
|
|
// The list is TRANSPARENT_WINDOWS in src/main.tsx — keep the two in step.
|
|
// `secondary` (a session window) and `browser` are opaque and DO want the
|
|
// pre-paint.
|
|
try {
|
|
const win = new URLSearchParams(window.location.search).get('win')
|
|
if (!win || ['hud', 'overlay', 'quick', 'wake'].indexOf(win) === -1) {
|
|
let bg = localStorage.getItem('hermes-boot-background')
|
|
let scheme = localStorage.getItem('hermes-boot-color-scheme')
|
|
if (!bg) {
|
|
const dark = window.matchMedia('(prefers-color-scheme: dark)').matches
|
|
bg = dark ? '#111111' : '#f7f7f7'
|
|
scheme = dark ? 'dark' : 'light'
|
|
}
|
|
document.documentElement.style.backgroundColor = bg
|
|
if (scheme === 'dark' || scheme === 'light') {
|
|
document.documentElement.style.colorScheme = scheme
|
|
}
|
|
}
|
|
} catch {
|
|
// localStorage unavailable — keep UA defaults.
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="root" class="scrollbar-dt"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|