opencode/packages/app/e2e/utils/windows-menu.html

22 lines
775 B
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
</head>
<body>
<!-- Sized like the app's root, so the sidebar and session fill the window and their rows take pointer input. -->
<div id="root" style="display: flex; flex-direction: column; height: 100dvh"></div>
<script type="module">
import { mount } from "./windows-menu.fixture.tsx"
const params = new URLSearchParams(location.search)
const os = params.get("os")
mount({
server: params.get("server"),
path: params.get("path") ?? undefined,
os: os === "macos" || os === "linux" ? os : undefined,
openApps: params.get("openApps") === "1",
holdOpen: params.get("holdOpen") === "1",
})
</script>
</body>
</html>