Files
gsfdc/demo-dify/dify/web/features/network-access/app-binding/restricted-preview.tsx
T
wuzilongandCursor 6519682885 chore: 纳入本地 Dify 1.19.0 源码及品牌与免登改动
演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-18 13:59:25 +08:00

44 lines
2.0 KiB
TypeScript

'use client'
import { useTranslation } from 'react-i18next'
export function AccessControlRestrictedPreview() {
const { t } = useTranslation(['deployments'])
return (
<div
aria-hidden="true"
className="flex h-50 w-full flex-col overflow-hidden rounded-lg border border-components-panel-border bg-background-default shadow-md"
>
<div className="flex h-6 items-center gap-1.75 border-b border-divider-subtle bg-background-body px-1">
<div className="flex items-center gap-1">
<span className="size-1.5 rounded-full bg-[#ff5f57]" />
<span className="size-1.5 rounded-full bg-[#febc2e]" />
<span className="size-1.5 rounded-full bg-[#28c840]" />
</div>
<div className="flex items-center gap-0.75">
<span className="flex size-3 items-center justify-center overflow-hidden rounded-sm border-[0.5px] border-divider-regular bg-components-icon-bg-teal-soft text-[7px] leading-none">
🤖
</span>
<span className="text-[6px] leading-2 text-text-secondary">
{t(($) => $['studio.accessControl.previewAppName'], { ns: 'deployments' })}
</span>
</div>
</div>
<div className="flex flex-1 flex-col bg-background-default-hover p-1">
<div className="flex flex-1 flex-col items-center justify-center gap-3 rounded bg-linear-to-t from-background-default/16 to-background-default">
<div className="relative size-9">
<span className="i-ri-global-line size-9 text-text-accent" />
<span className="absolute top-5 left-5.75 flex size-4 items-center justify-center rounded-full bg-background-default">
<span className="i-ri-information-2-fill size-4 text-text-accent" />
</span>
</div>
<p className="w-44 text-center system-2xs-regular text-text-primary">
{t(($) => $['studio.accessControl.previewCaption'], { ns: 'deployments' })}
</p>
</div>
</div>
</div>
)
}