From b257ad8a2d6daf92ecbb28ae9814c312e05aaab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nu=C5=A1a=20Puk=C5=A1i=C4=8D?= Date: Sat, 4 Oct 2025 13:45:03 +0200 Subject: [PATCH] TechStore details --- src/lib/stores/techStore.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/lib/stores/techStore.ts b/src/lib/stores/techStore.ts index 09b9093..90f4322 100644 --- a/src/lib/stores/techStore.ts +++ b/src/lib/stores/techStore.ts @@ -1,3 +1,21 @@ +/** + * Tech Store - Alexandria + * + * This store manages the "show technical details" user setting for the Alexandria app. + * + * Use case: + * - Used with the ATechBlock component to hide nostr-specific developer details (e.g., raw event blocks) behind a collapsed section. + * - Users can toggle visibility of these technical details via the ATechToggle component. + * - If a user is a nostr developer, they can set their profile to always show technical details by default. + * - The setting is persisted in localStorage and reflected in the DOM via a data attribute for styling purposes. + * + * Example usage: + * + * + * + * This enables a cleaner UI for non-developers, while providing easy access to advanced information for developers. + */ + import { writable } from "svelte/store"; const KEY = "alexandria/showTech";