Skip to content

Commit cdf7df2

Browse files
0
1 parent 4c77db3 commit cdf7df2

File tree

12,919 files changed

+2096349
-211
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

12,919 files changed

+2096349
-211
lines changed

.github/workflows/deploy.yml

Whitespace-only changes.

.vscode/tasks.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Install Dependencies",
6+
"type": "shell",
7+
"command": "npm install",
8+
"group": "build",
9+
"isBackground": false,
10+
"problemMatcher": []
11+
},
12+
{
13+
"label": "Start Development Server",
14+
"type": "shell",
15+
"command": "npm run dev",
16+
"group": "build",
17+
"isBackground": true,
18+
"problemMatcher": []
19+
}
20+
]
21+
}

index.html

Lines changed: 3 additions & 211 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
<!-- Preconnect to external resources -->
2121
<link rel="preconnect" href="https://fonts.googleapis.com" />
2222
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
23-
<link rel="preconnect" href="https://esm.sh" />
2423

2524
<!-- Terminal Monospace Font System -->
2625
<link href="https://fonts.googleapis.com/css2?family=SF+Mono:wght@400;500;600&display=swap" rel="stylesheet" />
@@ -32,9 +31,7 @@
3231
<script src="https://cdn.tailwindcss.com?plugins=forms,typography,aspect-ratio,container-queries"></script>
3332

3433
<!-- Load Global CSS -->
35-
<style>
36-
@import url('/styles/globals.css');
37-
</style>
34+
<link rel="stylesheet" href="./styles/globals.css" />
3835

3936
<!-- Theme Detection Script (executed immediately to prevent flash) -->
4037
<script>
@@ -186,213 +183,8 @@
186183
<!-- React Application Root -->
187184
<div id="root"></div>
188185

189-
<!-- Import Map for Module Resolution -->
190-
<script type="importmap">
191-
{
192-
"imports": {
193-
"react": "https://esm.sh/[email protected]",
194-
"react-dom": "https://esm.sh/[email protected]",
195-
"react-dom/client": "https://esm.sh/[email protected]/client",
196-
"three": "https://esm.sh/[email protected]",
197-
"three/examples/jsm/controls/OrbitControls": "https://esm.sh/[email protected]/examples/jsm/controls/OrbitControls",
198-
"react-hook-form": "https://esm.sh/[email protected]",
199-
"sonner": "https://esm.sh/[email protected]",
200-
"lucide-react": "https://esm.sh/[email protected]",
201-
"recharts": "https://esm.sh/[email protected]",
202-
"react-slick": "https://esm.sh/[email protected]",
203-
"react-responsive-masonry": "https://esm.sh/[email protected]",
204-
"react-dnd": "https://esm.sh/[email protected]",
205-
"framer-motion": "https://esm.sh/[email protected]",
206-
"@floating-ui/react": "https://esm.sh/@floating-ui/[email protected]",
207-
"re-resizable": "https://esm.sh/[email protected]"
208-
}
209-
}
210-
</script>
211-
212-
<!-- Application Loading and Initialization Script -->
213-
<script type="module">
214-
// Enhanced loading management
215-
const loadingElement = document.getElementById('terminal-loading');
216-
const rootElement = document.getElementById('root');
217-
218-
// Terminal-style loading messages
219-
const loadingMessages = [
220-
'loading neural networks...',
221-
'initializing depth processors...',
222-
'connecting stability ai...',
223-
'calibrating sensors...',
224-
'mounting interface...'
225-
];
226-
227-
let messageIndex = 0;
228-
const statusElement = loadingElement.querySelector('.terminal-status');
229-
230-
// Cycle through loading messages
231-
const messageInterval = setInterval(() => {
232-
if (messageIndex < loadingMessages.length) {
233-
statusElement.textContent = loadingMessages[messageIndex];
234-
messageIndex++;
235-
} else {
236-
clearInterval(messageInterval);
237-
}
238-
}, 800);
239-
240-
// Terminal startup logging
241-
console.log('%c tm %c render-neural v2.1.0',
242-
'background: #25262b; color: #ffffff; padding: 2px 6px; font-family: monospace;',
243-
'color: #64748b; font-family: monospace;'
244-
);
245-
console.log('%c spatial intelligence & neural field processing',
246-
'color: #64748b; font-family: monospace; font-size: 12px;'
247-
);
248-
249-
// Enhanced error handling
250-
window.addEventListener('error', (event) => {
251-
console.error('%c er %c system error detected:',
252-
'background: #dc2626; color: #ffffff; padding: 2px 6px; font-family: monospace;',
253-
'color: #dc2626; font-family: monospace;',
254-
event.error
255-
);
256-
});
257-
258-
window.addEventListener('unhandledrejection', (event) => {
259-
console.error('%c wr %c unhandled promise rejection:',
260-
'background: #f59e0b; color: #ffffff; padding: 2px 6px; font-family: monospace;',
261-
'color: #f59e0b; font-family: monospace;',
262-
event.reason
263-
);
264-
});
265-
266-
// Hide loading screen function
267-
function hideLoadingScreen() {
268-
document.body.classList.add('react-mounted');
269-
clearInterval(messageInterval);
270-
271-
setTimeout(() => {
272-
loadingElement.style.display = 'none';
273-
}, 300);
274-
}
275-
276-
// Load and mount React application
277-
async function initializeApp() {
278-
try {
279-
// Import React and ReactDOM
280-
const React = await import('react');
281-
const ReactDOM = await import('react-dom/client');
282-
283-
// Update status
284-
statusElement.textContent = 'loading application components...';
285-
286-
// Import the actual App component from App.tsx
287-
const AppModule = await import('./App.tsx');
288-
const App = AppModule.default;
289-
290-
// Update status
291-
statusElement.textContent = 'mounting neural interface...';
292-
293-
console.log('%c tm %c application components loaded',
294-
'background: #25262b; color: #ffffff; padding: 2px 6px; font-family: monospace;',
295-
'color: #10b981; font-family: monospace; font-size: 12px;'
296-
);
297-
298-
// Mount the React application
299-
const root = ReactDOM.createRoot(rootElement);
300-
root.render(React.createElement(App));
301-
302-
console.log('%c tm %c systems nominal - interface mounted',
303-
'background: #25262b; color: #ffffff; padding: 2px 6px; font-family: monospace;',
304-
'color: #10b981; font-family: monospace; font-size: 12px;'
305-
);
306-
307-
// Hide loading screen after mount
308-
setTimeout(hideLoadingScreen, 1000);
309-
310-
} catch (error) {
311-
console.error('%c er %c failed to initialize application:',
312-
'background: #dc2626; color: #ffffff; padding: 2px 6px; font-family: monospace;',
313-
'color: #dc2626; font-family: monospace;',
314-
error
315-
);
316-
317-
// Show error in the root element
318-
rootElement.innerHTML = `
319-
<div style="
320-
min-height: 100vh;
321-
background-color: var(--color-background, #ffffff);
322-
color: var(--color-foreground, #25262b);
323-
font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
324-
display: flex;
325-
align-items: center;
326-
justify-content: center;
327-
padding: 2rem;
328-
" class="dark:bg-[oklch(0.145_0_0)] dark:text-[oklch(0.985_0_0)]">
329-
<div style="text-align: center;">
330-
<div style="
331-
display: flex;
332-
align-items: center;
333-
justify-content: center;
334-
gap: 0.5rem;
335-
margin-bottom: 1rem;
336-
">
337-
<div style="
338-
width: 0.5rem;
339-
height: 0.5rem;
340-
border-radius: 50%;
341-
background-color: #dc2626;
342-
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
343-
"></div>
344-
<span class="terminal-code" style="color: #dc2626;">er</span>
345-
<span>system initialization failed</span>
346-
</div>
347-
<div style="
348-
font-size: 0.75rem;
349-
color: #64748b;
350-
max-width: 600px;
351-
">
352-
<div>neural interface could not be mounted</div>
353-
<div style="margin-top: 0.5rem;">check console for detailed error information</div>
354-
<div style="margin-top: 1rem; padding: 1rem; background: rgba(0,0,0,0.05); border-radius: 0.25rem; font-family: monospace;">
355-
${error.message || 'Unknown error occurred'}
356-
</div>
357-
</div>
358-
</div>
359-
</div>
360-
`;
361-
362-
hideLoadingScreen();
363-
}
364-
}
365-
366-
// Performance monitoring
367-
if ('performance' in window) {
368-
window.addEventListener('load', () => {
369-
setTimeout(() => {
370-
const perfData = performance.getEntriesByType('navigation')[0];
371-
const loadTime = Math.round(perfData.loadEventEnd - perfData.loadEventStart);
372-
console.log('%c tm %c interface load time: %c%dms',
373-
'background: #25262b; color: #ffffff; padding: 2px 6px; font-family: monospace;',
374-
'color: #64748b; font-family: monospace;',
375-
'color: #10b981; font-family: monospace;',
376-
loadTime
377-
);
378-
}, 0);
379-
});
380-
}
381-
382-
// Initialize the application
383-
initializeApp();
384-
385-
// Fallback - hide loading after 15 seconds regardless
386-
setTimeout(() => {
387-
if (!document.body.classList.contains('react-mounted')) {
388-
console.warn('%c wr %c application loading timeout - forcing mount',
389-
'background: #f59e0b; color: #ffffff; padding: 2px 6px; font-family: monospace;',
390-
'color: #f59e0b; font-family: monospace;'
391-
);
392-
hideLoadingScreen();
393-
}
394-
}, 15000);
395-
</script>
186+
<!-- Vite development script -->
187+
<script type="module" src="/main.tsx"></script>
396188

397189
<!-- Service Worker Registration for PWA capabilities -->
398190
<script>

main.tsx

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
import React from 'react'
2+
import ReactDOM from 'react-dom/client'
3+
import App from './App.tsx'
4+
import './styles/globals.css'
5+
6+
// Terminal startup logging
7+
console.log('%c tm %c render-neural v2.1.0',
8+
'background: #25262b; color: #ffffff; padding: 2px 6px; font-family: monospace;',
9+
'color: #64748b; font-family: monospace;'
10+
);
11+
console.log('%c spatial intelligence & neural field processing',
12+
'color: #64748b; font-family: monospace; font-size: 12px;'
13+
);
14+
15+
// Enhanced error handling
16+
window.addEventListener('error', (event) => {
17+
console.error('%c er %c system error detected:',
18+
'background: #dc2626; color: #ffffff; padding: 2px 6px; font-family: monospace;',
19+
'color: #dc2626; font-family: monospace;',
20+
event.error
21+
);
22+
});
23+
24+
window.addEventListener('unhandledrejection', (event) => {
25+
console.error('%c wr %c unhandled promise rejection:',
26+
'background: #f59e0b; color: #ffffff; padding: 2px 6px; font-family: monospace;',
27+
'color: #f59e0b; font-family: monospace;',
28+
event.reason
29+
);
30+
});
31+
32+
// Hide loading screen function
33+
function hideLoadingScreen() {
34+
document.body.classList.add('react-mounted');
35+
36+
const loadingElement = document.getElementById('terminal-loading');
37+
if (loadingElement) {
38+
setTimeout(() => {
39+
loadingElement.style.display = 'none';
40+
}, 300);
41+
}
42+
}
43+
44+
// Mount React application
45+
const rootElement = document.getElementById('root')!;
46+
const root = ReactDOM.createRoot(rootElement);
47+
48+
root.render(
49+
<React.StrictMode>
50+
<App />
51+
</React.StrictMode>
52+
);
53+
54+
console.log('%c tm %c systems nominal - interface mounted',
55+
'background: #25262b; color: #ffffff; padding: 2px 6px; font-family: monospace;',
56+
'color: #10b981; font-family: monospace; font-size: 12px;'
57+
);
58+
59+
// Hide loading screen after mount
60+
setTimeout(hideLoadingScreen, 1000);

node_modules/.bin/autoprefixer

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/browserslist

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/cssesc

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/esbuild

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/glob

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/jiti

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)