From 163fa6b9106a2eeabd15de610c9f40498c176457 Mon Sep 17 00:00:00 2001 From: apt-get Date: Mon, 2 Nov 2026 16:18:31 +0100 Subject: [PATCH] enable/disable tag intensity for now --- env.tpl | 1 + src/lib/components/WeightedTags.svelte | 14 ++++++++++---- src/lib/stores.svelte.ts | 2 ++ src/routes/streams/Sidebar.svelte | 13 +++++++++---- src/routes/streams/TagSelect.svelte | 9 +++++++-- 5 files changed, 29 insertions(+), 10 deletions(-) diff --git a/env.tpl b/env.tpl index d7998cc..41d7567 100644 --- a/env.tpl +++ b/env.tpl @@ -1,2 +1,3 @@ STREAM_JSON_LOCATION=/data/streams/json STREAM_MEDIA_LOCATION=/data/streams/media +PUBLIC_TAG_INTENSITY=true diff --git a/src/lib/components/WeightedTags.svelte b/src/lib/components/WeightedTags.svelte index 8660fba..f8a59a7 100644 --- a/src/lib/components/WeightedTags.svelte +++ b/src/lib/components/WeightedTags.svelte @@ -1,17 +1,23 @@ {#each sorted as [tag, weight], i}{i ? ', ' : ''}{tag} ({TAG_WEIGHT_NAMES[weight]}){tag}{#if TAG_INTENSITY_ENABLED} + ({TAG_WEIGHT_NAMES[weight]}){/if}{/each}