From d07e7b834831230b53860d0919a68edc2d36193d Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sat, 8 Jan 2022 21:36:43 +0100 Subject: build: Eslint fixes for multi-module project MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kristóf Marussy --- packages/main/src/compositionRoot.ts | 38 ------------------------------------ 1 file changed, 38 deletions(-) delete mode 100644 packages/main/src/compositionRoot.ts (limited to 'packages/main/src/compositionRoot.ts') diff --git a/packages/main/src/compositionRoot.ts b/packages/main/src/compositionRoot.ts deleted file mode 100644 index 76835a1..0000000 --- a/packages/main/src/compositionRoot.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2021-2022 Kristóf Marussy - * - * This file is part of Sophie. - * - * Sophie is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, version 3. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * SPDX-License-Identifier: AGPL-3.0-only - */ - -import { app } from 'electron'; - -import { initConfig } from './controllers/config'; -import { initNativeTheme } from './controllers/nativeTheme'; -import { ConfigPersistenceServiceImpl } from './services/impl/ConfigPersistenceServiceImpl'; -import { MainStore } from './stores/MainStore'; -import { Disposer } from './utils/disposer'; - -export async function init(store: MainStore): Promise { - const configPersistenceService = new ConfigPersistenceServiceImpl(app.getPath('userData')); - const disposeConfigController = await initConfig(store.config, configPersistenceService); - const disposeNativeThemeController = initNativeTheme(store); - - return () => { - disposeNativeThemeController(); - disposeConfigController(); - }; -} -- cgit v1.2.3-54-g00ecf