feat: make lockdown mode title and message configurable

This change introduces `LOCKDOWN_TITLE` and `LOCKDOWN_MESSAGE` constants in `config/instance-config.js` and exposes them via `js/config.js`. It updates `components/lockdown-modal.html` to include IDs for the title and message elements, and modifies `js/index.js` to dynamically populate these elements with the configured text when initializing the lockdown interface. This allows instance operators to customize the maintenance mode appearance.

No new tests were added as this is a configuration and UI text update, but `tests/auth-service.test.mjs` was run to ensure no regressions in auth logic during lockdown.
This commit is contained in:
google-labs-jules[bot] committed 2026-01-19 21:35:23 +00:00
1 parent 3ac7b98340
commit ad69548fb7
5 files changed
+38 -6

No files matched your search

+2 -2
View File
@@ -41,10 +41,10 @@
<h2 id="lockdownModalTitle" class="text-2xl font-semibold tracking-tight text-text">
bitvid is in lockdown mode
</h2>
<p class="text-base leading-relaxed text-text-frosted">
<p id="lockdownModalMessage" class="text-base leading-relaxed text-text-frosted">
Only approved administrators and moderators can access the app while lockdown is active. Sign in with an authorized Nostr profile to continue.
</p>
<p class="text-sm text-text-muted">
<p id="lockdownModalHint" class="text-sm text-text-muted">
You will be prompted by your NIP-07 browser extension. Make sure it is installed, unlocked, and ready to approve the request.
</p>
</div>