[CodeFactor] Apply fixes

This commit is contained in:
codefactor-io 2024-04-29 10:27:16 +00:00
parent c1aa6faa2b
commit a8c1825c94
No known key found for this signature in database
GPG key ID: B66B2D63282C190F

View file

@ -40,26 +40,27 @@ function pushToPing(origin) {
); );
} }
function getActivityInfo(activityType) { function getActivityInfo(activityType) {
switch (activityType) { switch (activityType) {
case "ARQ_SESSION_INFO": case "ARQ_SESSION_INFO":
return { iconClass: "bi bi-info-circle", description: activityType }; return { iconClass: "bi bi-info-circle", description: activityType };
case "ARQ_SESSION_OPEN": case "ARQ_SESSION_OPEN":
return { iconClass: "bi bi-link", description: activityType }; return { iconClass: "bi bi-link", description: activityType };
case "ARQ_SESSION_OPEN_ACK": case "ARQ_SESSION_OPEN_ACK":
return { iconClass: "bi bi-link", description: activityType }; return { iconClass: "bi bi-link", description: activityType };
case "QRV": case "QRV":
return { iconClass: "bi bi-person-raised-hand", description: activityType }; return {
case "CQ": iconClass: "bi bi-person-raised-hand",
return { iconClass: "bi bi-megaphone", description: activityType }; description: activityType,
case "BEACON": };
return { iconClass: "bi bi-globe", description: activityType }; case "CQ":
default: return { iconClass: "bi bi-megaphone", description: activityType };
return { iconClass: "", description: activityType }; case "BEACON":
} return { iconClass: "bi bi-globe", description: activityType };
default:
return { iconClass: "", description: activityType };
} }
}
</script> </script>
<template> <template>
<div class="card h-100"> <div class="card h-100">
@ -106,10 +107,10 @@ function pushToPing(origin) {
<td>{{ getMaidenheadDistance(item.gridsquare) }} km</td> <td>{{ getMaidenheadDistance(item.gridsquare) }} km</td>
<td> <td>
<i <i
:class="getActivityInfo(item.activity_type).iconClass" :class="getActivityInfo(item.activity_type).iconClass"
data-bs-toggle="tooltip" data-bs-toggle="tooltip"
:title="getActivityInfo(item.activity_type).description" :title="getActivityInfo(item.activity_type).description"
></i> ></i>
</td> </td>
<td> <td>
{{ item.snr }} {{ item.snr }}