Commit 2fb6514
committed
Fix CSP violations - use CSS classes instead of inline styles
CSP with nonce blocks all inline style attributes and JS
element.style modifications. Replace inline style="width: X%"
with CSS classes (progress-w-15, progress-w-30, etc.) and
use class swapping in the Stimulus controller.1 parent c0ae94a commit 2fb6514
File tree
2 files changed
+22
-11
lines changed- assets/controllers
- templates/admin/update_manager
2 files changed
+22
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
350 | 353 | | |
351 | | - | |
| 354 | + | |
352 | 355 | | |
353 | | - | |
| 356 | + | |
354 | 357 | | |
355 | | - | |
| 358 | + | |
356 | 359 | | |
357 | 360 | | |
358 | 361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
54 | 63 | | |
55 | 64 | | |
56 | 65 | | |
| |||
87 | 96 | | |
88 | 97 | | |
89 | 98 | | |
90 | | - | |
91 | | - | |
| 99 | + | |
| 100 | + | |
92 | 101 | | |
93 | | - | |
94 | 102 | | |
95 | 103 | | |
96 | 104 | | |
| |||
0 commit comments