mirror of
https://github.com/mue/mue.git
synced 2026-07-18 06:24:17 +02:00
chore: update dependencies, change compression, remove unneeded about string
This commit is contained in:
34
package.json
34
package.json
@@ -14,38 +14,38 @@
|
||||
"@eartharoid/i18n": "1.2.1",
|
||||
"@emotion/react": "^11.10.5",
|
||||
"@emotion/styled": "^11.10.5",
|
||||
"@floating-ui/react-dom": "^1.0.0",
|
||||
"@floating-ui/react-dom": "^1.0.1",
|
||||
"@fontsource/lexend-deca": "4.5.12",
|
||||
"@fontsource/montserrat": "4.5.13",
|
||||
"@mui/material": "5.10.11",
|
||||
"@sentry/react": "^7.17.2",
|
||||
"embla-carousel-autoplay": "^7.0.3",
|
||||
"embla-carousel-react": "^7.0.3",
|
||||
"fast-blurhash": "^1.1.1",
|
||||
"@mui/material": "5.10.15",
|
||||
"@sentry/react": "^7.21.1",
|
||||
"embla-carousel-autoplay": "^7.0.5",
|
||||
"embla-carousel-react": "^7.0.5",
|
||||
"fast-blurhash": "^1.1.2",
|
||||
"image-conversion": "^2.1.1",
|
||||
"react": "^18.2.0",
|
||||
"react-clock": "3.1.0",
|
||||
"react-clock": "4.0.0",
|
||||
"react-color-gradient-picker": "0.1.2",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-icons": "^4.6.0",
|
||||
"react-modal": "3.16.1",
|
||||
"react-sortable-hoc": "2.0.0",
|
||||
"react-toastify": "9.0.8"
|
||||
"react-toastify": "9.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^17.1.2",
|
||||
"@commitlint/config-conventional": "^17.1.0",
|
||||
"@commitlint/cli": "^17.3.0",
|
||||
"@commitlint/config-conventional": "^17.3.0",
|
||||
"@eartharoid/deep-merge": "^0.0.2",
|
||||
"@vitejs/plugin-react": "^2.2.0",
|
||||
"eslint": "^8.26.0",
|
||||
"eslint": "^8.28.0",
|
||||
"eslint-config-react-app": "^7.0.1",
|
||||
"husky": "^8.0.1",
|
||||
"prettier": "^2.7.1",
|
||||
"sass": "^1.55.0",
|
||||
"stylelint": "^14.14.0",
|
||||
"husky": "^8.0.2",
|
||||
"prettier": "^2.8.0",
|
||||
"sass": "^1.56.1",
|
||||
"stylelint": "^14.15.0",
|
||||
"stylelint-config-prettier-scss": "^0.0.1",
|
||||
"stylelint-config-standard-scss": "^6.0.0",
|
||||
"vite": "^3.2.1"
|
||||
"stylelint-config-standard-scss": "^6.1.0",
|
||||
"vite": "^3.2.4"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -32,8 +32,10 @@ export default class FileUpload extends PureComponent {
|
||||
return this.props.loadFunction(file);
|
||||
}
|
||||
|
||||
// todo: change number
|
||||
compressAccurately(file, 300).then(async (res) => {
|
||||
compressAccurately(file, {
|
||||
size: 450,
|
||||
accuracy: 0.9
|
||||
}).then(async (res) => {
|
||||
if (settingsSize + res.size > 4850000) {
|
||||
return toast(variables.getMessage('toasts.no_storage'));
|
||||
}
|
||||
|
||||
@@ -230,7 +230,7 @@ export default class About extends PureComponent {
|
||||
</a>
|
||||
<Tooltip title={'GitHub Sponsors'}>
|
||||
<a
|
||||
href={'https://github.com/sponsors/' + variables.constants.SPONSORS_USERNAME}
|
||||
href={'https://github.com/sponsors/' + variables.constants.ORG_NAME}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
|
||||
@@ -162,7 +162,10 @@ export default class CustomSettings extends PureComponent {
|
||||
return this.customBackground(file, false, this.state.currentBackgroundIndex);
|
||||
}
|
||||
|
||||
compressAccurately(file, 300).then(async (res) => {
|
||||
compressAccurately(file, {
|
||||
size: 450,
|
||||
accuracy: 0.9
|
||||
}).then(async (res) => {
|
||||
if (settingsSize + res.size > 4850000) {
|
||||
return toast(variables.getMessage('toasts.no_storage'));
|
||||
}
|
||||
|
||||
@@ -30,7 +30,6 @@ export const COPYRIGHT_NAME = 'The Mue Authors';
|
||||
export const COPYRIGHT_YEAR = '2018';
|
||||
export const COPYRIGHT_LICENSE = 'BSD-3-Clause License';
|
||||
export const OPENCOLLECTIVE_USERNAME = 'mue';
|
||||
export const SPONSORS_USERNAME = 'mue';
|
||||
|
||||
export const OFFLINE_IMAGES = 20;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user