Remove Febbox token backend sync

This commit is contained in:
Pas 2025-02-17 21:25:48 -07:00
parent 0173bb6cce
commit 6d65e75f6a
4 changed files with 0 additions and 10 deletions

View file

@ -8,7 +8,6 @@ export interface SettingsInput {
applicationTheme?: string | null; applicationTheme?: string | null;
defaultSubtitleLanguage?: string; defaultSubtitleLanguage?: string;
proxyUrls?: string[] | null; proxyUrls?: string[] | null;
febboxToken?: string | null;
} }
export interface SettingsResponse { export interface SettingsResponse {
@ -16,7 +15,6 @@ export interface SettingsResponse {
applicationLanguage?: string | null; applicationLanguage?: string | null;
defaultSubtitleLanguage?: string | null; defaultSubtitleLanguage?: string | null;
proxyUrls?: string[] | null; proxyUrls?: string[] | null;
febboxToken?: string | null;
} }
export function updateSettings( export function updateSettings(

View file

@ -21,7 +21,6 @@ export function useAuthData() {
const setAccount = useAuthStore((s) => s.setAccount); const setAccount = useAuthStore((s) => s.setAccount);
const removeAccount = useAuthStore((s) => s.removeAccount); const removeAccount = useAuthStore((s) => s.removeAccount);
const setProxySet = useAuthStore((s) => s.setProxySet); const setProxySet = useAuthStore((s) => s.setProxySet);
const setFebboxToken = useAuthStore((s) => s.setFebboxToken);
const clearBookmarks = useBookmarkStore((s) => s.clear); const clearBookmarks = useBookmarkStore((s) => s.clear);
const clearProgress = useProgressStore((s) => s.clear); const clearProgress = useProgressStore((s) => s.clear);
const setTheme = useThemeStore((s) => s.setTheme); const setTheme = useThemeStore((s) => s.setTheme);
@ -86,10 +85,6 @@ export function useAuthData() {
if (settings.proxyUrls) { if (settings.proxyUrls) {
setProxySet(settings.proxyUrls); setProxySet(settings.proxyUrls);
} }
if (settings.febboxToken) {
setFebboxToken(settings.febboxToken);
}
}, },
[ [
replaceBookmarks, replaceBookmarks,
@ -98,7 +93,6 @@ export function useAuthData() {
importSubtitleLanguage, importSubtitleLanguage,
setTheme, setTheme,
setProxySet, setProxySet,
setFebboxToken,
], ],
); );

View file

@ -227,7 +227,6 @@ export function SettingsPage() {
applicationLanguage: state.appLanguage.state, applicationLanguage: state.appLanguage.state,
applicationTheme: state.theme.state, applicationTheme: state.theme.state,
proxyUrls: state.proxyUrls.state?.filter((v) => v !== "") ?? null, proxyUrls: state.proxyUrls.state?.filter((v) => v !== "") ?? null,
febboxToken: state.febboxToken.state,
}); });
} }
if (state.deviceName.changed) { if (state.deviceName.changed) {

View file

@ -80,7 +80,6 @@ export function VerifyPassphrase(props: VerifyPassphraseProps) {
defaultSubtitleLanguage: defaultSubtitleLanguage ?? undefined, defaultSubtitleLanguage: defaultSubtitleLanguage ?? undefined,
applicationTheme: applicationTheme ?? undefined, applicationTheme: applicationTheme ?? undefined,
proxyUrls: undefined, proxyUrls: undefined,
febboxToken: undefined,
}); });
await restore(account); await restore(account);