diff --git a/.node-version b/.node-version index 5397c87fa..1fc51668f 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -16.18.1 +18.20.6 diff --git a/changelog.d/image-compression.add b/changelog.d/image-compression.add new file mode 100644 index 000000000..d1f5a4fa4 --- /dev/null +++ b/changelog.d/image-compression.add @@ -0,0 +1 @@ +Added configurable image compression option in general settings, allowing users to control whether images are compressed before upload. \ No newline at end of file diff --git a/package.json b/package.json index 6b836610f..9fdd54d09 100644 --- a/package.json +++ b/package.json @@ -77,14 +77,14 @@ "eslint-config-standard": "17.1.0", "eslint-formatter-friendly": "7.0.0", "eslint-plugin-import": "2.31.0", - "eslint-plugin-n": "15.6.1", - "eslint-plugin-promise": "6.1.1", - "eslint-plugin-vue": "9.9.0", + "eslint-plugin-n": "15.7.0", + "eslint-plugin-promise": "6.6.0", + "eslint-plugin-vue": "9.32.0", "eslint-webpack-plugin": "3.2.0", "eventsource-polyfill": "0.9.6", "express": "4.21.2", "function-bind": "1.1.2", - "html-webpack-plugin": "5.5.1", + "html-webpack-plugin": "5.6.3", "http-proxy-middleware": "2.0.7", "iso-639-1": "2.1.15", "json-loader": "0.5.7", @@ -94,12 +94,12 @@ "karma-mocha": "2.0.1", "karma-mocha-reporter": "2.2.5", "karma-sinon-chai": "2.0.2", - "karma-sourcemap-loader": "0.3.8", + "karma-sourcemap-loader": "0.4.0", "karma-spec-reporter": "0.0.36", "karma-webpack": "5.0.1", "lodash": "4.17.21", - "mini-css-extract-plugin": "2.7.6", - "mocha": "10.2.0", + "mini-css-extract-plugin": "2.9.2", + "mocha": "10.8.2", "nightwatch": "2.6.25", "opn": "5.5.0", "ora": "0.4.1", diff --git a/src/components/media_upload/media_upload.js b/src/components/media_upload/media_upload.js index 585832dbf..f0fd0155f 100644 --- a/src/components/media_upload/media_upload.js +++ b/src/components/media_upload/media_upload.js @@ -34,6 +34,11 @@ const mediaUpload = { return file } + // Skip if image compression is disabled + if (!this.$store.getters.mergedConfig.imageCompression) { + return file + } + // For PNGs, check if animated if (file.type === 'image/png') { const isAnimated = await this.isAnimatedPng(file) diff --git a/src/components/mrf_transparency_panel/mrf_transparency_panel.vue b/src/components/mrf_transparency_panel/mrf_transparency_panel.vue index 6dc86738e..fcd25a36e 100644 --- a/src/components/mrf_transparency_panel/mrf_transparency_panel.vue +++ b/src/components/mrf_transparency_panel/mrf_transparency_panel.vue @@ -32,22 +32,24 @@

{{ $t("about.mrf.simple.accept_desc") }}

- - - - - - - - - + + + + + + + + + + +
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} - {{ $t("about.mrf.simple.not_applicable") }} - - {{ entry.reason }} -
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} + {{ $t("about.mrf.simple.not_applicable") }} + + {{ entry.reason }} +
@@ -57,22 +59,24 @@

{{ $t("about.mrf.simple.reject_desc") }}

- - - - - - - - - + + + + + + + + + + +
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} - {{ $t("about.mrf.simple.not_applicable") }} - - {{ entry.reason }} -
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} + {{ $t("about.mrf.simple.not_applicable") }} + + {{ entry.reason }} +
@@ -82,22 +86,24 @@

{{ $t("about.mrf.simple.quarantine_desc") }}

- - - - - - - - - + + + + + + + + + + +
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} - {{ $t("about.mrf.simple.not_applicable") }} - - {{ entry.reason }} -
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} + {{ $t("about.mrf.simple.not_applicable") }} + + {{ entry.reason }} +
@@ -107,22 +113,24 @@

{{ $t("about.mrf.simple.ftl_removal_desc") }}

- - - - - - - - - + + + + + + + + + + +
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} - {{ $t("about.mrf.simple.not_applicable") }} - - {{ entry.reason }} -
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} + {{ $t("about.mrf.simple.not_applicable") }} + + {{ entry.reason }} +
@@ -132,22 +140,24 @@

{{ $t("about.mrf.simple.media_nsfw_desc") }}

- - - - - - - - - + + + + + + + + + + +
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} - {{ $t("about.mrf.simple.not_applicable") }} - - {{ entry.reason }} -
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} + {{ $t("about.mrf.simple.not_applicable") }} + + {{ entry.reason }} +
@@ -157,22 +167,24 @@

{{ $t("about.mrf.simple.media_removal_desc") }}

- - - - - - - - - + + + + + + + + + + +
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} - {{ $t("about.mrf.simple.not_applicable") }} - - {{ entry.reason }} -
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} + {{ $t("about.mrf.simple.not_applicable") }} + + {{ entry.reason }} +
diff --git a/src/components/quick_view_settings/quick_view_settings.vue b/src/components/quick_view_settings/quick_view_settings.vue index 342354bd0..403ccd159 100644 --- a/src/components/quick_view_settings/quick_view_settings.vue +++ b/src/components/quick_view_settings/quick_view_settings.vue @@ -3,7 +3,6 @@ trigger="click" class="QuickViewSettings" :bound-to="{ x: 'container' }" - :trigger-attrs="triggerAttrs" >