aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/htmx.ts
Commit message (Collapse)AuthorAgeFilesLines
* Update JS and PY deps, misc tweaks (#33903)silverwind2025-03-161-1/+1
| | | | | | | | | - Update all updateable dependencies - Add a few more unupgradable ones to updates blocklist - Adapt to breaking changes - Update to typescript 5.8, enable `erasableSyntaxOnly` which necessitated a change because of forbidden syntax - Misc cleanups - Tested htmx, easymde, swagger, chart.js
* Enable Typescript `strictFunctionTypes` (#32911)silverwind2024-12-221-2/+2
| | | | | | | | 1. Enable [strictFunctionTypes](https://www.typescriptlang.org/tsconfig/#strictFunctionTypes) 2. Introduce `DOMEvent` helper type which sets `e.target`. Surely not totally correct with that `Partial` but seems to work. 3. Various type-related refactors, change objects in `eventsource.sharedworker.ts` to `Map`.
* Fix a number of Typescript issues (#31877)silverwind2024-08-281-4/+5
| | | | Typescript error count is reduced from 633 to 540 with this. No runtime changes except in test code.
* Add types for js globals (#31586)silverwind2024-07-111-2/+2
| | | | Adds types for `window.config` and jQuery/htmx globals, eliminating 48 `tsc` errors.
* Convert frontend code to typescript (#31559)silverwind2024-07-071-0/+20
None of the frontend js/ts files was touched besides these two commands (edit: no longer true, I touched one file in https://github.com/go-gitea/gitea/pull/31559/commits/61105d0618e285d97e95044bfb64415f364a4526 because of a deprecation that was not showing before the rename). `tsc` currently reports 778 errors, so I have disabled it in CI as planned. Everything appears to work fine.