diff --git a/public/config.js b/public/config.js index 011e8630..a0681d06 100644 --- a/public/config.js +++ b/public/config.js @@ -1,6 +1,7 @@ window.__CONFIG__ = { // The URL for the CORS proxy, the URL must NOT end with a slash! - VITE_CORS_PROXY_URL: "CHANGEME", + // If not specified, the onboarding will not allow a "default setup". The user will have to use the extension or set up a proxy themselves + VITE_CORS_PROXY_URL: "", // The READ API key to access TMDB VITE_TMDB_READ_API_KEY: "CHANGEME", diff --git a/src/pages/onboarding/Onboarding.tsx b/src/pages/onboarding/Onboarding.tsx index 8ba0ba19..01ff209f 100644 --- a/src/pages/onboarding/Onboarding.tsx +++ b/src/pages/onboarding/Onboarding.tsx @@ -13,6 +13,7 @@ import { } from "@/pages/onboarding/onboardingHooks"; import { Card, CardContent, Link } from "@/pages/onboarding/utils"; import { PageTitle } from "@/pages/parts/util/PageTitle"; +import { getProxyUrls } from "@/utils/proxyUrls"; function VerticalLine(props: { className?: string }) { return ( @@ -27,6 +28,7 @@ export function OnboardingPage() { const skipModal = useModal("skip"); const { completeAndRedirect } = useRedirectBack(); const { t } = useTranslation(); + const noProxies = getProxyUrls().length === 0; return ( @@ -85,32 +87,34 @@ export function OnboardingPage() { - -

- -
- -
-

- -
- -
+

+
+ +
+ + )}
); diff --git a/src/pages/onboarding/OnboardingExtension.tsx b/src/pages/onboarding/OnboardingExtension.tsx index a0fa035d..db351dda 100644 --- a/src/pages/onboarding/OnboardingExtension.tsx +++ b/src/pages/onboarding/OnboardingExtension.tsx @@ -115,7 +115,7 @@ export function ExtensionStatus(props: { {lastKnownStatus === "unknown" ? : null} - {props.showHelp ? ( + {props.showHelp && props.status !== "success" ? (