chore: 纳入本地 Dify 1.19.0 源码及品牌与免登改动

演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-11-18 13:59:25 +08:00
1 parent 60158935f4
commit 6519682885
15831 files changed
+3063428

No files matched your search

@@ -0,0 +1,39 @@
import type { Meta, StoryObj } from '@storybook/nextjs-vite'
import Effect from '.'
const meta = {
title: 'Base/Other/Effect',
component: Effect,
parameters: {
docs: {
description: {
component:
'Blurred circular glow used as a decorative background accent. Combine with relatively positioned containers.',
},
source: {
language: 'tsx',
code: `
<div className="relative h-40 w-72 overflow-hidden rounded-2xl bg-background-default-subtle">
<Effect className="top-6 left-8" />
</div>
`.trim(),
},
},
},
tags: ['autodocs'],
} satisfies Meta<typeof Effect>
export default meta
type Story = StoryObj<typeof meta>
export const Playground: Story = {
render: () => (
<div className="relative h-40 w-72 overflow-hidden rounded-2xl border border-divider-subtle bg-background-default-subtle">
<Effect className="top-6 left-8" />
<Effect className="bg-util-colors-purple-brand-purple-brand-500 top-14 right-10" />
<div className="absolute inset-x-0 bottom-4 flex justify-center text-xs text-text-secondary">
Accent glow
</div>
</div>
),
}
@@ -0,0 +1,19 @@
import { cn } from '@langgenius/dify-ui/cn'
import * as React from 'react'
type EffectProps = {
className?: string
}
const Effect = ({ className }: EffectProps) => {
return (
<div
className={cn(
'absolute size-28 rounded-full bg-util-colors-blue-brand-blue-brand-500 blur-[80px]',
className,
)}
/>
)
}
export default React.memo(Effect)