mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-26 18:49:05 +01:00
refactor: run formatter
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import Root from "./input-otp.svelte";
|
import Root from './input-otp.svelte';
|
||||||
import Group from "./input-otp-group.svelte";
|
import Group from './input-otp-group.svelte';
|
||||||
import Slot from "./input-otp-slot.svelte";
|
import Slot from './input-otp-slot.svelte';
|
||||||
import Separator from "./input-otp-separator.svelte";
|
import Separator from './input-otp-separator.svelte';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
Root,
|
Root,
|
||||||
@@ -11,5 +11,5 @@ export {
|
|||||||
Root as InputOTP,
|
Root as InputOTP,
|
||||||
Group as InputOTPGroup,
|
Group as InputOTPGroup,
|
||||||
Slot as InputOTPSlot,
|
Slot as InputOTPSlot,
|
||||||
Separator as InputOTPSeparator,
|
Separator as InputOTPSeparator
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import type { HTMLAttributes } from "svelte/elements";
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
import type { WithElementRef } from "$lib/utils/style.js";
|
import type { WithElementRef } from '$lib/utils/style.js';
|
||||||
import { cn } from "$lib/utils/style.js";
|
import { cn } from '$lib/utils/style.js';
|
||||||
import MinusIcon from '@lucide/svelte/icons/minus';
|
import MinusIcon from '@lucide/svelte/icons/minus';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
@@ -22,6 +22,6 @@
|
|||||||
{#if children}
|
{#if children}
|
||||||
{@render children?.()}
|
{@render children?.()}
|
||||||
{:else}
|
{:else}
|
||||||
<MinusIcon />
|
<MinusIcon />
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -18,7 +18,14 @@ export function getAuthRedirectPath(url: URL, user: User | null) {
|
|||||||
|
|
||||||
const isPublicPath =
|
const isPublicPath =
|
||||||
path.startsWith('/lc/') ||
|
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/');
|
const isAdminPath = path == '/settings/admin' || path.startsWith('/settings/admin/');
|
||||||
|
|
||||||
|
|||||||
@@ -117,12 +117,10 @@ export function startPageTrace(path?: string): void {
|
|||||||
}
|
}
|
||||||
endPageSpan();
|
endPageSpan();
|
||||||
|
|
||||||
pageSpan = otel.trace
|
pageSpan = otel.trace.getTracer(TRACER_NAME).startSpan(path ? `pageview ${path}` : 'pageview', {
|
||||||
.getTracer(TRACER_NAME)
|
root: true,
|
||||||
.startSpan(path ? `pageview ${path}` : 'pageview', {
|
kind: otel.SpanKind.INTERNAL
|
||||||
root: true,
|
});
|
||||||
kind: otel.SpanKind.INTERNAL
|
|
||||||
});
|
|
||||||
pageContext = otel.trace.setSpan(otel.ROOT_CONTEXT, pageSpan);
|
pageContext = otel.trace.setSpan(otel.ROOT_CONTEXT, pageSpan);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -132,10 +132,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</Card.Header>
|
</Card.Header>
|
||||||
<Card.Content data-testid="scopes">
|
<Card.Content data-testid="scopes">
|
||||||
<ScopeList
|
<ScopeList scopes={deviceInfo!.scope || []} scopeInfo={deviceInfo!.scopeInfo || []} />
|
||||||
scopes={deviceInfo!.scope || []}
|
|
||||||
scopeInfo={deviceInfo!.scopeInfo || []}
|
|
||||||
/>
|
|
||||||
</Card.Content>
|
</Card.Content>
|
||||||
</Card.Root>
|
</Card.Root>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { PageLoad } from './$types';
|
import type { PageLoad } from './$types';
|
||||||
|
|
||||||
export const load: PageLoad = async ({ url }) => {
|
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 {
|
return {
|
||||||
error
|
error
|
||||||
|
|||||||
@@ -7,9 +7,7 @@
|
|||||||
import appConfigStore from '$lib/stores/application-configuration-store';
|
import appConfigStore from '$lib/stores/application-configuration-store';
|
||||||
import type { AllAppConfig } from '$lib/types/application-configuration.type';
|
import type { AllAppConfig } from '$lib/types/application-configuration.type';
|
||||||
import { axiosErrorToast } from '$lib/utils/error-util';
|
import { axiosErrorToast } from '$lib/utils/error-util';
|
||||||
import {
|
import { LucideInfo } from '@lucide/svelte';
|
||||||
LucideInfo
|
|
||||||
} from '@lucide/svelte';
|
|
||||||
import { toast } from 'svelte-sonner';
|
import { toast } from 'svelte-sonner';
|
||||||
import AppConfigEmailForm from './forms/app-config-email-form.svelte';
|
import AppConfigEmailForm from './forms/app-config-email-form.svelte';
|
||||||
import AppConfigGeneralForm from './forms/app-config-general-form.svelte';
|
import AppConfigGeneralForm from './forms/app-config-general-form.svelte';
|
||||||
|
|||||||
@@ -18,7 +18,12 @@
|
|||||||
import type { ScimServiceProviderCreate } from '$lib/types/scim.type';
|
import type { ScimServiceProviderCreate } from '$lib/types/scim.type';
|
||||||
import { cachedOidcClientLogo } from '$lib/utils/cached-image-util';
|
import { cachedOidcClientLogo } from '$lib/utils/cached-image-util';
|
||||||
import { axiosErrorToast } from '$lib/utils/error-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 { toast } from 'svelte-sonner';
|
||||||
import { slide } from 'svelte/transition';
|
import { slide } from 'svelte/transition';
|
||||||
import { backNavigate } from '../../users/navigate-back-util';
|
import { backNavigate } from '../../users/navigate-back-util';
|
||||||
|
|||||||
Reference in New Issue
Block a user