dify/web/app/components/workflow/skill
yyh 8486c675c8
refactor(skill): extract hooks from skill-doc-editor for better separation
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.
2026-01-19 23:25:48 +08:00
..
editor fix: auto default 2026-01-19 18:41:05 +08:00
file-tree refactor(skill): unify root/blank constants and eliminate magic strings 2026-01-19 23:07:49 +08:00
hooks refactor(skill): extract hooks from skill-doc-editor for better separation 2026-01-19 23:25:48 +08:00
utils refactor(skill): unify root/blank constants and eliminate magic strings 2026-01-19 23:07:49 +08:00
constants.ts refactor(skill): unify root/blank constants and eliminate magic strings 2026-01-19 23:07:49 +08:00
editor-area.tsx fix: css 2026-01-15 16:14:51 +08:00
editor-body.tsx fix: css 2026-01-15 16:14:51 +08:00
editor-tab-item.tsx feat(skill): implement VS Code-style preview/pinned tab management 2026-01-16 11:20:49 +08:00
editor-tabs.tsx feat: support save settings 2026-01-16 17:44:40 +08:00
main.tsx feat(skill): implement file tree search with debounced filtering 2026-01-16 14:44:44 +08:00
sidebar-search-add.tsx refactor(skill): unify root/blank constants and eliminate magic strings 2026-01-19 23:07:49 +08:00
sidebar.tsx chore: remove useless props 2026-01-15 11:24:59 +08:00
skill-doc-editor.tsx refactor(skill): extract hooks from skill-doc-editor for better separation 2026-01-19 23:25:48 +08:00
skill-page-layout.tsx chore: remove useless props 2026-01-15 11:24:59 +08:00
type.ts refactor(skill-editor): extract hooks and utils into separate directories 2026-01-15 16:00:42 +08:00