From d177f97928c7223349f65820b931c6884dafe2f7 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 20 May 2023 10:12:18 +0900 Subject: [PATCH] refactor --- packages/frontend/src/ui/deck.vue | 6 +--- .../frontend/src/ui/deck/antenna-column.vue | 3 +- .../frontend/src/ui/deck/channel-column.vue | 3 +- packages/frontend/src/ui/deck/column.vue | 33 ++++++------------- .../frontend/src/ui/deck/direct-column.vue | 3 +- packages/frontend/src/ui/deck/list-column.vue | 3 +- packages/frontend/src/ui/deck/main-column.vue | 3 +- .../frontend/src/ui/deck/mentions-column.vue | 3 +- .../src/ui/deck/notifications-column.vue | 3 +- .../src/ui/deck/role-timeline-column.vue | 3 +- packages/frontend/src/ui/deck/tl-column.vue | 3 +- .../frontend/src/ui/deck/widgets-column.vue | 3 +- 12 files changed, 21 insertions(+), 48 deletions(-) diff --git a/packages/frontend/src/ui/deck.vue b/packages/frontend/src/ui/deck.vue index df695b9f4b..b91d6d7675 100644 --- a/packages/frontend/src/ui/deck.vue +++ b/packages/frontend/src/ui/deck.vue @@ -19,7 +19,6 @@ :class="$style.column" :column="columns.find(c => c.id === id)" :isStacked="ids.length > 1" - @parentFocus="moveFocus(id, $event)" />
@@ -206,11 +205,8 @@ window.addEventListener('wheel', (ev) => { columnsEl.scrollLeft += ev.deltaY; } }); -loadDeck(); -function moveFocus(id: string, direction: 'up' | 'down' | 'left' | 'right') { - // TODO?? -} +loadDeck(); function changeProfile(ev: MouseEvent) { const items = ref([{ diff --git a/packages/frontend/src/ui/deck/antenna-column.vue b/packages/frontend/src/ui/deck/antenna-column.vue index 661f4cab82..d35fa58638 100644 --- a/packages/frontend/src/ui/deck/antenna-column.vue +++ b/packages/frontend/src/ui/deck/antenna-column.vue @@ -1,5 +1,5 @@