π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
π style: hide 404 status watermark on embedded not-found views (#17153)
Rdmclin2d12c91487226
diff --git a/src/components/404/index.tsx b/src/components/404/index.tsxindex ebe3e4bba07..90f19ff4b8b 100644--- a/src/components/404/index.tsx+++ b/src/components/404/index.tsx@@ -11,25 +11,28 @@ import { MAX_WIDTH } from '@/const/layoutTokens';const NotFound = memo<{desc?: string;extra?: ReactNode;+ hideWatermark?: boolean;status?: number | string;title?: string;-}>(({ extra, status = 404, title, desc }) => {+}>(({ extra, hideWatermark, status = 404, title, desc }) => {const { t } = useTranslation('error');return (<Flexbox align={'center'} justify={'center'} style={{ minHeight: '100%', width: '100%' }}>- <h1- style={{- filter: 'blur(8px)',- fontSize: `min(${MAX_WIDTH / 3}px, 50vw)`,- fontWeight: 'bolder',- margin: 0,- opacity: 0.12,- position: 'absolute',- zIndex: 0,- }}- >- {status}- </h1>+ {!hideWatermark && (+ <h1+ style={{+ filter: 'blur(8px)',+ fontSize: `min(${MAX_WIDTH / 3}px, 50vw)`,+ fontWeight: 'bolder',+ margin: 0,+ opacity: 0.12,+ position: 'absolute',+ zIndex: 0,+ }}+ >+ {status}+ </h1>+ )}<FluentEmoji emoji={'π'} size={64} /><h2 style={{ fontWeight: 'bold', marginTop: '1em', textAlign: 'center' }}>{title || t('notFound.title')}diff --git a/src/features/AgentNotFound/index.tsx b/src/features/AgentNotFound/index.tsxindex cd7dbdb32f7..1fc8b56c05d 100644--- a/src/features/AgentNotFound/index.tsx+++ b/src/features/AgentNotFound/index.tsx@@ -19,7 +19,7 @@ const BUILTIN_SLUG_SET = new Set<string>(Object.values(BUILTIN_AGENT_SLUGS));export const AgentNotFound = memo(() => {const { t } = useTranslation('chat');- return <NotFound desc={t('agentNotFound.desc')} title={t('agentNotFound.title')} />;+ return <NotFound hideWatermark desc={t('agentNotFound.desc')} title={t('agentNotFound.title')} />;});AgentNotFound.displayName = 'AgentNotFound';diff --git a/src/features/FileNotFound/index.tsx b/src/features/FileNotFound/index.tsxindex 67f4faa2f7e..256270a294d 100644--- a/src/features/FileNotFound/index.tsx+++ b/src/features/FileNotFound/index.tsx@@ -13,7 +13,7 @@ import NotFound from '@/components/404';const FileNotFound = memo(() => {const { t } = useTranslation('file');- return <NotFound desc={t('notFound.desc')} title={t('notFound.title')} />;+ return <NotFound hideWatermark desc={t('notFound.desc')} title={t('notFound.title')} />;});FileNotFound.displayName = 'FileNotFound';diff --git a/src/features/GroupNotFound/index.tsx b/src/features/GroupNotFound/index.tsxindex 1365482dae1..9d49cb92cb0 100644--- a/src/features/GroupNotFound/index.tsx+++ b/src/features/GroupNotFound/index.tsx@@ -15,7 +15,7 @@ import { agentGroupByIdSelectors, useAgentGroupStore } from '@/store/agentGroup'export const GroupNotFound = memo(() => {const { t } = useTranslation('chat');- return <NotFound desc={t('groupNotFound.desc')} title={t('groupNotFound.title')} />;+ return <NotFound hideWatermark desc={t('groupNotFound.desc')} title={t('groupNotFound.title')} />;});GroupNotFound.displayName = 'GroupNotFound';diff --git a/src/routes/(main)/(create)/features/GenerationWorkspace/Content.tsx b/src/routes/(main)/(create)/features/GenerationWorkspace/Content.tsxindex 302d6e6ff8a..387a75af3ef 100644--- a/src/routes/(main)/(create)/features/GenerationWorkspace/Content.tsx+++ b/src/routes/(main)/(create)/features/GenerationWorkspace/Content.tsx@@ -64,6 +64,7 @@ const Content = ({return (<Center flex={1} padding={24} width={'100%'}><NotFound+ hideWatermarkdesc={t('generationTopic.notFound.desc')}title={t('generationTopic.notFound.title')}/>