Tucker McKnight <tucker@pangolin.lan> | Sun Nov 16 2025
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.1 2
const setCheckbox = (<any>window).setCheckbox
const currentTheme = (<any>window).currentTheme1 2
const setCheckbox = window.setCheckbox
const currentTheme = window.currentTheme17
const createClonePopover = (currentRepo: string) => {17
const createClonePopover = () => {32
const target = event.target as HTMLElement32
const target = event.target62
const originalInnerHtml = event.target.innerHTML62
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 3 4 5
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 5
"build": "npm run schemas && npm run ts && npm run docs",