From 50b25c88c72a38824a8c975920e5e203976ddfc1 Mon Sep 17 00:00:00 2001 From: Mae Dartmann Date: Mon, 24 Jun 2024 23:05:42 +0200 Subject: [PATCH] [client] remove unimplemented timetravel button & handlers Signed-off-by: Mae Dartmann --- .../client/src/pages/antenna-timeline.vue | 17 +++++------ packages/client/src/pages/timeline.vue | 17 +++++------ .../client/src/pages/user-list-timeline.vue | 28 ++++++++++--------- 3 files changed, 33 insertions(+), 29 deletions(-) diff --git a/packages/client/src/pages/antenna-timeline.vue b/packages/client/src/pages/antenna-timeline.vue index 3306f8c76..32060fafb 100644 --- a/packages/client/src/pages/antenna-timeline.vue +++ b/packages/client/src/pages/antenna-timeline.vue @@ -44,14 +44,15 @@ const keymap = $computed(() => ({ t: focus, })); -async function timetravel() { - const { canceled, result: date } = await os.inputDate({ - title: i18n.ts.date, - }); - if (canceled) return; - - tlEl.timetravel(date); -} +// removed for iceshrimp.dev/iceshrimp/iceshrimp !551 +// async function timetravel() { +// const { canceled, result: date } = await os.inputDate({ +// title: i18n.ts.date, +// }); +// if (canceled) return; +// +// tlEl.timetravel(date); +// } function settings() { router.push(`/my/antennas/${props.antennaId}`); diff --git a/packages/client/src/pages/timeline.vue b/packages/client/src/pages/timeline.vue index 930a9635a..380bacc70 100644 --- a/packages/client/src/pages/timeline.vue +++ b/packages/client/src/pages/timeline.vue @@ -187,14 +187,15 @@ function saveSrc( }); } -async function timetravel(): Promise { - const { canceled, result: date } = await os.inputDate({ - title: i18n.ts.date, - }); - if (canceled) return; - - tlComponent.timetravel(date); -} +// removed for iceshrimp.dev/iceshrimp/iceshrimp !551 +// async function timetravel(): Promise { +// const { canceled, result: date } = await os.inputDate({ +// title: i18n.ts.date, +// }); +// if (canceled) return; +// +// tlComponent.timetravel(date); +// } function focus(): void { tlComponent.focus(); diff --git a/packages/client/src/pages/user-list-timeline.vue b/packages/client/src/pages/user-list-timeline.vue index b6e1127eb..74970ef0c 100644 --- a/packages/client/src/pages/user-list-timeline.vue +++ b/packages/client/src/pages/user-list-timeline.vue @@ -50,23 +50,25 @@ function settings() { router.push(`/my/lists/${props.listId}`); } -async function timetravel() { - const { canceled, result: date } = await os.inputDate({ - title: i18n.ts.date, - }); - if (canceled) return; - - tlEl.timetravel(date); -} +// removed for iceshrimp.dev/iceshrimp/iceshrimp !551 +// async function timetravel() { +// const { canceled, result: date } = await os.inputDate({ +// title: i18n.ts.date, +// }); +// if (canceled) return; +// +// tlEl.timetravel(date); +// } const headerActions = $computed(() => list ? [ - { - icon: "ph-calendar-blank ph-bold ph-lg", - text: i18n.ts.jumpToSpecifiedDate, - handler: timetravel, - }, + // removed for iceshrimp.dev/iceshrimp/iceshrimp !551 + // { + // icon: "ph-calendar-blank ph-bold ph-lg", + // text: i18n.ts.jumpToSpecifiedDate, + // handler: timetravel, + // }, { icon: "ph-gear-six ph-bold ph-lg", text: i18n.ts.settings,