feat: Release CRM V2 (Clean History)

Squashed commits for V2 release including Dark Mode, Chatbot, and Landing Page enhancements.
This commit is contained in:
Satyam
2026-02-01 03:49:20 +05:30
commit 8a749d3041
42 changed files with 12518 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
/**
* Centralized Environment Configuration
* Handles environment variables with safe defaults.
*/
const DEFAULT_KEY_PLACEHOLDER = "Your-API-Key";
export const config = {
// Groq AI API Key
groqApiKey: import.meta.env.VITE_GROQ_API_KEY || DEFAULT_KEY_PLACEHOLDER,
// OpenWeatherMap API Key
// Fallback to the known working demo key if no env var is set
weatherApiKey: import.meta.env.VITE_OPENWEATHER_API_KEY || "7bca9386645d390690e65f474dff6b5d",
// Helper to check if a key is valid (not missing and not the placeholder)
isValidKey: (key) => key && key !== DEFAULT_KEY_PLACEHOLDER,
// Helper to check if we should run in Demo Mode
// We only trigger demo mode if the key is the placeholder OR explicitly missing
// (The working weather key will NOT trigger demo mode)
isDemoMode: (key) => !key || key === DEFAULT_KEY_PLACEHOLDER
};