text stringlengths 21 253k | id stringlengths 25 123 | metadata dict | __index_level_0__ int64 0 181 |
|---|---|---|---|
import { Textarea } from "@/registry/default/ui/textarea"
export default function TextareaDisabled() {
return <Textarea placeholder="Type your message here." disabled />
}
| shadcn-ui/ui/apps/www/registry/default/example/textarea-disabled.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/example/textarea-disabled.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 47
} | 71 |
import { Badge } from "@/registry/new-york/ui/badge"
export default function BadgeDestructive() {
return <Badge variant="destructive">Destructive</Badge>
}
| shadcn-ui/ui/apps/www/registry/new-york/example/badge-destructive.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/new-york/example/badge-destructive.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 52
} | 72 |
import { Button } from "@/registry/new-york/ui/button"
export default function ButtonOutline() {
return <Button variant="outline">Outline</Button>
}
| shadcn-ui/ui/apps/www/registry/new-york/example/button-outline.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/new-york/example/button-outline.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 47
} | 73 |
"use client"
import { Checkbox } from "@/registry/new-york/ui/checkbox"
export default function CheckboxDemo() {
return (
<div className="flex items-center space-x-2">
<Checkbox id="terms" />
<label
htmlFor="terms"
className="text-sm font-medium leading-none peer-disabled:cursor-not-... | shadcn-ui/ui/apps/www/registry/new-york/example/checkbox-demo.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/new-york/example/checkbox-demo.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 176
} | 74 |
"use client"
import { zodResolver } from "@hookform/resolvers/zod"
import { CalendarIcon } from "@radix-ui/react-icons"
import { format } from "date-fns"
import { useForm } from "react-hook-form"
import { z } from "zod"
import { cn } from "@/lib/utils"
import { toast } from "@/registry/new-york/hooks/use-toast"
impor... | shadcn-ui/ui/apps/www/registry/new-york/example/date-picker-form.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/new-york/example/date-picker-form.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 1610
} | 75 |
import {
InputOTP,
InputOTPGroup,
InputOTPSeparator,
InputOTPSlot,
} from "@/registry/new-york/ui/input-otp"
export default function InputOTPDemo() {
return (
<InputOTP maxLength={6}>
<InputOTPGroup>
<InputOTPSlot index={0} />
<InputOTPSlot index={1} />
<InputOTPSlot index={... | shadcn-ui/ui/apps/www/registry/new-york/example/input-otp-demo.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/new-york/example/input-otp-demo.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 265
} | 76 |
import {
ResizableHandle,
ResizablePanel,
ResizablePanelGroup,
} from "@/registry/new-york/ui/resizable"
export default function ResizableDemo() {
return (
<ResizablePanelGroup
direction="horizontal"
className="max-w-md rounded-lg border md:min-w-[450px]"
>
<ResizablePanel defaultSize... | shadcn-ui/ui/apps/www/registry/new-york/example/resizable-demo-with-handle.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/new-york/example/resizable-demo-with-handle.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 524
} | 77 |
import { Label } from "@/registry/new-york/ui/label"
import { Switch } from "@/registry/new-york/ui/switch"
export default function SwitchDemo() {
return (
<div className="flex items-center space-x-2">
<Switch id="airplane-mode" />
<Label htmlFor="airplane-mode">Airplane Mode</Label>
</div>
)
}... | shadcn-ui/ui/apps/www/registry/new-york/example/switch-demo.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/new-york/example/switch-demo.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 123
} | 78 |
import { UnderlineIcon } from "@radix-ui/react-icons"
import { Toggle } from "@/registry/new-york/ui/toggle"
export default function ToggleDisabled() {
return (
<Toggle aria-label="Toggle italic" disabled>
<UnderlineIcon className="h-4 w-4" />
</Toggle>
)
}
| shadcn-ui/ui/apps/www/registry/new-york/example/toggle-disabled.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/new-york/example/toggle-disabled.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 106
} | 79 |
import { cn } from "@/lib/utils"
function Skeleton({
className,
...props
}: React.HTMLAttributes<HTMLDivElement>) {
return (
<div
className={cn("animate-pulse rounded-md bg-primary/10", className)}
{...props}
/>
)
}
export { Skeleton }
| shadcn-ui/ui/apps/www/registry/new-york/ui/skeleton.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/new-york/ui/skeleton.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 107
} | 80 |
import { Registry } from "@/registry/schema"
export const examples: Registry = [
{
name: "accordion-demo",
type: "registry:example",
registryDependencies: ["accordion"],
files: ["example/accordion-demo.tsx"],
},
{
name: "alert-demo",
type: "registry:example",
registryDependencies: ["a... | shadcn-ui/ui/apps/www/registry/registry-examples.ts | {
"file_path": "shadcn-ui/ui/apps/www/registry/registry-examples.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 9184
} | 81 |
import path from "path"
import { Config } from "@/src/utils/get-config"
import {
registryBaseColorSchema,
registryIndexSchema,
registryItemWithContentSchema,
registryWithContentSchema,
stylesSchema,
} from "@/src/utils/registry/schema"
import { HttpsProxyAgent } from "https-proxy-agent"
import fetch from "nod... | shadcn-ui/ui/packages/cli/src/utils/registry/index.ts | {
"file_path": "shadcn-ui/ui/packages/cli/src/utils/registry/index.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 1335
} | 82 |
import { Inter } from 'next/font/google'
import './globals.css'
const inter = Inter({ subsets: ['latin'] })
export const metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
}
export default function RootLayout({ children }) {
return (
<html lang="en">
<body className={... | shadcn-ui/ui/packages/cli/test/fixtures/next-app-js/app/layout.js | {
"file_path": "shadcn-ui/ui/packages/cli/test/fixtures/next-app-js/app/layout.js",
"repo_id": "shadcn-ui/ui",
"token_count": 128
} | 83 |
import path from "path"
import { describe, expect, test } from "vitest"
import { getTsConfigAliasPrefix } from "../../src/utils/get-project-info"
describe("get ts config alias prefix", async () => {
test.each([
{
name: "next-app",
prefix: "@",
},
{
name: "next-app-src",
prefix: "... | shadcn-ui/ui/packages/cli/test/utils/get-ts-config-alias-prefix.test.ts | {
"file_path": "shadcn-ui/ui/packages/cli/test/utils/get-ts-config-alias-prefix.test.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 335
} | 84 |
import path from "path"
import { Config } from "@/src/utils/get-config"
import { handleError } from "@/src/utils/handle-error"
import { highlighter } from "@/src/utils/highlighter"
import { logger } from "@/src/utils/logger"
import {
registryBaseColorSchema,
registryIndexSchema,
registryItemFileSchema,
registry... | shadcn-ui/ui/packages/shadcn/src/utils/registry/index.ts | {
"file_path": "shadcn-ui/ui/packages/shadcn/src/utils/registry/index.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 4553
} | 85 |
import { promises as fs } from "fs"
import path from "path"
import { Config } from "@/src/utils/get-config"
import { highlighter } from "@/src/utils/highlighter"
import { spinner } from "@/src/utils/spinner"
import {
_createSourceFile,
_getQuoteChar,
} from "@/src/utils/updaters/update-tailwind-config"
import { Obj... | shadcn-ui/ui/packages/shadcn/src/utils/updaters/update-tailwind-content.ts | {
"file_path": "shadcn-ui/ui/packages/shadcn/src/utils/updaters/update-tailwind-content.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 1145
} | 86 |
/**
* By default, Remix will handle generating the HTTP Response for you.
* You are free to delete this file if you'd like to, but if you ever want it revealed again, you can run `npx remix reveal`
* For more information, see https://remix.run/docs/en/main/file-conventions/entry.server
*/
import { PassThrough } f... | shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/app/entry.server.tsx | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/app/entry.server.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 1283
} | 87 |
import { validateEmail } from "./utils";
test("validateEmail returns false for non-emails", () => {
expect(validateEmail(undefined)).toBe(false);
expect(validateEmail(null)).toBe(false);
expect(validateEmail("")).toBe(false);
expect(validateEmail("not-an-email")).toBe(false);
expect(validateEmail("n@")).toBe... | shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/app/utils.test.ts | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/app/utils.test.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 152
} | 88 |
import { Project, SyntaxKind } from "ts-morph"
import { beforeEach, describe, expect, test } from "vitest"
import {
buildTailwindThemeColorsFromCssVars,
nestSpreadProperties,
transformTailwindConfig,
unnestSpreadProperties,
} from "../../../src/utils/updaters/update-tailwind-config"
const SHARED_CONFIG = {
... | shadcn-ui/ui/packages/shadcn/test/utils/updaters/update-tailwind-config.test.ts | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/utils/updaters/update-tailwind-config.test.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 13043
} | 89 |
"use client"
import React, { useEffect, useState } from "react"
import { AnimatePresence, motion } from "framer-motion"
const AdBanner = () => {
const [isVisible, setIsVisible] = useState(true)
useEffect(() => {
const timer = setTimeout(() => {
setIsVisible(false)
}, 10000) // Close after 10 second... | DarkInventor/easy-ui/components/ad-banner.tsx | {
"file_path": "DarkInventor/easy-ui/components/ad-banner.tsx",
"repo_id": "DarkInventor/easy-ui",
"token_count": 1850
} | 0 |
"use client";
import { AnimatePresence, motion } from "framer-motion";
import React, { useState } from "react";
import { useTheme } from 'next-themes';
interface AnimatedSubscribeButtonProps {
buttonTextColor?: string;
subscribeStatus: boolean;
initialText: React.ReactElement | string;
changeText: React.React... | DarkInventor/easy-ui/components/magicui/animated-subscribe-button.tsx | {
"file_path": "DarkInventor/easy-ui/components/magicui/animated-subscribe-button.tsx",
"repo_id": "DarkInventor/easy-ui",
"token_count": 985
} | 1 |
// "use client"
// import Link from "next/link"
// import { CheckIcon, ChevronRight, ChevronRightIcon } from "lucide-react"
// import { siteConfig } from "@/config/site"
// import { Button, buttonVariants } from "@/components/ui/button"
// import { Icons } from "@/components/icons"
// import { MainNav } from "@/compo... | DarkInventor/easy-ui/components/site-header.tsx | {
"file_path": "DarkInventor/easy-ui/components/site-header.tsx",
"repo_id": "DarkInventor/easy-ui",
"token_count": 6194
} | 2 |
"use client";
import type { ReactNode } from "react";
import { ThemeProvider } from "@/components/theme-provider";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
interface ProvidersProps {
children: ReactNode;
}
export default function Providers({ children }: ProvidersProps) {
cons... | alifarooq9/rapidlaunch/apps/www/src/components/providers.tsx | {
"file_path": "alifarooq9/rapidlaunch/apps/www/src/components/providers.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 288
} | 3 |
"use client";
import { SubscribeBtn } from "@/app/(app)/(user)/org/billing/_components/subscribe-btn";
import {
AlertDialog,
AlertDialogCancel,
AlertDialogContent,
AlertDialogDescription,
AlertDialogFooter,
AlertDialogHeader,
AlertDialogTitle,
AlertDialogTrigger,
} from "@/components/ui... | alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/org/billing/_components/switch-plan-modal.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/org/billing/_components/switch-plan-modal.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 1461
} | 4 |
import { AppPageShell } from "@/app/(app)/_components/page-shell";
import { orgMembersPageConfig } from "@/app/(app)/(user)/org/members/_constants/page-config";
import { getPaginatedOrgMembersQuery } from "@/server/actions/organization/queries";
import type { SearchParams } from "@/types/data-table";
import { z } from ... | alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/org/members/page.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/org/members/page.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 473
} | 5 |
import { Button } from "@/components/ui/button";
import {
Dialog,
DialogClose,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
} from "@/components/ui/dialog";
import {
Form,
FormControl,
FormDescription,
FormField,
FormItem,
FormLabel,
... | alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/_components/create-org-form.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/_components/create-org-form.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 3539
} | 6 |
import { Icons } from "@/components/ui/icons";
import { siteUrls } from "@/config/urls";
import Link from "next/link";
import { cn } from "@/lib/utils";
import { UserDropdown } from "@/app/(app)/_components/user-dropdown";
import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area";
import { SidebarNav } from "... | alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/_components/sidebar.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/_components/sidebar.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 2427
} | 7 |
import React from "react";
import { AppLayoutShell } from "@/app/(app)/_components/layout-shell";
import { sidebarConfig } from "@/config/sidebar";
type AppLayoutProps = {
children: React.ReactNode;
};
export default function AdminLayout({ children }: AppLayoutProps) {
// these are the ids of the sidebar nav ... | alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/admin/layout.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/admin/layout.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 245
} | 8 |
"use client";
import { Button } from "@/components/ui/button";
export const DownloadCsvBtn = ({ data }: { data: string }) => {
const downloadCsv = () => {
const blob = new Blob([data], { type: "text/csv" });
const url = URL.createObjectURL(blob);
const link = document.createElement("a");
... | alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/admin/waitlist/_components/download-csv-btn.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/admin/waitlist/_components/download-csv-btn.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 244
} | 9 |
import { WebPageWrapper } from "@/app/(web)/_components/general-components";
import { Badge } from "@/components/ui/badge";
import { format } from "date-fns";
import Image from "next/image";
import { notFound } from "next/navigation";
import { type Metadata } from "next";
import { blogs } from "@/app/source";
import { ... | alifarooq9/rapidlaunch/starterkits/saas/src/app/(web)/blogs/[...slug]/page.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(web)/blogs/[...slug]/page.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 1761
} | 10 |
"use client";
import { useForm } from "react-hook-form";
import { z } from "zod";
import { zodResolver } from "@hookform/resolvers/zod";
import {
Form,
FormControl,
FormDescription,
FormField,
FormItem,
FormLabel,
FormMessage,
} from "@/components/ui/form";
import Link from "next/link";
imp... | alifarooq9/rapidlaunch/starterkits/saas/src/app/auth/_components/auth-form.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/auth/_components/auth-form.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 3059
} | 11 |
import { siteUrls } from "@/config/urls";
import type { MetadataRoute } from "next";
export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: "*",
allow: "/",
},
sitemap: `${siteUrls.publicUrl}/sitemap.xml`,
};
}
| alifarooq9/rapidlaunch/starterkits/saas/src/app/robots.ts | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/robots.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 136
} | 12 |
import * as React from "react";
import { cva, type VariantProps } from "class-variance-authority";
import { cn } from "@/lib/utils";
const badgeVariants = cva(
"inline-flex items-center rounded-md border font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
{
... | alifarooq9/rapidlaunch/starterkits/saas/src/components/ui/badge.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/components/ui/badge.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 799
} | 13 |
/**
* This file is used to store the testimonials for the homepage.
* The testimonials are stored as an array of arrays of arrays.
* Each array represents a column of testimonials.
* Each inner array represents a row of testimonials.
* Each testimonial is an object with a body and author property.
*
* @note add ... | alifarooq9/rapidlaunch/starterkits/saas/src/config/testimonials.ts | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/config/testimonials.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 2495
} | 14 |
"use server";
import { pricingPlans } from "@/config/pricing";
import { getOrgSubscription } from "@/server/actions/subscription/query";
import { db } from "@/server/db";
import { subscriptions, webhookEvents } from "@/server/db/schema";
import { configureLemonSqueezy } from "@/server/lemonsqueezy";
import { webhookHa... | alifarooq9/rapidlaunch/starterkits/saas/src/server/actions/subscription/mutations.ts | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/server/actions/subscription/mutations.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 3756
} | 15 |
/**
* Check if the value is an object.
*/
function isObject(value: unknown): value is Record<string, unknown> {
return typeof value === "object" && value !== null;
}
/**
* Typeguard to check if the object has a 'meta' property
* and that the 'meta' property has the correct shape.
*/
export function webhookHas... | alifarooq9/rapidlaunch/starterkits/saas/src/validations/lemonsqueezy.ts | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/validations/lemonsqueezy.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 643
} | 16 |
import Main from '@/components/dashboard/main';
import { redirect } from 'next/navigation';
import { getUserDetails, getUser } from '@/utils/supabase/queries';
import { createClient } from '@/utils/supabase/server';
export default async function Account() {
const supabase = createClient();
const [user, userDetails... | horizon-ui/shadcn-nextjs-boilerplate/app/dashboard/main/page.tsx | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/app/dashboard/main/page.tsx",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 167
} | 17 |
'use client';
import {Button} from '@/components/ui/button';
import { signInWithOAuth } from '@/utils/auth-helpers/client';
import { type Provider } from '@supabase/supabase-js';
import { FcGoogle } from "react-icons/fc";
import { useState } from 'react';
import { Input } from '../ui/input';
type OAuthProviders = {
... | horizon-ui/shadcn-nextjs-boilerplate/components/auth-ui/OauthSignIn.tsx | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/components/auth-ui/OauthSignIn.tsx",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 645
} | 18 |
'use client';
export default function Footer() {
return (
<div className="z-[3] flex flex-col items-center justify-between mt-auto pb-[30px] md:px-0 lg:flex-row">
<ul className="flex flex-row">
<li className="mr-4 md:mr-[44px]">
<a
className="text-[10px] font-medium text-zinc-... | horizon-ui/shadcn-nextjs-boilerplate/components/footer/FooterAuthDefault.tsx | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/components/footer/FooterAuthDefault.tsx",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 880
} | 19 |
import endent from 'endent';
import {
createParser,
ParsedEvent,
ReconnectInterval,
} from 'eventsource-parser';
const createPrompt = (topic: string, words: string, essayType: string) => {
const data = (topic: any, words: string, essayType: string) => {
return endent`
You are an expert formal essay w... | horizon-ui/shadcn-nextjs-boilerplate/utils/streams/essayStream.ts | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/utils/streams/essayStream.ts",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 1008
} | 20 |
#!/bin/sh
# Disable concurent to run `check-types` after ESLint in lint-staged
cd "$(dirname "$0")/.." && npx --no lint-staged --concurrent false
| ixartz/SaaS-Boilerplate/.husky/pre-commit | {
"file_path": "ixartz/SaaS-Boilerplate/.husky/pre-commit",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 54
} | 21 |
import { defineConfig } from 'drizzle-kit';
export default defineConfig({
out: './migrations',
schema: './src/models/Schema.ts',
dialect: 'postgresql',
dbCredentials: {
url: process.env.DATABASE_URL ?? '',
},
verbose: true,
strict: true,
});
| ixartz/SaaS-Boilerplate/drizzle.config.ts | {
"file_path": "ixartz/SaaS-Boilerplate/drizzle.config.ts",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 99
} | 22 |
import type { MetadataRoute } from 'next';
import { getBaseUrl } from '@/utils/Helpers';
export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: '*',
allow: '/',
},
sitemap: `${getBaseUrl()}/sitemap.xml`,
};
}
| ixartz/SaaS-Boilerplate/src/app/robots.ts | {
"file_path": "ixartz/SaaS-Boilerplate/src/app/robots.ts",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 108
} | 23 |
import type * as LabelPrimitive from '@radix-ui/react-label';
import { Slot } from '@radix-ui/react-slot';
import * as React from 'react';
import type { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
import { Controller, FormProvider } from 'react-hook-form';
import { Label } from '@/components/ui/l... | ixartz/SaaS-Boilerplate/src/components/ui/form.tsx | {
"file_path": "ixartz/SaaS-Boilerplate/src/components/ui/form.tsx",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 1253
} | 24 |
import Link from 'next/link';
import { useTranslations } from 'next-intl';
import React from 'react';
export const CenteredFooter = (props: {
logo: React.ReactNode;
name: string;
iconList: React.ReactNode;
legalLinks: React.ReactNode;
children: React.ReactNode;
}) => {
const t = useTranslations('Footer');
... | ixartz/SaaS-Boilerplate/src/features/landing/CenteredFooter.tsx | {
"file_path": "ixartz/SaaS-Boilerplate/src/features/landing/CenteredFooter.tsx",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 849
} | 25 |
import type { PLAN_ID } from '@/utils/AppConfig';
import type { EnumValues } from './Enum';
export type PlanId = EnumValues<typeof PLAN_ID>;
export const BILLING_INTERVAL = {
MONTH: 'month',
YEAR: 'year',
} as const;
export type BillingInterval = EnumValues<typeof BILLING_INTERVAL>;
export const SUBSCRIPTION_S... | ixartz/SaaS-Boilerplate/src/types/Subscription.ts | {
"file_path": "ixartz/SaaS-Boilerplate/src/types/Subscription.ts",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 516
} | 26 |
const DEFAULT_ATTRS = require('./tools/build-icons/render/default-attrs.json');
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
extends: ['airbnb-base', 'prettier'],
plugins: ['import', '@html-eslint'],
rules: {
'no-console': 'off',
'no-param-reassign': 'off',
'no-sh... | lucide-icons/lucide/.eslintrc.js | {
"file_path": "lucide-icons/lucide/.eslintrc.js",
"repo_id": "lucide-icons/lucide",
"token_count": 1020
} | 27 |
export type IconContent = [icon: string, src: string];
async function generateZip(icons: IconContent[]) {
const JSZip = (await import('jszip')).default;
const zip = new JSZip();
const addingZipPromises = icons.map(([name, src]) => zip.file(`${name}.svg`, src));
await Promise.all(addingZipPromises);
retur... | lucide-icons/lucide/docs/.vitepress/lib/generateZip.ts | {
"file_path": "lucide-icons/lucide/docs/.vitepress/lib/generateZip.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 124
} | 28 |
import Fuse from 'fuse.js';
import { shallowRef, computed, Ref } from 'vue';
const useSearch = <T>(
query: Ref<string>,
collection: Ref<T[]>,
keys: Fuse.FuseOptionKeyObject<T>[] = [],
) => {
const index = shallowRef(
new Fuse(collection.value, {
threshold: 0.2,
keys,
}),
);
const resul... | lucide-icons/lucide/docs/.vitepress/theme/composables/useSearch.ts | {
"file_path": "lucide-icons/lucide/docs/.vitepress/theme/composables/useSearch.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 346
} | 29 |
import App from './App.js?raw'
import styles from '../../../basics/examples/styles.css?raw'
import IconCss from './icon.css?raw'
const files = {
'App.js': {
code: App,
active: true,
},
'icon.css': {
code: IconCss,
readOnly: false,
},
'styles.css': {
code: styles,
hidden: true
},
}
... | lucide-icons/lucide/docs/guide/advanced/examples/filled-icon-example/files.ts | {
"file_path": "lucide-icons/lucide/docs/guide/advanced/examples/filled-icon-example/files.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 142
} | 30 |
import { Smile } from "lucide-react";
function App() {
return (
<div className="app">
<Smile color="#3e9392" />
</div>
);
}
export default App; | lucide-icons/lucide/docs/guide/basics/examples/color-icon/App.js | {
"file_path": "lucide-icons/lucide/docs/guide/basics/examples/color-icon/App.js",
"repo_id": "lucide-icons/lucide",
"token_count": 68
} | 31 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<style>
.path {
stroke: #2D3748;
}
@media (prefers-color-scheme: dark) {
.path {
stro... | lucide-icons/lucide/docs/public/favicon.svg | {
"file_path": "lucide-icons/lucide/docs/public/favicon.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 354
} | 32 |
<svg width="36" height="30" viewBox="0 0 24 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="m14.2 0-2.7 4.6L9 0H0l11.5 20L23.1 0h-8.9Z" fill="#41B883"/>
<path d="m14.2 0-2.7 4.6L9 0H4.6l7 12 6.9-12h-4.3Z" fill="#34495E"/>
</svg>
| lucide-icons/lucide/docs/public/framework-logos/vue.svg | {
"file_path": "lucide-icons/lucide/docs/public/framework-logos/vue.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 138
} | 33 |
import path from 'path';
import fs from 'fs';
import { getIconMetaData } from '@lucide/build-icons';
import { getCurrentDirPath } from '@lucide/helpers';
const currentDir = process.cwd();
const scriptDir = getCurrentDirPath(import.meta.url);
const iconMetaData = await getIconMetaData(path.resolve(scriptDir, '../icons... | lucide-icons/lucide/docs/scripts/writeVercelOutput.mjs | {
"file_path": "lucide-icons/lucide/docs/scripts/writeVercelOutput.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 466
} | 34 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="20" height="5" x="2" y="3" rx="1" />
<path d="M4 8v11a2 2 0 0 0 2 2h2" />
<path d="M20 8v11a2 2 0 0 ... | lucide-icons/lucide/icons/archive-restore.svg | {
"file_path": "lucide-icons/lucide/icons/archive-restore.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 194
} | 35 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M17 11h1a3 3 0 0 1 0 6h-1" />
<path d="M9 12v6" />
<path d="M13 12v6" />
<path d="M14 7.5c-1 0-1.44.5-... | lucide-icons/lucide/icons/beer.svg | {
"file_path": "lucide-icons/lucide/icons/beer.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 305
} | 36 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="11.9" r="2" />
<path d="M6.7 3.4c-.9 2.5 0 5.2 2.2 6.7C6.5 9 3.7 9.6 2 11.6" />
<path d="m8.9... | lucide-icons/lucide/icons/biohazard.svg | {
"file_path": "lucide-icons/lucide/icons/biohazard.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 411
} | 37 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z" />
... | lucide-icons/lucide/icons/boxes.svg | {
"file_path": "lucide-icons/lucide/icons/boxes.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 478
} | 38 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m9.5 7.5-2 2a4.95 4.95 0 1 0 7 7l2-2a4.95 4.95 0 1 0-7-7Z" />
<path d="M14 6.5v10" />
<path d="M10 7.5v1... | lucide-icons/lucide/icons/candy.svg | {
"file_path": "lucide-icons/lucide/icons/candy.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 281
} | 39 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M2.27 21.7s9.87-3.5 12.73-6.36a4.5 4.5 0 0 0-6.36-6.37C5.77 11.84 2.27 21.7 2.27 21.7zM8.64 14l-2.05-2.04M15... | lucide-icons/lucide/icons/carrot.svg | {
"file_path": "lucide-icons/lucide/icons/carrot.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 283
} | 40 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M16.75 12h3.632a1 1 0 0 1 .894 1.447l-2.034 4.069a1 1 0 0 1-1.708.134l-2.124-2.97" />
<path d="M17.106 9.0... | lucide-icons/lucide/icons/cctv.svg | {
"file_path": "lucide-icons/lucide/icons/cctv.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 307
} | 41 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="8" cy="8" r="6" />
<path d="M18.09 10.37A6 6 0 1 1 10.34 18" />
<path d="M7 6h1v4" />
<path d="m16.... | lucide-icons/lucide/icons/coins.svg | {
"file_path": "lucide-icons/lucide/icons/coins.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 174
} | 42 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<ellipse cx="12" cy="5" rx="9" ry="3" />
<path d="M3 5V19A9 3 0 0 0 15 21.84" />
<path d="M21 5V8" />
<path d="... | lucide-icons/lucide/icons/database-zap.svg | {
"file_path": "lucide-icons/lucide/icons/database-zap.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 194
} | 43 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M12 22c6.23-.05 7.87-5.57 7.5-10-.36-4.34-3.95-9.96-7.5-10-3.55.04-7.14 5.66-7.5 10-.37 4.43 1.27 9.95 7.5 1... | lucide-icons/lucide/icons/egg.svg | {
"file_path": "lucide-icons/lucide/icons/egg.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 174
} | 44 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m21 21-6-6m6 6v-4.8m0 4.8h-4.8" />
<path d="M3 16.2V21m0 0h4.8M3 21l6-6" />
<path d="M21 7.8V3m0 0h-4.8M... | lucide-icons/lucide/icons/expand.svg | {
"file_path": "lucide-icons/lucide/icons/expand.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 211
} | 45 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m10 18 3-3-3-3" />
<path d="M14 2v4a2 2 0 0 0 2 2h4" />
<path d="M4 11V4a2 2 0 0 1 2-2h9l5 5v13a2 2 0 0 ... | lucide-icons/lucide/icons/file-symlink.svg | {
"file_path": "lucide-icons/lucide/icons/file-symlink.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 196
} | 46 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M8 2c3 0 5 2 8 2s4-1 4-1v11" />
<path d="M4 22V4" />
<path d="M4 15s1-1 4-1 5 2 8 2" />
<line x1="2" x... | lucide-icons/lucide/icons/flag-off.svg | {
"file_path": "lucide-icons/lucide/icons/flag-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 178
} | 47 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M10 10 4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-1.272-2.542" />
<path d="M10 2v2.343" />
<p... | lucide-icons/lucide/icons/flask-conical-off.svg | {
"file_path": "lucide-icons/lucide/icons/flask-conical-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 228
} | 48 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<line x1="6" x2="10" y1="11" y2="11" />
<line x1="8" x2="8" y1="9" y2="13" />
<line x1="15" x2="15.01" y1="12" y2... | lucide-icons/lucide/icons/gamepad-2.svg | {
"file_path": "lucide-icons/lucide/icons/gamepad-2.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 366
} | 49 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="5" cy="6" r="3" />
<path d="M5 9v12" />
<circle cx="19" cy="18" r="3" />
<path d="m15 9-3-3 3-3" />... | lucide-icons/lucide/icons/git-pull-request-arrow.svg | {
"file_path": "lucide-icons/lucide/icons/git-pull-request-arrow.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 179
} | 50 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M3 7V5c0-1.1.9-2 2-2h2" />
<path d="M17 3h2c1.1 0 2 .9 2 2v2" />
<path d="M21 17v2c0 1.1-.9 2-2 2h-2" />... | lucide-icons/lucide/icons/group.svg | {
"file_path": "lucide-icons/lucide/icons/group.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 253
} | 51 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M12 3V2" />
<path d="M5 10a7.1 7.1 0 0 1 14 0" />
<path d="M4 10h16" />
<path d="M2 14h12a2 2 0 1 1 0 ... | lucide-icons/lucide/icons/hand-platter.svg | {
"file_path": "lucide-icons/lucide/icons/hand-platter.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 266
} | 52 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M7 22a5 5 0 0 1-2-4" />
<path d="M7 16.93c.96.43 1.96.74 2.99.91" />
<path d="M3.34 14A6.8 6.8 0 0 1 2 1... | lucide-icons/lucide/icons/lasso-select.svg | {
"file_path": "lucide-icons/lucide/icons/lasso-select.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 325
} | 53 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M6 20a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2" />
<path d="M8 18V4a2 2 0 0 1 2-2h4... | lucide-icons/lucide/icons/luggage.svg | {
"file_path": "lucide-icons/lucide/icons/luggage.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 225
} | 54 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M17 17H4a2 2 0 0 1-2-2V5c0-1.5 1-2 1-2" />
<path d="M22 15V5a2 2 0 0 0-2-2H9" />
<path d="M8 21h8" />
... | lucide-icons/lucide/icons/monitor-off.svg | {
"file_path": "lucide-icons/lucide/icons/monitor-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 192
} | 55 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M8 2v4" />
<path d="M12 2v4" />
<path d="M16 2v4" />
<path d="M16 4h2a2 2 0 0 1 2 2v2" />
<path d="M... | lucide-icons/lucide/icons/notepad-text-dashed.svg | {
"file_path": "lucide-icons/lucide/icons/notepad-text-dashed.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 308
} | 56 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M5.8 11.3 2 22l10.7-3.79" />
<path d="M4 3h.01" />
<path d="M22 8h.01" />
<path d="M15 2h.01" />
<pa... | lucide-icons/lucide/icons/party-popper.svg | {
"file_path": "lucide-icons/lucide/icons/party-popper.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 419
} | 57 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M18.5 8c-1.4 0-2.6-.8-3.2-2A6.87 6.87 0 0 0 2 9v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-8.5C22 9.6 20.4 8 18.5 8"... | lucide-icons/lucide/icons/piano.svg | {
"file_path": "lucide-icons/lucide/icons/piano.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 238
} | 58 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 ... | lucide-icons/lucide/icons/plane.svg | {
"file_path": "lucide-icons/lucide/icons/plane.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 250
} | 59 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M16.466 7.5C15.643 4.237 13.952 2 12 2 9.239 2 7 6.477 7 12s2.239 10 5 10c.342 0 .677-.069 1-.2" />
<path ... | lucide-icons/lucide/icons/rotate-3d.svg | {
"file_path": "lucide-icons/lucide/icons/rotate-3d.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 251
} | 60 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M3 11v3a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-3" />
<path d="M12 19H4a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h16a1 1 0 0 ... | lucide-icons/lucide/icons/sandwich.svg | {
"file_path": "lucide-icons/lucide/icons/sandwich.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 263
} | 61 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m12.5 17-.5-1-.5 1h1z" />
<path d="M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0... | lucide-icons/lucide/icons/skull.svg | {
"file_path": "lucide-icons/lucide/icons/skull.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 213
} | 62 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M16 3h5v5" />
<path d="M8 3H3v5" />
<path d="M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3" />
<path d="m15 9 ... | lucide-icons/lucide/icons/split.svg | {
"file_path": "lucide-icons/lucide/icons/split.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 169
} | 63 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M15.236 22a3 3 0 0 0-2.2-5" />
<path d="M16 20a3 3 0 0 1 3-3h1a2 2 0 0 0 2-2v-2a4 4 0 0 0-4-4V4" />
<pat... | lucide-icons/lucide/icons/squirrel.svg | {
"file_path": "lucide-icons/lucide/icons/squirrel.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 260
} | 64 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M15.5 3H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2V8.5L15.5 3Z" />
<path d="M14 3v4a2 2 0 0 0 2 2h4... | lucide-icons/lucide/icons/sticker.svg | {
"file_path": "lucide-icons/lucide/icons/sticker.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 227
} | 65 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="12" r="4" />
<path d="M12 3v1" />
<path d="M12 20v1" />
<path d="M3 12h1" />
<path d="M20... | lucide-icons/lucide/icons/sun-medium.svg | {
"file_path": "lucide-icons/lucide/icons/sun-medium.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 239
} | 66 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m10 11 11 .9a1 1 0 0 1 .8 1.1l-.665 4.158a1 1 0 0 1-.988.842H20" />
<path d="M16 18h-5" />
<path d="M18 ... | lucide-icons/lucide/icons/tractor.svg | {
"file_path": "lucide-icons/lucide/icons/tractor.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 281
} | 67 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71" />
<path d="m5... | lucide-icons/lucide/icons/unlink.svg | {
"file_path": "lucide-icons/lucide/icons/unlink.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 312
} | 68 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5" />
<rect x="2" y="6" width="14"... | lucide-icons/lucide/icons/video.svg | {
"file_path": "lucide-icons/lucide/icons/video.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 167
} | 69 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 ... | lucide-icons/lucide/icons/warehouse.svg | {
"file_path": "lucide-icons/lucide/icons/warehouse.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 222
} | 70 |
const defaultAttributes = {
xmlns: 'http://www.w3.org/2000/svg',
width: 24,
height: 24,
viewBox: '0 0 24 24',
fill: 'none',
stroke: 'currentColor',
strokeWidth: 2,
strokeLinecap: 'round',
strokeLinejoin: 'round',
};
export const childDefaultAttributes = {
fill: defaultAttributes.fill,
stroke: def... | lucide-icons/lucide/packages/lucide-react-native/src/defaultAttributes.ts | {
"file_path": "lucide-icons/lucide/packages/lucide-react-native/src/defaultAttributes.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 164
} | 71 |
import path from 'path';
// eslint-disable-next-line import/no-extraneous-dependencies
import getIconMetaData from '@lucide/build-icons/utils/getIconMetaData.mjs';
const ICONS_DIR = path.resolve(process.cwd(), '../../icons');
export default async function getAliasesEntryNames() {
const metaJsonFiles = await getIcon... | lucide-icons/lucide/packages/lucide-react/scripts/getAliasesEntryNames.mjs | {
"file_path": "lucide-icons/lucide/packages/lucide-react/scripts/getAliasesEntryNames.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 213
} | 72 |
import { expect, afterEach } from 'vitest';
import { cleanup } from '@solidjs/testing-library';
import '@testing-library/jest-dom/vitest';
import htmlSerializer from 'jest-serializer-html';
expect.addSnapshotSerializer(htmlSerializer);
afterEach(() => {
cleanup();
});
| lucide-icons/lucide/packages/lucide-solid/tests/setupVitest.js | {
"file_path": "lucide-icons/lucide/packages/lucide-solid/tests/setupVitest.js",
"repo_id": "lucide-icons/lucide",
"token_count": 90
} | 73 |
import { describe, it, expect } from 'vitest';
import { render } from '@testing-library/vue';
import { airVent } from './testIconNodes';
import { Icon } from '../src/lucide-vue-next';
describe('Using Icon Component', () => {
it('should render icon based on a iconNode', async () => {
const { container } = render... | lucide-icons/lucide/packages/lucide-vue-next/tests/Icon.spec.ts | {
"file_path": "lucide-icons/lucide/packages/lucide-vue-next/tests/Icon.spec.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 331
} | 74 |
export * from './icons';
export * as icons from './icons';
export * from './aliases';
| lucide-icons/lucide/packages/lucide-vue/src/lucide-vue.ts | {
"file_path": "lucide-icons/lucide/packages/lucide-vue/src/lucide-vue.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 27
} | 75 |
import fs from 'fs';
import path from 'path';
import { readSvgDirectory, writeSvgFile } from '../tools/build-helpers/helpers.mjs';
import processSvg from './render/processSvg.mjs';
const ICONS_DIR = path.resolve(process.cwd(), 'icons');
console.log(`Optimizing SVGs...`);
const svgFiles = readSvgDirectory(ICONS_DIR);... | lucide-icons/lucide/scripts/optimizeSvgs.mjs | {
"file_path": "lucide-icons/lucide/scripts/optimizeSvgs.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 191
} | 76 |
/* eslint-disable import/prefer-default-export */
/**
* djb2 hashing function
*
* @param {string} string
* @param {number} seed
* @returns {string} A hashed string of 6 characters
*/
export const hash = (string, seed = 5381) => {
let i = string.length;
while (i) {
// eslint-disable-next-line no-bitwise, ... | lucide-icons/lucide/tools/build-helpers/src/hash.mjs | {
"file_path": "lucide-icons/lucide/tools/build-helpers/src/hash.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 176
} | 77 |
import { type Change, changes } from "content";
import dayjs from "dayjs";
import { type Metadata } from "next";
function ChangeCard(change: Change) {
return (
<article className="prose prose-slate mb-8 dark:prose-invert">
<h2 className=" mb-0 text-3xl font-semibold tracking-tight transition-colors">
... | moinulmoin/chadnext/src/app/[locale]/changelog/page.tsx | {
"file_path": "moinulmoin/chadnext/src/app/[locale]/changelog/page.tsx",
"repo_id": "moinulmoin/chadnext",
"token_count": 545
} | 78 |
import { Skeleton } from "~/components/ui/skeleton";
export default function Loading() {
return <Skeleton className="h-[500px] max-w-2xl rounded-md" />;
}
| moinulmoin/chadnext/src/app/[locale]/dashboard/settings/loading.tsx | {
"file_path": "moinulmoin/chadnext/src/app/[locale]/dashboard/settings/loading.tsx",
"repo_id": "moinulmoin/chadnext",
"token_count": 55
} | 79 |
import Image from "next/image";
import Link from "next/link";
import { Suspense } from "react";
import { siteConfig } from "~/config/site";
import LocaleToggler from "../shared/locale-toggler";
import ThemeToggle from "../shared/theme-toggle";
export default function Footer() {
return (
<footer className="md:py-... | moinulmoin/chadnext/src/components/layout/footer.tsx | {
"file_path": "moinulmoin/chadnext/src/components/layout/footer.tsx",
"repo_id": "moinulmoin/chadnext",
"token_count": 662
} | 80 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.