refactor: ran prettier

This commit is contained in:
lilezek 2024-05-04 19:27:58 +02:00
parent 8caea2893d
commit 2bcc40278c
5 changed files with 5 additions and 8 deletions

View File

@ -7,4 +7,4 @@ if (process.platform === "win32") {
);
}
fs.copyFileSync("node_modules/node-unrar-js/esm/js/unrar.wasm", "unrar.wasm");
fs.copyFileSync("node_modules/node-unrar-js/esm/js/unrar.wasm", "unrar.wasm");

View File

@ -33,7 +33,6 @@ export const months = [
"Dec",
];
export const defaultDownloadsPath = app.getPath("downloads");
export const databasePath = path.join(

View File

@ -15,7 +15,6 @@ import crypto from "node:crypto";
import fs from "node:fs";
import { app } from "electron";
interface DownloadStatus {
numPeers: number;
numSeeds: number;

View File

@ -7,12 +7,10 @@ const wasmPath = app.isPackaged
? path.join(process.resourcesPath, "unrar.wasm")
: path.join(__dirname, "..", "..", "unrar.wasm");
const wasmBinary = fs.readFileSync(
require.resolve(wasmPath)
);
const wasmBinary = fs.readFileSync(require.resolve(wasmPath));
export class Unrar {
private constructor(private extractor: Extractor<Uint8Array>) { }
private constructor(private extractor: Extractor<Uint8Array>) {}
static async fromFilePath(filePath: string, targetFolder: string) {
const extractor = await createExtractorFromFile({

View File

@ -131,7 +131,8 @@ export function Settings() {
value={form.realDebridApiToken ?? ""}
onChange={(event) => {
updateUserPreferences("realDebridApiToken", event.target.value);
}} />
}}
/>
</div>
</section>
);