bunch of misc changes

This commit is contained in:
Sriram Hariharan
2023-11-17 11:11:01 -06:00
parent 52431747ee
commit 56643f9753
11 changed files with 51 additions and 11 deletions

View File

@@ -16,9 +16,9 @@ export type BACKGROUND_MESSAGES = BrowserActionMessages &
/**
* A utility object that can be used to send type-safe messages to the background script
*/
export const bMessenger = createMessenger<BACKGROUND_MESSAGES>('background');
export const background = createMessenger<BACKGROUND_MESSAGES>('background');
/**
* A utility object that can be used to send type-safe messages to specific tabs
*/
export const tabMessenger = createMessenger<TAB_MESSAGES>('tab');
export const tabs = createMessenger<TAB_MESSAGES>('tab');

View File

@@ -24,4 +24,10 @@ export const DevStore = createLocalStore<IDevStore>({
reloadTabId: undefined,
});
debugStore({ devStore: DevStore });

View File

@@ -15,4 +15,6 @@ export const ExtensionStore = createLocalStore<IExtensionStore>({
lastUpdate: Date.now(),
});
debugStore({ ExtensionStore });

View File

@@ -8,6 +8,8 @@ interface IOptionsStore {
shouldHighlightConflicts: boolean;
/** whether we should automatically scroll to load more courses on the course schedule page (without having to click next) */
shouldScrollToLoad: boolean;
url: URL;
}
export const OptionsStore = createSyncStore<IOptionsStore>({
@@ -15,4 +17,6 @@ export const OptionsStore = createSyncStore<IOptionsStore>({
shouldScrollToLoad: true,
});
// Clothing retailer right
debugStore({ OptionsStore });