From f577ff115bc3f2dbb84e2eeff9ab1f3b45103b2d Mon Sep 17 00:00:00 2001 From: ruitanglin Date: Mon, 9 Feb 2026 03:23:51 +0800 Subject: [PATCH] Revert "fix(frontend): Turbopack about page + remove hover on web search/citations" This reverts commit 7e9e061f20fcec1f1a9c35be40d9407c05ed82be. --- .../ai-elements/inline-citation.tsx | 52 ++++++++++++------ .../workspace/messages/message-group.tsx | 20 ++++--- .../workspace/settings/about-content.ts | 54 ------------------- .../settings/about-settings-page.tsx | 4 +- 4 files changed, 51 insertions(+), 79 deletions(-) delete mode 100644 frontend/src/components/workspace/settings/about-content.ts diff --git a/frontend/src/components/ai-elements/inline-citation.tsx b/frontend/src/components/ai-elements/inline-citation.tsx index 2c9fda2..dde6e31 100644 --- a/frontend/src/components/ai-elements/inline-citation.tsx +++ b/frontend/src/components/ai-elements/inline-citation.tsx @@ -320,21 +320,43 @@ export const CitationLink = ({ const displayText = citation?.title || (!isGenericText && childrenText) || domain; return ( - e.stopPropagation()} - > - - {displayText} - - - + + + e.stopPropagation()} + > + + {displayText} + + + + + +
+ + + Visit source + + +
+
+
); }; diff --git a/frontend/src/components/workspace/messages/message-group.tsx b/frontend/src/components/workspace/messages/message-group.tsx index 1dffa33..a0782bb 100644 --- a/frontend/src/components/workspace/messages/message-group.tsx +++ b/frontend/src/components/workspace/messages/message-group.tsx @@ -232,11 +232,13 @@ function ToolCall({ {Array.isArray(result) && ( {result.map((item) => ( - - - {item.title} - - + + + + {item.title} + + + ))} )} @@ -307,9 +309,11 @@ function ToolCall({ > {url && ( - - {title} - + {result as string}}> + + {title} + + )} diff --git a/frontend/src/components/workspace/settings/about-content.ts b/frontend/src/components/workspace/settings/about-content.ts deleted file mode 100644 index 9866434..0000000 --- a/frontend/src/components/workspace/settings/about-content.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** About page markdown content. Exported as string to avoid raw-loader with Turbopack. */ -export const aboutMarkdown = `# 🦌 [About DeerFlow 2.0](https://github.com/bytedance/deer-flow) - -> **From Open Source, Back to Open Source** - -**DeerFlow** (**D**eep **E**xploration and **E**fficient **R**esearch **Flow**) is a community-driven SuperAgent harness that researches, codes, and creates. -With the help of sandboxes, memories, tools and skills, it handles -different levels of tasks that could take minutes to hours. - ---- - -## 🌟 GitHub Repository - -Explore DeerFlow on GitHub: [github.com/bytedance/deer-flow](https://github.com/bytedance/deer-flow) - -## 🌐 Official Website - -Visit the official website of DeerFlow: [deerflow.tech](https://deerflow.tech/) - -## 📧 Support - -If you have any questions or need help, please contact us at [support@deerflow.tech](mailto:support@deerflow.tech). - ---- - -## 📜 License - -DeerFlow is proudly open source and distributed under the **MIT License**. - ---- - -## 🙌 Acknowledgments - -We extend our heartfelt gratitude to the open source projects and contributors who have made DeerFlow a reality. We truly stand on the shoulders of giants. - -### Core Frameworks -- **[LangChain](https://github.com/langchain-ai/langchain)**: A phenomenal framework that powers our LLM interactions and chains. -- **[LangGraph](https://github.com/langchain-ai/langgraph)**: Enabling sophisticated multi-agent orchestration. -- **[Next.js](https://nextjs.org/)**: A cutting-edge framework for building web applications. - -### UI Libraries -- **[Shadcn](https://ui.shadcn.com/)**: Minimalistic components that power our UI. -- **[SToneX](https://github.com/stonexer)**: For his invaluable contribution to token-by-token visual effects. - -These outstanding projects form the backbone of DeerFlow and exemplify the transformative power of open source collaboration. - -### Special Thanks -Finally, we want to express our heartfelt gratitude to the core authors of DeerFlow 1.0 and 2.0: - -- **[Daniel Walnut](https://github.com/hetaoBackend/)** -- **[Henry Li](https://github.com/magiccube/)** - -Without their vision, passion and dedication, \`DeerFlow\` would not be what it is today. -`; diff --git a/frontend/src/components/workspace/settings/about-settings-page.tsx b/frontend/src/components/workspace/settings/about-settings-page.tsx index 8635f8d..e3c215f 100644 --- a/frontend/src/components/workspace/settings/about-settings-page.tsx +++ b/frontend/src/components/workspace/settings/about-settings-page.tsx @@ -2,8 +2,8 @@ import { Streamdown } from "streamdown"; -import { aboutMarkdown } from "./about-content"; +import about from "./about.md"; export function AboutSettingsPage() { - return {aboutMarkdown}; + return {about}; }