aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/repo-editor.ts
Commit message (Collapse)AuthorAgeFilesLines
* Improve html escape (#34911)wxiaoguang11 days1-6/+7
| | | drop "escape-goat"
* Refactor editor (#34780)wxiaoguang2025-06-211-15/+13
| | | A complete rewrite
* Allow renaming/moving binary/LFS files in the UI (#34350)bytedream2025-06-161-23/+24
| | | | | | | | | | | | | | | | | | | Adds the ability to rename/move binary files like binary blobs or images and files that are too large in the web ui. This was purposed in #24722, along with the ability edit images via an upload of a new image, which I didn't implement here (could be done in a separate PR). Binary file content: ![binary](https://github.com/user-attachments/assets/61d9ff71-25d3-4832-9288-452cdefc7283) File too large: ![toolarge](https://github.com/user-attachments/assets/3b42dbd0-e76a-4c3c-92d2-52ebffedea64) GitHub does the same (I've copied the text from there): ![gh](https://github.com/user-attachments/assets/e1499813-fb71-4544-9d58-086046a5f13e)
* Refactor markup and pdf-viewer to use new init framework (#33772)Kerwin Bryant2025-03-031-3/+1
| | | | | | | | | | | | | | | | 1. Add some "render-content" classes to "markup" elements when the content is rendered 2. Use correct "markup" wrapper for "preview" (but not set that class on the tab) 3. Remove incorrect "markup" class from LFS file view, because there is no markup content * "edit-diff" is also removed because it does nothing 5. Use "initPdfViewer" for PDF viewer 6. Remove incorrect "content" class from milestone markup 7. Init all ".markup" elements by new init framework --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Enable Typescript `noImplicitAny` (#33322)silverwind2025-01-221-1/+1
| | | | | | | Enable `noImplicitAny` and fix all issues. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix upload file form (#33230)wxiaoguang2025-01-131-3/+5
| | | Fix #33228
* Fix areYouSure confirm (#32941)wxiaoguang2024-12-211-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.