mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-03 11:22:25 +00:00
[decompose] Extract profile modal logic
Extract contracts, default settings, and helpers from `js/ui/profileModalController.js` to `js/ui/profileModalContract.js`. This reduces the file size of `js/ui/profileModalController.js` by 884 lines. - Moved `SERVICE_CONTRACT`, `STATE_CONTRACT` and their builders. - Moved internal settings helpers (`createInternalDefaultNwcSettings`, etc). - Moved badge helpers (`resolveProviderBadgeClass`). - Updated `scripts/check-file-size.mjs` with new line count. - Cleaned up imports in `profileModalController.js`. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
19dc3559de
commit
319e2f4c9e
3 files changed
+930
-898
No files matched your search
@@ -26,7 +26,7 @@ const GROWTH_MARGIN = 50; // lines — allowlisted files may grow by this much f
|
||||
// These files are known to be oversized and are decomposition targets.
|
||||
// They must NOT grow beyond (recorded + GROWTH_MARGIN).
|
||||
const GRANDFATHERED = {
|
||||
"js/ui/profileModalController.js": 14159,
|
||||
"js/ui/profileModalController.js": 13275,
|
||||
"js/ui/components/VideoModal.js": 6284,
|
||||
"js/app.js": 5602,
|
||||
"js/channelProfile.js": 5529,
|
||||
|
||||
Reference in new issue
Block a user