🚧 Update system to focus on IMEI

This commit is contained in:
Jonas Bengtsson
2026-09-05 18:19:42 +02:00
parent e83dd755e9
commit 6795547c47
5 changed files with 21 additions and 13 deletions
+4 -2
View File
@@ -60,6 +60,7 @@ onMounted(async () => {
<thead>
<tr>
<th>Received</th>
<th>IMEI</th>
<th>Device</th>
<th>Payload + attributes</th>
</tr>
@@ -67,9 +68,10 @@ onMounted(async () => {
<tbody>
<tr v-for="m in latest" :key="m.id">
<td class="mono">{{ formatTime(m.received_at) }}</td>
<td>
<router-link :to="`/devices/${m.imei}`">{{ m.device }}</router-link>
<td class="mono">
<router-link :to="`/devices/${m.imei}`">{{ m.imei }}</router-link>
</td>
<td>{{ m.device }}</td>
<td>
<details>
<summary class="muted">payload</summary>
+4 -1
View File
@@ -208,7 +208,10 @@ onMounted(async () => {
<template>
<h1>
<router-link to="/devices">Devices</router-link> /
{{ device?.device ?? imei }}
<span class="mono">{{ imei }}</span>
<span v-if="device?.device" class="muted" style="font-weight: 400">
· {{ device.device }}
</span>
</h1>
<h2>Settings</h2>
+3 -3
View File
@@ -76,10 +76,10 @@ async function removeDevice(d: Device) {
</thead>
<tbody>
<tr v-for="d in devices" :key="d.imei">
<td class="mono">{{ d.imei }}</td>
<td>
<router-link :to="`/devices/${d.imei}`">{{ d.device }}</router-link>
<td class="mono">
<router-link :to="`/devices/${d.imei}`">{{ d.imei }}</router-link>
</td>
<td>{{ d.device }}</td>
<td style="text-align: right">
<button v-if="canEdit()" class="danger" @click="removeDevice(d)">
<Trash2 :size="15" />
+4 -2
View File
@@ -85,6 +85,7 @@ onMounted(load)
<thead>
<tr>
<th>Received</th>
<th>IMEI</th>
<th>Device</th>
<th>Payload + attributes</th>
</tr>
@@ -92,9 +93,10 @@ onMounted(load)
<tbody>
<tr v-for="m in page.items" :key="m.id">
<td class="mono">{{ formatTime(m.received_at) }}</td>
<td>
<router-link :to="`/devices/${m.imei}`">{{ m.device }}</router-link>
<td class="mono">
<router-link :to="`/devices/${m.imei}`">{{ m.imei }}</router-link>
</td>
<td>{{ m.device }}</td>
<td>
<details>
<summary class="muted">payload</summary>