style: move QR code and remote follow URL to another category

This commit is contained in:
naskya 2024-04-26 07:26:58 +09:00
parent b58d940e71
commit f806c47c7c
No known key found for this signature in database
GPG Key ID: 712D413B3A9FED5C
3 changed files with 24 additions and 17 deletions

View File

@ -1159,9 +1159,9 @@ addRe: "Add \"re:\" at the beginning of comment in reply to a post with a conten
confirm: "Confirm"
importZip: "Import ZIP"
exportZip: "Export ZIP"
getQrCode: "Get QR code"
getQrCode: "Show QR code"
remoteFollow: "Remote follow"
remoteFollowUrl: "Remote follow URL"
copyRemoteFollowUrl: "Copy remote follow URL"
emojiPackCreator: "Emoji pack creator"
indexable: "Indexable"
indexableDescription: "Allow built-in search to show your public posts"

View File

@ -1978,7 +1978,7 @@ importZip: 导入 ZIP
exportZip: 导出 ZIP
getQrCode: "获取二维码"
remoteFollow: "远程关注"
remoteFollowUrl: "远程关注 URL"
copyRemoteFollowUrl: "复制远程关注 URL"
emojiPackCreator: 表情包创建工具
objectStorageS3ForcePathStyleDesc: 打开此选项可构建格式为 "s3.amazonaws.com/<bucket>/" 而非 "<bucket>.s3.amazonaws.com"
的端点 URL。

View File

@ -255,6 +255,27 @@ export function getUserMenu(user, router: Router = mainRouter) {
router.push(`/user-info/${user.id}`);
},
},
{
icon: `${icon("ph-share")}`,
text: i18n.ts.share,
type: "parent",
children: [
{
icon: "ph-qr-code ph-bold ph-lg",
text: i18n.ts.getQrCode,
action: () => {
os.displayQrCode(`https://${host}/follow-me?acct=${user.username}`);
},
},
{
icon: `${icon("ph-hand-waving")}`,
text: i18n.ts.copyRemoteFollowUrl,
action: () => {
copyToClipboard(`https://${host}/follow-me?acct=${user.username}`);
},
},
],
},
{
icon: `${icon("ph-newspaper")}`,
text: i18n.ts._feeds.copyFeed,
@ -281,13 +302,6 @@ export function getUserMenu(user, router: Router = mainRouter) {
copyToClipboard(`https://${host}/@${user.username}.json`);
},
},
{
icon: `${icon("ph-hand-waving")}`,
text: i18n.ts.remoteFollowUrl,
action: () => {
copyToClipboard(`https://${host}/follow-me?acct=${user.username}`);
},
},
],
},
{
@ -306,13 +320,6 @@ export function getUserMenu(user, router: Router = mainRouter) {
},
}
: undefined,
{
icon: "ph-qr-code ph-bold ph-lg",
text: i18n.ts.getQrCode,
action: () => {
os.displayQrCode(`https://${host}/follow-me?acct=${user.username}`);
},
},
isSignedIn(me) && me.id !== user.id
? {
type: "link",