Some checks failed
Test and deploy staging / staging (push) Failing after 43s
Run the sveltekit-3 migration and finish its manual tasks:
- Move kit config into the sveltekit() Vite plugin; drop svelte.config.js
- Replace $lib with #lib subpath imports
- Declare env vars in src/env.ts and import them from $app/env/{private,public}
- Consolidate param matchers into src/params.ts
- Use error(status, message), Response.json, refreshAll and goto reset/shallow
- Fall back to a full page load when goto rejects a login return path
Switch from adapter-node to adapter-bun: the build script runs Vite under
Bun (the adapter requires it) and the image starts with `bun ./build`.
Runtime env names (PORT, BODY_SIZE_LIMIT, ADDRESS_HEADER, ...) are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
33 lines
1.3 KiB
Svelte
33 lines
1.3 KiB
Svelte
<script lang="ts">
|
|
import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
|
|
import { cn, type WithoutChild, type WithoutChildrenOrChild } from '#lib/utils.js';
|
|
import AlertDialogOverlay from './alert-dialog-overlay.svelte';
|
|
import AlertDialogPortal from './alert-dialog-portal.svelte';
|
|
import type { ComponentProps } from 'svelte';
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
size = 'default',
|
|
portalProps,
|
|
...restProps
|
|
}: WithoutChild<AlertDialogPrimitive.ContentProps> & {
|
|
size?: 'default' | 'sm';
|
|
portalProps?: WithoutChildrenOrChild<ComponentProps<typeof AlertDialogPortal>>;
|
|
} = $props();
|
|
</script>
|
|
|
|
<AlertDialogPortal {...portalProps}>
|
|
<AlertDialogOverlay />
|
|
<AlertDialogPrimitive.Content
|
|
bind:ref
|
|
data-slot="alert-dialog-content"
|
|
data-size={size}
|
|
class={cn(
|
|
'data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-popover text-popover-foreground ring-foreground/10 gap-6 rounded-xl p-6 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 outline-none',
|
|
className
|
|
)}
|
|
{...restProps}
|
|
/>
|
|
</AlertDialogPortal>
|