Handle all options of x-aligned-from
This commit is contained in:
parent
3b301a415f
commit
372c9c5153
4 changed files with 14 additions and 8 deletions
|
|
@ -760,7 +760,7 @@ components:
|
|||
properties:
|
||||
result:
|
||||
type: string
|
||||
enum: [pass, fail, invalid, missing, none, neutral, softfail, temperror, permerror, declined]
|
||||
enum: [pass, fail, invalid, missing, none, neutral, softfail, temperror, permerror, declined, domain_pass, orgdomain_pass]
|
||||
description: Authentication result
|
||||
example: "pass"
|
||||
domain:
|
||||
|
|
|
|||
|
|
@ -16,10 +16,16 @@
|
|||
function getAuthResultClass(result: string, noneIsFail: boolean): string {
|
||||
switch (result) {
|
||||
case "pass":
|
||||
case "domain_pass":
|
||||
case "orgdomain_pass":
|
||||
return "text-success";
|
||||
case "error":
|
||||
case "fail":
|
||||
case "missing":
|
||||
case "invalid":
|
||||
case "null":
|
||||
case "null_smtp":
|
||||
case "null_header":
|
||||
return "text-danger";
|
||||
case "softfail":
|
||||
case "neutral":
|
||||
|
|
@ -36,12 +42,18 @@
|
|||
function getAuthResultIcon(result: string, noneIsFail: boolean): string {
|
||||
switch (result) {
|
||||
case "pass":
|
||||
case "domain_pass":
|
||||
case "orgdomain_pass":
|
||||
return "bi-check-circle-fill";
|
||||
case "fail":
|
||||
return "bi-x-circle-fill";
|
||||
case "softfail":
|
||||
case "neutral":
|
||||
case "invalid":
|
||||
case "null":
|
||||
case "error":
|
||||
case "null_smtp":
|
||||
case "null_header":
|
||||
return "bi-exclamation-circle-fill";
|
||||
case "missing":
|
||||
return "bi-dash-circle-fill";
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
headerAnalysis: HeaderAnalysis;
|
||||
headerGrade?: string;
|
||||
headerScore?: number;
|
||||
xAlignedFrom?: AuthResult;
|
||||
}
|
||||
|
||||
let { dmarcRecord, headerAnalysis, headerGrade, headerScore, xAlignedFrom }: Props = $props();
|
||||
|
|
@ -62,11 +61,7 @@
|
|||
<div class="card mb-3" id="domain-alignment">
|
||||
<div class="card-header">
|
||||
<h5 class="mb-0">
|
||||
{#if xAlignedFrom}
|
||||
<i class="bi {xAlignedFrom.result == "pass" ? 'bi-check-circle-fill text-success' : 'bi-x-circle-fill text-danger'}"></i>
|
||||
{:else}
|
||||
<i class="bi {headerAnalysis.domain_alignment.aligned ? 'bi-check-circle-fill text-success' : headerAnalysis.domain_alignment.relaxed_aligned ? 'bi-check-circle text-info' : 'bi-x-circle-fill text-danger'}"></i>
|
||||
{/if}
|
||||
<i class="bi {headerAnalysis.domain_alignment.aligned ? 'bi-check-circle-fill text-success' : headerAnalysis.domain_alignment.relaxed_aligned ? 'bi-check-circle text-info' : 'bi-x-circle-fill text-danger'}"></i>
|
||||
Domain Alignment
|
||||
</h5>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -335,7 +335,6 @@
|
|||
headerAnalysis={report.header_analysis}
|
||||
headerGrade={report.summary?.header_grade}
|
||||
headerScore={report.summary?.header_score}
|
||||
xAlignedFrom={report.authentication?.x_aligned_from}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue