style: Sort imports

This commit is contained in:
Vendicated 2022-10-22 18:18:41 +02:00
parent a7dbd73547
commit 61fd38d6d9
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
57 changed files with 133 additions and 114 deletions

View file

@ -16,8 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { join } from "path";
import { app } from "electron";
import { join } from "path";
export const DATA_DIR = process.env.VENCORD_USER_DATA_DIR ?? (
process.env.DISCORD_USER_DATA_DIR

View file

@ -16,13 +16,14 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import https from "https";
import { mkdir, rm, writeFile, access } from "fs/promises";
import { constants as fsConstants } from "fs";
import { join } from "path";
import { DATA_DIR } from "./constants";
import { unzip } from "fflate";
import { session } from "electron";
import { unzip } from "fflate";
import { constants as fsConstants } from "fs";
import { access,mkdir, rm, writeFile } from "fs/promises";
import https from "https";
import { join } from "path";
import { DATA_DIR } from "./constants";
import { crxToZip } from "./crxToZip";
const extensionCacheDir = join(DATA_DIR, "ExtensionCache");

View file

@ -16,17 +16,18 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import "./updater";
import monacoHtml from "@fileContent/../components/monacoWin.html;base64";
import { app, BrowserWindow, desktopCapturer, ipcMain, shell } from "electron";
import { mkdirSync, readFileSync, watch } from "fs";
import { open, readFile, writeFile } from "fs/promises";
import { join } from "path";
import { debounce } from "../utils/debounce";
import IpcEvents from "../utils/IpcEvents";
import monacoHtml from "@fileContent/../components/monacoWin.html;base64";
import "./updater";
import { Queue } from "../utils/Queue";
import { QUICKCSS_PATH, ALLOWED_PROTOCOLS, SETTINGS_DIR, SETTINGS_FILE } from "./constants";
import { ALLOWED_PROTOCOLS, QUICKCSS_PATH, SETTINGS_DIR, SETTINGS_FILE } from "./constants";

View file

@ -16,13 +16,14 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { ipcMain } from "electron";
import { promisify } from "util";
import IpcEvents from "../utils/IpcEvents";
import { execFile as cpExecFile } from "child_process";
import { join } from "path";
import { createReadStream } from "fs";
import { createHash } from "crypto";
import { ipcMain } from "electron";
import { createReadStream } from "fs";
import { join } from "path";
import { promisify } from "util";
import IpcEvents from "../utils/IpcEvents";
const VENCORD_SRC_DIR = join(__dirname, "..");