Some checks failed
Test and deploy staging / staging (push) Failing after 14s
- run sv migrate sveltekit-3: config moves into vite.config.ts, $lib becomes #lib, $env/dynamic becomes $app/env/private via src/env.ts, $app/environment becomes $app/env, hook types move to @sveltejs/kit/hooks - env vars stay optional (the migrator defaulted them to ''), and BANCHO_MODE, which it missed, is declared and passed to simulatorEnabled - handleError only logs and masks unknown errors; Kit 3 now routes 404s and error(...) through it too - json()/text() become Response.json()/new Response(); goto keepFocus/noScroll becomes reset: false; invalidateAll becomes refreshAll; page.url is copied before mutating - replace adapter-node with @sveltejs/adapter-bun; prod-server.ts wraps Bun.serve to add native WebSockets (bunSockets) for /ws paths, since the generated server has no websocket option - drop the Kit readdir patch: Kit 3 sorts route entries itself - match view and broadcast pages use the live score modules BREAKING CHANGE: requires SvelteKit 3, TypeScript 6 and Bun 1.4; the build output is build/index.js from adapter-bun, started through prod-server.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 lines
1.0 KiB
Svelte
41 lines
1.0 KiB
Svelte
<script lang="ts" module>
|
|
import { tv, type VariantProps } from 'tailwind-variants';
|
|
|
|
export const tabsListVariants = tv({
|
|
base: 'rounded-lg p-[3px] group-data-horizontal/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list inline-flex w-fit items-center justify-center text-muted-foreground group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col',
|
|
variants: {
|
|
variant: {
|
|
default: 'bg-muted',
|
|
line: 'gap-1 bg-transparent'
|
|
}
|
|
},
|
|
defaultVariants: {
|
|
variant: 'default'
|
|
}
|
|
});
|
|
|
|
export type TabsListVariant = VariantProps<typeof tabsListVariants>['variant'];
|
|
</script>
|
|
|
|
<script lang="ts">
|
|
import { Tabs as TabsPrimitive } from 'bits-ui';
|
|
import { cn } from '#lib/utils.js';
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
variant = 'default',
|
|
class: className,
|
|
...restProps
|
|
}: TabsPrimitive.ListProps & {
|
|
variant?: TabsListVariant;
|
|
} = $props();
|
|
</script>
|
|
|
|
<TabsPrimitive.List
|
|
bind:ref
|
|
data-slot="tabs-list"
|
|
data-variant={variant}
|
|
class={cn(tabsListVariants({ variant }), className)}
|
|
{...restProps}
|
|
/>
|