gitea/services
silverwind 63266ba036
Fix theme loading in development (#36605)
Fixes: https://github.com/go-gitea/gitea/issues/36543

When running `make watch`, the backend may start before webpack finishes
building CSS theme files. Since themes were loaded once via sync.Once,
they would never reload, breaking the theme selector and showing a
persistent error on the admin page.

In dev mode, themes are now reloaded from disk on each access so they
become available as soon as webpack finishes. Production behavior is
unchanged where themes are loaded once and cached via sync.Once.

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-02-17 21:46:42 +00:00
..
actions Enable `nilnil` linter for new code (#36591) 2026-02-16 09:57:18 +00:00
agit Refactor git command stderr handling (#36402) 2026-01-18 15:10:33 -08:00
asymkey Some refactors about GetMergeBase (#36186) 2026-01-17 11:22:09 -08:00
attachment fix attachment file size limit in server backend (#35519) 2025-10-21 15:07:11 +00:00
auth Enable `nilnil` linter for new code (#36591) 2026-02-16 09:57:18 +00:00
automerge Remove unnecessary function parameter (#35765) 2025-10-31 21:56:08 -07:00
automergequeue Fix various trivial problems (#35714) 2025-10-21 13:19:29 +08:00
context Allow configuring default PR base branch (fixes #36412) (#36425) 2026-02-07 01:34:29 +00:00
contexttest Enable `nilnil` linter for new code (#36591) 2026-02-16 09:57:18 +00:00
convert BUG: Fix workflow run jobs API returning null steps (#36603) 2026-02-13 08:16:43 +00:00
cron Refactor git command context & pipeline (#36406) 2026-01-21 01:35:14 +00:00
doctor Refactor git command stderr handling (#36402) 2026-01-18 15:10:33 -08:00
externalaccount Refactor OpenIDConnect to support SSH/FullName sync (#34978) 2025-07-10 18:35:59 +00:00
feed Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
forms Allow configuring default PR base branch (fixes #36412) (#36425) 2026-02-07 01:34:29 +00:00
git Fix bug when list pull request commits (#36485) 2026-01-30 18:46:34 +00:00
gitdiff Enable `nilnil` linter for new code (#36591) 2026-02-16 09:57:18 +00:00
indexer Update issue indexer after merging a PR (#30715) 2024-05-08 14:45:15 +00:00
issue Enable `nilnil` linter for new code (#36591) 2026-02-16 09:57:18 +00:00
lfs Refactor ActionsTaskID (#36503) 2026-01-31 22:01:08 -08:00
mailer Exclude cancelled runs from failure-only email notifications (#36569) 2026-02-15 23:47:02 +00:00
markup Refactor template render (#36438) 2026-01-24 05:11:49 +00:00
migrations Update to go 1.26.0 and golangci-lint 2.9.0 (#36588) 2026-02-11 18:37:13 +01:00
mirror Fix mirror sync parser and fix mirror messages (#36504) 2026-02-11 00:16:05 +00:00
notify Don't send trigger for a pending review's comment create/update/delete (#34928) 2025-07-03 10:35:45 +08:00
oauth2_provider Make OAuth2 issuer configurable (#35915) 2025-11-10 23:45:01 +08:00
org Add more check for stopwatch read or list (#36340) 2026-01-13 13:13:39 +00:00
packages Enable `nilnil` linter for new code (#36591) 2026-02-16 09:57:18 +00:00
projects Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
pull Enable `nilnil` linter for new code (#36591) 2026-02-16 09:57:18 +00:00
release Refactor git command stderr handling (#36402) 2026-01-18 15:10:33 -08:00
repository Enable `nilnil` linter for new code (#36591) 2026-02-16 09:57:18 +00:00
secrets Fix various bugs (#35684) 2025-10-19 00:37:50 +08:00
task Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
uinotification Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
user Release attachments must belong to the intended repo (#36347) 2026-01-14 11:37:53 -08:00
versioned_migration Remove wrong "git.DefaultContext" (#35364) 2025-08-27 16:31:21 +00:00
webhook Refactor ActionsTaskID (#36503) 2026-01-31 22:01:08 -08:00
webtheme Fix theme loading in development (#36605) 2026-02-17 21:46:42 +00:00
wiki Unify repo names in system notices (#36491) 2026-02-01 17:06:57 +08:00