Merge branch 'hetaoBackend:experimental' into experimental

This commit is contained in:
LofiSu
2026-02-09 11:58:56 +08:00
committed by GitHub
4 changed files with 26 additions and 10 deletions

View File

@@ -43,7 +43,9 @@ export function WordRotate({
className={cn(className)}
{...motionProps}
>
<AuroraText>{words[index]}</AuroraText>
<AuroraText speed={3} colors={["#efefbb", "#e9c665", "#e3a812"]}>
{words[index]}
</AuroraText>
</motion.h1>
</AnimatePresence>
</div>

View File

@@ -1,11 +1,13 @@
"use client";
import { useSearchParams } from "next/navigation";
import { useEffect } from "react";
import { useEffect, useMemo } from "react";
import { useI18n } from "@/core/i18n/hooks";
import { cn } from "@/lib/utils";
import { AuroraText } from "../ui/aurora-text";
let waved = false;
export function Welcome({
@@ -17,6 +19,13 @@ export function Welcome({
}) {
const { t } = useI18n();
const searchParams = useSearchParams();
const isUltra = useMemo(() => mode === "ultra", [mode]);
const colors = useMemo(() => {
if (isUltra) {
return ["#efefbb", "#e9c665", "#e3a812"];
}
return ["var(--color-foreground)"];
}, [isUltra]);
useEffect(() => {
waved = true;
}, []);
@@ -33,11 +42,9 @@ export function Welcome({
) : (
<div className="flex items-center gap-2">
<div className={cn("inline-block", !waved ? "animate-wave" : "")}>
👋
</div>
<div className={cn(mode === "ultra" && "golden-text")}>
{t.welcome.greeting}
{isUltra ? "🚀" : "👋"}
</div>
<AuroraText colors={colors}>{t.welcome.greeting}</AuroraText>
</div>
)}
</div>

View File

@@ -12,6 +12,7 @@ import {
useSidebar,
} from "@/components/ui/sidebar";
import { useI18n } from "@/core/i18n/hooks";
import { env } from "@/env";
import { cn } from "@/lib/utils";
export function WorkspaceHeader({ className }: { className?: string }) {
@@ -35,9 +36,15 @@ export function WorkspaceHeader({ className }: { className?: string }) {
</div>
) : (
<div className="flex items-center justify-between gap-2">
<Link href="/" className="text-primary ml-2 font-serif">
DeerFlow
</Link>
{env.NEXT_PUBLIC_STATIC_WEBSITE_ONLY === "true" ? (
<Link href="/" className="text-primary ml-2 font-serif">
DeerFlow
</Link>
) : (
<div className="text-primary ml-2 cursor-default font-serif">
DeerFlow
</div>
)}
<SidebarTrigger />
</div>
)}

View File

@@ -49,7 +49,7 @@ export const zhCN: Translations = {
welcome: {
greeting: "你好,欢迎回来!",
description:
"欢迎使用 🦌 DeerFlow一个完全开源的超级智能体。通过内置和\n自定义的 SkillsDeerFlow 可以帮你搜索网络、分析数据,\n还能为你生成幻灯片、网页等作品,几乎可以做任何事情。",
"欢迎使用 🦌 DeerFlow一个完全开源的超级智能体。通过内置和自定义的 Skills\nDeerFlow 可以帮你搜索网络、分析数据,还能为你生成幻灯片、\n图片、视频、播客及网页等,几乎可以做任何事情。",
createYourOwnSkill: "创建你自己的 Agent SKill",
createYourOwnSkillDescription: