From 175d7276290b527310b24b62cb8529901161ab23 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 2cfb9c47b..1b029a321 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 dba76f247..5dbc029b3 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 558193679..6da6ad506 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 000000000..b6f143381 --- /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 4a4afcb07..23a7683a5 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)" /> +