aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/repo-editor.ts
Commit message (Collapse)AuthorAgeFilesLines
* Fix areYouSure confirm (#32941)wxiaoguang13 days1-2/+2
| | | See the comment
* Fix remaining typescript issues, enable `tsc` (#32840)silverwind2024-12-161-1/+1
| | | | | | | | | | | | Fixes 79 typescript errors. Discovered at least two bugs in `notifications.ts`, and I'm pretty sure this feature was at least partially broken and may still be, I don't really know how to test it. After this, only like ~10 typescript errors remain in the codebase but those are harder to solve. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix file editor & preview (#32706)wxiaoguang2024-12-041-43/+38
| | | | | | Fix a regression caused by jQuery removal (`renderPreviewPanelContent`) And simplify the file editor, it doesn't need to be that complex. And remove jQuery code.
* Refactor markdown editor and use it for milestone description editor (#32688)wxiaoguang2024-12-041-5/+3
| | | | | | | | | | Refactor markdown editor to clarify its "preview" behavior and remove jQuery code. Close #15045 --------- Co-authored-by: silverwind <me@silverwind.io>
* Refactor language menu and dom utils (#32450)wxiaoguang2024-11-081-12/+12
| | | | | 1. Make `queryElem*` functions could correctly handle TS types 2. Remove some legacy jQuery $ calls (introduce fomanticQuery for Fomantic UI only) 3. Fix some TS typing problems
* Notify the user when the file path contains leading or trailing spaces and ↵charles2024-09-241-5/+44
| | | | | fix the error message for invalid file names. (#31507) close #31478
* Enable `no-jquery/no-parse-html-literal` and fix violation (#31684)silverwind2024-07-271-4/+8
| | | Tested it, path segment creation works just like before.
* Convert frontend code to typescript (#31559)silverwind2024-07-071-0/+167
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.