diff options
Diffstat (limited to 'packages/main/src/stores/config/loadConfig.ts')
-rw-r--r-- | packages/main/src/stores/config/loadConfig.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/packages/main/src/stores/config/loadConfig.ts b/packages/main/src/stores/config/loadConfig.ts index 55d15c8..a44e580 100644 --- a/packages/main/src/stores/config/loadConfig.ts +++ b/packages/main/src/stores/config/loadConfig.ts | |||
@@ -18,6 +18,7 @@ | |||
18 | * SPDX-License-Identifier: AGPL-3.0-only | 18 | * SPDX-License-Identifier: AGPL-3.0-only |
19 | */ | 19 | */ |
20 | 20 | ||
21 | import { ProfileSettingsSnapshotIn } from '@sophie/shared'; | ||
21 | import { | 22 | import { |
22 | applySnapshot, | 23 | applySnapshot, |
23 | IMSTArray, | 24 | IMSTArray, |
@@ -29,18 +30,17 @@ import { | |||
29 | import { nanoid } from 'nanoid'; | 30 | import { nanoid } from 'nanoid'; |
30 | import slug from 'slug'; | 31 | import slug from 'slug'; |
31 | 32 | ||
32 | import GlobalSettings from '../GlobalSettings'; | 33 | import GlobalSettings from '../GlobalSettings.js'; |
33 | import type Profile from '../Profile'; | 34 | import type Profile from '../Profile.js'; |
34 | import type { ProfileSettingsSnapshotIn } from '../ProfileSettings'; | 35 | import type Service from '../Service.js'; |
35 | import type Service from '../Service'; | 36 | import type { ServiceSettingsSnapshotIn } from '../ServiceSettings.js'; |
36 | import type { ServiceSettingsSnapshotIn } from '../ServiceSettings'; | ||
37 | 37 | ||
38 | import type Config from './Config'; | 38 | import type Config from './Config.js'; |
39 | import type ProfileConfig from './ProfileConfig'; | 39 | import type ProfileConfig from './ProfileConfig.js'; |
40 | import type ServiceConfig from './ServiceConfig'; | 40 | import type ServiceConfig from './ServiceConfig.js'; |
41 | 41 | ||
42 | function generateId(name?: string | undefined): string { | 42 | function generateId(name?: string | undefined): string { |
43 | const nameSlug = typeof name === 'undefined' ? '' : slug(name); | 43 | const nameSlug = name === undefined ? '' : slug(name); |
44 | return `${nameSlug}_${nanoid()}`; | 44 | return `${nameSlug}_${nanoid()}`; |
45 | } | 45 | } |
46 | 46 | ||