mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 11:36:17 +00:00
Update virtual-machines.tsx
This commit is contained in:
@@ -1025,9 +1025,12 @@ export function VirtualMachines() {
|
|||||||
Notes
|
Notes
|
||||||
</h4>
|
</h4>
|
||||||
<div className="bg-muted/50 p-4 rounded-lg">
|
<div className="bg-muted/50 p-4 rounded-lg">
|
||||||
<pre className="text-sm text-foreground whitespace-pre-wrap font-sans">
|
<div
|
||||||
{decodeURIComponent(vmDetails.config.description.replace(/%0A/g, "\n"))}
|
className="text-sm text-foreground prose prose-sm max-w-none dark:prose-invert"
|
||||||
</pre>
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: decodeURIComponent(vmDetails.config.description.replace(/%0A/g, "\n")),
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
@@ -1381,37 +1384,39 @@ export function VirtualMachines() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Advanced Section */}
|
{/* Advanced Section */}
|
||||||
<div>
|
{(vmDetails.config.vmgenid || vmDetails.config.smbios1 || vmDetails.config.meta) && (
|
||||||
<h4 className="text-sm font-semibold text-muted-foreground mb-3 uppercase tracking-wide">
|
<div>
|
||||||
Advanced
|
<h4 className="text-sm font-semibold text-muted-foreground mb-3 uppercase tracking-wide">
|
||||||
</h4>
|
Advanced
|
||||||
<div className="space-y-3">
|
</h4>
|
||||||
{vmDetails.config.vmgenid && (
|
<div className="space-y-3">
|
||||||
<div>
|
{vmDetails.config.vmgenid && (
|
||||||
<div className="text-xs text-muted-foreground mb-1">VM Generation ID</div>
|
<div>
|
||||||
<div className="font-medium text-muted-foreground text-sm font-mono">
|
<div className="text-xs text-muted-foreground mb-1">VM Generation ID</div>
|
||||||
{vmDetails.config.vmgenid}
|
<div className="font-medium text-muted-foreground text-sm font-mono">
|
||||||
|
{vmDetails.config.vmgenid}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
)}
|
||||||
)}
|
{vmDetails.config.smbios1 && (
|
||||||
{vmDetails.config.smbios1 && (
|
<div>
|
||||||
<div>
|
<div className="text-xs text-muted-foreground mb-1">SMBIOS</div>
|
||||||
<div className="text-xs text-muted-foreground mb-1">SMBIOS</div>
|
<div className="font-medium text-muted-foreground text-sm font-mono break-all">
|
||||||
<div className="font-medium text-muted-foreground text-sm font-mono break-all">
|
{vmDetails.config.smbios1}
|
||||||
{vmDetails.config.smbios1}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
)}
|
||||||
)}
|
{vmDetails.config.meta && (
|
||||||
{vmDetails.config.meta && (
|
<div>
|
||||||
<div>
|
<div className="text-xs text-muted-foreground mb-1">Metadata</div>
|
||||||
<div className="text-xs text-muted-foreground mb-1">Metadata</div>
|
<div className="font-medium text-muted-foreground text-sm font-mono">
|
||||||
<div className="font-medium text-muted-foreground text-sm font-mono">
|
{vmDetails.config.meta}
|
||||||
{vmDetails.config.meta}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
)}
|
||||||
)}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</CardContent>
|
</CardContent>
|
||||||
|
|||||||
Reference in New Issue
Block a user