Download src/App.tsx from Snapkitty/bob-ide: direct link, hf CLI and curl.
- Browser
- Download file 1.97 kB
-
https://huggingface.co/Snapkitty/bob-ide/resolve/main/src/App.tsx
- Command line
-
hf download hf://Snapkitty/bob-ide/src/App.tsx
-
curl -L -o App.tsx https://huggingface.co/Snapkitty/bob-ide/resolve/main/src/App.tsx
1.97 kB
| import { useEffect, useState } from 'react'; | |
| import { AppShell } from './components/shell/AppShell'; | |
| import { Welcome } from './pages/Welcome'; | |
| import { OmegaShell } from './components/terminal/OmegaShell'; | |
| import { SovereignIDE } from './components/ide/SovereignIDE'; | |
| import { useWorkspaceStore } from './stores/workspace.store'; | |
| import { sovereignIDE } from '../artifacts/SOVEREIGN_IDE_FRAMEWORK'; | |
| function App() { | |
| const [isLoading, setIsLoading] = useState(true); | |
| const [sovereignReady, setSovereignReady] = useState(false); | |
| const [showIDE, setShowIDE] = useState(false); | |
| const { workspaceId, initialize } = useWorkspaceStore(); | |
| useEffect(() => { | |
| // Initialize Sovereign IDE framework (all BOB components) | |
| sovereignIDE.initialize().then(() => { | |
| setSovereignReady(true); | |
| console.log('✅ Sovereign IDE Framework loaded'); | |
| }); | |
| // Initialize stores and check for existing workspace | |
| initialize().finally(() => setIsLoading(false)); | |
| }, [initialize]); | |
| if (isLoading) { | |
| return ( | |
| <div style={{ | |
| display: 'flex', | |
| alignItems: 'center', | |
| justifyContent: 'center', | |
| height: '100vh', | |
| background: 'var(--bg-canvas)', | |
| color: 'var(--text-primary)', | |
| fontFamily: 'var(--font-ui)' | |
| }}> | |
| <div> | |
| <div style={{ fontSize: '2rem', marginBottom: '1rem' }}>🤖</div> | |
| <div>Loading BOB IDE...</div> | |
| </div> | |
| </div> | |
| ); | |
| } | |
| // Show welcome screen if no workspace is open | |
| if (!workspaceId) { | |
| return <Welcome />; | |
| } | |
| // Toggle between Vortex shell (game) and Sovereign IDE (editor) | |
| if (showIDE) { | |
| return ( | |
| <div> | |
| <SovereignIDE /> | |
| <OmegaShell /> | |
| </div> | |
| ); | |
| } | |
| // Show main Vortex shell (game world) | |
| return ( | |
| <div> | |
| <AppShell /> | |
| <OmegaShell /> | |
| </div> | |
| ); | |
| } | |
| export default App; | |
| // Made with Bob | |