From f2ad4f13ba93b5421a6e19a369ca7251d961aca4 Mon Sep 17 00:00:00 2001 From: maciejpedzich Date: Tue, 5 Jul 2022 13:42:09 +0200 Subject: [PATCH] Create an individual snapshot preview page --- .../[playlistId]/snapshots/index.vue | 2 +- .../snapshots/show/[commitSha].vue | 132 ++++++++++++++++++ 2 files changed, 133 insertions(+), 1 deletion(-) create mode 100644 pages/playlists/[playlistId]/snapshots/show/[commitSha].vue diff --git a/pages/playlists/[playlistId]/snapshots/index.vue b/pages/playlists/[playlistId]/snapshots/index.vue index b511635..48f2fe9 100644 --- a/pages/playlists/[playlistId]/snapshots/index.vue +++ b/pages/playlists/[playlistId]/snapshots/index.vue @@ -62,7 +62,7 @@ const { const snapshotLinkMap = computed>(() => (calendarEntries.value || []).reduce((map, entry) => { const dateCapturedKey = entry.dateCaptured.substring(0, 10); - map[dateCapturedKey] = `./snapshots/${entry.commitSha}`; + map[dateCapturedKey] = `./snapshots/show/${entry.commitSha}`; return map; }, {}) diff --git a/pages/playlists/[playlistId]/snapshots/show/[commitSha].vue b/pages/playlists/[playlistId]/snapshots/show/[commitSha].vue new file mode 100644 index 0000000..cb862dc --- /dev/null +++ b/pages/playlists/[playlistId]/snapshots/show/[commitSha].vue @@ -0,0 +1,132 @@ + + + + +