add day 70

This commit is contained in:
Zoe
2022-12-01 22:40:02 -06:00
parent f0dc32ceab
commit 2a33574680
48 changed files with 12315 additions and 0 deletions

18
day70/src/entry-client.ts Normal file
View File

@@ -0,0 +1,18 @@
import { initAppState } from './main';
async function initClient() {
if (import.meta.env.SSR) return;
await initAppState();
await import('./style.css');
const { renderPage } = await import('./lib/router/pageRenderer');
await renderPage();
window.onpopstate = async (e: PopStateEvent) => {
if (e.state === null) {
return;
}
await renderPage();
};
}
await initClient();