mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-23 14:13:21 +01:00
s/Favourite/Like
Poll: https://mastodon.social/@cheeaun/111272668719225402
This commit is contained in:
parent
a192554b8b
commit
b9afe4fb66
7 changed files with 33 additions and 29 deletions
|
@ -135,8 +135,12 @@ export default memo(function KeyboardShortcutsHelp() {
|
||||||
keys: <kbd>r</kbd>,
|
keys: <kbd>r</kbd>,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
action: 'Favourite',
|
action: 'Like (favourite)',
|
||||||
keys: <kbd>f</kbd>,
|
keys: (
|
||||||
|
<>
|
||||||
|
<kbd>l</kbd> or <kbd>f</kbd>
|
||||||
|
</>
|
||||||
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
action: 'Boost',
|
action: 'Boost',
|
||||||
|
|
|
@ -192,7 +192,7 @@ function NavMenu(props) {
|
||||||
<Icon icon="bookmark" size="l" /> <span>Bookmarks</span>
|
<Icon icon="bookmark" size="l" /> <span>Bookmarks</span>
|
||||||
</MenuLink>
|
</MenuLink>
|
||||||
<MenuLink to="/f">
|
<MenuLink to="/f">
|
||||||
<Icon icon="heart" size="l" /> <span>Favourites</span>
|
<Icon icon="heart" size="l" /> <span>Likes</span>
|
||||||
</MenuLink>
|
</MenuLink>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -49,17 +49,17 @@ const contentText = {
|
||||||
reblog_reply: 'boosted your reply.',
|
reblog_reply: 'boosted your reply.',
|
||||||
follow: 'followed you.',
|
follow: 'followed you.',
|
||||||
follow_request: 'requested to follow you.',
|
follow_request: 'requested to follow you.',
|
||||||
favourite: 'favourited your post.',
|
favourite: 'liked your post.',
|
||||||
'favourite+account': (count) => `favourited ${count} of your posts.`,
|
'favourite+account': (count) => `liked ${count} of your posts.`,
|
||||||
favourite_reply: 'favourited your reply.',
|
favourite_reply: 'liked your reply.',
|
||||||
poll: 'A poll you have voted in or created has ended.',
|
poll: 'A poll you have voted in or created has ended.',
|
||||||
'poll-self': 'A poll you have created has ended.',
|
'poll-self': 'A poll you have created has ended.',
|
||||||
'poll-voted': 'A poll you have voted in has ended.',
|
'poll-voted': 'A poll you have voted in has ended.',
|
||||||
update: 'A post you interacted with has been edited.',
|
update: 'A post you interacted with has been edited.',
|
||||||
'favourite+reblog': 'boosted & favourited your post.',
|
'favourite+reblog': 'boosted & liked your post.',
|
||||||
'favourite+reblog+account': (count) =>
|
'favourite+reblog+account': (count) =>
|
||||||
`boosted & favourited ${count} of your posts.`,
|
`boosted & liked ${count} of your posts.`,
|
||||||
'favourite+reblog_reply': 'boosted & favourited your reply.',
|
'favourite+reblog_reply': 'boosted & liked your reply.',
|
||||||
'admin.sign_up': 'signed up.',
|
'admin.sign_up': 'signed up.',
|
||||||
'admin.report': (targetAccount) => <>reported {targetAccount}</>,
|
'admin.report': (targetAccount) => <>reported {targetAccount}</>,
|
||||||
};
|
};
|
||||||
|
@ -142,8 +142,8 @@ function Notification({ notification, instance, isStatic }) {
|
||||||
|
|
||||||
const genericAccountsHeading =
|
const genericAccountsHeading =
|
||||||
{
|
{
|
||||||
'favourite+reblog': 'Boosted/Favourited by…',
|
'favourite+reblog': 'Boosted/Liked by…',
|
||||||
favourite: 'Favourited by…',
|
favourite: 'Liked by…',
|
||||||
reblog: 'Boosted by…',
|
reblog: 'Boosted by…',
|
||||||
follow: 'Followed by…',
|
follow: 'Followed by…',
|
||||||
}[type] || 'Accounts';
|
}[type] || 'Accounts';
|
||||||
|
|
|
@ -46,7 +46,7 @@ const TYPE_TEXT = {
|
||||||
search: 'Search',
|
search: 'Search',
|
||||||
'account-statuses': 'Account',
|
'account-statuses': 'Account',
|
||||||
bookmarks: 'Bookmarks',
|
bookmarks: 'Bookmarks',
|
||||||
favourites: 'Favourites',
|
favourites: 'Likes',
|
||||||
hashtag: 'Hashtag',
|
hashtag: 'Hashtag',
|
||||||
trending: 'Trending',
|
trending: 'Trending',
|
||||||
mentions: 'Mentions',
|
mentions: 'Mentions',
|
||||||
|
@ -178,7 +178,7 @@ export const SHORTCUTS_META = {
|
||||||
},
|
},
|
||||||
favourites: {
|
favourites: {
|
||||||
id: 'favourites',
|
id: 'favourites',
|
||||||
title: 'Favourites',
|
title: 'Likes',
|
||||||
path: '/f',
|
path: '/f',
|
||||||
icon: 'heart',
|
icon: 'heart',
|
||||||
},
|
},
|
||||||
|
|
|
@ -512,7 +512,7 @@ function Status({
|
||||||
)}{' '}
|
)}{' '}
|
||||||
{favouritesCount > 0 && (
|
{favouritesCount > 0 && (
|
||||||
<span>
|
<span>
|
||||||
<Icon icon="heart" alt="Favourites" size="s" />{' '}
|
<Icon icon="heart" alt="Likes" size="s" />{' '}
|
||||||
<span>{shortenNumber(favouritesCount)}</span>
|
<span>{shortenNumber(favouritesCount)}</span>
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
|
@ -550,7 +550,7 @@ function Status({
|
||||||
<MenuItem onClick={() => setShowReactions(true)}>
|
<MenuItem onClick={() => setShowReactions(true)}>
|
||||||
<Icon icon="react" />
|
<Icon icon="react" />
|
||||||
<span>
|
<span>
|
||||||
Boosted/Favourited by<span class="more-insignificant">…</span>
|
Boosted/Liked by<span class="more-insignificant">…</span>
|
||||||
</span>
|
</span>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
)}
|
)}
|
||||||
|
@ -603,8 +603,8 @@ function Status({
|
||||||
if (!isSizeLarge) {
|
if (!isSizeLarge) {
|
||||||
showToast(
|
showToast(
|
||||||
favourited
|
favourited
|
||||||
? `Unfavourited @${username || acct}'s post`
|
? `Unliked @${username || acct}'s post`
|
||||||
: `Favourited @${username || acct}'s post`,
|
: `Liked @${username || acct}'s post`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
@ -616,7 +616,7 @@ function Status({
|
||||||
color: favourited && 'var(--favourite-color)',
|
color: favourited && 'var(--favourite-color)',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<span>{favourited ? 'Unfavourite' : 'Favourite'}</span>
|
<span>{favourited ? 'Unlike' : 'Like'}</span>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
</div>
|
</div>
|
||||||
<div class="menu-horizontal">
|
<div class="menu-horizontal">
|
||||||
|
@ -836,15 +836,15 @@ function Status({
|
||||||
enabled: hotkeysEnabled,
|
enabled: hotkeysEnabled,
|
||||||
});
|
});
|
||||||
const fRef = useHotkeys(
|
const fRef = useHotkeys(
|
||||||
'f',
|
'f, l',
|
||||||
() => {
|
() => {
|
||||||
try {
|
try {
|
||||||
favouriteStatus();
|
favouriteStatus();
|
||||||
if (!isSizeLarge) {
|
if (!isSizeLarge) {
|
||||||
showToast(
|
showToast(
|
||||||
favourited
|
favourited
|
||||||
? `Unfavourited @${username || acct}'s post`
|
? `Unliked @${username || acct}'s post`
|
||||||
: `Favourited @${username || acct}'s post`,
|
: `Liked @${username || acct}'s post`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
@ -1528,8 +1528,8 @@ function Status({
|
||||||
<div class="action has-count">
|
<div class="action has-count">
|
||||||
<StatusButton
|
<StatusButton
|
||||||
checked={favourited}
|
checked={favourited}
|
||||||
title={['Favourite', 'Unfavourite']}
|
title={['Like', 'Unlike']}
|
||||||
alt={['Favourite', 'Favourited']}
|
alt={['Like', 'Liked']}
|
||||||
class="favourite-button"
|
class="favourite-button"
|
||||||
icon="heart"
|
icon="heart"
|
||||||
count={favouritesCount}
|
count={favouritesCount}
|
||||||
|
@ -1962,7 +1962,7 @@ function ReactionsModal({ statusID, instance, onClose }) {
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
<header>
|
<header>
|
||||||
<h2>Boosted/Favourited by…</h2>
|
<h2>Boosted/Liked by…</h2>
|
||||||
</header>
|
</header>
|
||||||
<main>
|
<main>
|
||||||
{accounts.length > 0 ? (
|
{accounts.length > 0 ? (
|
||||||
|
|
|
@ -7,7 +7,7 @@ import useTitle from '../utils/useTitle';
|
||||||
const LIMIT = 20;
|
const LIMIT = 20;
|
||||||
|
|
||||||
function Favourites() {
|
function Favourites() {
|
||||||
useTitle('Favourites', '/f');
|
useTitle('Likes', '/f');
|
||||||
const { masto, instance } = api();
|
const { masto, instance } = api();
|
||||||
const favouritesIterator = useRef();
|
const favouritesIterator = useRef();
|
||||||
async function fetchFavourites(firstLoad) {
|
async function fetchFavourites(firstLoad) {
|
||||||
|
@ -19,10 +19,10 @@ function Favourites() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Timeline
|
<Timeline
|
||||||
title="Favourites"
|
title="Likes"
|
||||||
id="favourites"
|
id="favourites"
|
||||||
emptyText="No favourites yet. Go favourite something!"
|
emptyText="No likes yet. Go like something!"
|
||||||
errorText="Unable to load favourites"
|
errorText="Unable to load likes"
|
||||||
instance={instance}
|
instance={instance}
|
||||||
fetchItems={fetchFavourites}
|
fetchItems={fetchFavourites}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -727,7 +727,7 @@ function PushNotificationsSection({ onClose }) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 'favourite',
|
value: 'favourite',
|
||||||
label: 'Favourites',
|
label: 'Likes',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 'reblog',
|
value: 'reblog',
|
||||||
|
|
Loading…
Add table
Reference in a new issue