feat: add real-time collaboration features with STOMP and SockJS

- Added @stomp/stompjs and sockjs-client dependencies for WebSocket communication.
- Updated routing for pastes to include new endpoint structure.
- Implemented real-time editing in PastePanel using STOMP for collaborative editing.
- Introduced NotificationModal for experimental mode warnings.
- Enhanced NavBar to display connection status.
- Refactored Home and PastePanel components to support new features and improve user experience.
- Updated error handling in DataContext to utilize ErrorContext for better error management.
- Added CSS animations for connection status indication.
This commit is contained in:
2026-03-17 02:25:59 +01:00
parent f29d82f311
commit 924f9626a6
15 changed files with 499 additions and 185 deletions

View File

@@ -4,8 +4,8 @@
"endpoints": {
"pastes": {
"all": "/pastes",
"byId": "/:pasteId",
"byKey": "/:pasteKey"
"byId": "/by-id/:pasteId",
"byKey": "/s/:pasteKey"
}
}
}

View File

@@ -4,8 +4,8 @@
"endpoints": {
"pastes": {
"all": "/pastes",
"byId": "/:pasteId",
"byKey": "/:pasteKey"
"byId": "/by-id/:pasteId",
"byKey": "/s/:pasteKey"
}
}
}