mirror of
https://github.com/fankes/beszel.git
synced 2025-10-20 10:19:27 +08:00
login and other updates
This commit is contained in:
@@ -71,7 +71,7 @@ export default function ServerDetail({ name }: { name: string }) {
|
||||
// console.log('sctats', records)
|
||||
setServerStats(records.items)
|
||||
})
|
||||
}, [server])
|
||||
}, [server, servers])
|
||||
|
||||
// get cpu data
|
||||
useEffect(() => {
|
||||
@@ -100,16 +100,9 @@ export default function ServerDetail({ name }: { name: string }) {
|
||||
}
|
||||
// console.log('running')
|
||||
const matchingServer = servers.find((s) => s.name === name) as SystemRecord
|
||||
|
||||
// console.log('found server', matchingServer)
|
||||
setServer(matchingServer)
|
||||
|
||||
console.log('found server', matchingServer)
|
||||
// pb.collection<SystemRecord>('systems')
|
||||
// .getOne(serverId)
|
||||
// .then((record) => {
|
||||
// setServer(record)
|
||||
// })
|
||||
|
||||
pb.collection<ContainerStatsRecord>('container_stats')
|
||||
.getList(1, 60, {
|
||||
filter: `system="${matchingServer.id}"`,
|
||||
|
Reference in New Issue
Block a user