From 567931bc884e18bc0fda2f87b13665fe55a24584 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 26 Jan 2025 21:55:52 +0200 Subject: [PATCH 01/22] fix tbody warnings --- .../mrf_transparency_panel.vue | 204 +++++++++--------- 1 file changed, 108 insertions(+), 96 deletions(-) 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 }} +
From d9154224dbec38b0b111dfbf8fed373ae814cade Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 26 Jan 2025 22:26:17 +0200 Subject: [PATCH 02/22] fix missing default pinned actions --- src/modules/serverSideStorage.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/modules/serverSideStorage.js b/src/modules/serverSideStorage.js index ad581fd4e..ed03bed72 100644 --- a/src/modules/serverSideStorage.js +++ b/src/modules/serverSideStorage.js @@ -9,7 +9,8 @@ import { groupBy, findLastIndex, takeRight, - uniqWith + uniqWith, + merge as _merge } from 'lodash' import { CURRENT_UPDATE_COUNTER } from 'src/components/update_notification/update_notification.js' @@ -127,15 +128,10 @@ export const _getRecentData = (cache, live, isTest) => { _version: a._version ?? b._version, _timestamp: a._timestamp ?? b._timestamp, needUpload: b.needUpload ?? a.needUpload, - prefsStorage: { - ...a.prefsStorage, - ...b.prefsStorage - }, - flagStorage: { - ...a.flagStorage, - ...b.flagStorage - } + prefsStorage: _merge(a.prefsStorage, b.prefsStorage), + flagStorage: _merge(a.flagStorage, b.flagStorage) }) + console.log(result.recent) result.recent = isTest ? result.recent : (result.recent && merge(defaultState, result.recent)) result.stale = isTest ? result.stale : (result.stale && merge(defaultState, result.stale)) From 50202255b88ffa1c96fcb81dcf12fa402abcd0b6 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 26 Jan 2025 22:31:24 +0200 Subject: [PATCH 03/22] fix some warnings --- src/components/status_action_buttons/action_button.js | 3 +++ src/components/status_action_buttons/status_action_buttons.js | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/status_action_buttons/action_button.js b/src/components/status_action_buttons/action_button.js index 9a27238fd..32e3bd6e1 100644 --- a/src/components/status_action_buttons/action_button.js +++ b/src/components/status_action_buttons/action_button.js @@ -92,6 +92,9 @@ export default { threadIsMuted () { return this.status.thread_muted }, + hideCustomEmoji () { + return !this.$store.state.instance.pleromaCustomEmojiReactionsAvailable + }, buttonInnerClass () { return [ this.button.name + '-button', diff --git a/src/components/status_action_buttons/status_action_buttons.js b/src/components/status_action_buttons/status_action_buttons.js index f88554003..622f21ca5 100644 --- a/src/components/status_action_buttons/status_action_buttons.js +++ b/src/components/status_action_buttons/status_action_buttons.js @@ -51,9 +51,6 @@ const StatusActionButtons = { currentUser () { return this.$store.state.users.currentUser }, - hideCustomEmoji () { - return !this.$store.state.instance.pleromaCustomEmojiReactionsAvailable - }, funcArg () { return { status: this.status, @@ -71,7 +68,6 @@ const StatusActionButtons = { return { title: this.$t('status.more_actions'), 'aria-controls': `popup-menu-${this.randomSeed}`, - 'aria-expanded': this.expanded, 'aria-haspopup': 'menu' } } From edad925e64f63fd4caaa9f7c2b112eb78790fe40 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 26 Jan 2025 22:34:07 +0200 Subject: [PATCH 04/22] another warning --- src/components/quick_view_settings/quick_view_settings.vue | 1 - 1 file changed, 1 deletion(-) 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" >