NapCatQQ/packages/napcat-webui-frontend
香草味的纳西妲喵 ebe3e9c63c
feat(webui): 新增配置全量备份与恢复功能。 (#1571)
* feat(webui): 新增配置全量备份与恢复功能。

* chore: Remove dependencies "archiver"

* feat(webui): 增加上传文件大小限制配置并优化上传处理

* Use memory-based zip import/export and multer

Replace disk-based zip handling with in-memory streaming to avoid temp files: remove unzipper/@types(unzipper) deps from package.json; update BackupConfig to stream-export configs with compressing.zip.Stream and to import by extracting uploaded zip buffer via compressing.zip.UncompressStream into in-memory Buffers. Backup of existing config is kept in-memory instead of copying to tmp, and imported files are written with path normalization checks. Router changed to use multer.memoryStorage() for uploads (remove dynamic tmp/disk upload logic and uploadSizeLimit usage). Also remove uploadSizeLimit from config schema.

* Revert "chore: Remove dependencies "archiver""

This reverts commit 890736d3c7.

* Regenerate pnpm-lock.yaml (prune entries)

Regenerated pnpm-lock.yaml to reflect the current dependency resolution. This update prunes many removed/unused lock entries (notably archiver, unzipper and related @types, older/deprecated packages such as rimraf v2/fstream/bluebird, etc.) and removes platform 'libc' metadata from several platform-specific packages. There are no package.json changes; run `pnpm install` to sync your local node_modules with the updated lockfile.

---------

Co-authored-by: 手瓜一十雪 <nanaeonn@outlook.com>
2026-02-01 10:21:19 +08:00
..
public Refactor schema ID handling and reduce parse depth 2026-01-28 16:01:43 +08:00
scripts Remove unused dependencies and optimize Monaco workers 2025-12-24 15:32:21 +08:00
src feat(webui): 新增配置全量备份与恢复功能。 (#1571) 2026-02-01 10:21:19 +08:00
.env feat: 优化webui界面和文件管理器 (#1472) 2026-01-01 21:40:39 +08:00
.gitignore Add pnpm-lock.yaml and update .gitignore 2025-11-30 18:08:22 +08:00
.npmrc refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
index.html refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
LICENSE refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
package.json Add payload and return schemas to OneBot actions (#1549) 2026-01-27 19:07:17 +08:00
postcss.config.js Add ESLint config and update code style 2025-11-15 16:21:59 +08:00
README.md refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
tailwind.config.js Remove unused dependencies and optimize Monaco workers 2025-12-24 15:32:21 +08:00
tsconfig.json refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
tsconfig.node.json refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
vercel.json refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
vite-env.d.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
vite.config.ts feat: 优化离线重连机制,支持通过前端实现重新登录 2026-01-17 15:38:24 +08:00

NapCat WebUI

功能

  • WebUI登录
  • QQ登录
  • 网络配置
  • OneBot/WebUI配置
  • 日志查看(实时日志、历史日志)
  • HTTP调试
  • WS调试
  • 在线音乐播放器,支持网易云音乐歌单(大屏在页面右下角,小屏在页面下方)

如果你有更多功能需求,欢迎在 issue 中提出。

License

MIT

Related Projects

Thanks to

感谢群友“维拉”提供的在线音乐API。