chore: Replace packages with native functions (#5140)

This commit is contained in:
David Kubeš
2022-08-03 13:38:21 +02:00
committed by GitHub
parent 262458f07d
commit a18c0a97f3
15 changed files with 68 additions and 57 deletions

View File

@@ -0,0 +1,14 @@
/**
* Writes a text string to the system clipboard.
*
* @async
* @param {string} text text to be written to the clipboard
* @throws {Error} unable to copy text to clipboard
*/
export const copyTextToClipboard = async text => {
try {
await navigator.clipboard.writeText(text);
} catch (error) {
throw new Error(`Unable to copy text to clipboard: ${error.message}`);
}
};

View File

@@ -1,5 +1,3 @@
// import groupBy from 'lodash.groupby';
export default {
methods: {
setFilterAttributes() {