add prettier config and format files site files

This commit is contained in:
Henry Dollman
2024-10-30 11:03:09 -04:00
parent 8827996553
commit 3505b215a2
75 changed files with 3096 additions and 3533 deletions

View File

@@ -1,9 +1,9 @@
import PocketBase from 'pocketbase'
import { atom, map, WritableAtom } from 'nanostores'
import { AlertRecord, ChartTimes, SystemRecord, UserSettings } from '@/types'
import PocketBase from "pocketbase"
import { atom, map, WritableAtom } from "nanostores"
import { AlertRecord, ChartTimes, SystemRecord, UserSettings } from "@/types"
/** PocketBase JS Client */
export const pb = new PocketBase('/')
export const pb = new PocketBase("/")
/** Store if user is authenticated */
export const $authenticated = atom(pb.authStore.isValid)
@@ -15,18 +15,18 @@ export const $systems = atom([] as SystemRecord[])
export const $alerts = atom([] as AlertRecord[])
/** SSH public key */
export const $publicKey = atom('')
export const $publicKey = atom("")
/** Beszel hub version */
export const $hubVersion = atom('')
export const $hubVersion = atom("")
/** Chart time period */
export const $chartTime = atom('1h') as WritableAtom<ChartTimes>
export const $chartTime = atom("1h") as WritableAtom<ChartTimes>
/** User settings */
export const $userSettings = map<UserSettings>({
chartTime: '1h',
emails: [pb.authStore.model?.email || ''],
chartTime: "1h",
emails: [pb.authStore.model?.email || ""],
})
// update local storage on change
$userSettings.subscribe((value) => {
@@ -35,7 +35,7 @@ $userSettings.subscribe((value) => {
})
/** Container chart filter */
export const $containerFilter = atom('')
export const $containerFilter = atom("")
/** Fallback copy to clipboard dialog content */
export const $copyContent = atom('')
export const $copyContent = atom("")