Manav Rathi 2024-03-26 11:05:38 +05:30
parent db930feaf3
commit 140b65b69d
No known key found for this signature in database
11 changed files with 20 additions and 20 deletions

View file

@ -8,12 +8,12 @@
*
* https://www.electronjs.org/docs/latest/tutorial/process-model#the-main-process
*/
import * as log from "electron-log";
import log from "electron-log";
import { app, BrowserWindow } from "electron/main";
import serveNextAt from "next-electron-server";
import { existsSync } from "node:fs";
import * as fs from "node:fs/promises";
import * as path from "node:path";
import fs from "node:fs/promises";
import path from "node:path";
import { isDev } from "./main/general";
import { attachFSWatchIPCHandlers, attachIPCHandlers } from "./main/ipc";
import { logErrorSentry, setupLogging } from "./main/log";

View file

@ -1,5 +1,5 @@
import { dialog } from "electron/main";
import * as path from "node:path";
import path from "node:path";
import { getDirFilePaths, getElectronFile } from "../services/fs";
import { getElectronFilesFromGoogleZip } from "../services/upload";
import type { ElectronFile } from "../types";

View file

@ -2,8 +2,8 @@
* @file file system related functions exposed over the context bridge.
*/
import { createWriteStream, existsSync } from "node:fs";
import * as fs from "node:fs/promises";
import * as path from "node:path";
import fs from "node:fs/promises";
import path from "node:path";
import { Readable } from "node:stream";
import { logError } from "./log";

View file

@ -1,6 +1,6 @@
import { shell } from "electron"; /* TODO(MR): Why is this not in /main? */
import { app } from "electron/main";
import * as path from "node:path";
import path from "node:path";
/** `true` if the app is running in development mode. */
export const isDev = !app.isPackaged;

View file

@ -1,6 +1,6 @@
import chokidar from "chokidar";
import { BrowserWindow } from "electron";
import * as path from "path";
import path from "path";
import { logError } from "../main/log";
import { getWatchMappings } from "../services/watch";
import { getElectronFile } from "./fs";

View file

@ -1,8 +1,8 @@
import * as log from "electron-log";
import log from "electron-log";
import { app, net } from "electron/main";
import { existsSync } from "fs";
import * as fs from "node:fs/promises";
import * as path from "node:path";
import fs from "node:fs/promises";
import path from "node:path";
import util from "util";
import { CustomErrors } from "../constants/errors";
import { writeStream } from "../main/fs";

View file

@ -1,7 +1,7 @@
import log from "electron-log";
import pathToFfmpeg from "ffmpeg-static";
import { existsSync } from "node:fs";
import * as fs from "node:fs/promises";
import fs from "node:fs/promises";
import util from "util";
import { CustomErrors } from "../constants/errors";
import { writeStream } from "../main/fs";

View file

@ -1,7 +1,7 @@
import StreamZip from "node-stream-zip";
import { existsSync } from "node:fs";
import * as fs from "node:fs/promises";
import * as path from "node:path";
import fs from "node:fs/promises";
import path from "node:path";
import { logError } from "../main/log";
import { ElectronFile } from "../types";

View file

@ -1,7 +1,7 @@
import { exec } from "child_process";
import log from "electron-log";
import { existsSync } from "fs";
import * as fs from "node:fs/promises";
import fs from "node:fs/promises";
import path from "path";
import util from "util";
import { CustomErrors } from "../constants/errors";

View file

@ -1,11 +1,11 @@
import { app, BrowserWindow, nativeImage } from "electron";
import ElectronLog from "electron-log";
import * as path from "path";
import path from "path";
import { isAppQuitting, rendererURL } from "../main";
import autoLauncher from "../services/autoLauncher";
import { logErrorSentry } from "../main/log";
import { getHideDockIconPreference } from "../services/userPreference";
import { isDev } from "../main/general";
import { logErrorSentry } from "../main/log";
import autoLauncher from "../services/autoLauncher";
import { getHideDockIconPreference } from "../services/userPreference";
import { isPlatform } from "./common/platform";
/**

View file

@ -1,6 +1,6 @@
import { app } from "electron/main";
import { existsSync } from "node:fs";
import * as fs from "node:fs/promises";
import fs from "node:fs/promises";
import path from "path";
const CHARACTERS =