forked from 77media/video-flow
连接状态和最后更新时间指示器删除
This commit is contained in:
parent
a10ab3ec1a
commit
f65fe63650
@ -271,31 +271,6 @@ export default function DashboardPage() {
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" />
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
{/* 连接状态和最后更新时间指示器 */}
|
||||
<div className="bg-black/50 backdrop-blur-sm text-white/70 px-3 py-1 rounded text-xs whitespace-nowrap flex items-center gap-2">
|
||||
{/* 连接状态指示器 */}
|
||||
<div className="flex items-center gap-1">
|
||||
<div className={`w-2 h-2 rounded-full ${
|
||||
connectionStatus === 'connected' ? 'bg-green-400' :
|
||||
connectionStatus === 'disconnected' ? 'bg-red-400' :
|
||||
'bg-yellow-400 animate-pulse'
|
||||
}`} />
|
||||
<span className="text-xs">
|
||||
{connectionStatus === 'connected' ? '已连接' :
|
||||
connectionStatus === 'disconnected' ? '离线模式' :
|
||||
'连接中...'}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{/* 分隔符 */}
|
||||
{lastUpdateTime && <span>|</span>}
|
||||
|
||||
{/* 最后更新时间 */}
|
||||
{lastUpdateTime && (
|
||||
<span>最后更新: {lastUpdateTime.toLocaleTimeString()}</span>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 顶部状态栏 */}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user