mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 08:43:48 +03:00
refactor: ran prettier
This commit is contained in:
parent
8caea2893d
commit
2bcc40278c
@ -33,7 +33,6 @@ export const months = [
|
|||||||
"Dec",
|
"Dec",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
export const defaultDownloadsPath = app.getPath("downloads");
|
export const defaultDownloadsPath = app.getPath("downloads");
|
||||||
|
|
||||||
export const databasePath = path.join(
|
export const databasePath = path.join(
|
||||||
|
@ -15,7 +15,6 @@ import crypto from "node:crypto";
|
|||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import { app } from "electron";
|
import { app } from "electron";
|
||||||
|
|
||||||
|
|
||||||
interface DownloadStatus {
|
interface DownloadStatus {
|
||||||
numPeers: number;
|
numPeers: number;
|
||||||
numSeeds: number;
|
numSeeds: number;
|
||||||
|
@ -7,9 +7,7 @@ const wasmPath = app.isPackaged
|
|||||||
? path.join(process.resourcesPath, "unrar.wasm")
|
? path.join(process.resourcesPath, "unrar.wasm")
|
||||||
: path.join(__dirname, "..", "..", "unrar.wasm");
|
: path.join(__dirname, "..", "..", "unrar.wasm");
|
||||||
|
|
||||||
const wasmBinary = fs.readFileSync(
|
const wasmBinary = fs.readFileSync(require.resolve(wasmPath));
|
||||||
require.resolve(wasmPath)
|
|
||||||
);
|
|
||||||
|
|
||||||
export class Unrar {
|
export class Unrar {
|
||||||
private constructor(private extractor: Extractor<Uint8Array>) {}
|
private constructor(private extractor: Extractor<Uint8Array>) {}
|
||||||
|
@ -131,7 +131,8 @@ export function Settings() {
|
|||||||
value={form.realDebridApiToken ?? ""}
|
value={form.realDebridApiToken ?? ""}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
updateUserPreferences("realDebridApiToken", event.target.value);
|
updateUserPreferences("realDebridApiToken", event.target.value);
|
||||||
}} />
|
}}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user