mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-30 17:32:26 +00:00
🧹 cleanup: remove unused configuration imports from js/app.js
Identified and removed several unused named imports from `./config.js`, `./constants.js`, and `./lists.js` in `js/app.js`. Unused from config.js: isDevMode, ADMIN_SUPER_NPUB, ADMIN_DM_IMAGE_URL, MAX_WALLET_DEFAULT_ZAP, ALLOW_NSFW_CONTENT. Unused from constants.js: URL_FIRST_ENABLED, getTrustedSpamHideThreshold, DEFAULT_AUTOPLAY_BLOCK_THRESHOLD, DEFAULT_BLUR_THRESHOLD, DEFAULT_TRUSTED_MUTE_HIDE_THRESHOLD, DEFAULT_TRUSTED_SPAM_HIDE_THRESHOLD. Unused from lists.js: ADMIN_INITIAL_EVENT_BLACKLIST. These symbols were imported but not utilized within the file, or were erroneously referenced via `this.` when the intended value was the imported constant (which remained unused). Verified with existing unit tests and manual inspection. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
b00ca0b3b3
commit
693ff77a5e
1 file changed
-12
@@ -5,24 +5,13 @@ import { recordVideoView } from "./nostrViewEventsFacade.js";
|
||||
import { torrentClient } from "./webtorrent.js";
|
||||
import { emit } from "./embedDiagnostics.js";
|
||||
import {
|
||||
isDevMode,
|
||||
ADMIN_SUPER_NPUB,
|
||||
ADMIN_DM_IMAGE_URL,
|
||||
BITVID_WEBSITE_URL,
|
||||
MAX_WALLET_DEFAULT_ZAP,
|
||||
ALLOW_NSFW_CONTENT,
|
||||
} from "./config.js";
|
||||
import { accessControl } from "./accessControl.js";
|
||||
import { extractBtihFromMagnet, safeDecodeMagnet } from "./magnetUtils.js";
|
||||
import { deriveTorrentPlaybackConfig } from "./playbackUtils.js";
|
||||
import {
|
||||
URL_FIRST_ENABLED,
|
||||
getTrustedMuteHideThreshold,
|
||||
getTrustedSpamHideThreshold,
|
||||
DEFAULT_AUTOPLAY_BLOCK_THRESHOLD,
|
||||
DEFAULT_BLUR_THRESHOLD,
|
||||
DEFAULT_TRUSTED_MUTE_HIDE_THRESHOLD,
|
||||
DEFAULT_TRUSTED_SPAM_HIDE_THRESHOLD,
|
||||
} from "./constants.js";
|
||||
import { attachHealthBadges } from "./gridHealth.js";
|
||||
import { attachUrlHealthBadges } from "./urlHealthObserver.js";
|
||||
@@ -30,7 +19,6 @@ import { updateVideoCardSourceVisibility } from "./utils/cardSourceVisibility.js
|
||||
import { collectVideoTags } from "./utils/videoTags.js";
|
||||
import { normalizeHashtag } from "./utils/hashtagNormalization.js";
|
||||
import { sanitizeProfileMediaUrl } from "./utils/profileMedia.js";
|
||||
import { ADMIN_INITIAL_EVENT_BLACKLIST } from "./lists.js";
|
||||
import { userBlocks } from "./userBlocks.js";
|
||||
import { relayManager } from "./relayManager.js";
|
||||
import {
|
||||
|
||||
Reference in new issue
Block a user