diff options
Diffstat (limited to 'src/stores.types.ts')
-rw-r--r-- | src/stores.types.ts | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/src/stores.types.ts b/src/stores.types.ts index 462d862d9..24eefc416 100644 --- a/src/stores.types.ts +++ b/src/stores.types.ts | |||
@@ -76,25 +76,34 @@ interface TypedStore { | |||
76 | 76 | ||
77 | interface AppStore extends TypedStore { | 77 | interface AppStore extends TypedStore { |
78 | accentColor: string; | 78 | accentColor: string; |
79 | adaptableDarkMode: boolean; | ||
79 | progressbarAccentColor: string; | 80 | progressbarAccentColor: string; |
80 | authRequestFailed: () => void; | 81 | authRequestFailed: () => void; |
81 | autoLaunchOnStart: () => void; | 82 | autoLaunchOnStart: () => void; |
82 | automaticUpdates: boolean; | 83 | automaticUpdates: boolean; |
83 | clearAppCacheRequest: () => void; | 84 | clearAppCacheRequest: () => void; |
85 | clipboardNotifications: boolean; | ||
86 | darkMode: boolean; | ||
84 | dictionaries: []; | 87 | dictionaries: []; |
88 | enableSpellchecking: boolean; | ||
85 | fetchDataInterval: 4; | 89 | fetchDataInterval: 4; |
86 | get(key: string): any; | 90 | get(key: string): any; |
87 | getAppCacheSizeRequest: () => void; | 91 | getAppCacheSizeRequest: () => void; |
88 | healthCheckRequest: () => void; | 92 | healthCheckRequest: () => void; |
89 | isClearingAllCache: () => void; | 93 | isClearingAllCache: () => void; |
94 | isAppMuted: boolean; | ||
90 | isFocused: () => void; | 95 | isFocused: () => void; |
91 | isFullScreen: () => void; | 96 | isFullScreen: () => void; |
92 | isOnline: () => void; | 97 | isOnline: boolean; |
93 | isSystemDarkModeEnabled: () => void; | 98 | isSystemDarkModeEnabled: () => void; |
94 | isSystemMuteOverridden: () => void; | 99 | isSystemMuteOverridden: () => void; |
95 | locale: () => void; | 100 | locale: () => void; |
96 | reloadAfterResume: boolean; | 101 | reloadAfterResume: boolean; |
97 | reloadAfterResumeTime: number; | 102 | reloadAfterResumeTime: number; |
103 | searchEngine: string; | ||
104 | spellcheckerLanguage: string; | ||
105 | splitMode: boolean; | ||
106 | splitColumns: number; | ||
98 | timeOfflineStart: () => void; | 107 | timeOfflineStart: () => void; |
99 | timeSuspensionStart: () => void; | 108 | timeSuspensionStart: () => void; |
100 | updateStatus: () => void; | 109 | updateStatus: () => void; |
@@ -105,6 +114,7 @@ interface AppStore extends TypedStore { | |||
105 | DOWNLOADED: 'DOWNLOADED'; | 114 | DOWNLOADED: 'DOWNLOADED'; |
106 | FAILED: 'FAILED'; | 115 | FAILED: 'FAILED'; |
107 | }; | 116 | }; |
117 | universalDarkMode: boolean; | ||
108 | cacheSize: () => void; | 118 | cacheSize: () => void; |
109 | debugInfo: () => void; | 119 | debugInfo: () => void; |
110 | } | 120 | } |
@@ -145,7 +155,9 @@ interface RecipeStore extends TypedStore { | |||
145 | isInstalled: (id: string) => boolean; | 155 | isInstalled: (id: string) => boolean; |
146 | active: () => void; | 156 | active: () => void; |
147 | all: Recipe[]; | 157 | all: Recipe[]; |
158 | one: (id: string) => Recipe; | ||
148 | recipeIdForServices: () => void; | 159 | recipeIdForServices: () => void; |
160 | _install({ recipeId: string }): Promise<Recipe>; | ||
149 | } | 161 | } |
150 | 162 | ||
151 | interface RequestsStore extends TypedStore { | 163 | interface RequestsStore extends TypedStore { |
@@ -183,7 +195,7 @@ export interface ServicesStore extends TypedStore { | |||
183 | createServiceRequest: () => void; | 195 | createServiceRequest: () => void; |
184 | deleteServiceRequest: () => void; | 196 | deleteServiceRequest: () => void; |
185 | allServicesRequest: CachedRequest; | 197 | allServicesRequest: CachedRequest; |
186 | filterNeedle: () => void; | 198 | filterNeedle: string; |
187 | lastUsedServices: () => void; | 199 | lastUsedServices: () => void; |
188 | reorderServicesRequest: () => void; | 200 | reorderServicesRequest: () => void; |
189 | serviceMaintenanceTick: () => void; | 201 | serviceMaintenanceTick: () => void; |
@@ -237,7 +249,9 @@ interface TodosStore extends TypedStore { | |||
237 | isTodosPanelForceHidden: () => void; | 249 | isTodosPanelForceHidden: () => void; |
238 | isTodosPanelVisible: () => void; | 250 | isTodosPanelVisible: () => void; |
239 | isUsingPredefinedTodoServer: () => void; | 251 | isUsingPredefinedTodoServer: () => void; |
240 | settings: () => void; | 252 | settings: { |
253 | isFeatureEnabledByUser: boolean; | ||
254 | }; | ||
241 | todoRecipeId: () => void; | 255 | todoRecipeId: () => void; |
242 | todoUrl: () => void; | 256 | todoUrl: () => void; |
243 | userAgent: () => void; | 257 | userAgent: () => void; |
@@ -256,7 +270,7 @@ interface UIStore extends TypedStore { | |||
256 | isDarkThemeActive: () => void; | 270 | isDarkThemeActive: () => void; |
257 | isSplitModeActive: () => void; | 271 | isSplitModeActive: () => void; |
258 | splitColumnsNo: () => void; | 272 | splitColumnsNo: () => void; |
259 | showMessageBadgesEvenWhenMuted: () => void; | 273 | showMessageBadgesEvenWhenMuted: boolean; |
260 | theme: () => void; | 274 | theme: () => void; |
261 | } | 275 | } |
262 | 276 | ||
@@ -315,12 +329,21 @@ export interface WorkspacesStore extends TypedStore { | |||
315 | saving: boolean; | 329 | saving: boolean; |
316 | filterServicesByActiveWorkspace: () => void; | 330 | filterServicesByActiveWorkspace: () => void; |
317 | isFeatureActive: () => void; | 331 | isFeatureActive: () => void; |
332 | isAnyWorkspaceActive: boolean; | ||
318 | isSettingsRouteActive: () => void; | 333 | isSettingsRouteActive: () => void; |
319 | isSwitchingWorkspace: () => void; | 334 | isSwitchingWorkspace: () => void; |
320 | isWorkspaceDrawerOpen: () => void; | 335 | isWorkspaceDrawerOpen: () => void; |
321 | nextWorkspace: () => void; | 336 | nextWorkspace: () => void; |
322 | workspaces: Workspace[]; | 337 | workspaces: Workspace[]; |
323 | workspaceBeingEdited: () => void; | 338 | workspaceBeingEdited: () => void; |
339 | reorderServicesOfActiveWorkspace: ({ | ||
340 | oldIndex, | ||
341 | newIndex, | ||
342 | }: { | ||
343 | oldIndex: string; | ||
344 | newIndex: string; | ||
345 | }) => void; | ||
346 | settings: any; | ||
324 | _activateLastUsedWorkspaceReaction: () => void; | 347 | _activateLastUsedWorkspaceReaction: () => void; |
325 | _allActions: any[]; | 348 | _allActions: any[]; |
326 | _allReactions: any[]; | 349 | _allReactions: any[]; |