Merge pull request #943 from getmaxun/auto-robot
feat: add auto robots template
This commit is contained in:
@@ -6,6 +6,7 @@ import { Recordings } from "../components/robot/Recordings";
|
||||
import { Runs } from "../components/run/Runs";
|
||||
import ProxyForm from '../components/proxy/ProxyForm';
|
||||
import ApiKey from '../components/api/ApiKey';
|
||||
import { AutoRobots } from '../components/robot/AutoRobots';
|
||||
import { useGlobalInfoStore, useCacheInvalidation } from "../context/globalInfo";
|
||||
import { createAndRunRecording, createRunForStoredRecording, CreateRunResponseWithQueue, interpretStoredRecording, notifyAboutAbort, scheduleStoredRecording } from "../api/storage";
|
||||
import { io, Socket } from "socket.io-client";
|
||||
@@ -317,6 +318,8 @@ export const MainPage = ({ handleEditRecording, initialContent }: MainPageProps)
|
||||
return <ProxyForm />;
|
||||
case 'apikey':
|
||||
return <ApiKey />;
|
||||
case 'prebuilt-robots':
|
||||
return <AutoRobots />;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -114,6 +114,7 @@ export const PageWrapper = () => {
|
||||
<Route path="/" element={<Navigate to="/robots" replace />} />
|
||||
<Route path="/robots/create" element={<RobotCreate />} />
|
||||
<Route path="/robots/*" element={<MainPage handleEditRecording={handleEditRecording} initialContent="robots" />} />
|
||||
<Route path="/prebuilt-robots" element={<MainPage handleEditRecording={handleEditRecording} initialContent="prebuilt-robots" />} />
|
||||
<Route path="/runs/*" element={<MainPage handleEditRecording={handleEditRecording} initialContent="runs" />} />
|
||||
<Route path="/proxy" element={<MainPage handleEditRecording={handleEditRecording} initialContent="proxy" />} />
|
||||
<Route path="/apikey" element={<MainPage handleEditRecording={handleEditRecording} initialContent="apikey" />} />
|
||||
|
||||
Reference in New Issue
Block a user