Project created from basic template

This commit is contained in:
Quests Agent
2025-09-29 17:56:30 +02:00
commit a4ecf845bf
26 changed files with 3887 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
/** @jsxImportSource hono/jsx */
import type { Context } from "hono";
import viteReact from "@vitejs/plugin-react";
import type { BlankEnv } from "hono/types";
export function clientEntry(c: Context<BlankEnv>) {
return c.html(
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<title>New Quest</title>
{import.meta.env.PROD ? (
<script src="/static/main.js" type="module" />
) : (
<>
<script
dangerouslySetInnerHTML={{
__html: viteReact.preambleCode.replace("__BASE__", "/"),
}}
type="module"
/>
<script src="/src/client/main.tsx" type="module" />
</>
)}
</head>
<body>
<div id="root" />
</body>
</html>,
);
}