@php $statusLabel = $filters['status'] === 'online' ? '在线' : ($filters['status'] === 'offline' ? '离线' : '全部'); @endphp @extends('admin.layout', [ 'title' => 'Tstore Admin · 站点接入', 'pageTitle' => '站点接入', 'pageSubtitle' => '查看哪些 Typecho 站点已注册、是否在线,以及最近一次上报状态。', 'pageBadge' => 'Clients', ]) @section('content')
已注册站点{{ $stats['registered_sites'] }}完成 token 注册
在线站点{{ $stats['online_sites'] }}{{ $onlineWindowMinutes }} 分钟内有心跳
离线站点{{ max($stats['registered_sites'] - $stats['online_sites'], 0) }}超出在线窗口
追踪用户数{{ $stats['tracked_users'] }}所有站点上报总和
当前筛选{{ $statusLabel }}站点状态过滤

站点列表

插件端注册成功后会出现在这里,之后每次状态同步都会刷新最近心跳和用户数。

重置
@forelse ($clients as $client) @empty @endforelse
站点 状态 用户数 环境 注册时间 最近同步 Token 尾缀
{{ $client->site_name ?: '未命名站点' }}
{{ $client->site_url }}
{{ $client->is_online ? '在线' : '离线' }} {{ $client->user_count }}
Typecho {{ $client->typecho_version ?: '-' }}
PHP {{ $client->php_version ?: '-' }} · 插件 {{ $client->plugin_version ?: '-' }}
{{ optional($client->registered_at)->format('Y-m-d H:i:s') ?: '-' }} {{ optional($client->last_seen_at)->format('Y-m-d H:i:s') ?: '尚未同步' }} ...{{ $client->token_suffix ?: '--------' }}
当前还没有站点完成注册。
{{ $clients->links() }}
@endsection