Prepare for adding file suffixes

This commit is contained in:
Fedor Indutny
2025-10-16 11:29:11 -07:00
parent 3330dd72ce
commit 3387cf6a77
2095 changed files with 15148 additions and 14629 deletions

View File

@@ -7,10 +7,10 @@ import * as z from 'zod';
import { protocol } from 'electron';
import { LRUCache } from 'lru-cache';
import type { OptionalResourceService } from './OptionalResourceService.js';
import { SignalService as Proto } from '../ts/protobuf/index.js';
import { parseUnknown } from '../ts/util/schemas.js';
import { utf16ToEmoji } from '../ts/util/utf16ToEmoji.js';
import type { OptionalResourceService } from './OptionalResourceService.main.js';
import { SignalService as Proto } from '../ts/protobuf/index.std.js';
import { parseUnknown } from '../ts/util/schemas.std.js';
import { utf16ToEmoji } from '../ts/util/utf16ToEmoji.node.js';
const MANIFEST_PATH = join(__dirname, '..', 'build', 'jumbomoji.json');

View File

@@ -12,12 +12,12 @@ import PQueue from 'p-queue';
import type {
OptionalResourceType,
OptionalResourcesDictType,
} from '../ts/types/OptionalResource.js';
import { OptionalResourcesDictSchema } from '../ts/types/OptionalResource.js';
import { createLogger } from '../ts/logging/log.js';
import { getGotOptions } from '../ts/updater/got.js';
import { drop } from '../ts/util/drop.js';
import { parseUnknown } from '../ts/util/schemas.js';
} from '../ts/types/OptionalResource.std.js';
import { OptionalResourcesDictSchema } from '../ts/types/OptionalResource.std.js';
import { createLogger } from '../ts/logging/log.std.js';
import { getGotOptions } from '../ts/updater/got.node.js';
import { drop } from '../ts/util/drop.std.js';
import { parseUnknown } from '../ts/util/schemas.std.js';
const log = createLogger('OptionalResourceService');

View File

@@ -2,7 +2,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
import type { PowerSaveBlocker } from 'electron';
import { createLogger } from '../ts/logging/log.js';
import { createLogger } from '../ts/logging/log.std.js';
const log = createLogger('PreventDisplaySleepService');

View File

@@ -6,8 +6,8 @@ import { Menu, Tray, app, nativeImage, nativeTheme, screen } from 'electron';
import os from 'node:os';
import { join } from 'node:path';
import { readFileSync } from 'node:fs';
import { createLogger } from '../ts/logging/log.js';
import type { LocalizerType } from '../ts/types/I18N.js';
import { createLogger } from '../ts/logging/log.std.js';
import type { LocalizerType } from '../ts/types/I18N.std.js';
const log = createLogger('SystemTrayService');

View File

@@ -1,14 +1,14 @@
// Copyright 2017 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { createLogger } from '../ts/logging/log.js';
import OS from '../ts/util/os/osMain.js';
import { createLogger } from '../ts/logging/log.std.js';
import OS from '../ts/util/os/osMain.node.js';
import {
parseSystemTraySetting,
SystemTraySetting,
} from '../ts/types/SystemTraySetting.js';
import { isSystemTraySupported } from '../ts/types/Settings.js';
import type { ConfigType } from './base_config.js';
} from '../ts/types/SystemTraySetting.std.js';
import { isSystemTraySupported } from '../ts/types/Settings.std.js';
import type { ConfigType } from './base_config.node.js';
const log = createLogger('SystemTraySettingCache');

View File

@@ -9,10 +9,10 @@ import {
sendDummyKeystroke,
} from '@indutny/simple-windows-notifications';
import { createLogger } from '../ts/logging/log.js';
import { AUMID } from './startup_config.js';
import type { WindowsNotificationData } from '../ts/services/notifications.js';
import { renderWindowsToast } from './renderWindowsToast.js';
import { createLogger } from '../ts/logging/log.std.js';
import { AUMID } from './startup_config.main.js';
import type { WindowsNotificationData } from '../ts/services/notifications.preload.js';
import { renderWindowsToast } from './renderWindowsToast.dom.js';
const log = createLogger('WindowsNotifications');

View File

@@ -23,30 +23,30 @@ import { pathExists } from 'fs-extra';
import {
type DecryptAttachmentToSinkOptionsType,
decryptAttachmentV2ToSink,
} from '../ts/AttachmentCrypto.js';
import * as Bytes from '../ts/Bytes.js';
import type { MessageAttachmentsCursorType } from '../ts/sql/Interface.js';
import type { MainSQL } from '../ts/sql/main.js';
} from '../ts/AttachmentCrypto.node.js';
import * as Bytes from '../ts/Bytes.std.js';
import type { MessageAttachmentsCursorType } from '../ts/sql/Interface.std.js';
import type { MainSQL } from '../ts/sql/main.main.js';
import {
APPLICATION_OCTET_STREAM,
MIMETypeToString,
stringToMIMEType,
} from '../ts/types/MIME.js';
import * as Errors from '../ts/types/errors.js';
} from '../ts/types/MIME.std.js';
import * as Errors from '../ts/types/errors.std.js';
import {
isImageTypeSupported,
isVideoTypeSupported,
} from '../ts/util/GoogleChrome.js';
import { strictAssert } from '../ts/util/assert.js';
import { drop } from '../ts/util/drop.js';
import { SECOND } from '../ts/util/durations/index.js';
import { isPathInside } from '../ts/util/isPathInside.js';
import { missingCaseError } from '../ts/util/missingCaseError.js';
import { safeParseInteger } from '../ts/util/numbers.js';
import { parseLoose } from '../ts/util/schemas.js';
import { sleep } from '../ts/util/sleep.js';
import { toWebStream } from '../ts/util/toWebStream.js';
import { createLogger } from '../ts/logging/log.js';
} from '../ts/util/GoogleChrome.std.js';
import { strictAssert } from '../ts/util/assert.std.js';
import { drop } from '../ts/util/drop.std.js';
import { SECOND } from '../ts/util/durations/index.std.js';
import { isPathInside } from '../ts/util/isPathInside.node.js';
import { missingCaseError } from '../ts/util/missingCaseError.std.js';
import { safeParseInteger } from '../ts/util/numbers.std.js';
import { parseLoose } from '../ts/util/schemas.std.js';
import { sleep } from '../ts/util/sleep.std.js';
import { toWebStream } from '../ts/util/toWebStream.node.js';
import { createLogger } from '../ts/logging/log.std.js';
import {
deleteAll as deleteAllAttachments,
deleteAllBadges,
@@ -64,7 +64,7 @@ import {
getPath,
getStickersPath,
getTempPath,
} from './attachments.js';
} from './attachments.node.js';
const { isNumber } = lodash;

View File

@@ -9,18 +9,18 @@ import fastGlob from 'fast-glob';
import fse from 'fs-extra';
import lodash from 'lodash';
import normalizePath from 'normalize-path';
import { isPathInside } from '../ts/util/isPathInside.js';
import { DAY } from '../ts/util/durations/index.js';
import { isOlderThan } from '../ts/util/timestamp.js';
import { isNotNil } from '../ts/util/isNotNil.js';
import { isPathInside } from '../ts/util/isPathInside.node.js';
import { DAY } from '../ts/util/durations/index.std.js';
import { isOlderThan } from '../ts/util/timestamp.std.js';
import { isNotNil } from '../ts/util/isNotNil.std.js';
import {
generateKeys,
decryptAttachmentV2ToSink,
encryptAttachmentV2ToDisk,
} from '../ts/AttachmentCrypto.js';
import type { LocalAttachmentV2Type } from '../ts/types/Attachment.js';
import * as Errors from '../ts/types/errors.js';
import { createLogger } from '../ts/logging/log.js';
} from '../ts/AttachmentCrypto.node.js';
import type { LocalAttachmentV2Type } from '../ts/types/Attachment.std.js';
import * as Errors from '../ts/types/errors.std.js';
import { createLogger } from '../ts/logging/log.std.js';
const { map, isString } = lodash;

View File

@@ -6,8 +6,8 @@ import { sync as writeFileSync } from 'write-file-atomic';
import lodash from 'lodash';
import lodashFp from 'lodash/fp.js';
import { strictAssert } from '../ts/util/assert.js';
import { createLogger } from '../ts/logging/log.js';
import { strictAssert } from '../ts/util/assert.std.js';
import { createLogger } from '../ts/logging/log.std.js';
const { set } = lodashFp;

View File

@@ -11,8 +11,8 @@ import {
getEnvironment,
setEnvironment,
parseEnvironment,
} from '../ts/environment.js';
import { createLogger } from '../ts/logging/log.js';
} from '../ts/environment.std.js';
import { createLogger } from '../ts/logging/log.std.js';
const log = createLogger('config');

View File

@@ -7,12 +7,12 @@ import { basename, join } from 'node:path';
import { toJSONString as dumpToJSONString } from '@signalapp/libsignal-client/dist/Minidump.js';
import z from 'zod';
import type { LoggerType } from '../ts/types/Logging.js';
import * as Errors from '../ts/types/errors.js';
import { isProduction } from '../ts/util/version.js';
import { isNotNil } from '../ts/util/isNotNil.js';
import OS from '../ts/util/os/osMain.js';
import { parseUnknown } from '../ts/util/schemas.js';
import type { LoggerType } from '../ts/types/Logging.std.js';
import * as Errors from '../ts/types/errors.std.js';
import { isProduction } from '../ts/util/version.std.js';
import { isNotNil } from '../ts/util/isNotNil.std.js';
import OS from '../ts/util/os/osMain.node.js';
import { parseUnknown } from '../ts/util/schemas.std.js';
const { realpath, readdir, readFile, unlink, stat } = fsExtra;

View File

@@ -3,10 +3,10 @@
import { join } from 'node:path';
import { readFile } from 'node:fs/promises';
import { DNSFallbackSchema } from '../ts/types/DNSFallback.js';
import type { DNSFallbackType } from '../ts/types/DNSFallback.js';
import { parseUnknown } from '../ts/util/schemas.js';
import { createLogger } from '../ts/logging/log.js';
import { DNSFallbackSchema } from '../ts/types/DNSFallback.std.js';
import type { DNSFallbackType } from '../ts/types/DNSFallback.std.js';
import { parseUnknown } from '../ts/util/schemas.std.js';
import { createLogger } from '../ts/logging/log.std.js';
const log = createLogger('dns-fallback');

View File

@@ -5,7 +5,7 @@ import { join } from 'node:path';
import { app } from 'electron';
import { start } from './base_config.js';
import { start } from './base_config.node.js';
const userDataPath = app.getPath('userData');
const targetPath = join(userDataPath, 'ephemeral.json');

View File

@@ -4,11 +4,11 @@
import { app, dialog, clipboard } from 'electron';
import os from 'node:os';
import * as Errors from '../ts/types/errors.js';
import { redactAll } from '../ts/util/privacy.js';
import { createLogger } from '../ts/logging/log.js';
import { reallyJsonStringify } from '../ts/util/reallyJsonStringify.js';
import type { LocaleType } from './locale.js';
import * as Errors from '../ts/types/errors.std.js';
import { redactAll } from '../ts/util/privacy.node.js';
import { createLogger } from '../ts/logging/log.std.js';
import { reallyJsonStringify } from '../ts/util/reallyJsonStringify.std.js';
import type { LocaleType } from './locale.main.js';
const log = createLogger('global_errors');

View File

@@ -7,17 +7,17 @@ import { app } from 'electron';
import lodash from 'lodash';
import * as LocaleMatcher from '@formatjs/intl-localematcher';
import { z } from 'zod';
import { setupI18n } from '../ts/util/setupI18nMain.js';
import { shouldNeverBeCalled } from '../ts/util/shouldNeverBeCalled.js';
import { setupI18n } from '../ts/util/setupI18nMain.std.js';
import { shouldNeverBeCalled } from '../ts/util/shouldNeverBeCalled.std.js';
import type { LoggerType } from '../ts/types/Logging.js';
import type { LoggerType } from '../ts/types/Logging.std.js';
import type {
HourCyclePreference,
LocaleMessagesType,
} from '../ts/types/I18N.js';
import type { LocalizerType } from '../ts/types/Util.js';
import * as Errors from '../ts/types/errors.js';
import { parseUnknown } from '../ts/util/schemas.js';
} from '../ts/types/I18N.std.js';
import type { LocalizerType } from '../ts/types/Util.std.js';
import * as Errors from '../ts/types/errors.std.js';
import { parseUnknown } from '../ts/util/schemas.std.js';
const { merge } = lodash;
@@ -197,6 +197,8 @@ export function load({
const i18n = setupI18n(matchedLocale, finalMessages, {
renderEmojify: shouldNeverBeCalled,
getLocaleDirection: shouldNeverBeCalled,
getHourCyclePreference: shouldNeverBeCalled,
});
const direction =
localeDirectionTestingOverride ?? getLocaleDirection(matchedLocale, logger);

View File

@@ -35,100 +35,106 @@ import { z } from 'zod';
import {
version as packageVersion,
productName,
} from '../ts/util/packageJson.js';
import * as GlobalErrors from './global_errors.js';
import { setup as setupCrashReports } from './crashReports.js';
import { setup as setupSpellChecker } from './spell_check.js';
import { getDNSFallback } from './dns-fallback.js';
import { redactAll, addSensitivePath } from '../ts/util/privacy.js';
import { createSupportUrl } from '../ts/util/createSupportUrl.js';
import { missingCaseError } from '../ts/util/missingCaseError.js';
import { strictAssert } from '../ts/util/assert.js';
import { drop } from '../ts/util/drop.js';
import type { ThemeSettingType } from '../ts/types/StorageUIKeys.js';
import { ThemeType } from '../ts/types/Util.js';
import * as Errors from '../ts/types/errors.js';
import { resolveCanonicalLocales } from '../ts/util/resolveCanonicalLocales.js';
import { createLogger } from '../ts/logging/log.js';
import * as debugLog from '../ts/logging/debuglogs.js';
import * as uploadDebugLog from '../ts/logging/uploadDebugLog.js';
import { explodePromise } from '../ts/util/explodePromise.js';
} from '../ts/util/packageJson.node.js';
import * as GlobalErrors from './global_errors.main.js';
import { setup as setupCrashReports } from './crashReports.main.js';
import { setup as setupSpellChecker } from './spell_check.main.js';
import { getDNSFallback } from './dns-fallback.node.js';
import { redactAll, addSensitivePath } from '../ts/util/privacy.node.js';
import { createSupportUrl } from '../ts/util/createSupportUrl.std.js';
import { missingCaseError } from '../ts/util/missingCaseError.std.js';
import { strictAssert } from '../ts/util/assert.std.js';
import { drop } from '../ts/util/drop.std.js';
import type { ThemeSettingType } from '../ts/types/StorageUIKeys.std.js';
import { ThemeType } from '../ts/types/Util.std.js';
import * as Errors from '../ts/types/errors.std.js';
import { resolveCanonicalLocales } from '../ts/util/resolveCanonicalLocales.std.js';
import { createLogger } from '../ts/logging/log.std.js';
import * as debugLog from '../ts/logging/debuglogs.node.js';
import * as uploadDebugLog from '../ts/logging/uploadDebugLog.node.js';
import { explodePromise } from '../ts/util/explodePromise.std.js';
import './startup_config.js';
import './startup_config.main.js';
import type { RendererConfigType } from '../ts/types/RendererConfig.js';
import type { RendererConfigType } from '../ts/types/RendererConfig.std.js';
import {
directoryConfigSchema,
rendererConfigSchema,
} from '../ts/types/RendererConfig.js';
import config from './config.js';
} from '../ts/types/RendererConfig.std.js';
import config from './config.main.js';
import {
Environment,
getEnvironment,
isTestEnvironment,
} from '../ts/environment.js';
} from '../ts/environment.std.js';
// Very important to put before the single instance check, since it is based on the
// userData directory. (see requestSingleInstanceLock below)
import * as userConfig from './user_config.js';
import * as userConfig from './user_config.main.js';
// We generally want to pull in our own modules after this point, after the user
// data directory has been set.
import * as attachments from './attachments.js';
import * as attachmentChannel from './attachment_channel.js';
import * as bounce from '../ts/services/bounce.js';
import * as updater from '../ts/updater/index.js';
import { updateDefaultSession } from './updateDefaultSession.js';
import { PreventDisplaySleepService } from './PreventDisplaySleepService.js';
import { SystemTrayService, focusAndForceToTop } from './SystemTrayService.js';
import { SystemTraySettingCache } from './SystemTraySettingCache.js';
import { OptionalResourceService } from './OptionalResourceService.js';
import { EmojiService } from './EmojiService.js';
import * as attachments from './attachments.node.js';
import * as attachmentChannel from './attachment_channel.main.js';
import * as bounce from '../ts/services/bounce.main.js';
import * as updater from '../ts/updater/index.main.js';
import { updateDefaultSession } from './updateDefaultSession.main.js';
import { PreventDisplaySleepService } from './PreventDisplaySleepService.std.js';
import {
SystemTrayService,
focusAndForceToTop,
} from './SystemTrayService.main.js';
import { SystemTraySettingCache } from './SystemTraySettingCache.node.js';
import { OptionalResourceService } from './OptionalResourceService.main.js';
import { EmojiService } from './EmojiService.main.js';
import {
SystemTraySetting,
shouldMinimizeToSystemTray,
parseSystemTraySetting,
} from '../ts/types/SystemTraySetting.js';
} from '../ts/types/SystemTraySetting.std.js';
import {
getDefaultSystemTraySetting,
isSystemTraySupported,
isContentProtectionEnabledByDefault,
} from '../ts/types/Settings.js';
import * as ephemeralConfig from './ephemeral_config.js';
import * as mainProcessLogging from '../ts/logging/main_process_logging.js';
import { MainSQL } from '../ts/sql/main.js';
import * as sqlChannels from './sql_channel.js';
import * as windowState from './window_state.js';
import type { CreateTemplateOptionsType } from './menu.js';
import { createTemplate } from './menu.js';
import { installFileHandler, installWebHandler } from './protocol_filter.js';
import OS from '../ts/util/os/osMain.js';
import { isNightly, isProduction } from '../ts/util/version.js';
import { clearTimeoutIfNecessary } from '../ts/util/clearTimeoutIfNecessary.js';
import { toggleMaximizedBrowserWindow } from '../ts/util/toggleMaximizedBrowserWindow.js';
import { ChallengeMainHandler } from '../ts/main/challengeMain.js';
import { NativeThemeNotifier } from '../ts/main/NativeThemeNotifier.js';
import { PowerChannel } from '../ts/main/powerChannel.js';
import { SettingsChannel } from '../ts/main/settingsChannel.js';
import { maybeParseUrl, setUrlSearchParams } from '../ts/util/url.js';
import { getHeicConverter } from '../ts/workers/heicConverterMain.js';
} from '../ts/types/Settings.std.js';
import * as ephemeralConfig from './ephemeral_config.main.js';
import * as mainProcessLogging from '../ts/logging/main_process_logging.main.js';
import { MainSQL } from '../ts/sql/main.main.js';
import * as sqlChannels from './sql_channel.main.js';
import * as windowState from './window_state.std.js';
import type { CreateTemplateOptionsType } from './menu.std.js';
import { createTemplate } from './menu.std.js';
import {
installFileHandler,
installWebHandler,
} from './protocol_filter.node.js';
import OS from '../ts/util/os/osMain.node.js';
import { isNightly, isProduction } from '../ts/util/version.std.js';
import { clearTimeoutIfNecessary } from '../ts/util/clearTimeoutIfNecessary.std.js';
import { toggleMaximizedBrowserWindow } from '../ts/util/toggleMaximizedBrowserWindow.std.js';
import { ChallengeMainHandler } from '../ts/main/challengeMain.main.js';
import { NativeThemeNotifier } from '../ts/main/NativeThemeNotifier.main.js';
import { PowerChannel } from '../ts/main/powerChannel.main.js';
import { SettingsChannel } from '../ts/main/settingsChannel.main.js';
import { maybeParseUrl, setUrlSearchParams } from '../ts/util/url.std.js';
import { getHeicConverter } from '../ts/workers/heicConverterMain.main.js';
import type { LocaleDirection, LocaleType } from './locale.js';
import { load as loadLocale } from './locale.js';
import type { LocaleDirection, LocaleType } from './locale.main.js';
import { load as loadLocale } from './locale.main.js';
import { HourCyclePreference } from '../ts/types/I18N.js';
import { ScreenShareStatus } from '../ts/types/Calling.js';
import type { ParsedSignalRoute } from '../ts/util/signalRoutes.js';
import { parseSignalRoute } from '../ts/util/signalRoutes.js';
import * as dns from '../ts/util/dns.js';
import { ZoomFactorService } from '../ts/services/ZoomFactorService.js';
import { SafeStorageBackendChangeError } from '../ts/types/SafeStorageBackendChangeError.js';
import { SafeStorageDecryptionError } from '../ts/types/SafeStorageDecryptionError.js';
import { LINUX_PASSWORD_STORE_FLAGS } from '../ts/util/linuxPasswordStoreFlags.js';
import { getOwn } from '../ts/util/getOwn.js';
import { safeParseLoose, safeParseUnknown } from '../ts/util/schemas.js';
import { getAppErrorIcon } from '../ts/util/getAppErrorIcon.js';
import { promptOSAuth } from '../ts/util/os/promptOSAuthMain.js';
import { HourCyclePreference } from '../ts/types/I18N.std.js';
import { ScreenShareStatus } from '../ts/types/Calling.std.js';
import type { ParsedSignalRoute } from '../ts/util/signalRoutes.std.js';
import { parseSignalRoute } from '../ts/util/signalRoutes.std.js';
import * as dns from '../ts/util/dns.node.js';
import { ZoomFactorService } from '../ts/services/ZoomFactorService.main.js';
import { SafeStorageBackendChangeError } from '../ts/types/SafeStorageBackendChangeError.std.js';
import { SafeStorageDecryptionError } from '../ts/types/SafeStorageDecryptionError.std.js';
import { LINUX_PASSWORD_STORE_FLAGS } from '../ts/util/linuxPasswordStoreFlags.std.js';
import { getOwn } from '../ts/util/getOwn.std.js';
import { safeParseLoose, safeParseUnknown } from '../ts/util/schemas.std.js';
import { getAppErrorIcon } from '../ts/util/getAppErrorIcon.node.js';
import { promptOSAuth } from '../ts/util/os/promptOSAuthMain.main.js';
const { chmod, realpath, writeFile } = fsExtra;
const { get, pick, isNumber, isBoolean, some, debounce, noop } = lodash;

View File

@@ -3,12 +3,12 @@
import lodash from 'lodash';
import type { LocalizerType } from '../ts/types/I18N.js';
import type { LocalizerType } from '../ts/types/I18N.std.js';
import type {
MenuListType,
MenuOptionsType,
MenuActionsType,
} from '../ts/types/menu.js';
} from '../ts/types/menu.std.js';
const { isString } = lodash;

View File

@@ -6,8 +6,8 @@
import type { session as ElectronSession, Session } from 'electron';
import type { ConfigType } from './base_config.js';
import { createLogger } from '../ts/logging/log.js';
import type { ConfigType } from './base_config.node.js';
import { createLogger } from '../ts/logging/log.std.js';
const log = createLogger('permissions');

View File

@@ -14,8 +14,8 @@ import {
getStickersPath,
getTempPath,
getUpdateCachePath,
} from './attachments.js';
import { createLogger } from '../ts/logging/log.js';
} from './attachments.node.js';
import { createLogger } from '../ts/logging/log.std.js';
const log = createLogger('protocol_filter');

View File

@@ -4,16 +4,16 @@
import React from 'react';
import { renderToStaticMarkup } from 'react-dom/server';
import type { WindowsNotificationData } from '../ts/services/notifications';
import type { WindowsNotificationData } from '../ts/services/notifications.preload.js';
import { NotificationType } from '../ts/services/notifications';
import { missingCaseError } from '../ts/util/missingCaseError';
import { NotificationType } from '../ts/types/notifications.std.js';
import { missingCaseError } from '../ts/util/missingCaseError.std.js';
import {
cancelPresentingRoute,
showConversationRoute,
showWindowRoute,
startCallLobbyRoute,
} from '../ts/util/signalRoutes';
} from '../ts/util/signalRoutes.std.js';
function pathToUri(path: string) {
return `file:///${encodeURI(path.replace(/\\/g, '/'))}`;

View File

@@ -5,14 +5,14 @@ import type { BrowserWindow } from 'electron';
import { Menu, clipboard, nativeImage } from 'electron';
import * as LocaleMatcher from '@formatjs/intl-localematcher';
import { maybeParseUrl } from '../ts/util/url.js';
import { maybeParseUrl } from '../ts/util/url.std.js';
import type { MenuListType } from '../ts/types/menu.js';
import type { LocalizerType } from '../ts/types/Util.js';
import { strictAssert } from '../ts/util/assert.js';
import type { LoggerType } from '../ts/types/Logging.js';
import { createLogger } from '../ts/logging/log.js';
import { handleAttachmentRequest } from './attachment_channel.js';
import type { MenuListType } from '../ts/types/menu.std.js';
import type { LocalizerType } from '../ts/types/Util.std.js';
import { strictAssert } from '../ts/util/assert.std.js';
import type { LoggerType } from '../ts/types/Logging.std.js';
import { createLogger } from '../ts/logging/log.std.js';
import { handleAttachmentRequest } from './attachment_channel.main.js';
const log = createLogger('spell_check');

View File

@@ -3,9 +3,9 @@
import { ipcMain } from 'electron';
import type { MainSQL } from '../ts/sql/main.js';
import { remove as removeUserConfig } from './user_config.js';
import { remove as removeEphemeralConfig } from './ephemeral_config.js';
import type { MainSQL } from '../ts/sql/main.main.js';
import { remove as removeUserConfig } from './user_config.main.js';
import { remove as removeEphemeralConfig } from './ephemeral_config.main.js';
let sql:
| Pick<

View File

@@ -3,9 +3,9 @@
import { app } from 'electron';
import { name } from '../ts/util/packageJson.js';
import { createLogger } from '../ts/logging/log.js';
import * as GlobalErrors from './global_errors.js';
import { name } from '../ts/util/packageJson.node.js';
import { createLogger } from '../ts/logging/log.std.js';
import * as GlobalErrors from './global_errors.main.js';
const log = createLogger('startup_config');

View File

@@ -5,10 +5,10 @@ import type { Session, DesktopCapturerSource, IpcMainEvent } from 'electron';
import { desktopCapturer, ipcMain, systemPreferences } from 'electron';
import { v4 as generateUuid } from 'uuid';
import OS from '../ts/util/os/osMain.js';
import type { LoggerType } from '../ts/types/Logging.js';
import { strictAssert } from '../ts/util/assert.js';
import { type IpcResponseType } from '../ts/util/desktopCapturer.js';
import OS from '../ts/util/os/osMain.node.js';
import type { LoggerType } from '../ts/types/Logging.std.js';
import { strictAssert } from '../ts/util/assert.std.js';
import { type IpcResponseType } from '../ts/util/desktopCapturer.preload.js';
const SPELL_CHECKER_DICTIONARY_DOWNLOAD_URL = `https://updates.signal.org/desktop/hunspell_dictionaries/${process.versions.electron}/`;

View File

@@ -5,9 +5,9 @@ import { join } from 'node:path';
import { mkdirSync } from 'node:fs';
import { app } from 'electron';
import { start } from './base_config.js';
import config from './config.js';
import * as Errors from '../ts/types/errors.js';
import { start } from './base_config.node.js';
import config from './config.main.js';
import * as Errors from '../ts/types/errors.std.js';
let userData: string | undefined;
// Use separate data directory for benchmarks & development