fix: clear commands after entering

This commit is contained in:
2025-01-17 16:54:53 +01:00
parent 6e82d9ca73
commit 6112d007c2
5 changed files with 28 additions and 21 deletions

View File

@@ -2,11 +2,13 @@ import { PageProps } from "$fresh/server.ts";
import { Head } from "$fresh/runtime.ts";
export default function App({ Component }: PageProps) {
const css = Deno.readTextFileSync("./static/global.css").replace("\n", "");
const globalCss = Deno
.readTextFileSync("./static/global.css")
.replaceAll("\n", "");
return (
<>
<Head>
<link href="/prism-material-dark.css" rel="stylesheet" />
<link rel="stylesheet" href="/styles.css" />
<link
rel="apple-touch-icon"
sizes="180x180"
@@ -25,14 +27,13 @@ export default function App({ Component }: PageProps) {
href="/favicon-16x16.png"
/>
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />
<link rel="stylesheet" href="/styles.css" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#141218" />
<script src="/thumbnails.js" type="module"></script>
<style>{css}</style>
<style>{globalCss}</style>
<title>app</title>
</Head>
<Component />
<script src="/thumbnails.js" type="module" async defer />
</>
);
}