From 38e93d5208213c710756c225854b18f5811b88c4 Mon Sep 17 00:00:00 2001 From: Asaf Gartner Date: Thu, 7 Apr 2022 08:19:48 +0300 Subject: [PATCH] Added support for unknown filetypes in snippets --- public/js/showcase.js | 1 + src/templates/src/include/timeline_item.html | 4 ++++ src/templates/src/snippet.html | 4 ++++ src/templates/templates.go | 19 +++++++++++++++++++ src/templates/types.go | 5 ++++- src/website/timeline_helper.go | 17 ++++++++++++++++- 6 files changed, 48 insertions(+), 2 deletions(-) diff --git a/public/js/showcase.js b/public/js/showcase.js index 1f39ab09..aa2b5ef9 100644 --- a/public/js/showcase.js +++ b/public/js/showcase.js @@ -1,4 +1,5 @@ const TimelineMediaTypes = { + UNKNOWN: 0, IMAGE: 1, VIDEO: 2, AUDIO: 3, diff --git a/src/templates/src/include/timeline_item.html b/src/templates/src/include/timeline_item.html index 285fb6b9..9caa4680 100644 --- a/src/templates/src/include/timeline_item.html +++ b/src/templates/src/include/timeline_item.html @@ -56,6 +56,10 @@