mirror of
https://github.com/kou029w/_.git
synced 2025-01-31 06:18:07 +00:00
25 lines
797 B
TypeScript
25 lines
797 B
TypeScript
|
import "./style.css";
|
||
|
import typescriptLogo from "@/assets/typescript.svg";
|
||
|
import viteLogo from "/wxt.svg";
|
||
|
import { setupCounter } from "@/components/counter";
|
||
|
|
||
|
document.querySelector<HTMLDivElement>("#app")!.innerHTML = `
|
||
|
<div>
|
||
|
<a href="https://wxt.dev" target="_blank">
|
||
|
<img src="${viteLogo}" class="logo" alt="WXT logo" />
|
||
|
</a>
|
||
|
<a href="https://www.typescriptlang.org/" target="_blank">
|
||
|
<img src="${typescriptLogo}" class="logo vanilla" alt="TypeScript logo" />
|
||
|
</a>
|
||
|
<h1>WXT + TypeScript</h1>
|
||
|
<div class="card">
|
||
|
<button id="counter" type="button"></button>
|
||
|
</div>
|
||
|
<p class="read-the-docs">
|
||
|
Click on the WXT and TypeScript logos to learn more
|
||
|
</p>
|
||
|
</div>
|
||
|
`;
|
||
|
|
||
|
setupCounter(document.querySelector<HTMLButtonElement>("#counter")!);
|