mirror of
https://github.com/fankes/komari-theme-purcarte.git
synced 2025-10-19 20:09:24 +08:00
fix: 修复在线状态显示和负载单位
This commit is contained in:
@@ -181,14 +181,16 @@ export const NodeCard = ({ node, enableSwap }: NodeCardProps) => {
|
||||
</div>
|
||||
<div className="flex justify-between text-xs">
|
||||
<div className="flex justify-start w-full">
|
||||
<span className="text-secondary-foreground">到期:</span>
|
||||
<div className="flex items-center gap-1">{expired_at}</div>
|
||||
<span className="text-secondary-foreground">
|
||||
到期:{expired_at}
|
||||
</span>
|
||||
</div>
|
||||
<div className="border-l border-border/60 mx-2"></div>
|
||||
<div className="flex justify-end w-full">
|
||||
<span className="text-secondary-foreground">在线:</span>
|
||||
<span>
|
||||
{isOnline && stats ? formatUptime(stats.uptime) : "离线"}
|
||||
<span className="text-secondary-foreground">
|
||||
{isOnline && stats
|
||||
? `在线:${formatUptime(stats.uptime)}`
|
||||
: "离线"}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -42,13 +42,15 @@ export const NodeListItem = ({ node, enableSwap }: NodeListItemProps) => {
|
||||
<div className="text-base font-bold">{node.name}</div>
|
||||
<Tag className="text-xs" tags={tagList} />
|
||||
<div className="flex text-xs">
|
||||
<span className="text-secondary-foreground">到期:</span>
|
||||
<div className="flex items-center gap-1">{expired_at}</div>
|
||||
<span className="text-secondary-foreground">
|
||||
到期:{expired_at}
|
||||
</span>
|
||||
</div>
|
||||
<div className="flex text-xs">
|
||||
<span className="text-secondary-foreground">在线:</span>
|
||||
<span>
|
||||
{isOnline && stats ? formatUptime(stats.uptime) : "离线"}
|
||||
<span className="text-secondary-foreground">
|
||||
{isOnline && stats
|
||||
? `在线:${formatUptime(stats.uptime)}`
|
||||
: "离线"}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user