aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2024-03-10 14:19:43 +0100
committerBastien Wirtz <bastien.wirtz@gmail.com>2024-03-10 14:19:43 +0100
commit7e8cc22b0c6022d648df60a52a4a9496659ae16a (patch)
tree441cf0358bd22243bfe3cbcf59a51702c00517e9
parentf2f03eb3cc3be56abe32c064ec8d21912c4b4a47 (diff)
downloadhomer-7e8cc22b0c6022d648df60a52a4a9496659ae16a.tar.gz
homer-7e8cc22b0c6022d648df60a52a4a9496659ae16a.tar.zst
homer-7e8cc22b0c6022d648df60a52a4a9496659ae16a.zip
chore: lint
-rw-r--r--package.json1
-rw-r--r--src/components/services/Rtorrent.vue5
-rw-r--r--yarn.lock5
3 files changed, 8 insertions, 3 deletions
diff --git a/package.json b/package.json
index e225532..3092b3d 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
16 "yaml": "^2.4.1" 16 "yaml": "^2.4.1"
17 }, 17 },
18 "devDependencies": { 18 "devDependencies": {
19 "@rushstack/eslint-patch": "^1.7.2",
19 "@vitejs/plugin-vue": "^5.0.4", 20 "@vitejs/plugin-vue": "^5.0.4",
20 "@vue/eslint-config-prettier": "^9.0.0", 21 "@vue/eslint-config-prettier": "^9.0.0",
21 "eslint": "^8.57.0", 22 "eslint": "^8.57.0",
diff --git a/src/components/services/Rtorrent.vue b/src/components/services/Rtorrent.vue
index 59dd843..337b8cb 100644
--- a/src/components/services/Rtorrent.vue
+++ b/src/components/services/Rtorrent.vue
@@ -125,9 +125,8 @@ export default {
125 const headers = { "Content-Type": "text/xml" }; 125 const headers = { "Content-Type": "text/xml" };
126 126
127 if (this.item.username && this.item.password) { 127 if (this.item.username && this.item.password) {
128 headers[ 128 headers["Authorization"] =
129 "Authorization" 129 `${this.item.username}:${this.item.password}`;
130 ] = `${this.item.username}:${this.item.password}`;
131 } 130 }
132 131
133 return fetch(`${this.item.xmlrpc.replace(/\/$/, "")}/RPC2`, { 132 return fetch(`${this.item.xmlrpc.replace(/\/$/, "")}/RPC2`, {
diff --git a/yarn.lock b/yarn.lock
index d6a194d..574662f 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1376,6 +1376,11 @@
1376 resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.12.1.tgz#cd8d175e001c212d5ac71c7827ef1d5c5e14494c" 1376 resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.12.1.tgz#cd8d175e001c212d5ac71c7827ef1d5c5e14494c"
1377 integrity sha512-n+vkrSyphvmU0qkQ6QBNXCGr2mKjhP08mPRM/Xp5Ck2FV4NrHU+y6axzDeixUrCBHVUS51TZhjqrKBBsHLKb2Q== 1377 integrity sha512-n+vkrSyphvmU0qkQ6QBNXCGr2mKjhP08mPRM/Xp5Ck2FV4NrHU+y6axzDeixUrCBHVUS51TZhjqrKBBsHLKb2Q==
1378 1378
1379"@rushstack/eslint-patch@^1.7.2":
1380 version "1.7.2"
1381 resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.7.2.tgz#2d4260033e199b3032a08b41348ac10de21c47e9"
1382 integrity sha512-RbhOOTCNoCrbfkRyoXODZp75MlpiHMgbE5MEBZAnnnLyQNgrigEj4p0lzsMDyc1zVsJDLrivB58tgg3emX0eEA==
1383
1379"@surma/rollup-plugin-off-main-thread@^2.2.3": 1384"@surma/rollup-plugin-off-main-thread@^2.2.3":
1380 version "2.2.3" 1385 version "2.2.3"
1381 resolved "https://registry.yarnpkg.com/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz#ee34985952ca21558ab0d952f00298ad2190c053" 1386 resolved "https://registry.yarnpkg.com/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz#ee34985952ca21558ab0d952f00298ad2190c053"