diff --git a/app/routes/_data.machines._index.tsx b/app/routes/_data.machines._index.tsx index 3c49bea..7577dc8 100644 --- a/app/routes/_data.machines._index.tsx +++ b/app/routes/_data.machines._index.tsx @@ -25,60 +25,73 @@ export default function Page() { return ( - - + + - - {data.map(machine => ( - - - + {data.map(machine => { + const tags = [...machine.forcedTags, ...machine.validTags] + + return ( + + - - - ))} +
+ {tags.map(tag => ( + + {tag} + + ))} +
+ + + + + + ) + })}
Name IP Addresses Last Seen
- -

{machine.givenName}

- {machine.name} - - -
- {machine.ipAddresses.map((ip, index) => ( -
+ +

{machine.givenName}

+ + {machine.name} - - - ))} -
- - -

- {machine.online - ? 'Connected' - : new Date( - machine.lastSeen - ).toLocaleString()} -

-
-
+ {machine.ipAddresses.map((ip, index) => ( + + ))} + + + +

+ {machine.online + ? 'Connected' + : new Date( + machine.lastSeen + ).toLocaleString()} +

+
+
)