diff options
author | silverwind <me@silverwind.io> | 2022-12-23 17:03:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-24 00:03:11 +0800 |
commit | 2cf0cf0de1fc298f1b44a0452c8dbb2c2f9dd71c (patch) | |
tree | 17afa61c3128109ce8b28505a19f302018de26f9 /web_src/js/features/copycontent.js | |
parent | 71ca3067bcc6c7c7772d38fc7590505c8c7148ed (diff) | |
download | gitea-2cf0cf0de1fc298f1b44a0452c8dbb2c2f9dd71c.tar.gz gitea-2cf0cf0de1fc298f1b44a0452c8dbb2c2f9dd71c.zip |
JS refactors (#22227)
- Replace all default exports with named exports, except for Vue SFCs
- Remove names from Vue SFCs, they are automatically inferred from the
filename
- Misc whitespace-related tweaks
Diffstat (limited to 'web_src/js/features/copycontent.js')
-rw-r--r-- | web_src/js/features/copycontent.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web_src/js/features/copycontent.js b/web_src/js/features/copycontent.js index 9b791bedba..5a4b99ae9b 100644 --- a/web_src/js/features/copycontent.js +++ b/web_src/js/features/copycontent.js @@ -1,6 +1,7 @@ import {copyToClipboard} from './clipboard.js'; import {showTemporaryTooltip} from '../modules/tippy.js'; import {convertImage} from '../utils.js'; + const {i18n} = window.config; async function doCopy(content, btn) { |