mirror of
https://github.com/langgenius/dify.git
synced 2026-09-02 14:25:35 +08:00
Signed-off-by: kenwoodjw <blackxin55+@gmail.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: 起岚 <155608604+xiaoyaoqilan@users.noreply.github.com> Co-authored-by: Parman Mohammadalizadeh <prmma23@gmail.com> Co-authored-by: Escape0707 <tothesong@gmail.com> Co-authored-by: Xin Zhang <zhangxin@dify.ai> Co-authored-by: iridescentWen <66297467+iridescentWen@users.noreply.github.com> Co-authored-by: Bond Zhu <37842169+MRZHUH@users.noreply.github.com> Co-authored-by: KVOJJJin <jzongcode@gmail.com> Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: 非法操作 <hjlarry@163.com> Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com> Co-authored-by: Asuka Minato <i@asukaminato.eu.org> Co-authored-by: Chester <superdiao6@gmail.com> Co-authored-by: WH-2099 <wh2099@pm.me> Co-authored-by: Jony <619963502@qq.com> Co-authored-by: Jony <13896935+zyz619963502zyz@users.noreply.github.com> Co-authored-by: Harsh Kashyap <harsh.kashyap2001@gmail.com> Co-authored-by: Harsh Kashyap <Harsh23Kashyap@users.noreply.github.com> Co-authored-by: kenwoodjw <blackxin55+@gmail.com> Co-authored-by: csurong <csurong1@gmail.com> Co-authored-by: caosurong <surong.cao@thinkingdata.cn> Co-authored-by: Taranum Wasu <81034301+Taranum01@users.noreply.github.com> Co-authored-by: Taranum01 <50813317+Taranum01@users.noreply.github.com> Co-authored-by: Pranav Agarwal <agarwalpranav0711@gmail.com> Co-authored-by: Stephen Zhou <hi@hyoban.cc> Co-authored-by: zl86790 <marshal_li_b@163.com> Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com> Co-authored-by: yunlu.wen <yunlu.wen@dify.ai> Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
106 lines
5.9 KiB
TypeScript
106 lines
5.9 KiB
TypeScript
'use client'
|
|
|
|
import { SkeletonRectangle } from '@/app/components/base/skeleton'
|
|
import { SkillBuilderGridTexture } from './builder-grid-texture'
|
|
|
|
export function DetailSkeleton() {
|
|
return (
|
|
<div aria-busy="true" className="flex h-0 min-w-0 grow overflow-hidden bg-background-body">
|
|
<aside aria-hidden className="flex h-full w-[248px] shrink-0 bg-background-body p-1">
|
|
<div className="flex min-h-0 flex-1 flex-col overflow-hidden rounded-lg bg-components-panel-bg">
|
|
<div className="flex h-12 shrink-0 items-center gap-1 px-2">
|
|
<SkeletonRectangle className="my-0 size-6 rounded-md opacity-12" />
|
|
<SkeletonRectangle className="my-0 h-3 w-16 rounded-md opacity-20" />
|
|
<div className="ml-auto flex gap-1">
|
|
<SkeletonRectangle className="my-0 size-6 rounded-md opacity-12" />
|
|
<SkeletonRectangle className="my-0 size-6 rounded-md opacity-12" />
|
|
</div>
|
|
</div>
|
|
<div className="flex items-start gap-2 p-3">
|
|
<SkeletonRectangle className="my-0 size-10 shrink-0 rounded-[10px] opacity-20" />
|
|
<div className="flex min-w-0 flex-1 flex-col gap-2 py-1">
|
|
<SkeletonRectangle className="my-0 h-3 w-32 max-w-full rounded-md opacity-20" />
|
|
<SkeletonRectangle className="my-0 h-2 w-24 max-w-full rounded-md opacity-12" />
|
|
</div>
|
|
</div>
|
|
<div className="mx-3 h-px bg-divider-subtle" />
|
|
<div className="flex h-12 shrink-0 items-center justify-between px-3">
|
|
<SkeletonRectangle className="my-0 h-2 w-16 rounded-md opacity-12" />
|
|
<SkeletonRectangle className="my-0 size-6 rounded-md opacity-12" />
|
|
</div>
|
|
<div className="flex flex-col gap-1 px-2">
|
|
<SkeletonRectangle className="my-0 h-8 w-full rounded-lg opacity-20" />
|
|
<SkeletonRectangle className="my-0 h-7 w-4/5 rounded-lg opacity-12" />
|
|
<SkeletonRectangle className="my-0 h-7 w-3/5 rounded-lg opacity-12" />
|
|
</div>
|
|
<div className="mt-auto flex flex-col gap-3 border-t border-divider-subtle p-3">
|
|
<SkeletonRectangle className="my-0 h-2 w-32 max-w-full rounded-md opacity-12" />
|
|
<SkeletonRectangle className="my-0 h-8 w-full rounded-lg opacity-12" />
|
|
</div>
|
|
</div>
|
|
</aside>
|
|
|
|
<main
|
|
aria-hidden
|
|
className="my-1 mr-1 flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden rounded-lg bg-background-default inset-ring-[0.5px] inset-ring-divider-subtle"
|
|
>
|
|
<div className="flex h-11 shrink-0 items-center border-b-[0.5px] border-divider-subtle bg-components-panel-bg-alt px-3">
|
|
<SkeletonRectangle className="my-0 h-3 w-20 rounded-md opacity-20" />
|
|
</div>
|
|
<div className="min-h-0 flex-1 overflow-hidden px-12 py-8">
|
|
<div className="mx-auto flex max-w-[768px] flex-col gap-5">
|
|
<div className="flex flex-col gap-2">
|
|
<SkeletonRectangle className="my-0 h-2 w-12 rounded-md opacity-12" />
|
|
<SkeletonRectangle className="my-0 h-3 w-44 rounded-md opacity-20" />
|
|
</div>
|
|
<div className="flex flex-col gap-2">
|
|
<SkeletonRectangle className="my-0 h-2 w-20 rounded-md opacity-12" />
|
|
<SkeletonRectangle className="my-0 h-3 w-3/4 rounded-md opacity-20" />
|
|
<SkeletonRectangle className="my-0 h-3 w-1/2 rounded-md opacity-12" />
|
|
</div>
|
|
<SkeletonRectangle className="my-0 h-8 w-28 rounded-lg opacity-12" />
|
|
<div className="h-px bg-divider-subtle" />
|
|
<SkeletonRectangle className="my-0 h-4 w-36 rounded-md opacity-20" />
|
|
<div className="flex flex-col gap-3 pt-3">
|
|
<SkeletonRectangle className="my-0 h-3 w-full rounded-md opacity-12" />
|
|
<SkeletonRectangle className="my-0 h-3 w-11/12 rounded-md opacity-12" />
|
|
<SkeletonRectangle className="my-0 h-3 w-4/5 rounded-md opacity-12" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<aside
|
|
aria-hidden
|
|
className="relative my-1 mr-1 flex w-[396px] shrink-0 flex-col overflow-hidden rounded-lg inset-ring-[0.5px] inset-ring-divider-subtle"
|
|
>
|
|
<div className="pointer-events-none absolute inset-0 z-0 bg-linear-to-b from-background-gradient-bg-fill-chat-bg-1 to-background-gradient-bg-fill-chat-bg-2" />
|
|
<SkillBuilderGridTexture className="pointer-events-none absolute top-0 left-0 z-[2]" />
|
|
<SkillBuilderGridTexture className="pointer-events-none absolute bottom-0 left-0 z-[1] origin-center scale-y-[-1]" />
|
|
<div className="relative z-10 flex h-12 shrink-0 items-center justify-between px-4">
|
|
<SkeletonRectangle className="my-0 h-3 w-24 rounded-md opacity-20" />
|
|
<div className="flex gap-2">
|
|
<SkeletonRectangle className="my-0 size-6 rounded-md opacity-12" />
|
|
<SkeletonRectangle className="my-0 size-6 rounded-md opacity-12" />
|
|
</div>
|
|
</div>
|
|
<div className="relative z-10 flex min-h-0 flex-1 flex-col px-4 pb-4">
|
|
<div className="flex flex-1 flex-col items-center justify-center gap-3">
|
|
<SkeletonRectangle className="my-0 size-12 rounded-2xl opacity-20" />
|
|
<SkeletonRectangle className="my-0 h-3 w-52 max-w-full rounded-md opacity-20" />
|
|
<SkeletonRectangle className="my-0 h-2 w-64 max-w-full rounded-md opacity-12" />
|
|
<SkeletonRectangle className="my-0 h-2 w-44 max-w-full rounded-md opacity-12" />
|
|
</div>
|
|
<div className="rounded-xl bg-background-default p-3 shadow-xs">
|
|
<SkeletonRectangle className="my-0 h-3 w-32 rounded-md opacity-12" />
|
|
<div className="mt-8 flex items-center gap-2">
|
|
<SkeletonRectangle className="my-0 h-8 flex-1 rounded-lg opacity-12" />
|
|
<SkeletonRectangle className="my-0 size-8 rounded-lg opacity-20" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</aside>
|
|
</div>
|
|
)
|
|
}
|