Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 19 commits into from
Feb 25, 2024

Conversation

TukanDev
Copy link
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.

@TukanDev TukanDev requested a review from a team as a code owner February 21, 2024 23:37
Copy link
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

plugins/clipboard-manager/README.md Outdated Show resolved Hide resolved
plugins/clipboard-manager/guest-js/index.ts Outdated Show resolved Hide resolved
plugins/clipboard-manager/guest-js/index.ts Outdated Show resolved Hide resolved
plugins/clipboard-manager/guest-js/index.ts Outdated Show resolved Hide resolved
plugins/clipboard-manager/guest-js/index.ts Outdated Show resolved Hide resolved
plugins/clipboard-manager/src/desktop.rs Outdated Show resolved Hide resolved
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 <[email protected]>
Change to camelCase as requested

Co-authored-by: Amr Bashir <[email protected]>
use camelCase here too

Co-authored-by: Amr Bashir <[email protected]>
Revert back as mentioned in HTML PR
After discussion  readHtml() is decided to be removed. Will follow and remove corresponding rust side function too.
@TukanDev TukanDev requested a review from amrbashir February 23, 2024 20:52
plugins/clipboard-manager/guest-js/index.ts Outdated Show resolved Hide resolved
plugins/clipboard-manager/guest-js/index.ts Outdated Show resolved Hide resolved
plugins/clipboard-manager/guest-js/index.ts Outdated Show resolved Hide resolved
plugins/clipboard-manager/src/models.rs Outdated Show resolved Hide resolved
@TukanDev TukanDev requested a review from amrbashir February 24, 2024 17:04
@amrbashir
Copy link
Member

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

fix ci calling

Co-authored-by: Amr Bashir <[email protected]>
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