mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-07-15 21:48:13 +03: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);
|
||||
}
|
||||
|
||||
|
||||
@@ -132,10 +132,7 @@
|
||||
</p>
|
||||
</Card.Header>
|
||||
<Card.Content data-testid="scopes">
|
||||
<ScopeList
|
||||
scopes={deviceInfo!.scope || []}
|
||||
scopeInfo={deviceInfo!.scopeInfo || []}
|
||||
/>
|
||||
<ScopeList scopes={deviceInfo!.scope || []} scopeInfo={deviceInfo!.scopeInfo || []} />
|
||||
</Card.Content>
|
||||
</Card.Root>
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { PageLoad } from './$types';
|
||||
|
||||
export const load: PageLoad = async ({ url }) => {
|
||||
const error = url.searchParams.get('error') ?? "An unknown error occured."
|
||||
const error = url.searchParams.get('error') ?? 'An unknown error occured.';
|
||||
|
||||
return {
|
||||
error
|
||||
|
||||
@@ -7,9 +7,7 @@
|
||||
import appConfigStore from '$lib/stores/application-configuration-store';
|
||||
import type { AllAppConfig } from '$lib/types/application-configuration.type';
|
||||
import { axiosErrorToast } from '$lib/utils/error-util';
|
||||
import {
|
||||
LucideInfo
|
||||
} from '@lucide/svelte';
|
||||
import { LucideInfo } from '@lucide/svelte';
|
||||
import { toast } from 'svelte-sonner';
|
||||
import AppConfigEmailForm from './forms/app-config-email-form.svelte';
|
||||
import AppConfigGeneralForm from './forms/app-config-general-form.svelte';
|
||||
|
||||
@@ -18,7 +18,12 @@
|
||||
import type { ScimServiceProviderCreate } from '$lib/types/scim.type';
|
||||
import { cachedOidcClientLogo } from '$lib/utils/cached-image-util';
|
||||
import { axiosErrorToast } from '$lib/utils/error-util';
|
||||
import { LucideChevronLeft, LucideInfo, LucideRefreshCcw, LucideTriangleAlert } from '@lucide/svelte';
|
||||
import {
|
||||
LucideChevronLeft,
|
||||
LucideInfo,
|
||||
LucideRefreshCcw,
|
||||
LucideTriangleAlert
|
||||
} from '@lucide/svelte';
|
||||
import { toast } from 'svelte-sonner';
|
||||
import { slide } from 'svelte/transition';
|
||||
import { backNavigate } from '../../users/navigate-back-util';
|
||||
|
||||
Reference in New Issue
Block a user