3 Commits

Author SHA1 Message Date
ozan 87952aecef feat: platform admin role + branding templates
Build & Deploy Platform / build (push) Waiting to run
Platform admin:
- IsPlatformAdmin field on user model (DB migration v331)
- CLI: gitea admin user set-platform-admin, --platform-admin flag on create
- Token scope: read:platform / write:platform
- API + web routes restricted to platform admins
- Only @tinqs.com emails can be platform admins

Branding:
- brand_mark.tmpl, head_icons.tmpl templates
- ARCHITECTURE.md monorepo overview
2026-05-22 19:27:26 +01:00
wxiaoguang a068462ac0 Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
Lunny Xiao 29f149bd9f Move context from modules to services (#29440)
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
2024-02-27 08:12:22 +01:00