From 2de9ad0edf13cfb8554b4fddca447f033ce89281 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sat, 12 Nov 2022 17:11:24 +0700 Subject: [PATCH 1/3] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B0=D1=8F=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20=D1=80=D0=B0?= =?UTF-8?q?=D0=B7=D0=BC=D0=B5=D1=82=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Search/Search.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/Search/Search.vue b/client/components/Search/Search.vue index 3ac28b4..e72fe47 100644 --- a/client/components/Search/Search.vue +++ b/client/components/Search/Search.vue @@ -204,7 +204,7 @@
-
+
{{ projectName }}
From f174617f3315bb70b4fa960db17dfc98ad24a3c7 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sat, 12 Nov 2022 17:23:21 +0700 Subject: [PATCH 2/3] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=B1=D0=B0=D0=B3=20=D0=BF=D1=80=D0=B8=20=D1=81?= =?UTF-8?q?=D0=BA=D0=B0=D1=87=D0=B8=D0=B2=D0=B0=D0=BD=D0=B8=D0=B8=20=D0=B2?= =?UTF-8?q?=20=D1=80=D0=B5=D0=B6=D0=B8=D0=BC=D0=B5=20"=D0=A3=D0=B4=D0=B0?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=BD=D0=B0=D1=8F=20=D0=B1=D0=B8=D0=B1=D0=BB?= =?UTF-8?q?=D0=B8=D0=BE=D1=82=D0=B5=D0=BA=D0=B0"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/core/RemoteLib.js | 4 ++-- server/core/WebWorker.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/core/RemoteLib.js b/server/core/RemoteLib.js index 122cdd9..8681931 100644 --- a/server/core/RemoteLib.js +++ b/server/core/RemoteLib.js @@ -58,9 +58,9 @@ class RemoteLib { } } - async downloadBook(bookPath, downFileName) { + async downloadBook(bookId) { try { - const response = await await this.wsRequest({action: 'get-book-link', bookPath, downFileName}); + const response = await await this.wsRequest({action: 'get-book-link', bookId}); const link = response.link; const buf = await this.down.load(`${this.remoteHost}${link}`, {decompress: false}); diff --git a/server/core/WebWorker.js b/server/core/WebWorker.js index b1d715c..a73deb5 100644 --- a/server/core/WebWorker.js +++ b/server/core/WebWorker.js @@ -354,7 +354,7 @@ class WebWorker { } } - async restoreBook(bookPath, downFileName) { + async restoreBook(bookId, bookPath, downFileName) { const db = this.db; let extractedFile = ''; @@ -364,7 +364,7 @@ class WebWorker { extractedFile = await this.extractBook(bookPath); hash = await utils.getFileHash(extractedFile, 'sha256', 'hex'); } else { - hash = await this.remoteLib.downloadBook(bookPath, downFileName); + hash = await this.remoteLib.downloadBook(bookId); } const link = `${this.config.filesPathStatic}/${hash}`; @@ -443,7 +443,7 @@ class WebWorker { } if (!link) { - link = await this.restoreBook(bookPath, downFileName) + link = await this.restoreBook(bookId, bookPath, downFileName) } if (!link) From c21b8ffa0e6fe293b962973696f926ac1c57c214 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sat, 12 Nov 2022 17:24:19 +0700 Subject: [PATCH 3/3] 1.2.2 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 19fa89d..9b5a88e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "inpx-web", - "version": "1.2.1", + "version": "1.2.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "inpx-web", - "version": "1.2.1", + "version": "1.2.2", "hasInstallScript": true, "license": "CC0-1.0", "dependencies": { diff --git a/package.json b/package.json index 885c135..334f1fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "inpx-web", - "version": "1.2.1", + "version": "1.2.2", "author": "Book Pauk ", "license": "CC0-1.0", "repository": "bookpauk/inpx-web",