nico 2958950585 fix(storage): migrate fileStorage handlers and seeder from local disk/Seafile to MinIO
Root cause: images not showing because:
1. seed_assets.ts was listing from Seafile (unreliable, 502 errors)
2. fileStorage create/findUniq/del handlers used local disk (not available in containers)
3. link format in file-storage.json had inconsistent path prefix

Changes:
- seed_assets.ts: list objects from MinIO bucket instead of Seafile API; seed
  link as /api/img/{name}, path as "image" (matches MinIO prefix)
- fileStorage/create.ts: upload image/audio/document to MinIO via putObject;
  remove WIBU_UPLOAD_DIR dependency and all fs.writeFile calls
- fileStorage/findUniq.ts: stream file from MinIO via getObject; remove
  WIBU_UPLOAD_DIR and fs.readFile
- fileStorage/del.ts: delete from MinIO via removeObject; remove fs.unlink
- file-storage.json: fix path field to "image" (was full path); all 80 entries
  already have correct link=/api/img/{name} format

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-23 14:28:08 +08:00
2025-05-19 17:00:43 +08:00
2025-02-15 21:56:18 +08:00
2026-04-23 12:13:25 +08:00
2026-03-06 11:19:45 +08:00
2026-04-20 16:54:19 +08:00
2025-02-16 16:01:12 +08:00
2026-03-12 12:11:10 +08:00
2025-02-15 21:56:18 +08:00
2026-04-23 13:53:17 +08:00
2025-12-16 10:19:15 +08:00
2025-02-21 06:40:29 +08:00
2025-05-23 11:33:59 +08:00
2025-02-15 21:56:18 +08:00
2026-04-23 12:13:25 +08:00
2026-02-05 12:34:31 +08:00
2026-02-05 12:34:31 +08:00
2025-02-16 16:01:12 +08:00
2025-02-16 16:01:12 +08:00
2026-01-23 16:51:35 +08:00
2025-07-18 17:42:10 +08:00

Failed to Generate README

Description
No description provided
Readme 39 MiB
Languages
TypeScript 99.4%
HTML 0.4%