From 92cb0668d0cdd34c92fe7e385c1593099748270c Mon Sep 17 00:00:00 2001 From: Bastard Operator Date: Tue, 12 Jan 2021 01:47:08 +0100 Subject: [PATCH] Improved user experience when "Matching" accounts + internal improvements * toasts now support custom time and optional renderHtml for cases we need to draw HTML from the intl.text. (Make sure no user input is on any intl.text used with renderHtml, as it is not XSS safe) * Toast needs to be initialized so we made an ugly hack to do so. We push the script to create an empty non-visible Toast on WebApp load * Now _layout.html loads intl messages needed for fedilove-no-react * UI improvement: Matching now shows a beautiful "Match <3" circle on top of the other person for 6 seconds * Stability improved --- src/intl/en-US.js | 2 + src/routes/_components/toast/Toast.html | 15 +++++++- src/routes/_components/toast/toast.js | 3 -- src/routes/_layout.html | 2 + src/scss/themes/ozark.scss | 18 +++++++++ static/fedilove-no-react.js | 51 +++++++++++++++++++++---- 6 files changed, 78 insertions(+), 13 deletions(-) diff --git a/src/intl/en-US.js b/src/intl/en-US.js index fa62047d..89467de0 100644 --- a/src/intl/en-US.js +++ b/src/intl/en-US.js @@ -62,6 +62,8 @@ export default { meet: 'Meet!', notifications: 'Notifications', matches: 'Matches', + matchAction: 'MATCH ♥', + maybeAction: 'Maybe tomorrow!', mutedUsers: 'Muted users', pinnedStatuses: 'Pinned toots', followRequests: 'Follow requests', diff --git a/src/routes/_components/toast/Toast.html b/src/routes/_components/toast/Toast.html index fcf31e69..e8368bf6 100644 --- a/src/routes/_components/toast/Toast.html +++ b/src/routes/_components/toast/Toast.html @@ -1,6 +1,7 @@