Skip to content

Commit

Permalink
Show SSID and BSSID in location popup if available
Browse files Browse the repository at this point in the history
  • Loading branch information
linusg committed Feb 11, 2022
1 parent f91341b commit 3ea1d02
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 5 deletions.
11 changes: 11 additions & 0 deletions src/components/LDeviceLocationPopup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
<ZapIcon size="1x" aria-hidden="true" role="img" />
{{ speed }} km/h
</li>
<li v-if="wifi.ssid" :title="$t('WiFi')">
<WifiIcon size="1x" aria-hidden="true" role="img" />
{{ wifi.ssid }}
<span v-if="wifi.bssid">({{ wifi.bssid }})</span>
</li>
</ul>
</div>
<div v-if="regions.length" class="regions">
Expand Down Expand Up @@ -73,6 +78,7 @@ import {
ClockIcon,
HomeIcon,
MapPinIcon,
WifiIcon,
ZapIcon,
} from "vue-feather-icons";
import { LPopup } from "vue2-leaflet";
Expand All @@ -84,6 +90,7 @@ export default {
ClockIcon,
HomeIcon,
MapPinIcon,
WifiIcon,
ZapIcon,
LPopup,
},
Expand Down Expand Up @@ -136,6 +143,10 @@ export default {
type: Array,
default: () => [],
},
wifi: {
type: Object,
default: () => {},
},
options: {
type: Object,
default: () => {},
Expand Down
3 changes: 2 additions & 1 deletion src/locales/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
"Address": "Adresse",
"Battery": "Akku",
"Speed": "Geschwindigkeit",
"Regions:": "Regionen:"
"Regions:": "Regionen:",
"WiFi": "WLAN"
}
3 changes: 2 additions & 1 deletion src/locales/en-GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
"Address": "Address",
"Battery": "Battery",
"Speed": "Speed",
"Regions:": "Regions:"
"Regions:": "Regions:",
"WiFi": "WiFi"
}
3 changes: 2 additions & 1 deletion src/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
"Address": "Address",
"Battery": "Battery",
"Speed": "Speed",
"Regions:": "Regions:"
"Regions:": "Regions:",
"WiFi": "WiFi"
}
3 changes: 2 additions & 1 deletion src/locales/es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
"Address": "Dirección",
"Battery": "Bateria",
"Speed": "Velocidad",
"Regions:": "Regiones:"
"Regions:": "Regiones:",
"WiFi": "WiFi"
}
3 changes: 2 additions & 1 deletion src/locales/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
"Address": "Addresse",
"Battery": "Batterie",
"Speed": "Vitesse",
"Regions:": "Régions:"
"Regions:": "Régions:",
"WiFi": "WiFi"
}
2 changes: 2 additions & 0 deletions src/views/Map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
:battery="l.batt"
:speed="l.vel"
:regions="l.inregions"
:wifi="{ ssid: l.SSID, bssid: l.BSSID }"
:options="{ className: 'leaflet-popup--for-pin' }"
/>
</LMarker>
Expand Down Expand Up @@ -90,6 +91,7 @@
:battery="l.batt"
:speed="l.vel"
:regions="l.inregions"
:wifi="{ ssid: l.SSID, bssid: l.BSSID }"
></LDeviceLocationPopup>
</LCircleMarker>
</template>
Expand Down

0 comments on commit 3ea1d02

Please sign in to comment.