From e0da51be2eef5d5de72508e94fffa34eb1b58a78 Mon Sep 17 00:00:00 2001 From: Oleg Ivaniv Date: Thu, 24 Oct 2024 14:54:54 +0200 Subject: [PATCH] Implement chat panels --- packages/editor-ui/src/App.vue | 11 +++ .../src/components/CanvasChat/CanvasChat.vue | 94 +++++++++++++++++++ packages/editor-ui/src/router.ts | 3 + 3 files changed, 108 insertions(+) create mode 100644 packages/editor-ui/src/components/CanvasChat/CanvasChat.vue diff --git a/packages/editor-ui/src/App.vue b/packages/editor-ui/src/App.vue index 4c849fb5d9..f11c423dc2 100644 --- a/packages/editor-ui/src/App.vue +++ b/packages/editor-ui/src/App.vue @@ -98,6 +98,9 @@ const updateGridWidth = async () => { +
+ +
@@ -145,11 +148,19 @@ const updateGridWidth = async () => { height: 100%; width: 100%; justify-content: center; + flex-direction: column; main { width: 100%; height: 100%; } + + .contentFooter { + height: auto; + z-index: 1000000; + background: white; + border: 1px solid red; + } } .header { diff --git a/packages/editor-ui/src/components/CanvasChat/CanvasChat.vue b/packages/editor-ui/src/components/CanvasChat/CanvasChat.vue new file mode 100644 index 0000000000..1d874c6186 --- /dev/null +++ b/packages/editor-ui/src/components/CanvasChat/CanvasChat.vue @@ -0,0 +1,94 @@ + + + + + diff --git a/packages/editor-ui/src/router.ts b/packages/editor-ui/src/router.ts index cbcc0dc1ce..8bc41a3d52 100644 --- a/packages/editor-ui/src/router.ts +++ b/packages/editor-ui/src/router.ts @@ -24,6 +24,7 @@ const ErrorView = async () => await import('./views/ErrorView.vue'); const ForgotMyPasswordView = async () => await import('./views/ForgotMyPasswordView.vue'); const MainHeader = async () => await import('@/components/MainHeader/MainHeader.vue'); const MainSidebar = async () => await import('@/components/MainSidebar.vue'); +const CanvasChat = async () => await import('@/components/CanvasChat/CanvasChat.vue'); const NodeView = async () => await import('@/views/NodeViewSwitcher.vue'); const WorkflowExecutionsView = async () => await import('@/views/WorkflowExecutionsView.vue'); const WorkflowExecutionsLandingPage = async () => @@ -314,6 +315,7 @@ export const routes: RouteRecordRaw[] = [ default: NodeView, header: MainHeader, sidebar: MainSidebar, + footer: CanvasChat, }, meta: { nodeView: true, @@ -346,6 +348,7 @@ export const routes: RouteRecordRaw[] = [ default: NodeView, header: MainHeader, sidebar: MainSidebar, + footer: CanvasChat, }, meta: { nodeView: true,