From 84b99f815a1b8c46dc119f8be77dc22eb3c89b13 Mon Sep 17 00:00:00 2001 From: David Ralph Date: Fri, 25 Nov 2022 16:32:28 +0000 Subject: [PATCH] chore: update dependencies, change compression, remove unneeded about string --- package.json | 34 +++++++++---------- .../modals/main/settings/FileUpload.jsx | 6 ++-- .../modals/main/settings/sections/About.jsx | 2 +- .../settings/sections/background/Custom.jsx | 5 ++- src/modules/constants.js | 1 - 5 files changed, 26 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index 42b2e092..4fff4bb2 100644 --- a/package.json +++ b/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", diff --git a/src/components/modals/main/settings/FileUpload.jsx b/src/components/modals/main/settings/FileUpload.jsx index 1526f51e..24ca2b55 100644 --- a/src/components/modals/main/settings/FileUpload.jsx +++ b/src/components/modals/main/settings/FileUpload.jsx @@ -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')); } diff --git a/src/components/modals/main/settings/sections/About.jsx b/src/components/modals/main/settings/sections/About.jsx index 685bd2e7..36a18db5 100644 --- a/src/components/modals/main/settings/sections/About.jsx +++ b/src/components/modals/main/settings/sections/About.jsx @@ -230,7 +230,7 @@ export default class About extends PureComponent { diff --git a/src/components/modals/main/settings/sections/background/Custom.jsx b/src/components/modals/main/settings/sections/background/Custom.jsx index 575743ae..e254cffe 100644 --- a/src/components/modals/main/settings/sections/background/Custom.jsx +++ b/src/components/modals/main/settings/sections/background/Custom.jsx @@ -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')); } diff --git a/src/modules/constants.js b/src/modules/constants.js index fc5aa3bd..c988b6da 100644 --- a/src/modules/constants.js +++ b/src/modules/constants.js @@ -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;