1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-30 22:08:02 +00:00
_/wxt/entrypoints/popup/main.ts
2024-03-10 00:27:38 +09:00

24 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")!);