extracted terminal to a widget

This commit is contained in:
2026-02-17 18:46:18 +00:00
parent c6999ea66f
commit 0746844d6f
98 changed files with 487 additions and 3513 deletions
+23 -36
View File
@@ -1,9 +1,6 @@
import { BrowserRouter, Routes, Route, Navigate, Link } from 'react-router';
import { BrowserRouter, Routes, Route, Navigate } from 'react-router';
import * as Authentication from './Screens/Authentication';
// import { Home } from './Screens/Dashboard/Home';
// import { ChatList } from './Screens/Dashboard/Chat/ChatList';
import * as Dashboard from './Screens/Dashboard';
import { useAuth } from 'hooks/useAuth';
import { useServerSettings } from '@/state/useServerSettings';
import { useInitialData } from '@/state/useInitialData';
@@ -36,38 +33,28 @@ export function App() {
{/* </Routes> */}
{/* )} */}
{isAuthenticated && onboardingComplete && (
<Routes>
<Route path="/" element={<HomeScreen />} />
{/* <Route path="/settings/profile" element={<ProfileSettings />} /> */}
{/* <Route path="/settings/ai" element={<AISettings />} /> */}
{/* <Route path="/settings/server" element={<ServerSettings />} /> */}
{/* <Route path="/settings/resources" element={<ResourceSettings />} /> */}
{/* <Route path="/chat" element={<ChatList />} /> */}
{/* <Route path="/chat/new" element={<NewChat />} /> */}
{/* <Route path="/chat/:sessionId" element={<ClaudeChat />} /> */}
{/* <Route path="/chat/opencode/new" element={<OpenCodeChat />} /> */}
{/* <Route path="/chat/opencode/:sessionId" element={<OpenCodeChat />} /> */}
{/* <Route path="/files" element={<Files />} /> */}
{/* <Route path="/terminal" element={<Terminal />} /> */}
{/* <Route path="/plans" element={<Plans />} /> */}
{/* <Route path="/skills" element={<Skills />} /> */}
{/* <Route path="/tasks" element={<Tasks />} /> */}
{/* <Route path="/processes" element={<Processes />} /> */}
{/* <Route path="/task-logs" element={<TaskLogs />} /> */}
<Route path="/auth/signout" element={<Authentication.SignoutScreen />} />
<Route path="*" element={<Navigate to="/" replace />} />
</Routes>
<Dashboard.DashboardLayout>
<Routes>
<Route path="/" element={<Dashboard.HomeScreen />} />
<Route path="/settings/profile" element={<Dashboard.ProfileSettings />} />
<Route path="/settings/ai" element={<Dashboard.AISettings />} />
<Route path="/settings/server" element={<Dashboard.ServerSettings />} />
<Route path="/settings/resources" element={<Dashboard.ResourceSettings />} />
<Route path="/chat/new" element={<Dashboard.NewChat />} />
<Route path="/chat/:sessionId" element={<Dashboard.ClaudeChat />} />
<Route path="/chat/opencode/new" element={<Dashboard.OpenCodeChat />} />
<Route path="/chat/opencode/:sessionId" element={<Dashboard.OpenCodeChat />} />
<Route path="/plans" element={<Dashboard.Plans />} />
<Route path="/terminal" element={<Dashboard.Terminal />} />
<Route path="/skills" element={<Dashboard.Skills />} />
<Route path="/tasks" element={<Dashboard.Tasks />} />
<Route path="/processes" element={<Dashboard.Processes />} />
<Route path="/task-logs" element={<Dashboard.TaskLogs />} />
<Route path="/auth/signout" element={<Authentication.SignoutScreen />} />
<Route path="*" element={<Navigate to="/" replace />} />
</Routes>
</Dashboard.DashboardLayout>
)}
</BrowserRouter>
);
}
const HomeScreen = () => {
return (
<div>
<h1>Home</h1>
<Link to="/auth/signout">Signout</Link>
</div>
);
};