Remove the Rust/WASM crate and its build step
Nothing live used it: main.js awaited the wasm init() on every page load, but the only consumer, components/util/wasm/AutoScroll.vue, was never imported. Dropping it removes the rust:slim + wasm-pack stage from the vue image, the two Vite plugins that existed only for it, and the src/wasm/ guard in `make check-vue`, so a fresh clone builds without a Rust toolchain. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -15,9 +15,8 @@ add_header Strict-Transport-Security "max-age=63072000; includeSubDomains" alway
|
||||
# locked-down CSP by declaring Content-Security-Policy again themselves
|
||||
# (a later add_header of the same name within one response wins).
|
||||
#
|
||||
# ponytail: no site-wide CSP from nginx here. The SPA needs
|
||||
# 'wasm-unsafe-eval' for its Rust module, Gitea (proxied at /gitea/) relies
|
||||
# on inline <script> blocks its own templates generate, so a shared
|
||||
# ponytail: no site-wide CSP from nginx here. Gitea (proxied at /gitea/)
|
||||
# relies on inline <script> blocks its own templates generate, so a shared
|
||||
# script-src would need 'unsafe-inline' — which voids almost all of CSP's
|
||||
# value. If a real CSP matters again, give the SPA document its own
|
||||
# script-src 'self' 'wasm-unsafe-eval' location, separate from Gitea.
|
||||
# script-src 'self' location, separate from Gitea.
|
||||
|
||||
Reference in New Issue
Block a user