mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
- Extract useHeaderHeight() hook — single source of truth for header height across AppShell, ReferralNetwork, and TicketNotificationBell - Portal top offset now computed dynamically from TG safe area insets instead of hardcoded top-16 (fixes overlap with TG header bar) - Two-row mobile layout: title + selector on separate rows so dropdown gets full width on small screens - Add MOBILE_HEADER_HEIGHT_PX and DESKTOP_HEADER_HEIGHT_PX to constants - Fix TicketNotificationBell using hardcoded 45px for all platforms
32 lines
715 B
TypeScript
32 lines
715 B
TypeScript
export const STORAGE_KEYS = {
|
|
THEME: 'cabinet-theme',
|
|
ENABLED_THEMES: 'cabinet-enabled-themes',
|
|
FAVORITE_SETTINGS: 'admin_favorite_settings',
|
|
USER_THEME_PREFS: 'user_theme_preferences',
|
|
} as const;
|
|
|
|
// WebSocket
|
|
export const WS = {
|
|
MAX_RECONNECT_ATTEMPTS: 5,
|
|
PING_INTERVAL_MS: 25000,
|
|
MAX_RECONNECT_DELAY_MS: 30000,
|
|
} as const;
|
|
|
|
// UI
|
|
export const UI = {
|
|
RESEND_COOLDOWN_SEC: 60,
|
|
TELEGRAM_HEADER_ANDROID_PX: 48,
|
|
TELEGRAM_HEADER_IOS_PX: 45,
|
|
MOBILE_HEADER_HEIGHT_PX: 64,
|
|
DESKTOP_HEADER_HEIGHT_PX: 56,
|
|
} as const;
|
|
|
|
// API
|
|
export const API = {
|
|
TIMEOUT_MS: 30000,
|
|
BALANCE_STALE_TIME_MS: 30000,
|
|
TRAFFIC_CACHE_MS: 30000,
|
|
TRAFFIC_WARN_PERCENT: 70,
|
|
TRAFFIC_CRITICAL_PERCENT: 90,
|
|
} as const;
|