memos/web/src
Steven 1cf047707b refactor: migrate binary file serving from gRPC to dedicated HTTP fileserver
Migrates attachment and avatar binary serving from gRPC endpoints to a new dedicated HTTP fileserver package, fixing Safari video playback issues and improving architectural separation.

Key changes:
- Created server/router/fileserver package for all binary file serving
- Removed GetAttachmentBinary and GetUserAvatar gRPC endpoints from proto
- Implemented native HTTP handlers with full range request support
- Added authentication support (session cookies + JWT) to fileserver
- New avatar endpoint supports lookup by user ID or username
- Eliminated duplicate auth constants (imports from api/v1)

HTTP endpoints:
- Attachments: /file/attachments/:uid/:filename (unchanged URL)
- Avatars: /file/users/:identifier/avatar (new URL format)

This fixes Safari video/audio playback by using http.ServeContent() which properly handles HTTP 206 Partial Content responses and range request headers.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-09 08:53:52 +08:00
..
components fix(ui): fix todo command does nothing (#5329) 2025-12-09 08:20:57 +08:00
helpers chore: streamline MemoEditor components and remove unused code 2025-11-30 12:30:00 +08:00
hooks fix(web): fix infinite loop in MemoEditor and improve React/MobX integration 2025-12-01 08:54:40 +08:00
layouts fix(web): resolve tag sidebar filtering and reactivity issues 2025-11-25 22:17:01 +08:00
lib chore(web): migrate from ESLint+Prettier to Biome 2025-11-14 23:58:07 +08:00
locales chore: add 'auto-expand' translation in zh-Hans.json (#5326) 2025-12-08 21:03:57 +08:00
pages feat(auth): add PKCE support and enhance OAuth security 2025-12-01 00:04:26 +08:00
router chore(web): migrate from ESLint+Prettier to Biome 2025-11-14 23:58:07 +08:00
store refactor: simplify theme/locale to user preferences and improve initialization 2025-12-02 09:08:46 +08:00
themes feat: add midnight theme (#5288) 2025-11-27 21:21:57 +08:00
types refactor: migrate binary file serving from gRPC to dedicated HTTP fileserver 2025-12-09 08:53:52 +08:00
utils refactor: simplify theme/locale to user preferences and improve initialization 2025-12-02 09:08:46 +08:00
App.tsx refactor: simplify theme/locale to user preferences and improve initialization 2025-12-02 09:08:46 +08:00
grpcweb.ts refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
i18n.ts feat: add norwegian bokmål (nb) translation (#4561) 2025-03-27 13:14:12 +08:00
index.css fix(web): refactor task list styles to follow GitHub standard (#5253) 2025-11-14 23:37:00 +08:00
main.tsx refactor: simplify theme/locale to user preferences and improve initialization 2025-12-02 09:08:46 +08:00