Skip to content

Commit

Permalink
add marvin tab
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonR99 committed Dec 30, 2023
1 parent ae0b81a commit 19d0e57
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/renderer/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ export const Header: FC = () => {
label: 'Victim',
visible: true,
},
{
to: '/marvin',
label: 'Marvin',
visible: true,
},
{
to: '/config',
label: 'Config',
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/components/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Teleop } from '@/renderer/components/pages/Teleop';
import { Victim } from '@/renderer/components/pages/Victim';
import { Debug } from '@/renderer/components/pages/Debug';
import { ConfigPage } from '@/renderer/components/pages/Config/ConfigPage';
import { Marvin } from '@/renderer/components/pages/Marvin';

export const Router: FC = () => {
return (
Expand All @@ -12,6 +13,7 @@ export const Router: FC = () => {
<Route path="/" element={<Navigate to="/teleop" />} />
<Route path="/teleop" element={<Teleop />} />
<Route path="/victim" element={<Victim />} />
<Route path="/marvin" element={<Marvin />} />
<Route path="/config/*" element={<ConfigPage />} />
<Route path="/debug" element={<Debug />} />
</Routes>
Expand Down
11 changes: 11 additions & 0 deletions src/renderer/components/pages/Marvin.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React, { FC } from 'react';

export const Marvin: FC = () => {
return (
<iframe
src="http://127.0.0.1:7860/"
title="Example Site"
style={{ width: '100%', height: '100%' }}
/>
);
};

0 comments on commit 19d0e57

Please sign in to comment.