gitea/modules/templates
silverwind 0ec66b5380
Migrate from webpack to vite (#37002)
Replace webpack with Vite 8 as the frontend bundler. Frontend build is
around 3-4 times faster than before. Will work on all platforms
including riscv64 (via wasm).

`iife.js` is a classic render-blocking script in `<head>` (handles web
components/early DOM setup). `index.js` is loaded as a `type="module"`
script in the footer. All other JS chunks are also module scripts
(supported in all browsers since 2018).

Entry filenames are content-hashed (e.g. `index.C6Z2MRVQ.js`) and
resolved at runtime via the Vite manifest, eliminating the `?v=` cache
busting (which was unreliable in some scenarios like vscode dev build).

Replaces: https://github.com/go-gitea/gitea/pull/36896
Fixes: https://github.com/go-gitea/gitea/issues/17793
Signed-off-by: silverwind <me@silverwind.io>
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-03-29 10:24:30 +00:00
..
eval Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
scopedtmpl Refactor template render (#36438) 2026-01-24 05:11:49 +00:00
vars Refactor template render (#36438) 2026-01-24 05:11:49 +00:00
base.go Refactor template render (#36438) 2026-01-24 05:11:49 +00:00
helper.go Migrate from webpack to vite (#37002) 2026-03-29 10:24:30 +00:00
helper_test.go Fix various bugs (#36446) 2026-01-24 11:30:47 +00:00
htmlrenderer.go Fix CodeQL code scanning alerts (#36858) 2026-03-08 14:35:50 +00:00
htmlrenderer_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
mail.go Refactor template render (#36438) 2026-01-24 05:11:49 +00:00
page.go Refactor template render (#36438) 2026-01-24 05:11:49 +00:00
templates_bindata.go Refactor embedded assets and drop unnecessary dependencies (#34692) 2025-06-12 03:59:33 +00:00
templates_dynamic.go Refactor embedded assets and drop unnecessary dependencies (#34692) 2025-06-12 03:59:33 +00:00
util_avatar.go fix(repo): unify DEFAULT_SHOW_FULL_NAME output in templates and dropdown (#36597) 2026-03-04 21:23:17 +08:00
util_date.go Use `relative-time` to render absolute dates (#36238) 2026-02-16 10:58:04 +00:00
util_date_test.go Use `relative-time` to render absolute dates (#36238) 2026-02-16 10:58:04 +00:00
util_dict.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
util_format.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
util_format_test.go Fix some overflows in test (#35315) 2025-08-20 15:20:22 +00:00
util_json.go enforce nolint scope (#34851) 2025-06-27 07:59:55 +02:00
util_misc.go Load `mentionValues` asynchronously (#36739) 2026-03-07 12:37:37 -08:00
util_render.go Bump golangci-lint to 2.7.2, enable modernize stringsbuilder (#36180) 2025-12-17 20:50:53 +00:00
util_render_comment.go Improve timeline entries for WIP prefix changes in pull requests (#36518) 2026-02-05 05:57:08 +00:00
util_render_comment_test.go Improve timeline entries for WIP prefix changes in pull requests (#36518) 2026-02-05 05:57:08 +00:00
util_render_test.go Improve `labels-list` rendering (#34846) 2025-06-27 23:12:25 +08:00
util_slice.go
util_string.go Refactor "string truncate" (#32984) 2024-12-26 11:56:03 +08:00
util_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00