From 74593a955cb09aa041f34f9f92e50142ec7e101c Mon Sep 17 00:00:00 2001 From: singlexyz Date: Fri, 23 Feb 2024 22:24:06 +0800 Subject: [PATCH] =?UTF-8?q?GPT=20Logo=20=E7=82=B9=E5=87=BB9=E6=AC=A1?= =?UTF-8?q?=E6=9C=89=E5=BD=A9=E8=9B=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/sidebar.tsx | 29 +++++++++++++++++++++++++++-- package.json | 3 ++- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/app/components/sidebar.tsx b/app/components/sidebar.tsx index 4741139..6d24fbf 100644 --- a/app/components/sidebar.tsx +++ b/app/components/sidebar.tsx @@ -1,4 +1,4 @@ -import { useEffect, useRef, useMemo } from "react"; +import { useEffect, useRef, useMemo, useState } from "react"; import styles from "./home.module.scss"; @@ -128,6 +128,31 @@ function useDragSideBar() { }; } +function EEIcon() { + // 彩蛋 + const [count, setCount] = useState(0); + + return ( +
setCount((c) => c + 1)}> + + {count >= 9 ? ( +
+ ); +} + export function SideBar(props: { className?: string }) { const chatStore = useChatStore(); @@ -162,7 +187,7 @@ export function SideBar(props: { className?: string }) { Build your own AI assistant. */}
- +
diff --git a/package.json b/package.json index b31d6a9..fa6619a 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "emoji-picker-react": "^4.5.15", "fuse.js": "^7.0.0", "html-to-image": "^1.11.11", + "katex": "^0.16.9", "mermaid": "^10.6.1", "nanoid": "^5.0.3", "next": "^13.4.9", @@ -64,4 +65,4 @@ "resolutions": { "lint-staged/yaml": "^2.2.2" } -} \ No newline at end of file +} -- 2.47.2