mirror of
https://github.com/R0m1k3/Loki.git
synced 2026-10-22 06:28:11 +02:00
Add workspace navigation and model management
This commit is contained in:
1 parent
765c7b31d5
commit
a7290039f6
10 files changed
+372
-49
No files matched your search
+11
-3
@@ -5,6 +5,7 @@ import { LeftPanel } from "./panels/LeftPanel";
|
||||
import { ChatPanel } from "./panels/ChatPanel";
|
||||
import { PreviewPanel } from "./panels/PreviewPanel";
|
||||
import { SettingsView } from "./panels/SettingsView";
|
||||
import { FilesView, HistoryView, ToolsView } from "./panels/ActivityViews";
|
||||
import { useStore } from "./store/useStore";
|
||||
|
||||
export default function App() {
|
||||
@@ -26,15 +27,22 @@ export default function App() {
|
||||
<div className="flex min-h-0 flex-1">
|
||||
<ActivityBar active={view} onChange={setView} />
|
||||
|
||||
{view === "settings" ? (
|
||||
<SettingsView />
|
||||
) : (
|
||||
{view === "chat" && (
|
||||
<>
|
||||
<LeftPanel />
|
||||
<ChatPanel />
|
||||
<PreviewPanel />
|
||||
</>
|
||||
)}
|
||||
{view === "history" && <HistoryView onOpen={() => setView("chat")} />}
|
||||
{view === "files" && (
|
||||
<>
|
||||
<FilesView />
|
||||
<PreviewPanel />
|
||||
</>
|
||||
)}
|
||||
{view === "tools" && <ToolsView onSettings={() => setView("settings")} />}
|
||||
{view === "settings" && <SettingsView />}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user