From 9d6b316423d7e4094d5784d43d86ea697b4647c8 Mon Sep 17 00:00:00 2001 From: geoffreychen777 Date: Sun, 6 Nov 2022 21:25:06 +0000 Subject: [PATCH 1/4] Fix a bug in preference --- app/preference/preference.ts | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/preference/preference.ts b/app/preference/preference.ts index 9a7fea40..f5729aa0 100644 --- a/app/preference/preference.ts +++ b/app/preference/preference.ts @@ -524,16 +524,18 @@ export class Preference { "downloaders" ) as unknown as DownloaderPreference[]; - for (const defaultDownloader of defaultPreferences.downloaders) { - if ( - !existingDownloaderArray.find( - (downloader) => downloader.name === defaultDownloader.name - ) - ) { - existingDownloaderArray.push(defaultDownloader); + if (existingDownloaderArray) { + for (const defaultDownloader of defaultPreferences.downloaders) { + if ( + !existingDownloaderArray.find( + (downloader) => downloader.name === defaultDownloader.name + ) + ) { + existingDownloaderArray.push(defaultDownloader); + } } + this.store.set("downloaders", existingDownloaderArray); } - this.store.set("downloaders", existingDownloaderArray); for (const key in defaultPreferences) { if (!this.store.has(key)) { From 81628afbdcdd90b762c8e109e785e1808eef3687 Mon Sep 17 00:00:00 2001 From: geoffreychen777 Date: Sun, 6 Nov 2022 21:57:51 +0000 Subject: [PATCH 2/4] Fix a bug in webdav --- app/repositories/file-repository/backends/webdav-backend.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/repositories/file-repository/backends/webdav-backend.ts b/app/repositories/file-repository/backends/webdav-backend.ts index bf6e372e..3c135ffe 100644 --- a/app/repositories/file-repository/backends/webdav-backend.ts +++ b/app/repositories/file-repository/backends/webdav-backend.ts @@ -220,7 +220,7 @@ export class WebDavFileBackend implements FileBackend { success = await this._local2localMove(sourceURL, targetCacheURL); success = await this._local2serverMove(sourceURL, targetURL); if (this.preference.get("sourceFileOperation") as string === 'cut') { - await fsPromise.unlink(sourceURL); + await fsPromise.unlink(sourceURL.replace("file://", "")); } } else if (sourceURL.startsWith("webdav://")) { success = await this._server2serverMove(sourceURL, targetURL); From f07b2658e464bb1bf1ed3bf7855a411f286a2a37 Mon Sep 17 00:00:00 2001 From: geoffreychen777 Date: Sun, 6 Nov 2022 22:19:37 +0000 Subject: [PATCH 3/4] 2.1.1-dev.rc1 --- CHANGELOG_CN.md | 4 ++++ CHANGELOG_EN.md | 4 ++++ app/renderer/ui/whats-new-view/whats-new-view-cn.vue | 3 ++- app/renderer/ui/whats-new-view/whats-new-view-en.vue | 3 ++- package.json | 2 +- 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 94755607..bf9fb3bd 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,7 @@ +## v2.1.1 06/11 2022 + +1. 修复了一个 Bug。 + ## v2.1.0 05/11 2022 1. 文章详情面板添加了引用计数。 diff --git a/CHANGELOG_EN.md b/CHANGELOG_EN.md index b7ae53b3..fc5b5816 100644 --- a/CHANGELOG_EN.md +++ b/CHANGELOG_EN.md @@ -1,3 +1,7 @@ +# v2.1.1 Nov 06 2022 + +1. Fixed a bug. + # v2.1.0 Nov 05 2022 1. Add citation count in the details panel. diff --git a/app/renderer/ui/whats-new-view/whats-new-view-cn.vue b/app/renderer/ui/whats-new-view/whats-new-view-cn.vue index 71b47eed..88dc829e 100644 --- a/app/renderer/ui/whats-new-view/whats-new-view-cn.vue +++ b/app/renderer/ui/whats-new-view/whats-new-view-cn.vue @@ -86,10 +86,11 @@ onMounted(() => { v-else />

- Paperlib 2.1.0 更新内容 + Paperlib 2.1.0 - 2.1.1 更新内容

    +
  • 修复了一个针对新用户的重要 Bug。
  • 文章详情面板添加了引用计数。
  • 从 adsabs.harvard.edu 导入时可以自动下载 PDF。
  • 一个新的 PDF 下载器: semanticscholar.org.
  • diff --git a/app/renderer/ui/whats-new-view/whats-new-view-en.vue b/app/renderer/ui/whats-new-view/whats-new-view-en.vue index 58b6c435..03959cb9 100644 --- a/app/renderer/ui/whats-new-view/whats-new-view-en.vue +++ b/app/renderer/ui/whats-new-view/whats-new-view-en.vue @@ -86,10 +86,11 @@ onMounted(() => { v-else />

    - What's New in Paperlib 2.1.0 + What's New in Paperlib 2.1.0 - 2.1.1

      +
    • Fixed a fatal bug for new users.
    • Add citation count in the details panel.
    • PDFs will be automatically downloaded when importing papers from diff --git a/package.json b/package.json index b195ac0b..bc52ecd3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "paperlib", - "version": "2.1.0", + "version": "2.1.1-dev.rc1", "main": "dist/app/main/index.js", "description": "A simple academic paper management tool.", "author": "Geoffrey Chen ", From 21cad330ab7fde680dbe46f031d6d050ce9b569e Mon Sep 17 00:00:00 2001 From: geoffreychen777 Date: Sun, 6 Nov 2022 22:39:54 +0000 Subject: [PATCH 4/4] Bump up to v2.1.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bc52ecd3..3cb99679 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "paperlib", - "version": "2.1.1-dev.rc1", + "version": "2.1.1", "main": "dist/app/main/index.js", "description": "A simple academic paper management tool.", "author": "Geoffrey Chen ",