Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/components/Turnstile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
<CloudflareLogo class="mb-px h-[26px]" />
</a>
Expand Down
3 changes: 2 additions & 1 deletion src/lib/telemetry/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/lib/telemetry/tracer.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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: [
Expand Down
8 changes: 4 additions & 4 deletions src/routes/(auth)/login/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@
</Card.Content>
</Card.Root>
<FieldDescription class="px-6 text-center">
By clicking Login, you agree to our <a href="https://openshock.org/tos" target="_blank"
>Terms of Service</a
>
and <a href="https://openshock.org/privacy" target="_blank">Privacy Policy</a>.
By clicking Login, you agree to our
<a href="https://openshock.org/tos" target="_blank" rel="noopener">Terms of Service</a>
and
<a href="https://openshock.org/privacy" target="_blank" rel="noopener">Privacy Policy</a>.
</FieldDescription>
4 changes: 1 addition & 3 deletions src/routes/Footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
Made with
<span style="color: #e25555;">&#9829;</span>
by the
<a target="_blank" rel="noopener noreferrer" href={PUBLIC_GITHUB_PROJECT_URL}>
OpenShock Team</a
>
<a target="_blank" rel="noopener" href={PUBLIC_GITHUB_PROJECT_URL}>OpenShock Team</a>
</div>
<div class="flex items-center gap-2">
<DropdownMenu.Root>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/WelcomeScreen.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@
<a
href={PUBLIC_GITHUB_PROJECT_URL}
target="_blank"
rel="noopener noreferrer"
rel="noopener"
class="group flex items-center gap-4 rounded-xl border border-white/10 bg-[#13131a] p-4 transition hover:border-white/30 hover:bg-[#181821]"
>
<div
Expand Down
3 changes: 2 additions & 1 deletion src/routes/terminal/HelpDialog.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
<Button
href="https://download.openshock.org/drivers/CP210x_Universal_Windows_Driver.zip"
target="_blank"
rel="noopener"
>
<ArrowDownToLine />
CP210x Universal Windows Driver
Expand Down Expand Up @@ -128,7 +129,7 @@
<li>what you've already tried from the previous steps</li>
<li>any error messages or relevant terminal output</li>
</ul>
<Button href={PUBLIC_DISCORD_INVITE_URL} target="_blank" class="w-fit">
<Button href={PUBLIC_DISCORD_INVITE_URL} target="_blank" rel="noopener" class="w-fit">
<DiscordLogo class="fill-white dark:fill-black" />
Join our Discord server
</Button>
Expand Down
Loading