mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-09-30 06:49:06 +02:00
refactor: run formatter
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import Root from "./input-otp.svelte";
|
||||
import Group from "./input-otp-group.svelte";
|
||||
import Slot from "./input-otp-slot.svelte";
|
||||
import Separator from "./input-otp-separator.svelte";
|
||||
import Root from './input-otp.svelte';
|
||||
import Group from './input-otp-group.svelte';
|
||||
import Slot from './input-otp-slot.svelte';
|
||||
import Separator from './input-otp-separator.svelte';
|
||||
|
||||
export {
|
||||
Root,
|
||||
@@ -11,5 +11,5 @@ export {
|
||||
Root as InputOTP,
|
||||
Group as InputOTPGroup,
|
||||
Slot as InputOTPSlot,
|
||||
Separator as InputOTPSeparator,
|
||||
Separator as InputOTPSeparator
|
||||
};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import type { HTMLAttributes } from "svelte/elements";
|
||||
import type { WithElementRef } from "$lib/utils/style.js";
|
||||
import { cn } from "$lib/utils/style.js";
|
||||
import type { HTMLAttributes } from 'svelte/elements';
|
||||
import type { WithElementRef } from '$lib/utils/style.js';
|
||||
import { cn } from '$lib/utils/style.js';
|
||||
import MinusIcon from '@lucide/svelte/icons/minus';
|
||||
|
||||
let {
|
||||
@@ -22,6 +22,6 @@
|
||||
{#if children}
|
||||
{@render children?.()}
|
||||
{:else}
|
||||
<MinusIcon />
|
||||
<MinusIcon />
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -18,7 +18,14 @@ export function getAuthRedirectPath(url: URL, user: User | null) {
|
||||
|
||||
const isPublicPath =
|
||||
path.startsWith('/lc/') ||
|
||||
['/interaction', '/interaction/error', '/login/alternative/code', '/device', '/health', '/healthz'].includes(path);
|
||||
[
|
||||
'/interaction',
|
||||
'/interaction/error',
|
||||
'/login/alternative/code',
|
||||
'/device',
|
||||
'/health',
|
||||
'/healthz'
|
||||
].includes(path);
|
||||
|
||||
const isAdminPath = path == '/settings/admin' || path.startsWith('/settings/admin/');
|
||||
|
||||
|
||||
@@ -117,12 +117,10 @@ export function startPageTrace(path?: string): void {
|
||||
}
|
||||
endPageSpan();
|
||||
|
||||
pageSpan = otel.trace
|
||||
.getTracer(TRACER_NAME)
|
||||
.startSpan(path ? `pageview ${path}` : 'pageview', {
|
||||
root: true,
|
||||
kind: otel.SpanKind.INTERNAL
|
||||
});
|
||||
pageSpan = otel.trace.getTracer(TRACER_NAME).startSpan(path ? `pageview ${path}` : 'pageview', {
|
||||
root: true,
|
||||
kind: otel.SpanKind.INTERNAL
|
||||
});
|
||||
pageContext = otel.trace.setSpan(otel.ROOT_CONTEXT, pageSpan);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user