mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[PR #391] [MERGED] refactor: no inline scripts in HTML #599
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/sigoden/dufs/pull/391
Author: @need4swede
Created: 5/30/2024
Status: ✅ Merged
Merged: 5/31/2024
Merged by: @sigoden
Base:
main← Head:no-inline-scripts📝 Commits (7)
3f4a775Moved 'ready' func call from index.html86a91dcMoved <script> out from index.html8ee0fb0moved inline-styling to css811f1b7minor formatting changes6e4da5fchanged ratio from const to letcf19124refactorcd3c807fix tests📊 Changes
6 files changed (+81 additions, -59 deletions)
View changed files
📝
assets/index.css(+2 -2)📝
assets/index.html(+4 -8)📝
assets/index.js(+60 -44)📝
tests/assets.rs(+1 -1)📝
tests/fixtures.rs(+1 -1)📝
tests/utils.rs(+13 -3)📄 Description
Moved all inline <script> tags out from HTML and into index.js
This was done to adhere to strict Content-Security-Policy protocols that disallow inline-scripts.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.