mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
Extract business logic into dedicated hooks to reduce component complexity: - useFileTypeInfo: file type detection (markdown, code, image, video, etc.) - useSkillFileData: data fetching with conditional API calls - useSkillFileSave: save logic with Ctrl+S keyboard shortcut Also fix Vercel best practice: use ternary instead of && for conditional rendering. |
||
|---|---|---|
| .. | ||
| editor | ||
| file-tree | ||
| hooks | ||
| utils | ||
| constants.ts | ||
| editor-area.tsx | ||
| editor-body.tsx | ||
| editor-tab-item.tsx | ||
| editor-tabs.tsx | ||
| main.tsx | ||
| sidebar-search-add.tsx | ||
| sidebar.tsx | ||
| skill-doc-editor.tsx | ||
| skill-page-layout.tsx | ||
| type.ts | ||