diff --git a/packages/frontend/src/app/main-sidebar.tsx b/packages/frontend/src/app/main-sidebar.tsx index 22e0bd6d..fc2724dc 100644 --- a/packages/frontend/src/app/main-sidebar.tsx +++ b/packages/frontend/src/app/main-sidebar.tsx @@ -126,16 +126,12 @@ export function MainSidebar() { isCurrent: selectedMenu === 'formatter', id: 'formatter', }, - ...(mode === 'pro' - ? [ - { - name: 'Proxy', - iconType: BiServer, - isCurrent: selectedMenu === 'proxy', - id: 'proxy', - }, - ] - : []), + { + name: 'Proxy', + iconType: BiServer, + isCurrent: selectedMenu === 'proxy', + id: 'proxy', + }, { name: 'Miscellaneous', iconType: BiCog, diff --git a/packages/frontend/src/components/menu/proxy.tsx b/packages/frontend/src/components/menu/proxy.tsx index 458b433b..b739d684 100644 --- a/packages/frontend/src/components/menu/proxy.tsx +++ b/packages/frontend/src/components/menu/proxy.tsx @@ -14,6 +14,7 @@ import { Button } from '../ui/button'; import MarkdownLite from '../shared/markdown-lite'; import { PageControls } from '../shared/page-controls'; import { PasswordInput } from '../ui/password-input'; +import { useMode } from '@/context/mode'; type ProxyServiceId = keyof typeof constants.PROXY_SERVICE_DETAILS; type ProxyConfig = { @@ -39,6 +40,7 @@ export function ProxyMenu() { function Content() { const { status } = useStatus(); const { userData, setUserData } = useUserData(); + const { mode } = useMode(); const details = constants.PROXY_SERVICE_DETAILS; // Effect to initialize values from userData/defaults/forced @@ -214,76 +216,80 @@ function Content() { )} -
- Configure this only when running {selectedProxyDetails?.name}{' '} - locally with a proxy service. Leave empty if{' '} - {selectedProxyDetails?.name} is configured locally without a proxy - server or if it's hosted on a remote server. -
-+ Configure this only when running {selectedProxyDetails?.name}{' '} + locally with a proxy service. Leave empty if{' '} + {selectedProxyDetails?.name} is configured locally without a + proxy server or if it's hosted on a remote server. +
+- Only streams (that are detected to be) from these services will be - proxied. Select None to enable proxying of streams that are not - detected to be from a service. -
-+ Only streams (that are detected to be) from these services will + be proxied. Select None to enable proxying of streams that are + not detected to be from a service. +
+- Only streams from these addons will be proxied -
-+ Only streams from these addons will be proxied +
+