mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-03-28 17:43:05 +01:00
Add last-heard time to contacts + repeaters
This commit is contained in:
537
frontend/dist/assets/index-BAMaL3S8.js
vendored
Normal file
537
frontend/dist/assets/index-BAMaL3S8.js
vendored
Normal file
File diff suppressed because one or more lines are too long
537
frontend/dist/assets/index-BW3IACj-.js
vendored
537
frontend/dist/assets/index-BW3IACj-.js
vendored
File diff suppressed because one or more lines are too long
1
frontend/dist/assets/index-Dtp6aYf1.css
vendored
Normal file
1
frontend/dist/assets/index-Dtp6aYf1.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
frontend/dist/assets/index-URSnSHtR.css
vendored
1
frontend/dist/assets/index-URSnSHtR.css
vendored
File diff suppressed because one or more lines are too long
4
frontend/dist/index.html
vendored
4
frontend/dist/index.html
vendored
@@ -13,8 +13,8 @@
|
||||
<link rel="shortcut icon" href="/favicon.ico" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
||||
<link rel="manifest" href="/site.webmanifest" />
|
||||
<script type="module" crossorigin src="/assets/index-BW3IACj-.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-URSnSHtR.css">
|
||||
<script type="module" crossorigin src="/assets/index-BAMaL3S8.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-Dtp6aYf1.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
@@ -13,6 +13,7 @@ import { CrackerPanel } from './components/CrackerPanel';
|
||||
import { Sheet, SheetContent, SheetHeader, SheetTitle } from './components/ui/sheet';
|
||||
import { Toaster, toast } from './components/ui/sonner';
|
||||
import { getStateKey } from './utils/conversationState';
|
||||
import { formatTime } from './utils/messageParser';
|
||||
import { pubkeysMatch, getContactDisplayName } from './utils/pubkey';
|
||||
import { parseHashConversation, updateUrlHash } from './utils/urlHash';
|
||||
import { cn } from '@/lib/utils';
|
||||
@@ -553,6 +554,14 @@ export function App() {
|
||||
</span>
|
||||
<span className="font-normal text-xs text-muted-foreground font-mono truncate">
|
||||
{activeConversation.id}
|
||||
{activeConversation.type === 'contact' && (() => {
|
||||
const contact = contacts.find(c => c.public_key === activeConversation.id);
|
||||
return contact?.last_seen ? (
|
||||
<span className="ml-2 font-sans">
|
||||
(Last heard: {formatTime(contact.last_seen)})
|
||||
</span>
|
||||
) : null;
|
||||
})()}
|
||||
</span>
|
||||
</span>
|
||||
{!(activeConversation.type === 'channel' && activeConversation.name === 'Public') && (
|
||||
|
||||
@@ -36,3 +36,4 @@ export function formatTime(timestamp: number): string {
|
||||
const dateStr = date.toLocaleDateString([], { month: 'short', day: 'numeric' });
|
||||
return `${dateStr} ${time}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user