From 399f7c451b657a1eea40e7337eceab002cdf8679 Mon Sep 17 00:00:00 2001 From: mattyatea Date: Sun, 11 Feb 2024 20:23:39 +0900 Subject: [PATCH] =?UTF-8?q?=E8=89=B2=E3=80=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/index.d.ts | 4 + locales/ja-JP.yml | 1 + packages/frontend/src/cache.ts | 2 + .../frontend/src/components/MkPostForm.vue | 1207 +++++++++-------- .../frontend/src/components/MkTimeline.vue | 1 + .../src/components/global/MkPageHeader.vue | 1 - packages/frontend/src/pages/channel.vue | 1 - packages/frontend/src/pages/notifications.vue | 7 +- .../frontend/src/pages/settings/general.vue | 54 +- packages/frontend/src/pages/timeline.vue | 21 +- packages/frontend/src/store.ts | 5 +- 11 files changed, 691 insertions(+), 613 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index e77fd8a615..5a2272f4d8 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -84,6 +84,10 @@ export interface Locale extends ILocale { * ルビ */ "ruby": string; + /** + * ピン留めされたチャンネル + */ + "pinnedChannel": string; /** * わかった */ diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 77dba50625..4b5d12fe36 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -17,6 +17,7 @@ notificationIndicator: "通知のインジケーターの数字を表示する" hanntenn: "アイコンとバナーを反転させる" hanntennInfo: "ダークだったらライトのアイコンに、ライトだったらダークのアイコンに。" ruby: "ルビ" +pinnedChannel: "ピン留めされたチャンネル" gotIt: "わかった" cancel: "キャンセル" myLists: "自分の作成したリスト" diff --git a/packages/frontend/src/cache.ts b/packages/frontend/src/cache.ts index 17d813a3f2..ab19837571 100644 --- a/packages/frontend/src/cache.ts +++ b/packages/frontend/src/cache.ts @@ -12,3 +12,5 @@ export const rolesCache = new Cache(1000 * 60 * 30, () => misskeyApi('admin/role export const userListsCache = new Cache(1000 * 60 * 30, () => misskeyApi('users/lists/list')); export const antennasCache = new Cache(1000 * 60 * 30, () => misskeyApi('antennas/list')); export const userFavoriteListsCache = new Cache(1000 * 60 * 30, () => misskeyApi('users/lists/list-favorite')); +export const userChannelsCache = new Cache(1000 * 60 * 30, () => misskeyApi('channels/owned')); +export const userChannelFollowingsCache = new Cache(1000 * 60 * 30, () => misskeyApi('channels/followed')); diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index 3effffe494..58f11a8b5d 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -4,103 +4,103 @@ SPDX-License-Identifier: AGPL-3.0-only -->