From f4bf5cc4478b49bdcd1629e4c09662398dd990f6 Mon Sep 17 00:00:00 2001 From: naskya Date: Thu, 8 Jun 2023 13:29:19 +0000 Subject: [PATCH] feat: channel column in deck view --- locales/en-US.yml | 4 +- locales/ja-JP.yml | 2 + packages/client/src/ui/deck.vue | 1 + .../client/src/ui/deck/channel-column.vue | 73 +++++++++++++++++++ packages/client/src/ui/deck/column-core.vue | 7 ++ 5 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 packages/client/src/ui/deck/channel-column.vue diff --git a/locales/en-US.yml b/locales/en-US.yml index 2cfb9c47bf..1b029a3214 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -147,6 +147,7 @@ unsuspendConfirm: "Are you sure that you want to unsuspend this account?" selectList: "Select a list" selectAntenna: "Select an antenna" selectWidget: "Select a widget" +selectChannel: "Select a channel" editWidgets: "Edit widgets" editWidgetsExit: "Done" customEmojis: "Custom Emoji" @@ -2027,8 +2028,9 @@ _deck: widgets: "Widgets" notifications: "Notifications" tl: "Timeline" - antenna: "Antennas" + antenna: "Antenna" list: "List" + channel: "Channel" mentions: "Mentions" direct: "Direct messages" _experiments: diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index dba76f2474..5dbc029b3b 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -133,6 +133,7 @@ unsuspendConfirm: "解凍しますか?" selectList: "リストを選択" selectAntenna: "アンテナを選択" selectWidget: "ウィジェットを選択" +selectChannel: "チャンネルを選択" editWidgets: "ウィジェットを編集" editWidgetsExit: "編集を終了" customEmojis: "カスタム絵文字" @@ -1854,6 +1855,7 @@ _deck: tl: "タイムライン" antenna: "アンテナ" list: "リスト" + channel: "チャンネル" mentions: "あなた宛て" direct: "ダイレクト" noteId: 投稿のID diff --git a/packages/client/src/ui/deck.vue b/packages/client/src/ui/deck.vue index 558193679b..6da6ad506d 100644 --- a/packages/client/src/ui/deck.vue +++ b/packages/client/src/ui/deck.vue @@ -245,6 +245,7 @@ const addColumn = async (ev) => { "tl", "antenna", "list", + "channel", "mentions", "direct", ]; diff --git a/packages/client/src/ui/deck/channel-column.vue b/packages/client/src/ui/deck/channel-column.vue new file mode 100644 index 0000000000..b6f143381b --- /dev/null +++ b/packages/client/src/ui/deck/channel-column.vue @@ -0,0 +1,73 @@ + + + + + diff --git a/packages/client/src/ui/deck/column-core.vue b/packages/client/src/ui/deck/column-core.vue index 4a4afcb076..23a7683a51 100644 --- a/packages/client/src/ui/deck/column-core.vue +++ b/packages/client/src/ui/deck/column-core.vue @@ -49,6 +49,12 @@ :is-stacked="isStacked" @parent-focus="emit('parent-focus', $event)" /> +