Update AniList docs

This commit is contained in:
2026-02-16 23:03:51 -08:00
parent 1d7406f3d4
commit 5602d751eb
9 changed files with 681 additions and 3 deletions

View File

@@ -20,12 +20,20 @@ import type { BaseWindowTracker } from "../window-trackers";
export interface AnilistSecretResolutionState {
status: "not_checked" | "resolved" | "error";
source: "none" | "literal" | "command";
source: "none" | "literal" | "stored";
message: string | null;
resolvedAt: number | null;
errorAt: number | null;
}
export interface AnilistRetryQueueState {
pending: number;
ready: number;
deadLetter: number;
lastAttemptAt: number | null;
lastError: string | null;
}
export interface AppState {
yomitanExt: Extension | null;
yomitanSettingsWindow: BrowserWindow | null;
@@ -68,6 +76,7 @@ export interface AppState {
jlptLevelLookup: (term: string) => JlptLevel | null;
frequencyRankLookup: FrequencyDictionaryLookup;
anilistSetupPageOpened: boolean;
anilistRetryQueueState: AnilistRetryQueueState;
}
export interface AppStateInitialValues {
@@ -138,6 +147,13 @@ export function createAppState(values: AppStateInitialValues): AppState {
jlptLevelLookup: () => null,
frequencyRankLookup: () => null,
anilistSetupPageOpened: false,
anilistRetryQueueState: {
pending: 0,
ready: 0,
deadLetter: 0,
lastAttemptAt: null,
lastError: null,
},
};
}