15 changed files with 18 additions and 174 deletions
@ -1,10 +0,0 @@
|
||||
--- |
||||
ignore: |
||||
# devise-two-factor advisory about brute-forcing TOTP |
||||
# We have rate-limits on authentication endpoints in place (including second |
||||
# factor verification) since Mastodon v3.2.0 |
||||
- CVE-2024-0227 |
||||
# devise-two-factor advisory about generated secrets being weaker than expected |
||||
# We call `generate_otp_secret` ourselves with a requested length of 32 characters, |
||||
# which exceeds the recommended remediation of 26 characters, so we're safe |
||||
- CVE-2024-8796 |
||||
@ -1,21 +0,0 @@
|
||||
export function svgSelect(light, dark) { |
||||
|
||||
var svgbg = window.getComputedStyle(document.getElementsByClassName("drawer__inner")[0], null).getPropertyValue("background-color"); |
||||
var rgbArray = ((svgbg.replace(/[^0-9,]/g, "")).split(",")).map(Number).map(x => x/255); |
||||
|
||||
for ( var i = 0; i < rgbArray.length; ++i ) { |
||||
if ( rgbArray[i] <= 0.03928 ) { |
||||
rgbArray[i] = rgbArray[i] / 12.92 |
||||
} else { |
||||
rgbArray[i] = Math.pow( ( rgbArray[i] + 0.055 ) / 1.055, 2.4); |
||||
} |
||||
} |
||||
|
||||
var luminance = 0.2126 * rgbArray[0] + 0.7152 * rgbArray[1] + 0.0722 * rgbArray[2]; |
||||
|
||||
if ( luminance <= 0.179 ) { |
||||
return light; |
||||
} else { |
||||
return dark; |
||||
} |
||||
} |
||||
@ -1,12 +0,0 @@
|
||||
%table |
||||
%thead |
||||
%tr |
||||
%th= t('about.unavailable_content_description.domain') |
||||
%th= t('about.unavailable_content_description.reason') |
||||
%tbody |
||||
- domain_blocks.each do |domain_block| |
||||
%tr |
||||
%td.nowrap |
||||
%span{ title: "SHA-256: #{domain_block.domain_digest}" }= domain_block.public_domain |
||||
%td |
||||
= domain_block.public_comment if display_blocks_rationale? |
||||
Loading…
Reference in new issue