feat: add auth to webapi
This commit is contained in:
parent
5a4a4d7e3a
commit
383e6340ea
@ -8,5 +8,5 @@
|
||||
^https://konobangu.com/api/playground*** reqHeaders://{x-forwarded.json} http://127.0.0.1:5002/api/playground$1
|
||||
^wss://konobangu.com/api/playground*** reqHeaders://{x-forwarded.json} ws://127.0.0.1:5002/api/playground$1
|
||||
^https://konobangu.com/api*** reqHeaders://{x-forwarded.json} http://127.0.0.1:5001/api$1 excludeFilter://^^https://konobangu.com/api/playground***
|
||||
^https://konobangu.com*** reqHeaders://{x-forwarded.json} http://127.0.0.1:5000$1 excludeFilter://^https://konobangu.com/api***
|
||||
|
||||
^https://konobangu.com/*** reqHeaders://{x-forwarded.json} http://127.0.0.1:5000/$1 excludeFilter://^https://konobangu.com/api***
|
||||
^wss://konobangu.com/*** reqHeaders://{x-forwarded.json} ws://127.0.0.1:5000/$1 excludeFilter://^wss://konobangu.com/api/playground***
|
@ -1,41 +0,0 @@
|
||||
import type { Observable } from '@graphiql/toolkit';
|
||||
import { InjectionToken, inject } from '@outposts/injection-js';
|
||||
import {
|
||||
type AuthFeature,
|
||||
EventTypes,
|
||||
PublicEventsService,
|
||||
} from 'oidc-client-rx';
|
||||
import { filter, shareReplay } from 'rxjs';
|
||||
|
||||
export type CheckAuthResultEventType =
|
||||
| { type: EventTypes.CheckingAuthFinished }
|
||||
| {
|
||||
type: EventTypes.CheckingAuthFinishedWithError;
|
||||
value: string;
|
||||
};
|
||||
export const CHECK_AUTH_RESULT_EVENT = new InjectionToken<
|
||||
Observable<CheckAuthResultEventType>
|
||||
>('CHECK_AUTH_RESULT_EVENT');
|
||||
|
||||
export function withCheckAuthResultEvent(): AuthFeature {
|
||||
return {
|
||||
ɵproviders: [
|
||||
{
|
||||
provide: CHECK_AUTH_RESULT_EVENT,
|
||||
useFactory: () => {
|
||||
const publishEventService = inject(PublicEventsService);
|
||||
|
||||
return publishEventService.registerForEvents().pipe(
|
||||
filter(
|
||||
(e) =>
|
||||
e.type === EventTypes.CheckingAuthFinishedWithError ||
|
||||
e.type === EventTypes.CheckingAuthFinished
|
||||
),
|
||||
shareReplay(1)
|
||||
);
|
||||
},
|
||||
deps: [PublicEventsService],
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
import { runInInjectionContext } from '@outposts/injection-js';
|
||||
import { autoLoginPartialRoutesGuard } from 'oidc-client-rx';
|
||||
import { firstValueFrom } from 'rxjs';
|
||||
import type { RouterContext } from '../controllers/__root';
|
||||
import type { RouterContext } from '../web/controller/__root';
|
||||
|
||||
export const beforeLoadGuard = async ({
|
||||
context,
|
||||
|
@ -4,17 +4,17 @@ import { RouterProvider, createRouter } from '@tanstack/react-router';
|
||||
import {
|
||||
OidcSecurityService,
|
||||
provideAuth,
|
||||
withCheckAuthResultEvent,
|
||||
withDefaultFeatures,
|
||||
} from 'oidc-client-rx';
|
||||
import { withTanstackRouter } from 'oidc-client-rx/adapters/@tanstack/react-router';
|
||||
import {
|
||||
InjectorContextVoidInjector,
|
||||
InjectorProvider,
|
||||
} from 'oidc-client-rx/adapters/react';
|
||||
import { withTanstackRouter } from 'oidc-client-rx/adapters/tanstack-router';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import { buildOidcConfig, isBasicAuth } from './auth/config';
|
||||
import { withCheckAuthResultEvent } from './auth/event';
|
||||
import { useAuth } from './auth/hooks';
|
||||
import { routeTree } from './routeTree.gen';
|
||||
import './main.css';
|
||||
|
@ -1,6 +1,5 @@
|
||||
import type { Injector } from '@outposts/injection-js';
|
||||
import {
|
||||
// Link,
|
||||
Outlet,
|
||||
createRootRouteWithContext,
|
||||
} from '@tanstack/react-router';
|
||||
@ -26,25 +25,6 @@ export const Route = createRootRouteWithContext<RouterContext>()({
|
||||
function RootComponent() {
|
||||
return (
|
||||
<>
|
||||
{/* <div className="flex gap-2 p-2 text-lg ">
|
||||
<Link
|
||||
to="/"
|
||||
activeProps={{
|
||||
className: 'font-bold',
|
||||
}}
|
||||
>
|
||||
Home
|
||||
</Link>{' '}
|
||||
<Link
|
||||
to="/graphql"
|
||||
activeProps={{
|
||||
className: 'font-bold',
|
||||
}}
|
||||
>
|
||||
GraphQL
|
||||
</Link>
|
||||
</div> */}
|
||||
{/* <hr /> */}
|
||||
<Outlet />
|
||||
<TanStackRouterDevtools position="bottom-right" />
|
||||
</>
|
||||
|
@ -10,18 +10,24 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@ark-ui/solid": "^4.10.2",
|
||||
"@codemirror/language": "^6.10.8",
|
||||
"@corvu/drawer": "^0.2.3",
|
||||
"@corvu/otp-field": "^0.1.4",
|
||||
"@corvu/resizable": "^0.2.4",
|
||||
"@graphiql/toolkit": "^0.11.1",
|
||||
"@kobalte/core": "^0.13.9",
|
||||
"@kobalte/tailwindcss": "^0.9.0",
|
||||
"@solid-primitives/graphql": "^2.2.0",
|
||||
"@solid-primitives/refs": "^1.1.0",
|
||||
"@tailwindcss/postcss": "^4.0.9",
|
||||
"@tanstack/solid-router": "^1.112.2",
|
||||
"chart.js": "^4.4.8",
|
||||
"cmdk-solid": "^1.1.2",
|
||||
"embla-carousel-solid": "^8.5.2",
|
||||
"graphiql": "^3.8.3",
|
||||
"lucide-solid": "^0.477.0",
|
||||
"react": "^18",
|
||||
"react-dom": "^18",
|
||||
"solid-js": "^1.9.5",
|
||||
"solid-sonner": "^0.2.8",
|
||||
"tailwindcss": "^3"
|
||||
|
@ -37,6 +37,38 @@ export default defineConfig({
|
||||
),
|
||||
},
|
||||
},
|
||||
dev: {
|
||||
client: {
|
||||
path: '/rsbuild-hmr',
|
||||
},
|
||||
setupMiddlewares: [
|
||||
(middlewares) => {
|
||||
middlewares.unshift((req, res, next) => {
|
||||
if (process.env.AUTH_TYPE === 'basic') {
|
||||
res.setHeader('WWW-Authenticate', 'Basic realm="konobangu"');
|
||||
|
||||
const authorization =
|
||||
(req.headers.authorization || '').split(' ')[1] || '';
|
||||
const [user, password] = Buffer.from(authorization, 'base64')
|
||||
.toString()
|
||||
.split(':');
|
||||
|
||||
if (
|
||||
user !== process.env.BASIC_USER ||
|
||||
password !== process.env.BASIC_PASSWORD
|
||||
) {
|
||||
res.statusCode = 401;
|
||||
res.write('Unauthorized');
|
||||
res.end();
|
||||
return;
|
||||
}
|
||||
}
|
||||
next();
|
||||
});
|
||||
return middlewares;
|
||||
},
|
||||
],
|
||||
},
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 5000,
|
||||
|
@ -46,6 +46,15 @@
|
||||
--ring: 240 5.9% 10%;
|
||||
|
||||
--radius: 0.5rem;
|
||||
|
||||
--sidebar-background: 0 0% 98%;
|
||||
--sidebar-foreground: 240 5.3% 26.1%;
|
||||
--sidebar-primary: 240 5.9% 10%;
|
||||
--sidebar-primary-foreground: 0 0% 98%;
|
||||
--sidebar-accent: 240 4.8% 95.9%;
|
||||
--sidebar-accent-foreground: 240 5.9% 10%;
|
||||
--sidebar-border: 220 13% 91%;
|
||||
--sidebar-ring: 217.2 91.2% 59.8%;
|
||||
}
|
||||
|
||||
.dark,
|
||||
@ -92,6 +101,15 @@
|
||||
--ring: 240 4.9% 83.9%;
|
||||
|
||||
--radius: 0.5rem;
|
||||
|
||||
--sidebar-background: 240 5.9% 10%;
|
||||
--sidebar-foreground: 240 4.8% 95.9%;
|
||||
--sidebar-primary: 224.3 76.3% 48%;
|
||||
--sidebar-primary-foreground: 0 0% 100%;
|
||||
--sidebar-accent: 240 3.7% 15.9%;
|
||||
--sidebar-accent-foreground: 240 4.8% 95.9%;
|
||||
--sidebar-border: 240 3.7% 15.9%;
|
||||
--sidebar-ring: 217.2 91.2% 59.8%;
|
||||
}
|
||||
|
||||
/* custom start */
|
||||
|
37
apps/webui/src/auth/config.ts
Normal file
37
apps/webui/src/auth/config.ts
Normal file
@ -0,0 +1,37 @@
|
||||
import { LogLevel, type OpenIdConfiguration } from 'oidc-client-rx';
|
||||
|
||||
export const isBasicAuth = process.env.AUTH_TYPE === 'basic';
|
||||
|
||||
export function buildOidcConfig(): OpenIdConfiguration {
|
||||
const origin = window.location.origin;
|
||||
|
||||
const resource = process.env.OIDC_AUDIENCE!;
|
||||
|
||||
return {
|
||||
authority: process.env.OIDC_ISSUER!,
|
||||
redirectUrl: `${origin}/auth/oidc/callback`,
|
||||
postLogoutRedirectUri: `${origin}/`,
|
||||
clientId: process.env.OIDC_CLIENT_ID!,
|
||||
clientSecret: process.env.OIDC_CLIENT_SECRET,
|
||||
scope: process.env.OIDC_EXTRA_SCOPES
|
||||
? `openid profile email offline_access ${process.env.OIDC_EXTRA_SCOPES}`
|
||||
: 'openid profile email offline_access',
|
||||
triggerAuthorizationResultEvent: true,
|
||||
responseType: 'code',
|
||||
silentRenew: true,
|
||||
useRefreshToken: true,
|
||||
logLevel: LogLevel.Debug,
|
||||
autoUserInfo: !resource,
|
||||
renewUserInfoAfterTokenRenew: !resource,
|
||||
customParamsAuthRequest: {
|
||||
prompt: 'consent',
|
||||
resource,
|
||||
},
|
||||
customParamsRefreshTokenRequest: {
|
||||
resource,
|
||||
},
|
||||
customParamsCodeRequest: {
|
||||
resource,
|
||||
},
|
||||
};
|
||||
}
|
12
apps/webui/src/auth/context.ts
Normal file
12
apps/webui/src/auth/context.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import type { Injector } from '@outposts/injection-js';
|
||||
import type { OidcSecurityService } from 'oidc-client-rx';
|
||||
import { type Accessor, createSignal } from 'solid-js';
|
||||
import { isBasicAuth } from './config';
|
||||
|
||||
export const [isAuthenticated, setIsAuthenticated] = createSignal(isBasicAuth);
|
||||
|
||||
export type RouterContext = {
|
||||
isAuthenticated: Accessor<boolean>;
|
||||
injector: Injector;
|
||||
oidcSecurityService: OidcSecurityService;
|
||||
};
|
19
apps/webui/src/auth/guard.ts
Normal file
19
apps/webui/src/auth/guard.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import { runInInjectionContext } from '@outposts/injection-js';
|
||||
import { autoLoginPartialRoutesGuard } from 'oidc-client-rx';
|
||||
import { firstValueFrom } from 'rxjs';
|
||||
import type { RouterContext } from './context';
|
||||
|
||||
export const beforeLoadGuard = async ({
|
||||
context,
|
||||
}: { context: RouterContext }) => {
|
||||
if (!context.isAuthenticated()) {
|
||||
const guard$ = runInInjectionContext(context.injector, () =>
|
||||
autoLoginPartialRoutesGuard()
|
||||
);
|
||||
|
||||
const isAuthenticated = await firstValueFrom(guard$);
|
||||
if (!isAuthenticated) {
|
||||
throw !isAuthenticated;
|
||||
}
|
||||
}
|
||||
};
|
51
apps/webui/src/auth/hooks.ts
Normal file
51
apps/webui/src/auth/hooks.ts
Normal file
@ -0,0 +1,51 @@
|
||||
import { CHECK_AUTH_RESULT_EVENT } from 'oidc-client-rx';
|
||||
import {
|
||||
InjectorContextVoidInjector,
|
||||
useOidcClient,
|
||||
} from 'oidc-client-rx/adapters/solid-js';
|
||||
import { NEVER, of } from 'rxjs';
|
||||
import { createMemo, from } from 'solid-js';
|
||||
import { isBasicAuth } from './config';
|
||||
|
||||
const BASIC_AUTH_IS_AUTHENTICATED$ = of({
|
||||
isAuthenticated: true,
|
||||
allConfigsAuthenticated: [],
|
||||
});
|
||||
|
||||
const BASIC_AUTH_USER_DATA$ = of({
|
||||
userData: {},
|
||||
allUserData: [],
|
||||
});
|
||||
|
||||
export function useAuth() {
|
||||
const { oidcSecurityService, injector } = isBasicAuth
|
||||
? { oidcSecurityService: undefined, injector: InjectorContextVoidInjector }
|
||||
: // biome-ignore lint/correctness/useHookAtTopLevel: <explanation>
|
||||
useOidcClient();
|
||||
|
||||
const isAuthenticatedObj = from(
|
||||
oidcSecurityService?.isAuthenticated$ ?? BASIC_AUTH_IS_AUTHENTICATED$
|
||||
);
|
||||
|
||||
const userDataObj = from(
|
||||
oidcSecurityService?.userData$ ?? BASIC_AUTH_USER_DATA$
|
||||
);
|
||||
|
||||
const isAuthenticated = createMemo(
|
||||
() => isAuthenticatedObj()?.isAuthenticated ?? false
|
||||
);
|
||||
|
||||
const userData = createMemo(() => userDataObj()?.userData ?? {});
|
||||
|
||||
const checkAuthResultEvent = isBasicAuth
|
||||
? NEVER
|
||||
: injector.get(CHECK_AUTH_RESULT_EVENT);
|
||||
|
||||
return {
|
||||
oidcSecurityService,
|
||||
isAuthenticated,
|
||||
userData,
|
||||
injector,
|
||||
checkAuthResultEvent,
|
||||
};
|
||||
}
|
47
apps/webui/src/components/layout/app-layout.tsx
Normal file
47
apps/webui/src/components/layout/app-layout.tsx
Normal file
@ -0,0 +1,47 @@
|
||||
import { Outlet } from '@tanstack/solid-router';
|
||||
import { AppSidebar } from '~/components/layout/app-sidebar';
|
||||
import {
|
||||
Breadcrumb,
|
||||
BreadcrumbItem,
|
||||
BreadcrumbLink,
|
||||
BreadcrumbList,
|
||||
BreadcrumbSeparator,
|
||||
} from '~/components/ui/breadcrumb';
|
||||
import { Separator } from '~/components/ui/separator';
|
||||
import {
|
||||
SidebarInset,
|
||||
SidebarProvider,
|
||||
SidebarTrigger,
|
||||
} from '~/components/ui/sidebar';
|
||||
|
||||
export function AppLayout() {
|
||||
return (
|
||||
<SidebarProvider>
|
||||
<AppSidebar />
|
||||
<SidebarInset>
|
||||
<header class="flex h-16 shrink-0 items-center gap-2 transition-[width,height] ease-linear group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-12">
|
||||
<div class="flex items-center gap-2 px-4">
|
||||
<SidebarTrigger class="-ml-1" />
|
||||
<Separator orientation="vertical" class="mr-2 h-4" />
|
||||
<Breadcrumb>
|
||||
<BreadcrumbList>
|
||||
<BreadcrumbItem class="hidden md:block">
|
||||
<BreadcrumbLink href="#">
|
||||
Building Your Application
|
||||
</BreadcrumbLink>
|
||||
</BreadcrumbItem>
|
||||
<BreadcrumbSeparator class="hidden md:block" />
|
||||
<BreadcrumbItem>
|
||||
<BreadcrumbLink current>Data Fetching</BreadcrumbLink>
|
||||
</BreadcrumbItem>
|
||||
</BreadcrumbList>
|
||||
</Breadcrumb>
|
||||
</div>
|
||||
</header>
|
||||
<div class="p-4 pt-0">
|
||||
<Outlet />
|
||||
</div>
|
||||
</SidebarInset>
|
||||
</SidebarProvider>
|
||||
);
|
||||
}
|
@ -1,14 +1,10 @@
|
||||
import {
|
||||
AudioWaveform,
|
||||
BookOpen,
|
||||
Bot,
|
||||
ChartPie,
|
||||
Command,
|
||||
Frame,
|
||||
GalleryVerticalEnd,
|
||||
Map as LucideMap,
|
||||
Folders,
|
||||
Settings2,
|
||||
SquareTerminal,
|
||||
Telescope,
|
||||
} from 'lucide-solid';
|
||||
import type { ComponentProps } from 'solid-js';
|
||||
import {
|
||||
@ -20,9 +16,113 @@ import {
|
||||
} from '~/components/ui/sidebar';
|
||||
import { AppIcon } from './app-icon';
|
||||
import { NavMain } from './nav-main';
|
||||
import { NavProjects } from './nav-projects';
|
||||
import { NavUser } from './nav-user';
|
||||
// This is sample data.
|
||||
|
||||
const navMain = [
|
||||
{
|
||||
group: 'Dashboard',
|
||||
items: [
|
||||
{
|
||||
title: 'Explore',
|
||||
link: {
|
||||
to: '/explore',
|
||||
},
|
||||
icon: Telescope,
|
||||
},
|
||||
{
|
||||
title: 'Subscriptions',
|
||||
link: {
|
||||
to: '/subscriptions',
|
||||
},
|
||||
icon: Folders,
|
||||
children: [
|
||||
{
|
||||
title: 'Manage',
|
||||
link: {
|
||||
to: '/subscriptions/manage',
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Create',
|
||||
link: {
|
||||
to: '/subscriptions/create',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Playground',
|
||||
href: '#',
|
||||
icon: SquareTerminal,
|
||||
isActive: true,
|
||||
items: [
|
||||
{
|
||||
title: 'History',
|
||||
href: '#',
|
||||
},
|
||||
{
|
||||
title: 'Starred',
|
||||
href: '#',
|
||||
},
|
||||
{
|
||||
title: 'Settings',
|
||||
href: '#',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Models',
|
||||
href: '#',
|
||||
icon: Bot,
|
||||
items: [
|
||||
{
|
||||
title: 'Genesis',
|
||||
href: '#',
|
||||
},
|
||||
{
|
||||
title: 'Explorer',
|
||||
href: '#',
|
||||
},
|
||||
{
|
||||
title: 'Quantum',
|
||||
href: '#',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Documentation',
|
||||
link: {
|
||||
href: 'https://github.com/dumtruck/konobangu/wiki',
|
||||
target: '_blank',
|
||||
},
|
||||
icon: BookOpen,
|
||||
},
|
||||
{
|
||||
title: 'Settings',
|
||||
href: '#',
|
||||
icon: Settings2,
|
||||
items: [
|
||||
{
|
||||
title: 'General',
|
||||
href: '#',
|
||||
},
|
||||
{
|
||||
title: 'Team',
|
||||
href: '#',
|
||||
},
|
||||
{
|
||||
title: 'Billing',
|
||||
href: '#',
|
||||
},
|
||||
{
|
||||
title: 'Limits',
|
||||
href: '#',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
const data = {
|
||||
user: {
|
||||
@ -30,110 +130,6 @@ const data = {
|
||||
email: 'm@example.com',
|
||||
avatar: '/avatars/shadcn.jpg',
|
||||
},
|
||||
navMain: [
|
||||
{
|
||||
title: 'Playground',
|
||||
url: '#',
|
||||
icon: SquareTerminal,
|
||||
isActive: true,
|
||||
items: [
|
||||
{
|
||||
title: 'History',
|
||||
url: '#',
|
||||
},
|
||||
{
|
||||
title: 'Starred',
|
||||
url: '#',
|
||||
},
|
||||
{
|
||||
title: 'Settings',
|
||||
url: '#',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Models',
|
||||
url: '#',
|
||||
icon: Bot,
|
||||
items: [
|
||||
{
|
||||
title: 'Genesis',
|
||||
url: '#',
|
||||
},
|
||||
{
|
||||
title: 'Explorer',
|
||||
url: '#',
|
||||
},
|
||||
{
|
||||
title: 'Quantum',
|
||||
url: '#',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Documentation',
|
||||
url: '#',
|
||||
icon: BookOpen,
|
||||
items: [
|
||||
{
|
||||
title: 'Introduction',
|
||||
url: '#',
|
||||
},
|
||||
{
|
||||
title: 'Get Started',
|
||||
url: '#',
|
||||
},
|
||||
{
|
||||
title: 'Tutorials',
|
||||
url: '#',
|
||||
},
|
||||
{
|
||||
title: 'Changelog',
|
||||
url: '#',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Settings',
|
||||
url: '#',
|
||||
icon: Settings2,
|
||||
items: [
|
||||
{
|
||||
title: 'General',
|
||||
url: '#',
|
||||
},
|
||||
{
|
||||
title: 'Team',
|
||||
url: '#',
|
||||
},
|
||||
{
|
||||
title: 'Billing',
|
||||
url: '#',
|
||||
},
|
||||
{
|
||||
title: 'Limits',
|
||||
url: '#',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
projects: [
|
||||
{
|
||||
name: 'Design Engineering',
|
||||
url: '#',
|
||||
icon: Frame,
|
||||
},
|
||||
{
|
||||
name: 'Sales & Marketing',
|
||||
url: '#',
|
||||
icon: ChartPie,
|
||||
},
|
||||
{
|
||||
name: 'Travel',
|
||||
url: '#',
|
||||
icon: LucideMap,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
type AppSidebarRootProps = Omit<ComponentProps<typeof Sidebar>, 'collapsible'>;
|
||||
@ -145,8 +141,7 @@ export const AppSidebar = (props: AppSidebarRootProps) => {
|
||||
<AppIcon />
|
||||
</SidebarHeader>
|
||||
<SidebarContent>
|
||||
<NavMain items={data.navMain} />
|
||||
<NavProjects projects={data.projects} />
|
||||
<NavMain groups={navMain} />
|
||||
</SidebarContent>
|
||||
<SidebarFooter>
|
||||
<NavUser user={data.user} />
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { ChevronRight, type LucideIcon } from 'lucide-solid';
|
||||
import { For } from 'solid-js';
|
||||
import { For, Show, createSignal } from 'solid-js';
|
||||
|
||||
import { useMatch, useMatches } from '@tanstack/solid-router';
|
||||
import {
|
||||
Collapsible,
|
||||
CollapsibleContent,
|
||||
@ -16,56 +17,105 @@ import {
|
||||
SidebarMenuSubButton,
|
||||
SidebarMenuSubItem,
|
||||
} from '~/components/ui/sidebar';
|
||||
import { ProLink, type ProLinkProps } from '../ui/pro-link';
|
||||
|
||||
export interface NavMainItem {
|
||||
link?: ProLinkProps;
|
||||
title: string;
|
||||
icon?: LucideIcon;
|
||||
children?: { title: string; link: ProLinkProps }[];
|
||||
}
|
||||
|
||||
export interface NavMainGroup {
|
||||
group: string;
|
||||
items: NavMainItem[];
|
||||
}
|
||||
|
||||
export function NavMain({
|
||||
items,
|
||||
groups,
|
||||
}: {
|
||||
items: {
|
||||
title: string;
|
||||
url: string;
|
||||
icon?: LucideIcon;
|
||||
isActive?: boolean;
|
||||
items?: {
|
||||
title: string;
|
||||
url: string;
|
||||
}[];
|
||||
}[];
|
||||
groups: NavMainGroup[];
|
||||
}) {
|
||||
const matches = useMatches();
|
||||
|
||||
const isMenuMatch = (link: ProLinkProps | undefined) => {
|
||||
const linkTo = link?.to;
|
||||
if (!linkTo) {
|
||||
return false;
|
||||
}
|
||||
return matches().some((match) => match.pathname.startsWith(linkTo));
|
||||
};
|
||||
|
||||
const renderSidebarMenuItemButton = (item: NavMainItem) => {
|
||||
return (
|
||||
<>
|
||||
{item.icon && <item.icon />}
|
||||
<span>{item.title}</span>
|
||||
<ChevronRight class="ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90" />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
return (
|
||||
<SidebarGroup>
|
||||
<SidebarGroupLabel>Platform</SidebarGroupLabel>
|
||||
<SidebarMenu>
|
||||
<For each={items}>
|
||||
{(item) => (
|
||||
<Collapsible
|
||||
as={SidebarMenuItem}
|
||||
defaultOpen={item.isActive}
|
||||
class="group/collapsible"
|
||||
>
|
||||
<SidebarMenuItem>
|
||||
<CollapsibleTrigger as={SidebarMenuButton} tooltip={item.title}>
|
||||
{item.icon && <item.icon />}
|
||||
<span>{item.title}</span>
|
||||
<ChevronRight class="ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90" />
|
||||
</CollapsibleTrigger>
|
||||
<CollapsibleContent>
|
||||
<SidebarMenuSub>
|
||||
<For each={item.items || []}>
|
||||
{(subItem) => (
|
||||
<SidebarMenuSubItem>
|
||||
<SidebarMenuSubButton as={'a'} href={subItem.url}>
|
||||
<span>{subItem.title}</span>
|
||||
</SidebarMenuSubButton>
|
||||
</SidebarMenuSubItem>
|
||||
)}
|
||||
</For>
|
||||
</SidebarMenuSub>
|
||||
</CollapsibleContent>
|
||||
</SidebarMenuItem>
|
||||
</Collapsible>
|
||||
)}
|
||||
</For>
|
||||
</SidebarMenu>
|
||||
</SidebarGroup>
|
||||
<For each={groups}>
|
||||
{(group) => (
|
||||
<SidebarGroup>
|
||||
<SidebarGroupLabel>{group.group}</SidebarGroupLabel>
|
||||
<SidebarMenu>
|
||||
<For each={group.items}>
|
||||
{(item) => {
|
||||
return (
|
||||
<Show
|
||||
when={!!item.children?.length}
|
||||
fallback={
|
||||
<SidebarMenuItem>
|
||||
<SidebarMenuButton
|
||||
as={ProLink}
|
||||
{...item.link}
|
||||
tooltip={item.title}
|
||||
>
|
||||
{renderSidebarMenuItemButton(item)}
|
||||
</SidebarMenuButton>
|
||||
</SidebarMenuItem>
|
||||
}
|
||||
>
|
||||
<Collapsible
|
||||
as={SidebarMenuItem}
|
||||
class="group/collapsible"
|
||||
defaultOpen={isMenuMatch(item.link)}
|
||||
>
|
||||
<CollapsibleTrigger
|
||||
as={SidebarMenuButton}
|
||||
tooltip={item.title}
|
||||
>
|
||||
{renderSidebarMenuItemButton(item)}
|
||||
</CollapsibleTrigger>
|
||||
<CollapsibleContent>
|
||||
<SidebarMenuSub>
|
||||
<For each={item.children || []}>
|
||||
{(subItem) => (
|
||||
<SidebarMenuSubItem>
|
||||
<SidebarMenuSubButton
|
||||
as={ProLink}
|
||||
{...subItem.link}
|
||||
isActive={isMenuMatch(subItem.link)}
|
||||
activeProps={{ class: '' }}
|
||||
>
|
||||
<span>{subItem.title}</span>
|
||||
</SidebarMenuSubButton>
|
||||
</SidebarMenuSubItem>
|
||||
)}
|
||||
</For>
|
||||
</SidebarMenuSub>
|
||||
</CollapsibleContent>
|
||||
</Collapsible>
|
||||
</Show>
|
||||
);
|
||||
}}
|
||||
</For>
|
||||
</SidebarMenu>
|
||||
</SidebarGroup>
|
||||
)}
|
||||
</For>
|
||||
);
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
import { Link } from '@tanstack/solid-router';
|
||||
import {
|
||||
Folder,
|
||||
Forward,
|
||||
@ -5,7 +6,7 @@ import {
|
||||
MoreHorizontal,
|
||||
Trash2,
|
||||
} from 'lucide-solid';
|
||||
import { For } from 'solid-js';
|
||||
import { type ComponentProps, For } from 'solid-js';
|
||||
|
||||
import {
|
||||
DropdownMenu,
|
||||
@ -28,8 +29,8 @@ export function NavProjects({
|
||||
}: {
|
||||
projects: {
|
||||
name: string;
|
||||
url: string;
|
||||
icon: LucideIcon;
|
||||
link: ComponentProps<typeof Link>;
|
||||
}[];
|
||||
}) {
|
||||
return (
|
||||
@ -39,7 +40,7 @@ export function NavProjects({
|
||||
<For each={projects}>
|
||||
{(item) => (
|
||||
<SidebarMenuItem>
|
||||
<SidebarMenuButton as="a" href={item.url}>
|
||||
<SidebarMenuButton as={Link} {...item?.link}>
|
||||
<item.icon />
|
||||
<span>{item.name}</span>
|
||||
</SidebarMenuButton>
|
||||
|
@ -21,7 +21,6 @@ import {
|
||||
SidebarMenu,
|
||||
SidebarMenuButton,
|
||||
SidebarMenuItem,
|
||||
useSidebar,
|
||||
} from '~/components/ui/sidebar';
|
||||
|
||||
export function NavUser({
|
||||
@ -33,8 +32,6 @@ export function NavUser({
|
||||
avatar: string;
|
||||
};
|
||||
}) {
|
||||
const { isMobile } = useSidebar();
|
||||
|
||||
return (
|
||||
<SidebarMenu>
|
||||
<SidebarMenuItem>
|
||||
@ -54,11 +51,7 @@ export function NavUser({
|
||||
</div>
|
||||
<ChevronsUpDown class="ml-auto size-4" />
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent
|
||||
class="w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg"
|
||||
align="end"
|
||||
sideOffset={4}
|
||||
>
|
||||
<DropdownMenuContent class="w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg">
|
||||
<DropdownMenuLabel class="p-0 font-normal">
|
||||
<div class="flex items-center gap-2 px-1 py-1.5 text-left text-sm">
|
||||
<Avatar class="h-8 w-8 rounded-lg">
|
||||
|
23
apps/webui/src/components/ui/pro-link.tsx
Normal file
23
apps/webui/src/components/ui/pro-link.tsx
Normal file
@ -0,0 +1,23 @@
|
||||
import { type LinkComponent, createLink } from '@tanstack/solid-router';
|
||||
import { type Component, type ComponentProps, type JSX, Show } from 'solid-js';
|
||||
|
||||
type BasicLinkProps = JSX.IntrinsicElements['a'];
|
||||
|
||||
const BasicLinkComponent: Component<BasicLinkProps> = (props) => (
|
||||
<a {...props}>{props.children}</a>
|
||||
);
|
||||
|
||||
const CreatedLinkComponent = createLink(BasicLinkComponent);
|
||||
|
||||
export const ProLink: LinkComponent<typeof BasicLinkComponent> = (props) => {
|
||||
return (
|
||||
<Show
|
||||
when={props.href}
|
||||
fallback={<CreatedLinkComponent preload={'intent'} {...props} />}
|
||||
>
|
||||
<BasicLinkComponent {...(props as any)} />
|
||||
</Show>
|
||||
);
|
||||
};
|
||||
|
||||
export type ProLinkProps = ComponentProps<typeof ProLink>;
|
@ -1,133 +1,150 @@
|
||||
import type { Accessor, Component, ComponentProps, JSX, ValidComponent } from "solid-js"
|
||||
import type {
|
||||
Accessor,
|
||||
Component,
|
||||
ComponentProps,
|
||||
JSX,
|
||||
ValidComponent,
|
||||
} from 'solid-js';
|
||||
import {
|
||||
Match,
|
||||
Show,
|
||||
Switch,
|
||||
createContext,
|
||||
createEffect,
|
||||
createMemo,
|
||||
createSignal,
|
||||
Match,
|
||||
mergeProps,
|
||||
onCleanup,
|
||||
Show,
|
||||
splitProps,
|
||||
Switch,
|
||||
useContext
|
||||
} from "solid-js"
|
||||
useContext,
|
||||
} from 'solid-js';
|
||||
|
||||
import type { PolymorphicProps } from "@kobalte/core"
|
||||
import { Polymorphic } from "@kobalte/core"
|
||||
import type { VariantProps } from "class-variance-authority"
|
||||
import { cva } from "class-variance-authority"
|
||||
import type { PolymorphicProps } from '@kobalte/core';
|
||||
import { Polymorphic } from '@kobalte/core';
|
||||
import type { VariantProps } from 'class-variance-authority';
|
||||
import { cva } from 'class-variance-authority';
|
||||
|
||||
import { cn } from "~/styles/utils"
|
||||
import type { ButtonProps } from "~/components/ui/button"
|
||||
import { Button } from "~/components/ui/button"
|
||||
import { Separator } from "~/components/ui/separator"
|
||||
import { Sheet, SheetContent } from "~/components/ui/sheet"
|
||||
import { Skeleton } from "~/components/ui/skeleton"
|
||||
import { TextField, TextFieldInput } from "~/components/ui/text-field"
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from "~/components/ui/tooltip"
|
||||
import type { ButtonProps } from '~/components/ui/button';
|
||||
import { Button } from '~/components/ui/button';
|
||||
import { Separator } from '~/components/ui/separator';
|
||||
import { Sheet, SheetContent } from '~/components/ui/sheet';
|
||||
import { Skeleton } from '~/components/ui/skeleton';
|
||||
import { TextField, TextFieldInput } from '~/components/ui/text-field';
|
||||
import {
|
||||
Tooltip,
|
||||
TooltipContent,
|
||||
TooltipTrigger,
|
||||
} from '~/components/ui/tooltip';
|
||||
import { cn } from '~/styles/utils';
|
||||
|
||||
const MOBILE_BREAKPOINT = 768
|
||||
const SIDEBAR_COOKIE_NAME = "sidebar:state"
|
||||
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7
|
||||
const SIDEBAR_WIDTH = "16rem"
|
||||
const SIDEBAR_WIDTH_MOBILE = "18rem"
|
||||
const SIDEBAR_WIDTH_ICON = "3rem"
|
||||
const SIDEBAR_KEYBOARD_SHORTCUT = "b"
|
||||
const MOBILE_BREAKPOINT = 768;
|
||||
const SIDEBAR_COOKIE_NAME = 'sidebar:state';
|
||||
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
||||
const SIDEBAR_WIDTH = '16rem';
|
||||
const SIDEBAR_WIDTH_MOBILE = '18rem';
|
||||
const SIDEBAR_WIDTH_ICON = '3rem';
|
||||
const SIDEBAR_KEYBOARD_SHORTCUT = 'b';
|
||||
|
||||
type SidebarContext = {
|
||||
state: Accessor<"expanded" | "collapsed">
|
||||
open: Accessor<boolean>
|
||||
setOpen: (open: boolean) => void
|
||||
openMobile: Accessor<boolean>
|
||||
setOpenMobile: (open: boolean) => void
|
||||
isMobile: Accessor<boolean>
|
||||
toggleSidebar: () => void
|
||||
}
|
||||
state: Accessor<'expanded' | 'collapsed'>;
|
||||
open: Accessor<boolean>;
|
||||
setOpen: (open: boolean) => void;
|
||||
openMobile: Accessor<boolean>;
|
||||
setOpenMobile: (open: boolean) => void;
|
||||
isMobile: Accessor<boolean>;
|
||||
toggleSidebar: () => void;
|
||||
};
|
||||
|
||||
const SidebarContext = createContext<SidebarContext | null>(null)
|
||||
const SidebarContext = createContext<SidebarContext | null>(null);
|
||||
|
||||
function useSidebar() {
|
||||
const context = useContext(SidebarContext)
|
||||
const context = useContext(SidebarContext);
|
||||
if (!context) {
|
||||
throw new Error("useSidebar must be used within a Sidebar.")
|
||||
throw new Error('useSidebar must be used within a Sidebar.');
|
||||
}
|
||||
|
||||
return context
|
||||
return context;
|
||||
}
|
||||
|
||||
export function useIsMobile(fallback = false) {
|
||||
const [isMobile, setIsMobile] = createSignal(fallback)
|
||||
const [isMobile, setIsMobile] = createSignal(fallback);
|
||||
|
||||
createEffect(() => {
|
||||
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)
|
||||
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
||||
const onChange = (e: MediaQueryListEvent | MediaQueryList) => {
|
||||
setIsMobile(e.matches)
|
||||
}
|
||||
mql.addEventListener("change", onChange)
|
||||
onChange(mql)
|
||||
onCleanup(() => mql.removeEventListener("change", onChange))
|
||||
})
|
||||
setIsMobile(e.matches);
|
||||
};
|
||||
mql.addEventListener('change', onChange);
|
||||
onChange(mql);
|
||||
onCleanup(() => mql.removeEventListener('change', onChange));
|
||||
});
|
||||
|
||||
return isMobile
|
||||
return isMobile;
|
||||
}
|
||||
|
||||
type SidebarProviderProps = Omit<ComponentProps<"div">, "style"> & {
|
||||
defaultOpen?: boolean
|
||||
open?: boolean
|
||||
onOpenChange?: (open: boolean) => void
|
||||
style?: JSX.CSSProperties
|
||||
}
|
||||
type SidebarProviderProps = Omit<ComponentProps<'div'>, 'style'> & {
|
||||
defaultOpen?: boolean;
|
||||
open?: boolean;
|
||||
onOpenChange?: (open: boolean) => void;
|
||||
style?: JSX.CSSProperties;
|
||||
};
|
||||
|
||||
const SidebarProvider: Component<SidebarProviderProps> = (rawProps) => {
|
||||
const props = mergeProps({ defaultOpen: true }, rawProps)
|
||||
const props = mergeProps({ defaultOpen: true }, rawProps);
|
||||
const [local, others] = splitProps(props, [
|
||||
"defaultOpen",
|
||||
"open",
|
||||
"onOpenChange",
|
||||
"class",
|
||||
"style",
|
||||
"children"
|
||||
])
|
||||
'defaultOpen',
|
||||
'open',
|
||||
'onOpenChange',
|
||||
'class',
|
||||
'style',
|
||||
'children',
|
||||
]);
|
||||
|
||||
const isMobile = useIsMobile()
|
||||
const [openMobile, setOpenMobile] = createSignal(false)
|
||||
const isMobile = useIsMobile();
|
||||
const [openMobile, setOpenMobile] = createSignal(false);
|
||||
|
||||
// This is the internal state of the sidebar.
|
||||
// We use open and onOpenChange for control from outside the component.
|
||||
const [_open, _setOpen] = createSignal(local.defaultOpen)
|
||||
const open = () => local.open ?? _open()
|
||||
const [_open, _setOpen] = createSignal(local.defaultOpen);
|
||||
const open = () => local.open ?? _open();
|
||||
const setOpen = (value: boolean | ((value: boolean) => boolean)) => {
|
||||
if (local.onOpenChange) {
|
||||
return local.onOpenChange?.(typeof value === "function" ? value(open()) : value)
|
||||
return local.onOpenChange?.(
|
||||
typeof value === 'function' ? value(open()) : value
|
||||
);
|
||||
}
|
||||
_setOpen(value)
|
||||
_setOpen(value);
|
||||
|
||||
// This sets the cookie to keep the sidebar state.
|
||||
document.cookie = `${SIDEBAR_COOKIE_NAME}=${open()}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`
|
||||
}
|
||||
document.cookie = `${SIDEBAR_COOKIE_NAME}=${open()}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
|
||||
};
|
||||
|
||||
// Helper to toggle the sidebar.
|
||||
const toggleSidebar = () => {
|
||||
return isMobile() ? setOpenMobile((open) => !open) : setOpen((open) => !open)
|
||||
}
|
||||
return isMobile()
|
||||
? setOpenMobile((open) => !open)
|
||||
: setOpen((open) => !open);
|
||||
};
|
||||
|
||||
// Adds a keyboard shortcut to toggle the sidebar.
|
||||
createEffect(() => {
|
||||
const handleKeyDown = (event: KeyboardEvent) => {
|
||||
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
||||
event.preventDefault()
|
||||
toggleSidebar()
|
||||
if (
|
||||
event.key === SIDEBAR_KEYBOARD_SHORTCUT &&
|
||||
(event.metaKey || event.ctrlKey)
|
||||
) {
|
||||
event.preventDefault();
|
||||
toggleSidebar();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
window.addEventListener("keydown", handleKeyDown)
|
||||
onCleanup(() => window.removeEventListener("keydown", handleKeyDown))
|
||||
})
|
||||
window.addEventListener('keydown', handleKeyDown);
|
||||
onCleanup(() => window.removeEventListener('keydown', handleKeyDown));
|
||||
});
|
||||
|
||||
// We add a state so that we can do data-state="expanded" or "collapsed".
|
||||
// This makes it easier to style the sidebar with Tailwind classes.
|
||||
const state = () => (open() ? "expanded" : "collapsed")
|
||||
const state = () => (open() ? 'expanded' : 'collapsed');
|
||||
|
||||
const contextValue = {
|
||||
state,
|
||||
@ -136,19 +153,19 @@ const SidebarProvider: Component<SidebarProviderProps> = (rawProps) => {
|
||||
isMobile,
|
||||
openMobile,
|
||||
setOpenMobile,
|
||||
toggleSidebar
|
||||
}
|
||||
toggleSidebar,
|
||||
};
|
||||
|
||||
return (
|
||||
<SidebarContext.Provider value={contextValue}>
|
||||
<div
|
||||
style={{
|
||||
"--sidebar-width": SIDEBAR_WIDTH,
|
||||
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
||||
...local.style
|
||||
'--sidebar-width': SIDEBAR_WIDTH,
|
||||
'--sidebar-width-icon': SIDEBAR_WIDTH_ICON,
|
||||
...local.style,
|
||||
}}
|
||||
class={cn(
|
||||
"group/sidebar-wrapper flex min-h-svh w-full text-sidebar-foreground has-[[data-variant=inset]]:bg-sidebar",
|
||||
'group/sidebar-wrapper flex min-h-svh w-full text-sidebar-foreground has-[[data-variant=inset]]:bg-sidebar',
|
||||
local.class
|
||||
)}
|
||||
{...others}
|
||||
@ -156,34 +173,40 @@ const SidebarProvider: Component<SidebarProviderProps> = (rawProps) => {
|
||||
{local.children}
|
||||
</div>
|
||||
</SidebarContext.Provider>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
type SidebarProps = ComponentProps<"div"> & {
|
||||
side?: "left" | "right"
|
||||
variant?: "sidebar" | "floating" | "inset"
|
||||
collapsible?: "offcanvas" | "icon" | "none"
|
||||
}
|
||||
type SidebarProps = ComponentProps<'div'> & {
|
||||
side?: 'left' | 'right';
|
||||
variant?: 'sidebar' | 'floating' | 'inset';
|
||||
collapsible?: 'offcanvas' | 'icon' | 'none';
|
||||
};
|
||||
|
||||
const Sidebar: Component<SidebarProps> = (rawProps) => {
|
||||
const props = mergeProps<SidebarProps[]>(
|
||||
{
|
||||
side: "left",
|
||||
variant: "sidebar",
|
||||
collapsible: "offcanvas"
|
||||
side: 'left',
|
||||
variant: 'sidebar',
|
||||
collapsible: 'offcanvas',
|
||||
},
|
||||
rawProps
|
||||
)
|
||||
const [local, others] = splitProps(props, ["side", "variant", "collapsible", "class", "children"])
|
||||
);
|
||||
const [local, others] = splitProps(props, [
|
||||
'side',
|
||||
'variant',
|
||||
'collapsible',
|
||||
'class',
|
||||
'children',
|
||||
]);
|
||||
|
||||
const { isMobile, state, openMobile, setOpenMobile } = useSidebar()
|
||||
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
||||
|
||||
return (
|
||||
<Switch>
|
||||
<Match when={local.collapsible === "none"}>
|
||||
<Match when={local.collapsible === 'none'}>
|
||||
<div
|
||||
class={cn(
|
||||
"test flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",
|
||||
'test flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground',
|
||||
local.class
|
||||
)}
|
||||
{...others}
|
||||
@ -198,7 +221,7 @@ const Sidebar: Component<SidebarProps> = (rawProps) => {
|
||||
data-mobile="true"
|
||||
class="w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden"
|
||||
style={{
|
||||
"--sidebar-width": SIDEBAR_WIDTH_MOBILE
|
||||
'--sidebar-width': SIDEBAR_WIDTH_MOBILE,
|
||||
}}
|
||||
position={local.side}
|
||||
>
|
||||
@ -210,31 +233,31 @@ const Sidebar: Component<SidebarProps> = (rawProps) => {
|
||||
<div
|
||||
class="group peer hidden md:block"
|
||||
data-state={state()}
|
||||
data-collapsible={state() === "collapsed" ? local.collapsible : ""}
|
||||
data-collapsible={state() === 'collapsed' ? local.collapsible : ''}
|
||||
data-variant={local.variant}
|
||||
data-side={local.side}
|
||||
>
|
||||
{/* This is what handles the sidebar gap on desktop */}
|
||||
<div
|
||||
class={cn(
|
||||
"relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear",
|
||||
"group-data-[collapsible=offcanvas]:w-0",
|
||||
"group-data-[side=right]:rotate-180",
|
||||
local.variant === "floating" || local.variant === "inset"
|
||||
? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]"
|
||||
: "group-data-[collapsible=icon]:w-[--sidebar-width-icon]"
|
||||
'relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear',
|
||||
'group-data-[collapsible=offcanvas]:w-0',
|
||||
'group-data-[side=right]:rotate-180',
|
||||
local.variant === 'floating' || local.variant === 'inset'
|
||||
? 'group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]'
|
||||
: 'group-data-[collapsible=icon]:w-[--sidebar-width-icon]'
|
||||
)}
|
||||
/>
|
||||
<div
|
||||
class={cn(
|
||||
"fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",
|
||||
local.side === "left"
|
||||
? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]"
|
||||
: "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
||||
'fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex',
|
||||
local.side === 'left'
|
||||
? 'left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]'
|
||||
: 'right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]',
|
||||
// Adjust the padding for floating and inset variants.
|
||||
local.variant === "floating" || local.variant === "inset"
|
||||
? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]"
|
||||
: "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
||||
local.variant === 'floating' || local.variant === 'inset'
|
||||
? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]'
|
||||
: 'group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l',
|
||||
local.class
|
||||
)}
|
||||
{...others}
|
||||
@ -249,26 +272,32 @@ const Sidebar: Component<SidebarProps> = (rawProps) => {
|
||||
</div>
|
||||
</Match>
|
||||
</Switch>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
type SidebarTriggerProps<T extends ValidComponent = "button"> = ButtonProps<T> & {
|
||||
onClick?: (event: MouseEvent) => void
|
||||
}
|
||||
type SidebarTriggerProps<T extends ValidComponent = 'button'> =
|
||||
ButtonProps<T> & {
|
||||
onClick?: (event: MouseEvent) => void;
|
||||
};
|
||||
|
||||
const SidebarTrigger = <T extends ValidComponent = "button">(props: SidebarTriggerProps<T>) => {
|
||||
const [local, others] = splitProps(props as SidebarTriggerProps, ["class", "onClick"])
|
||||
const { toggleSidebar } = useSidebar()
|
||||
const SidebarTrigger = <T extends ValidComponent = 'button'>(
|
||||
props: SidebarTriggerProps<T>
|
||||
) => {
|
||||
const [local, others] = splitProps(props as SidebarTriggerProps, [
|
||||
'class',
|
||||
'onClick',
|
||||
]);
|
||||
const { toggleSidebar } = useSidebar();
|
||||
|
||||
return (
|
||||
<Button
|
||||
data-sidebar="trigger"
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
class={cn("size-7", local.class)}
|
||||
class={cn('size-7', local.class)}
|
||||
onClick={(event: MouseEvent) => {
|
||||
local.onClick?.(event)
|
||||
toggleSidebar()
|
||||
local.onClick?.(event);
|
||||
toggleSidebar();
|
||||
}}
|
||||
{...others}
|
||||
>
|
||||
@ -286,12 +315,12 @@ const SidebarTrigger = <T extends ValidComponent = "button">(props: SidebarTrigg
|
||||
</svg>
|
||||
<span class="sr-only">Toggle Sidebar</span>
|
||||
</Button>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
const SidebarRail: Component<ComponentProps<"button">> = (props) => {
|
||||
const [local, others] = splitProps(props, ["class"])
|
||||
const { toggleSidebar } = useSidebar()
|
||||
const SidebarRail: Component<ComponentProps<'button'>> = (props) => {
|
||||
const [local, others] = splitProps(props, ['class']);
|
||||
const { toggleSidebar } = useSidebar();
|
||||
|
||||
return (
|
||||
<button
|
||||
@ -301,211 +330,245 @@ const SidebarRail: Component<ComponentProps<"button">> = (props) => {
|
||||
onClick={toggleSidebar}
|
||||
title="Toggle Sidebar"
|
||||
class={cn(
|
||||
"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
|
||||
"[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",
|
||||
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
||||
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar",
|
||||
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
|
||||
"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
|
||||
'-translate-x-1/2 group-data-[side=left]:-right-4 absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=right]:left-0 sm:flex',
|
||||
'[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize',
|
||||
'[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize',
|
||||
'group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:hover:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full',
|
||||
'[[data-side=left][data-collapsible=offcanvas]_&]:-right-2',
|
||||
'[[data-side=right][data-collapsible=offcanvas]_&]:-left-2',
|
||||
local.class
|
||||
)}
|
||||
{...others}
|
||||
/>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
const SidebarInset: Component<ComponentProps<"main">> = (props) => {
|
||||
const [local, others] = splitProps(props, ["class"])
|
||||
const SidebarInset: Component<ComponentProps<'main'>> = (props) => {
|
||||
const [local, others] = splitProps(props, ['class']);
|
||||
return (
|
||||
<main
|
||||
class={cn(
|
||||
"relative flex min-h-svh flex-1 flex-col bg-background",
|
||||
"peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",
|
||||
'relative flex min-h-svh flex-1 flex-col bg-background',
|
||||
'peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow',
|
||||
local.class
|
||||
)}
|
||||
{...others}
|
||||
/>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
type SidebarInputProps<T extends ValidComponent = "input"> = ComponentProps<
|
||||
type SidebarInputProps<T extends ValidComponent = 'input'> = ComponentProps<
|
||||
typeof TextFieldInput<T>
|
||||
>
|
||||
>;
|
||||
|
||||
const SidebarInput = <T extends ValidComponent = "input">(props: SidebarInputProps<T>) => {
|
||||
const [local, others] = splitProps(props as SidebarInputProps, ["class"])
|
||||
const SidebarInput = <T extends ValidComponent = 'input'>(
|
||||
props: SidebarInputProps<T>
|
||||
) => {
|
||||
const [local, others] = splitProps(props as SidebarInputProps, ['class']);
|
||||
return (
|
||||
<TextField>
|
||||
<TextFieldInput
|
||||
data-sidebar="input"
|
||||
class={cn(
|
||||
"h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
|
||||
'h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring',
|
||||
local.class
|
||||
)}
|
||||
{...others}
|
||||
/>
|
||||
</TextField>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
const SidebarHeader: Component<ComponentProps<"div">> = (props) => {
|
||||
const [local, others] = splitProps(props, ["class"])
|
||||
const SidebarHeader: Component<ComponentProps<'div'>> = (props) => {
|
||||
const [local, others] = splitProps(props, ['class']);
|
||||
return (
|
||||
<div data-sidebar="header" class={cn("flex flex-col gap-2 p-2", local.class)} {...others} />
|
||||
)
|
||||
}
|
||||
<div
|
||||
data-sidebar="header"
|
||||
class={cn('flex flex-col gap-2 p-2', local.class)}
|
||||
{...others}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
const SidebarFooter: Component<ComponentProps<"div">> = (props) => {
|
||||
const [local, others] = splitProps(props, ["class"])
|
||||
const SidebarFooter: Component<ComponentProps<'div'>> = (props) => {
|
||||
const [local, others] = splitProps(props, ['class']);
|
||||
return (
|
||||
<div data-sidebar="footer" class={cn("flex flex-col gap-2 p-2", local.class)} {...others} />
|
||||
)
|
||||
}
|
||||
<div
|
||||
data-sidebar="footer"
|
||||
class={cn('flex flex-col gap-2 p-2', local.class)}
|
||||
{...others}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
type SidebarSeparatorProps<T extends ValidComponent = "hr"> = ComponentProps<typeof Separator<T>>
|
||||
type SidebarSeparatorProps<T extends ValidComponent = 'hr'> = ComponentProps<
|
||||
typeof Separator<T>
|
||||
>;
|
||||
|
||||
const SidebarSeparator = <T extends ValidComponent = "hr">(props: SidebarSeparatorProps<T>) => {
|
||||
const [local, others] = splitProps(props as SidebarSeparatorProps, ["class"])
|
||||
const SidebarSeparator = <T extends ValidComponent = 'hr'>(
|
||||
props: SidebarSeparatorProps<T>
|
||||
) => {
|
||||
const [local, others] = splitProps(props as SidebarSeparatorProps, ['class']);
|
||||
return (
|
||||
<Separator
|
||||
data-sidebar="separator"
|
||||
class={cn("mx-2 w-auto bg-sidebar-border", local.class)}
|
||||
class={cn('mx-2 w-auto bg-sidebar-border', local.class)}
|
||||
{...others}
|
||||
/>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
const SidebarContent: Component<ComponentProps<"div">> = (props) => {
|
||||
const [local, others] = splitProps(props, ["class"])
|
||||
const SidebarContent: Component<ComponentProps<'div'>> = (props) => {
|
||||
const [local, others] = splitProps(props, ['class']);
|
||||
return (
|
||||
<div
|
||||
data-sidebar="content"
|
||||
class={cn(
|
||||
"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
||||
'flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden',
|
||||
local.class
|
||||
)}
|
||||
{...others}
|
||||
/>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
const SidebarGroup: Component<ComponentProps<"div">> = (props) => {
|
||||
const [local, others] = splitProps(props, ["class"])
|
||||
const SidebarGroup: Component<ComponentProps<'div'>> = (props) => {
|
||||
const [local, others] = splitProps(props, ['class']);
|
||||
return (
|
||||
<div
|
||||
data-sidebar="group"
|
||||
class={cn("relative flex w-full min-w-0 flex-col p-2", local.class)}
|
||||
class={cn('relative flex w-full min-w-0 flex-col p-2', local.class)}
|
||||
{...others}
|
||||
/>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
type SidebarGroupLabelProps<T extends ValidComponent = "div"> = ComponentProps<T>
|
||||
type SidebarGroupLabelProps<T extends ValidComponent = 'div'> =
|
||||
ComponentProps<T>;
|
||||
|
||||
const SidebarGroupLabel = <T extends ValidComponent = "div">(
|
||||
const SidebarGroupLabel = <T extends ValidComponent = 'div'>(
|
||||
props: PolymorphicProps<T, SidebarGroupLabelProps<T>>
|
||||
) => {
|
||||
const [local, others] = splitProps(props as SidebarGroupLabelProps, ["class"])
|
||||
const [local, others] = splitProps(props as SidebarGroupLabelProps, [
|
||||
'class',
|
||||
]);
|
||||
|
||||
return (
|
||||
<Polymorphic<SidebarGroupLabelProps>
|
||||
as="div"
|
||||
data-sidebar="group-label"
|
||||
class={cn(
|
||||
"flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
||||
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
||||
'flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-none ring-sidebar-ring transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
|
||||
'group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0',
|
||||
local.class
|
||||
)}
|
||||
{...others}
|
||||
/>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
type SidebarGroupActionProps<T extends ValidComponent = "button"> = ComponentProps<T>
|
||||
type SidebarGroupActionProps<T extends ValidComponent = 'button'> =
|
||||
ComponentProps<T>;
|
||||
|
||||
const SidebarGroupAction = <T extends ValidComponent = "button">(
|
||||
const SidebarGroupAction = <T extends ValidComponent = 'button'>(
|
||||
props: PolymorphicProps<T, SidebarGroupActionProps<T>>
|
||||
) => {
|
||||
const [local, others] = splitProps(props as SidebarGroupActionProps, ["class"])
|
||||
const [local, others] = splitProps(props as SidebarGroupActionProps, [
|
||||
'class',
|
||||
]);
|
||||
return (
|
||||
<Polymorphic<SidebarGroupActionProps>
|
||||
as="button"
|
||||
data-sidebar="group-action"
|
||||
class={cn(
|
||||
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
||||
'absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
|
||||
// Increases the hit area of the button on mobile.
|
||||
"after:absolute after:-inset-2 after:md:hidden",
|
||||
"group-data-[collapsible=icon]:hidden",
|
||||
'after:-inset-2 after:absolute after:md:hidden',
|
||||
'group-data-[collapsible=icon]:hidden',
|
||||
local.class
|
||||
)}
|
||||
{...others}
|
||||
/>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
const SidebarGroupContent: Component<ComponentProps<"div">> = (props) => {
|
||||
const [local, others] = splitProps(props, ["class"])
|
||||
return <div data-sidebar="group-content" class={cn("w-full text-sm", local.class)} {...others} />
|
||||
}
|
||||
const SidebarGroupContent: Component<ComponentProps<'div'>> = (props) => {
|
||||
const [local, others] = splitProps(props, ['class']);
|
||||
return (
|
||||
<div
|
||||
data-sidebar="group-content"
|
||||
class={cn('w-full text-sm', local.class)}
|
||||
{...others}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
const SidebarMenu: Component<ComponentProps<"ul">> = (props) => {
|
||||
const [local, others] = splitProps(props, ["class"])
|
||||
const SidebarMenu: Component<ComponentProps<'ul'>> = (props) => {
|
||||
const [local, others] = splitProps(props, ['class']);
|
||||
return (
|
||||
<ul
|
||||
data-sidebar="menu"
|
||||
class={cn("flex w-full min-w-0 flex-col gap-1", local.class)}
|
||||
class={cn('flex w-full min-w-0 flex-col gap-1', local.class)}
|
||||
{...others}
|
||||
/>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
const SidebarMenuItem: Component<ComponentProps<"li">> = (props) => {
|
||||
const [local, others] = splitProps(props, ["class"])
|
||||
const SidebarMenuItem: Component<ComponentProps<'li'>> = (props) => {
|
||||
const [local, others] = splitProps(props, ['class']);
|
||||
return (
|
||||
<li data-sidebar="menu-item" class={cn("group/menu-item relative", local.class)} {...others} />
|
||||
)
|
||||
}
|
||||
<li
|
||||
data-sidebar="menu-item"
|
||||
class={cn('group/menu-item relative', local.class)}
|
||||
{...others}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
const sidebarMenuButtonVariants = cva(
|
||||
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
||||
'peer/menu-button group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0',
|
||||
{
|
||||
variants: {
|
||||
variant: {
|
||||
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
||||
default: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',
|
||||
outline:
|
||||
"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
|
||||
'bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]',
|
||||
},
|
||||
size: {
|
||||
default: "h-8 text-sm",
|
||||
sm: "h-7 text-xs",
|
||||
lg: "h-12 text-sm group-data-[collapsible=icon]:!p-0"
|
||||
}
|
||||
default: 'h-8 text-sm',
|
||||
sm: 'h-7 text-xs',
|
||||
lg: 'group-data-[collapsible=icon]:!p-0 h-12 text-sm',
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
variant: "default",
|
||||
size: "default"
|
||||
}
|
||||
variant: 'default',
|
||||
size: 'default',
|
||||
},
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
type SidebarMenuButtonProps<T extends ValidComponent = "button"> = ComponentProps<T> &
|
||||
VariantProps<typeof sidebarMenuButtonVariants> & {
|
||||
isActive?: boolean
|
||||
tooltip?: string
|
||||
}
|
||||
type SidebarMenuButtonProps<T extends ValidComponent = 'button'> =
|
||||
ComponentProps<T> &
|
||||
VariantProps<typeof sidebarMenuButtonVariants> & {
|
||||
isActive?: boolean;
|
||||
tooltip?: string;
|
||||
};
|
||||
|
||||
const SidebarMenuButton = <T extends ValidComponent = "button">(
|
||||
const SidebarMenuButton = <T extends ValidComponent = 'button'>(
|
||||
rawProps: PolymorphicProps<T, SidebarMenuButtonProps<T>>
|
||||
) => {
|
||||
const props = mergeProps({ isActive: false, variant: "default", size: "default" }, rawProps)
|
||||
const props = mergeProps(
|
||||
{ isActive: false, variant: 'default', size: 'default' },
|
||||
rawProps
|
||||
);
|
||||
const [local, others] = splitProps(props as SidebarMenuButtonProps, [
|
||||
"isActive",
|
||||
"tooltip",
|
||||
"variant",
|
||||
"size",
|
||||
"class"
|
||||
])
|
||||
const { isMobile, state } = useSidebar()
|
||||
'isActive',
|
||||
'tooltip',
|
||||
'variant',
|
||||
'size',
|
||||
'class',
|
||||
]);
|
||||
const { isMobile, state } = useSidebar();
|
||||
|
||||
const button = (
|
||||
<Polymorphic<SidebarMenuButtonProps>
|
||||
@ -519,130 +582,139 @@ const SidebarMenuButton = <T extends ValidComponent = "button">(
|
||||
)}
|
||||
{...others}
|
||||
/>
|
||||
)
|
||||
);
|
||||
|
||||
return (
|
||||
<Show when={local.tooltip} fallback={button}>
|
||||
<Tooltip placement="right">
|
||||
<TooltipTrigger class="w-full">{button}</TooltipTrigger>
|
||||
<TooltipContent hidden={state() !== "collapsed" || isMobile()}>
|
||||
<TooltipContent hidden={state() !== 'collapsed' || isMobile()}>
|
||||
{local.tooltip}
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
</Show>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
type SidebarMenuActionProps<T extends ValidComponent = "button"> = ComponentProps<T> & {
|
||||
showOnHover?: boolean
|
||||
}
|
||||
type SidebarMenuActionProps<T extends ValidComponent = 'button'> =
|
||||
ComponentProps<T> & {
|
||||
showOnHover?: boolean;
|
||||
};
|
||||
|
||||
const SidebarMenuAction = <T extends ValidComponent = "button">(
|
||||
const SidebarMenuAction = <T extends ValidComponent = 'button'>(
|
||||
rawProps: PolymorphicProps<T, SidebarMenuActionProps<T>>
|
||||
) => {
|
||||
const props = mergeProps({ showOnHover: false }, rawProps)
|
||||
const [local, others] = splitProps(props as SidebarMenuActionProps, ["class", "showOnHover"])
|
||||
const props = mergeProps({ showOnHover: false }, rawProps);
|
||||
const [local, others] = splitProps(props as SidebarMenuActionProps, [
|
||||
'class',
|
||||
'showOnHover',
|
||||
]);
|
||||
|
||||
return (
|
||||
<Polymorphic<SidebarMenuActionProps>
|
||||
as="button"
|
||||
data-sidebar="menu-action"
|
||||
class={cn(
|
||||
"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0",
|
||||
'absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0',
|
||||
// Increases the hit area of the button on mobile.
|
||||
"after:absolute after:-inset-2 after:md:hidden",
|
||||
"peer-data-[size=sm]/menu-button:top-1",
|
||||
"peer-data-[size=default]/menu-button:top-1.5",
|
||||
"peer-data-[size=lg]/menu-button:top-2.5",
|
||||
"group-data-[collapsible=icon]:hidden",
|
||||
'after:-inset-2 after:absolute after:md:hidden',
|
||||
'peer-data-[size=sm]/menu-button:top-1',
|
||||
'peer-data-[size=default]/menu-button:top-1.5',
|
||||
'peer-data-[size=lg]/menu-button:top-2.5',
|
||||
'group-data-[collapsible=icon]:hidden',
|
||||
local.showOnHover &&
|
||||
"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",
|
||||
'group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0',
|
||||
local.class
|
||||
)}
|
||||
{...others}
|
||||
/>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
const SidebarMenuBadge: Component<ComponentProps<"div">> = (props) => {
|
||||
const [local, others] = splitProps(props, ["class"])
|
||||
const SidebarMenuBadge: Component<ComponentProps<'div'>> = (props) => {
|
||||
const [local, others] = splitProps(props, ['class']);
|
||||
return (
|
||||
<div
|
||||
data-sidebar="menu-badge"
|
||||
class={cn(
|
||||
"pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground",
|
||||
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
||||
"peer-data-[size=sm]/menu-button:top-1",
|
||||
"peer-data-[size=default]/menu-button:top-1.5",
|
||||
"peer-data-[size=lg]/menu-button:top-2.5",
|
||||
"group-data-[collapsible=icon]:hidden",
|
||||
'pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 font-medium text-sidebar-foreground text-xs tabular-nums',
|
||||
'peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground',
|
||||
'peer-data-[size=sm]/menu-button:top-1',
|
||||
'peer-data-[size=default]/menu-button:top-1.5',
|
||||
'peer-data-[size=lg]/menu-button:top-2.5',
|
||||
'group-data-[collapsible=icon]:hidden',
|
||||
local.class
|
||||
)}
|
||||
{...others}
|
||||
/>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
type SidebarMenuSkeletonProps = ComponentProps<"div"> & {
|
||||
showIcon?: boolean
|
||||
}
|
||||
type SidebarMenuSkeletonProps = ComponentProps<'div'> & {
|
||||
showIcon?: boolean;
|
||||
};
|
||||
|
||||
const SidebarMenuSkeleton: Component<SidebarMenuSkeletonProps> = (rawProps) => {
|
||||
const props = mergeProps({ showIcon: false }, rawProps)
|
||||
const [local, others] = splitProps(props, ["class", "showIcon"])
|
||||
const props = mergeProps({ showIcon: false }, rawProps);
|
||||
const [local, others] = splitProps(props, ['class', 'showIcon']);
|
||||
|
||||
// Random width between 50 to 90%.
|
||||
const width = createMemo(() => `${Math.floor(Math.random() * 40) + 50}%`)
|
||||
const width = createMemo(() => `${Math.floor(Math.random() * 40) + 50}%`);
|
||||
|
||||
return (
|
||||
<div
|
||||
data-sidebar="menu-skeleton"
|
||||
class={cn("flex h-8 items-center gap-2 rounded-md px-2", local.class)}
|
||||
class={cn('flex h-8 items-center gap-2 rounded-md px-2', local.class)}
|
||||
{...others}
|
||||
>
|
||||
{local.showIcon && <Skeleton class="size-4 rounded-md" data-sidebar="menu-skeleton-icon" />}
|
||||
{local.showIcon && (
|
||||
<Skeleton class="size-4 rounded-md" data-sidebar="menu-skeleton-icon" />
|
||||
)}
|
||||
<Skeleton
|
||||
class="h-4 max-w-[--skeleton-width] flex-1"
|
||||
data-sidebar="menu-skeleton-text"
|
||||
style={{
|
||||
"--skeleton-width": width()
|
||||
'--skeleton-width': width(),
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
const SidebarMenuSub: Component<ComponentProps<"ul">> = (props) => {
|
||||
const [local, others] = splitProps(props, ["class"])
|
||||
const SidebarMenuSub: Component<ComponentProps<'ul'>> = (props) => {
|
||||
const [local, others] = splitProps(props, ['class']);
|
||||
return (
|
||||
<ul
|
||||
data-sidebar="menu-sub"
|
||||
class={cn(
|
||||
"mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5",
|
||||
"group-data-[collapsible=icon]:hidden",
|
||||
'mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l px-2.5 py-0.5',
|
||||
'group-data-[collapsible=icon]:hidden',
|
||||
local.class
|
||||
)}
|
||||
{...others}
|
||||
/>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
const SidebarMenuSubItem: Component<ComponentProps<"li">> = (props) => <li {...props} />
|
||||
const SidebarMenuSubItem: Component<ComponentProps<'li'>> = (props) => (
|
||||
<li {...props} />
|
||||
);
|
||||
|
||||
type SidebarMenuSubButtonProps<T extends ValidComponent = "a"> = ComponentProps<T> & {
|
||||
size?: "sm" | "md"
|
||||
isActive?: boolean
|
||||
}
|
||||
type SidebarMenuSubButtonProps<T extends ValidComponent = 'a'> =
|
||||
ComponentProps<T> & {
|
||||
size?: 'sm' | 'md';
|
||||
isActive?: boolean;
|
||||
};
|
||||
|
||||
const SidebarMenuSubButton = <T extends ValidComponent = "a">(
|
||||
const SidebarMenuSubButton = <T extends ValidComponent = 'a'>(
|
||||
rawProps: PolymorphicProps<T, SidebarMenuSubButtonProps<T>>
|
||||
) => {
|
||||
const props = mergeProps({ size: "md" }, rawProps)
|
||||
const props = mergeProps({ size: 'md' }, rawProps);
|
||||
const [local, others] = splitProps(props as SidebarMenuSubButtonProps, [
|
||||
"size",
|
||||
"isActive",
|
||||
"class"
|
||||
])
|
||||
'size',
|
||||
'isActive',
|
||||
'class',
|
||||
]);
|
||||
|
||||
return (
|
||||
<Polymorphic<SidebarMenuSubButtonProps>
|
||||
@ -651,17 +723,17 @@ const SidebarMenuSubButton = <T extends ValidComponent = "a">(
|
||||
data-size={local.size}
|
||||
data-active={local.isActive}
|
||||
class={cn(
|
||||
"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
|
||||
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
||||
local.size === "sm" && "text-xs",
|
||||
local.size === "md" && "text-sm",
|
||||
"group-data-[collapsible=icon]:hidden",
|
||||
'-translate-x-px flex h-7 min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground',
|
||||
'data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground',
|
||||
local.size === 'sm' && 'text-xs',
|
||||
local.size === 'md' && 'text-sm',
|
||||
'group-data-[collapsible=icon]:hidden',
|
||||
local.class
|
||||
)}
|
||||
{...others}
|
||||
/>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export {
|
||||
Sidebar,
|
||||
@ -687,5 +759,5 @@ export {
|
||||
SidebarRail,
|
||||
SidebarSeparator,
|
||||
SidebarTrigger,
|
||||
useSidebar
|
||||
}
|
||||
useSidebar,
|
||||
};
|
||||
|
@ -1,14 +1,28 @@
|
||||
import '@abraham/reflection';
|
||||
import {
|
||||
ColorModeProvider,
|
||||
ColorModeScript,
|
||||
createLocalStorageManager,
|
||||
} from '@kobalte/core';
|
||||
import { type Injector, ReflectiveInjector } from '@outposts/injection-js';
|
||||
import { RouterProvider, createRouter } from '@tanstack/solid-router';
|
||||
import { render } from 'solid-js/web';
|
||||
import './app.css';
|
||||
|
||||
// Import the generated route tree
|
||||
import {
|
||||
OidcSecurityService,
|
||||
provideAuth,
|
||||
withCheckAuthResultEvent,
|
||||
withDefaultFeatures,
|
||||
} from 'oidc-client-rx';
|
||||
import { withTanstackRouter } from 'oidc-client-rx/adapters/@tanstack/solid-router';
|
||||
import {
|
||||
InjectorContextVoidInjector,
|
||||
InjectorProvider,
|
||||
} from 'oidc-client-rx/adapters/solid-js';
|
||||
import { Dynamic, render } from 'solid-js/web';
|
||||
import { buildOidcConfig, isBasicAuth } from './auth/config';
|
||||
import { isAuthenticated } from './auth/context';
|
||||
import { useAuth } from './auth/hooks';
|
||||
import { routeTree } from './routeTree.gen';
|
||||
import './app.css';
|
||||
|
||||
// Create a new router instance
|
||||
const router = createRouter({
|
||||
@ -16,6 +30,11 @@ const router = createRouter({
|
||||
defaultPreload: 'intent',
|
||||
defaultStaleTime: 5000,
|
||||
scrollRestoration: true,
|
||||
context: {
|
||||
isAuthenticated: isAuthenticated,
|
||||
injector: InjectorContextVoidInjector,
|
||||
oidcSecurityService: {} as OidcSecurityService,
|
||||
},
|
||||
});
|
||||
|
||||
// Register the router instance for type safety
|
||||
@ -25,21 +44,66 @@ declare module '@tanstack/solid-router' {
|
||||
}
|
||||
}
|
||||
|
||||
const injector: Injector = isBasicAuth
|
||||
? ReflectiveInjector.resolveAndCreate([])
|
||||
: ReflectiveInjector.resolveAndCreate(
|
||||
provideAuth(
|
||||
{
|
||||
config: buildOidcConfig(),
|
||||
},
|
||||
withDefaultFeatures({
|
||||
router: { enabled: false },
|
||||
securityStorage: { type: 'local-storage' },
|
||||
}),
|
||||
withTanstackRouter(router),
|
||||
withCheckAuthResultEvent()
|
||||
)
|
||||
);
|
||||
|
||||
// if needed, check when init
|
||||
let oidcSecurityService: OidcSecurityService | undefined;
|
||||
if (!isBasicAuth) {
|
||||
oidcSecurityService = injector.get(OidcSecurityService);
|
||||
oidcSecurityService.checkAuth().subscribe();
|
||||
}
|
||||
|
||||
// Render the app
|
||||
const rootElement = document.getElementById('root');
|
||||
|
||||
const AppWithBasicAuth = () => {
|
||||
return <RouterProvider router={router} />;
|
||||
};
|
||||
|
||||
const AppWithOidcAuth = () => {
|
||||
const { isAuthenticated, oidcSecurityService, injector } = useAuth();
|
||||
return (
|
||||
<RouterProvider
|
||||
router={router}
|
||||
context={{
|
||||
isAuthenticated,
|
||||
oidcSecurityService,
|
||||
injector,
|
||||
}}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
const App = () => {
|
||||
const storageManager = createLocalStorageManager('vite-ui-theme');
|
||||
const storageManager = createLocalStorageManager('color-theme');
|
||||
return (
|
||||
<>
|
||||
<ColorModeScript storageType={storageManager.type} />
|
||||
<ColorModeProvider storageManager={storageManager}>
|
||||
<RouterProvider router={router} />
|
||||
<InjectorProvider injector={injector}>
|
||||
<Dynamic
|
||||
component={isBasicAuth ? AppWithBasicAuth : AppWithOidcAuth}
|
||||
/>
|
||||
</InjectorProvider>
|
||||
</ColorModeProvider>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
if (rootElement && !rootElement.innerHTML) {
|
||||
render(() => <App />, rootElement);
|
||||
render(App, rootElement);
|
||||
}
|
||||
|
@ -12,7 +12,16 @@
|
||||
|
||||
import { Route as rootRoute } from './routes/__root'
|
||||
import { Route as AboutImport } from './routes/about'
|
||||
import { Route as AppImport } from './routes/_app'
|
||||
import { Route as IndexImport } from './routes/index'
|
||||
import { Route as AuthSignUpImport } from './routes/auth/sign-up'
|
||||
import { Route as AuthSignInImport } from './routes/auth/sign-in'
|
||||
import { Route as AppExploreImport } from './routes/_app/explore'
|
||||
import { Route as AuthOidcCallbackImport } from './routes/auth/oidc/callback'
|
||||
import { Route as AppSubscriptionsManageImport } from './routes/_app/subscriptions/manage'
|
||||
import { Route as AppSubscriptionsCreateImport } from './routes/_app/subscriptions/create'
|
||||
import { Route as AppPlaygroundGraphqlApiImport } from './routes/_app/playground/graphql-api'
|
||||
import { Route as AppSubscriptionsEditSubscriptionIdImport } from './routes/_app/subscriptions/edit/$subscription-id'
|
||||
|
||||
// Create/Update Routes
|
||||
|
||||
@ -22,12 +31,66 @@ const AboutRoute = AboutImport.update({
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
|
||||
const AppRoute = AppImport.update({
|
||||
id: '/_app',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
|
||||
const IndexRoute = IndexImport.update({
|
||||
id: '/',
|
||||
path: '/',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
|
||||
const AuthSignUpRoute = AuthSignUpImport.update({
|
||||
id: '/auth/sign-up',
|
||||
path: '/auth/sign-up',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
|
||||
const AuthSignInRoute = AuthSignInImport.update({
|
||||
id: '/auth/sign-in',
|
||||
path: '/auth/sign-in',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
|
||||
const AppExploreRoute = AppExploreImport.update({
|
||||
id: '/explore',
|
||||
path: '/explore',
|
||||
getParentRoute: () => AppRoute,
|
||||
} as any)
|
||||
|
||||
const AuthOidcCallbackRoute = AuthOidcCallbackImport.update({
|
||||
id: '/auth/oidc/callback',
|
||||
path: '/auth/oidc/callback',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
|
||||
const AppSubscriptionsManageRoute = AppSubscriptionsManageImport.update({
|
||||
id: '/subscriptions/manage',
|
||||
path: '/subscriptions/manage',
|
||||
getParentRoute: () => AppRoute,
|
||||
} as any)
|
||||
|
||||
const AppSubscriptionsCreateRoute = AppSubscriptionsCreateImport.update({
|
||||
id: '/subscriptions/create',
|
||||
path: '/subscriptions/create',
|
||||
getParentRoute: () => AppRoute,
|
||||
} as any)
|
||||
|
||||
const AppPlaygroundGraphqlApiRoute = AppPlaygroundGraphqlApiImport.update({
|
||||
id: '/playground/graphql-api',
|
||||
path: '/playground/graphql-api',
|
||||
getParentRoute: () => AppRoute,
|
||||
} as any)
|
||||
|
||||
const AppSubscriptionsEditSubscriptionIdRoute =
|
||||
AppSubscriptionsEditSubscriptionIdImport.update({
|
||||
id: '/subscriptions/edit/$subscription-id',
|
||||
path: '/subscriptions/edit/$subscription-id',
|
||||
getParentRoute: () => AppRoute,
|
||||
} as any)
|
||||
|
||||
// Populate the FileRoutesByPath interface
|
||||
|
||||
declare module '@tanstack/solid-router' {
|
||||
@ -39,6 +102,13 @@ declare module '@tanstack/solid-router' {
|
||||
preLoaderRoute: typeof IndexImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/_app': {
|
||||
id: '/_app'
|
||||
path: ''
|
||||
fullPath: ''
|
||||
preLoaderRoute: typeof AppImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/about': {
|
||||
id: '/about'
|
||||
path: '/about'
|
||||
@ -46,44 +116,188 @@ declare module '@tanstack/solid-router' {
|
||||
preLoaderRoute: typeof AboutImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/_app/explore': {
|
||||
id: '/_app/explore'
|
||||
path: '/explore'
|
||||
fullPath: '/explore'
|
||||
preLoaderRoute: typeof AppExploreImport
|
||||
parentRoute: typeof AppImport
|
||||
}
|
||||
'/auth/sign-in': {
|
||||
id: '/auth/sign-in'
|
||||
path: '/auth/sign-in'
|
||||
fullPath: '/auth/sign-in'
|
||||
preLoaderRoute: typeof AuthSignInImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/auth/sign-up': {
|
||||
id: '/auth/sign-up'
|
||||
path: '/auth/sign-up'
|
||||
fullPath: '/auth/sign-up'
|
||||
preLoaderRoute: typeof AuthSignUpImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/_app/playground/graphql-api': {
|
||||
id: '/_app/playground/graphql-api'
|
||||
path: '/playground/graphql-api'
|
||||
fullPath: '/playground/graphql-api'
|
||||
preLoaderRoute: typeof AppPlaygroundGraphqlApiImport
|
||||
parentRoute: typeof AppImport
|
||||
}
|
||||
'/_app/subscriptions/create': {
|
||||
id: '/_app/subscriptions/create'
|
||||
path: '/subscriptions/create'
|
||||
fullPath: '/subscriptions/create'
|
||||
preLoaderRoute: typeof AppSubscriptionsCreateImport
|
||||
parentRoute: typeof AppImport
|
||||
}
|
||||
'/_app/subscriptions/manage': {
|
||||
id: '/_app/subscriptions/manage'
|
||||
path: '/subscriptions/manage'
|
||||
fullPath: '/subscriptions/manage'
|
||||
preLoaderRoute: typeof AppSubscriptionsManageImport
|
||||
parentRoute: typeof AppImport
|
||||
}
|
||||
'/auth/oidc/callback': {
|
||||
id: '/auth/oidc/callback'
|
||||
path: '/auth/oidc/callback'
|
||||
fullPath: '/auth/oidc/callback'
|
||||
preLoaderRoute: typeof AuthOidcCallbackImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/_app/subscriptions/edit/$subscription-id': {
|
||||
id: '/_app/subscriptions/edit/$subscription-id'
|
||||
path: '/subscriptions/edit/$subscription-id'
|
||||
fullPath: '/subscriptions/edit/$subscription-id'
|
||||
preLoaderRoute: typeof AppSubscriptionsEditSubscriptionIdImport
|
||||
parentRoute: typeof AppImport
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Create and export the route tree
|
||||
|
||||
interface AppRouteChildren {
|
||||
AppExploreRoute: typeof AppExploreRoute
|
||||
AppPlaygroundGraphqlApiRoute: typeof AppPlaygroundGraphqlApiRoute
|
||||
AppSubscriptionsCreateRoute: typeof AppSubscriptionsCreateRoute
|
||||
AppSubscriptionsManageRoute: typeof AppSubscriptionsManageRoute
|
||||
AppSubscriptionsEditSubscriptionIdRoute: typeof AppSubscriptionsEditSubscriptionIdRoute
|
||||
}
|
||||
|
||||
const AppRouteChildren: AppRouteChildren = {
|
||||
AppExploreRoute: AppExploreRoute,
|
||||
AppPlaygroundGraphqlApiRoute: AppPlaygroundGraphqlApiRoute,
|
||||
AppSubscriptionsCreateRoute: AppSubscriptionsCreateRoute,
|
||||
AppSubscriptionsManageRoute: AppSubscriptionsManageRoute,
|
||||
AppSubscriptionsEditSubscriptionIdRoute:
|
||||
AppSubscriptionsEditSubscriptionIdRoute,
|
||||
}
|
||||
|
||||
const AppRouteWithChildren = AppRoute._addFileChildren(AppRouteChildren)
|
||||
|
||||
export interface FileRoutesByFullPath {
|
||||
'/': typeof IndexRoute
|
||||
'': typeof AppRouteWithChildren
|
||||
'/about': typeof AboutRoute
|
||||
'/explore': typeof AppExploreRoute
|
||||
'/auth/sign-in': typeof AuthSignInRoute
|
||||
'/auth/sign-up': typeof AuthSignUpRoute
|
||||
'/playground/graphql-api': typeof AppPlaygroundGraphqlApiRoute
|
||||
'/subscriptions/create': typeof AppSubscriptionsCreateRoute
|
||||
'/subscriptions/manage': typeof AppSubscriptionsManageRoute
|
||||
'/auth/oidc/callback': typeof AuthOidcCallbackRoute
|
||||
'/subscriptions/edit/$subscription-id': typeof AppSubscriptionsEditSubscriptionIdRoute
|
||||
}
|
||||
|
||||
export interface FileRoutesByTo {
|
||||
'/': typeof IndexRoute
|
||||
'': typeof AppRouteWithChildren
|
||||
'/about': typeof AboutRoute
|
||||
'/explore': typeof AppExploreRoute
|
||||
'/auth/sign-in': typeof AuthSignInRoute
|
||||
'/auth/sign-up': typeof AuthSignUpRoute
|
||||
'/playground/graphql-api': typeof AppPlaygroundGraphqlApiRoute
|
||||
'/subscriptions/create': typeof AppSubscriptionsCreateRoute
|
||||
'/subscriptions/manage': typeof AppSubscriptionsManageRoute
|
||||
'/auth/oidc/callback': typeof AuthOidcCallbackRoute
|
||||
'/subscriptions/edit/$subscription-id': typeof AppSubscriptionsEditSubscriptionIdRoute
|
||||
}
|
||||
|
||||
export interface FileRoutesById {
|
||||
__root__: typeof rootRoute
|
||||
'/': typeof IndexRoute
|
||||
'/_app': typeof AppRouteWithChildren
|
||||
'/about': typeof AboutRoute
|
||||
'/_app/explore': typeof AppExploreRoute
|
||||
'/auth/sign-in': typeof AuthSignInRoute
|
||||
'/auth/sign-up': typeof AuthSignUpRoute
|
||||
'/_app/playground/graphql-api': typeof AppPlaygroundGraphqlApiRoute
|
||||
'/_app/subscriptions/create': typeof AppSubscriptionsCreateRoute
|
||||
'/_app/subscriptions/manage': typeof AppSubscriptionsManageRoute
|
||||
'/auth/oidc/callback': typeof AuthOidcCallbackRoute
|
||||
'/_app/subscriptions/edit/$subscription-id': typeof AppSubscriptionsEditSubscriptionIdRoute
|
||||
}
|
||||
|
||||
export interface FileRouteTypes {
|
||||
fileRoutesByFullPath: FileRoutesByFullPath
|
||||
fullPaths: '/' | '/about'
|
||||
fullPaths:
|
||||
| '/'
|
||||
| ''
|
||||
| '/about'
|
||||
| '/explore'
|
||||
| '/auth/sign-in'
|
||||
| '/auth/sign-up'
|
||||
| '/playground/graphql-api'
|
||||
| '/subscriptions/create'
|
||||
| '/subscriptions/manage'
|
||||
| '/auth/oidc/callback'
|
||||
| '/subscriptions/edit/$subscription-id'
|
||||
fileRoutesByTo: FileRoutesByTo
|
||||
to: '/' | '/about'
|
||||
id: '__root__' | '/' | '/about'
|
||||
to:
|
||||
| '/'
|
||||
| ''
|
||||
| '/about'
|
||||
| '/explore'
|
||||
| '/auth/sign-in'
|
||||
| '/auth/sign-up'
|
||||
| '/playground/graphql-api'
|
||||
| '/subscriptions/create'
|
||||
| '/subscriptions/manage'
|
||||
| '/auth/oidc/callback'
|
||||
| '/subscriptions/edit/$subscription-id'
|
||||
id:
|
||||
| '__root__'
|
||||
| '/'
|
||||
| '/_app'
|
||||
| '/about'
|
||||
| '/_app/explore'
|
||||
| '/auth/sign-in'
|
||||
| '/auth/sign-up'
|
||||
| '/_app/playground/graphql-api'
|
||||
| '/_app/subscriptions/create'
|
||||
| '/_app/subscriptions/manage'
|
||||
| '/auth/oidc/callback'
|
||||
| '/_app/subscriptions/edit/$subscription-id'
|
||||
fileRoutesById: FileRoutesById
|
||||
}
|
||||
|
||||
export interface RootRouteChildren {
|
||||
IndexRoute: typeof IndexRoute
|
||||
AppRoute: typeof AppRouteWithChildren
|
||||
AboutRoute: typeof AboutRoute
|
||||
AuthSignInRoute: typeof AuthSignInRoute
|
||||
AuthSignUpRoute: typeof AuthSignUpRoute
|
||||
AuthOidcCallbackRoute: typeof AuthOidcCallbackRoute
|
||||
}
|
||||
|
||||
const rootRouteChildren: RootRouteChildren = {
|
||||
IndexRoute: IndexRoute,
|
||||
AppRoute: AppRouteWithChildren,
|
||||
AboutRoute: AboutRoute,
|
||||
AuthSignInRoute: AuthSignInRoute,
|
||||
AuthSignUpRoute: AuthSignUpRoute,
|
||||
AuthOidcCallbackRoute: AuthOidcCallbackRoute,
|
||||
}
|
||||
|
||||
export const routeTree = rootRoute
|
||||
@ -97,14 +311,57 @@ export const routeTree = rootRoute
|
||||
"filePath": "__root.tsx",
|
||||
"children": [
|
||||
"/",
|
||||
"/about"
|
||||
"/_app",
|
||||
"/about",
|
||||
"/auth/sign-in",
|
||||
"/auth/sign-up",
|
||||
"/auth/oidc/callback"
|
||||
]
|
||||
},
|
||||
"/": {
|
||||
"filePath": "index.tsx"
|
||||
},
|
||||
"/_app": {
|
||||
"filePath": "_app.tsx",
|
||||
"children": [
|
||||
"/_app/explore",
|
||||
"/_app/playground/graphql-api",
|
||||
"/_app/subscriptions/create",
|
||||
"/_app/subscriptions/manage",
|
||||
"/_app/subscriptions/edit/$subscription-id"
|
||||
]
|
||||
},
|
||||
"/about": {
|
||||
"filePath": "about.tsx"
|
||||
},
|
||||
"/_app/explore": {
|
||||
"filePath": "_app/explore.tsx",
|
||||
"parent": "/_app"
|
||||
},
|
||||
"/auth/sign-in": {
|
||||
"filePath": "auth/sign-in.tsx"
|
||||
},
|
||||
"/auth/sign-up": {
|
||||
"filePath": "auth/sign-up.tsx"
|
||||
},
|
||||
"/_app/playground/graphql-api": {
|
||||
"filePath": "_app/playground/graphql-api.tsx",
|
||||
"parent": "/_app"
|
||||
},
|
||||
"/_app/subscriptions/create": {
|
||||
"filePath": "_app/subscriptions/create.tsx",
|
||||
"parent": "/_app"
|
||||
},
|
||||
"/_app/subscriptions/manage": {
|
||||
"filePath": "_app/subscriptions/manage.tsx",
|
||||
"parent": "/_app"
|
||||
},
|
||||
"/auth/oidc/callback": {
|
||||
"filePath": "auth/oidc/callback.tsx"
|
||||
},
|
||||
"/_app/subscriptions/edit/$subscription-id": {
|
||||
"filePath": "_app/subscriptions/edit/$subscription-id.tsx",
|
||||
"parent": "/_app"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,33 +1,8 @@
|
||||
import { Outlet, createRootRoute } from '@tanstack/solid-router';
|
||||
// import {
|
||||
// NavigationMenu,
|
||||
// NavigationMenuItem,
|
||||
// NavigationMenuLink,
|
||||
// NavigationMenuTrigger,
|
||||
// } from '~/components/ui/navigation-menu';
|
||||
import { Outlet, createRootRouteWithContext } from '@tanstack/solid-router';
|
||||
import type { RouterContext } from '../auth/context';
|
||||
|
||||
export const Route = createRootRoute({
|
||||
export const Route = createRootRouteWithContext<RouterContext>()({
|
||||
component: () => {
|
||||
return (
|
||||
<>
|
||||
{/* <div class="sticky inset-x-0 top-0 isolate z-10 flex shrink-0 items-center gap-2 border-b bg-background">
|
||||
<NavigationMenu orientation="horizontal">
|
||||
<NavigationMenuItem>
|
||||
<NavigationMenuTrigger>
|
||||
<NavigationMenuLink as={Link} to="/">
|
||||
Home
|
||||
</NavigationMenuLink>
|
||||
</NavigationMenuTrigger>
|
||||
</NavigationMenuItem>
|
||||
<NavigationMenuItem>
|
||||
<NavigationMenuLink as={Link} to="/about">
|
||||
About
|
||||
</NavigationMenuLink>
|
||||
</NavigationMenuItem>
|
||||
</NavigationMenu>
|
||||
</div> */}
|
||||
<Outlet />
|
||||
</>
|
||||
);
|
||||
return <Outlet />;
|
||||
},
|
||||
});
|
||||
|
8
apps/webui/src/routes/_app.tsx
Normal file
8
apps/webui/src/routes/_app.tsx
Normal file
@ -0,0 +1,8 @@
|
||||
import { createFileRoute } from '@tanstack/solid-router';
|
||||
import { beforeLoadGuard } from '~/auth/guard';
|
||||
import { AppLayout } from '~/components/layout/app-layout';
|
||||
|
||||
export const Route = createFileRoute('/_app')({
|
||||
component: AppLayout,
|
||||
beforeLoad: beforeLoadGuard,
|
||||
});
|
9
apps/webui/src/routes/_app/explore.tsx
Normal file
9
apps/webui/src/routes/_app/explore.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
import { createFileRoute } from '@tanstack/solid-router';
|
||||
|
||||
export const Route = createFileRoute('/_app/explore')({
|
||||
component: RouteComponent,
|
||||
});
|
||||
|
||||
function RouteComponent() {
|
||||
return <div>Hello "/_app/explore"!</div>;
|
||||
}
|
9
apps/webui/src/routes/_app/playground/graphql-api.tsx
Normal file
9
apps/webui/src/routes/_app/playground/graphql-api.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
import { createFileRoute } from '@tanstack/solid-router'
|
||||
|
||||
export const Route = createFileRoute('/_app/playground/graphql-api')({
|
||||
component: RouteComponent,
|
||||
})
|
||||
|
||||
function RouteComponent() {
|
||||
return <div>Hello "/_app/playground/group-api"!</div>
|
||||
}
|
9
apps/webui/src/routes/_app/subscriptions/create.tsx
Normal file
9
apps/webui/src/routes/_app/subscriptions/create.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
import { createFileRoute } from '@tanstack/solid-router';
|
||||
|
||||
export const Route = createFileRoute('/_app/subscriptions/create')({
|
||||
component: RouteComponent,
|
||||
});
|
||||
|
||||
function RouteComponent() {
|
||||
return <div>Hello "/subscriptions/create"!</div>;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
import { createFileRoute } from '@tanstack/solid-router'
|
||||
|
||||
export const Route = createFileRoute('/_app/subscriptions/edit/$subscription-id')({
|
||||
component: RouteComponent,
|
||||
})
|
||||
|
||||
function RouteComponent() {
|
||||
return <div>Hello "/subscriptions/edit/$subscription-id"!</div>
|
||||
}
|
9
apps/webui/src/routes/_app/subscriptions/manage.tsx
Normal file
9
apps/webui/src/routes/_app/subscriptions/manage.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
import { createFileRoute } from '@tanstack/solid-router';
|
||||
|
||||
export const Route = createFileRoute('/_app/subscriptions/manage')({
|
||||
component: SubscriptionDashboard,
|
||||
});
|
||||
|
||||
function SubscriptionDashboard() {
|
||||
return <div>Hello "/subscriptions/manage"!</div>;
|
||||
}
|
9
apps/webui/src/routes/auth/oidc/callback.tsx
Normal file
9
apps/webui/src/routes/auth/oidc/callback.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
import { createFileRoute } from '@tanstack/solid-router'
|
||||
|
||||
export const Route = createFileRoute('/auth/oidc/callback')({
|
||||
component: RouteComponent,
|
||||
})
|
||||
|
||||
function RouteComponent() {
|
||||
return <div>Hello "/auth/oidc/callback"!</div>
|
||||
}
|
9
apps/webui/src/routes/auth/sign-in.tsx
Normal file
9
apps/webui/src/routes/auth/sign-in.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
import { createFileRoute } from '@tanstack/solid-router';
|
||||
|
||||
export const Route = createFileRoute('/auth/sign-in')({
|
||||
component: RouteComponent,
|
||||
});
|
||||
|
||||
function RouteComponent() {
|
||||
return <div>Hello "/auth/sign-in"!</div>;
|
||||
}
|
9
apps/webui/src/routes/auth/sign-up.tsx
Normal file
9
apps/webui/src/routes/auth/sign-up.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
import { createFileRoute } from '@tanstack/solid-router'
|
||||
|
||||
export const Route = createFileRoute('/auth/sign-up')({
|
||||
component: RouteComponent,
|
||||
})
|
||||
|
||||
function RouteComponent() {
|
||||
return <div>Hello "/auth/sign-up"!</div>
|
||||
}
|
@ -16,6 +16,7 @@ import {
|
||||
|
||||
export const Route = createFileRoute('/')({
|
||||
component: Home,
|
||||
beforeLoad: async () => {},
|
||||
});
|
||||
|
||||
function Home() {
|
||||
|
45
package.json
45
package.json
@ -3,7 +3,10 @@
|
||||
"version": "0.0.0",
|
||||
"description": "Kono bangumi?",
|
||||
"license": "MIT",
|
||||
"workspaces": ["packages/*", "apps/*"],
|
||||
"workspaces": [
|
||||
"packages/*",
|
||||
"apps/*"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/dumtruck/konobangu.git"
|
||||
@ -23,36 +26,36 @@
|
||||
"node": ">=22"
|
||||
},
|
||||
"dependencies": {
|
||||
"arktype": "^2.1.2",
|
||||
"clsx": "^2.1.1",
|
||||
"class-variance-authority": "^0.7.1",
|
||||
"tailwind-merge": "^3.0.2",
|
||||
"tailwindcss": "^4.0.9",
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
"@tanstack/router-devtools": "^1.112.6",
|
||||
"@tanstack/react-router": "^1.112.0",
|
||||
"@abraham/reflection": "^0.12.0",
|
||||
"@outposts/injection-js": "^2.5.1",
|
||||
"oidc-client-rx": "0.1.0-alpha.6",
|
||||
"rxjs": "^7.8.2"
|
||||
"@tanstack/react-router": "^1.112.0",
|
||||
"@tanstack/router-devtools": "^1.112.6",
|
||||
"arktype": "^2.1.2",
|
||||
"class-variance-authority": "^0.7.1",
|
||||
"clsx": "^2.1.1",
|
||||
"oidc-client-rx": "0.1.0-alpha.8",
|
||||
"rxjs": "^7.8.2",
|
||||
"tailwind-merge": "^3.0.2",
|
||||
"tailwindcss": "^4.0.9",
|
||||
"tailwindcss-animate": "^1.0.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"chalk": "^5.4.1",
|
||||
"commander": "^13.1.0",
|
||||
"@tanstack/router-plugin": "^1.112.3",
|
||||
"@tailwindcss/postcss": "^4.0.9",
|
||||
"postcss": "^8.5.3",
|
||||
"@rsbuild/core": "^1.2.14",
|
||||
"@rsbuild/plugin-babel": "^1.0.4",
|
||||
"@auto-it/all-contributors": "^11.3.0",
|
||||
"@auto-it/first-time-contributor": "^11.3.0",
|
||||
"@biomejs/biome": "1.9.4",
|
||||
"@rsbuild/core": "^1.2.14",
|
||||
"@rsbuild/plugin-babel": "^1.0.4",
|
||||
"@tailwindcss/postcss": "^4.0.9",
|
||||
"@tanstack/router-devtools": "^1.112.6",
|
||||
"@tanstack/router-plugin": "^1.112.3",
|
||||
"@types/jsdom": "^21.1.7",
|
||||
"@types/node": "^22.13.8",
|
||||
"chalk": "^5.4.1",
|
||||
"commander": "^13.1.0",
|
||||
"postcss": "^8.5.3",
|
||||
"shx": "^0.3.4",
|
||||
"tsx": "^4.19.2",
|
||||
"ultracite": "^4.1.15",
|
||||
"@tanstack/router-devtools": "^1.112.6",
|
||||
"typescript": "^5.8.2",
|
||||
"@types/node": "^22.13.8"
|
||||
"ultracite": "^4.1.15"
|
||||
}
|
||||
}
|
||||
|
462
pnpm-lock.yaml
generated
462
pnpm-lock.yaml
generated
@ -30,8 +30,8 @@ importers:
|
||||
specifier: ^2.1.1
|
||||
version: 2.1.1
|
||||
oidc-client-rx:
|
||||
specifier: 0.1.0-alpha.6
|
||||
version: 0.1.0-alpha.6(@tanstack/react-router@1.112.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)(rxjs@7.8.2)
|
||||
specifier: 0.1.0-alpha.8
|
||||
version: 0.1.0-alpha.8(@tanstack/react-router@1.112.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(@tanstack/solid-router@1.112.2(solid-js@1.9.5))(react@19.0.0)(rxjs@7.8.2)(solid-js@1.9.5)
|
||||
rxjs:
|
||||
specifier: ^7.8.2
|
||||
version: 7.8.2
|
||||
@ -125,13 +125,13 @@ importers:
|
||||
dependencies:
|
||||
'@graphiql/react':
|
||||
specifier: ^0.28.2
|
||||
version: 0.28.2(@codemirror/language@6.0.0)(@types/node@22.13.8)(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(graphql-ws@6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9)))(graphql@16.10.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
version: 0.28.2(@codemirror/language@6.10.8)(@types/node@22.13.8)(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(graphql-ws@6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9)))(graphql@16.10.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
'@graphiql/toolkit':
|
||||
specifier: ^0.11.1
|
||||
version: 0.11.1(@types/node@22.13.8)(graphql-ws@6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9)))(graphql@16.10.0)
|
||||
graphiql:
|
||||
specifier: ^3.8.3
|
||||
version: 3.8.3(@codemirror/language@6.0.0)(@types/node@22.13.8)(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(graphql-ws@6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9)))(graphql@16.10.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
version: 3.8.3(@codemirror/language@6.10.8)(@types/node@22.13.8)(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(graphql-ws@6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9)))(graphql@16.10.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
graphql-ws:
|
||||
specifier: ^6.0.4
|
||||
version: 6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9))
|
||||
@ -160,6 +160,9 @@ importers:
|
||||
'@ark-ui/solid':
|
||||
specifier: ^4.10.2
|
||||
version: 4.10.2(solid-js@1.9.5)
|
||||
'@codemirror/language':
|
||||
specifier: ^6.10.8
|
||||
version: 6.10.8
|
||||
'@corvu/drawer':
|
||||
specifier: ^0.2.3
|
||||
version: 0.2.3(solid-js@1.9.5)
|
||||
@ -169,12 +172,18 @@ importers:
|
||||
'@corvu/resizable':
|
||||
specifier: ^0.2.4
|
||||
version: 0.2.4(solid-js@1.9.5)
|
||||
'@graphiql/toolkit':
|
||||
specifier: ^0.11.1
|
||||
version: 0.11.1(@types/node@22.13.8)(graphql-ws@6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9)))(graphql@16.10.0)
|
||||
'@kobalte/core':
|
||||
specifier: ^0.13.9
|
||||
version: 0.13.9(solid-js@1.9.5)
|
||||
'@kobalte/tailwindcss':
|
||||
specifier: ^0.9.0
|
||||
version: 0.9.0(tailwindcss@3.4.17(ts-node@10.9.2(@types/node@22.13.8)(typescript@5.8.2)))
|
||||
'@solid-primitives/graphql':
|
||||
specifier: ^2.2.0
|
||||
version: 2.2.0(@graphql-typed-document-node/core@3.2.0(graphql@16.10.0))(graphql@16.10.0)(solid-js@1.9.5)
|
||||
'@solid-primitives/refs':
|
||||
specifier: ^1.1.0
|
||||
version: 1.1.0(solid-js@1.9.5)
|
||||
@ -193,9 +202,18 @@ importers:
|
||||
embla-carousel-solid:
|
||||
specifier: ^8.5.2
|
||||
version: 8.5.2(solid-js@1.9.5)
|
||||
graphiql:
|
||||
specifier: ^3.8.3
|
||||
version: 3.8.3(@codemirror/language@6.10.8)(@types/node@22.13.8)(graphql-ws@6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9)))(graphql@16.10.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
lucide-solid:
|
||||
specifier: ^0.477.0
|
||||
version: 0.477.0(solid-js@1.9.5)
|
||||
react:
|
||||
specifier: ^18
|
||||
version: 18.3.1
|
||||
react-dom:
|
||||
specifier: ^18
|
||||
version: 18.3.1(react@18.3.1)
|
||||
solid-js:
|
||||
specifier: ^1.9.5
|
||||
version: 1.9.5
|
||||
@ -211,7 +229,7 @@ importers:
|
||||
version: 1.0.5(@babel/core@7.26.9)(@rsbuild/core@1.2.14)(solid-js@1.9.5)
|
||||
'@tanstack/react-router':
|
||||
specifier: ^1.112.0
|
||||
version: 1.112.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
version: 1.112.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
|
||||
packages/email:
|
||||
dependencies:
|
||||
@ -580,8 +598,8 @@ packages:
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
|
||||
'@codemirror/language@6.0.0':
|
||||
resolution: {integrity: sha512-rtjk5ifyMzOna1c7PBu7J1VCt0PvA5wy3o8eMVnxMKb7z8KA7JFecvD04dSn14vj/bBaAbqRsGed5OjtofEnLA==}
|
||||
'@codemirror/language@6.10.8':
|
||||
resolution: {integrity: sha512-wcP8XPPhDH2vTqf181U8MbZnW+tDyPYy0UzVOa+oHORjyT+mhhom9vBd7dApJwoDz9Nb/a8kHjJIsuA/t8vNFw==}
|
||||
|
||||
'@codemirror/state@6.5.1':
|
||||
resolution: {integrity: sha512-3rA9lcwciEB47ZevqvD8qgbzhM9qMb8vCcQCNmDfVRPQG4JT9mSb0Jg8H7YjKGGQcFnLN323fj9jdnG59Kx6bg==}
|
||||
@ -1095,6 +1113,11 @@ packages:
|
||||
graphql-ws:
|
||||
optional: true
|
||||
|
||||
'@graphql-typed-document-node/core@3.2.0':
|
||||
resolution: {integrity: sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==}
|
||||
peerDependencies:
|
||||
graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0
|
||||
|
||||
'@headlessui/react@1.7.19':
|
||||
resolution: {integrity: sha512-Ll+8q3OlMJfJbAKM/+/Y2q6PPYbryqNTXDbryx7SXLIDamkF6iQFbriYHga0dY44PvDhvvBWCx1Xj4U5+G4hOw==}
|
||||
engines: {node: '>=10'}
|
||||
@ -2151,6 +2174,13 @@ packages:
|
||||
peerDependencies:
|
||||
solid-js: ^1.6.12
|
||||
|
||||
'@solid-primitives/graphql@2.2.0':
|
||||
resolution: {integrity: sha512-4XwFRklqEO9FgETDQVe4AWq5Y92uwMPyjO/JTUSJCoX+7ggEjX8aB1DJzf2CcqGBkdVYRPKKlsFx7C8DJ9XN3Q==}
|
||||
peerDependencies:
|
||||
'@graphql-typed-document-node/core': ^3.2.0
|
||||
graphql: ^16.6.0
|
||||
solid-js: ^1.6.12
|
||||
|
||||
'@solid-primitives/keyboard@1.3.0':
|
||||
resolution: {integrity: sha512-0QX9O3eUaQorNNmXZn8a4efSByayIScVq+iGSwheD7m3SL/ACLM5oZlCNpTPLcemnVVfUPAHFiViEj86XpN5qw==}
|
||||
peerDependencies:
|
||||
@ -4262,6 +4292,10 @@ packages:
|
||||
resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==}
|
||||
engines: {node: '>=10'}
|
||||
|
||||
loose-envify@1.4.0:
|
||||
resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}
|
||||
hasBin: true
|
||||
|
||||
loupe@3.1.2:
|
||||
resolution: {integrity: sha512-23I4pFZHmAemUnz8WZXbYRSKYj801VDaNv9ETuMh7IrMc7VuVVSo+Z9iLE3ni30+U48iDWfi30d3twAXBYmnCg==}
|
||||
|
||||
@ -4525,17 +4559,23 @@ packages:
|
||||
react-dom: '>=16.8.0'
|
||||
rxjs: '>=6.0.0'
|
||||
|
||||
oidc-client-rx@0.1.0-alpha.6:
|
||||
resolution: {integrity: sha512-KRiVXaAzxv2ScRb5R3MQa0In0TXglR8BxLgAYPNFLXLBb8ERKpBoi7L7aRVpasmDw2C/xjZZrAApKKXYhbqwVg==}
|
||||
oidc-client-rx@0.1.0-alpha.8:
|
||||
resolution: {integrity: sha512-p3KtoDx3FTTbtYFWDsLxGTDd4zGEiMeLre7AZaPlj44RDdMWrmOOqGM89y2VGGna9pSVVtPDyGM5IkbPHmzCmw==}
|
||||
peerDependencies:
|
||||
'@tanstack/react-router': '*'
|
||||
'@tanstack/solid-router': '*'
|
||||
react: '>=16.8.0'
|
||||
rxjs: ^7.4.0||>=8.0.0
|
||||
solid-js: ^1
|
||||
peerDependenciesMeta:
|
||||
'@tanstack/react-router':
|
||||
optional: true
|
||||
'@tanstack/solid-router':
|
||||
optional: true
|
||||
react:
|
||||
optional: true
|
||||
solid-js:
|
||||
optional: true
|
||||
|
||||
on-finished@2.4.1:
|
||||
resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==}
|
||||
@ -4826,6 +4866,11 @@ packages:
|
||||
peerDependencies:
|
||||
react: ^17.0.0 || ^18.0.0 || ^19.0.0
|
||||
|
||||
react-dom@18.3.1:
|
||||
resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==}
|
||||
peerDependencies:
|
||||
react: ^18.3.1
|
||||
|
||||
react-dom@19.0.0:
|
||||
resolution: {integrity: sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==}
|
||||
peerDependencies:
|
||||
@ -4877,6 +4922,10 @@ packages:
|
||||
'@types/react':
|
||||
optional: true
|
||||
|
||||
react@18.3.1:
|
||||
resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
|
||||
react@19.0.0:
|
||||
resolution: {integrity: sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
@ -5023,6 +5072,9 @@ packages:
|
||||
resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==}
|
||||
engines: {node: '>=v12.22.7'}
|
||||
|
||||
scheduler@0.23.2:
|
||||
resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==}
|
||||
|
||||
scheduler@0.25.0:
|
||||
resolution: {integrity: sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==}
|
||||
|
||||
@ -6413,7 +6465,7 @@ snapshots:
|
||||
'@biomejs/cli-win32-x64@1.9.4':
|
||||
optional: true
|
||||
|
||||
'@codemirror/language@6.0.0':
|
||||
'@codemirror/language@6.10.8':
|
||||
dependencies:
|
||||
'@codemirror/state': 6.5.1
|
||||
'@codemirror/view': 6.36.2
|
||||
@ -6720,6 +6772,12 @@ snapshots:
|
||||
'@floating-ui/core': 1.6.8
|
||||
'@floating-ui/utils': 0.2.9
|
||||
|
||||
'@floating-ui/react-dom@2.1.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@floating-ui/dom': 1.6.13
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
||||
'@floating-ui/react-dom@2.1.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
dependencies:
|
||||
'@floating-ui/dom': 1.6.13
|
||||
@ -6730,7 +6788,7 @@ snapshots:
|
||||
|
||||
'@floating-ui/utils@0.2.9': {}
|
||||
|
||||
'@graphiql/react@0.28.2(@codemirror/language@6.0.0)(@types/node@22.13.8)(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(graphql-ws@6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9)))(graphql@16.10.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
'@graphiql/react@0.28.2(@codemirror/language@6.10.8)(@types/node@22.13.8)(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(graphql-ws@6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9)))(graphql@16.10.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
dependencies:
|
||||
'@graphiql/toolkit': 0.11.1(@types/node@22.13.8)(graphql-ws@6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9)))(graphql@16.10.0)
|
||||
'@headlessui/react': 1.7.19(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
@ -6741,7 +6799,7 @@ snapshots:
|
||||
'@types/codemirror': 5.60.15
|
||||
clsx: 1.2.1
|
||||
codemirror: 5.65.18
|
||||
codemirror-graphql: 2.2.0(@codemirror/language@6.0.0)(codemirror@5.65.18)(graphql@16.10.0)
|
||||
codemirror-graphql: 2.2.0(@codemirror/language@6.10.8)(codemirror@5.65.18)(graphql@16.10.0)
|
||||
copy-to-clipboard: 3.3.3
|
||||
framer-motion: 6.5.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
get-value: 3.0.1
|
||||
@ -6759,6 +6817,35 @@ snapshots:
|
||||
- '@types/react-dom'
|
||||
- graphql-ws
|
||||
|
||||
'@graphiql/react@0.28.2(@codemirror/language@6.10.8)(@types/node@22.13.8)(graphql-ws@6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9)))(graphql@16.10.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@graphiql/toolkit': 0.11.1(@types/node@22.13.8)(graphql-ws@6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9)))(graphql@16.10.0)
|
||||
'@headlessui/react': 1.7.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-dialog': 1.1.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-dropdown-menu': 2.1.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-tooltip': 1.1.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-visually-hidden': 1.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@types/codemirror': 5.60.15
|
||||
clsx: 1.2.1
|
||||
codemirror: 5.65.18
|
||||
codemirror-graphql: 2.2.0(@codemirror/language@6.10.8)(codemirror@5.65.18)(graphql@16.10.0)
|
||||
copy-to-clipboard: 3.3.3
|
||||
framer-motion: 6.5.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
get-value: 3.0.1
|
||||
graphql: 16.10.0
|
||||
graphql-language-service: 5.3.0(graphql@16.10.0)
|
||||
markdown-it: 14.1.0
|
||||
react: 18.3.1
|
||||
react-compiler-runtime: 19.0.0-beta-37ed2a7-20241206(react@18.3.1)
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
set-value: 4.1.0
|
||||
transitivePeerDependencies:
|
||||
- '@codemirror/language'
|
||||
- '@types/node'
|
||||
- '@types/react'
|
||||
- '@types/react-dom'
|
||||
- graphql-ws
|
||||
|
||||
'@graphiql/toolkit@0.11.1(@types/node@22.13.8)(graphql-ws@6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9)))(graphql@16.10.0)':
|
||||
dependencies:
|
||||
'@n1ru4l/push-pull-async-iterable-iterator': 3.2.0
|
||||
@ -6769,6 +6856,17 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- '@types/node'
|
||||
|
||||
'@graphql-typed-document-node/core@3.2.0(graphql@16.10.0)':
|
||||
dependencies:
|
||||
graphql: 16.10.0
|
||||
|
||||
'@headlessui/react@1.7.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@tanstack/react-virtual': 3.11.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
client-only: 0.0.1
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
||||
'@headlessui/react@1.7.19(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
dependencies:
|
||||
'@tanstack/react-virtual': 3.11.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
@ -7194,6 +7292,12 @@ snapshots:
|
||||
'@types/react': 19.0.7
|
||||
'@types/react-dom': 19.0.3(@types/react@19.0.7)
|
||||
|
||||
'@radix-ui/react-arrow@1.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/react-primitive': 2.0.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
||||
'@radix-ui/react-collection@1.1.1(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
dependencies:
|
||||
'@radix-ui/react-compose-refs': 1.1.1(@types/react@19.0.7)(react@19.0.0)
|
||||
@ -7206,18 +7310,35 @@ snapshots:
|
||||
'@types/react': 19.0.7
|
||||
'@types/react-dom': 19.0.3(@types/react@19.0.7)
|
||||
|
||||
'@radix-ui/react-collection@1.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/react-compose-refs': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-context': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-primitive': 2.0.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-slot': 1.1.1(react@18.3.1)
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
||||
'@radix-ui/react-compose-refs@1.1.1(@types/react@19.0.7)(react@19.0.0)':
|
||||
dependencies:
|
||||
react: 19.0.0
|
||||
optionalDependencies:
|
||||
'@types/react': 19.0.7
|
||||
|
||||
'@radix-ui/react-compose-refs@1.1.1(react@18.3.1)':
|
||||
dependencies:
|
||||
react: 18.3.1
|
||||
|
||||
'@radix-ui/react-context@1.1.1(@types/react@19.0.7)(react@19.0.0)':
|
||||
dependencies:
|
||||
react: 19.0.0
|
||||
optionalDependencies:
|
||||
'@types/react': 19.0.7
|
||||
|
||||
'@radix-ui/react-context@1.1.1(react@18.3.1)':
|
||||
dependencies:
|
||||
react: 18.3.1
|
||||
|
||||
'@radix-ui/react-dialog@1.1.4(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
dependencies:
|
||||
'@radix-ui/primitive': 1.1.1
|
||||
@ -7240,12 +7361,35 @@ snapshots:
|
||||
'@types/react': 19.0.7
|
||||
'@types/react-dom': 19.0.3(@types/react@19.0.7)
|
||||
|
||||
'@radix-ui/react-dialog@1.1.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/primitive': 1.1.1
|
||||
'@radix-ui/react-compose-refs': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-context': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-dismissable-layer': 1.1.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-focus-guards': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-focus-scope': 1.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-id': 1.1.0(react@18.3.1)
|
||||
'@radix-ui/react-portal': 1.1.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-presence': 1.1.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-primitive': 2.0.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-slot': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-use-controllable-state': 1.1.0(react@18.3.1)
|
||||
aria-hidden: 1.2.4
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
react-remove-scroll: 2.6.2(react@18.3.1)
|
||||
|
||||
'@radix-ui/react-direction@1.1.0(@types/react@19.0.7)(react@19.0.0)':
|
||||
dependencies:
|
||||
react: 19.0.0
|
||||
optionalDependencies:
|
||||
'@types/react': 19.0.7
|
||||
|
||||
'@radix-ui/react-direction@1.1.0(react@18.3.1)':
|
||||
dependencies:
|
||||
react: 18.3.1
|
||||
|
||||
'@radix-ui/react-dismissable-layer@1.1.3(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
dependencies:
|
||||
'@radix-ui/primitive': 1.1.1
|
||||
@ -7259,6 +7403,16 @@ snapshots:
|
||||
'@types/react': 19.0.7
|
||||
'@types/react-dom': 19.0.3(@types/react@19.0.7)
|
||||
|
||||
'@radix-ui/react-dismissable-layer@1.1.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/primitive': 1.1.1
|
||||
'@radix-ui/react-compose-refs': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-primitive': 2.0.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-use-callback-ref': 1.1.0(react@18.3.1)
|
||||
'@radix-ui/react-use-escape-keydown': 1.1.0(react@18.3.1)
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
||||
'@radix-ui/react-dropdown-menu@2.1.4(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
dependencies:
|
||||
'@radix-ui/primitive': 1.1.1
|
||||
@ -7274,12 +7428,28 @@ snapshots:
|
||||
'@types/react': 19.0.7
|
||||
'@types/react-dom': 19.0.3(@types/react@19.0.7)
|
||||
|
||||
'@radix-ui/react-dropdown-menu@2.1.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/primitive': 1.1.1
|
||||
'@radix-ui/react-compose-refs': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-context': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-id': 1.1.0(react@18.3.1)
|
||||
'@radix-ui/react-menu': 2.1.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-primitive': 2.0.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-use-controllable-state': 1.1.0(react@18.3.1)
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
||||
'@radix-ui/react-focus-guards@1.1.1(@types/react@19.0.7)(react@19.0.0)':
|
||||
dependencies:
|
||||
react: 19.0.0
|
||||
optionalDependencies:
|
||||
'@types/react': 19.0.7
|
||||
|
||||
'@radix-ui/react-focus-guards@1.1.1(react@18.3.1)':
|
||||
dependencies:
|
||||
react: 18.3.1
|
||||
|
||||
'@radix-ui/react-focus-scope@1.1.1(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
dependencies:
|
||||
'@radix-ui/react-compose-refs': 1.1.1(@types/react@19.0.7)(react@19.0.0)
|
||||
@ -7291,6 +7461,14 @@ snapshots:
|
||||
'@types/react': 19.0.7
|
||||
'@types/react-dom': 19.0.3(@types/react@19.0.7)
|
||||
|
||||
'@radix-ui/react-focus-scope@1.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/react-compose-refs': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-primitive': 2.0.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-use-callback-ref': 1.1.0(react@18.3.1)
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
||||
'@radix-ui/react-id@1.1.0(@types/react@19.0.7)(react@19.0.0)':
|
||||
dependencies:
|
||||
'@radix-ui/react-use-layout-effect': 1.1.0(@types/react@19.0.7)(react@19.0.0)
|
||||
@ -7298,6 +7476,11 @@ snapshots:
|
||||
optionalDependencies:
|
||||
'@types/react': 19.0.7
|
||||
|
||||
'@radix-ui/react-id@1.1.0(react@18.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/react-use-layout-effect': 1.1.0(react@18.3.1)
|
||||
react: 18.3.1
|
||||
|
||||
'@radix-ui/react-menu@2.1.4(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
dependencies:
|
||||
'@radix-ui/primitive': 1.1.1
|
||||
@ -7324,6 +7507,29 @@ snapshots:
|
||||
'@types/react': 19.0.7
|
||||
'@types/react-dom': 19.0.3(@types/react@19.0.7)
|
||||
|
||||
'@radix-ui/react-menu@2.1.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/primitive': 1.1.1
|
||||
'@radix-ui/react-collection': 1.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-compose-refs': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-context': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-direction': 1.1.0(react@18.3.1)
|
||||
'@radix-ui/react-dismissable-layer': 1.1.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-focus-guards': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-focus-scope': 1.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-id': 1.1.0(react@18.3.1)
|
||||
'@radix-ui/react-popper': 1.2.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-portal': 1.1.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-presence': 1.1.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-primitive': 2.0.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-roving-focus': 1.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-slot': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-use-callback-ref': 1.1.0(react@18.3.1)
|
||||
aria-hidden: 1.2.4
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
react-remove-scroll: 2.6.2(react@18.3.1)
|
||||
|
||||
'@radix-ui/react-popper@1.2.1(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
dependencies:
|
||||
'@floating-ui/react-dom': 2.1.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
@ -7342,6 +7548,21 @@ snapshots:
|
||||
'@types/react': 19.0.7
|
||||
'@types/react-dom': 19.0.3(@types/react@19.0.7)
|
||||
|
||||
'@radix-ui/react-popper@1.2.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@floating-ui/react-dom': 2.1.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-arrow': 1.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-compose-refs': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-context': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-primitive': 2.0.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-use-callback-ref': 1.1.0(react@18.3.1)
|
||||
'@radix-ui/react-use-layout-effect': 1.1.0(react@18.3.1)
|
||||
'@radix-ui/react-use-rect': 1.1.0(react@18.3.1)
|
||||
'@radix-ui/react-use-size': 1.1.0(react@18.3.1)
|
||||
'@radix-ui/rect': 1.1.0
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
||||
'@radix-ui/react-portal@1.1.3(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
dependencies:
|
||||
'@radix-ui/react-primitive': 2.0.1(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
@ -7352,6 +7573,13 @@ snapshots:
|
||||
'@types/react': 19.0.7
|
||||
'@types/react-dom': 19.0.3(@types/react@19.0.7)
|
||||
|
||||
'@radix-ui/react-portal@1.1.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/react-primitive': 2.0.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-use-layout-effect': 1.1.0(react@18.3.1)
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
||||
'@radix-ui/react-presence@1.1.2(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
dependencies:
|
||||
'@radix-ui/react-compose-refs': 1.1.1(@types/react@19.0.7)(react@19.0.0)
|
||||
@ -7362,6 +7590,13 @@ snapshots:
|
||||
'@types/react': 19.0.7
|
||||
'@types/react-dom': 19.0.3(@types/react@19.0.7)
|
||||
|
||||
'@radix-ui/react-presence@1.1.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/react-compose-refs': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-use-layout-effect': 1.1.0(react@18.3.1)
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
||||
'@radix-ui/react-primitive@2.0.1(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
dependencies:
|
||||
'@radix-ui/react-slot': 1.1.1(@types/react@19.0.7)(react@19.0.0)
|
||||
@ -7371,6 +7606,12 @@ snapshots:
|
||||
'@types/react': 19.0.7
|
||||
'@types/react-dom': 19.0.3(@types/react@19.0.7)
|
||||
|
||||
'@radix-ui/react-primitive@2.0.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/react-slot': 1.1.1(react@18.3.1)
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
||||
'@radix-ui/react-roving-focus@1.1.1(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
dependencies:
|
||||
'@radix-ui/primitive': 1.1.1
|
||||
@ -7388,6 +7629,20 @@ snapshots:
|
||||
'@types/react': 19.0.7
|
||||
'@types/react-dom': 19.0.3(@types/react@19.0.7)
|
||||
|
||||
'@radix-ui/react-roving-focus@1.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/primitive': 1.1.1
|
||||
'@radix-ui/react-collection': 1.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-compose-refs': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-context': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-direction': 1.1.0(react@18.3.1)
|
||||
'@radix-ui/react-id': 1.1.0(react@18.3.1)
|
||||
'@radix-ui/react-primitive': 2.0.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-use-callback-ref': 1.1.0(react@18.3.1)
|
||||
'@radix-ui/react-use-controllable-state': 1.1.0(react@18.3.1)
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
||||
'@radix-ui/react-slot@1.1.1(@types/react@19.0.7)(react@19.0.0)':
|
||||
dependencies:
|
||||
'@radix-ui/react-compose-refs': 1.1.1(@types/react@19.0.7)(react@19.0.0)
|
||||
@ -7395,6 +7650,11 @@ snapshots:
|
||||
optionalDependencies:
|
||||
'@types/react': 19.0.7
|
||||
|
||||
'@radix-ui/react-slot@1.1.1(react@18.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/react-compose-refs': 1.1.1(react@18.3.1)
|
||||
react: 18.3.1
|
||||
|
||||
'@radix-ui/react-tooltip@1.1.6(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
dependencies:
|
||||
'@radix-ui/primitive': 1.1.1
|
||||
@ -7415,12 +7675,33 @@ snapshots:
|
||||
'@types/react': 19.0.7
|
||||
'@types/react-dom': 19.0.3(@types/react@19.0.7)
|
||||
|
||||
'@radix-ui/react-tooltip@1.1.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/primitive': 1.1.1
|
||||
'@radix-ui/react-compose-refs': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-context': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-dismissable-layer': 1.1.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-id': 1.1.0(react@18.3.1)
|
||||
'@radix-ui/react-popper': 1.2.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-portal': 1.1.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-presence': 1.1.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-primitive': 2.0.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@radix-ui/react-slot': 1.1.1(react@18.3.1)
|
||||
'@radix-ui/react-use-controllable-state': 1.1.0(react@18.3.1)
|
||||
'@radix-ui/react-visually-hidden': 1.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
||||
'@radix-ui/react-use-callback-ref@1.1.0(@types/react@19.0.7)(react@19.0.0)':
|
||||
dependencies:
|
||||
react: 19.0.0
|
||||
optionalDependencies:
|
||||
'@types/react': 19.0.7
|
||||
|
||||
'@radix-ui/react-use-callback-ref@1.1.0(react@18.3.1)':
|
||||
dependencies:
|
||||
react: 18.3.1
|
||||
|
||||
'@radix-ui/react-use-controllable-state@1.1.0(@types/react@19.0.7)(react@19.0.0)':
|
||||
dependencies:
|
||||
'@radix-ui/react-use-callback-ref': 1.1.0(@types/react@19.0.7)(react@19.0.0)
|
||||
@ -7428,6 +7709,11 @@ snapshots:
|
||||
optionalDependencies:
|
||||
'@types/react': 19.0.7
|
||||
|
||||
'@radix-ui/react-use-controllable-state@1.1.0(react@18.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/react-use-callback-ref': 1.1.0(react@18.3.1)
|
||||
react: 18.3.1
|
||||
|
||||
'@radix-ui/react-use-escape-keydown@1.1.0(@types/react@19.0.7)(react@19.0.0)':
|
||||
dependencies:
|
||||
'@radix-ui/react-use-callback-ref': 1.1.0(@types/react@19.0.7)(react@19.0.0)
|
||||
@ -7435,12 +7721,21 @@ snapshots:
|
||||
optionalDependencies:
|
||||
'@types/react': 19.0.7
|
||||
|
||||
'@radix-ui/react-use-escape-keydown@1.1.0(react@18.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/react-use-callback-ref': 1.1.0(react@18.3.1)
|
||||
react: 18.3.1
|
||||
|
||||
'@radix-ui/react-use-layout-effect@1.1.0(@types/react@19.0.7)(react@19.0.0)':
|
||||
dependencies:
|
||||
react: 19.0.0
|
||||
optionalDependencies:
|
||||
'@types/react': 19.0.7
|
||||
|
||||
'@radix-ui/react-use-layout-effect@1.1.0(react@18.3.1)':
|
||||
dependencies:
|
||||
react: 18.3.1
|
||||
|
||||
'@radix-ui/react-use-rect@1.1.0(@types/react@19.0.7)(react@19.0.0)':
|
||||
dependencies:
|
||||
'@radix-ui/rect': 1.1.0
|
||||
@ -7448,6 +7743,11 @@ snapshots:
|
||||
optionalDependencies:
|
||||
'@types/react': 19.0.7
|
||||
|
||||
'@radix-ui/react-use-rect@1.1.0(react@18.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/rect': 1.1.0
|
||||
react: 18.3.1
|
||||
|
||||
'@radix-ui/react-use-size@1.1.0(@types/react@19.0.7)(react@19.0.0)':
|
||||
dependencies:
|
||||
'@radix-ui/react-use-layout-effect': 1.1.0(@types/react@19.0.7)(react@19.0.0)
|
||||
@ -7455,6 +7755,11 @@ snapshots:
|
||||
optionalDependencies:
|
||||
'@types/react': 19.0.7
|
||||
|
||||
'@radix-ui/react-use-size@1.1.0(react@18.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/react-use-layout-effect': 1.1.0(react@18.3.1)
|
||||
react: 18.3.1
|
||||
|
||||
'@radix-ui/react-visually-hidden@1.1.1(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
dependencies:
|
||||
'@radix-ui/react-primitive': 2.0.1(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
@ -7464,6 +7769,12 @@ snapshots:
|
||||
'@types/react': 19.0.7
|
||||
'@types/react-dom': 19.0.3(@types/react@19.0.7)
|
||||
|
||||
'@radix-ui/react-visually-hidden@1.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/react-primitive': 2.0.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
||||
'@radix-ui/rect@1.1.0': {}
|
||||
|
||||
'@react-email/body@0.0.11(react@19.0.0)':
|
||||
@ -7799,6 +8110,13 @@ snapshots:
|
||||
'@solid-primitives/utils': 6.3.0(solid-js@1.9.5)
|
||||
solid-js: 1.9.5
|
||||
|
||||
'@solid-primitives/graphql@2.2.0(@graphql-typed-document-node/core@3.2.0(graphql@16.10.0))(graphql@16.10.0)(solid-js@1.9.5)':
|
||||
dependencies:
|
||||
'@graphql-typed-document-node/core': 3.2.0(graphql@16.10.0)
|
||||
'@solid-primitives/utils': 6.3.0(solid-js@1.9.5)
|
||||
graphql: 16.10.0
|
||||
solid-js: 1.9.5
|
||||
|
||||
'@solid-primitives/keyboard@1.3.0(solid-js@1.9.5)':
|
||||
dependencies:
|
||||
'@solid-primitives/event-listener': 2.4.0(solid-js@1.9.5)
|
||||
@ -7968,6 +8286,17 @@ snapshots:
|
||||
|
||||
'@tanstack/history@1.99.13': {}
|
||||
|
||||
'@tanstack/react-router@1.112.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@tanstack/history': 1.99.13
|
||||
'@tanstack/react-store': 0.7.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@tanstack/router-core': 1.112.0
|
||||
jsesc: 3.1.0
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
tiny-invariant: 1.3.3
|
||||
tiny-warning: 1.0.3
|
||||
|
||||
'@tanstack/react-router@1.112.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
dependencies:
|
||||
'@tanstack/history': 1.99.13
|
||||
@ -7979,6 +8308,13 @@ snapshots:
|
||||
tiny-invariant: 1.3.3
|
||||
tiny-warning: 1.0.3
|
||||
|
||||
'@tanstack/react-store@0.7.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@tanstack/store': 0.7.0
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
use-sync-external-store: 1.4.0(react@18.3.1)
|
||||
|
||||
'@tanstack/react-store@0.7.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
dependencies:
|
||||
'@tanstack/store': 0.7.0
|
||||
@ -7986,6 +8322,12 @@ snapshots:
|
||||
react-dom: 19.0.0(react@19.0.0)
|
||||
use-sync-external-store: 1.4.0(react@19.0.0)
|
||||
|
||||
'@tanstack/react-virtual@3.11.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@tanstack/virtual-core': 3.11.2
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
||||
'@tanstack/react-virtual@3.11.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
|
||||
dependencies:
|
||||
'@tanstack/virtual-core': 3.11.2
|
||||
@ -9143,9 +9485,9 @@ snapshots:
|
||||
'@solid-primitives/mutation-observer': 1.2.0(solid-js@1.9.5)
|
||||
solid-js: 1.9.5
|
||||
|
||||
codemirror-graphql@2.2.0(@codemirror/language@6.0.0)(codemirror@5.65.18)(graphql@16.10.0):
|
||||
codemirror-graphql@2.2.0(@codemirror/language@6.10.8)(codemirror@5.65.18)(graphql@16.10.0):
|
||||
dependencies:
|
||||
'@codemirror/language': 6.0.0
|
||||
'@codemirror/language': 6.10.8
|
||||
'@types/codemirror': 0.0.90
|
||||
codemirror: 5.65.18
|
||||
graphql: 16.10.0
|
||||
@ -9798,6 +10140,19 @@ snapshots:
|
||||
|
||||
fp-ts@2.16.9: {}
|
||||
|
||||
framer-motion@6.5.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1):
|
||||
dependencies:
|
||||
'@motionone/dom': 10.12.0
|
||||
framesync: 6.0.1
|
||||
hey-listen: 1.0.8
|
||||
popmotion: 11.0.3
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
style-value-types: 5.0.0
|
||||
tslib: 2.8.1
|
||||
optionalDependencies:
|
||||
'@emotion/is-prop-valid': 0.8.8
|
||||
|
||||
framer-motion@6.5.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0):
|
||||
dependencies:
|
||||
'@motionone/dom': 10.12.0
|
||||
@ -9944,9 +10299,9 @@ snapshots:
|
||||
|
||||
graceful-readlink@1.0.1: {}
|
||||
|
||||
graphiql@3.8.3(@codemirror/language@6.0.0)(@types/node@22.13.8)(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(graphql-ws@6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9)))(graphql@16.10.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0):
|
||||
graphiql@3.8.3(@codemirror/language@6.10.8)(@types/node@22.13.8)(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(graphql-ws@6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9)))(graphql@16.10.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0):
|
||||
dependencies:
|
||||
'@graphiql/react': 0.28.2(@codemirror/language@6.0.0)(@types/node@22.13.8)(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(graphql-ws@6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9)))(graphql@16.10.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
'@graphiql/react': 0.28.2(@codemirror/language@6.10.8)(@types/node@22.13.8)(@types/react-dom@19.0.3(@types/react@19.0.7))(@types/react@19.0.7)(graphql-ws@6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9)))(graphql@16.10.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
graphql: 16.10.0
|
||||
react: 19.0.0
|
||||
react-dom: 19.0.0(react@19.0.0)
|
||||
@ -9957,6 +10312,19 @@ snapshots:
|
||||
- '@types/react-dom'
|
||||
- graphql-ws
|
||||
|
||||
graphiql@3.8.3(@codemirror/language@6.10.8)(@types/node@22.13.8)(graphql-ws@6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9)))(graphql@16.10.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1):
|
||||
dependencies:
|
||||
'@graphiql/react': 0.28.2(@codemirror/language@6.10.8)(@types/node@22.13.8)(graphql-ws@6.0.4(graphql@16.10.0)(ws@8.18.0(bufferutil@4.0.9)))(graphql@16.10.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
graphql: 16.10.0
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
transitivePeerDependencies:
|
||||
- '@codemirror/language'
|
||||
- '@types/node'
|
||||
- '@types/react'
|
||||
- '@types/react-dom'
|
||||
- graphql-ws
|
||||
|
||||
graphql-language-service@5.3.0(graphql@16.10.0):
|
||||
dependencies:
|
||||
debounce-promise: 3.1.2
|
||||
@ -10438,6 +10806,10 @@ snapshots:
|
||||
chalk: 4.1.2
|
||||
is-unicode-supported: 0.1.0
|
||||
|
||||
loose-envify@1.4.0:
|
||||
dependencies:
|
||||
js-tokens: 4.0.0
|
||||
|
||||
loupe@3.1.2: {}
|
||||
|
||||
lru-cache@10.4.3: {}
|
||||
@ -10672,7 +11044,7 @@ snapshots:
|
||||
react-dom: 19.0.0(react@19.0.0)
|
||||
rxjs: 7.8.2
|
||||
|
||||
oidc-client-rx@0.1.0-alpha.6(@tanstack/react-router@1.112.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)(rxjs@7.8.2):
|
||||
oidc-client-rx@0.1.0-alpha.8(@tanstack/react-router@1.112.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(@tanstack/solid-router@1.112.2(solid-js@1.9.5))(react@19.0.0)(rxjs@7.8.2)(solid-js@1.9.5):
|
||||
dependencies:
|
||||
'@ngify/http': 2.0.4(rxjs@7.8.2)
|
||||
'@outposts/injection-js': 2.5.1
|
||||
@ -10680,7 +11052,9 @@ snapshots:
|
||||
rxjs: 7.8.2
|
||||
optionalDependencies:
|
||||
'@tanstack/react-router': 1.112.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
'@tanstack/solid-router': 1.112.2(solid-js@1.9.5)
|
||||
react: 19.0.0
|
||||
solid-js: 1.9.5
|
||||
|
||||
on-finished@2.4.1:
|
||||
dependencies:
|
||||
@ -10931,10 +11305,20 @@ snapshots:
|
||||
minimist: 1.2.8
|
||||
strip-json-comments: 2.0.1
|
||||
|
||||
react-compiler-runtime@19.0.0-beta-37ed2a7-20241206(react@18.3.1):
|
||||
dependencies:
|
||||
react: 18.3.1
|
||||
|
||||
react-compiler-runtime@19.0.0-beta-37ed2a7-20241206(react@19.0.0):
|
||||
dependencies:
|
||||
react: 19.0.0
|
||||
|
||||
react-dom@18.3.1(react@18.3.1):
|
||||
dependencies:
|
||||
loose-envify: 1.4.0
|
||||
react: 18.3.1
|
||||
scheduler: 0.23.2
|
||||
|
||||
react-dom@19.0.0(react@19.0.0):
|
||||
dependencies:
|
||||
react: 19.0.0
|
||||
@ -10984,6 +11368,12 @@ snapshots:
|
||||
optionalDependencies:
|
||||
'@types/react': 19.0.7
|
||||
|
||||
react-remove-scroll-bar@2.3.8(react@18.3.1):
|
||||
dependencies:
|
||||
react: 18.3.1
|
||||
react-style-singleton: 2.2.3(react@18.3.1)
|
||||
tslib: 2.8.1
|
||||
|
||||
react-remove-scroll@2.6.2(@types/react@19.0.7)(react@19.0.0):
|
||||
dependencies:
|
||||
react: 19.0.0
|
||||
@ -10995,6 +11385,15 @@ snapshots:
|
||||
optionalDependencies:
|
||||
'@types/react': 19.0.7
|
||||
|
||||
react-remove-scroll@2.6.2(react@18.3.1):
|
||||
dependencies:
|
||||
react: 18.3.1
|
||||
react-remove-scroll-bar: 2.3.8(react@18.3.1)
|
||||
react-style-singleton: 2.2.3(react@18.3.1)
|
||||
tslib: 2.8.1
|
||||
use-callback-ref: 1.3.3(react@18.3.1)
|
||||
use-sidecar: 1.1.3(react@18.3.1)
|
||||
|
||||
react-style-singleton@2.2.3(@types/react@19.0.7)(react@19.0.0):
|
||||
dependencies:
|
||||
get-nonce: 1.0.1
|
||||
@ -11003,6 +11402,16 @@ snapshots:
|
||||
optionalDependencies:
|
||||
'@types/react': 19.0.7
|
||||
|
||||
react-style-singleton@2.2.3(react@18.3.1):
|
||||
dependencies:
|
||||
get-nonce: 1.0.1
|
||||
react: 18.3.1
|
||||
tslib: 2.8.1
|
||||
|
||||
react@18.3.1:
|
||||
dependencies:
|
||||
loose-envify: 1.4.0
|
||||
|
||||
react@19.0.0: {}
|
||||
|
||||
read-cache@1.0.0:
|
||||
@ -11187,6 +11596,10 @@ snapshots:
|
||||
xmlchars: 2.2.0
|
||||
optional: true
|
||||
|
||||
scheduler@0.23.2:
|
||||
dependencies:
|
||||
loose-envify: 1.4.0
|
||||
|
||||
scheduler@0.25.0: {}
|
||||
|
||||
schema-dts@1.1.2(typescript@5.8.2):
|
||||
@ -11867,6 +12280,11 @@ snapshots:
|
||||
optionalDependencies:
|
||||
'@types/react': 19.0.7
|
||||
|
||||
use-callback-ref@1.3.3(react@18.3.1):
|
||||
dependencies:
|
||||
react: 18.3.1
|
||||
tslib: 2.8.1
|
||||
|
||||
use-sidecar@1.1.3(@types/react@19.0.7)(react@19.0.0):
|
||||
dependencies:
|
||||
detect-node-es: 1.1.0
|
||||
@ -11875,6 +12293,16 @@ snapshots:
|
||||
optionalDependencies:
|
||||
'@types/react': 19.0.7
|
||||
|
||||
use-sidecar@1.1.3(react@18.3.1):
|
||||
dependencies:
|
||||
detect-node-es: 1.1.0
|
||||
react: 18.3.1
|
||||
tslib: 2.8.1
|
||||
|
||||
use-sync-external-store@1.4.0(react@18.3.1):
|
||||
dependencies:
|
||||
react: 18.3.1
|
||||
|
||||
use-sync-external-store@1.4.0(react@19.0.0):
|
||||
dependencies:
|
||||
react: 19.0.0
|
||||
|
Loading…
Reference in New Issue
Block a user