dify/web/app/components/workflow/skill/utils
yyh ea88bcfbd2
feat: add ZIP skill import with client-side extraction
Add import skill modal that accepts .zip files via drag-and-drop or
file picker, extracts them client-side using fflate, validates structure
and security constraints, then batch uploads via presigned URLs.

- Add fflate dependency for browser-side ZIP decompression
- Create zip-extract.ts with fflate filter API for validation
- Create zip-to-upload-tree.ts for BatchUploadNodeInput tree building
- Create import-skill-modal.tsx with drag-and-drop support
- Lazy-load ImportSkillModal via next/dynamic for bundle optimization
- Add en-US and zh-Hans i18n keys for import modal
2026-01-30 21:54:00 +08:00
..
drag-utils.ts feat: unified drag-and-drop for skill file tree 2026-01-20 18:09:08 +08:00
file-utils.ts fix: strip leading dot from file extension before matching 2026-01-29 17:07:40 +08:00
skill-upload-utils.ts feat(skill): add preprocessing for markdown files before upload 2026-01-28 20:17:21 +08:00
tree-utils.ts refactor(app-asset): migrate file upload to presigned URL and batch upload 2026-01-23 15:11:04 +08:00
zip-extract.ts feat: add ZIP skill import with client-side extraction 2026-01-30 21:54:00 +08:00
zip-to-upload-tree.ts feat: add ZIP skill import with client-side extraction 2026-01-30 21:54:00 +08:00