mirror of
https://github.com/fankes/beszel.git
synced 2025-10-20 10:19:27 +08:00
before conversion to react
This commit is contained in:
@@ -25,12 +25,17 @@ const Main = () => {
|
||||
// const servers = useStore($servers)
|
||||
|
||||
useEffect(() => {
|
||||
console.log('fetching servers')
|
||||
// get servers
|
||||
pb.collection<SystemRecord>('systems')
|
||||
.getFullList({ sort: '+name' })
|
||||
.then((records) => {
|
||||
$servers.set(records)
|
||||
})
|
||||
|
||||
// get public key
|
||||
pb.send('/getkey', {}).then(({ key }) => {
|
||||
console.log('key', key)
|
||||
})
|
||||
}, [])
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user