Verschiebe benutzerbezogene Einstellungen ins Benutzerprofil.

Theme, Farbschema, OWM-Schlüssel, Push, PWA und App-Tour liegen nun im Profil mit pro-User-localStorage. Der Logbuch-Tab fokussiert Teilen, Backup und Crew.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-31 12:01:08 +02:00
parent f12b9b2a1a
commit a84c611402
11 changed files with 391 additions and 251 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import { apiFetch } from './api.js'
import { getOwmApiKey } from './userPreferences.js'
export class WeatherApiError extends Error {
code: 'NO_KEY' | 'REQUEST_FAILED'
@@ -26,7 +27,7 @@ export async function fetchOpenWeatherCurrent(params: {
throw new WeatherApiError('lat/lon or location query required')
}
const userKey = localStorage.getItem('owm_api_key')?.trim()
const userKey = getOwmApiKey().trim()
const headers: Record<string, string> = {}
if (userKey) headers['X-OWM-Api-Key'] = userKey