-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.ts
29 lines (26 loc) · 1.21 KB
/
options.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { STORAGE_KEY } from '~/constants/commands';
import type { CheckedAlgorithmIdsResponse } from '~/types/algorithm';
import type { QuickSlotsResponse } from '~/types/randomDefense';
import type { TotamjungTheme } from '~/types/totamjungTheme';
import type { HiderOptionsResponse } from '~/types/algorithm';
import type { RandomDefenseHistoryResponse } from '~/types/randomDefense';
import type { FontNoResponse } from '~/types/font';
import type { TimersResponse } from '~/types/algorithm';
export interface OptionsDataResponse {
[STORAGE_KEY.CHECKED_ALGORITHM_IDS]: CheckedAlgorithmIdsResponse['checkedIds'];
[STORAGE_KEY.QUICK_SLOTS]: QuickSlotsResponse;
[STORAGE_KEY.TOTAMJUNG_THEME]: TotamjungTheme;
[STORAGE_KEY.HIDER_OPTIONS]: HiderOptionsResponse;
[STORAGE_KEY.RANDOM_DEFENSE_HISTORY]: RandomDefenseHistoryResponse['randomDefenseHistory'];
[STORAGE_KEY.IS_TIER_HIDDEN]: RandomDefenseHistoryResponse['isHidden'];
[STORAGE_KEY.FONT_NO]: FontNoResponse['fontNo'];
[STORAGE_KEY.TIMERS]: TimersResponse['timers'];
[STORAGE_KEY.DATA_VERSION]: 'v1.2';
}
export interface OptionsSectionProps {
show: boolean;
}
export type OptionsNavCategory =
| 'algorithmHider'
| 'randomDefense'
| 'appearanceAndDataManage';