From 205652195808457e620f78b6d18c9c6ad8350e60 Mon Sep 17 00:00:00 2001 From: silver-it Date: Sat, 20 Apr 2024 06:15:15 +0800 Subject: [PATCH 01/77] chore: do not open new tab when user is signed in --- frontend/common/translations.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/common/translations.js b/frontend/common/translations.js index 79cb55964..b7bccc9ac 100644 --- a/frontend/common/translations.js +++ b/frontend/common/translations.js @@ -133,13 +133,14 @@ export default function L ( export function LError (error: Error): {|reportError: any|} { let url = `/app/dashboard?modal=UserSettingsModal&tab=application-logs&errorMsg=${encodeURI(error.message)}` + const target = !sbp('state/vuex/state').loggedIn ? 'target="_blank"' : '' if (!sbp('state/vuex/state').loggedIn) { url = 'https://github.com/okTurtles/group-income/issues' } return { reportError: L('"{errorMsg}". You can {a_}report the error{_a}.', { errorMsg: error.message, - 'a_': ``, + 'a_': ``, '_a': '' }) } From 22ff2a8788c338252a4dc3389bf0a1d51b24af67 Mon Sep 17 00:00:00 2001 From: silver-it Date: Fri, 17 May 2024 07:43:00 +0800 Subject: [PATCH 02/77] fix: wrong position of parentheses --- frontend/views/pages/DesignSystem.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/views/pages/DesignSystem.vue b/frontend/views/pages/DesignSystem.vue index 3ff2d5cc0..0c220acdc 100644 --- a/frontend/views/pages/DesignSystem.vue +++ b/frontend/views/pages/DesignSystem.vue @@ -149,7 +149,7 @@ page( section.card h2.is-title-2.card-header Icons p - | This is only the currently used icons (at _icons.scss). A complete list can be find here:  + | This is only the currently used icons at (_icons.scss). A complete list can be find here:  br a.link(href='https://fortawesome.com/sets/font-awesome-5-solid' target='_blank') fortawesome 5 solid | or  From 2450dd1e69939fad6aae28b269f122c51fb056c5 Mon Sep 17 00:00:00 2001 From: silver-it Date: Fri, 17 May 2024 10:27:21 +0800 Subject: [PATCH 03/77] feat: implement pinned message tooltip --- frontend/assets/style/_icons.scss | 1 + frontend/views/components/Tooltip.vue | 2 +- .../views/containers/chatroom/MessageBase.vue | 2 - frontend/views/pages/DesignSystem.vue | 1 + frontend/views/pages/GroupChat.vue | 61 +++++++++++++++++-- 5 files changed, 60 insertions(+), 7 deletions(-) diff --git a/frontend/assets/style/_icons.scss b/frontend/assets/style/_icons.scss index 2cf52aecd..3ae86cc2e 100644 --- a/frontend/assets/style/_icons.scss +++ b/frontend/assets/style/_icons.scss @@ -59,6 +59,7 @@ $icons: ( tag: "\f02b", times: "\f00d", times-circle: "\f057", + thumbtack: "\f08D", undo: "\f0e2", user: "\f007", user-plus: "\f234", diff --git a/frontend/views/components/Tooltip.vue b/frontend/views/components/Tooltip.vue index 65f835729..85c0b79fa 100644 --- a/frontend/views/components/Tooltip.vue +++ b/frontend/views/components/Tooltip.vue @@ -263,7 +263,7 @@ export default ({ } &.manual { - max-width: auto; + max-width: unset; } &.is-dark-theme { diff --git a/frontend/views/containers/chatroom/MessageBase.vue b/frontend/views/containers/chatroom/MessageBase.vue index 41dd2f20f..d45bb85fc 100644 --- a/frontend/views/containers/chatroom/MessageBase.vue +++ b/frontend/views/containers/chatroom/MessageBase.vue @@ -116,7 +116,6 @@ import sbp from '@sbp/sbp' import { mapGetters } from 'vuex' import Avatar from '@components/Avatar.vue' -import Tooltip from '@components/Tooltip.vue' import ProfileCard from '@components/ProfileCard.vue' import emoticonsMixins from './EmoticonsMixins.js' import MessageActions from './MessageActions.vue' @@ -145,7 +144,6 @@ export default ({ mixins: [emoticonsMixins], components: { Avatar, - Tooltip, ProfileCard, MessageActions, MessageReactions, diff --git a/frontend/views/pages/DesignSystem.vue b/frontend/views/pages/DesignSystem.vue index 0c220acdc..c7c7ea02b 100644 --- a/frontend/views/pages/DesignSystem.vue +++ b/frontend/views/pages/DesignSystem.vue @@ -215,6 +215,7 @@ page( i.icon-sort-down sort-down i.icon-star icon-star i.icon-strikethrough icon-strikethrough + i.icon-thumbtack icon-thumbtack i.icon-times icon-times i.icon-times-circle icon-times-circle i.icon-undo icon-undo diff --git a/frontend/views/pages/GroupChat.vue b/frontend/views/pages/GroupChat.vue index dd7a6ad6f..03e495cbc 100644 --- a/frontend/views/pages/GroupChat.vue +++ b/frontend/views/pages/GroupChat.vue @@ -81,6 +81,28 @@ page(pageTestName='groupChat' :miniHeader='isDirectMessage()') data-test='updateDescription' @click='editDescription' ) Add description + .c-header-shortcuts + tooltip(:manual='true' :opacity='1') + span.c-pin-wrapper + i.icon-thumbtack + span 2 Pinned + template(slot='tooltip') + .card.c-pinned-messages + .c-pinned-message asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf + .c-pinned-message asdfasdfasdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf + .c-pinned-message asdfasdf asdfasdf asdfasdf + .c-pinned-message asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf + .c-pinned-message asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf + .c-pinned-message asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf + .c-pinned-message asdfasdfasdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf + .c-pinned-message asdfasdf asdfasdf asdfasdf + .c-pinned-message asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf + .c-pinned-message asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf + .c-pinned-message asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf + .c-pinned-message asdfasdfasdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf + .c-pinned-message asdfasdf asdfasdf asdfasdf + .c-pinned-message asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf + .c-pinned-message asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf template(#sidebar='{ toggle }') chat-nav(:title='L("Chat")') @@ -107,8 +129,9 @@ page(pageTestName='groupChat' :miniHeader='isDirectMessage()') + + diff --git a/frontend/views/containers/dashboard/GroupMembersTooltipPending.vue b/frontend/views/containers/dashboard/GroupMembersTooltipPending.vue index 94d552f1b..7f280df6f 100644 --- a/frontend/views/containers/dashboard/GroupMembersTooltipPending.vue +++ b/frontend/views/containers/dashboard/GroupMembersTooltipPending.vue @@ -1,5 +1,5 @@