mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
refactor: ran prettier
This commit is contained in:
parent
8caea2893d
commit
2bcc40278c
@ -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");
|
||||
|
@ -33,7 +33,6 @@ export const months = [
|
||||
"Dec",
|
||||
];
|
||||
|
||||
|
||||
export const defaultDownloadsPath = app.getPath("downloads");
|
||||
|
||||
export const databasePath = path.join(
|
||||
|
@ -15,7 +15,6 @@ import crypto from "node:crypto";
|
||||
import fs from "node:fs";
|
||||
import { app } from "electron";
|
||||
|
||||
|
||||
interface DownloadStatus {
|
||||
numPeers: number;
|
||||
numSeeds: number;
|
||||
|
@ -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({
|
||||
|
@ -131,7 +131,8 @@ export function Settings() {
|
||||
value={form.realDebridApiToken ?? ""}
|
||||
onChange={(event) => {
|
||||
updateUserPreferences("realDebridApiToken", event.target.value);
|
||||
}} />
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user