feat: TokenGenerator + Hash

This commit is contained in:
CorentinTh 2020-04-25 18:43:17 +02:00 committed by Corentin THOMASSET
parent 1fba5c42e1
commit d1db2c8601
19 changed files with 610 additions and 135 deletions

13
src/utils/helpers.js Normal file
View file

@ -0,0 +1,13 @@
const copyToClipboard = (text) => {
const input = document.createElement('textarea');
input.innerHTML = text;
document.body.appendChild(input);
input.select();
const result = document.execCommand('copy');
document.body.removeChild(input);
return result;
}
export {
copyToClipboard
}