f4d7701189
Change function description comments to tsdoc style ( #35185 )
...
1. change function comments to the minimal [tsdoc](https://tsdoc.org/ )
style. This has the benefit of making editors show the doc string in
tooltips when the function is hovered:
<img width="521" height="110" alt="image"
src="https://github.com/user-attachments/assets/b966f4f1-8239-433a-a456-5bd5c05d69ef "
/>
2. disable eslint `multiline-comment-style` as it conflicts with tsdoc.
---------
Signed-off-by: silverwind <me@silverwind.io >
2025-07-31 15:59:34 -07:00
091b3e696d
Tweak eslint config, fix new issues ( #35019 )
...
1. Enable
[`@typescript-eslint/no-unnecessary-type-conversion`](https://typescript-eslint.io/rules/no-unnecessary-type-conversion/ ),
I think the two cases that were hit are safe cases.
2. Disable `no-new-func`, `@typescript-eslint/no-implied-eval` does the
same but better.
2025-07-10 08:28:25 +00:00
1d4ad5aa2b
Improve html escape ( #34911 )
...
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
cron-translations / crowdin-pull (push) Has been skipped
drop "escape-goat"
2025-07-01 21:44:05 +08:00
7de114a332
Rework delete org and rename org UI ( #34762 )
...
# What's the problem of the original implementation
Renaming organization will mix with organization's information change
make the operation difficult to keep consistent.
This PR created a danger zone like what's repository setting. It also
moved organization's `rename` and `delete` operations to this zone. The
original updating repository will not change the name any more.
This is also a step to extract the `updaterepository` function
completely.
Before:


After:




---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-06-21 18:21:48 +00:00
8a53a39c42
Fix a number of typescript errors ( #32773 )
...
Fixes 96 typescript errors. Behaviour changes are commented below.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-11 09:29:04 +01:00
930ca92d7c
Add types to fetch,toast,bootstrap,svg ( #31627 )
...
Reduce `tsc` error count by 53. None of the changes has any runtime
effect.
2024-07-25 23:31:24 +00:00
5791a73e75
Convert frontend code to typescript ( #31559 )
...
None of the frontend js/ts files was touched besides these two commands
(edit: no longer true, I touched one file in
61105d0618
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.
2024-07-07 15:32:30 +00:00