0
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-19 00:30:19 +01:00
forgejo/modules
Lunny Xiao 894d9b2836
Move context from modules to services ()
Since `modules/context` has to depend on `models` and many other
packages, it should be moved from `modules/context` to
`services/context` according to design principles. There is no logic
code change on this PR, only move packages.

- Move `code.gitea.io/gitea/modules/context` to
`code.gitea.io/gitea/services/context`
- Move `code.gitea.io/gitea/modules/contexttest` to
`code.gitea.io/gitea/services/contexttest` because of depending on
context
- Move `code.gitea.io/gitea/modules/upload` to
`code.gitea.io/gitea/services/context/upload` because of depending on
context

(cherry picked from commit 29f149bd9f517225a3c9f1ca3fb0a7b5325af696)

Conflicts:
	routers/api/packages/alpine/alpine.go
	routers/api/v1/repo/issue_reaction.go
	routers/install/install.go
	routers/web/admin/config.go
	routers/web/passkey.go
	routers/web/repo/search.go
	routers/web/repo/setting/default_branch.go
	routers/web/user/home.go
	routers/web/user/profile.go
	tests/integration/editor_test.go
	tests/integration/integration_test.go
	tests/integration/mirror_push_test.go
	trivial context conflicts
	also modified all other occurrences in Forgejo specific files
2024-03-06 12:10:43 +08:00
..
actions Improve the issue_comment workflow trigger event () 2024-02-26 22:30:26 +01:00
activitypub
analyze
assetfs
auth Refactor locale&string&template related code () 2024-02-16 15:20:52 +01:00
avatar
base [FEAT] Show follow symlink button 2024-03-02 17:58:09 +01:00
cache
charset [FEAT] Enable ambiguous character detection in configured contexts 2024-02-23 13:12:17 +01:00
container Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
csv Refactor locale&string&template related code () 2024-02-16 15:20:52 +01:00
emoji
eventsource
generate Port "Use general token signing secret" 2024-02-19 20:49:37 +01:00
git [FEAT] Show follow symlink button 2024-03-02 17:58:09 +01:00
gitgraph
gitrepo
graceful Suggest to use Type=simple for systemd service () 2024-01-07 15:18:04 +00:00
hcaptcha
highlight
hostmatcher
html
httpcache
httplib
indexer Add io.Closer guidelines () 2024-02-26 22:30:27 +01:00
issue/template
json
label
lfs
log
markup [BUG] Restrict when to make link absolute in markdown 2024-02-19 20:56:00 +01:00
mcaptcha
metrics
migration Refactor locale&string&template related code () 2024-02-16 15:20:52 +01:00
nosql
optional Make optional.Option[T] type serializable () 2024-02-26 22:30:26 +01:00
options
packages
paginator
pprof
private
process
proxy
proxyprotocol
public
queue [CI] disable redis test, no redis server yet in CI 2024-02-05 13:33:58 +01:00
recaptcha
references Allow 's in mentions 2024-02-27 18:26:59 +00:00
regexplru Upgrade go dependencies () 2023-07-14 11:00:31 +08:00
repository Move migration functions to services layer () 2024-03-04 07:10:53 +01:00
secret
session Next round of db.DefaultContext refactor () 2023-09-16 14:39:12 +00:00
setting Merge pull request 'Disabling Stars should disable the routes too' () from algernon/forgejo:stars/disable-routes into forgejo 2024-02-27 21:24:25 +00:00
sitemap
ssh
storage
structs Allow instance-wide disabling of forking 2024-02-25 12:00:17 +01:00
svg
sync
system
templates Fix mail template error () 2024-03-06 12:10:43 +08:00
test
testlogger
timeutil Refactor locale&string&template related code () 2024-02-16 15:20:52 +01:00
translation Improve TrHTML and add more tests () 2024-02-19 22:58:33 +01:00
turnstile
typesniffer
updatechecker
uri
user
util Add io.Closer guidelines () 2024-02-26 22:30:27 +01:00
validation
web Refactor locale&string&template related code () 2024-02-16 15:20:52 +01:00
webhook