From c699ad4dfaa32e710adf9dfbe23174c0be125bb4 Mon Sep 17 00:00:00 2001 From: Mattias Granlund Date: Fri, 17 May 2024 16:22:26 +0200 Subject: [PATCH] Small refactor of history component --- app/src/lib/components/History.svelte | 221 ++++----------------- app/src/lib/components/SnapshotCard.svelte | 17 +- app/src/lib/history/history.ts | 60 ++++++ app/src/lib/history/types.ts | 66 ++++++ app/src/lib/utils/hotkeys.ts | 26 +-- app/src/lib/utils/time.ts | 11 +- app/src/routes/+layout.svelte | 6 - app/src/routes/[projectId]/+layout.svelte | 6 +- app/src/routes/[projectId]/+layout.ts | 3 + 9 files changed, 196 insertions(+), 220 deletions(-) create mode 100644 app/src/lib/history/history.ts create mode 100644 app/src/lib/history/types.ts diff --git a/app/src/lib/components/History.svelte b/app/src/lib/components/History.svelte index d9ba97852..069b14be3 100644 --- a/app/src/lib/components/History.svelte +++ b/app/src/lib/components/History.svelte @@ -1,68 +1,3 @@ - - -{#if $userSettings.showHistoryView} -