diff --git a/.env.defaults b/.env.defaults index 4f2890b6e..893415239 100644 --- a/.env.defaults +++ b/.env.defaults @@ -27,6 +27,9 @@ SIMPLE_SITE=false SHOW_ADS=true YRBL_HAPPY_IMG_URL=https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-happy/7aa50a7e5adaf48691935d55e45d697547392929/839d9a YRBL_SAD_IMG_URL=https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-sad/c2d9649633d974e5ffb503925e1f17d951f1bd0f/f262dd + + + ENABLE_COMMENT_REACTIONS=true ENABLE_FILE_REACTIONS=false ENABLE_CREATOR_REACTIONS=false @@ -65,3 +68,25 @@ AUTO_FOLLOW_CHANNELS=lbry://@lbry#3fda836a92faaceedfe398225fb9b2ee2ed1f01a # Stripe STRIPE_PUBLIC_KEY='pk_test_NoL1JWL7i1ipfhVId5KfDZgo' + + +# SIMPLE_SITE REPLACEMENTS +#ENABLE_MATURE=true + +#VIDEO_ENABLED=true +#AUDIO_ENABLED=true +#POSTS_ENABLED=true +#IMAGES_ENABLED=true +#FILES_ENABLED=true +#MODELS_ENABLED=true + +#ENABLE_LINK_TO_APP=true +#FORCE_ANALYTiCS=true +#ENABLE_ADVACNED_FILTER=true +#ENABLE_PAID_CONTENT=true +#USE_FOOTER=true +#USE_DISCOVER_WHITELIST=false +#ENABLE_WILD_WEST=false +ENABLE_UI_NOTIFICATIONS=false +#FULL_SIDE_LINKS=true +# diff --git a/config.js b/config.js index f96f290b6..42319e92b 100644 --- a/config.js +++ b/config.js @@ -50,6 +50,7 @@ const config = { PINNED_LABEL_2: process.env.PINNED_LABEL_2, KNOWN_APP_DOMAINS: process.env.KNOWN_APP_DOMAINS ? process.env.KNOWN_APP_DOMAINS.split(',') : [], STRIPE_PUBLIC_KEY: process.env.STRIPE_PUBLIC_KEY, + ENABLE_UI_NOTIFICATIONS: process.env.ENABLE_UI_NOTIFICATIONS === 'true', }; config.URL_LOCAL = `http://localhost:${config.WEB_SERVER_PORT}`; diff --git a/ui/component/subscribeButton/view.jsx b/ui/component/subscribeButton/view.jsx index 3352cba67..98dd8f5d3 100644 --- a/ui/component/subscribeButton/view.jsx +++ b/ui/component/subscribeButton/view.jsx @@ -5,6 +5,7 @@ import { parseURI } from 'lbry-redux'; import Button from 'component/button'; import useHover from 'effects/use-hover'; import { useIsMobile } from 'effects/use-screensize'; +import { ENABLE_UI_NOTIFICATIONS } from 'config'; type SubscriptionArgs = { channelName: string, @@ -43,7 +44,7 @@ export default function SubscribeButton(props: Props) { const isMobile = useIsMobile(); let isHovering = useHover(buttonRef); isHovering = isMobile ? true : isHovering; - const uiNotificationsEnabled = user && user.experimental_ui; + const uiNotificationsEnabled = (user && user.experimental_ui) || ENABLE_UI_NOTIFICATIONS; const { channelName: rawChannelName } = parseURI(uri); const { channelName } = parseURI(permanentUrl);