diff options
Diffstat (limited to 'packages/shared/src/stores/Service.ts')
-rw-r--r-- | packages/shared/src/stores/Service.ts | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/packages/shared/src/stores/Service.ts b/packages/shared/src/stores/Service.ts index 4a7334d..a4e3c92 100644 --- a/packages/shared/src/stores/Service.ts +++ b/packages/shared/src/stores/Service.ts | |||
@@ -22,20 +22,21 @@ import { Instance, types } from 'mobx-state-tree'; | |||
22 | 22 | ||
23 | import ServiceSettings from './ServiceSettings'; | 23 | import ServiceSettings from './ServiceSettings'; |
24 | 24 | ||
25 | const Service = types.model('Service', { | 25 | const Service = /* @__PURE__ */ (() => |
26 | id: types.identifier, | 26 | types.model('Service', { |
27 | settings: ServiceSettings, | 27 | id: types.identifier, |
28 | currentUrl: types.maybe(types.string), | 28 | settings: ServiceSettings, |
29 | canGoBack: false, | 29 | currentUrl: types.maybe(types.string), |
30 | canGoForward: false, | 30 | canGoBack: false, |
31 | title: types.maybe(types.string), | 31 | canGoForward: false, |
32 | state: types.optional( | 32 | title: types.maybe(types.string), |
33 | types.enumeration('ServiceState', ['loading', 'loaded', 'crashed']), | 33 | state: types.optional( |
34 | 'loading', | 34 | types.enumeration('ServiceState', ['loading', 'loaded', 'crashed']), |
35 | ), | 35 | 'loading', |
36 | directMessageCount: 0, | 36 | ), |
37 | indirectMessageCount: 0, | 37 | directMessageCount: 0, |
38 | }); | 38 | indirectMessageCount: 0, |
39 | }))(); | ||
39 | 40 | ||
40 | /* | 41 | /* |
41 | eslint-disable-next-line @typescript-eslint/no-redeclare -- | 42 | eslint-disable-next-line @typescript-eslint/no-redeclare -- |