gitea/web_src/js/features
silverwind 46d7adefe0
Enable TypeScript `strictNullChecks` (#35843)
A big step towards enabling strict mode in Typescript.

There was definitely a good share of potential bugs while refactoring
this. When in doubt, I opted to keep the potentially broken behaviour.
Notably, the `DOMEvent` type is gone, it was broken and we're better of
with type assertions on `e.target`.

---------

Signed-off-by: silverwind <me@silverwind.io>
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-12-03 02:13:16 +07:00
..
admin Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
comp Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
captcha.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
citation.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
clipboard.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
code-frequency.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +07:00
codeeditor.ts Update JS deps, fix deprecations (#36040) 2025-11-27 23:58:10 +07:00
colorpicker.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
common-button.test.ts Fix form property assignment edge case (#35073) 2025-07-14 15:20:17 +07:00
common-button.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
common-fetch-action.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
common-form.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
common-issue-list.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +07:00
common-issue-list.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
common-organization.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
common-page.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
contributors.ts Add "n commits" link to contributors in contributors graph page (#32799) 2024-12-12 19:02:54 +07:00
copycontent.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
dashboard.ts Enable Typescript `noImplicitThis` (#33250) 2025-01-16 04:26:17 +07:00
dropzone.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
emoji.ts Improve html escape (#34911) 2025-07-01 21:44:05 +07:00
eventsource.sharedworker.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
file-fold.ts Mark parent directory as viewed when all files are viewed (#33958) 2025-04-15 22:35:22 +07:00
file-view.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
heatmap.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
imagediff.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
install.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
issue.ts Trivial fixes (#33304) 2025-01-17 08:55:02 +07:00
notification.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
oauth2-settings.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
org-team.ts Fix package link setting can only list limited repositories (#35394) 2025-09-11 01:50:17 +07:00
pull-view-file.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
recent-commits.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +07:00
repo-actions.ts Grey out expired artifact on Artifacts list (#34314) 2025-05-05 21:53:17 +07:00
repo-branch.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-code.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-commit.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-common.test.ts Fix some migration and repo name problems (#33986) 2025-03-24 20:26:58 +07:00
repo-common.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-diff-commit.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-diff-commitselect.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +07:00
repo-diff-filetree.ts Use `git diff-tree` for `DiffFileTree` on diff pages (#33514) 2025-02-28 00:58:25 +07:00
repo-diff.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-editor.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-findfile.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +07:00
repo-findfile.ts Add "Go to file", "Delete Directory" to repo file list page (#35911) 2025-11-30 11:58:15 +07:00
repo-graph.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-home.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-issue-content.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-issue-edit.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-issue-list.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-issue-pull.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-issue-sidebar-combolist.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-issue-sidebar.md Fix issue sidebar dropdown keyboard support (#33447) 2025-01-30 22:54:50 +07:00
repo-issue-sidebar.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-issue.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-legacy.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-migrate.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-migration.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-milestone.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-new.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-projects.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-release.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-search.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-settings-branches.test.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-settings-branches.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-settings.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-unicode-escape.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-view-file-tree.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
repo-wiki.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
sshkey-helper.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
stopwatch.ts fix(issue): Replace stopwatch toggle with explicit start/stop actions (#34818) 2025-06-25 07:22:58 +07:00
tablesort.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
tribute.ts Improve html escape (#34911) 2025-07-01 21:44:05 +07:00
user-auth-webauthn.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
user-auth.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
user-settings.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00