Skip to content

feat(clipboard): Implement HTML and clear functionality#977

Merged
amrbashir merged 19 commits into
tauri-apps:v2from
TukanDev:v2
Feb 25, 2024
Merged

feat(clipboard): Implement HTML and clear functionality#977
amrbashir merged 19 commits into
tauri-apps:v2from
TukanDev:v2

Conversation

@TukanDev
Copy link
Copy Markdown
Contributor

This PR introduces ability to set and read HTML to/from clipboard, including implementation to trigger clipboard clear.
Currently the added features are locked behind #[cfg(desktop)] as i have no ability to test them for mobile targets.

… clipboard clear

Signed-off-by: TukanDev <contact@tukandev.com>
@TukanDev TukanDev requested a review from a team as a code owner February 21, 2024 23:37
Signed-off-by: TukanDev <contact@tukandev.com>
Copy link
Copy Markdown
Member

@amrbashir amrbashir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contributions, left a few comments

Comment thread plugins/clipboard-manager/README.md Outdated
Comment thread plugins/clipboard-manager/guest-js/index.ts Outdated
Comment thread plugins/clipboard-manager/guest-js/index.ts Outdated
Comment thread plugins/clipboard-manager/guest-js/index.ts Outdated
Comment thread plugins/clipboard-manager/guest-js/index.ts Outdated
Comment thread plugins/clipboard-manager/src/desktop.rs Outdated
amrbashir

This comment was marked as spam.

TukanDev and others added 6 commits February 23, 2024 20:20
Propagate error for clear as requested

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Change to camelCase as requested

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
use camelCase here too

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Revert back as mentioned in HTML PR
After discussion  readHtml() is decided to be removed. Will follow and remove corresponding rust side function too.
…ort PR conversation

Signed-off-by: TukanDev <contact@tukandev.com>
@TukanDev TukanDev requested a review from amrbashir February 23, 2024 20:52
Comment thread plugins/clipboard-manager/guest-js/index.ts Outdated
Comment thread plugins/clipboard-manager/guest-js/index.ts Outdated
Comment thread plugins/clipboard-manager/guest-js/index.ts Outdated
Comment thread plugins/clipboard-manager/src/models.rs Outdated
Signed-off-by: TukanDev <contact@tukandev.com>
@TukanDev TukanDev requested a review from amrbashir February 24, 2024 17:04
@amrbashir
Copy link
Copy Markdown
Member

Looks like you need to run pnpm build and cargo fmt to fix formatting and also remove the extra undeeded read_html function

Signed-off-by: TukanDev <contact@tukandev.com>
Comment thread plugins/clipboard-manager/src/mobile.rs Outdated
Comment thread plugins/clipboard-manager/src/mobile.rs Outdated
fix ci calling

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Comment thread plugins/clipboard-manager/src/mobile.rs Outdated
amrbashir
amrbashir previously approved these changes Feb 25, 2024
amrbashir
amrbashir previously approved these changes Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants