From 4ed8847b9dfc42113aa8afd0f3d6e05d8dd24567 Mon Sep 17 00:00:00 2001 From: HJ <30-hj@users.noreply.git.pleroma.social> Date: Sat, 4 Jan 2025 17:01:50 +0000 Subject: [PATCH 01/15] Apply 3 suggestion(s) to 3 file(s) --- changelog.d/mutes.change | 2 +- src/components/status/status.js | 1 - src/i18n/en.json | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/changelog.d/mutes.change b/changelog.d/mutes.change index f55a8abbf..fa13609bb 100644 --- a/changelog.d/mutes.change +++ b/changelog.d/mutes.change @@ -1 +1 @@ -better display of mutes +better display of mute reason on posts diff --git a/src/components/status/status.js b/src/components/status/status.js index 41275a5be..ccecaac7e 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -288,7 +288,6 @@ const Status = { case 'nsfw': return this.$t('status.sensitive_muted') } } - console.log(this.muteReasons, mainReason()) return this.$t( 'status.multi_reason_mute', { diff --git a/src/i18n/en.json b/src/i18n/en.json index 66ddb4139..3d7a674ce 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -1243,7 +1243,7 @@ "status_unavailable": "Status unavailable", "copy_link": "Copy link to status", "external_source": "External source", - "muted_words": "Wordfiltered: {word} | Wordfiltered: {word} and {numWordsMore} more word", + "muted_words": "Wordfiltered: {word} | Wordfiltered: {word} and {numWordsMore} more words", "multi_reason_mute": "{main} | {main} + one more reason | {main} + {numReasonsMore} more reasons", "thread_muted": "Thread muted", "thread_muted_and_words": ", has words:", From a18854a30d5a687ee3a2a028aa2a7e1b73b5597c Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 7 Jan 2025 17:23:24 +0200 Subject: [PATCH 02/15] separate draft hiding from draft disable, fixes #1350 --- src/components/draft/draft.vue | 4 ++-- src/components/post_status_form/post_status_form.js | 1 + src/components/post_status_form/post_status_form.vue | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/draft/draft.vue b/src/components/draft/draft.vue index 46227b684..7a9bdd7af 100644 --- a/src/components/draft/draft.vue +++ b/src/components/draft/draft.vue @@ -64,12 +64,12 @@
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index c31b86be0..bd699c5f7 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -101,6 +101,7 @@ const PostStatusForm = { 'disableSubmit', 'disablePreview', 'disableDraft', + 'hideDraft', 'placeholder', 'maxHeight', 'postHandler', diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 8607b5a8f..0d29e4d18 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -316,7 +316,7 @@ diff --git a/src/components/post_status_modal/post_status_modal.vue b/src/components/post_status_modal/post_status_modal.vue index 054da0c64..414dd5bd1 100644 --- a/src/components/post_status_modal/post_status_modal.vue +++ b/src/components/post_status_modal/post_status_modal.vue @@ -14,6 +14,7 @@ diff --git a/src/components/status/status.vue b/src/components/status/status.vue index cecc9d69e..408e6c52b 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -598,6 +598,7 @@ Date: Wed, 8 Jan 2025 21:41:31 +0200 Subject: [PATCH 14/15] don't do this with autosave turned on --- src/components/post_status_form/post_status_form.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 71d6615f4..d6735319d 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -769,7 +769,9 @@ const PostStatusForm = { } this.saveable = false this.clearStatus() - this.$emit('draft-done') + if (!this.shouldAutoSaveDraft) { + this.$emit('draft-done') + } }) } else if (this.newStatus.id) { // There is a draft, but there is nothing in it, clear it @@ -777,7 +779,9 @@ const PostStatusForm = { .then(() => { this.saveable = false this.clearStatus() - this.$emit('draft-done') + if (!this.shouldAutoSaveDraft) { + this.$emit('draft-done') + } }) } } From 1eb96182bba3684b7b71f5f74e9574aade3fdd39 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 8 Jan 2025 22:09:24 +0200 Subject: [PATCH 15/15] fix tests --- src/components/panel.style.js | 1 - src/components/panel_header.style.js | 5 ++--- src/components/top_bar.style.js | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/panel.style.js b/src/components/panel.style.js index c7afd827e..a017a52bc 100644 --- a/src/components/panel.style.js +++ b/src/components/panel.style.js @@ -50,7 +50,6 @@ export default { y: 4, blur: 6, spread: 3, - inset: false, color: '#000000', alpha: 0.3 }] diff --git a/src/components/panel_header.style.js b/src/components/panel_header.style.js index 3440d6d4b..226ff9e16 100644 --- a/src/components/panel_header.style.js +++ b/src/components/panel_header.style.js @@ -22,7 +22,6 @@ export default { y: 1, blur: 3, spread: 0, - inset: false, color: '#000000', alpha: 0.4 }, @@ -31,9 +30,9 @@ export default { y: 1, blur: 0, spread: 0, - inset: true, color: '#ffffff', - alpha: 0.2 + alpha: 0.2, + inset: true }] } } diff --git a/src/components/top_bar.style.js b/src/components/top_bar.style.js index e43e6a4f4..945ae7781 100644 --- a/src/components/top_bar.style.js +++ b/src/components/top_bar.style.js @@ -27,7 +27,6 @@ export default { y: 2, blur: 7, spread: 0, - inset: false, color: '#000000', alpha: 0.3 }]