forgejo/web_src/js
silverwind 3bdca4615c
[PORT] Fix a number of typescript issues (gitea#32308)
- Prefer
[window.location.assign](https://developer.mozilla.org/en-US/docs/Web/API/Location/assign)
over assigning to
[window.location](https://developer.mozilla.org/en-US/docs/Web/API/Window/location)
which typescript does not like. This works in all browsers including
PaleMoon.
- Fix all typescript issues in `web_src/js/webcomponents`, no behaviour
changes.
- ~~Workaround bug in `@typescript-eslint/no-unnecessary-type-assertion`
rule.~~
- Omit vendored file from type checks.
- `tsc` error count is reduce by 53 with these changes.

---
Conflict resolution: Choose our version.
Done differently: Everything related to typescript types isn't ported.
Use `window.location.href` instead of `String(window.location)`, thanks
@viceice!

(cherry picked from commit 810782302652d73c4f7249c4c3df8a7e85bae5f0)
2024-11-04 09:15:06 +01:00
..
components [PORT] Fix a number of typescript issues (gitea#32308) 2024-11-04 09:15:06 +01:00
features [PORT] Fix a number of typescript issues (gitea#32308) 2024-11-04 09:15:06 +01:00
markup fix unchecking check boxes like [X] 2024-07-28 14:18:34 +00:00
modules
render
standalone [CHORE] Proper chunking for swagger 2024-08-22 15:48:05 +02:00
utils chore: add new lint rules 2024-10-23 08:10:18 +02:00
vendor
webcomponents [PORT] Fix a number of typescript issues (gitea#32308) 2024-11-04 09:15:06 +01:00
bootstrap.js
bootstrap.test.js
htmx.js
index.js feat: use combo markdown editor for milestone description 2024-10-22 19:58:44 +02:00
jquery.js
svg.js ui: update pull request icons (#4455) 2024-07-16 14:38:46 +00:00
svg.test.js
utils.js chore: add new lint rules 2024-10-23 08:10:18 +02:00
utils.test.js test(js): false negative in sleep test 2024-07-02 19:35:35 +02:00
vitest.setup.js