From 49dbeac7e144e740e7e2be5d934d089887eb1c3c Mon Sep 17 00:00:00 2001 From: ewezy Date: Fri, 19 Jul 2024 16:25:33 +0800 Subject: [PATCH] Add temporary caraml ai mockup ui --- ui/packages/app/src/App.js | 8 +++++++ ui/packages/app/src/caraml_ai/CaraMLAIPage.js | 24 +++++++++++++++++++ ui/packages/app/src/config.js | 2 +- .../src/components/nav_drawer/NavDrawer.js | 5 ++-- 4 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 ui/packages/app/src/caraml_ai/CaraMLAIPage.js diff --git a/ui/packages/app/src/App.js b/ui/packages/app/src/App.js index ba79ecaa..e1008274 100644 --- a/ui/packages/app/src/App.js +++ b/ui/packages/app/src/App.js @@ -12,6 +12,7 @@ import { Route, Routes } from "react-router-dom"; import AppRoutes from "./AppRoutes"; import { PrivateLayout } from "./PrivateLayout"; import config from "./config"; +import { CaraMLAIPage } from "./caraml_ai/CaraMLAIPage"; const App = () => ( @@ -29,6 +30,13 @@ const App = () => ( } /> + + { + config.CARAML_AI_STREAMLIT_HOMEPAGE && + }> + } /> + + } diff --git a/ui/packages/app/src/caraml_ai/CaraMLAIPage.js b/ui/packages/app/src/caraml_ai/CaraMLAIPage.js new file mode 100644 index 00000000..dc3892ad --- /dev/null +++ b/ui/packages/app/src/caraml_ai/CaraMLAIPage.js @@ -0,0 +1,24 @@ +import React from "react"; +import { EuiPageTemplate } from "@elastic/eui"; +import config from "./../config"; + +export const CaraMLAIPage = () => { + const iframe = `` + + function Iframe(props) { + return (
); + } + return ( + + + + +