fix: remove unused emoji stuff (#727)

This commit is contained in:
Vjacheslav Trushkin 2023-01-03 11:42:05 +02:00 committed by GitHub
parent 6e12402987
commit 6092b27da6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 25 deletions

View file

@ -42,10 +42,8 @@ export const pwa: VitePWANuxtOptions = {
], ],
}, },
injectManifest: { injectManifest: {
// fonts/seguiemj.ttf is 2.77 MB, and won't be precached
maximumFileSizeToCacheInBytes: 3000000,
globPatterns: ['**/*.{js,json,css,html,txt,svg,png,ico,webp,woff,woff2,ttf,eot,otf,wasm}'], globPatterns: ['**/*.{js,json,css,html,txt,svg,png,ico,webp,woff,woff2,ttf,eot,otf,wasm}'],
globIgnores: ['emojis/twemoji/*.svg'], globIgnores: ['emojis/*'],
}, },
devOptions: { devOptions: {
enabled: process.env.VITE_DEV_PWA === 'true', enabled: process.env.VITE_DEV_PWA === 'true',

View file

@ -89,7 +89,6 @@
"@vueuse/nuxt": "^9.9.0", "@vueuse/nuxt": "^9.9.0",
"bumpp": "^8.2.1", "bumpp": "^8.2.1",
"emoji-mart": "^5.4.0", "emoji-mart": "^5.4.0",
"emoji-regex": "^10.2.1",
"eslint": "^8.30.0", "eslint": "^8.30.0",
"esno": "^0.16.3", "esno": "^0.16.3",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",

View file

@ -43,7 +43,6 @@ specifiers:
browser-fs-access: ^0.31.1 browser-fs-access: ^0.31.1
bumpp: ^8.2.1 bumpp: ^8.2.1
emoji-mart: ^5.4.0 emoji-mart: ^5.4.0
emoji-regex: ^10.2.1
eslint: ^8.30.0 eslint: ^8.30.0
esno: ^0.16.3 esno: ^0.16.3
file-saver: ^2.0.5 file-saver: ^2.0.5
@ -151,7 +150,6 @@ devDependencies:
'@vueuse/nuxt': 9.9.0_nuxt@3.0.0 '@vueuse/nuxt': 9.9.0_nuxt@3.0.0
bumpp: 8.2.1 bumpp: 8.2.1
emoji-mart: 5.4.0 emoji-mart: 5.4.0
emoji-regex: 10.2.1
eslint: 8.30.0 eslint: 8.30.0
esno: 0.16.3 esno: 0.16.3
file-saver: 2.0.5 file-saver: 2.0.5
@ -169,7 +167,7 @@ devDependencies:
typescript: 4.9.4 typescript: 4.9.4
unplugin-auto-import: 0.12.1_@vueuse+core@9.9.0 unplugin-auto-import: 0.12.1_@vueuse+core@9.9.0
vite-plugin-inspect: 0.7.11 vite-plugin-inspect: 0.7.11
vite-plugin-pwa: 0.13.3_workbox-window@6.5.4 vite-plugin-pwa: 0.13.3
vitest: 0.26.2_jsdom@20.0.3 vitest: 0.26.2_jsdom@20.0.3
vue-tsc: 1.0.16_typescript@4.9.4 vue-tsc: 1.0.16_typescript@4.9.4
workbox-window: 6.5.4 workbox-window: 6.5.4
@ -1633,8 +1631,8 @@ packages:
vue-i18n: vue-i18n:
optional: true optional: true
dependencies: dependencies:
'@intlify/message-compiler': 9.3.0-beta.11 '@intlify/message-compiler': 9.3.0-beta.12
'@intlify/shared': 9.3.0-beta.11 '@intlify/shared': 9.3.0-beta.12
jsonc-eslint-parser: 1.4.1 jsonc-eslint-parser: 1.4.1
source-map: 0.6.1 source-map: 0.6.1
vue-i18n: 9.3.0-beta.10 vue-i18n: 9.3.0-beta.10
@ -1666,8 +1664,8 @@ packages:
source-map: 0.6.1 source-map: 0.6.1
dev: true dev: true
/@intlify/message-compiler/9.3.0-beta.11: /@intlify/message-compiler/9.3.0-beta.12:
resolution: {integrity: sha512-gGGfBGzM7JBXp1Q9gbDAy5jELz9ho3ILqnpxp2yp64+gkqohrqc2YXIvCdwZoc6AtKIh/Zmv4sWVqxkvMsBWtQ==} resolution: {integrity: sha512-A8/s7pb3v8nf6HG77qFPJntxgQKI9GXxGnkn7aO+b03/X/GkF/4WceDSAIk3i+yLeIgszeBn9GZ23tSg4sTEHA==}
engines: {node: '>= 14'} engines: {node: '>= 14'}
dependencies: dependencies:
'@intlify/shared': 9.3.0-beta.11 '@intlify/shared': 9.3.0-beta.11
@ -1684,6 +1682,11 @@ packages:
engines: {node: '>= 14'} engines: {node: '>= 14'}
dev: true dev: true
/@intlify/shared/9.3.0-beta.12:
resolution: {integrity: sha512-WsmaS54sA8xuwezPKpa/OMoaX1v2VF2fCgAmYS6prDr2ir0CkUFWPm9A8ilmxzv4nkS61/v8+vf4lGGkn5uBdA==}
engines: {node: '>= 14'}
dev: true
/@intlify/unplugin-vue-i18n/0.8.0_vue-i18n@9.3.0-beta.10: /@intlify/unplugin-vue-i18n/0.8.0_vue-i18n@9.3.0-beta.10:
resolution: {integrity: sha512-bqMDYrbmV0oMLGHTdYMUXfcEsy2rPwQnGrQAg4gvw5FimvJfTQt3RliLVayT5ldOfeT2g0IUc/0t7LPeGrFUag==} resolution: {integrity: sha512-bqMDYrbmV0oMLGHTdYMUXfcEsy2rPwQnGrQAg4gvw5FimvJfTQt3RliLVayT5ldOfeT2g0IUc/0t7LPeGrFUag==}
engines: {node: '>= 14.16'} engines: {node: '>= 14.16'}
@ -1700,7 +1703,7 @@ packages:
optional: true optional: true
dependencies: dependencies:
'@intlify/bundle-utils': 3.4.0_vue-i18n@9.3.0-beta.10 '@intlify/bundle-utils': 3.4.0_vue-i18n@9.3.0-beta.10
'@intlify/shared': 9.3.0-beta.11 '@intlify/shared': 9.3.0-beta.12
'@rollup/pluginutils': 4.2.1 '@rollup/pluginutils': 4.2.1
'@vue/compiler-sfc': 3.2.45 '@vue/compiler-sfc': 3.2.45
debug: 4.3.4 debug: 4.3.4
@ -4884,10 +4887,6 @@ packages:
resolution: {integrity: sha512-xrRrUmMqZG64oRxmUZcf8zSMUGQtIUYUL3aZD5iMkqAve+I9wMNh3OVOXL7NW9fEm48L2LI3BUPpj/DUIAJrVg==} resolution: {integrity: sha512-xrRrUmMqZG64oRxmUZcf8zSMUGQtIUYUL3aZD5iMkqAve+I9wMNh3OVOXL7NW9fEm48L2LI3BUPpj/DUIAJrVg==}
dev: true dev: true
/emoji-regex/10.2.1:
resolution: {integrity: sha512-97g6QgOk8zlDRdgq1WxwgTMgEWGVAQvB5Fdpgc1MkNy56la5SKP9GsMXKDOdqwn90/41a8yPwIGk1Y6WVbeMQA==}
dev: true
/emoji-regex/8.0.0: /emoji-regex/8.0.0:
resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
dev: true dev: true
@ -9926,11 +9925,10 @@ packages:
- supports-color - supports-color
dev: true dev: true
/vite-plugin-pwa/0.13.3_workbox-window@6.5.4: /vite-plugin-pwa/0.13.3:
resolution: {integrity: sha512-cjWXpZ7slAY14OKz7M8XdgTIi9wjf6OD6NkhiMAc+ogxnbUrecUwLdRtfGPCPsN2ftut5gaN1jTghb11p6IQAA==} resolution: {integrity: sha512-cjWXpZ7slAY14OKz7M8XdgTIi9wjf6OD6NkhiMAc+ogxnbUrecUwLdRtfGPCPsN2ftut5gaN1jTghb11p6IQAA==}
peerDependencies: peerDependencies:
vite: ^3.1.0 vite: ^3.1.0
workbox-window: ^6.5.4
dependencies: dependencies:
'@rollup/plugin-replace': 4.0.0_rollup@2.79.1 '@rollup/plugin-replace': 4.0.0_rollup@2.79.1
debug: 4.3.4 debug: 4.3.4
@ -10178,7 +10176,7 @@ packages:
vue-router: vue-router:
optional: true optional: true
dependencies: dependencies:
'@intlify/shared': 9.3.0-beta.11 '@intlify/shared': 9.3.0-beta.12
'@intlify/vue-i18n-bridge': 0.8.0_vue-i18n@9.3.0-beta.10 '@intlify/vue-i18n-bridge': 0.8.0_vue-i18n@9.3.0-beta.10
'@intlify/vue-router-bridge': 0.8.0 '@intlify/vue-router-bridge': 0.8.0
ufo: 1.0.1 ufo: 1.0.1

Binary file not shown.

View file

@ -39,12 +39,12 @@ if (import.meta.env.PROD)
// only cache pages and external assets on local build + start or in production // only cache pages and external assets on local build + start or in production
if (import.meta.env.PROD) { if (import.meta.env.PROD) {
// include emoji/twemoji icons // include emoji icons
registerRoute( registerRoute(
({ sameOrigin, request, url }) => ({ sameOrigin, request, url }) =>
sameOrigin sameOrigin
&& request.destination === 'image' && request.destination === 'image'
&& url.pathname.startsWith('/emojis/twemoji/'), && url.pathname.startsWith('/emojis/'),
new StaleWhileRevalidate({ new StaleWhileRevalidate({
cacheName: 'elk-emojis', cacheName: 'elk-emojis',
plugins: [ plugins: [

View file

@ -200,10 +200,6 @@ html[dir="rtl"] .rtl-flip {
transform: scale(-1, 1) transform: scale(-1, 1)
} }
em-emoji-picker {
--border-radius: 0;
}
footer { footer {
a { a {
--at-apply: 'hover:underline'; --at-apply: 'hover:underline';