diff --git a/ui/src/components/Sidebar/index.jsx b/ui/src/components/Sidebar/index.jsx deleted file mode 100644 index 5fe3d0e0..00000000 --- a/ui/src/components/Sidebar/index.jsx +++ /dev/null @@ -1,32 +0,0 @@ -import { Layout, Menu } from "antd"; -import { Link } from "react-router-dom"; - -const { Sider } = Layout; - -const Sidebar = () => { - return ( - -
- - - Bots - - - Workflow - - - Analytics - - - API - - -
-
- ); -}; - -export default Sidebar; \ No newline at end of file diff --git a/ui/src/components/Topbar/index.jsx b/ui/src/components/Topbar/index.jsx deleted file mode 100644 index b36068ed..00000000 --- a/ui/src/components/Topbar/index.jsx +++ /dev/null @@ -1,63 +0,0 @@ -import { useState } from "react"; -import { Layout, Menu, Col, Drawer } from "antd"; -import { Link } from "react-router-dom"; -import { FaBars } from "react-icons/fa"; - -const { Header } = Layout; - -const Topbar = () => { - const [visible, setVisible] = useState(false); - - const showDrawer = () => setVisible(true); - const hideDrawer = () => setVisible(false); - - return ( -
- - - Maxun - - - - - - Dashboard - - - Credits - - - Profile - - - - - - - document.body} // Ensure the drawer covers viewport on mobile - > - - - - Dashboard - - - - Credits - - - Profile - - - -
- ); -}; - -export default Topbar; \ No newline at end of file diff --git a/ui/src/components/WebPreview/index.jsx b/ui/src/components/WebPreview/index.jsx deleted file mode 100644 index 28a6e905..00000000 --- a/ui/src/components/WebPreview/index.jsx +++ /dev/null @@ -1,45 +0,0 @@ -import React, { useState } from 'react'; -import { getCssSelector } from 'css-selector-generator'; -import axios from 'axios'; - -function WebPreview({ html, setHtml, elements }) { - const [url, setUrl] = useState(null); - const [isFetching, setIsFetching] = useState(false); - - async function loadWebsite() { - try { - setIsFetching(true); - const response = await axios.post('http://localhost:3000/load-website', { - url: 'https://syehan-travelize.netlify.app/', - }); - console.log('Response:', response.data); - setHtml(response.data); - setIsFetching(false); - } catch (error) { - console.error('Error loading website:', error); - } - } - - return ( -
- -

Web Page Preview

- {html && html.length > 0 ? ( - - ) : ( -

No website loaded

- )} -
- ); -} - -export default WebPreview;