Add OpenShell Control auth and installer
This commit is contained in:
+13
-2
@@ -7,6 +7,7 @@ import InferenceEndpointPanel from './components/InferenceEndpointPanel'
|
||||
import { useSandboxInventory } from './hooks/useSandboxInventory'
|
||||
import {
|
||||
createHydrationSafeDashboardSessionState,
|
||||
buildOperatorTerminalRoute,
|
||||
loadDashboardSessionState,
|
||||
persistDashboardSessionState,
|
||||
updateDashboardSessionSelection,
|
||||
@@ -187,6 +188,14 @@ export default function Dashboard() {
|
||||
setIsCreateMode(false)
|
||||
setLifecycleMessage(null)
|
||||
}}
|
||||
onTerminalClick={() => {
|
||||
const nextUrl = buildOperatorTerminalRoute({
|
||||
sandboxId: selectedSandbox?.id,
|
||||
dashboardSessionId: dashboardSession.dashboardSessionId,
|
||||
})
|
||||
window.open(nextUrl, '_blank', 'noopener,noreferrer')
|
||||
}}
|
||||
terminalDisabled={!selectedSandbox}
|
||||
onSettingsClick={() => {
|
||||
setActiveView('settings')
|
||||
setIsCreateMode(false)
|
||||
@@ -198,6 +207,10 @@ export default function Dashboard() {
|
||||
setIsDestroyMode(false)
|
||||
clearSelection()
|
||||
}}
|
||||
onLogout={async () => {
|
||||
await fetch('/api/auth/logout', { method: 'POST' }).catch(() => null)
|
||||
window.location.href = '/login'
|
||||
}}
|
||||
/>
|
||||
|
||||
<main className="ml-64 transition-all duration-300">
|
||||
@@ -281,7 +294,6 @@ export default function Dashboard() {
|
||||
<SandboxList
|
||||
sandboxes={sandboxes}
|
||||
nemoclaw={nemoclaw}
|
||||
dashboardSessionId={dashboardSession.dashboardSessionId}
|
||||
selectedSandboxId={dashboardSession.selectedSandboxId}
|
||||
selectedSandbox={selectedSandbox}
|
||||
onSandboxSelect={handleSandboxSelect}
|
||||
@@ -340,7 +352,6 @@ export default function Dashboard() {
|
||||
<SandboxList
|
||||
sandboxes={sandboxes}
|
||||
nemoclaw={nemoclaw}
|
||||
dashboardSessionId={dashboardSession.dashboardSessionId}
|
||||
selectedSandboxId={dashboardSession.selectedSandboxId}
|
||||
selectedSandbox={selectedSandbox}
|
||||
onSandboxSelect={handleSandboxSelect}
|
||||
|
||||
Reference in New Issue
Block a user