aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared/src/stores/Config.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-01-03 01:02:00 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-02-08 21:41:27 +0100
commit3b7d52abb0e7de00bdf92ee3482a4cae1f6b7d64 (patch)
tree7122ef45a1fd42c7ab835ab2f2685050de2c45b2 /packages/shared/src/stores/Config.ts
parentchore(deps): update electron to version 17.0.0 (diff)
downloadsophie-3b7d52abb0e7de00bdf92ee3482a4cae1f6b7d64.tar.gz
sophie-3b7d52abb0e7de00bdf92ee3482a4cae1f6b7d64.tar.zst
sophie-3b7d52abb0e7de00bdf92ee3482a4cae1f6b7d64.zip
feat: Add Profile and Service stores
In the main process, it is optional to specify the ID of a Profile or a Service. The missing ID will be filled in with a randomly generated one. Moreover, services without a profile will get a profile generated with the same name. Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'packages/shared/src/stores/Config.ts')
-rw-r--r--packages/shared/src/stores/Config.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/shared/src/stores/Config.ts b/packages/shared/src/stores/Config.ts
index 1d98a33..1d97e7d 100644
--- a/packages/shared/src/stores/Config.ts
+++ b/packages/shared/src/stores/Config.ts
@@ -22,7 +22,12 @@ import { Instance, types, SnapshotIn, SnapshotOut } from 'mobx-state-tree';
22 22
23import { themeSource } from '../schemas'; 23import { themeSource } from '../schemas';
24 24
25import { profile } from './Profile';
26import { service } from './Service';
27
25export const config = types.model('Config', { 28export const config = types.model('Config', {
29 profiles: types.array(profile),
30 services: types.array(service),
26 themeSource: types.optional(types.enumeration(themeSource.options), 'system'), 31 themeSource: types.optional(types.enumeration(themeSource.options), 'system'),
27}); 32});
28 33