diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..d62906f --- /dev/null +++ b/.env.example @@ -0,0 +1,24 @@ +# +# Decentra – local environment variables (example) +# +# Copy to `.env.local` (recommended) or `.env` and fill values. +# Files matching `.env*` are gitignored by default (except `.env.example`). +# +# Nuxt exposes variables prefixed with `NUXT_PUBLIC_` to the browser. +# + +# +# Optional remote debug logging (default: console-only) +# +# When empty/unset: Decentra only logs to the browser console. +# When set: Decentra will POST debug payloads to this URL. +# +# Example (Cursor debug session ingest): +# NUXT_PUBLIC_DEBUG_LOG_INGEST_URL=http://127.0.0.1:7476/ingest/ +# NUXT_PUBLIC_DEBUG_LOG_SESSION_ID= +# NUXT_PUBLIC_DEBUG_LOG_SESSION_HEADER=X-Debug-Session-Id +# +NUXT_PUBLIC_DEBUG_LOG_INGEST_URL= +NUXT_PUBLIC_DEBUG_LOG_SESSION_ID= +NUXT_PUBLIC_DEBUG_LOG_SESSION_HEADER= + diff --git a/CHANGELOG.md b/CHANGELOG.md index a23921a..5c1b0e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -97,6 +97,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Sign-up entry point for delegated browser OAuth; runtime `nuxt.public.siteUrl` / `matrixOidcClientId`; EN/DE i18n for callback and error paths; README notes on HTTPS redirect requirements for matrix.org +- Account verification panel in settings with device verification (SAS) + and recovery key bootstrap for cross-signing (#69) +- Optional remote debug logging via `NUXT_PUBLIC_DEBUG_LOG_*` env vars and + `.env.example` template (#69) ### Changed diff --git a/README.md b/README.md index 8674282..965c4e9 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,22 @@ npm run dev Open [http://localhost:3000](http://localhost:3000). +### Optional debug logging (console vs. remote) + +By default, Decentra logs debug traces only to the **browser console**. +You can optionally forward those traces to a remote ingest endpoint by +setting environment variables (recommended via a local untracked file): + +```bash +cp .env.example .env.local +``` + +Then set one or more of: + +- `NUXT_PUBLIC_DEBUG_LOG_INGEST_URL` (enables remote logging) +- `NUXT_PUBLIC_DEBUG_LOG_SESSION_ID` (optional) +- `NUXT_PUBLIC_DEBUG_LOG_SESSION_HEADER` (optional, e.g. `X-Debug-Session-Id`) + ## Build & Preview ```bash diff --git a/app/components/settings/AccountVerificationPanel.vue b/app/components/settings/AccountVerificationPanel.vue new file mode 100644 index 0000000..7110e5f --- /dev/null +++ b/app/components/settings/AccountVerificationPanel.vue @@ -0,0 +1,809 @@ + + +