From 7ff467e8e0ba9c621a7acb119dd4d9b5193dd42d Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Wed, 15 Mar 2023 18:01:56 +0900 Subject: [PATCH] =?UTF-8?q?feat(client):=20Navbar=20=E3=81=AE=E8=A8=AD?= =?UTF-8?q?=E5=AE=9A=E9=A0=85=E7=9B=AE=E3=81=AB=E3=80=8C=E3=83=97=E3=83=AD?= =?UTF-8?q?=E3=83=95=E3=82=A3=E3=83=BC=E3=83=AB=E3=80=8D=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0=20(#10332)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: navbar項目 自プロフィールを追加 (misskey-dev#10330) * change CHANGELOG.md --- CHANGELOG.md | 1 + packages/frontend/src/navbar.ts | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 27d72388ac..cf9bec537c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ You should also include the user name that made the change. - 付箋ウィジェットの高さを設定可能に - 配送先サーバーが410 Goneで応答してきた場合は自動で配送停止をするように - avatarBlurHash/bannerBlurHashの型をstringに限定 +- ナビゲーションバーの項目に「プロフィール」を追加できるように ### Bugfixes - プロフィールで設定した情報が削除できない問題を修正 diff --git a/packages/frontend/src/navbar.ts b/packages/frontend/src/navbar.ts index efc0e8c920..032d68862d 100644 --- a/packages/frontend/src/navbar.ts +++ b/packages/frontend/src/navbar.ts @@ -136,4 +136,10 @@ export const navbarItemDef = reactive({ location.reload(); }, }, + profile: { + title: i18n.ts.profile, + icon: 'ti ti-user', + show: computed(() => $i != null), + to: `/@${$i?.username}`, + }, });