Added package repo statistic extraction script
This commit is contained in:
29
src/main.ts
29
src/main.ts
@@ -1,24 +1,9 @@
|
||||
import './style.css'
|
||||
import typescriptLogo from './typescript.svg'
|
||||
import viteLogo from '/vite.svg'
|
||||
import { setupCounter } from './counter.ts'
|
||||
import Reveal from 'reveal.js'
|
||||
import Markdown from 'reveal.js/plugin/markdown/markdown.esm.js'
|
||||
import RevealHighlight from 'reveal.js/plugin/highlight/highlight.esm.js'
|
||||
|
||||
document.querySelector<HTMLDivElement>('#app')!.innerHTML = `
|
||||
<div>
|
||||
<a href="https://vite.dev" target="_blank">
|
||||
<img src="${viteLogo}" class="logo" alt="Vite logo" />
|
||||
</a>
|
||||
<a href="https://www.typescriptlang.org/" target="_blank">
|
||||
<img src="${typescriptLogo}" class="logo vanilla" alt="TypeScript logo" />
|
||||
</a>
|
||||
<h1>Vite + TypeScript</h1>
|
||||
<div class="card">
|
||||
<button id="counter" type="button"></button>
|
||||
</div>
|
||||
<p class="read-the-docs">
|
||||
Click on the Vite and TypeScript logos to learn more
|
||||
</p>
|
||||
</div>
|
||||
`
|
||||
let deck = new Reveal({
|
||||
plugins: [Markdown, RevealHighlight],
|
||||
})
|
||||
|
||||
setupCounter(document.querySelector<HTMLButtonElement>('#counter')!)
|
||||
deck.initialize()
|
||||
|
||||
Reference in New Issue
Block a user