Compare commits

..

No commits in common. "6c493a667df11b5cb7e37129b074b5d6316b60e7" and "f06425f7ff417a814cd6b5855414a628283ac2d3" have entirely different histories.

4 changed files with 3 additions and 8 deletions

View File

@ -1,4 +0,0 @@
import { GIT_SHA } from "@/config"
export default function () {
return GIT_SHA
}

View File

@ -1,5 +1,5 @@
//// ////
// version: ff88168 // version: 1d6a7bc
// src/js/dom.ts // src/js/dom.ts
var cmdLine = $("command-line"); var cmdLine = $("command-line");

View File

@ -13,4 +13,4 @@ export const NOSE_WWW = join(NOSE_DIR, "www")
export const NOSE_DATA = resolve("./data") export const NOSE_DATA = resolve("./data")
export const NOSE_STARTED = Date.now() export const NOSE_STARTED = Date.now()
export const GIT_SHA = (await $`git rev-parse --short HEAD`.text()).trim() export const GIT_SHA = (await $`git rev-parse HEAD`.text()).trim()

View File

@ -1,5 +1,4 @@
import type { FC } from "hono/jsx" import type { FC } from "hono/jsx"
import { GIT_SHA } from "../config"
export const Layout: FC = async ({ children, title }) => ( export const Layout: FC = async ({ children, title }) => (
<html lang="en"> <html lang="en">
@ -13,7 +12,7 @@ export const Layout: FC = async ({ children, title }) => (
<link href="/css/game.css" rel="stylesheet" /> <link href="/css/game.css" rel="stylesheet" />
<script type="importmap" dangerouslySetInnerHTML={{ __html: `{ "imports": { "@/": "/" } }` }} /> <script type="importmap" dangerouslySetInnerHTML={{ __html: `{ "imports": { "@/": "/" } }` }} />
<script src={process.env.NODE_ENV === "production" ? `/bundle.js?${GIT_SHA}` : "/js/main.js"} type="module" async></script> <script src={process.env.NODE_ENV === "production" ? "/bundle.js" : "/js/main.js"} type="module" async></script>
</head> </head>
<body data-mode="tall"> <body data-mode="tall">
<main> <main>