text stringlengths 21 253k | id stringlengths 25 123 | metadata dict | __index_level_0__ int64 0 181 |
|---|---|---|---|
"use client";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import { Button } from "@/components/ui/button";
import { MoreHorizontalIcon } from "lucide-react";
import { toast }... | alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/admin/waitlist/_components/column-dropdown.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/admin/waitlist/_components/column-dropdown.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 1225
} | 12 |
import Balancer from "react-wrap-balancer";
export function Promotion() {
return (
<section className="flex min-h-96 w-full flex-col items-center justify-center gap-5 rounded-[26px] bg-foreground p-8 py-10 text-background">
<Balancer
as="h2"
className="text-cente... | alifarooq9/rapidlaunch/starterkits/saas/src/app/(web)/_components/promotion.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(web)/_components/promotion.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 539
} | 13 |
import { env } from "@/env";
import crypto from "node:crypto";
import { webhookHasMeta } from "@/validations/lemonsqueezy";
import {
processWebhookEvent,
storeWebhookEvent,
} from "@/server/actions/subscription/mutations";
export async function POST(request: Request) {
const rawBody = await request.text();... | alifarooq9/rapidlaunch/starterkits/saas/src/app/api/lemonsqueezy/webhook/route.ts | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/api/lemonsqueezy/webhook/route.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 441
} | 14 |
export const maintenancePageConfig = {
title: "Maintenance",
description:
"We're currently undergoing maintenance. Please check back later.",
} as const;
| alifarooq9/rapidlaunch/starterkits/saas/src/app/maintenance/_constants/page-config.ts | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/maintenance/_constants/page-config.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 53
} | 15 |
/**
* @purpose This file is used to store the site configuration.
*
* Add all the general site-wide configuration here.
*/
export const siteConfig = {
name: "Rapidlaunch",
description:
"Get your startup off the ground quickly with RapidLaunch! This open source Next.js starter kit provides the found... | alifarooq9/rapidlaunch/starterkits/saas/src/config/site.ts | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/config/site.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 215
} | 16 |
"use server";
import { resend } from "@/server/resend";
import { siteConfig } from "@/config/site";
import { siteUrls } from "@/config/urls";
import { z } from "zod";
const sendOrgInviteEmailProps = z.object({
email: z.string().email("Please enter a valid email address"),
orgName: z.string(),
invLink: z.s... | alifarooq9/rapidlaunch/starterkits/saas/src/server/actions/send-org-invite-email.ts | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/server/actions/send-org-invite-email.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 1138
} | 17 |
export type SearchParams = Record<string, string | string[] | undefined>;
export type Option = {
label: string;
value: string | number | boolean;
icon?: React.ComponentType<{ className?: string }>;
};
export interface DataTableFilterOption<TData> {
id?: string;
label: string;
value: keyof TDat... | alifarooq9/rapidlaunch/starterkits/saas/src/types/data-table.ts | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/types/data-table.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 208
} | 18 |
'use client';
import { Button } from '@/components/ui/button';
import Link from 'next/link';
import { signInWithEmail } from '@/utils/auth-helpers/server';
import { handleRequest } from '@/utils/auth-helpers/client';
import { useRouter } from 'next/navigation';
import { useState } from 'react';
import { Input } from '... | horizon-ui/shadcn-nextjs-boilerplate/components/auth-ui/EmailSignIn.tsx | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/components/auth-ui/EmailSignIn.tsx",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 2120
} | 19 |
/*eslint-disable*/
'use client';
import DashboardLayout from '@/components/layout';
import { Button } from '@/components/ui/button';
import { Card } from '@/components/ui/card';
import { User } from '@supabase/supabase-js';
import { useState } from 'react';
import { useRouter } from 'next/navigation';
import { Avatar,... | horizon-ui/shadcn-nextjs-boilerplate/components/dashboard/settings/index.tsx | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/components/dashboard/settings/index.tsx",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 3871
} | 20 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--radius: 10px;
--chart: #0F172A;
--background: 0 0% 100%;
--foreground: 240, 10%, 4%;
--muted: 210 40% 96.1%;
--muted-foreground: 215.4 16.3% 46.9%;
... | horizon-ui/shadcn-nextjs-boilerplate/styles/globals.css | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/styles/globals.css",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 1305
} | 21 |
import { IRoute } from '@/types/types'
// NextJS Requirement
export const isWindowAvailable = () => typeof window !== 'undefined'
export const findCurrentRoute = (
routes: IRoute[],
pathname: string,
): IRoute | undefined => {
for (let route of routes) {
if (route.items) {
const found = findCurrentRout... | horizon-ui/shadcn-nextjs-boilerplate/utils/navigation.tsx | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/utils/navigation.tsx",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 340
} | 22 |
import '@/styles/global.css';
import type { Metadata } from 'next';
import { NextIntlClientProvider, useMessages } from 'next-intl';
import { unstable_setRequestLocale } from 'next-intl/server';
import { DemoBadge } from '@/components/DemoBadge';
import { AllLocales } from '@/utils/AppConfig';
export const metadata:... | ixartz/SaaS-Boilerplate/src/app/[locale]/layout.tsx | {
"file_path": "ixartz/SaaS-Boilerplate/src/app/[locale]/layout.tsx",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 595
} | 23 |
'use client';
import type { ColumnDef } from '@tanstack/react-table';
import {
flexRender,
getCoreRowModel,
useReactTable,
} from '@tanstack/react-table';
import { useTranslations } from 'next-intl';
import {
Table,
TableBody,
TableCell,
TableHead,
TableHeader,
TableRow,
} from '@/components/ui/tabl... | ixartz/SaaS-Boilerplate/src/components/ui/data-table.tsx | {
"file_path": "ixartz/SaaS-Boilerplate/src/components/ui/data-table.tsx",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 1249
} | 24 |
export const CTABanner = (props: {
title: string;
description: string;
buttons: React.ReactNode;
}) => (
<div className="rounded-xl bg-muted bg-gradient-to-br from-indigo-400 via-purple-400 to-pink-400 px-6 py-10 text-center">
<div className="text-3xl font-bold text-primary-foreground">
{props.title}
... | ixartz/SaaS-Boilerplate/src/features/landing/CTABanner.tsx | {
"file_path": "ixartz/SaaS-Boilerplate/src/features/landing/CTABanner.tsx",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 208
} | 25 |
import { createSharedPathnamesNavigation } from 'next-intl/navigation';
import { AllLocales, AppConfig } from '@/utils/AppConfig';
export const { usePathname, useRouter } = createSharedPathnamesNavigation({
locales: AllLocales,
localePrefix: AppConfig.localePrefix,
});
| ixartz/SaaS-Boilerplate/src/libs/i18nNavigation.ts | {
"file_path": "ixartz/SaaS-Boilerplate/src/libs/i18nNavigation.ts",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 88
} | 26 |
import type { EnumValues } from './Enum';
export const ORG_ROLE = {
ADMIN: 'org:admin',
MEMBER: 'org:member',
} as const;
export type OrgRole = EnumValues<typeof ORG_ROLE>;
export const ORG_PERMISSION = {
// Add Organization Permissions here
} as const;
export type OrgPermission = EnumValues<typeof ORG_PERMIS... | ixartz/SaaS-Boilerplate/src/types/Auth.ts | {
"file_path": "ixartz/SaaS-Boilerplate/src/types/Auth.ts",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 119
} | 27 |
{
"Lucide SVG": {
"scope": "xml",
"description": "Base SVG with Lucide attributes.",
"prefix": [
"svg",
"lucide"
],
"body": [
"<svg",
" xmlns=\"http://www.w3.org/2000/svg\"",
" width=\"24\"",
" height=\"24\"",
" viewBox=\"0 0 24 24\"",
" fill=\"... | lucide-icons/lucide/.vscode/svg.code-snippets | {
"file_path": "lucide-icons/lucide/.vscode/svg.code-snippets",
"repo_id": "lucide-icons/lucide",
"token_count": 1123
} | 28 |
import { fileURLToPath, URL } from 'node:url';
import { defineConfig } from 'vitepress';
import sidebar from './sidebar';
const title = 'Lucide';
const socialTitle = 'Lucide Icons';
const description = 'Beautiful & consistent icon toolkit made by the community.';
// https://vitepress.dev/reference/site-config
export ... | lucide-icons/lucide/docs/.vitepress/config.ts | {
"file_path": "lucide-icons/lucide/docs/.vitepress/config.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 1904
} | 29 |
export type CodeExampleType = {
title: string;
language: string;
code: string;
}[];
| lucide-icons/lucide/docs/.vitepress/lib/codeExamples/types.ts | {
"file_path": "lucide-icons/lucide/docs/.vitepress/lib/codeExamples/types.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 30
} | 30 |
import { computed } from 'vue';
import { useExternalLibs } from '~/.vitepress/theme/composables/useExternalLibs';
import { IconEntity } from '../types';
const useIconsWithExternalLibs = (initialIcons?: IconEntity[]) => {
const { externalIconNodes } = useExternalLibs();
return computed(() => {
let icons = [];
... | lucide-icons/lucide/docs/.vitepress/theme/composables/useIconsWithExternalLibs.ts | {
"file_path": "lucide-icons/lucide/docs/.vitepress/theme/composables/useIconsWithExternalLibs.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 278
} | 31 |
import { ThumbsUp } from "lucide-react";
function LikeButton() {
return (
<button style={{ color: "#fff" }}>
<ThumbsUp />
Like
</button>
);
}
export default LikeButton; | lucide-icons/lucide/docs/guide/basics/examples/button-example/Button.jsx | {
"file_path": "lucide-icons/lucide/docs/guide/basics/examples/button-example/Button.jsx",
"repo_id": "lucide-icons/lucide",
"token_count": 78
} | 32 |
body {
font-family: sans-serif;
-webkit-font-smoothing: auto;
-moz-font-smoothing: auto;
-moz-osx-font-smoothing: grayscale;
font-smoothing: auto;
text-rendering: optimizeLegibility;
font-smooth: always;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
background: #202127;
he... | lucide-icons/lucide/docs/guide/basics/examples/styles.css | {
"file_path": "lucide-icons/lucide/docs/guide/basics/examples/styles.css",
"repo_id": "lucide-icons/lucide",
"token_count": 344
} | 33 |
import fs from 'fs';
import path from 'path';
import { readSvgDirectory } from '@lucide/helpers';
const currentDir = process.cwd();
const ICONS_DIR = path.resolve(currentDir, '../icons');
const svgFiles = readSvgDirectory(ICONS_DIR, '.json');
const location = path.resolve(currentDir, '.vitepress/data', 'relatedIcons.... | lucide-icons/lucide/docs/scripts/writeIconRelatedIcons.mjs | {
"file_path": "lucide-icons/lucide/docs/scripts/writeIconRelatedIcons.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 812
} | 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"
>
<path d="M11 21c0-2.5 2-2.5 2-5" />
<path d="M16 21c0-2.5 2-2.5 2-5" />
<path d="m19 8-.8 3a1.25 1.25 0 0 1-1.2 1... | lucide-icons/lucide/icons/alarm-smoke.svg | {
"file_path": "lucide-icons/lucide/icons/alarm-smoke.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 270
} | 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="M12 22V8" />
<path d="M5 12H2a10 10 0 0 0 20 0h-3" />
<circle cx="12" cy="5" r="3" />
</svg>
| lucide-icons/lucide/icons/anchor.svg | {
"file_path": "lucide-icons/lucide/icons/anchor.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 145
} | 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"
>
<path d="M12 20.94c1.5 0 2.75 1.06 4 1.06 3 0 6-8 6-12.22A4.91 4.91 0 0 0 17 5c-2.22 0-4 1.44-5 2-1-.56-2.78-2-5-2a4.... | lucide-icons/lucide/icons/apple.svg | {
"file_path": "lucide-icons/lucide/icons/apple.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 228
} | 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="M9 12h.01" />
<path d="M15 12h.01" />
<path d="M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5" />
<path d="M19 6.3... | lucide-icons/lucide/icons/baby.svg | {
"file_path": "lucide-icons/lucide/icons/baby.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 256
} | 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="M13 13v5" />
<path d="M17 11.47V8" />
<path d="M17 11h1a3 3 0 0 1 2.745 4.211" />
<path d="m2 2 20 20"... | lucide-icons/lucide/icons/beer-off.svg | {
"file_path": "lucide-icons/lucide/icons/beer-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 347
} | 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="M10 10h4" />
<path d="M19 7V4a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3" />
<path d="M20 21a2 2 0 0 0 2-2v-3.851c... | lucide-icons/lucide/icons/binoculars.svg | {
"file_path": "lucide-icons/lucide/icons/binoculars.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 350
} | 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="m19 3 1 1" />
<path d="m20 2-4.5 4.5" />
<path d="M20 8v13a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20" />
<pat... | lucide-icons/lucide/icons/book-key.svg | {
"file_path": "lucide-icons/lucide/icons/book-key.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 208
} | 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"
>
<path d="M12 12h.01" />
<path d="M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2" />
<path d="M22 13a18.15 18.15 0 0 1-2... | lucide-icons/lucide/icons/briefcase-business.svg | {
"file_path": "lucide-icons/lucide/icons/briefcase-business.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 192
} | 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"
>
<path d="m8 2 1.88 1.88" />
<path d="M14.12 3.88 16 2" />
<path d="M9 7.13v-1a3.003 3.003 0 1 1 6 0v1" />
<path... | lucide-icons/lucide/icons/bug.svg | {
"file_path": "lucide-icons/lucide/icons/bug.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 374
} | 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="m8.5 8.5-1 1a4.95 4.95 0 0 0 7 7l1-1" />
<path d="M11.843 6.187A4.947 4.947 0 0 1 16.5 7.5a4.947 4.947 0 0... | lucide-icons/lucide/icons/candy-off.svg | {
"file_path": "lucide-icons/lucide/icons/candy-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 359
} | 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="M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97... | lucide-icons/lucide/icons/cat.svg | {
"file_path": "lucide-icons/lucide/icons/cat.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 295
} | 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="M9 5v4" />
<rect width="4" height="6" x="7" y="9" rx="1" />
<path d="M9 15v2" />
<path d="M17 3v2" />
... | lucide-icons/lucide/icons/chart-candlestick.svg | {
"file_path": "lucide-icons/lucide/icons/chart-candlestick.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 218
} | 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"
>
<circle cx="12" cy="17" r="3" />
<path d="M4.2 15.1A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.2" />
<path d="m15... | lucide-icons/lucide/icons/cloud-cog.svg | {
"file_path": "lucide-icons/lucide/icons/cloud-cog.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 303
} | 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"
>
<rect width="14" height="14" x="8" y="8" rx="2" ry="2" />
<path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2... | lucide-icons/lucide/icons/copy.svg | {
"file_path": "lucide-icons/lucide/icons/copy.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 174
} | 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"
>
<path d="M11 2a2 2 0 0 0-2 2v5H4a2 2 0 0 0-2 2v2c0 1.1.9 2 2 2h5v5c0 1.1.9 2 2 2h2a2 2 0 0 0 2-2v-5h5a2 2 0 0 0 2-2v-... | lucide-icons/lucide/icons/cross.svg | {
"file_path": "lucide-icons/lucide/icons/cross.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 207
} | 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"
>
<ellipse cx="12" cy="5" rx="9" ry="3" />
<path d="M3 12a9 3 0 0 0 5 2.69" />
<path d="M21 9.3V5" />
<path d="M3... | lucide-icons/lucide/icons/database-backup.svg | {
"file_path": "lucide-icons/lucide/icons/database-backup.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 251
} | 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"
>
<rect width="12" height="12" x="2" y="10" rx="2" ry="2" />
<path d="m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2... | lucide-icons/lucide/icons/dices.svg | {
"file_path": "lucide-icons/lucide/icons/dices.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 234
} | 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="m10 16 1.5 1.5" />
<path d="m14 8-1.5-1.5" />
<path d="M15 2c-1.798 1.998-2.518 3.995-2.807 5.993" />
... | lucide-icons/lucide/icons/dna.svg | {
"file_path": "lucide-icons/lucide/icons/dna.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 325
} | 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="M6.399 6.399C5.362 8.157 4.65 10.189 4.5 12c-.37 4.43 1.27 9.95 7.5 10 3.256-.026 5.259-1.547 6.375-3.625" /... | lucide-icons/lucide/icons/egg-off.svg | {
"file_path": "lucide-icons/lucide/icons/egg-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 255
} | 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="M21 7h-3a2 2 0 0 1-2-2V2" />
<path d="M21 6v6.5c0 .8-.7 1.5-1.5 1.5h-7c-.8 0-1.5-.7-1.5-1.5v-9c0-.8.7-1.5 ... | lucide-icons/lucide/icons/file-stack.svg | {
"file_path": "lucide-icons/lucide/icons/file-stack.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 274
} | 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="M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z" />
<path d="M18 ... | lucide-icons/lucide/icons/fish.svg | {
"file_path": "lucide-icons/lucide/icons/fish.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 379
} | 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="M18 6c0 2-2 2-2 4v10a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V10c0-2-2-2-2-4V2h12z" />
<line x1="6" x2="18" y1="6" y... | lucide-icons/lucide/icons/flashlight.svg | {
"file_path": "lucide-icons/lucide/icons/flashlight.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 204
} | 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="M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1" />
... | lucide-icons/lucide/icons/flower-2.svg | {
"file_path": "lucide-icons/lucide/icons/flower-2.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 278
} | 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="m22 13.29-3.33-10a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18l-2.26 6.67H... | lucide-icons/lucide/icons/gitlab.svg | {
"file_path": "lucide-icons/lucide/icons/gitlab.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 260
} | 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="M4 12h8" />
<path d="M4 18V6" />
<path d="M12 18V6" />
<circle cx="19" cy="16" r="2" />
<path d="M20... | lucide-icons/lucide/icons/heading-6.svg | {
"file_path": "lucide-icons/lucide/icons/heading-6.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 170
} | 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 10h2" />
<path d="M16 14h2" />
<path d="M6.17 15a3 3 0 0 1 5.66 0" />
<circle cx="9" cy="11" r="2"... | lucide-icons/lucide/icons/id-card.svg | {
"file_path": "lucide-icons/lucide/icons/id-card.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 183
} | 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="M18 22H4a2 2 0 0 1-2-2V6" />
<path d="m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18" />
<circle cx="1... | lucide-icons/lucide/icons/images.svg | {
"file_path": "lucide-icons/lucide/icons/images.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 196
} | 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="M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16... | lucide-icons/lucide/icons/laptop.svg | {
"file_path": "lucide-icons/lucide/icons/laptop.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 171
} | 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="M15 12h6" />
<path d="M15 6h6" />
<path d="m3 13 3.553-7.724a.5.5 0 0 1 .894 0L11 13" />
<path d="M3 1... | lucide-icons/lucide/icons/letter-text.svg | {
"file_path": "lucide-icons/lucide/icons/letter-text.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 177
} | 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="M9 17H7A5 5 0 0 1 7 7h2" />
<path d="M15 7h2a5 5 0 1 1 0 10h-2" />
<line x1="8" x2="16" y1="12" y2="12" ... | lucide-icons/lucide/icons/link-2.svg | {
"file_path": "lucide-icons/lucide/icons/link-2.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 163
} | 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"
>
<circle cx="11" cy="11" r="8" />
<path d="m21 21-4.3-4.3" />
<path d="M11 11a2 2 0 0 0 4 0 4 4 0 0 0-8 0 6 6 0 0 ... | lucide-icons/lucide/icons/lollipop.svg | {
"file_path": "lucide-icons/lucide/icons/lollipop.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 161
} | 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"
>
<line x1="9" x2="9" y1="4" y2="20" />
<path d="M4 7c0-1.7 1.3-3 3-3h13" />
<path d="M18 20c-1.7 0-3-1.3-3-3V4" />... | lucide-icons/lucide/icons/pi.svg | {
"file_path": "lucide-icons/lucide/icons/pi.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 172
} | 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="M2 22h20" />
<path d="M6.36 17.4 4 17l-2-4 1.1-.55a2 2 0 0 1 1.8 0l.17.1a2 2 0 0 0 1.8 0L8 12 5 6l.9-.45a2... | lucide-icons/lucide/icons/plane-takeoff.svg | {
"file_path": "lucide-icons/lucide/icons/plane-takeoff.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 275
} | 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"
>
<rect width="5" height="5" x="3" y="3" rx="1" />
<rect width="5" height="5" x="16" y="3" rx="1" />
<rect width="5... | lucide-icons/lucide/icons/qr-code.svg | {
"file_path": "lucide-icons/lucide/icons/qr-code.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 315
} | 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="M4.9 19.1C1 15.2 1 8.8 4.9 4.9" />
<path d="M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5" />
<circle cx="12" cy="12"... | lucide-icons/lucide/icons/radio.svg | {
"file_path": "lucide-icons/lucide/icons/radio.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 235
} | 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="M21 8L18.74 5.74A9.75 9.75 0 0 0 12 3C11 3 10.03 3.16 9.13 3.47" />
<path d="M8 16H3v5" />
<path d="M3 1... | lucide-icons/lucide/icons/refresh-cw-off.svg | {
"file_path": "lucide-icons/lucide/icons/refresh-cw-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 276
} | 70 |
<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 19V5" />
<path d="M10 19V6.8" />
<path d="M14 19v-7.8" />
<path d="M18 5v4" />
<path d="M18 19v-6... | lucide-icons/lucide/icons/roller-coaster.svg | {
"file_path": "lucide-icons/lucide/icons/roller-coaster.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 223
} | 71 |
<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 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z" />
<path d="m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3... | lucide-icons/lucide/icons/scale.svg | {
"file_path": "lucide-icons/lucide/icons/scale.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 229
} | 72 |
<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 22v-5l5-5 5 5-5 5z" />
<path d="M9.5 14.5 16 8" />
<path d="m17 2 5 5-.5.5a3.53 3.53 0 0 1-5 0s0 0 0 ... | lucide-icons/lucide/icons/shovel.svg | {
"file_path": "lucide-icons/lucide/icons/shovel.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 183
} | 73 |
<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 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1" />
</svg>
| lucide-icons/lucide/icons/space.svg | {
"file_path": "lucide-icons/lucide/icons/space.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 131
} | 74 |
<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 12h10" />
<path d="M9 4v16" />
<path d="m3 9 3 3-3 3" />
<path d="M12 6 9 9 6 6" />
<path d="m6 1... | lucide-icons/lucide/icons/thermometer-snowflake.svg | {
"file_path": "lucide-icons/lucide/icons/thermometer-snowflake.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 203
} | 75 |
<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="18" height="12" x="3" y="8" rx="1" />
<path d="M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3" />
<path d="... | lucide-icons/lucide/icons/toy-brick.svg | {
"file_path": "lucide-icons/lucide/icons/toy-brick.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 194
} | 76 |
<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 4v6a6 6 0 0 0 12 0V4" />
<line x1="4" x2="20" y1="20" y2="20" />
</svg>
| lucide-icons/lucide/icons/underline.svg | {
"file_path": "lucide-icons/lucide/icons/underline.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 139
} | 77 |
<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 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2" />
<path d="M7 2v20" />
<path d="M21 15V2a5 5 0 0 0-5 5v6c0 1.1.... | lucide-icons/lucide/icons/utensils.svg | {
"file_path": "lucide-icons/lucide/icons/utensils.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 182
} | 78 |
<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.66 6H14a2 2 0 0 1 2 2v2.5l5.248-3.062A.5.5 0 0 1 22 7.87v8.196" />
<path d="M16 16a2 2 0 0 1-2 2H4a2 2... | lucide-icons/lucide/icons/video-off.svg | {
"file_path": "lucide-icons/lucide/icons/video-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 201
} | 79 |
import * as icons from './icons/lucide-icons';
export * from './lib/lucide-angular.component';
export * from './lib/lucide-angular.module';
export * from './lib/lucide-icon.config';
export * from './lib/lucide-icon.provider';
export * from './icons/lucide-icons';
export * from './aliases';
export { icons };
| lucide-icons/lucide/packages/lucide-angular/src/public-api.ts | {
"file_path": "lucide-icons/lucide/packages/lucide-angular/src/public-api.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 110
} | 80 |
import { describe, it, expect } from 'vitest';
import { render } from '@testing-library/preact';
import { airVent } from './testIconNodes';
import { Icon } from '../src/lucide-preact';
describe('Using Icon Component', () => {
it('should render icon based on a iconNode', async () => {
const { container } = rende... | lucide-icons/lucide/packages/lucide-preact/tests/Icon.spec.tsx | {
"file_path": "lucide-icons/lucide/packages/lucide-preact/tests/Icon.spec.tsx",
"repo_id": "lucide-icons/lucide",
"token_count": 315
} | 81 |
import { createElement, forwardRef, type FunctionComponent } from 'react';
import * as NativeSvg from 'react-native-svg';
import defaultAttributes, { childDefaultAttributes } from './defaultAttributes';
import { IconNode, LucideProps } from './types';
interface IconComponentProps extends LucideProps {
iconNode: Icon... | lucide-icons/lucide/packages/lucide-react-native/src/Icon.ts | {
"file_path": "lucide-icons/lucide/packages/lucide-react-native/src/Icon.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 810
} | 82 |
import plugins from '@lucide/rollup-plugins';
import pkg from './package.json' assert { type: 'json' };
import dts from 'rollup-plugin-dts';
import getAliasesEntryNames from './scripts/getAliasesEntryNames.mjs';
const aliasesEntries = await getAliasesEntryNames();
const packageName = 'LucideReact';
const outputFileNa... | lucide-icons/lucide/packages/lucide-react/rollup.config.mjs | {
"file_path": "lucide-icons/lucide/packages/lucide-react/rollup.config.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 1184
} | 83 |
import { describe, it, expect } from 'vitest';
import { render, cleanup } from '@testing-library/react';
import { Pen, Edit2, Grid, Droplet } from '../src/lucide-react';
import defaultAttributes from '../src/defaultAttributes';
describe('Using lucide icon components', () => {
it('should render an component', () => {... | lucide-icons/lucide/packages/lucide-react/tests/lucide-react.spec.tsx | {
"file_path": "lucide-icons/lucide/packages/lucide-react/tests/lucide-react.spec.tsx",
"repo_id": "lucide-icons/lucide",
"token_count": 1129
} | 84 |
/* eslint-disable import/no-extraneous-dependencies */
import { basename } from 'path';
import { readSvg } from '@lucide/helpers';
/**
* Build an object in the format: `{ <name>: <contents> }`.
* @param {string[]} svgFiles - A list of filenames.
* @param {Function} getSvg - A function that returns the contents of a... | lucide-icons/lucide/packages/lucide-static/scripts/readSvgs.mjs | {
"file_path": "lucide-icons/lucide/packages/lucide-static/scripts/readSvgs.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 205
} | 85 |
<script lang="ts">
import Smile from '../src/icons/smile.svelte'
</script>
<Smile>
<text>Test</text>
</Smile>
| lucide-icons/lucide/packages/lucide-svelte/tests/TestSlots.svelte | {
"file_path": "lucide-icons/lucide/packages/lucide-svelte/tests/TestSlots.svelte",
"repo_id": "lucide-icons/lucide",
"token_count": 49
} | 86 |
/**
* Convert a type string from camelCase to PascalCase
*
* @example
* type Test = CamelToPascal<'fooBar'> // 'FooBar'
*/
export type CamelToPascal<T extends string> = T extends `${infer FirstChar}${infer Rest}`
? `${Capitalize<FirstChar>}${Rest}`
: never;
/**
* Creates a list of components from a list of c... | lucide-icons/lucide/packages/shared/src/utility-types.ts | {
"file_path": "lucide-icons/lucide/packages/shared/src/utility-types.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 153
} | 87 |
import path from 'path';
import tags from '../tags.json' assert { type: 'json' };
import {
readSvgDirectory,
readAllMetadata,
writeFile,
mergeArrays,
getCurrentDirPath,
} from '../tools/build-helpers/helpers.mjs';
const currentDir = getCurrentDirPath(import.meta.url);
const ICONS_DIR = path.resolve(currentDi... | lucide-icons/lucide/scripts/migrateTagsToIcons.mjs | {
"file_path": "lucide-icons/lucide/scripts/migrateTagsToIcons.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 307
} | 88 |
/* eslint-disable import/prefer-default-export */
import path from 'path';
import { fileURLToPath } from 'url';
/**
* Get the current directory path.
*
* @param {string} currentPath
* @returns {string}
*/
export const getCurrentDirPath = (currentPath) => path.dirname(fileURLToPath(currentPath));
| lucide-icons/lucide/tools/build-helpers/src/getCurrentDirPath.mjs | {
"file_path": "lucide-icons/lucide/tools/build-helpers/src/getCurrentDirPath.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 93
} | 89 |
/* eslint-disable import/prefer-default-export */
import fs from 'fs';
import path from 'path';
import { writeFile } from './writeFile.mjs';
/**
* writes content to a file if it does not exist
*
* @param {string} content
* @param {string} fileName
* @param {string} outputDirectory
*/
export const writeFileIfNotE... | lucide-icons/lucide/tools/build-helpers/src/writeFileIfNotExists.mjs | {
"file_path": "lucide-icons/lucide/tools/build-helpers/src/writeFileIfNotExists.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 152
} | 90 |
import withSerwistInit from "@serwist/next";
const withSerwist = withSerwistInit({
// Note: This is only an example. If you use Pages Router,
// use something else that works, such as "service-worker/index.ts".
swSrc: "src/app/sw.ts",
swDest: "public/sw.js",
disable: process.env.NODE_ENV !== "production",
})... | moinulmoin/chadnext/next.config.mjs | {
"file_path": "moinulmoin/chadnext/next.config.mjs",
"repo_id": "moinulmoin/chadnext",
"token_count": 242
} | 91 |
export default function Default() {
return null;
}
| moinulmoin/chadnext/src/app/[locale]/@loginDialog/default.tsx | {
"file_path": "moinulmoin/chadnext/src/app/[locale]/@loginDialog/default.tsx",
"repo_id": "moinulmoin/chadnext",
"token_count": 14
} | 92 |
"use server";
import { revalidatePath } from "next/cache";
import { utapi } from "~/lib/uploadthing-server";
import { getImageKeyFromUrl, isOurCdnUrl } from "~/lib/utils";
import { type payload } from "~/types";
import prisma from "~/lib/prisma";
export const updateUser = async (id: string, payload: payload) => {
a... | moinulmoin/chadnext/src/app/[locale]/dashboard/settings/actions.ts | {
"file_path": "moinulmoin/chadnext/src/app/[locale]/dashboard/settings/actions.ts",
"repo_id": "moinulmoin/chadnext",
"token_count": 378
} | 93 |
import { headers } from "next/headers";
import { type NextRequest } from "next/server";
import { buffer } from "node:stream/consumers";
import type Stripe from "stripe";
import { stripe } from "~/lib/stripe";
import prisma from "~/lib/prisma";
export async function POST(req: NextRequest) {
//@ts-expect-error Argumen... | moinulmoin/chadnext/src/app/api/webhooks/stripe/route.ts | {
"file_path": "moinulmoin/chadnext/src/app/api/webhooks/stripe/route.ts",
"repo_id": "moinulmoin/chadnext",
"token_count": 838
} | 94 |
"use client";
import { zodResolver } from "@hookform/resolvers/zod";
import Link from "next/link";
import { useState } from "react";
import { useForm } from "react-hook-form";
import { set, z } from "zod";
import { Button, buttonVariants } from "~/components/ui/button";
import { cn } from "~/lib/utils";
import Icons f... | moinulmoin/chadnext/src/components/layout/auth-form.tsx | {
"file_path": "moinulmoin/chadnext/src/components/layout/auth-form.tsx",
"repo_id": "moinulmoin/chadnext",
"token_count": 2928
} | 95 |
"use client";
import { ThemeProvider as NextThemesProvider } from "next-themes";
import { type ThemeProviderProps } from "next-themes/dist/types";
export default function ThemeProvider({
children,
...props
}: ThemeProviderProps) {
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
}
| moinulmoin/chadnext/src/components/shared/theme-provider.tsx | {
"file_path": "moinulmoin/chadnext/src/components/shared/theme-provider.tsx",
"repo_id": "moinulmoin/chadnext",
"token_count": 95
} | 96 |
import { type User } from "@prisma/client";
import { z } from "zod";
export type CurrentUser = {
id: string;
name: string;
email: string;
picture: string;
};
export interface payload {
name: string;
email: string;
picture?: string;
}
export const settingsSchema = z.object({
picture: z.string().url(),... | moinulmoin/chadnext/src/types/index.ts | {
"file_path": "moinulmoin/chadnext/src/types/index.ts",
"repo_id": "moinulmoin/chadnext",
"token_count": 385
} | 97 |
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { Icon } from "@/components/ui/icon";
import { icons } from "lucide-react";
interface FeaturesProps {
icon: string;
title: string;
description: string;
}
const featureList: FeaturesProps[] = [
{
icon: "TabletSmartphone... | nobruf/shadcn-landing-page/components/layout/sections/features.tsx | {
"file_path": "nobruf/shadcn-landing-page/components/layout/sections/features.tsx",
"repo_id": "nobruf/shadcn-landing-page",
"token_count": 1328
} | 98 |
import { DashboardHeader } from "@/components/header"
import { PostCreateButton } from "@/components/post-create-button"
import { PostItem } from "@/components/post-item"
import { DashboardShell } from "@/components/shell"
export default function DashboardLoading() {
return (
<DashboardShell>
<DashboardHea... | shadcn-ui/taxonomy/app/(dashboard)/dashboard/loading.tsx | {
"file_path": "shadcn-ui/taxonomy/app/(dashboard)/dashboard/loading.tsx",
"repo_id": "shadcn-ui/taxonomy",
"token_count": 257
} | 99 |
import Image from "next/image"
import Link from "next/link"
import { allPosts } from "contentlayer/generated"
import { compareDesc } from "date-fns"
import { formatDate } from "@/lib/utils"
export const metadata = {
title: "Blog",
}
export default async function BlogPage() {
const posts = allPosts
.filter((p... | shadcn-ui/taxonomy/app/(marketing)/blog/page.tsx | {
"file_path": "shadcn-ui/taxonomy/app/(marketing)/blog/page.tsx",
"repo_id": "shadcn-ui/taxonomy",
"token_count": 1153
} | 100 |
"use client"
import Link from "next/link"
import { usePathname } from "next/navigation"
import { SidebarNavItem } from "types"
import { cn } from "@/lib/utils"
import { Icons } from "@/components/icons"
interface DashboardNavProps {
items: SidebarNavItem[]
}
export function DashboardNav({ items }: DashboardNavPro... | shadcn-ui/taxonomy/components/nav.tsx | {
"file_path": "shadcn-ui/taxonomy/components/nav.tsx",
"repo_id": "shadcn-ui/taxonomy",
"token_count": 577
} | 101 |
import * as React from "react"
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu"
import { cva } from "class-variance-authority"
import { ChevronDown } from "lucide-react"
import { cn } from "@/lib/utils"
const NavigationMenu = React.forwardRef<
React.ElementRef<typeof NavigationMenuPrimitiv... | shadcn-ui/taxonomy/components/ui/navigation-menu.tsx | {
"file_path": "shadcn-ui/taxonomy/components/ui/navigation-menu.tsx",
"repo_id": "shadcn-ui/taxonomy",
"token_count": 1707
} | 102 |
export class RequiresProPlanError extends Error {
constructor(message = "This action requires a pro plan") {
super(message)
}
}
| shadcn-ui/taxonomy/lib/exceptions.ts | {
"file_path": "shadcn-ui/taxonomy/lib/exceptions.ts",
"repo_id": "shadcn-ui/taxonomy",
"token_count": 38
} | 103 |
import { Metadata } from "next"
import Image from "next/image"
import { Button } from "@/registry/new-york/ui/button"
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/registry/new-york/ui/card"
import {
Tabs,
TabsContent,
TabsList,
TabsTrigger,
} from "@/registry/new-york... | shadcn-ui/ui/apps/www/app/(app)/examples/dashboard/page.tsx | {
"file_path": "shadcn-ui/ui/apps/www/app/(app)/examples/dashboard/page.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 4916
} | 104 |
import { ComponentProps } from "react"
import formatDistanceToNow from "date-fns/formatDistanceToNow"
import { cn } from "@/lib/utils"
import { Badge } from "@/registry/new-york/ui/badge"
import { ScrollArea } from "@/registry/new-york/ui/scroll-area"
import { Separator } from "@/registry/new-york/ui/separator"
import... | shadcn-ui/ui/apps/www/app/(app)/examples/mail/components/mail-list.tsx | {
"file_path": "shadcn-ui/ui/apps/www/app/(app)/examples/mail/components/mail-list.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 1519
} | 105 |
"use client"
import * as React from "react"
import { Dialog } from "@radix-ui/react-dialog"
import { DotsHorizontalIcon } from "@radix-ui/react-icons"
import { toast } from "@/registry/new-york/hooks/use-toast"
import {
AlertDialog,
AlertDialogCancel,
AlertDialogContent,
AlertDialogDescription,
AlertDialogF... | shadcn-ui/ui/apps/www/app/(app)/examples/playground/components/preset-actions.tsx | {
"file_path": "shadcn-ui/ui/apps/www/app/(app)/examples/playground/components/preset-actions.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 1898
} | 106 |
"use client"
import * as React from "react"
import {
ColumnDef,
ColumnFiltersState,
SortingState,
VisibilityState,
flexRender,
getCoreRowModel,
getFacetedRowModel,
getFacetedUniqueValues,
getFilteredRowModel,
getPaginationRowModel,
getSortedRowModel,
useReactTable,
} from "@tanstack/react-table... | shadcn-ui/ui/apps/www/app/(app)/examples/tasks/components/data-table.tsx | {
"file_path": "shadcn-ui/ui/apps/www/app/(app)/examples/tasks/components/data-table.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 1807
} | 107 |
"use client"
import * as React from "react"
import { getColorFormat, type Color } from "@/lib/colors"
import { cn } from "@/lib/utils"
import { useColors } from "@/hooks/use-colors"
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/registry/new-york/ui/select"
import { Skelet... | shadcn-ui/ui/apps/www/components/color-format-selector.tsx | {
"file_path": "shadcn-ui/ui/apps/www/components/color-format-selector.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 801
} | 108 |
"use client"
import * as React from "react"
import { useTheme } from "next-themes"
import { THEMES, Theme } from "@/lib/themes"
import { cn } from "@/lib/utils"
import { useMediaQuery } from "@/hooks/use-media-query"
import { useThemesConfig } from "@/hooks/use-themes-config"
import { Skeleton } from "@/registry/new-... | shadcn-ui/ui/apps/www/components/themes-selector.tsx | {
"file_path": "shadcn-ui/ui/apps/www/components/themes-selector.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 2130
} | 109 |
"use client"
import * as React from "react"
export function useCopyToClipboard({
timeout = 2000,
onCopy,
}: {
timeout?: number
onCopy?: () => void
} = {}) {
const [isCopied, setIsCopied] = React.useState(false)
const copyToClipboard = (value: string) => {
if (typeof window === "undefined" || !navigat... | shadcn-ui/ui/apps/www/hooks/use-copy-to-clipboard.ts | {
"file_path": "shadcn-ui/ui/apps/www/hooks/use-copy-to-clipboard.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 270
} | 110 |
import { themeColorsToCssVariables } from "@/lib/charts"
const _THEMES = [
{
name: "Default",
id: "default-shadcn",
colors: {
background: "0 0% 100%",
foreground: "240 10% 3.9%",
card: "0 0% 100%",
"card-foreground": "240 10% 3.9%",
popover: "0 0% 100%",
"popover-foreg... | shadcn-ui/ui/apps/www/lib/themes.ts | {
"file_path": "shadcn-ui/ui/apps/www/lib/themes.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 7280
} | 111 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.