Limit avatar size and cleanup dependencies
* Limit avatar size to 200 KiB (really no body needs 4K resolution avatars * Dropped cryptojs dependency as we do not use gravatar anymore
This commit is contained in:
parent
939dde3651
commit
1471f1a660
|
@ -2009,9 +2009,9 @@
|
|||
}
|
||||
},
|
||||
"@types/webpack": {
|
||||
"version": "4.41.24",
|
||||
"resolved": "https://registry.npmjs.org/@types/webpack/-/webpack-4.41.24.tgz",
|
||||
"integrity": "sha512-1A0MXPwZiMOD3DPMuOKUKcpkdPo8Lq33UGggZ7xio6wJ/jV1dAu5cXDrOfGDnldUroPIRLsr/DT43/GqOA4RFQ==",
|
||||
"version": "4.41.25",
|
||||
"resolved": "https://registry.npmjs.org/@types/webpack/-/webpack-4.41.25.tgz",
|
||||
"integrity": "sha512-cr6kZ+4m9lp86ytQc1jPOJXgINQyz3kLLunZ57jznW+WIAL0JqZbGubQk4GlD42MuQL5JGOABrxdpqqWeovlVQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@types/anymatch": "*",
|
||||
|
@ -4407,11 +4407,6 @@
|
|||
"randomfill": "^1.0.3"
|
||||
}
|
||||
},
|
||||
"crypto-js": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.0.0.tgz",
|
||||
"integrity": "sha512-bzHZN8Pn+gS7DQA6n+iUmBfl0hO5DJq++QP3U6uTucDtk/0iGpXd/Gg7CGR0p8tJhofJyaKoWBuJI4eAO00BBg=="
|
||||
},
|
||||
"css": {
|
||||
"version": "2.2.4",
|
||||
"resolved": "https://registry.npmjs.org/css/-/css-2.2.4.tgz",
|
||||
|
|
|
@ -15,14 +15,13 @@
|
|||
"@vue/composition-api": "^0.6.4",
|
||||
"axios": "^0.18.1",
|
||||
"core-js": "^3.7.0",
|
||||
"crypto-js": "^4.0.0",
|
||||
"quasar": "^1.14.3",
|
||||
"vue-router": "3.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@quasar/app": "^2.1.6",
|
||||
"@types/node": "^10.17.44",
|
||||
"@types/webpack": "^4.41.24",
|
||||
"@types/webpack": "^4.41.25",
|
||||
"@types/webpack-env": "^1.15.3",
|
||||
"@typescript-eslint/eslint-plugin": "^3.3.0",
|
||||
"@typescript-eslint/parser": "^3.3.0",
|
||||
|
|
|
@ -28,7 +28,6 @@ import {
|
|||
} from '@vue/composition-api';
|
||||
import { Store } from 'vuex';
|
||||
import { StateInterface } from 'src/store';
|
||||
import MD5 from 'crypto-js/md5';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Greeting',
|
||||
|
|
|
@ -64,6 +64,8 @@
|
|||
filled
|
||||
label="Avatar"
|
||||
accept=".jpg, image/*"
|
||||
max-file-size="204800"
|
||||
hint="Bilddateien, max. 200 KiB"
|
||||
@rejected="onAvatarRejected"
|
||||
>
|
||||
<template v-slot:append>
|
||||
|
|
Loading…
Reference in New Issue