diff --git a/src/lib/components/Turnstile.svelte b/src/lib/components/Turnstile.svelte index 6f66f909..4e716cb9 100644 --- a/src/lib/components/Turnstile.svelte +++ b/src/lib/components/Turnstile.svelte @@ -92,7 +92,7 @@ class="mb-auto ml-auto h-7 w-auto text-[#666] dark:text-[#999]" href="https://www.cloudflare.com/products/turnstile/?utm_source=turnstile&utm_campaign=widget" target="_blank" - rel="noreferrer" + rel="noopener noreferrer" > diff --git a/src/lib/telemetry/common.ts b/src/lib/telemetry/common.ts index 7abcb132..2f08cf4b 100644 --- a/src/lib/telemetry/common.ts +++ b/src/lib/telemetry/common.ts @@ -8,6 +8,7 @@ import { PUBLIC_SIGNOZ_TRACES_URL, } from '$env/static/public'; import { telemetryConsent, type TelemetryLevel } from '$lib/state/telemetry-consent-state.svelte'; +import { isTruthy } from '$lib/utils/parse'; import { resourceFromAttributes } from '@opentelemetry/resources'; export const SERVICE_NAME = 'openshock-frontend'; @@ -79,7 +80,7 @@ export function telemetryLevel(): TelemetryLevel { if (typeof window === 'undefined') return 'off'; // Deployment kill-switch: only ship from a deployment with a configured collector. - if (PUBLIC_SIGNOZ_LOGS_ENABLED !== 'true') return 'off'; + if (!isTruthy(PUBLIC_SIGNOZ_LOGS_ENABLED)) return 'off'; // Opt-in: respect the user's chosen consent level. return telemetryConsent.value; diff --git a/src/lib/telemetry/tracer.ts b/src/lib/telemetry/tracer.ts index 6b157030..50cb1cc3 100644 --- a/src/lib/telemetry/tracer.ts +++ b/src/lib/telemetry/tracer.ts @@ -1,4 +1,5 @@ import { PUBLIC_SIGNOZ_TRACE_PROPAGATION } from '$env/static/public'; +import { isTruthy } from '$lib/utils/parse'; import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http'; import { registerInstrumentations } from '@opentelemetry/instrumentation'; import { FetchInstrumentation } from '@opentelemetry/instrumentation-fetch'; @@ -38,7 +39,7 @@ export function initTracing(): void { // Distributed tracing: attach `traceparent`/`tracestate` to API requests so the backend can // continue the trace. Cross-origin, so the backend's CORS must allow those request headers — // off by default to avoid breaking API calls before the backend is ready. - const propagateToBackend = PUBLIC_SIGNOZ_TRACE_PROPAGATION === 'true'; + const propagateToBackend = isTruthy(PUBLIC_SIGNOZ_TRACE_PROPAGATION); registerInstrumentations({ instrumentations: [ diff --git a/src/routes/(auth)/login/+page.svelte b/src/routes/(auth)/login/+page.svelte index 4c8dcc53..ad2d123b 100644 --- a/src/routes/(auth)/login/+page.svelte +++ b/src/routes/(auth)/login/+page.svelte @@ -150,8 +150,8 @@ - By clicking Login, you agree to our Terms of Service - and Privacy Policy. + By clicking Login, you agree to our + Terms of Service + and + Privacy Policy. diff --git a/src/routes/Footer.svelte b/src/routes/Footer.svelte index b5014df1..c3594229 100644 --- a/src/routes/Footer.svelte +++ b/src/routes/Footer.svelte @@ -17,9 +17,7 @@ Made with by the - - OpenShock Team + OpenShock Team
diff --git a/src/routes/WelcomeScreen.svelte b/src/routes/WelcomeScreen.svelte index 2b7303c9..f9273c6f 100644 --- a/src/routes/WelcomeScreen.svelte +++ b/src/routes/WelcomeScreen.svelte @@ -326,7 +326,7 @@
CP210x Universal Windows Driver @@ -128,7 +129,7 @@
  • what you've already tried from the previous steps
  • any error messages or relevant terminal output
  • -