mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +00:00
Remove Febbox token backend sync
This commit is contained in:
parent
0173bb6cce
commit
6d65e75f6a
4 changed files with 0 additions and 10 deletions
|
|
@ -8,7 +8,6 @@ export interface SettingsInput {
|
|||
applicationTheme?: string | null;
|
||||
defaultSubtitleLanguage?: string;
|
||||
proxyUrls?: string[] | null;
|
||||
febboxToken?: string | null;
|
||||
}
|
||||
|
||||
export interface SettingsResponse {
|
||||
|
|
@ -16,7 +15,6 @@ export interface SettingsResponse {
|
|||
applicationLanguage?: string | null;
|
||||
defaultSubtitleLanguage?: string | null;
|
||||
proxyUrls?: string[] | null;
|
||||
febboxToken?: string | null;
|
||||
}
|
||||
|
||||
export function updateSettings(
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ export function useAuthData() {
|
|||
const setAccount = useAuthStore((s) => s.setAccount);
|
||||
const removeAccount = useAuthStore((s) => s.removeAccount);
|
||||
const setProxySet = useAuthStore((s) => s.setProxySet);
|
||||
const setFebboxToken = useAuthStore((s) => s.setFebboxToken);
|
||||
const clearBookmarks = useBookmarkStore((s) => s.clear);
|
||||
const clearProgress = useProgressStore((s) => s.clear);
|
||||
const setTheme = useThemeStore((s) => s.setTheme);
|
||||
|
|
@ -86,10 +85,6 @@ export function useAuthData() {
|
|||
if (settings.proxyUrls) {
|
||||
setProxySet(settings.proxyUrls);
|
||||
}
|
||||
|
||||
if (settings.febboxToken) {
|
||||
setFebboxToken(settings.febboxToken);
|
||||
}
|
||||
},
|
||||
[
|
||||
replaceBookmarks,
|
||||
|
|
@ -98,7 +93,6 @@ export function useAuthData() {
|
|||
importSubtitleLanguage,
|
||||
setTheme,
|
||||
setProxySet,
|
||||
setFebboxToken,
|
||||
],
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -227,7 +227,6 @@ export function SettingsPage() {
|
|||
applicationLanguage: state.appLanguage.state,
|
||||
applicationTheme: state.theme.state,
|
||||
proxyUrls: state.proxyUrls.state?.filter((v) => v !== "") ?? null,
|
||||
febboxToken: state.febboxToken.state,
|
||||
});
|
||||
}
|
||||
if (state.deviceName.changed) {
|
||||
|
|
|
|||
|
|
@ -80,7 +80,6 @@ export function VerifyPassphrase(props: VerifyPassphraseProps) {
|
|||
defaultSubtitleLanguage: defaultSubtitleLanguage ?? undefined,
|
||||
applicationTheme: applicationTheme ?? undefined,
|
||||
proxyUrls: undefined,
|
||||
febboxToken: undefined,
|
||||
});
|
||||
|
||||
await restore(account);
|
||||
|
|
|
|||
Loading…
Reference in a new issue