@extends('layouts.app') @section('title', '無障礙掃描') @section('content')
使用 Headless Chrome 實際渲染網頁後進行無障礙分析,支援兩種引擎:
HTML CodeSniffer(嚴格 WCAG 對應)· axe-core(Deque,業界標準)
支援 WCAG 2.x A / AA / AAA,可單頁或多頁爬蟲掃描。
| 目標網址 | 等級 | 引擎 | 頁 | 狀態 | E | W | N | @if($isAdmin)建立者 | @endif時間 | |
|---|---|---|---|---|---|---|---|---|---|---|
|
{{ $scan->project?->name ?? parse_url($scan->target_url, PHP_URL_HOST) }}
{{ Str::limit($scan->target_url, 60) }}
|
@php $stdColor = ['WCAG2A'=>'success','WCAG2AA'=>'primary','WCAG2AAA'=>'warning'][$scan->standard] ?? 'secondary'; @endphp {{ $scan->standardLabel() }} | @php $runner = $scan->runner ?? 'htmlcs'; @endphp @if($runner === 'axe') axe-core @elseif($runner === 'lighthouse') Lighthouse @if(isset($scan->summary['lh_score'])) {{ $scan->summary['lh_score'] }}/100 @endif @else htmlcs @endif | @if($scan->max_pages > 1) {{ $scan->pages_scanned ?? '—' }}/{{ $scan->max_pages }} @else 1 @endif | @if($scan->status==='done') 完成 @elseif($scan->status==='running') 執行中 @elseif($scan->status==='failed') 失敗 @else 待執行 @endif | {{ ($bt['error']??0) ?: '·' }} | {{ ($bt['warning']??0) ?: '·' }} | {{ ($bt['notice']??0) ?: '·' }} | @if($isAdmin){{ $scan->creator?->name ?? '—' }} | @endif{{ $scan->created_at->format('m-d H:i') }} | |
| @if($search) 找不到「{{ $search }}」的掃描記錄 @else 尚無掃描記錄,請點選「新增掃描」開始 @endif | ||||||||||