Skip to content

Commit

Permalink
feat: emphasize my ip in the devices table
Browse files Browse the repository at this point in the history
  • Loading branch information
GloryWong committed Sep 14, 2023
1 parent 2f9b3a1 commit 0643fe6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion components/LanDevicesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@
:color="ping ? 'green' : 'red'"
></v-icon>
</td>
<td class="text-center">
<td
class="text-center"
:class="{
'font-weight-black': ip === networkInfo?.address,
}"
>
{{ ip }}
</td>
<td class="text-center">{{ mac }}</td>
Expand All @@ -87,6 +92,8 @@ defineProps<{
devices: DeviceInfo[];
}>();
const { networkInfo } = useNetworkInfo();
const container = ref(null);
const containerHeight = ref(300);
useResizeObserver(container, (entries) => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lanwatcher",
"productName": "LAN Watcher",
"version": "0.3.1",
"version": "0.4.0",
"description": "Watching the devices in local area network",
"author": "Glory Wong",
"main": "dist-electron/main.js",
Expand Down

0 comments on commit 0643fe6

Please sign in to comment.