mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-06 00:49:58 +00:00
fix: remove unused emoji stuff (#727)
This commit is contained in:
parent
6e12402987
commit
6092b27da6
6 changed files with 16 additions and 25 deletions
|
@ -42,10 +42,8 @@ export const pwa: VitePWANuxtOptions = {
|
|||
],
|
||||
},
|
||||
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}'],
|
||||
globIgnores: ['emojis/twemoji/*.svg'],
|
||||
globIgnores: ['emojis/*'],
|
||||
},
|
||||
devOptions: {
|
||||
enabled: process.env.VITE_DEV_PWA === 'true',
|
||||
|
|
|
@ -89,7 +89,6 @@
|
|||
"@vueuse/nuxt": "^9.9.0",
|
||||
"bumpp": "^8.2.1",
|
||||
"emoji-mart": "^5.4.0",
|
||||
"emoji-regex": "^10.2.1",
|
||||
"eslint": "^8.30.0",
|
||||
"esno": "^0.16.3",
|
||||
"file-saver": "^2.0.5",
|
||||
|
|
|
@ -43,7 +43,6 @@ specifiers:
|
|||
browser-fs-access: ^0.31.1
|
||||
bumpp: ^8.2.1
|
||||
emoji-mart: ^5.4.0
|
||||
emoji-regex: ^10.2.1
|
||||
eslint: ^8.30.0
|
||||
esno: ^0.16.3
|
||||
file-saver: ^2.0.5
|
||||
|
@ -151,7 +150,6 @@ devDependencies:
|
|||
'@vueuse/nuxt': 9.9.0_nuxt@3.0.0
|
||||
bumpp: 8.2.1
|
||||
emoji-mart: 5.4.0
|
||||
emoji-regex: 10.2.1
|
||||
eslint: 8.30.0
|
||||
esno: 0.16.3
|
||||
file-saver: 2.0.5
|
||||
|
@ -169,7 +167,7 @@ devDependencies:
|
|||
typescript: 4.9.4
|
||||
unplugin-auto-import: 0.12.1_@vueuse+core@9.9.0
|
||||
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
|
||||
vue-tsc: 1.0.16_typescript@4.9.4
|
||||
workbox-window: 6.5.4
|
||||
|
@ -1633,8 +1631,8 @@ packages:
|
|||
vue-i18n:
|
||||
optional: true
|
||||
dependencies:
|
||||
'@intlify/message-compiler': 9.3.0-beta.11
|
||||
'@intlify/shared': 9.3.0-beta.11
|
||||
'@intlify/message-compiler': 9.3.0-beta.12
|
||||
'@intlify/shared': 9.3.0-beta.12
|
||||
jsonc-eslint-parser: 1.4.1
|
||||
source-map: 0.6.1
|
||||
vue-i18n: 9.3.0-beta.10
|
||||
|
@ -1666,8 +1664,8 @@ packages:
|
|||
source-map: 0.6.1
|
||||
dev: true
|
||||
|
||||
/@intlify/message-compiler/9.3.0-beta.11:
|
||||
resolution: {integrity: sha512-gGGfBGzM7JBXp1Q9gbDAy5jELz9ho3ILqnpxp2yp64+gkqohrqc2YXIvCdwZoc6AtKIh/Zmv4sWVqxkvMsBWtQ==}
|
||||
/@intlify/message-compiler/9.3.0-beta.12:
|
||||
resolution: {integrity: sha512-A8/s7pb3v8nf6HG77qFPJntxgQKI9GXxGnkn7aO+b03/X/GkF/4WceDSAIk3i+yLeIgszeBn9GZ23tSg4sTEHA==}
|
||||
engines: {node: '>= 14'}
|
||||
dependencies:
|
||||
'@intlify/shared': 9.3.0-beta.11
|
||||
|
@ -1684,6 +1682,11 @@ packages:
|
|||
engines: {node: '>= 14'}
|
||||
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:
|
||||
resolution: {integrity: sha512-bqMDYrbmV0oMLGHTdYMUXfcEsy2rPwQnGrQAg4gvw5FimvJfTQt3RliLVayT5ldOfeT2g0IUc/0t7LPeGrFUag==}
|
||||
engines: {node: '>= 14.16'}
|
||||
|
@ -1700,7 +1703,7 @@ packages:
|
|||
optional: true
|
||||
dependencies:
|
||||
'@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
|
||||
'@vue/compiler-sfc': 3.2.45
|
||||
debug: 4.3.4
|
||||
|
@ -4884,10 +4887,6 @@ packages:
|
|||
resolution: {integrity: sha512-xrRrUmMqZG64oRxmUZcf8zSMUGQtIUYUL3aZD5iMkqAve+I9wMNh3OVOXL7NW9fEm48L2LI3BUPpj/DUIAJrVg==}
|
||||
dev: true
|
||||
|
||||
/emoji-regex/10.2.1:
|
||||
resolution: {integrity: sha512-97g6QgOk8zlDRdgq1WxwgTMgEWGVAQvB5Fdpgc1MkNy56la5SKP9GsMXKDOdqwn90/41a8yPwIGk1Y6WVbeMQA==}
|
||||
dev: true
|
||||
|
||||
/emoji-regex/8.0.0:
|
||||
resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
|
||||
dev: true
|
||||
|
@ -9926,11 +9925,10 @@ packages:
|
|||
- supports-color
|
||||
dev: true
|
||||
|
||||
/vite-plugin-pwa/0.13.3_workbox-window@6.5.4:
|
||||
/vite-plugin-pwa/0.13.3:
|
||||
resolution: {integrity: sha512-cjWXpZ7slAY14OKz7M8XdgTIi9wjf6OD6NkhiMAc+ogxnbUrecUwLdRtfGPCPsN2ftut5gaN1jTghb11p6IQAA==}
|
||||
peerDependencies:
|
||||
vite: ^3.1.0
|
||||
workbox-window: ^6.5.4
|
||||
dependencies:
|
||||
'@rollup/plugin-replace': 4.0.0_rollup@2.79.1
|
||||
debug: 4.3.4
|
||||
|
@ -10178,7 +10176,7 @@ packages:
|
|||
vue-router:
|
||||
optional: true
|
||||
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-router-bridge': 0.8.0
|
||||
ufo: 1.0.1
|
||||
|
|
Binary file not shown.
|
@ -39,12 +39,12 @@ if (import.meta.env.PROD)
|
|||
|
||||
// only cache pages and external assets on local build + start or in production
|
||||
if (import.meta.env.PROD) {
|
||||
// include emoji/twemoji icons
|
||||
// include emoji icons
|
||||
registerRoute(
|
||||
({ sameOrigin, request, url }) =>
|
||||
sameOrigin
|
||||
&& request.destination === 'image'
|
||||
&& url.pathname.startsWith('/emojis/twemoji/'),
|
||||
&& url.pathname.startsWith('/emojis/'),
|
||||
new StaleWhileRevalidate({
|
||||
cacheName: 'elk-emojis',
|
||||
plugins: [
|
||||
|
|
|
@ -200,10 +200,6 @@ html[dir="rtl"] .rtl-flip {
|
|||
transform: scale(-1, 1)
|
||||
}
|
||||
|
||||
em-emoji-picker {
|
||||
--border-radius: 0;
|
||||
}
|
||||
|
||||
footer {
|
||||
a {
|
||||
--at-apply: 'hover:underline';
|
||||
|
|
Loading…
Reference in a new issue