aboutsummaryrefslogtreecommitdiffstats
path: root/packages/main/src/stores/config/loadConfig.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/main/src/stores/config/loadConfig.ts')
-rw-r--r--packages/main/src/stores/config/loadConfig.ts18
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
21import { ProfileSettingsSnapshotIn } from '@sophie/shared';
21import { 22import {
22 applySnapshot, 23 applySnapshot,
23 IMSTArray, 24 IMSTArray,
@@ -29,18 +30,17 @@ import {
29import { nanoid } from 'nanoid'; 30import { nanoid } from 'nanoid';
30import slug from 'slug'; 31import slug from 'slug';
31 32
32import GlobalSettings from '../GlobalSettings'; 33import GlobalSettings from '../GlobalSettings.js';
33import type Profile from '../Profile'; 34import type Profile from '../Profile.js';
34import type { ProfileSettingsSnapshotIn } from '../ProfileSettings'; 35import type Service from '../Service.js';
35import type Service from '../Service'; 36import type { ServiceSettingsSnapshotIn } from '../ServiceSettings.js';
36import type { ServiceSettingsSnapshotIn } from '../ServiceSettings';
37 37
38import type Config from './Config'; 38import type Config from './Config.js';
39import type ProfileConfig from './ProfileConfig'; 39import type ProfileConfig from './ProfileConfig.js';
40import type ServiceConfig from './ServiceConfig'; 40import type ServiceConfig from './ServiceConfig.js';
41 41
42function generateId(name?: string | undefined): string { 42function 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