From 8a5a0c2451bbaecf5371a1c78dd564424ded2516 Mon Sep 17 00:00:00 2001 From: Aiello Date: Mon, 29 May 2023 10:07:52 +0800 Subject: [PATCH 1/5] fix(event): Remove command + arrow right navigation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 之前就是因为 command + left 和 right 会导致错误地跳转,才将其转换为 command + [ 和 command + ] 跳转的 --- src-tauri/src/inject/event.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src-tauri/src/inject/event.js b/src-tauri/src/inject/event.js index b0830bc..29d55ea 100644 --- a/src-tauri/src/inject/event.js +++ b/src-tauri/src/inject/event.js @@ -1,8 +1,6 @@ const shortcuts = { ArrowUp: () => scrollTo(0, 0), ArrowDown: () => scrollTo(0, document.body.scrollHeight), - ArrowLeft: () => window.history.back(), - ArrowRight: () => window.history.forward(), '[': () => window.history.back(), ']': () => window.history.forward(), r: () => window.location.reload(), From 97a890f90e5f89c0dd4873927e1dbf50677ee95b Mon Sep 17 00:00:00 2001 From: Aiello Date: Mon, 29 May 2023 10:12:17 +0800 Subject: [PATCH 2/5] fix(event): Comment instead --- src-tauri/src/inject/event.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src-tauri/src/inject/event.js b/src-tauri/src/inject/event.js index 29d55ea..c9bd3ee 100644 --- a/src-tauri/src/inject/event.js +++ b/src-tauri/src/inject/event.js @@ -1,6 +1,10 @@ const shortcuts = { ArrowUp: () => scrollTo(0, 0), ArrowDown: () => scrollTo(0, document.body.scrollHeight), + // Don't use command + ArrowLeft or command + ArrowRight + // When editing text in page, it causes unintended page navigation. + // ArrowLeft: () => window.history.back(), + // ArrowRight: () => window.history.forward(), '[': () => window.history.back(), ']': () => window.history.forward(), r: () => window.location.reload(), From 8d647e598ecfc6ee59930349815d302e5be5165f Mon Sep 17 00:00:00 2001 From: Tw93 Date: Tue, 30 May 2023 10:05:20 +0800 Subject: [PATCH 3/5] docs(contributor): contrib-readme-action has updated readme --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 29401a0..b369b09 100644 --- a/README.md +++ b/README.md @@ -247,14 +247,21 @@ Pake's development can not be without these Hackers. They contributed a lot of c Essesoul + + + AielloChan +
+ Aiello +
+ + m1911star
Horus
- - + Pake-Actions @@ -262,13 +269,6 @@ Pake's development can not be without these Hackers. They contributed a lot of c Pake Actions - - - AielloChan -
- Aiello -
- QingZ11 From e8a2b086b00cef936c1f8a589e20f92cfec62e15 Mon Sep 17 00:00:00 2001 From: lakca <912910011@qq.com> Date: Thu, 1 Jun 2023 18:02:48 +0800 Subject: [PATCH 4/5] fix download judgement. 1. support download attribute of anchor. 2. click link with meta key pressed to download any link, instead of judging the suffix which may block the normal page likes xxx.html, could be also not able to download files implied by the response headers. --- src-tauri/src/inject/event.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src-tauri/src/inject/event.js b/src-tauri/src/inject/event.js index c9bd3ee..3ef7317 100644 --- a/src-tauri/src/inject/event.js +++ b/src-tauri/src/inject/event.js @@ -127,16 +127,16 @@ document.addEventListener('DOMContentLoaded', () => { return; } + let filename = anchorElement.download ? anchorElement.download : getFilenameFromUrl(absoluteUrl) // Process download links for Rust to handle. - if ( - /\.[a-zA-Z0-9]+$/i.test(removeUrlParameters(absoluteUrl)) && - !externalDownLoadLink() + if ((anchorElement.download /* download attribute */ || e.metaKey /* Click anchor with meta key pressed could download any kind of resource. */) + && !externalDownLoadLink() ) { e.preventDefault(); invoke('download_file', { params: { url: absoluteUrl, - filename: getFilenameFromUrl(absoluteUrl), + filename, }, }); } From 8a208f1ae74230e509c99a4ce270d64303fd77fc Mon Sep 17 00:00:00 2001 From: Tw93 Date: Sun, 4 Jun 2023 09:32:44 +0800 Subject: [PATCH 5/5] docs(contributor): contrib-readme-action has updated readme --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index b369b09..2fa592b 100644 --- a/README.md +++ b/README.md @@ -333,6 +333,13 @@ Pake's development can not be without these Hackers. They contributed a lot of c Hyzhao + + + lakca +
+ Null +
+ liusishan