Sun Nov 16 2025
Tucker McKnight <tucker@pangolin.lan>
Remove typescript from frontend, go with plain JS
The added `export {}` statement at the bottom makes it unuseable
in browsers. Apparently the solution is to use webpack, which I'd
rather not do. Not many typescript features were being used in
the frontend anyway.
5dd869e68ccb84734c1a7dafe5d757709f1df124
1
2
const setCheckbox = (<any>window).setCheckbox
const currentTheme = (<any>window).currentTheme
1
2
const setCheckbox = window.setCheckbox
const currentTheme = window.currentTheme
17
const createClonePopover = (currentRepo: string) => {
17
const createClonePopover = () => {
32
const target = event.target as HTMLElement
32
const target = event.target
62
const originalInnerHtml = event.target.innerHTML
62
79
80
81
const bootstrap = (<any>window).bootstrap
const jsVars = (<any>window).jsVars
createClonePopover(jsVars.nav.repoName)
79
80
81
const bootstrap = window.bootstrap
const jsVars = window.jsVars
createClonePopover()
1
window['setMode'] = (mode: string) => {
1
window['setMode'] = (mode) => {
30
const link: any = document.getElementById("prism-theme")
30
const link = document.getElementById("prism-theme")
1
2
3
4
5
{
"compilerOptions": {
"outDir": "../dist/frontend",
}
}
1
2
2
cp -r frontend dist/
4
5
"build": "npm run schemas && npm run ts && npm run ts-frontend && npm run docs",
"ts-frontend": "npx tsc --project frontend",
4
"build": "npm run schemas && npm run ts && npm run docs",