web: add firebase push token registration and sync

This commit is contained in:
Codex
2026-03-09 23:12:40 +03:00
parent b1b54896a7
commit ef28c165e6
8 changed files with 1104 additions and 3 deletions

16
web/src/vite-env.d.ts vendored
View File

@@ -1 +1,17 @@
/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly VITE_API_BASE_URL?: string;
readonly VITE_WS_URL?: string;
readonly VITE_FIREBASE_API_KEY?: string;
readonly VITE_FIREBASE_AUTH_DOMAIN?: string;
readonly VITE_FIREBASE_PROJECT_ID?: string;
readonly VITE_FIREBASE_STORAGE_BUCKET?: string;
readonly VITE_FIREBASE_MESSAGING_SENDER_ID?: string;
readonly VITE_FIREBASE_APP_ID?: string;
readonly VITE_FIREBASE_VAPID_KEY?: string;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}