ADD - connect optional iFruit account

This commit is contained in:
Eichenholz
2026-08-04 18:36:32 +02:00
parent 46e6c6cc25
commit a8a4076896
18 changed files with 733 additions and 129 deletions
-15
View File
@@ -1,7 +1,5 @@
import type { PhoneAppId } from '@/types/apps'
export const PHONE_PREFERENCES_KEY = 'sky_phone.preferences.v1'
export const APPEARANCE_MODE_IDS = ['automatic', 'light', 'dark'] as const
export const PHONE_FRAME_IDS = [
'black',
@@ -197,16 +195,3 @@ export function parsePhonePreferences(raw: string | null): PhonePreferencesV1 {
return structuredClone(DEFAULT_PHONE_PREFERENCES)
}
}
export function readPhonePreferences(): PhonePreferencesV1 {
return parsePhonePreferences(
window.localStorage.getItem(PHONE_PREFERENCES_KEY),
)
}
export function writePhonePreferences(preferences: PhonePreferencesV1): void {
window.localStorage.setItem(
PHONE_PREFERENCES_KEY,
JSON.stringify(preferences),
)
}