-
Notifications
You must be signed in to change notification settings - Fork 285
Expand file tree
/
Copy pathdefaults.ts
More file actions
64 lines (58 loc) · 1.5 KB
/
defaults.ts
File metadata and controls
64 lines (58 loc) · 1.5 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import {
type AppearanceSettingsState,
type AuthState,
type FilterSettingsState,
GroupBy,
type NotificationSettingsState,
OpenPreference,
type SettingsState,
type SystemSettingsState,
Theme,
} from '../types';
export const defaultAuth: AuthState = {
accounts: [],
};
const defaultAppearanceSettings: AppearanceSettingsState = {
theme: Theme.SYSTEM,
increaseContrast: false,
zoomPercentage: 100,
showAccountHeader: false,
wrapNotificationTitle: false,
};
const defaultNotificationSettings: NotificationSettingsState = {
groupBy: GroupBy.REPOSITORY,
fetchAllNotifications: true,
detailedNotifications: true,
showPills: true,
showNumber: true,
participating: false,
markAsDoneOnOpen: false,
markAsDoneOnUnsubscribe: false,
delayNotificationState: false,
};
const defaultSystemSettings: SystemSettingsState = {
openLinks: OpenPreference.FOREGROUND,
keyboardShortcut: true,
showNotificationsCountInTray: true,
showNotifications: true,
playSound: true,
notificationVolume: 20,
useAlternateIdleIcon: false,
openAtStartup: false,
};
export const defaultFilters: FilterSettingsState = {
filterUserTypes: [],
filterIncludeHandles: [],
filterExcludeHandles: [],
filterIncludeOrganizations: [],
filterExcludeOrganizations: [],
filterSubjectTypes: [],
filterStates: [],
filterReasons: [],
};
export const defaultSettings: SettingsState = {
...defaultAppearanceSettings,
...defaultNotificationSettings,
...defaultSystemSettings,
...defaultFilters,
};