NapCatQQ/packages
H3CoF6 246269b519
feat: Support custom filename and cover image for Flash Transfer (#1544)
* feat: support thumbnail for flash-transfer

* fix: fix get thumbnail path unknown type error

* Refactor flash module types and enums

Standardized TypeScript interface property formatting in flash.ts, flash data, and wrapper files. Introduced the UploadSceneType enum for upload scene types, replacing hardcoded numeric values. Improved type annotations and consistency across the flash API and related data structures.

* Update arg type in NodeQQNTWrapperUtil interface

Changed the type of the 'arg' parameter in the NodeQQNTWrapperUtil interface from optional number to 'number | null | undefined' for improved type clarity.

* Refactor flash scene type and update method params

Introduced BusiScene enum for sceneType in FileListInfoRequests to improve type safety. Renamed parameters in getFileThumbSavePathForSend for better clarity.

* Refactor downloadSceneType to use enum type

Replaced numeric downloadSceneType fields with the DownloadSceneType enum in relevant interfaces. Updated NodeIKernelFlashTransferService method signatures to use DownloadSceneType for download operations, improving type safety and code clarity.

* refactor: remove thumbnail dependency for QQ resource icons

* fix: remove useless console.log

---------

Co-authored-by: 手瓜一十雪 <nanaeonn@outlook.com>
2026-01-25 09:51:43 +08:00
..
napcat-common Reduce mirror timeouts and use fast mirror cache 2026-01-18 14:34:08 +08:00
napcat-core feat: Support custom filename and cover image for Flash Transfer (#1544) 2026-01-25 09:51:43 +08:00
napcat-develop Disable multi-process in development environment 2026-01-17 15:12:30 +08:00
napcat-framework Update loadQQWrapper to accept QQMainPath argument 2026-01-22 14:49:17 +08:00
napcat-image-size Refactor TypeScript configs to use shared base 2025-11-15 14:00:27 +08:00
napcat-napi-loader refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
napcat-native Update ffmpegAddon binary for darwin arm64 2026-01-22 14:53:58 +08:00
napcat-onebot feat: Support custom filename and cover image for Flash Transfer (#1544) 2026-01-25 09:51:43 +08:00
napcat-plugin Add support for version 9.9.26-44175 and fix import type 2026-01-01 10:32:59 +08:00
napcat-plugin-builtin Add uptime display to version info message 2026-01-22 14:22:04 +08:00
napcat-protobuf Add ESLint config and update code style 2025-11-15 16:21:59 +08:00
napcat-pty Add backend and frontend support for NapCat auto-update 2025-11-19 21:05:08 +08:00
napcat-qrcode Remove unused dependencies from package.json 2025-11-16 11:02:21 +08:00
napcat-shell feat: 修复mac问题 2026-01-22 14:42:42 +08:00
napcat-shell-loader Pass CLI args to worker and update login script example 2026-01-17 18:54:18 +08:00
napcat-test Add ESLint config and update code style 2025-11-15 16:21:59 +08:00
napcat-universal Refactor TypeScript configs to use shared base 2025-11-15 14:00:27 +08:00
napcat-vite feat: 优化离线重连机制,支持通过前端实现重新登录 2026-01-17 15:38:24 +08:00
napcat-webui-backend Add plugin store feature to backend and frontend 2026-01-24 12:00:26 +08:00
napcat-webui-frontend Add token check exception for localhost servers 2026-01-24 12:24:57 +08:00