1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 18:14:28 +00:00
gitea/routers/web/repo
wxiaoguang 3f9c3e7bc3
Refactor render system (#32492)
There were too many patches to the Render system, it's really difficult
to make further improvements.

This PR clears the legacy problems and fix TODOs.

1. Rename `RenderContext.Type` to `RenderContext.MarkupType` to clarify
its usage.
2. Use `ContentMode` to replace `meta["mode"]` and `IsWiki`, to clarify
the rendering behaviors.
3. Use "wiki" mode instead of "mode=gfm + wiki=true"
4. Merge `renderByType` and `renderByFile`
5. Add more comments

----

The problem of "mode=document": in many cases it is not set, so many
non-comment places use comment's hard line break incorrectly
2024-11-14 05:02:11 +00:00
..
actions Fix missing signature key error when pulling Docker images with SERVE_DIRECT enabled (#32365) 2024-10-31 15:28:25 +00:00
setting Move AddCollabrator and CreateRepositoryByExample to service layer (#32419) 2024-11-07 11:28:11 +08:00
activity.go Replace DateTime with DateUtils (#32383) 2024-11-02 04:08:28 +00:00
attachment.go Fix missing signature key error when pulling Docker images with SERVE_DIRECT enabled (#32365) 2024-10-31 15:28:25 +00:00
blame.go Refactor DateUtils and merge TimeSince (#32409) 2024-11-04 11:30:00 +00:00
branch.go Support repo license (#24872) 2024-10-01 15:25:08 -04:00
cherry_pick.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
code_frequency.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
commit.go improve performance of diffs (#32393) 2024-11-02 11:29:37 +08:00
compare.go Refactor sidebar assignee&milestone&project selectors (#32465) 2024-11-11 04:07:54 +08:00
contributors.go Fix Activity Page Contributors dropdown (#31264) 2024-06-06 10:28:33 +08:00
download.go Fix missing signature key error when pulling Docker images with SERVE_DIRECT enabled (#32365) 2024-10-31 15:28:25 +00:00
editor_test.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
editor.go Notify the user when the file path contains leading or trailing spaces and fix the error message for invalid file names. (#31507) 2024-09-24 19:06:52 +00:00
find.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
fork.go Use db.ListOptionsAll instead of db.ListOptions{ListAll: true} (#29995) 2024-03-22 13:53:52 +01:00
githttp_test.go Fix http protocol auth (#27875) 2023-11-02 22:14:33 +08:00
githttp.go Fix git error handling (#32401) 2024-11-02 11:20:22 +00:00
helper.go Add option to filter board cards by labels and assignees (#31999) 2024-09-12 03:53:40 +00:00
issue_comment.go Move some functions from issue.go to standalone files (#32468) 2024-11-11 04:28:54 +00:00
issue_content_history.go Refactor DateUtils and merge TimeSince (#32409) 2024-11-04 11:30:00 +00:00
issue_dependency.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
issue_label_test.go Refactor sidebar label selector (#32460) 2024-11-10 08:26:42 +00:00
issue_label.go Refactor sidebar label selector (#32460) 2024-11-10 08:26:42 +00:00
issue_list.go Move some functions from issue.go to standalone files (#32468) 2024-11-11 04:28:54 +00:00
issue_lock.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
issue_new.go Move some functions from issue.go to standalone files (#32468) 2024-11-11 04:28:54 +00:00
issue_page_meta.go Move some functions from issue.go to standalone files (#32468) 2024-11-11 04:28:54 +00:00
issue_pin.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
issue_poster.go Move some functions from issue.go to standalone files (#32468) 2024-11-11 04:28:54 +00:00
issue_stopwatch.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
issue_suggestions.go Fix suggestions for issues (#32380) 2024-10-30 20:06:36 +00:00
issue_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
issue_timetrack.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
issue_view.go Move some functions from issue.go to standalone files (#32468) 2024-11-11 04:28:54 +00:00
issue_watch.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
issue.go Move some functions from issue.go to standalone files (#32468) 2024-11-11 04:28:54 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
middlewares.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
migrate.go Fix javascript error when an anonymous user visiting migration page (#32144) 2024-10-02 04:37:16 +00:00
milestone.go Fix milestone deadline and date related problems (#32339) 2024-11-05 07:46:40 +00:00
packages.go Remove AddParamIfExist(AddParam) (#29841) 2024-03-16 12:07:56 +00:00
patch.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
projects_test.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
projects.go Add option to filter board cards by labels and assignees (#31999) 2024-09-12 03:53:40 +00:00
pull_review_test.go Fix template error when comment review doesn't exist (#29888) 2024-03-19 04:19:48 +00:00
pull_review.go Move some functions from issue.go to standalone files (#32468) 2024-11-11 04:28:54 +00:00
pull.go Refactor sidebar assignee&milestone&project selectors (#32465) 2024-11-11 04:07:54 +08:00
recent_commits.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
release_test.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
release.go Support repo license (#24872) 2024-10-01 15:25:08 -04:00
render.go Fix rendered wiki page link (#31398) 2024-06-18 03:09:20 +00:00
repo.go Fix missing signature key error when pulling Docker images with SERVE_DIRECT enabled (#32365) 2024-10-31 15:28:25 +00:00
search_test.go Improve grep search (#30843) 2024-05-03 09:13:48 +00:00
search.go Improve grep search (#30843) 2024-05-03 09:13:48 +00:00
topic.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
treelist.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
view_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
view.go Refactor render system (#32492) 2024-11-14 05:02:11 +00:00
wiki_test.go Fix raw wiki links (#31825) 2024-08-16 20:40:51 +08:00
wiki.go Refactor render system (#32492) 2024-11-14 05:02:11 +00:00