diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-01-04 22:16:09 +0530 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-01-09 19:51:48 +0100 |
commit | 649c1ed37ac74765fb7572fa3f703c94827042f4 (patch) | |
tree | c00d13e58cbe1df0a4645b7905bccbab3eb9ff92 /packages/shared | |
parent | Incorporate 'eslint' (fixes #3) (diff) | |
download | sophie-649c1ed37ac74765fb7572fa3f703c94827042f4.tar.gz sophie-649c1ed37ac74765fb7572fa3f703c94827042f4.tar.zst sophie-649c1ed37ac74765fb7572fa3f703c94827042f4.zip |
New configurations based on review comments (WIP)
Signed-off-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'packages/shared')
-rw-r--r-- | packages/shared/src/contextBridge/SophieRenderer.ts | 2 | ||||
-rw-r--r-- | packages/shared/src/index.ts | 14 | ||||
-rw-r--r-- | packages/shared/src/stores/Config.ts | 2 | ||||
-rw-r--r-- | packages/shared/src/stores/SharedStore.ts | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/packages/shared/src/contextBridge/SophieRenderer.ts b/packages/shared/src/contextBridge/SophieRenderer.ts index 285b373..fc43b6e 100644 --- a/packages/shared/src/contextBridge/SophieRenderer.ts +++ b/packages/shared/src/contextBridge/SophieRenderer.ts | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | import { SharedStoreListener } from '../stores/SharedStore'; | 21 | import { SharedStoreListener } from '../stores/SharedStore'; |
22 | 22 | ||
23 | import { Action } from '../schemas.js'; | 23 | import { Action } from '../schemas'; |
24 | 24 | ||
25 | export interface SophieRenderer { | 25 | export interface SophieRenderer { |
26 | onSharedStoreChange(listener: SharedStoreListener): Promise<void>; | 26 | onSharedStoreChange(listener: SharedStoreListener): Promise<void>; |
diff --git a/packages/shared/src/index.ts b/packages/shared/src/index.ts index f0ae5dc..2f7146c 100644 --- a/packages/shared/src/index.ts +++ b/packages/shared/src/index.ts | |||
@@ -23,26 +23,26 @@ export type { SophieRenderer } from './contextBridge/SophieRenderer'; | |||
23 | export { | 23 | export { |
24 | MainToRendererIpcMessage, | 24 | MainToRendererIpcMessage, |
25 | RendererToMainIpcMessage, | 25 | RendererToMainIpcMessage, |
26 | } from './ipc.js'; | 26 | } from './ipc'; |
27 | 27 | ||
28 | export type { | 28 | export type { |
29 | Action, | 29 | Action, |
30 | BrowserViewBounds, | 30 | BrowserViewBounds, |
31 | ThemeSource, | 31 | ThemeSource, |
32 | } from './schemas.js'; | 32 | } from './schemas'; |
33 | export { | 33 | export { |
34 | action, | 34 | action, |
35 | browserViewBounds, | 35 | browserViewBounds, |
36 | themeSource, | 36 | themeSource, |
37 | } from './schemas.js'; | 37 | } from './schemas'; |
38 | 38 | ||
39 | export type { Config, ConfigSnapshotIn, ConfigSnapshotOut } from './stores/Config.js'; | 39 | export type { Config, ConfigSnapshotIn, ConfigSnapshotOut } from './stores/Config'; |
40 | export { config } from './stores/Config.js'; | 40 | export { config } from './stores/Config'; |
41 | 41 | ||
42 | export type { | 42 | export type { |
43 | SharedStore, | 43 | SharedStore, |
44 | SharedStoreListener, | 44 | SharedStoreListener, |
45 | SharedStoreSnapshotIn, | 45 | SharedStoreSnapshotIn, |
46 | SharedStoreSnapshotOut, | 46 | SharedStoreSnapshotOut, |
47 | } from './stores/SharedStore.js'; | 47 | } from './stores/SharedStore'; |
48 | export { sharedStore } from './stores/SharedStore.js'; | 48 | export { sharedStore } from './stores/SharedStore'; |
diff --git a/packages/shared/src/stores/Config.ts b/packages/shared/src/stores/Config.ts index 4b17d3c..432945c 100644 --- a/packages/shared/src/stores/Config.ts +++ b/packages/shared/src/stores/Config.ts | |||
@@ -25,7 +25,7 @@ import { | |||
25 | SnapshotOut, | 25 | SnapshotOut, |
26 | } from 'mobx-state-tree'; | 26 | } from 'mobx-state-tree'; |
27 | 27 | ||
28 | import { themeSource } from '../schemas.js'; | 28 | import { themeSource } from '../schemas'; |
29 | 29 | ||
30 | export const config = types.model('Config', { | 30 | export const config = types.model('Config', { |
31 | themeSource: types.optional(types.enumeration(themeSource.options), 'system'), | 31 | themeSource: types.optional(types.enumeration(themeSource.options), 'system'), |
diff --git a/packages/shared/src/stores/SharedStore.ts b/packages/shared/src/stores/SharedStore.ts index 8aefcdb..c6c3ddc 100644 --- a/packages/shared/src/stores/SharedStore.ts +++ b/packages/shared/src/stores/SharedStore.ts | |||
@@ -26,7 +26,7 @@ import { | |||
26 | SnapshotOut, | 26 | SnapshotOut, |
27 | } from 'mobx-state-tree'; | 27 | } from 'mobx-state-tree'; |
28 | 28 | ||
29 | import { config } from './Config.js'; | 29 | import { config } from './Config'; |
30 | 30 | ||
31 | export const sharedStore = types.model('SharedStore', { | 31 | export const sharedStore = types.model('SharedStore', { |
32 | config: types.optional(config, {}), | 32 | config: types.optional(config, {}), |