text stringlengths 21 253k | id stringlengths 25 123 | metadata dict | __index_level_0__ int64 0 181 |
|---|---|---|---|
import { UserProfile } from '@clerk/nextjs';
import { useTranslations } from 'next-intl';
import { TitleBar } from '@/features/dashboard/TitleBar';
import { getI18nPath } from '@/utils/Helpers';
const UserProfilePage = (props: { params: { locale: string } }) => {
const t = useTranslations('UserProfile');
return ... | ixartz/SaaS-Boilerplate/src/app/[locale]/(auth)/dashboard/user-profile/[[...user-profile]]/page.tsx | {
"file_path": "ixartz/SaaS-Boilerplate/src/app/[locale]/(auth)/dashboard/user-profile/[[...user-profile]]/page.tsx",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 325
} | 26 |
import type { VariantProps } from 'class-variance-authority';
import * as React from 'react';
import { cn } from '@/utils/Helpers';
import { badgeVariants } from './badgeVariants';
export type BadgeProps = {} & React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof badgeVariants>;
function Badge({ className, va... | ixartz/SaaS-Boilerplate/src/components/ui/badge.tsx | {
"file_path": "ixartz/SaaS-Boilerplate/src/components/ui/badge.tsx",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 153
} | 27 |
'use client';
import { OrganizationSwitcher, UserButton } from '@clerk/nextjs';
import Link from 'next/link';
import { useLocale } from 'next-intl';
import { ActiveLink } from '@/components/ActiveLink';
import { LocaleSwitcher } from '@/components/LocaleSwitcher';
import { ToggleMenuButton } from '@/components/Toggle... | ixartz/SaaS-Boilerplate/src/features/dashboard/DashboardHeader.tsx | {
"file_path": "ixartz/SaaS-Boilerplate/src/features/dashboard/DashboardHeader.tsx",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 1668
} | 28 |
import path from 'node:path';
import { PGlite } from '@electric-sql/pglite';
import { drizzle as drizzlePg } from 'drizzle-orm/node-postgres';
import { migrate as migratePg } from 'drizzle-orm/node-postgres/migrator';
import { drizzle as drizzlePglite, type PgliteDatabase } from 'drizzle-orm/pglite';
import { migrate ... | ixartz/SaaS-Boilerplate/src/libs/DB.ts | {
"file_path": "ixartz/SaaS-Boilerplate/src/libs/DB.ts",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 473
} | 29 |
import { AppConfig } from '@/utils/AppConfig';
export const Logo = () => (
<div className="flex items-center text-xl font-semibold">
<svg
className="mr-1 size-8 stroke-current stroke-2"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
strokeLinecap="round"
st... | ixartz/SaaS-Boilerplate/src/templates/Logo.tsx | {
"file_path": "ixartz/SaaS-Boilerplate/src/templates/Logo.tsx",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 308
} | 30 |
import { eventHandler, getQuery, setResponseHeader } from 'h3';
import iconNodes from '../../data/iconNodes';
import { IconNodeWithKeys } from '../../theme/types';
export default eventHandler((event) => {
const query = getQuery(event);
const withUniqueKeys = query.withUniqueKeys === 'true';
setResponseHeader(e... | lucide-icons/lucide/docs/.vitepress/api/icon-nodes/index.get.ts | {
"file_path": "lucide-icons/lucide/docs/.vitepress/api/icon-nodes/index.get.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 282
} | 31 |
import fs from 'fs';
import path from 'path';
import { Category, IconEntity } from '../theme/types';
const directory = path.join(process.cwd(), '../categories');
export function getAllCategoryFiles(): Category[] {
const fileNames = fs.readdirSync(directory).filter((file) => path.extname(file) === '.json');
retur... | lucide-icons/lucide/docs/.vitepress/lib/categories.ts | {
"file_path": "lucide-icons/lucide/docs/.vitepress/lib/categories.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 318
} | 32 |
import { ref, inject, Ref, watch } from 'vue';
import { ExternalLibs, IconEntity } from '../types';
export const EXTERNAL_LIBS_CONTEXT = Symbol('externalLibs');
type ExternalIconNodes = Partial<Record<ExternalLibs, IconEntity[]>>;
interface ExternalLibContext {
selectedLibs: Ref<[ExternalLibs]>;
externalIconNode... | lucide-icons/lucide/docs/.vitepress/theme/composables/useExternalLibs.ts | {
"file_path": "lucide-icons/lucide/docs/.vitepress/theme/composables/useExternalLibs.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 616
} | 33 |
import { IconNode } from 'lucide-vue-next/src/createLucideIcon';
import Vue from 'vue';
declare module '*.vue' {
export default Vue;
}
declare module '*.data.ts' {
const data: any;
export { data };
}
declare module '*.wasm' {}
declare const resvg_wasm: RequestInfo | URL | Response | BufferSource | WebAssembl... | lucide-icons/lucide/docs/.vitepress/vue-shim.d.ts | {
"file_path": "lucide-icons/lucide/docs/.vitepress/vue-shim.d.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 166
} | 34 |
import { PartyPopper } from "lucide-react";
function App() {
return (
<div>
<PartyPopper className="w-24 h-24" />
</div>
);
}
export default App;
| lucide-icons/lucide/docs/guide/basics/examples/size-icon-tailwind-example/App.js | {
"file_path": "lucide-icons/lucide/docs/guide/basics/examples/size-icon-tailwind-example/App.js",
"repo_id": "lucide-icons/lucide",
"token_count": 71
} | 35 |
import fs from 'fs';
import path from 'path';
const currentDir = process.cwd();
const dataDirectory = path.resolve(currentDir, '.vitepress/data');
const directory = path.join(process.cwd(), '../categories');
function getAllCategoryFiles() {
const fileNames = fs.readdirSync(directory).filter((file) => path.extname(f... | lucide-icons/lucide/docs/scripts/writeCategoriesMetadata.mjs | {
"file_path": "lucide-icons/lucide/docs/scripts/writeCategoriesMetadata.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 349
} | 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="M21 14h-5" />
<path d="M16 16v-3.5a2.5 2.5 0 0 1 5 0V16" />
<path d="M4.5 13h6" />
<path d="m3 16 4.5-... | lucide-icons/lucide/icons/a-large-small.svg | {
"file_path": "lucide-icons/lucide/icons/a-large-small.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 169
} | 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="M10 17c-5-3-7-7-7-9a2 2 0 0 1 4 0c0 2.5-5 2.5-5 6 0 1.7 1.3 3 3 3 2.8 0 5-2.2 5-5" />
<path d="M22 17c-5-3... | lucide-icons/lucide/icons/ampersands.svg | {
"file_path": "lucide-icons/lucide/icons/ampersands.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 225
} | 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="M10 10.01h.01" />
<path d="M10 14.01h.01" />
<path d="M14 10.01h.01" />
<path d="M14 14.01h.01" />
<... | lucide-icons/lucide/icons/bandage.svg | {
"file_path": "lucide-icons/lucide/icons/bandage.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 209
} | 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 4v16" />
<path d="M2 8h18a2 2 0 0 1 2 2v10" />
<path d="M2 17h20" />
<path d="M6 8v9" />
</svg>
| lucide-icons/lucide/icons/bed.svg | {
"file_path": "lucide-icons/lucide/icons/bed.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 153
} | 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="M17 10c.7-.7 1.69 0 2.5 0a2.5 2.5 0 1 0 0-5 .5.5 0 0 1-.5-.5 2.5 2.5 0 1 0-5 0c0 .81.7 1.8 0 2.5l-7 7c-.7.7-... | lucide-icons/lucide/icons/bone.svg | {
"file_path": "lucide-icons/lucide/icons/bone.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 235
} | 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="M16 8.2A2.22 2.22 0 0 0 13.8 6c-.8 0-1.4.3-1.8.9-.4-.6-1-.9-1.8-.9A2.22 2.22 0 0 0 8 8.2c0 .6.3 1.2.7 1.6A22... | lucide-icons/lucide/icons/book-heart.svg | {
"file_path": "lucide-icons/lucide/icons/book-heart.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 282
} | 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="M15 7.13V6a3 3 0 0 0-5.14-2.1L8 2" />
<path d="M14.12 3.88 16 2" />
<path d="M22 13h-4v-2a4 4 0 0 0-4-4h... | lucide-icons/lucide/icons/bug-off.svg | {
"file_path": "lucide-icons/lucide/icons/bug-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 308
} | 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="M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z" />
<... | lucide-icons/lucide/icons/chart-pie.svg | {
"file_path": "lucide-icons/lucide/icons/chart-pie.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 178
} | 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="m4.6 13.11 5.79-3.21c1.89-1.05 4.79 1.78 3.71 3.71l-3.22 5.81C8.8 23.16.79 15.23 4.6 13.11Z" />
<path d="m... | lucide-icons/lucide/icons/croissant.svg | {
"file_path": "lucide-icons/lucide/icons/croissant.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 372
} | 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"
>
<ellipse cx="12" cy="5" rx="9" ry="3" />
<path d="M3 5v14a9 3 0 0 0 18 0V5" />
</svg>
| lucide-icons/lucide/icons/cylinder.svg | {
"file_path": "lucide-icons/lucide/icons/cylinder.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 139
} | 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="m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21" />
<path d="M22 21H7... | lucide-icons/lucide/icons/eraser.svg | {
"file_path": "lucide-icons/lucide/icons/eraser.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 194
} | 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="M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2" />
<path d="M14 2v4a2 2 0 0 0 2 2h4" />
<circle cx="3" ... | lucide-icons/lucide/icons/file-audio-2.svg | {
"file_path": "lucide-icons/lucide/icons/file-audio-2.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 214
} | 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="M18 12.47v.03m0-.5v.47m-.475 5.056A6.744 6.744 0 0 1 15 18c-3.56 0-7.56-2.53-8.5-6 .348-1.28 1.114-2.433 2.1... | lucide-icons/lucide/icons/fish-off.svg | {
"file_path": "lucide-icons/lucide/icons/fish-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 427
} | 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"
>
<path d="M9 10h.01" />
<path d="M15 10h.01" />
<path d="M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 ... | lucide-icons/lucide/icons/ghost.svg | {
"file_path": "lucide-icons/lucide/icons/ghost.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 180
} | 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"
>
<circle cx="12" cy="18" r="3" />
<circle cx="6" cy="6" r="3" />
<circle cx="18" cy="6" r="3" />
<path d="M18 9v... | lucide-icons/lucide/icons/git-fork.svg | {
"file_path": "lucide-icons/lucide/icons/git-fork.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 194
} | 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"
>
<line x1="22" x2="2" y1="12" y2="12" />
<path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2... | lucide-icons/lucide/icons/hard-drive.svg | {
"file_path": "lucide-icons/lucide/icons/hard-drive.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 248
} | 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="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8... | lucide-icons/lucide/icons/heart-handshake.svg | {
"file_path": "lucide-icons/lucide/icons/heart-handshake.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 305
} | 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="M10.82 16.12c1.69.6 3.91.79 5.18.85.28.01.53-.09.7-.27" />
<path d="M11.14 20.57c.52.24 2.44 1.12 4.08 1.3... | lucide-icons/lucide/icons/hop-off.svg | {
"file_path": "lucide-icons/lucide/icons/hop-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 572
} | 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="M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21" />
<path d... | lucide-icons/lucide/icons/image-up.svg | {
"file_path": "lucide-icons/lucide/icons/image-up.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 215
} | 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="M12 12c-2-2.67-4-4-6-4a4 4 0 1 0 0 8c2 0 4-1.33 6-4Zm0 0c2 2.67 4 4 6 4a4 4 0 0 0 0-8c-2 0-4 1.33-6 4Z" />
<... | lucide-icons/lucide/icons/infinity.svg | {
"file_path": "lucide-icons/lucide/icons/infinity.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 171
} | 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"
>
<rect x="3" y="5" width="6" height="6" rx="1" />
<path d="m3 17 2 2 4-4" />
<path d="M13 6h8" />
<path d="M13 1... | lucide-icons/lucide/icons/list-todo.svg | {
"file_path": "lucide-icons/lucide/icons/list-todo.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 172
} | 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="M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.... | lucide-icons/lucide/icons/medal.svg | {
"file_path": "lucide-icons/lucide/icons/medal.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 255
} | 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="M13.5 3.1c-.5 0-1-.1-1.5-.1s-1 .1-1.5.1" />
<path d="M19.3 6.8a10.45 10.45 0 0 0-2.1-2.1" />
<path d="M2... | lucide-icons/lucide/icons/message-circle-dashed.svg | {
"file_path": "lucide-icons/lucide/icons/message-circle-dashed.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 367
} | 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="M12 17v4" />
<path d="M8 21h8" />
<rect x="2" y="3" width="20" height="14" rx="2" />
<rect x="9" y="7"... | lucide-icons/lucide/icons/monitor-stop.svg | {
"file_path": "lucide-icons/lucide/icons/monitor-stop.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 169
} | 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="M9.31 9.31 5 21l7-4 7 4-1.17-3.17" />
<path d="M14.53 8.88 12 2l-1.17 3.17" />
<line x1="2" x2="22" y1="... | lucide-icons/lucide/icons/navigation-2-off.svg | {
"file_path": "lucide-icons/lucide/icons/navigation-2-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 172
} | 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="M3 9h18v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9Z" />
<path d="m3 9 2.45-4.9A2 2 0 0 1 7.24 3h9.52a2 2 0 0 1 1.8... | lucide-icons/lucide/icons/package-2.svg | {
"file_path": "lucide-icons/lucide/icons/package-2.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 190
} | 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="m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z" />
<path d="m5 2 5 5" />
<path d="M2 ... | lucide-icons/lucide/icons/paint-bucket.svg | {
"file_path": "lucide-icons/lucide/icons/paint-bucket.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 220
} | 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="M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 ... | lucide-icons/lucide/icons/puzzle.svg | {
"file_path": "lucide-icons/lucide/icons/puzzle.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 594
} | 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="M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z" />
<path d="M16 8h-6a2 2 0 1 0 0 ... | lucide-icons/lucide/icons/receipt.svg | {
"file_path": "lucide-icons/lucide/icons/receipt.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 203
} | 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"
>
<path d="M3 2v6h6" />
<path d="M21 12A9 9 0 0 0 6 5.3L3 8" />
<path d="M21 22v-6h-6" />
<path d="M3 12a9 9 0 0 ... | lucide-icons/lucide/icons/refresh-ccw-dot.svg | {
"file_path": "lucide-icons/lucide/icons/refresh-ccw-dot.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 191
} | 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 9 3-3 3 3" />
<path d="M13 18H7a2 2 0 0 1-2-2V6" />
<path d="m22 15-3 3-3-3" />
<path d="M11 6h6a2 ... | lucide-icons/lucide/icons/repeat-2.svg | {
"file_path": "lucide-icons/lucide/icons/repeat-2.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 173
} | 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="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z" />
<path d="m12... | lucide-icons/lucide/icons/rocket.svg | {
"file_path": "lucide-icons/lucide/icons/rocket.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 299
} | 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"
>
<circle cx="6" cy="19" r="3" />
<path d="M9 19h8.5c.4 0 .9-.1 1.3-.2" />
<path d="M5.2 5.2A3.5 3.53 0 0 0 6.5 12H... | lucide-icons/lucide/icons/route-off.svg | {
"file_path": "lucide-icons/lucide/icons/route-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 244
} | 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="M6 11h8a4 4 0 0 0 0-8H9v18" />
<path d="M6 15h8" />
</svg>
| lucide-icons/lucide/icons/russian-ruble.svg | {
"file_path": "lucide-icons/lucide/icons/russian-ruble.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 130
} | 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="M7 2h13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-5" />
<path d="M10 10 2.5 2.5C2 2 2 2.5 2 5v3a2 2 0 0 0 2 2h6z" />
... | lucide-icons/lucide/icons/server-off.svg | {
"file_path": "lucide-icons/lucide/icons/server-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 268
} | 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="m15 11-1 9" />
<path d="m19 11-4-7" />
<path d="M2 11h20" />
<path d="m3.5 11 1.6 7.4a2 2 0 0 0 2 1.6h... | lucide-icons/lucide/icons/shopping-basket.svg | {
"file_path": "lucide-icons/lucide/icons/shopping-basket.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="M7 18v-6a5 5 0 1 1 10 0v6" />
<path d="M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2... | lucide-icons/lucide/icons/siren.svg | {
"file_path": "lucide-icons/lucide/icons/siren.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 260
} | 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="M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443... | lucide-icons/lucide/icons/square-dashed-mouse-pointer.svg | {
"file_path": "lucide-icons/lucide/icons/square-dashed-mouse-pointer.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 316
} | 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="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18" /... | lucide-icons/lucide/icons/table-2.svg | {
"file_path": "lucide-icons/lucide/icons/table-2.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 174
} | 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"
>
<path d="M21 7 6.82 21.18a2.83 2.83 0 0 1-3.99-.01a2.83 2.83 0 0 1 0-4L17 3" />
<path d="m16 2 6 6" />
<path d="M... | lucide-icons/lucide/icons/test-tube-diagonal.svg | {
"file_path": "lucide-icons/lucide/icons/test-tube-diagonal.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 166
} | 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="m12 10 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a8 8 0 1 0-16 0v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3l2-4h4Z" />
... | lucide-icons/lucide/icons/turtle.svg | {
"file_path": "lucide-icons/lucide/icons/turtle.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 227
} | 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="M12 2v1" />
<path d="M15.5 21a1.85 1.85 0 0 1-3.5-1v-8H2a10 10 0 0 1 3.428-6.575" />
<path d="M17.5 12H2... | lucide-icons/lucide/icons/umbrella-off.svg | {
"file_path": "lucide-icons/lucide/icons/umbrella-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 191
} | 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="m2 8 2 2-2 2 2 2-2 2" />
<path d="m22 8-2 2 2 2-2 2 2 2" />
<path d="M8 8v10c0 .55.45 1 1 1h6c.55 0 1-.4... | lucide-icons/lucide/icons/vibrate-off.svg | {
"file_path": "lucide-icons/lucide/icons/vibrate-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 227
} | 79 |
import {
ChangeDetectorRef,
Component,
ElementRef,
Inject,
Input,
OnChanges,
Renderer2,
SimpleChange,
} from '@angular/core';
import { LucideIconData } from '../icons/types';
import defaultAttributes from '../icons/constants/default-attributes';
import { LUCIDE_ICONS, LucideIconProviderInterface } from ... | lucide-icons/lucide/packages/lucide-angular/src/lib/lucide-angular.component.ts | {
"file_path": "lucide-icons/lucide/packages/lucide-angular/src/lib/lucide-angular.component.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 2321
} | 80 |
/// <reference types="react" />
declare module 'lucide-react-native';
// Create interface extending SVGProps
export interface LucideProps extends Partial<React.SVGProps<SVGSVGElement>> {
size?: string | number;
}
export declare const createLucideIcon: (
iconName: string,
iconNode: any[],
) => (props: LucidePro... | lucide-icons/lucide/packages/lucide-react-native/lucide-react-native.d.ts | {
"file_path": "lucide-icons/lucide/packages/lucide-react-native/lucide-react-native.d.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 19480
} | 81 |
import { writeFile } from 'fs/promises';
import { existsSync, unlinkSync, mkdirSync } from 'fs';
export default async function copyIcons(parsedSvgs, packageDir, license) {
const iconsDirectory = `${packageDir}/icons`;
if (existsSync(iconsDirectory)) {
unlinkSync(iconsDirectory);
}
if (!existsSync(iconsDi... | lucide-icons/lucide/packages/lucide-static/scripts/copyIcons.mjs | {
"file_path": "lucide-icons/lucide/packages/lucide-static/scripts/copyIcons.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 255
} | 82 |
export * from './icons/index.js';
export * as icons from './icons/index.js';
export * from './aliases.js';
export { default as defaultAttributes } from './defaultAttributes.js';
export * from './types.js';
export { default as Icon } from './Icon.svelte';
| lucide-icons/lucide/packages/lucide-svelte/src/lucide-svelte.ts | {
"file_path": "lucide-icons/lucide/packages/lucide-svelte/src/lucide-svelte.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 79
} | 83 |
import { type FunctionalComponent, h } from 'vue';
import { mergeClasses, toKebabCase } from '@lucide/shared';
import defaultAttributes from './defaultAttributes';
import { IconNode, LucideProps } from './types';
interface IconProps {
iconNode: IconNode;
name: string;
}
const Icon: FunctionalComponent<LucideProps... | lucide-icons/lucide/packages/lucide-vue-next/src/Icon.ts | {
"file_path": "lucide-icons/lucide/packages/lucide-vue-next/src/Icon.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 348
} | 84 |
import plugins from '@lucide/rollup-plugins';
import replace from '@rollup/plugin-replace';
import dts from 'rollup-plugin-dts';
import pkg from './package.json' assert { type: 'json' };
const outputFileName = pkg.name;
const outputDir = 'dist';
const inputs = ['src/lucide.ts'];
const bundles = [
{
format: 'umd'... | lucide-icons/lucide/packages/lucide/rollup.config.mjs | {
"file_path": "lucide-icons/lucide/packages/lucide/rollup.config.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 841
} | 85 |
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'jsdom',
setupFiles: './tests/setupVitest.js',
}
});
| lucide-icons/lucide/packages/lucide/vitest.config.mts | {
"file_path": "lucide-icons/lucide/packages/lucide/vitest.config.mts",
"repo_id": "lucide-icons/lucide",
"token_count": 68
} | 86 |
import path from 'path';
import fs from 'fs';
import process from 'process';
import { spawn } from 'child_process';
const regex = /(?<file>[^:]+):(?<line>\d+):(?<column>\d+)\s-\s+(?<message>.+)/;
const fileList = process.env.CHANGED_FILES
? (process.env.CHANGED_FILES || '').split(' ')
: fs.readdirSync('./icons').m... | lucide-icons/lucide/scripts/lintFilenames.mjs | {
"file_path": "lucide-icons/lucide/scripts/lintFilenames.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 379
} | 87 |
export * from './src/toCamelCase.mjs';
export * from './src/toPascalCase.mjs';
export * from './src/toKebabCase.mjs';
export * from './src/resetFile.mjs';
export * from './src/readFile.mjs';
export * from './src/appendFile.mjs';
export * from './src/writeFile.mjs';
export * from './src/writeFileIfNotExists.mjs';
export... | lucide-icons/lucide/tools/build-helpers/helpers.mjs | {
"file_path": "lucide-icons/lucide/tools/build-helpers/helpers.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 311
} | 88 |
/* eslint-disable import/prefer-default-export */
/**
* Converts string to CamelCase
*
* @param {string} string
* @returns {string} A camelized string
*/
export const toCamelCase = (string) =>
string.replace(/^([A-Z])|[\s-_]+(\w)/g, (match, p1, p2) =>
p2 ? p2.toUpperCase() : p1.toLowerCase(),
);
| lucide-icons/lucide/tools/build-helpers/src/toCamelCase.mjs | {
"file_path": "lucide-icons/lucide/tools/build-helpers/src/toCamelCase.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 124
} | 89 |
const base64SVG = (svgContents) =>
Buffer.from(
svgContents
.replace('\n', '')
.replace(
'stroke="currentColor"',
'stroke="#000" style="background-color: #fff; border-radius: 2px"',
),
).toString('base64');
export default base64SVG;
| lucide-icons/lucide/tools/build-icons/utils/base64SVG.mjs | {
"file_path": "lucide-icons/lucide/tools/build-icons/utils/base64SVG.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 119
} | 90 |
"use server";
import { type Session, type User } from "lucia";
import { cookies } from "next/headers";
import { redirect } from "next/navigation";
import { TimeSpan, createDate, isWithinExpirationDate } from "oslo";
import { alphabet, generateRandomString } from "oslo/crypto";
import { cache } from "react";
import { l... | moinulmoin/chadnext/src/actions/auth.ts | {
"file_path": "moinulmoin/chadnext/src/actions/auth.ts",
"repo_id": "moinulmoin/chadnext",
"token_count": 1119
} | 91 |
"use server";
import { type Project } from "@prisma/client";
import { revalidatePath } from "next/cache";
import { redirect } from "next/navigation";
import { validateRequest } from "~/actions/auth";
import { getUserSubscriptionPlan } from "~/actions/subscription";
import prisma from "~/lib/prisma";
interface Payload... | moinulmoin/chadnext/src/app/[locale]/dashboard/projects/action.ts | {
"file_path": "moinulmoin/chadnext/src/app/[locale]/dashboard/projects/action.ts",
"repo_id": "moinulmoin/chadnext",
"token_count": 761
} | 92 |
import { ImageResponse } from "next/og";
import { RenderIMGEl } from "~/components/OGImgEl";
import { siteUrl } from "~/config/site";
import Logo from "public/chad-next.png";
import homepageImage from "public/chadnext-homepage.png";
export const runtime = "edge";
export async function GET(request: Request) {
const ... | moinulmoin/chadnext/src/app/api/og/route.ts | {
"file_path": "moinulmoin/chadnext/src/app/api/og/route.ts",
"repo_id": "moinulmoin/chadnext",
"token_count": 330
} | 93 |
/* eslint-disable @next/next/no-img-element */
export const RenderIMGEl = ({
logo,
image,
locale,
}: {
logo: string;
locale: string;
image: string;
}) => {
return (
<div tw="flex relative flex-col p-12 w-full h-full rounded bg-gray-900 text-white items-center">
<div tw="flex items-center my-5"... | moinulmoin/chadnext/src/components/OGImgEl.tsx | {
"file_path": "moinulmoin/chadnext/src/components/OGImgEl.tsx",
"repo_id": "moinulmoin/chadnext",
"token_count": 329
} | 94 |
export default {
header: {
changelog: "Changelog",
about: "About",
login: "Login",
dashboard: "Dashboard",
},
hero: {
top: "Introducing",
main: "Quick Starter Template for your Next project",
sub: "Packed with all necessary features to get started.",
firstButton: "Get started",
... | moinulmoin/chadnext/src/locales/en.ts | {
"file_path": "moinulmoin/chadnext/src/locales/en.ts",
"repo_id": "moinulmoin/chadnext",
"token_count": 160
} | 95 |
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { Icon } from "@/components/ui/icon";
import { icons } from "lucide-react";
interface BenefitsProps {
icon: string;
title: string;
description: string;
}
const benefitList: BenefitsProps[] = [
{
icon: "Blocks",
tit... | nobruf/shadcn-landing-page/components/layout/sections/benefits.tsx | {
"file_path": "nobruf/shadcn-landing-page/components/layout/sections/benefits.tsx",
"repo_id": "nobruf/shadcn-landing-page",
"token_count": 1376
} | 96 |
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-full border border-secondary px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:r... | nobruf/shadcn-landing-page/components/ui/badge.tsx | {
"file_path": "nobruf/shadcn-landing-page/components/ui/badge.tsx",
"repo_id": "nobruf/shadcn-landing-page",
"token_count": 427
} | 97 |
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{
protocol: "https",
hostname: "i.pravatar.cc",
},
{
protocol: "https",
hostname: "images.unsplash.com",
},
{
protocol: "https",
hostname: "github... | nobruf/shadcn-landing-page/next.config.mjs | {
"file_path": "nobruf/shadcn-landing-page/next.config.mjs",
"repo_id": "nobruf/shadcn-landing-page",
"token_count": 187
} | 98 |
import Link from "next/link"
import { cn } from "@/lib/utils"
import { buttonVariants } from "@/components/ui/button"
import { Icons } from "@/components/icons"
import { UserAuthForm } from "@/components/user-auth-form"
export const metadata = {
title: "Create an account",
description: "Create an account to get s... | shadcn-ui/taxonomy/app/(auth)/register/page.tsx | {
"file_path": "shadcn-ui/taxonomy/app/(auth)/register/page.tsx",
"repo_id": "shadcn-ui/taxonomy",
"token_count": 933
} | 99 |
import { notFound, redirect } from "next/navigation"
import { Post, User } from "@prisma/client"
import { authOptions } from "@/lib/auth"
import { db } from "@/lib/db"
import { getCurrentUser } from "@/lib/session"
import { Editor } from "@/components/editor"
async function getPostForUser(postId: Post["id"], userId: ... | shadcn-ui/taxonomy/app/(editor)/editor/[postId]/page.tsx | {
"file_path": "shadcn-ui/taxonomy/app/(editor)/editor/[postId]/page.tsx",
"repo_id": "shadcn-ui/taxonomy",
"token_count": 365
} | 100 |
import Link from "next/link"
import { cn } from "@/lib/utils"
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
href?: string
disabled?: boolean
}
export function MdxCard({
href,
className,
children,
disabled,
...props
}: CardProps) {
return (
<div
className={cn(
"g... | shadcn-ui/taxonomy/components/mdx-card.tsx | {
"file_path": "shadcn-ui/taxonomy/components/mdx-card.tsx",
"repo_id": "shadcn-ui/taxonomy",
"token_count": 394
} | 101 |
"use client"
import * as React from "react"
import { TableOfContents } from "@/lib/toc"
import { cn } from "@/lib/utils"
import { useMounted } from "@/hooks/use-mounted"
interface TocProps {
toc: TableOfContents
}
export function DashboardTableOfContents({ toc }: TocProps) {
const itemIds = React.useMemo(
(... | shadcn-ui/taxonomy/components/toc.tsx | {
"file_path": "shadcn-ui/taxonomy/components/toc.tsx",
"repo_id": "shadcn-ui/taxonomy",
"token_count": 1309
} | 102 |
"use client"
import * as React from "react"
import * as HoverCardPrimitive from "@radix-ui/react-hover-card"
import { cn } from "@/lib/utils"
const HoverCard = HoverCardPrimitive.Root
const HoverCardTrigger = HoverCardPrimitive.Trigger
const HoverCardContent = React.forwardRef<
React.ElementRef<typeof HoverCardP... | shadcn-ui/taxonomy/components/ui/hover-card.tsx | {
"file_path": "shadcn-ui/taxonomy/components/ui/hover-card.tsx",
"repo_id": "shadcn-ui/taxonomy",
"token_count": 299
} | 103 |
import * as React from "react"
import { cn } from "@/lib/utils"
export interface TextareaProps
extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
({ className, ...props }, ref) => {
return (
<textarea
className={cn... | shadcn-ui/taxonomy/components/ui/textarea.tsx | {
"file_path": "shadcn-ui/taxonomy/components/ui/textarea.tsx",
"repo_id": "shadcn-ui/taxonomy",
"token_count": 292
} | 104 |
import * as React from "react"
// @see https://usehooks.com/useLockBodyScroll.
export function useLockBody() {
React.useLayoutEffect((): (() => void) => {
const originalStyle: string = window.getComputedStyle(
document.body
).overflow
document.body.style.overflow = "hidden"
return () => (docume... | shadcn-ui/taxonomy/hooks/use-lock-body.ts | {
"file_path": "shadcn-ui/taxonomy/hooks/use-lock-body.ts",
"repo_id": "shadcn-ui/taxonomy",
"token_count": 127
} | 105 |
// @ts-nocheck
// This file is autogenerated by scripts/build-registry.ts
// Do not edit this file directly.
import * as React from "react"
export const Index: Record<string, any> = {
"new-york": {
"accordion": {
name: "accordion",
type: "registry:ui",
registryDependencies: undefined,
fil... | shadcn-ui/ui/apps/www/__registry__/index.tsx | {
"file_path": "shadcn-ui/ui/apps/www/__registry__/index.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 110148
} | 106 |
import { docsConfig } from "@/config/docs"
import { DocsSidebarNav } from "@/components/sidebar-nav"
import { ScrollArea } from "@/registry/new-york/ui/scroll-area"
interface DocsLayoutProps {
children: React.ReactNode
}
export default function DocsLayout({ children }: DocsLayoutProps) {
return (
<div classNa... | shadcn-ui/ui/apps/www/app/(app)/docs/layout.tsx | {
"file_path": "shadcn-ui/ui/apps/www/app/(app)/docs/layout.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 350
} | 107 |
import {
Avatar,
AvatarFallback,
AvatarImage,
} from "@/registry/new-york/ui/avatar"
export function RecentSales() {
return (
<div className="space-y-8">
<div className="flex items-center">
<Avatar className="h-9 w-9">
<AvatarImage src="/avatars/01.png" alt="Avatar" />
<Av... | shadcn-ui/ui/apps/www/app/(app)/examples/dashboard/components/recent-sales.tsx | {
"file_path": "shadcn-ui/ui/apps/www/app/(app)/examples/dashboard/components/recent-sales.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 1334
} | 108 |
"use client"
import Link from "next/link"
import { zodResolver } from "@hookform/resolvers/zod"
import { useFieldArray, useForm } from "react-hook-form"
import { z } from "zod"
import { cn } from "@/lib/utils"
import { toast } from "@/registry/new-york/hooks/use-toast"
import { Button } from "@/registry/new-york/ui/b... | shadcn-ui/ui/apps/www/app/(app)/examples/forms/profile-form.tsx | {
"file_path": "shadcn-ui/ui/apps/www/app/(app)/examples/forms/profile-form.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 2802
} | 109 |
import { Metadata } from "next"
import Image from "next/image"
import { PlusCircledIcon } from "@radix-ui/react-icons"
import { Button } from "@/registry/new-york/ui/button"
import { ScrollArea, ScrollBar } from "@/registry/new-york/ui/scroll-area"
import { Separator } from "@/registry/new-york/ui/separator"
import {
... | shadcn-ui/ui/apps/www/app/(app)/examples/music/page.tsx | {
"file_path": "shadcn-ui/ui/apps/www/app/(app)/examples/music/page.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 3910
} | 110 |
import {
ChevronLeftIcon,
ChevronRightIcon,
DoubleArrowLeftIcon,
DoubleArrowRightIcon,
} from "@radix-ui/react-icons"
import { Table } from "@tanstack/react-table"
import { Button } from "@/registry/new-york/ui/button"
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/... | shadcn-ui/ui/apps/www/app/(app)/examples/tasks/components/data-table-pagination.tsx | {
"file_path": "shadcn-ui/ui/apps/www/app/(app)/examples/tasks/components/data-table-pagination.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 1637
} | 111 |
import { Metadata } from "next"
import "public/registry/themes.css"
import { Announcement } from "@/components/announcement"
import {
PageActions,
PageHeader,
PageHeaderDescription,
PageHeaderHeading,
} from "@/components/page-header"
import { ThemeCustomizer } from "@/components/theme-customizer"
import { The... | shadcn-ui/ui/apps/www/app/(app)/themes/page.tsx | {
"file_path": "shadcn-ui/ui/apps/www/app/(app)/themes/page.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 552
} | 112 |
import { getBlock } from "@/lib/blocks"
import { cn } from "@/lib/utils"
import { ChartToolbar } from "@/components/chart-toolbar"
export async function ChartDisplay({
name,
children,
className,
}: { name: string } & React.ComponentProps<"div">) {
const chart = await getBlock(name)
// Cannot (and don't need... | shadcn-ui/ui/apps/www/components/chart-display.tsx | {
"file_path": "shadcn-ui/ui/apps/www/components/chart-display.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 393
} | 113 |
"use client"
import * as React from "react"
import { Index } from "@/__registry__"
import { cn } from "@/lib/utils"
import { useConfig } from "@/hooks/use-config"
import { Icons } from "@/components/icons"
interface ThemeComponentProps extends React.HTMLAttributes<HTMLDivElement> {
name: string
extractClassname?... | shadcn-ui/ui/apps/www/components/theme-component.tsx | {
"file_path": "shadcn-ui/ui/apps/www/components/theme-component.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 568
} | 114 |
"use server"
import { codeToHtml } from "shiki"
export async function highlightCode(code: string) {
const html = codeToHtml(code, {
lang: "typescript",
theme: "github-dark-default",
transformers: [
{
code(node) {
node.properties["data-line-numbers"] = ""
},
},
]... | shadcn-ui/ui/apps/www/lib/highlight-code.ts | {
"file_path": "shadcn-ui/ui/apps/www/lib/highlight-code.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 150
} | 115 |
module.exports = require("../../postcss.config.cjs")
| shadcn-ui/ui/apps/www/postcss.config.cjs | {
"file_path": "shadcn-ui/ui/apps/www/postcss.config.cjs",
"repo_id": "shadcn-ui/ui",
"token_count": 18
} | 116 |
.theme-zinc {
--background: 0 0% 100%;
--foreground: 240 10% 3.9%;
--muted: 240 4.8% 95.9%;
--muted-foreground: 240 3.8% 46.1%;
--popover: 0 0% 100%;
--popover-foreground: 240 10% 3.9%;
--card: 0 0% 100%;
--card-foreground: 240 10% 3.9%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--prima... | shadcn-ui/ui/apps/www/public/registry/themes.css | {
"file_path": "shadcn-ui/ui/apps/www/public/registry/themes.css",
"repo_id": "shadcn-ui/ui",
"token_count": 6873
} | 117 |
"use client"
import { TrendingDown, TrendingUp } from "lucide-react"
import { Area, AreaChart, CartesianGrid, XAxis } from "recharts"
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/registry/default/ui/card"
import {
ChartConfig,
ChartContainer,
ChartLegend,... | shadcn-ui/ui/apps/www/registry/default/block/chart-area-icons.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/block/chart-area-icons.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 1466
} | 118 |
"use client"
import { TrendingUp } from "lucide-react"
import { LabelList, Pie, PieChart } from "recharts"
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/registry/default/ui/card"
import {
ChartConfig,
ChartContainer,
ChartTooltip,
ChartTooltipContent,
} ... | shadcn-ui/ui/apps/www/registry/default/block/chart-pie-label-list.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/block/chart-pie-label-list.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 1171
} | 119 |
"use client"
import Link from "next/link"
import { ArrowUpRight } from "lucide-react"
import { Badge } from "@/registry/default/ui/badge"
import { Button } from "@/registry/default/ui/button"
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/registry/default/ui/card"
import {
T... | shadcn-ui/ui/apps/www/registry/default/block/dashboard-01-chunk-4.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/block/dashboard-01-chunk-4.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 2945
} | 120 |
"use client"
import { Badge } from "@/registry/default/ui/badge"
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/registry/default/ui/card"
import {
Table,
TableBody,
TableCell,
TableHead,
TableHeader,
TableRow,
} from "@/registry/default/ui/table"
export default fun... | shadcn-ui/ui/apps/www/registry/default/block/dashboard-05-chunk-3.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/block/dashboard-05-chunk-3.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 3708
} | 121 |
import Link from "next/link"
import { MoreHorizontal, PlusSquare, type LucideIcon } from "lucide-react"
import { cn } from "@/registry/default/lib/utils"
import { Button } from "@/registry/default/ui/button"
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuSeparator,
DropdownMenuTrig... | shadcn-ui/ui/apps/www/registry/default/block/sidebar-01/components/nav-projects.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/block/sidebar-01/components/nav-projects.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 1277
} | 122 |
import { Badge } from "@/registry/default/ui/badge"
export default function BadgeOutline() {
return <Badge variant="outline">Outline</Badge>
}
| shadcn-ui/ui/apps/www/registry/default/example/badge-outline.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/example/badge-outline.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 47
} | 123 |
import { Button } from "@/registry/default/ui/button"
export default function ButtonSecondary() {
return <Button variant="secondary">Secondary</Button>
}
| shadcn-ui/ui/apps/www/registry/default/example/button-secondary.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/example/button-secondary.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 43
} | 124 |
"use client"
import * as React from "react"
import { Button } from "@/registry/default/ui/button"
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/registry/default/ui/card"
import { Input } from "@/registry/default/ui/input"
import { Label } from "@/registry/defaul... | shadcn-ui/ui/apps/www/registry/default/example/cards/report-issue.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/example/cards/report-issue.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 1421
} | 125 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.