Replace clipboard.js with async clipboard api #15899

Merged
silverwind merged 3 commits from clip into main 2021-05-30 19:15:58 +00:00
silverwind commented 2021-05-16 15:05:59 +00:00 (Migrated from github.com)

Use async clipboard api over this dependency, saving around 10kB bundle size before minify while delivering the same functionality.

The issue comment button works but does not have a popup indication (didn't have one before either). We could add some toast-style notifications in the future to fix that but I think it's out of scope of this PR.

Use [async clipboard api](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText) over this dependency, saving around [10kB bundle size](https://bundlephobia.com/result?p=clipboard@2.0.8) before minify while delivering the same functionality. The issue comment button works but does not have a popup indication (didn't have one before either). We could add some toast-style notifications in the future to fix that but I think it's out of scope of this PR.
KN4CK3R (Migrated from github.com) approved these changes 2021-05-20 20:33:11 +00:00
lunny approved these changes 2021-05-24 01:07:37 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#15899
No description provided.