forked from mastodon/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2819 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes up to edeae94
- Loading branch information
Showing
87 changed files
with
1,078 additions
and
606 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 11 additions & 16 deletions
27
app/javascript/flavours/glitch/components/timeline_hint.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,23 @@ | ||
import { FormattedMessage } from 'react-intl'; | ||
|
||
import classNames from 'classnames'; | ||
|
||
interface Props { | ||
resource: JSX.Element; | ||
message: React.ReactNode; | ||
label: React.ReactNode; | ||
url: string; | ||
className?: string; | ||
} | ||
|
||
export const TimelineHint: React.FC<Props> = ({ className, resource, url }) => ( | ||
export const TimelineHint: React.FC<Props> = ({ | ||
className, | ||
message, | ||
label, | ||
url, | ||
}) => ( | ||
<div className={classNames('timeline-hint', className)}> | ||
<strong> | ||
<FormattedMessage | ||
id='timeline_hint.remote_resource_not_displayed' | ||
defaultMessage='{resource} from other servers are not displayed.' | ||
values={{ resource }} | ||
/> | ||
</strong> | ||
<br /> | ||
<p>{message}</p> | ||
|
||
<a href={url} target='_blank' rel='noopener noreferrer'> | ||
<FormattedMessage | ||
id='account.browse_more_on_origin_server' | ||
defaultMessage='Browse more on the original profile' | ||
/> | ||
{label} | ||
</a> | ||
</div> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
app/javascript/flavours/glitch/features/notifications_v2/components/displayed_name.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Link } from 'react-router-dom'; | ||
|
||
import { useAppSelector } from 'flavours/glitch/store'; | ||
|
||
export const DisplayedName: React.FC<{ | ||
accountIds: string[]; | ||
}> = ({ accountIds }) => { | ||
const lastAccountId = accountIds[0] ?? '0'; | ||
const account = useAppSelector((state) => state.accounts.get(lastAccountId)); | ||
|
||
if (!account) return null; | ||
|
||
return ( | ||
<Link | ||
to={`/@${account.acct}`} | ||
title={`@${account.acct}`} | ||
data-hover-card-account={account.id} | ||
> | ||
<bdi dangerouslySetInnerHTML={{ __html: account.display_name_html }} /> | ||
</Link> | ||
); | ||
}; |
51 changes: 0 additions & 51 deletions
51
app/javascript/flavours/glitch/features/notifications_v2/components/names_list.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.