mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-25 02:41:07 +01:00
Performance sweep (#147)
This commit is contained in:
19
src-web/routes/workspaces/$workspaceId/index.tsx
Normal file
19
src-web/routes/workspaces/$workspaceId/index.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import { createFileRoute } from '@tanstack/react-router';
|
||||
import { Workspace } from '../../../components/Workspace';
|
||||
|
||||
interface WorkspaceSearchSchema {
|
||||
cookieJarId?: string | null;
|
||||
environmentId?: string | null;
|
||||
}
|
||||
|
||||
export const Route = createFileRoute('/workspaces/$workspaceId/')({
|
||||
component: RouteComponent,
|
||||
validateSearch: (search: Record<string, unknown>): WorkspaceSearchSchema => ({
|
||||
environmentId: search.environment_id as string,
|
||||
cookieJarId: search.cookie_jar_id as string,
|
||||
}),
|
||||
});
|
||||
|
||||
function RouteComponent() {
|
||||
return <Workspace />;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { createFileRoute } from '@tanstack/react-router';
|
||||
import { Workspace } from '../../../../components/Workspace';
|
||||
|
||||
export const Route = createFileRoute('/workspaces/$workspaceId/requests/$requestId')({
|
||||
component: RouteComponent,
|
||||
});
|
||||
|
||||
function RouteComponent() {
|
||||
return <Workspace />;
|
||||
}
|
||||
Reference in New Issue
Block a user