From c4497f645fbb3ade34f1af63a042640219095401 Mon Sep 17 00:00:00 2001 From: HJ <30-hj@users.noreply.git.pleroma.social> Date: Tue, 15 Oct 2019 15:48:34 +0000 Subject: [PATCH 01/32] Update CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff4c2fd1b..d08da09e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] ### Added +- Ability to hide/show repeats from user +- User profile button clutter organized into a menu - Emoji picker - Started changelog anew ### Changed From 37be781312c6e3139a7b158835a51b141fd94e70 Mon Sep 17 00:00:00 2001 From: Maxim Filippov Date: Wed, 16 Oct 2019 10:00:26 +0000 Subject: [PATCH 02/32] Require password reset --- src/boot/routes.js | 2 +- src/components/login_form/login_form.js | 2 ++ src/components/password_reset/password_reset.js | 6 ++++++ src/components/password_reset/password_reset.vue | 16 +++++++++++++++- src/i18n/en.json | 4 +++- 5 files changed, 27 insertions(+), 3 deletions(-) diff --git a/src/boot/routes.js b/src/boot/routes.js index cd02711cc..5670236c7 100644 --- a/src/boot/routes.js +++ b/src/boot/routes.js @@ -47,7 +47,7 @@ export default (store) => { { name: 'dms', path: '/users/:username/dms', component: DMs, beforeEnter: validateAuthenticatedRoute }, { name: 'settings', path: '/settings', component: Settings }, { name: 'registration', path: '/registration', component: Registration }, - { name: 'password-reset', path: '/password-reset', component: PasswordReset }, + { name: 'password-reset', path: '/password-reset', component: PasswordReset, props: true }, { name: 'registration-token', path: '/registration/:token', component: Registration }, { name: 'friend-requests', path: '/friend-requests', component: FollowRequests, beforeEnter: validateAuthenticatedRoute }, { name: 'user-settings', path: '/user-settings', component: UserSettings, beforeEnter: validateAuthenticatedRoute }, diff --git a/src/components/login_form/login_form.js b/src/components/login_form/login_form.js index 10f52fe24..0b574a048 100644 --- a/src/components/login_form/login_form.js +++ b/src/components/login_form/login_form.js @@ -59,6 +59,8 @@ const LoginForm = { if (result.error) { if (result.error === 'mfa_required') { this.requireMFA({ app: app, settings: result }) + } else if (result.identifier === 'password_reset_required') { + this.$router.push({ name: 'password-reset', params: { passwordResetRequested: true } }) } else { this.error = result.error this.focusOnPasswordInput() diff --git a/src/components/password_reset/password_reset.js b/src/components/password_reset/password_reset.js index fa71e07a9..62e74e30f 100644 --- a/src/components/password_reset/password_reset.js +++ b/src/components/password_reset/password_reset.js @@ -25,6 +25,12 @@ const passwordReset = { this.$router.push({ name: 'root' }) } }, + props: { + passwordResetRequested: { + default: false, + type: Boolean + } + }, methods: { dismissError () { this.error = null diff --git a/src/components/password_reset/password_reset.vue b/src/components/password_reset/password_reset.vue index 00474e95d..713c9dced 100644 --- a/src/components/password_reset/password_reset.vue +++ b/src/components/password_reset/password_reset.vue @@ -10,7 +10,10 @@ >
-

+

+ {{ $t('password_reset.password_reset_required_but_mailer_is_disabled') }} +

+

{{ $t('password_reset.password_reset_disabled') }}

@@ -25,6 +28,12 @@
+

+ {{ $t('password_reset.password_reset_required') }} +

{{ $t('password_reset.instruction') }}

@@ -104,6 +113,11 @@ margin: 0.3em 0.0em 1em; } + .password-reset-required { + background-color: var(--alertError, $fallback--alertError); + padding: 10px 0; + } + .notice-dismissible { padding-right: 2rem; } diff --git a/src/i18n/en.json b/src/i18n/en.json index b58112e3a..d11b2d14e 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -632,6 +632,8 @@ "return_home": "Return to the home page", "not_found": "We couldn't find that email or username.", "too_many_requests": "You have reached the limit of attempts, try again later.", - "password_reset_disabled": "Password reset is disabled. Please contact your instance administrator." + "password_reset_disabled": "Password reset is disabled. Please contact your instance administrator.", + "password_reset_required": "You must reset your password to log in.", + "password_reset_required_but_mailer_is_disabled": "You must reset your password, but password reset is disabled. Please contact your instance administrator." } } From 60828f119c5b8f5de1ba6f6a9d774ef0e813405b Mon Sep 17 00:00:00 2001 From: Maksim Pechnikov Date: Thu, 17 Oct 2019 16:19:52 +0300 Subject: [PATCH 03/32] updated FollowCard component --- src/components/follow_button/follow_button.js | 4 +-- .../follow_button/follow_button.vue | 2 +- src/components/follow_card/follow_card.js | 21 +++-------- src/components/follow_card/follow_card.vue | 35 +++---------------- 4 files changed, 12 insertions(+), 50 deletions(-) diff --git a/src/components/follow_button/follow_button.js b/src/components/follow_button/follow_button.js index 4123c9fd2..12da26454 100644 --- a/src/components/follow_button/follow_button.js +++ b/src/components/follow_button/follow_button.js @@ -1,6 +1,6 @@ import { requestFollow, requestUnfollow } from '../../services/follow_manipulate/follow_manipulate' export default { - props: ['user'], + props: ['user', 'labelFollowing', 'buttonClass'], data () { return { inProgress: false @@ -23,7 +23,7 @@ export default { if (this.inProgress) { return this.$t('user_card.follow_progress') } else if (this.user.following) { - return this.$t('user_card.following') + return this.labelFollowing || this.$t('user_card.following') } else if (this.user.requested) { return this.$t('user_card.follow_sent') } else { diff --git a/src/components/follow_button/follow_button.vue b/src/components/follow_button/follow_button.vue index f0cbb94b5..66d899b93 100644 --- a/src/components/follow_button/follow_button.vue +++ b/src/components/follow_button/follow_button.vue @@ -1,7 +1,7 @@
From 1287836eeea0fc10935476865dba850b8a91fb13 Mon Sep 17 00:00:00 2001 From: eal Date: Thu, 17 Oct 2019 16:44:22 +0300 Subject: [PATCH 04/32] Fix reply arrow highlighting in some accessibility tools The cursor style needs to be "pointer" even before hovering, since keyboard-driven browsing never hovers over the elements. --- src/components/status/status.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 93f37a492..912f77d2a 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -840,6 +840,11 @@ $status-margin: 0.75em; &.button-icon-active { color: $fallback--cBlue; color: var(--cBlue, $fallback--cBlue); + } +} + +.button-icon.icon-reply { + &:not(.button-icon-disabled) { cursor: pointer; } } From b3f590ceb3e2710b278093a7246a3bf53c9aaafd Mon Sep 17 00:00:00 2001 From: Maksim Pechnikov Date: Thu, 17 Oct 2019 20:24:54 +0300 Subject: [PATCH 05/32] clear code --- src/components/follow_button/follow_button.vue | 2 +- src/components/follow_card/follow_card.js | 5 ----- src/components/follow_card/follow_card.vue | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/follow_button/follow_button.vue b/src/components/follow_button/follow_button.vue index 66d899b93..f0cbb94b5 100644 --- a/src/components/follow_button/follow_button.vue +++ b/src/components/follow_button/follow_button.vue @@ -1,7 +1,7 @@ From 776f0ef77491ac06de4a0035d2c4d387d9564948 Mon Sep 17 00:00:00 2001 From: taehoon Date: Thu, 17 Oct 2019 15:43:59 -0400 Subject: [PATCH 06/32] lock body scroll when post status modal is open --- src/components/post_status_modal/post_status_modal.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/post_status_modal/post_status_modal.vue b/src/components/post_status_modal/post_status_modal.vue index d3a823896..b5e75de7c 100644 --- a/src/components/post_status_modal/post_status_modal.vue +++ b/src/components/post_status_modal/post_status_modal.vue @@ -2,6 +2,7 @@
@@ -28,6 +29,10 @@ .post-form-modal-view { align-items: flex-start; + + body:not(.scroll-locked) & { + display: none; + } } .post-form-modal-panel { From 8db1fa506c95bf7bed1cf2fd186bb065797912cd Mon Sep 17 00:00:00 2001 From: taehoon Date: Thu, 17 Oct 2019 16:00:19 -0400 Subject: [PATCH 07/32] lock body scroll when user reporting modal is open --- .../user_reporting_modal/user_reporting_modal.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/user_reporting_modal/user_reporting_modal.vue b/src/components/user_reporting_modal/user_reporting_modal.vue index c79a3707e..ecbc1369f 100644 --- a/src/components/user_reporting_modal/user_reporting_modal.vue +++ b/src/components/user_reporting_modal/user_reporting_modal.vue @@ -1,7 +1,8 @@