From 8fe32c68cefe02a48f41a09895895ee0c9237eb8 Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Thu, 20 Feb 2025 19:07:38 -0700 Subject: [PATCH] require env config for fedapi stuff --- src/pages/onboarding/Onboarding.tsx | 147 ++++++++++--------- src/pages/parts/settings/ConnectionsPart.tsx | 116 ++++++++------- src/pages/parts/settings/SetupPart.tsx | 15 +- src/setup/config.ts | 4 + 4 files changed, 153 insertions(+), 129 deletions(-) diff --git a/src/pages/onboarding/Onboarding.tsx b/src/pages/onboarding/Onboarding.tsx index 97d3ac7a..a05e4150 100644 --- a/src/pages/onboarding/Onboarding.tsx +++ b/src/pages/onboarding/Onboarding.tsx @@ -25,85 +25,89 @@ import { MiniCardContent, } from "@/pages/onboarding/utils"; import { PageTitle } from "@/pages/parts/util/PageTitle"; +import { conf } from "@/setup/config"; import { useAuthStore } from "@/stores/auth"; import { getProxyUrls } from "@/utils/proxyUrls"; import { PopupModal } from "../parts/home/PopupModal"; -export function OptionalDropdown() { +export function FEDAPISetup() { const { t } = useTranslation(); const [isExpanded, setIsExpanded] = useState(false); const febboxToken = useAuthStore((s) => s.febboxToken); const setFebboxToken = useAuthStore((s) => s.setFebboxToken); - return ( -
- Optional: FED API (Febbox) token -
-
-
+ Optional: FED API (Febbox) token +
- 1. Go to
- 2. Open DevTools or inspect the page
-
- 3. Go to Application tab → Cookies
-
- 4. Copy the "ui" cookie.
-
- 5. Close the tab, but do NOT logout!
+ Bring your own Febbox account to get the best streaming with
+ 4K quality, Dolby Atmos, and the best (fastest) load times!
- (Do not share this token!) -
- {t("settings.connections.febbox.tokenLabel", "Token")} -
-
+
+ 1. Go to
+ 2. Open DevTools or inspect the page
+
+ 3. Go to Application tab → Cookies
+
+ 4. Copy the "ui" cookie.
+
+ 5. Close the tab, but do NOT logout!
+
+ (Do not share this token!) +
++ {t("settings.connections.febbox.tokenLabel", "Token")} +
+- Optional: FED API (Febbox) token -
-
-
+ Optional: FED API (Febbox) token +
- 1. Go to
- 2. Open DevTools or inspect the page
-
- 3. Go to Application tab → Cookies
-
- 4. Copy the "ui" cookie.
-
- 5. Close the tab, but do NOT logout!
+ Bring your own Febbox account to get the best streaming with 4K
+ quality, Dolby Atmos, and the best (fastest) load times!
(Do not share this token!)
- {t("settings.connections.febbox.tokenLabel", "Token")} -
-
+
+ 1. Go to
+ 2. Open DevTools or inspect the page
+
+ 3. Go to Application tab → Cookies
+
+ 4. Copy the "ui" cookie.
+
+ 5. Close the tab, but do NOT logout!
+
+ (Do not share this token!) +
++ {t("settings.connections.febbox.tokenLabel", "Token")} +
+