Upgrade dependencies, minor fixes

This commit is contained in:
everoddandeven 2024-11-12 23:04:11 +01:00
parent 8c9519f604
commit 8eea7839f9
5 changed files with 74 additions and 53 deletions

96
package-lock.json generated
View file

@ -61,8 +61,8 @@
"@types/node": "22.9.0", "@types/node": "22.9.0",
"@types/pidusage": "2.0.5", "@types/pidusage": "2.0.5",
"@types/unbzip2-stream": "1.4.3", "@types/unbzip2-stream": "1.4.3",
"@typescript-eslint/eslint-plugin": "8.13.0", "@typescript-eslint/eslint-plugin": "8.14.0",
"@typescript-eslint/parser": "8.13.0", "@typescript-eslint/parser": "8.14.0",
"conventional-changelog-cli": "5.0.0", "conventional-changelog-cli": "5.0.0",
"electron": "33.2.0", "electron": "33.2.0",
"electron-builder": "25.1.8", "electron-builder": "25.1.8",
@ -70,7 +70,7 @@
"electron-reloader": "1.2.3", "electron-reloader": "1.2.3",
"eslint": "9.14.0", "eslint": "9.14.0",
"eslint-plugin-import": "2.31.0", "eslint-plugin-import": "2.31.0",
"eslint-plugin-jsdoc": "50.4.3", "eslint-plugin-jsdoc": "50.5.0",
"eslint-plugin-prefer-arrow": "1.2.3", "eslint-plugin-prefer-arrow": "1.2.3",
"jest": "29.7.0", "jest": "29.7.0",
"node-polyfill-webpack-plugin": "4.0.0", "node-polyfill-webpack-plugin": "4.0.0",
@ -7341,16 +7341,16 @@
} }
}, },
"node_modules/@typescript-eslint/eslint-plugin": { "node_modules/@typescript-eslint/eslint-plugin": {
"version": "8.13.0", "version": "8.14.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.13.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.14.0.tgz",
"integrity": "sha512-nQtBLiZYMUPkclSeC3id+x4uVd1SGtHuElTxL++SfP47jR0zfkZBJHc+gL4qPsgTuypz0k8Y2GheaDYn6Gy3rg==", "integrity": "sha512-tqp8H7UWFaZj0yNO6bycd5YjMwxa6wIHOLZvWPkidwbgLCsBMetQoGj7DPuAlWa2yGO3H48xmPwjhsSPPCGU5w==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@eslint-community/regexpp": "^4.10.0", "@eslint-community/regexpp": "^4.10.0",
"@typescript-eslint/scope-manager": "8.13.0", "@typescript-eslint/scope-manager": "8.14.0",
"@typescript-eslint/type-utils": "8.13.0", "@typescript-eslint/type-utils": "8.14.0",
"@typescript-eslint/utils": "8.13.0", "@typescript-eslint/utils": "8.14.0",
"@typescript-eslint/visitor-keys": "8.13.0", "@typescript-eslint/visitor-keys": "8.14.0",
"graphemer": "^1.4.0", "graphemer": "^1.4.0",
"ignore": "^5.3.1", "ignore": "^5.3.1",
"natural-compare": "^1.4.0", "natural-compare": "^1.4.0",
@ -7374,15 +7374,15 @@
} }
}, },
"node_modules/@typescript-eslint/parser": { "node_modules/@typescript-eslint/parser": {
"version": "8.13.0", "version": "8.14.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.13.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.14.0.tgz",
"integrity": "sha512-w0xp+xGg8u/nONcGw1UXAr6cjCPU1w0XVyBs6Zqaj5eLmxkKQAByTdV/uGgNN5tVvN/kKpoQlP2cL7R+ajZZIQ==", "integrity": "sha512-2p82Yn9juUJq0XynBXtFCyrBDb6/dJombnz6vbo6mgQEtWHfvHbQuEa9kAOVIt1c9YFwi7H6WxtPj1kg+80+RA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@typescript-eslint/scope-manager": "8.13.0", "@typescript-eslint/scope-manager": "8.14.0",
"@typescript-eslint/types": "8.13.0", "@typescript-eslint/types": "8.14.0",
"@typescript-eslint/typescript-estree": "8.13.0", "@typescript-eslint/typescript-estree": "8.14.0",
"@typescript-eslint/visitor-keys": "8.13.0", "@typescript-eslint/visitor-keys": "8.14.0",
"debug": "^4.3.4" "debug": "^4.3.4"
}, },
"engines": { "engines": {
@ -7402,13 +7402,13 @@
} }
}, },
"node_modules/@typescript-eslint/scope-manager": { "node_modules/@typescript-eslint/scope-manager": {
"version": "8.13.0", "version": "8.14.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.13.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.14.0.tgz",
"integrity": "sha512-XsGWww0odcUT0gJoBZ1DeulY1+jkaHUciUq4jKNv4cpInbvvrtDoyBH9rE/n2V29wQJPk8iCH1wipra9BhmiMA==", "integrity": "sha512-aBbBrnW9ARIDn92Zbo7rguLnqQ/pOrUguVpbUwzOhkFg2npFDwTgPGqFqE0H5feXcOoJOfX3SxlJaKEVtq54dw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@typescript-eslint/types": "8.13.0", "@typescript-eslint/types": "8.14.0",
"@typescript-eslint/visitor-keys": "8.13.0" "@typescript-eslint/visitor-keys": "8.14.0"
}, },
"engines": { "engines": {
"node": "^18.18.0 || ^20.9.0 || >=21.1.0" "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
@ -7419,13 +7419,13 @@
} }
}, },
"node_modules/@typescript-eslint/type-utils": { "node_modules/@typescript-eslint/type-utils": {
"version": "8.13.0", "version": "8.14.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.13.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.14.0.tgz",
"integrity": "sha512-Rqnn6xXTR316fP4D2pohZenJnp+NwQ1mo7/JM+J1LWZENSLkJI8ID8QNtlvFeb0HnFSK94D6q0cnMX6SbE5/vA==", "integrity": "sha512-Xcz9qOtZuGusVOH5Uk07NGs39wrKkf3AxlkK79RBK6aJC1l03CobXjJbwBPSidetAOV+5rEVuiT1VSBUOAsanQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@typescript-eslint/typescript-estree": "8.13.0", "@typescript-eslint/typescript-estree": "8.14.0",
"@typescript-eslint/utils": "8.13.0", "@typescript-eslint/utils": "8.14.0",
"debug": "^4.3.4", "debug": "^4.3.4",
"ts-api-utils": "^1.3.0" "ts-api-utils": "^1.3.0"
}, },
@ -7443,9 +7443,9 @@
} }
}, },
"node_modules/@typescript-eslint/types": { "node_modules/@typescript-eslint/types": {
"version": "8.13.0", "version": "8.14.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.13.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.14.0.tgz",
"integrity": "sha512-4cyFErJetFLckcThRUFdReWJjVsPCqyBlJTi6IDEpc1GWCIIZRFxVppjWLIMcQhNGhdWJJRYFHpHoDWvMlDzng==", "integrity": "sha512-yjeB9fnO/opvLJFAsPNYlKPnEM8+z4og09Pk504dkqonT02AyL5Z9SSqlE0XqezS93v6CXn49VHvB2G7XSsl0g==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": "^18.18.0 || ^20.9.0 || >=21.1.0" "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
@ -7456,13 +7456,13 @@
} }
}, },
"node_modules/@typescript-eslint/typescript-estree": { "node_modules/@typescript-eslint/typescript-estree": {
"version": "8.13.0", "version": "8.14.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.13.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.14.0.tgz",
"integrity": "sha512-v7SCIGmVsRK2Cy/LTLGN22uea6SaUIlpBcO/gnMGT/7zPtxp90bphcGf4fyrCQl3ZtiBKqVTG32hb668oIYy1g==", "integrity": "sha512-OPXPLYKGZi9XS/49rdaCbR5j/S14HazviBlUQFvSKz3npr3NikF+mrgK7CFVur6XEt95DZp/cmke9d5i3vtVnQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@typescript-eslint/types": "8.13.0", "@typescript-eslint/types": "8.14.0",
"@typescript-eslint/visitor-keys": "8.13.0", "@typescript-eslint/visitor-keys": "8.14.0",
"debug": "^4.3.4", "debug": "^4.3.4",
"fast-glob": "^3.3.2", "fast-glob": "^3.3.2",
"is-glob": "^4.0.3", "is-glob": "^4.0.3",
@ -7508,15 +7508,15 @@
} }
}, },
"node_modules/@typescript-eslint/utils": { "node_modules/@typescript-eslint/utils": {
"version": "8.13.0", "version": "8.14.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.13.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.14.0.tgz",
"integrity": "sha512-A1EeYOND6Uv250nybnLZapeXpYMl8tkzYUxqmoKAWnI4sei3ihf2XdZVd+vVOmHGcp3t+P7yRrNsyyiXTvShFQ==", "integrity": "sha512-OGqj6uB8THhrHj0Fk27DcHPojW7zKwKkPmHXHvQ58pLYp4hy8CSUdTKykKeh+5vFqTTVmjz0zCOOPKRovdsgHA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@eslint-community/eslint-utils": "^4.4.0", "@eslint-community/eslint-utils": "^4.4.0",
"@typescript-eslint/scope-manager": "8.13.0", "@typescript-eslint/scope-manager": "8.14.0",
"@typescript-eslint/types": "8.13.0", "@typescript-eslint/types": "8.14.0",
"@typescript-eslint/typescript-estree": "8.13.0" "@typescript-eslint/typescript-estree": "8.14.0"
}, },
"engines": { "engines": {
"node": "^18.18.0 || ^20.9.0 || >=21.1.0" "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
@ -7530,12 +7530,12 @@
} }
}, },
"node_modules/@typescript-eslint/visitor-keys": { "node_modules/@typescript-eslint/visitor-keys": {
"version": "8.13.0", "version": "8.14.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.13.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.14.0.tgz",
"integrity": "sha512-7N/+lztJqH4Mrf0lb10R/CbI1EaAMMGyF5y0oJvFoAhafwgiRA7TXyd8TFn8FC8k5y2dTsYogg238qavRGNnlw==", "integrity": "sha512-vG0XZo8AdTH9OE6VFRwAZldNc7qtJ/6NLGWak+BtENuEUXGZgFpihILPiBvKXvJ2nFu27XNGC6rKiwuaoMbYzQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@typescript-eslint/types": "8.13.0", "@typescript-eslint/types": "8.14.0",
"eslint-visitor-keys": "^3.4.3" "eslint-visitor-keys": "^3.4.3"
}, },
"engines": { "engines": {
@ -13575,9 +13575,9 @@
} }
}, },
"node_modules/eslint-plugin-jsdoc": { "node_modules/eslint-plugin-jsdoc": {
"version": "50.4.3", "version": "50.5.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-50.4.3.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-50.5.0.tgz",
"integrity": "sha512-uWtwFxGRv6B8sU63HZM5dAGDhgsatb+LONwmILZJhdRALLOkCX2HFZhdL/Kw2ls8SQMAVEfK+LmnEfxInRN8HA==", "integrity": "sha512-xTkshfZrUbiSHXBwZ/9d5ulZ2OcHXxSvm/NPo494H/hadLRJwOq5PMV0EUpMqsb9V+kQo+9BAgi6Z7aJtdBp2A==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@es-joy/jsdoccomment": "~0.49.0", "@es-joy/jsdoccomment": "~0.49.0",

View file

@ -125,8 +125,8 @@
"@types/node": "22.9.0", "@types/node": "22.9.0",
"@types/pidusage": "2.0.5", "@types/pidusage": "2.0.5",
"@types/unbzip2-stream": "1.4.3", "@types/unbzip2-stream": "1.4.3",
"@typescript-eslint/eslint-plugin": "8.13.0", "@typescript-eslint/eslint-plugin": "8.14.0",
"@typescript-eslint/parser": "8.13.0", "@typescript-eslint/parser": "8.14.0",
"conventional-changelog-cli": "5.0.0", "conventional-changelog-cli": "5.0.0",
"electron": "33.2.0", "electron": "33.2.0",
"electron-builder": "25.1.8", "electron-builder": "25.1.8",
@ -134,7 +134,7 @@
"electron-reloader": "1.2.3", "electron-reloader": "1.2.3",
"eslint": "9.14.0", "eslint": "9.14.0",
"eslint-plugin-import": "2.31.0", "eslint-plugin-import": "2.31.0",
"eslint-plugin-jsdoc": "50.4.3", "eslint-plugin-jsdoc": "50.5.0",
"eslint-plugin-prefer-arrow": "1.2.3", "eslint-plugin-prefer-arrow": "1.2.3",
"jest": "29.7.0", "jest": "29.7.0",
"node-polyfill-webpack-plugin": "4.0.0", "node-polyfill-webpack-plugin": "4.0.0",

View file

@ -421,6 +421,7 @@ export class DaemonService {
}).catch((error: any) => { }).catch((error: any) => {
this.startedAt = undefined; this.startedAt = undefined;
console.error(error); console.error(error);
this.starting = false;
}); });
} }
else { else {

View file

@ -79,6 +79,10 @@
<table <table
id="peersTable" id="peersTable"
data-toggle="peersTable" data-toggle="peersTable"
data-search="true"
data-pagination="true"
data-show-columns="true"
data-show-columns-search="true"
> >
<thead> <thead>
<tr> <tr>

View file

@ -45,7 +45,23 @@ export class DaemonStatusService {
} }
public get cannotRunBecauseBatteryPolicy(): boolean { public get cannotRunBecauseBatteryPolicy(): boolean {
return this.settings ? (this._runningOnBattery && !this.settings.runOnBattery) || (this.settings.runOnBattery && this.settings.batteryLevelThreshold > 0 && this._batteryLevel <= this.settings.batteryLevelThreshold) : false; if (!this.settings) {
return false;
}
if (!this._runningOnBattery) {
return false;
}
if (!this.settings.runOnBattery) {
return true;
}
if (this.settings.runOnBattery && this.settings.batteryLevelThreshold > 0 && this._batteryLevel <= this.settings.batteryLevelThreshold) {
return true;
}
return false;
} }
public get progressStatus(): string { public get progressStatus(): string {
@ -112,7 +128,7 @@ export class DaemonStatusService {
const batteryLevel = await this.electronService.getBatteryLevel(); const batteryLevel = await this.electronService.getBatteryLevel();
this._batteryTooLow = batteryLevel <= this.settings.batteryLevelThreshold; this._batteryTooLow = batteryLevel <= this.settings.batteryLevelThreshold;
} }
else if (!this.settings.runOnBattery) { else if (!this.settings.runOnBattery || !this._runningOnBattery) {
this._batteryTooLow = false; this._batteryTooLow = false;
} }
}).then().catch((error: any) => console.error(error)); }).then().catch((error: any) => console.error(error));