mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-07-05 17:32:10 +02:00
improve MQTT error bubble up and massage communitymqtt + debug etc. for version management. Closes #70
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
import type { HealthStatus } from '../../types';
|
||||
import { Separator } from '../ui/separator';
|
||||
|
||||
const GITHUB_URL = 'https://github.com/jkingsman/Remote-Terminal-for-MeshCore';
|
||||
|
||||
export function SettingsAboutSection({ className }: { className?: string }) {
|
||||
const version = __APP_VERSION__;
|
||||
const commit = __COMMIT_HASH__;
|
||||
export function SettingsAboutSection({
|
||||
health,
|
||||
className,
|
||||
}: {
|
||||
health?: HealthStatus | null;
|
||||
className?: string;
|
||||
}) {
|
||||
const version = health?.app_info?.version ?? 'unknown';
|
||||
const commit = health?.app_info?.commit_hash;
|
||||
|
||||
return (
|
||||
<div className={className}>
|
||||
@@ -14,8 +21,14 @@ export function SettingsAboutSection({ className }: { className?: string }) {
|
||||
<h3 className="text-lg font-semibold">RemoteTerm for MeshCore</h3>
|
||||
<div className="text-sm text-muted-foreground">
|
||||
v{version}
|
||||
<span className="mx-1.5">·</span>
|
||||
<span className="font-mono text-xs">{commit}</span>
|
||||
{commit ? (
|
||||
<>
|
||||
<span className="mx-1.5">·</span>
|
||||
<span className="font-mono text-xs" title={commit}>
|
||||
{commit}
|
||||
</span>
|
||||
</>
|
||||
) : null}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user