From d9153186054d6b9b53b6827f751f64140fa3b43f Mon Sep 17 00:00:00 2001 From: "dayuan.jiang" Date: Thu, 3 Apr 2025 15:29:26 +0000 Subject: [PATCH] add github icon --- components/chat-panel.tsx | 13 ++++- package-lock.json | 115 ++++---------------------------------- package.json | 1 + 3 files changed, 22 insertions(+), 107 deletions(-) diff --git a/components/chat-panel.tsx b/components/chat-panel.tsx index 96c23f3..1ae61e2 100644 --- a/components/chat-panel.tsx +++ b/components/chat-panel.tsx @@ -2,6 +2,7 @@ import type React from "react"; import { useRef, useEffect, useState } from "react"; +import { FaGithub } from "react-icons/fa"; import { Card, @@ -63,7 +64,7 @@ export default function ChatPanel() { if (toolCall.toolName === "display_diagram") { const { xml } = toolCall.args as { xml: string }; // do nothing because we will handle this streamingly in the ChatMessageDisplay component - onDisplayChart(replaceNodes(chartXML, xml)); + // onDisplayChart(replaceNodes(chartXML, xml)); return "Successfully displayed the flowchart."; } }, @@ -108,8 +109,16 @@ export default function ChatPanel() { return ( - + Next-AI-Drawio + + + = 10" - } - }, - "node_modules/@next/swc-darwin-x64": { - "version": "15.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-15.2.3.tgz", - "integrity": "sha512-pVwKvJ4Zk7h+4hwhqOUuMx7Ib02u3gDX3HXPKIShBi9JlYllI0nU6TWLbPT94dt7FSi6mSBhfc2JrHViwqbOdw==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-arm64-gnu": { - "version": "15.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.2.3.tgz", - "integrity": "sha512-50ibWdn2RuFFkOEUmo9NCcQbbV9ViQOrUfG48zHBCONciHjaUKtHcYFiCwBVuzD08fzvzkWuuZkd4AqbvKO7UQ==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-arm64-musl": { - "version": "15.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.2.3.tgz", - "integrity": "sha512-2gAPA7P652D3HzR4cLyAuVYwYqjG0mt/3pHSWTCyKZq/N/dJcUAEoNQMyUmwTZWCJRKofB+JPuDVP2aD8w2J6Q==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-x64-musl": { - "version": "15.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.2.3.tgz", - "integrity": "sha512-ZR9kLwCWrlYxwEoytqPi1jhPd1TlsSJWAc+H/CJHmHkf2nD92MQpSRIURR1iNgA/kuFSdxB8xIPt4p/T78kwsg==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-win32-arm64-msvc": { - "version": "15.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.2.3.tgz", - "integrity": "sha512-+G2FrDcfm2YDbhDiObDU/qPriWeiz/9cRR0yMWJeTLGGX6/x8oryO3tt7HhodA1vZ8r2ddJPCjtLcpaVl7TE2Q==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-win32-x64-msvc": { - "version": "15.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.2.3.tgz", - "integrity": "sha512-gHYS9tc+G2W0ZC8rBL+H6RdtXIyk40uLiaos0yj5US85FNhbFEndMA2nW3z47nzOWiSvXTZ5kBClc3rD0zJg0w==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } } } } diff --git a/package.json b/package.json index c6c33bf..dcd8396 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "react": "^19.0.0", "react-dom": "^19.0.0", "react-drawio": "^1.0.3", + "react-icons": "^5.5.0", "remark-gfm": "^4.0.1", "tailwind-merge": "^3.0.2", "tailwindcss-animate": "^1.0.7"