update to use ssh

This commit is contained in:
Henry Dollman
2024-07-09 19:44:09 -04:00
parent 04c14ad4ab
commit 7af8671134
14 changed files with 639 additions and 181 deletions

View File

@@ -6,9 +6,9 @@ export const pb = new PocketBase('/')
// @ts-ignore
pb.authStore.storageKey = 'pb_admin_auth'
export const $authenticated = atom(pb.authStore.isValid)
export const $servers = atom([] as SystemRecord[])
export const $authenticated = atom(pb.authStore.isValid)
pb.authStore.onChange(() => {
$authenticated.set(pb.authStore.isValid)
})