repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/ai/prompts/core.ts
apps/docs/src/lib/ai/prompts/core.ts
export const corePrompt = ` <core> You are a precise, documentation-focused assistant. Your goal is to provide concise, verified answers to user questions about documentation. If the question is unclear, ask a brief follow-up. Never guess or invent information. <directives> <directive name="conciseness"> - Keep ans...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/fumadocs/cn.ts
apps/docs/src/lib/fumadocs/cn.ts
export { twMerge as cn } from "tailwind-merge";
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/constants/tags.ts
apps/docs/src/lib/constants/tags.ts
export interface Tag { name: string; description?: string; value: string | undefined; } export const tags: Tag[] = [ { name: "All", value: undefined, }, { name: "Style", description: "Only results about the style", value: "style", }, { name: "API", description: "Only results...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/constants/index.ts
apps/docs/src/lib/constants/index.ts
export * from "./category"; export * from "./tags";
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/constants/category.ts
apps/docs/src/lib/constants/category.ts
export const categories: Record<string, string> = { style: "Style", api: "API", };
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/openapi/index.ts
apps/docs/src/lib/openapi/index.ts
import { createOpenAPI } from "fumadocs-openapi/server"; import { env } from "@/env"; const API_URL = env.NEXT_PUBLIC_API_URL; const route = new URL(`${API_URL}/_docs/openapi.json`); export const openapi = createOpenAPI({ input: [route.toString()], });
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/tooling/eslint/react.ts
tooling/eslint/react.ts
import reactPlugin from "eslint-plugin-react"; import reactHooks from "eslint-plugin-react-hooks"; import { defineConfig } from "eslint/config"; export const reactConfig = defineConfig( { files: ["**/*.ts", "**/*.tsx"], ...reactPlugin.configs.flat.recommended, ...reactPlugin.configs.flat["jsx-runtime"], ...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/tooling/eslint/nextjs.ts
tooling/eslint/nextjs.ts
import nextPlugin from "@next/eslint-plugin-next"; import { defineConfig } from "eslint/config"; export const nextjsConfig = defineConfig({ files: ["**/*.ts", "**/*.tsx"], plugins: { "@next/next": nextPlugin, }, rules: { ...nextPlugin.configs.recommended.rules, ...nextPlugin.configs["core-web-vital...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/tooling/eslint/base.ts
tooling/eslint/base.ts
import * as path from "node:path"; import { includeIgnoreFile } from "@eslint/compat"; import eslint from "@eslint/js"; import importPlugin from "eslint-plugin-import"; import turboPlugin from "eslint-plugin-turbo"; import { defineConfig } from "eslint/config"; import tseslint from "typescript-eslint"; /** * All pack...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/tooling/tailwind/eslint.config.ts
tooling/tailwind/eslint.config.ts
import { defineConfig } from "eslint/config"; import { baseConfig } from "@repo/eslint-config/base"; export default defineConfig(baseConfig);
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/validators/eslint.config.ts
packages/validators/eslint.config.ts
import { defineConfig } from "eslint/config"; import { baseConfig } from "@repo/eslint-config/base"; export default defineConfig( { ignores: ["dist/**"], }, baseConfig, );
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/validators/src/index.ts
packages/validators/src/index.ts
import { z } from "zod/v4"; export const unused = z.string().describe( `This lib is currently not used as we use drizzle-zod for simple schemas But as your application grows and you need other validators to share with back and frontend, you can put them in here `, );
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/db/eslint.config.ts
packages/db/eslint.config.ts
import { defineConfig } from "eslint/config"; import { baseConfig } from "@repo/eslint-config/base"; export default defineConfig( { ignores: ["dist/**"], }, baseConfig, );
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/db/drizzle.config.ts
packages/db/drizzle.config.ts
import type { Config } from "drizzle-kit"; if (!process.env.POSTGRES_URL) { throw new Error("Missing POSTGRES_URL"); } const nonPoolingUrl = process.env.POSTGRES_URL.replace(":6543", ":5432"); export default { schema: "./src/schema.ts", dialect: "postgresql", dbCredentials: { url: nonPoolingUrl }, casing: ...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/db/src/client.ts
packages/db/src/client.ts
import { sql } from "@vercel/postgres"; import { drizzle } from "drizzle-orm/vercel-postgres"; import * as schema from "./schema"; export const db = drizzle({ client: sql, schema, casing: "snake_case", });
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/db/src/schema.ts
packages/db/src/schema.ts
import { sql } from "drizzle-orm"; import { pgTable } from "drizzle-orm/pg-core"; import { createInsertSchema } from "drizzle-zod"; import { z } from "zod/v4"; export const Post = pgTable("post", (t) => ({ id: t.uuid().notNull().primaryKey().defaultRandom(), title: t.varchar({ length: 256 }).notNull(), content: ...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/db/src/index.ts
packages/db/src/index.ts
export * from "drizzle-orm/sql"; export { alias } from "drizzle-orm/pg-core";
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/eslint.config.ts
packages/ui/eslint.config.ts
import { defineConfig } from "eslint/config"; import { baseConfig } from "@repo/eslint-config/base"; import { reactConfig } from "@repo/eslint-config/react"; export default defineConfig( { ignores: ["dist/**"], }, baseConfig, reactConfig, );
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/collapsible.tsx
packages/ui/src/collapsible.tsx
"use client"; import * as CollapsiblePrimitive from "@radix-ui/react-collapsible"; export function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>) { return <CollapsiblePrimitive.Root data-slot="collapsible" {...props} />; } export function CollapsibleTrigger({ ...props }: Reac...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/toast.tsx
packages/ui/src/toast.tsx
"use client"; import type { ToasterProps } from "sonner"; import { useTheme } from "next-themes"; import { Toaster as Sonner, toast } from "sonner"; export const Toaster = ({ ...props }: ToasterProps) => { const { resolvedTheme } = useTheme(); return ( <Sonner theme={resolvedTheme as "light" | "dark" |...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/label.tsx
packages/ui/src/label.tsx
"use client"; import { Label as LabelPrimitive } from "radix-ui"; import { cn } from "@repo/ui"; export function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) { return ( <LabelPrimitive.Root data-slot="label" className={cn( "flex items-center gap-2 tex...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/button.tsx
packages/ui/src/button.tsx
import type { VariantProps } from "class-variance-authority"; import { cva } from "class-variance-authority"; import { Slot as SlotPrimitive } from "radix-ui"; import { cn } from "@repo/ui"; export const buttonVariants = cva( "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dar...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/textarea.tsx
packages/ui/src/textarea.tsx
import type * as React from "react"; import { cn } from "@repo/ui"; export function Textarea({ className, ...props }: React.ComponentProps<"textarea">) { return ( <textarea data-slot="textarea" className={cn( "border-input placeholder:text-muted-foreground focus-visible:border-ring focus...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/dropdown-menu.tsx
packages/ui/src/dropdown-menu.tsx
"use client"; import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react"; import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui"; import { cn } from "@repo/ui"; export function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) { return <DropdownMenuPrimitiv...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/theme.tsx
packages/ui/src/theme.tsx
"use client"; import type * as React from "react"; import { MonitorIcon, MoonIcon, SunIcon } from "lucide-react"; import { ThemeProvider as NextThemesProvider, useTheme } from "next-themes"; import { Button } from "./button"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, }...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/field.tsx
packages/ui/src/field.tsx
"use client"; import type { VariantProps } from "class-variance-authority"; import { useMemo } from "react"; import { cva } from "class-variance-authority"; import { cn } from "@repo/ui"; import { Label } from "@repo/ui/label"; import { Separator } from "@repo/ui/separator"; export function FieldSet({ className, ...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/separator.tsx
packages/ui/src/separator.tsx
"use client"; import { Separator as SeparatorPrimitive } from "radix-ui"; import { cn } from "@repo/ui"; export function Separator({ className, orientation = "horizontal", decorative = true, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>) { return ( <SeparatorPrimitive.Root data...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/presence.tsx
packages/ui/src/presence.tsx
export * from "@radix-ui/react-presence";
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/card.tsx
packages/ui/src/card.tsx
import type * as React from "react"; import { cn } from "@repo/ui"; export function Card({ className, ...props }: React.ComponentProps<"div">) { return ( <div data-slot="card" className={cn( "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", classNam...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/hover-card.tsx
packages/ui/src/hover-card.tsx
"use client"; import type * as React from "react"; import * as HoverCardPrimitive from "@radix-ui/react-hover-card"; import { cn } from "@repo/ui"; export function HoverCard({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>) { return <HoverCardPrimitive.Root data-slot="hover-card" {...props} />;...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/badge.tsx
packages/ui/src/badge.tsx
import type { VariantProps } from "class-variance-authority"; import type * as React from "react"; import { Slot } from "@radix-ui/react-slot"; import { cva } from "class-variance-authority"; import { cn } from "@repo/ui"; export const badgeVariants = cva( "focus-visible:border-ring focus-visible:ring-ring/50 aria-...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/skeleton.tsx
packages/ui/src/skeleton.tsx
import { cn } from "@repo/ui"; export function Skeleton({ className, ...props }: React.ComponentProps<"div">) { return ( <div data-slot="skeleton" className={cn("bg-accent animate-pulse rounded-md", className)} {...props} /> ); }
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/button-group.tsx
packages/ui/src/button-group.tsx
import type { VariantProps } from "class-variance-authority"; import type * as React from "react"; import { Slot } from "@radix-ui/react-slot"; import { cva } from "class-variance-authority"; import { cn } from "@repo/ui"; import { Separator } from "@repo/ui/separator"; export const buttonGroupVariants = cva( "flex...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/tooltip.tsx
packages/ui/src/tooltip.tsx
"use client"; import type * as React from "react"; import * as TooltipPrimitive from "@radix-ui/react-tooltip"; import { cn } from "@repo/ui"; export function TooltipProvider({ delayDuration = 0, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>) { return ( <TooltipPrimitive.Provider ...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/video-player.tsx
packages/ui/src/video-player.tsx
import "@vidstack/react/player/styles/default/theme.css"; import "@vidstack/react/player/styles/default/layouts/video.css"; import "./video-player.css"; import type { ComponentProps } from "react"; import { MediaPlayer, MediaProvider } from "@vidstack/react"; import { defaultLayoutIcons, DefaultVideoLayout, } from...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/index.ts
packages/ui/src/index.ts
import { cx } from "class-variance-authority"; import { twMerge } from "tailwind-merge"; export const cn = (...inputs: Parameters<typeof cx>) => twMerge(cx(inputs));
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/shimmer.tsx
packages/ui/src/shimmer.tsx
"use client"; import type { CSSProperties, ElementType, JSX } from "react"; import { memo, useMemo } from "react"; import { motion } from "motion/react"; import { cn } from "@repo/ui"; interface TextShimmerProps { children: string; as?: ElementType; className?: string; duration?: number; spread?: number; }...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/input.tsx
packages/ui/src/input.tsx
import { cn } from "@repo/ui"; export function Input({ className, type, ...props }: React.ComponentProps<"input">) { return ( <input type={type} data-slot="input" className={cn( "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-for...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/input-group.tsx
packages/ui/src/input-group.tsx
"use client"; import type { VariantProps } from "class-variance-authority"; import type * as React from "react"; import { cva } from "class-variance-authority"; import { cn } from "@repo/ui"; import { Button } from "@repo/ui/button"; import { Input } from "@repo/ui/input"; import { Textarea } from "@repo/ui/textarea"...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
techwithanirudh/coolify-tweaks
https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/packages/ui/src/hooks/use-copy-to-clipboard.tsx
packages/ui/src/hooks/use-copy-to-clipboard.tsx
"use client"; import * as React from "react"; import { CopyCheckIcon } from "lucide-react"; import { toast } from "sonner"; export interface useCopyToClipboardProps { timeout?: number; } export function useCopyToClipboard({ timeout = 2000, }: useCopyToClipboardProps) { const [isCopied, setIsCopied] = React.use...
typescript
MIT
df774164e0d71a7c6be44cc517f1db20bf43b0f8
2026-01-05T05:01:00.273039Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/type-declarations.ts
src/type-declarations.ts
declare module 'blueimp-load-image' { export default function loadImage(url: File | Blob | string, callback: (img: HTMLImageElement | HTMLCanvasElement | Event) => void, {}): any; } declare module 'ndarray-gemm' { import ndarray from 'ndarray'; export default function matrixProduct(c: ndarray, a: ndarray, b: ...
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/shims-vue.d.ts
src/shims-vue.d.ts
declare module '*.vue' { import Vue from 'vue'; export default Vue; }
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/shims-tsx.d.ts
src/shims-tsx.d.ts
import Vue, { VNode } from 'vue'; declare global { namespace JSX { // tslint:disable no-empty-interface interface Element extends VNode {} // tslint:disable no-empty-interface interface ElementClass extends Vue {} interface IntrinsicElements { [elem: string]: any; } } }
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/main.ts
src/main.ts
import Vue from 'vue'; import App from './App.vue'; import router from './router'; import Vuetify from 'vuetify'; import '@babel/polyfill'; import 'whatwg-fetch'; import 'vuetify/dist/vuetify.min.css'; Vue.config.productionTip = false; Vue.use(Vuetify, { theme: { primary: '#2a6a96', secondary: '#69707a', ...
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/utils/runModel.ts
src/utils/runModel.ts
import { InferenceSession, Tensor } from 'onnxjs'; export function createSession(session: InferenceSession | undefined, hint: string): boolean { if (session) { return false; } session = new InferenceSession({backendHint: hint}); return true; } export async function warmupModel(model: Inferenc...
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/utils/math.ts
src/utils/math.ts
export function softmax(arr: number[]) : any { const C = Math.max(...arr); const d = arr.map((y) => Math.exp(y - C)).reduce((a, b) => a + b); return arr.map((value, index) => { return Math.exp(value - C) / d; }); } /** * Find mindpoint of two points */ export function getMidpoint(p1: number[], p2: num...
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/utils/yolo.ts
src/utils/yolo.ts
// Heavily derived from YAD2K (https://github.com/ModelDepot/tfjs-yolo-tiny-demo) import classNames from '../data/yolo_classes'; import * as yolo from './utils-yolo/yoloPostprocess'; import {Tensor} from 'onnxjs'; export const YOLO_ANCHORS = new Tensor(Float32Array.from([1.08, 1.19, 3.42, 4.41, 6.63, 11.38, 9.42, ...
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/utils/index.ts
src/utils/index.ts
import * as mathUtils from './math'; import * as imagenetUtils from './imagenet'; import * as runModelUtils from './runModel'; import * as yoloTransforms from './utils-yolo/yoloPostprocess'; import * as yolo from './yolo'; export { mathUtils, imagenetUtils, runModelUtils, yoloTransforms, yolo };
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/utils/imagenet.ts
src/utils/imagenet.ts
import _ from 'lodash'; import { imagenetClasses } from '../data/imagenet'; /** * Find top k imagenet classes */ export function imagenetClassesTopK(classProbabilities: any, k = 5) { const probs = _.isTypedArray(classProbabilities) ? Array.prototype.slice.call(classProbabilities) : classProbabilities; co...
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/utils/utils-yolo/yoloPostprocessTests.ts
src/utils/utils-yolo/yoloPostprocessTests.ts
// Important: Run this file in Node.js // If any utility function fails the test, it will throw an exception import {Tensor} from 'onnxjs'; import * as tensorTransformUtils from './yoloPostprocess'; scalarTest(); zerosTest(); linspaceTest(); rangeTest(); sigmoidTest(); expTest(); addTest(); subTest(); mulTest(); divT...
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/utils/utils-yolo/transpose.ts
src/utils/utils-yolo/transpose.ts
import {Tensor} from 'onnxjs'; import {NumberDataType} from './yoloPostprocess'; import {arrayCopyHelper, ShapeUtil, TypedArrayUtil} from './yoloPostprocessUtils'; export function transpose(x: Tensor, perm?: number[]): Tensor { const inputDims = x.dims ? x.dims : [x.data.length]; const rank = inputDims.length; ...
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/utils/utils-yolo/reshape.ts
src/utils/utils-yolo/reshape.ts
import {Tensor} from 'onnxjs'; import {ShapeUtil, TypedArrayUtil} from './yoloPostprocessUtils'; export function reshape(x: Tensor, shape: ReadonlyArray<number>): Tensor { const reshapedDims = ShapeUtil.calculateReshapedDims(x.dims, shape); const output = new Tensor(TypedArrayUtil.createTypedArray(x.type, x.data.l...
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/utils/utils-yolo/unary-op.ts
src/utils/utils-yolo/unary-op.ts
import {Tensor} from 'onnxjs'; import {TypedArrayUtil} from './yoloPostprocessUtils'; export function sigmoid(input: Tensor) : Tensor { const X = input.data; const Y = TypedArrayUtil.createTypedArray(input.type, X.length); for (let i = 0; i < X.length; i++) { Y[i] = (1 / (1 + Math.exp(-X[i] as number))); }...
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/utils/utils-yolo/yoloPostprocess.ts
src/utils/utils-yolo/yoloPostprocess.ts
import {Tensor} from 'onnxjs'; import {ShapeUtil, TypedArrayUtil, TypeUtil} from './yoloPostprocessUtils'; import * as unaryOps from './unary-op'; import {binaryOp} from './binary-op'; import {concat as concatImpl} from './concat'; import {softmax as softmaxImpl} from './softmax'; import {transpose as transposeImpl} fr...
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/utils/utils-yolo/yoloPostprocessUtils.ts
src/utils/utils-yolo/yoloPostprocessUtils.ts
import ndarray from 'ndarray'; import {Type, NumberDataType} from './yoloPostprocess'; export class BroadcastUtil { /** * Calculate the expected shape when broadcasting 2 tensors * @param a The shape of tensor A. Should be an array of positive integers * @param b The shape of tensor B. Should be ...
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/utils/utils-yolo/softmax.ts
src/utils/utils-yolo/softmax.ts
import {Tensor} from 'onnxjs'; import {NumberDataType} from './yoloPostprocess'; import {ShapeUtil, TypedArrayUtil} from './yoloPostprocessUtils'; export function softmax(x: Tensor, axis: number): Tensor { const inputDimensions = x.dims ? x.dims : [x.data.length]; const inputRank = inputDimensions.length; const...
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/utils/utils-yolo/concat.ts
src/utils/utils-yolo/concat.ts
import {Tensor} from 'onnxjs'; import {ShapeUtil, TypedArrayUtil} from './yoloPostprocessUtils'; export function concat(x: Tensor[], axis: number): Tensor { const input0 = x[0]; const inputShape = input0.dims ? input0.dims : [input0.data.length]; if (axis >= inputShape.length || axis < (-1 * inputShape.length)...
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/utils/utils-yolo/binary-op.ts
src/utils/utils-yolo/binary-op.ts
import {Tensor} from 'onnxjs'; import {NumberDataType, NumberOrBoolType} from './yoloPostprocess'; import {BroadcastUtil} from './yoloPostprocessUtils'; import ndarray from 'ndarray'; export function binaryOp( x: Tensor, y: Tensor, opLambda: (e1: number, e2: number) => number, resultType?: NumberOrBoolType): Tensor ...
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/router/index.ts
src/router/index.ts
import Vue from 'vue'; import Router from 'vue-router'; import Home from '../components/Home.vue'; import Resnet50 from '../components/models/Resnet50.vue'; import SqueezeNet from '../components/models/Squeezenet.vue'; import Emotion from '../components/models/Emotion.vue'; import Yolo from '../components/models/Yolo.v...
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/data/yolo_classes.ts
src/data/yolo_classes.ts
export default [ 'Aeroplane', 'Bicycle', 'Bird', 'Boat', 'Bottle', 'Bus', 'Car', 'Cat', 'Chair', 'Cow', 'Diningtable', 'Dog', 'Horse', 'Motorbike', 'Person', 'Pottedplant', 'Sheep', 'Sofa', 'Train', 'Tvmonitor' ];
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/data/sample-image-urls.ts
src/data/sample-image-urls.ts
export const RESNET50_IMAGE_URLS = [ { text: 'cat', value: 'https://i.imgur.com/CzXTtJV.jpg' }, { text: 'dog', value: 'https://i.imgur.com/OB0y6MR.jpg' }, { text: 'cheetah', value: 'https://farm2.staticflickr.com/1533/26541536141_41abe98db3_z_d.jpg' }, { text: 'bird', value: 'https://farm4.staticflickr.com/3075...
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/data/demo-titles.ts
src/data/demo-titles.ts
export const DEMO_TITLES: {[key: string]: string} = { resnet50: 'ResNet50, trained on ImageNet', squeezenet: 'SqueezeNet, trained on ImageNet', emotion_ferplus: 'FER+ Emotion, real-time emotion detection', yolo: 'Yolo, real-time object detection', mnist: 'MNIST, handwritten digit prediction' }; export c...
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
false
microsoft/onnxjs-demo
https://github.com/microsoft/onnxjs-demo/blob/ded8ace28352f94eebc0103ce57f88eb23be3e58/src/data/imagenet.ts
src/data/imagenet.ts
export const imagenetClasses: {[id: number]: string[]} = { '0': ['n01440764', 'tench'], '1': ['n01443537', 'goldfish'], '2': ['n01484850', 'great_white_shark'], '3': ['n01491361', 'tiger_shark'], '4': ['n01494475', 'hammerhead'], '5': ['n01496331', 'electric_ray'], '6': ['n01498041', 'stingray'], '7': [...
typescript
MIT
ded8ace28352f94eebc0103ce57f88eb23be3e58
2026-01-05T04:59:35.603868Z
true
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/tools/scripts/src/resolve-workspace-deps.ts
tools/scripts/src/resolve-workspace-deps.ts
import { readFile, writeFile } from 'node:fs/promises'; import { dirname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; import fg from 'fast-glob'; const rootDir = join(dirname(fileURLToPath(import.meta.url)), '../../..'); type PackageList = { [packageName: string]: string; }; type PackageMan...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/tools/testing-utils/mocks/withMatchMediaMock.d.ts
tools/testing-utils/mocks/withMatchMediaMock.d.ts
export declare const withMatchMediaMock: () => (viewport: { 'type'?: 'screen' | 'print'; 'width'?: number; 'prefers-color-scheme'?: 'light' | 'dark' | 'no-preference'; 'prefers-reduced-data'?: 'reduce' | 'no-preference'; 'prefers-reduced-motion'?: 'reduce' | 'no-preference'; }) => void;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/tools/testing-utils/mocks/withClipboardMock.d.ts
tools/testing-utils/mocks/withClipboardMock.d.ts
export declare const withClipboardMock: () => ( writeText: () => Promise<void>, ) => void;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/tools/testing-utils/mocks/withResizeObserverMock.d.ts
tools/testing-utils/mocks/withResizeObserverMock.d.ts
export declare const withResizeObserverMock: () => void;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/jest.config.ts
packages/fuselage-forms/jest.config.ts
import type { Config } from 'jest'; export default { preset: 'ts-jest', errorOnDeprecated: true, testMatch: ['<rootDir>/src/**/*.spec.[jt]s?(x)'], testEnvironment: 'jsdom', setupFilesAfterEnv: [ '<rootDir>/jest-setup.ts', 'testing-utils/setup/noErrorsLogged', ], moduleNameMapper: { '\\.scss$'...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/jest-setup.ts
packages/fuselage-forms/jest-setup.ts
import '@testing-library/jest-dom'; import { toHaveNoViolations } from 'jest-axe'; expect.extend(toHaveNoViolations); global.ResizeObserver = jest.fn().mockImplementation(() => ({ observe: jest.fn(), unobserve: jest.fn(), disconnect: jest.fn(), }));
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/.storybook/globals.d.ts
packages/fuselage-forms/.storybook/globals.d.ts
declare module '*.css' {}
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/.storybook/logo.svg.d.ts
packages/fuselage-forms/.storybook/logo.svg.d.ts
declare const path: string; export = path;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/.storybook/preview.tsx
packages/fuselage-forms/.storybook/preview.tsx
import { PaletteStyleTag } from '@rocket.chat/fuselage'; import breakpointTokens from '@rocket.chat/fuselage-tokens/breakpoints.json'; import surface from '@rocket.chat/fuselage-tokens/dist/surface.json'; import type { Preview } from '@storybook/react-webpack5'; import { themes } from 'storybook/theming'; import { useD...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/.storybook/main.ts
packages/fuselage-forms/.storybook/main.ts
import { dirname, join } from 'path'; import type { StorybookConfig } from '@storybook/react-webpack5'; export default { addons: [ getAbsolutePath('storybook-dark-mode'), getAbsolutePath('@storybook/addon-webpack5-compiler-swc'), getAbsolutePath('@storybook/addon-docs'), ], logLevel: 'silent', st...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/.storybook/DocsContainer.tsx
packages/fuselage-forms/.storybook/DocsContainer.tsx
import { DocsContainer as BaseContainer } from '@storybook/addon-docs/blocks'; import type { ComponentPropsWithoutRef } from 'react'; import { useEffect, useState } from 'react'; import { addons } from 'storybook/preview-api'; import { themes } from 'storybook/theming'; import { DARK_MODE_EVENT_NAME } from 'storybook-d...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/src/test.spec.tsx
packages/fuselage-forms/src/test.spec.tsx
import { composeStories } from '@storybook/react-webpack5'; import { render } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { axe } from 'jest-axe'; import * as _stories from './Field/Field.stories'; // TODO: Fix select a11y violations // "Interactive controls must not be ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/src/index.ts
packages/fuselage-forms/src/index.ts
export * from './Inputs'; export * from './Field';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/src/Inputs/withLabelHelpers.tsx
packages/fuselage-forms/src/Inputs/withLabelHelpers.tsx
// Disabled this flag since we need to wrap multiple components /* eslint-disable react/no-multi-comp */ import type { ReactNode, ForwardRefExoticComponent } from 'react'; import { VisuallyHidden } from 'react-aria'; import { useFieldReferencedByInput, useFieldReferencedByLabel, useFieldWrappedByInputLabel, } fr...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/src/Inputs/WrappedInputComponents.ts
packages/fuselage-forms/src/Inputs/WrappedInputComponents.ts
import { TextInput as TextInputComponent, Select as SelectComponent, CheckBox as CheckBoxComponent, ToggleSwitch as ToggleSwitchComponent, RadioButton as RadioButtonComponent, EmailInput as EmailInputComponent, PasswordInput as PasswordInputComponent, SearchInput as SearchInputComponent, TextAreaInput...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/src/Inputs/index.ts
packages/fuselage-forms/src/Inputs/index.ts
export * from './WrappedInputComponents';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/src/Field/FieldContext.ts
packages/fuselage-forms/src/Field/FieldContext.ts
import { useSafeRefCallback } from '@rocket.chat/fuselage-hooks'; import type { ReactNode, RefCallback } from 'react'; import { createContext, useCallback, useContext, useEffect, useMemo, } from 'react'; type FieldContextValue = { setDescriptor: (type: LabelTypes, unregister?: boolean) => void; setLabel:...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/src/Field/Field.stories.tsx
packages/fuselage-forms/src/Field/Field.stories.tsx
import type { StoryFn, Meta } from '@storybook/react-webpack5'; import { TextInput, EmailInput, PasswordInput, SearchInput, TextAreaInput, Select, CheckBox, ToggleSwitch, RadioButton, TelephoneInput, NumberInput, UrlInput, } from '../Inputs'; import { Field, FieldDescription, FieldError,...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/src/Field/FieldError.tsx
packages/fuselage-forms/src/Field/FieldError.tsx
import { FieldError as FieldErrorComponent } from '@rocket.chat/fuselage'; import type { ReactNode, ComponentProps } from 'react'; import { useFieldDescriptorId } from './FieldContext'; type FieldErrorProps = { children: ReactNode } & ComponentProps< typeof FieldErrorComponent >; const FieldError = ({ children, .....
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/src/Field/FieldProvider.tsx
packages/fuselage-forms/src/Field/FieldProvider.tsx
import { Emitter } from '@rocket.chat/emitter'; import type { ReactNode } from 'react'; import { useState, useCallback } from 'react'; import { useId } from 'react-aria'; import type { LabelTypes, FieldType } from './FieldContext'; import { FieldContext } from './FieldContext'; type FieldProviderProps = { children: R...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/src/Field/FieldHint.tsx
packages/fuselage-forms/src/Field/FieldHint.tsx
import { FieldHint as FieldHintComponent } from '@rocket.chat/fuselage'; import type { ReactNode, ComponentProps } from 'react'; import { useFieldDescriptorId } from './FieldContext'; type FieldHintProps = { children: ReactNode } & ComponentProps< typeof FieldHintComponent >; const FieldHint = ({ children, ...prop...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/src/Field/FieldDescription.tsx
packages/fuselage-forms/src/Field/FieldDescription.tsx
import { FieldDescription as FieldDescriptionComponent } from '@rocket.chat/fuselage'; import type { ReactNode, ComponentProps } from 'react'; import { useFieldDescriptorId } from './FieldContext'; type FieldDescriptionProps = { children: ReactNode } & ComponentProps< typeof FieldDescriptionComponent >; const Fiel...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/src/Field/index.ts
packages/fuselage-forms/src/Field/index.ts
export { default as Field } from './Field'; export { default as FieldProvider } from './FieldProvider'; export { default as FieldDescription } from './FieldDescription'; export { default as FieldError } from './FieldError'; export { default as FieldHint } from './FieldHint'; export * from './FieldContext'; export * f...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/src/Field/Field.tsx
packages/fuselage-forms/src/Field/Field.tsx
import { Field as FieldComponent } from '@rocket.chat/fuselage'; import type { ComponentProps, ReactNode } from 'react'; import FieldProvider from './FieldProvider'; type FieldProps = { children: ReactNode } & ComponentProps< typeof FieldComponent >; function Field({ children, ...props }: FieldProps) { return ( ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/src/Field/Label/HiddenLabel.tsx
packages/fuselage-forms/src/Field/Label/HiddenLabel.tsx
import { FieldLabel as FieldLabelComponent } from '@rocket.chat/fuselage'; import type { ComponentProps } from 'react'; import { useFieldLabel } from '../FieldContext'; type HiddenLabelProps = ComponentProps<typeof FieldLabelComponent>; const HiddenLabel = ({ children, ...props }: HiddenLabelProps) => { const [lab...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/src/Field/Label/LabelFor.tsx
packages/fuselage-forms/src/Field/Label/LabelFor.tsx
import { FieldLabel as FieldLabelComponent } from '@rocket.chat/fuselage'; import type { ComponentProps } from 'react'; import { useFieldLabel } from '../FieldContext'; type LabelForProps = ComponentProps<typeof FieldLabelComponent>; const LabelFor = ({ children, ...props }: LabelForProps) => { const [labelRef, id...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/src/Field/Label/FieldLabel.tsx
packages/fuselage-forms/src/Field/Label/FieldLabel.tsx
import type { FieldLabel as FieldLabelComponent } from '@rocket.chat/fuselage'; import { type ComponentPropsWithoutRef } from 'react'; import { useFieldFieldType } from '../FieldContext'; import HiddenLabel from './HiddenLabel'; import LabelFor from './LabelFor'; import ReferencedLabel from './ReferencedLabel'; type...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/src/Field/Label/ReferencedLabel.tsx
packages/fuselage-forms/src/Field/Label/ReferencedLabel.tsx
import { FieldLabel as FieldLabelComponent } from '@rocket.chat/fuselage'; import type { ComponentProps } from 'react'; import { useFieldLabel } from '../FieldContext'; type ReferencedLabelProps = ComponentProps<typeof FieldLabelComponent>; const ReferencedLabel = ({ children, ...props }: ReferencedLabelProps) => { ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-forms/src/Field/Label/index.ts
packages/fuselage-forms/src/Field/Label/index.ts
export { default as LabelFor } from './LabelFor'; export { default as HiddenLabel } from './HiddenLabel'; export { default as ReferencedLabel } from './ReferencedLabel'; export { default as FieldLabel } from './FieldLabel';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-toastbar/jest.config.ts
packages/fuselage-toastbar/jest.config.ts
import type { Config } from 'jest'; export default { preset: 'ts-jest', errorOnDeprecated: true, testMatch: ['<rootDir>/src/**/*.spec.[jt]s?(x)'], testEnvironment: 'jsdom', setupFilesAfterEnv: [ '<rootDir>/jest-setup.ts', 'testing-utils/setup/noErrorsLogged', ], } satisfies Config;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-toastbar/jest-setup.ts
packages/fuselage-toastbar/jest-setup.ts
import '@testing-library/jest-dom';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-toastbar/.storybook/globals.d.ts
packages/fuselage-toastbar/.storybook/globals.d.ts
declare module '*.css' {}
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-toastbar/.storybook/logo.svg.d.ts
packages/fuselage-toastbar/.storybook/logo.svg.d.ts
declare const path: string; export = path;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-toastbar/.storybook/preview.tsx
packages/fuselage-toastbar/.storybook/preview.tsx
import surface from '@rocket.chat/fuselage-tokens/dist/surface.json'; import { DarkModeProvider } from '@rocket.chat/layout'; import type { Preview } from '@storybook/react-webpack5'; import { Suspense } from 'react'; import { themes } from 'storybook/theming'; import { useDarkMode } from 'storybook-dark-mode'; import...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-toastbar/.storybook/main.ts
packages/fuselage-toastbar/.storybook/main.ts
import { dirname, join } from 'path'; import type { StorybookConfig } from '@storybook/react-webpack5'; const config: StorybookConfig = { addons: [ getAbsolutePath('storybook-dark-mode'), getAbsolutePath('@storybook/addon-webpack5-compiler-swc'), getAbsolutePath('@storybook/addon-docs'), ], stories...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-toastbar/.storybook/DocsContainer.tsx
packages/fuselage-toastbar/.storybook/DocsContainer.tsx
import { DocsContainer as BaseContainer } from '@storybook/addon-docs/blocks'; import type { ComponentPropsWithoutRef } from 'react'; import { useEffect, useState } from 'react'; import { addons } from 'storybook/preview-api'; import { themes } from 'storybook/theming'; import { DARK_MODE_EVENT_NAME } from 'storybook-d...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage-toastbar/src/testing.ts
packages/fuselage-toastbar/src/testing.ts
export { render } from '@testing-library/react';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false