()
| 8071 | d.routers.map(r => { |
| 8072 | const badge = r.baseline ? '<span class="text-green-400">✓ known</span>' : '<span class="text-amber-300">? new</span>'; |
| 8073 | const auth = r.auth ? '<span class="text-green-400">yes</span>' : '<span class="text-amber-300">none</span>'; |
| 8074 | return `<tr class="border-t border-slate-800"> |
| 8075 | <td class="px-2 py-1 font-mono ${r.baseline ? '' : 'text-amber-300'}">${escapeHtml(r.src)}</td> |
| 8076 | <td class="px-2 py-1 font-mono">${(r.as || []).join(', ') || '?'}</td> |
| 8077 | <td class="px-2 py-1 text-gray-400">${escapeHtml(r.af)}</td> |
| 8078 | <td class="px-2 py-1">${auth}</td> |
| 8079 | <td class="px-2 py-1">${badge}</td> |
| 8080 | </tr>`; |
| 8081 | }).join('') + |
| 8082 | '</tbody></table>'; |
| 8083 | } |
| 8084 | if ((d.prefixes || []).length) { |
| 8085 | html += '<p class="text-xs uppercase text-gray-400 mt-2 mb-1">Advertised prefixes (' + d.prefixes.length + ')</p>' + |
| 8086 | '<table class="min-w-full text-xs text-gray-300 whitespace-nowrap"><thead>' + |
no test coverage detected