mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-05 20:32:27 +00:00
refactor(playback): extract playback helpers to shrink playbackService (1/10)
File-size decomposition (no behavior change). Move the self-contained SimpleEventEmitter and extractWebSeedsFromMagnet (+ its WEBSEED_PARAM_KEYS and the now-sole safeDecodeURIComponent consumer) out of playbackService.js into a new js/services/playbackHelpers.js and import them back. playbackService.js: 1350 -> 1274 lines (now under its original 1289 baseline). Re-recorded the smaller baseline in check-file-size.mjs to lock the reduction. Build + full unit suite green. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
1 parent
c62114557c
commit
76ba750708
3 files changed
+103
-80
No files matched your search
@@ -58,7 +58,7 @@ const GRANDFATHERED = {
|
||||
"js/ui/views/VideoListView.js": 1359,
|
||||
"js/ui/components/UploadModal.js": 1319,
|
||||
"js/ui/components/SimilarContentCard.js": 1303,
|
||||
"js/services/playbackService.js": 1289,
|
||||
"js/services/playbackService.js": 1274,
|
||||
"js/services/authService.js": 1335,
|
||||
"js/ui/zapController.js": 1206,
|
||||
"js/services/r2Service.js": 1194,
|
||||
|
||||
Reference in new issue
Block a user