From 7afee5977fe60f0e69e148f38974e02141c8f8c6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 9 Feb 2023 10:35:28 +0900 Subject: [PATCH] feat(client): add channel column to deck --- CHANGELOG.md | 9 +++ locales/ja-JP.yml | 2 + packages/frontend/src/pages/channel.vue | 4 +- packages/frontend/src/pages/share.vue | 32 ++++----- packages/frontend/src/pages/timeline.vue | 4 +- packages/frontend/src/ui/deck.vue | 1 + .../frontend/src/ui/deck/channel-column.vue | 71 +++++++++++++++++++ packages/frontend/src/ui/deck/column-core.vue | 2 + packages/frontend/src/ui/deck/deck-store.ts | 3 +- .../frontend/src/widgets/WidgetPostForm.vue | 6 +- 10 files changed, 110 insertions(+), 24 deletions(-) create mode 100644 packages/frontend/src/ui/deck/channel-column.vue diff --git a/CHANGELOG.md b/CHANGELOG.md index a7f914bd4b..d7ee9ae169 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,15 @@ You should also include the user name that made the change. --> + +## 13.x.x (unreleased) + +### Improvements +- Client: デッキにチャンネルカラムを追加 + +### Bugfixes +- + ## 13.5.2 (2023/02/08) ### Changes diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 6286367b50..8e8fddfb89 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -129,6 +129,7 @@ unblockConfirm: "ブロック解除しますか?" suspendConfirm: "凍結しますか?" unsuspendConfirm: "解凍しますか?" selectList: "リストを選択" +selectChannel: "チャンネルを選択" selectAntenna: "アンテナを選択" selectWidget: "ウィジェットを選択" editWidgets: "ウィジェットを編集" @@ -1922,5 +1923,6 @@ _deck: tl: "タイムライン" antenna: "アンテナ" list: "リスト" + channel: "チャンネル" mentions: "あなた宛て" direct: "ダイレクト" diff --git a/packages/frontend/src/pages/channel.vue b/packages/frontend/src/pages/channel.vue index 96340a36b9..0fb33e30f7 100644 --- a/packages/frontend/src/pages/channel.vue +++ b/packages/frontend/src/pages/channel.vue @@ -23,7 +23,7 @@ - + @@ -34,7 +34,7 @@ diff --git a/packages/frontend/src/ui/deck/column-core.vue b/packages/frontend/src/ui/deck/column-core.vue index 30c0dc5e1c..083e91bb03 100644 --- a/packages/frontend/src/ui/deck/column-core.vue +++ b/packages/frontend/src/ui/deck/column-core.vue @@ -6,6 +6,7 @@ + @@ -17,6 +18,7 @@ import XMainColumn from './main-column.vue'; import XTlColumn from './tl-column.vue'; import XAntennaColumn from './antenna-column.vue'; import XListColumn from './list-column.vue'; +import XChannelColumn from './channel-column.vue'; import XNotificationsColumn from './notifications-column.vue'; import XWidgetsColumn from './widgets-column.vue'; import XMentionsColumn from './mentions-column.vue'; diff --git a/packages/frontend/src/ui/deck/deck-store.ts b/packages/frontend/src/ui/deck/deck-store.ts index 56db7398e5..80c202a2ef 100644 --- a/packages/frontend/src/ui/deck/deck-store.ts +++ b/packages/frontend/src/ui/deck/deck-store.ts @@ -14,7 +14,7 @@ type ColumnWidget = { export type Column = { id: string; - type: 'main' | 'widgets' | 'notifications' | 'tl' | 'antenna' | 'list' | 'mentions' | 'direct'; + type: 'main' | 'widgets' | 'notifications' | 'tl' | 'antenna' | 'channel' | 'list' | 'mentions' | 'direct'; name: string | null; width: number; widgets?: ColumnWidget[]; @@ -22,6 +22,7 @@ export type Column = { flexible?: boolean; antennaId?: string; listId?: string; + channelId?: string; includingTypes?: typeof notificationTypes[number][]; tl?: 'home' | 'local' | 'social' | 'global'; }; diff --git a/packages/frontend/src/widgets/WidgetPostForm.vue b/packages/frontend/src/widgets/WidgetPostForm.vue index 54226c1dbf..f8bebcbf96 100644 --- a/packages/frontend/src/widgets/WidgetPostForm.vue +++ b/packages/frontend/src/widgets/WidgetPostForm.vue @@ -1,12 +1,12 @@