mirror of
https://github.com/Dvorinka/Trackeep.git
synced 2026-06-03 20:12:58 +00:00
feat: major feature updates and cleanup
- Add Redis architecture implementation - Update browser extension functionality - Clean up deprecated files and documentation - Enhance backend handlers for auth, messages, search - Add new configuration options and settings - Update Docker and deployment configurations
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Demo Mode Test</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Demo Mode Test</h1>
|
||||
<div id="test-results"></div>
|
||||
|
||||
<script>
|
||||
// Test environment variable injection
|
||||
console.log('window.ENV:', window.ENV);
|
||||
console.log('import.meta.env:', import.meta.env);
|
||||
|
||||
// Test demo mode detection
|
||||
const buildTimeResult = import.meta.env.VITE_DEMO_MODE === 'true';
|
||||
const runtimeResult = window.ENV?.VITE_DEMO_MODE === 'true';
|
||||
const result = buildTimeResult || runtimeResult;
|
||||
|
||||
document.getElementById('test-results').innerHTML = `
|
||||
<h2>Test Results:</h2>
|
||||
<p><strong>Build-time VITE_DEMO_MODE:</strong> ${import.meta.env.VITE_DEMO_MODE}</p>
|
||||
<p><strong>Runtime window.ENV.VITE_DEMO_MODE:</strong> ${window.ENV?.VITE_DEMO_MODE}</p>
|
||||
<p><strong>Build-time result:</strong> ${buildTimeResult}</p>
|
||||
<p><strong>Runtime result:</strong> ${runtimeResult}</p>
|
||||
<p><strong>Final result (isEnvDemoMode):</strong> ${result}</p>
|
||||
<p><strong>Demo mode active:</strong> ${result ? 'YES ✅' : 'NO ❌'}</p>
|
||||
`;
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user