text stringlengths 21 253k | id stringlengths 25 123 | metadata dict | __index_level_0__ int64 0 181 |
|---|---|---|---|
body {
background-color: red;
}
| shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/next-pages/styles/other.css | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/next-pages/styles/other.css",
"repo_id": "shadcn-ui/ui",
"token_count": 13
} | 111 |
import type { ActionFunctionArgs } from "@remix-run/node";
import { redirect } from "@remix-run/node";
import { logout } from "~/session.server";
export const action = async ({ request }: ActionFunctionArgs) =>
logout(request);
export const loader = async () => redirect("/");
| shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/app/routes/logout.tsx | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/app/routes/logout.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 82
} | 112 |
// Use this to delete a user by their email
// Simply call this with:
// npx ts-node -r tsconfig-paths/register ./cypress/support/delete-user.ts username@example.com,
// and that user will get deleted
import { PrismaClientKnownRequestError } from "@prisma/client/runtime/library";
import { installGlobals } from "@remix... | shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/cypress/support/delete-user.ts | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/cypress/support/delete-user.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 340
} | 113 |
import type { Config } from "tailwindcss";
export default {
content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {},
},
plugins: [],
} satisfies Config;
| shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix/tailwind.config.ts | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix/tailwind.config.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 76
} | 114 |
#!/bin/bash
set -e # bail on errors
GLOB=$1
IS_CI="${CI:-false}"
BASE=$(pwd)
COMMIT_MESSAGE=$(git log -1 --pretty=%B)
for folder in $GLOB; do
[ -d "$folder" ] || continue
cd $BASE
if [ -n "$(git status --porcelain)" ]; then
git add .
git commit -m "chore: update template"
git push origin main
fi
... | shadcn-ui/ui/scripts/sync-templates.sh | {
"file_path": "shadcn-ui/ui/scripts/sync-templates.sh",
"repo_id": "shadcn-ui/ui",
"token_count": 382
} | 115 |
interface AuthLayoutProps {
children: React.ReactNode
}
export default function AuthLayout({ children }: AuthLayoutProps) {
return <div className="min-h-screen">{children}</div>
} | DarkInventor/easy-ui/app/(auth)/layout.tsx | {
"file_path": "DarkInventor/easy-ui/app/(auth)/layout.tsx",
"repo_id": "DarkInventor/easy-ui",
"token_count": 65
} | 0 |
// import { format, parseISO } from 'date-fns'
// import { allPosts } from 'contentlayer/generated'
// import { getMDXComponent } from 'next-contentlayer/hooks'
// export const generateStaticParams = async () => allPosts.map((post) => ({ slug: post._raw.flattenedPath }))
// export const generateMetadata = ({ params }... | DarkInventor/easy-ui/app/posts/[slug]/page.tsx | {
"file_path": "DarkInventor/easy-ui/app/posts/[slug]/page.tsx",
"repo_id": "DarkInventor/easy-ui",
"token_count": 8004
} | 1 |
"use client";
import React, { useState, useEffect } from 'react';
import { motion, AnimatePresence } from 'framer-motion';
import { Search, ChevronLeft, X } from 'lucide-react';
import { Input } from "@/components/ui/input";
import { Button } from "@/components/ui/button";
import { ScrollArea } from "@/components/ui/sc... | DarkInventor/easy-ui/components/easyui/launchpad.tsx | {
"file_path": "DarkInventor/easy-ui/components/easyui/launchpad.tsx",
"repo_id": "DarkInventor/easy-ui",
"token_count": 4232
} | 2 |
"use client";
import { cn } from "@/lib/utils";
import { motion } from "framer-motion";
import { CSSProperties, ReactElement, useEffect, useState } from "react";
interface Sparkle {
id: string;
x: string;
y: string;
color: string;
delay: number;
scale: number;
lifespan: number;
}
interface SparklesText... | DarkInventor/easy-ui/components/magicui/sparkles-text.tsx | {
"file_path": "DarkInventor/easy-ui/components/magicui/sparkles-text.tsx",
"repo_id": "DarkInventor/easy-ui",
"token_count": 1928
} | 3 |
import { JetBrains_Mono as FontMono, Inter as FontSans } from "next/font/google"
export const fontSans = FontSans({
subsets: ["latin"],
variable: "--font-sans",
})
export const fontMono = FontMono({
subsets: ["latin"],
variable: "--font-mono",
})
| DarkInventor/easy-ui/lib/fonts.ts | {
"file_path": "DarkInventor/easy-ui/lib/fonts.ts",
"repo_id": "DarkInventor/easy-ui",
"token_count": 96
} | 4 |
# Since the ".env" file is gitignored, you can use the ".env.example" file to
# build a new ".env" file when you clone the repo. Keep this file up-to-date
# when you add new variables to `.env`.
# This file will be committed to version control, so make sure not to have any
# secrets in it. If you are cloning this repo... | alifarooq9/rapidlaunch/apps/www/.env.example | {
"file_path": "alifarooq9/rapidlaunch/apps/www/.env.example",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 164
} | 5 |
"use client";
import { Icons } from "@/components/icons";
import { Button } from "@/components/ui/button";
import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet";
import { navConfig } from "@/config/nav";
import { siteUrls } from "@/config/urls";
import { cn } from "@/lib/utils";
import type { LinkP... | alifarooq9/rapidlaunch/apps/www/src/app/(app)/_components/mobile-nav.tsx | {
"file_path": "alifarooq9/rapidlaunch/apps/www/src/app/(app)/_components/mobile-nav.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 1855
} | 6 |
"use client";
import * as React from "react";
import * as LabelPrimitive from "@radix-ui/react-label";
import { cva } from "class-variance-authority";
import type { VariantProps } from "class-variance-authority";
import { cn } from "@/lib/utils";
const labelVariants = cva(
"text-sm font-medium leading-none peer-... | alifarooq9/rapidlaunch/apps/www/src/components/ui/label.tsx | {
"file_path": "alifarooq9/rapidlaunch/apps/www/src/components/ui/label.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 289
} | 7 |
export const userFeedbackPageConfig = {
title: "Feedbacks",
description:
"Manage your feedbacks and suggestions, create new ones, and more.",
} as const;
| alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/feedback/_constants/page-config.ts | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/feedback/_constants/page-config.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 55
} | 8 |
export const orgMembersPageConfig = {
title: "Organization Members",
description: "Manage your organization members here, such as adding, removing, and more!",
} as const;
| alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/org/members/_constants/page-config.ts | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/org/members/_constants/page-config.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 48
} | 9 |
"use client";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Button } from "@/components/ui/button";
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/components/ui/card";
import type { User } from "next-auth";
impo... | alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/profile/settings/_components/user-image-form.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/profile/settings/_components/user-image-form.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 4794
} | 10 |
"use client";
import { Button } from "@/components/ui/button";
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/components/ui/card";
import {
Form,
FormControl,
FormDescription,
FormField,
FormItem,
FormLabel,
FormMessage,
} f... | alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/_components/new-user-org-form.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/_components/new-user-org-form.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 4347
} | 11 |
import { AppPageShell } from "@/app/(app)/_components/page-shell";
import { RevenueChart } from "@/app/(app)/admin/dashboard/_components/revenue-chart";
import { StatsCard } from "@/app/(app)/admin/dashboard/_components/stats-card";
import { SubsChart } from "@/app/(app)/admin/dashboard/_components/subs-chart";
import ... | alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/admin/dashboard/page.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/admin/dashboard/page.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 1955
} | 12 |
"use client";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuRadioGroup,
DropdownMenuRadioItem,
DropdownMenuSeparator,
DropdownMenuSub,
DropdownMenuSubContent,
DropdownMenuSubTrigger,
DropdownMenuTrigger,
} from "@/components/ui/... | alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/admin/users/_components/column-dropdown.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/admin/users/_components/column-dropdown.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 2661
} | 13 |
import { ThemeToggle } from "@/components/theme-toggle";
import { buttonVariants } from "@/components/ui/button";
import { Icons } from "@/components/ui/icons";
import { navigation } from "@/config/header";
import { siteConfig } from "@/config/site";
import { siteUrls } from "@/config/urls";
import { cn } from "@/lib/u... | alifarooq9/rapidlaunch/starterkits/saas/src/app/(web)/_components/footer.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(web)/_components/footer.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 3450
} | 14 |
export const pricingPageConfig = {
title: "Pricing",
} as const;
| alifarooq9/rapidlaunch/starterkits/saas/src/app/(web)/pricing/_constants/page-config.ts | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(web)/pricing/_constants/page-config.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 24
} | 15 |
import { DocsLayout } from "fumadocs-ui/layout";
import { docs } from "@/app/source";
import type { ReactNode } from "react";
import { Icons } from "@/components/ui/icons";
import { WebHeaderNav } from "@/app/(web)/_components/header-nav";
type RootDocsLayoutProps = {
children: ReactNode;
};
export default functi... | alifarooq9/rapidlaunch/starterkits/saas/src/app/docs/layout.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/docs/layout.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 377
} | 16 |
"use client";
import { env } from "@/env";
import { useSession } from "next-auth/react";
import { usePathname } from "next/navigation";
import posthog from "posthog-js";
import { PostHogProvider as CSPostHogProvider } from "posthog-js/react";
import { useEffect } from "react";
if (typeof window !== "undefined") {
... | alifarooq9/rapidlaunch/starterkits/saas/src/components/posthog-provider.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/components/posthog-provider.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 832
} | 17 |
export const new_user_setup_step_cookie = "rapidlaunch:new_user_setup_step"; | alifarooq9/rapidlaunch/starterkits/saas/src/config/cookie-keys.ts | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/config/cookie-keys.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 25
} | 18 |
import { orgConfig } from "@/config/organization";
import { env } from "@/env";
import { type ClassValue, clsx } from "clsx";
import { format } from "date-fns";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
// it tells you if the current li... | alifarooq9/rapidlaunch/starterkits/saas/src/lib/utils.ts | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/lib/utils.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 297
} | 19 |
import { relations, sql } from "drizzle-orm";
import {
boolean,
index,
integer,
jsonb,
pgEnum,
pgTableCreator,
primaryKey,
text,
timestamp,
varchar,
} from "drizzle-orm/pg-core";
import { createInsertSchema, createSelectSchema } from "drizzle-zod";
import { type AdapterAccount } ... | alifarooq9/rapidlaunch/starterkits/saas/src/server/db/schema.ts | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/server/db/schema.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 4586
} | 20 |
import { ChatBody } from '@/types/types';
import { OpenAIStream } from '@/utils/streams/chatStream';
export const runtime = 'edge';
export async function GET(req: Request): Promise<Response> {
try {
const { inputMessage, model, apiKey } = (await req.json()) as ChatBody;
let apiKeyFinal;
if (apiKey) {
... | horizon-ui/shadcn-nextjs-boilerplate/app/api/chatAPI/route.ts | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/app/api/chatAPI/route.ts",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 415
} | 21 |
import { Database } from '@/types/types_db';
import { createServerComponentClient } from '@supabase/auth-helpers-nextjs';
import { cookies } from 'next/headers';
import { cache } from 'react';
export const createServerSupabaseClient = cache(() =>
createServerComponentClient<Database>({ cookies })
);
| horizon-ui/shadcn-nextjs-boilerplate/app/supabase-server.ts | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/app/supabase-server.ts",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 85
} | 22 |
'use client';
// if you use app dir, don't forget this line
import dynamic from 'next/dynamic';
const ApexChart = dynamic(() => import('react-apexcharts'), { ssr: false });
export default function ExampleChart(props: any) {
const { chartData, chartOptions } = props;
return (
<ApexChart
type="line"
... | horizon-ui/shadcn-nextjs-boilerplate/components/charts/LineChart/index.tsx | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/components/charts/LineChart/index.tsx",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 154
} | 23 |
// Auth Imports
import { IRoute } from '@/types/types';
import {
HiOutlineHome,
HiOutlineCpuChip,
HiOutlineUsers,
HiOutlineUser,
HiOutlineCog8Tooth,
HiOutlineCreditCard,
HiOutlineDocumentText,
HiOutlineCurrencyDollar
} from 'react-icons/hi2';
export const routes: IRoute[] = [
{
name: 'Main Dashbo... | horizon-ui/shadcn-nextjs-boilerplate/components/routes.tsx | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/components/routes.tsx",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 907
} | 24 |
'use server';
import { createClient } from '@/utils/supabase/server';
import { cookies } from 'next/headers';
import { redirect } from 'next/navigation';
import { getURL, getErrorRedirect, getStatusRedirect } from '@/utils/helpers';
import { getAuthTypes } from '@/utils/auth-helpers/settings';
function isValidEmail(e... | horizon-ui/shadcn-nextjs-boilerplate/utils/auth-helpers/server.ts | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/utils/auth-helpers/server.ts",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 3172
} | 25 |
import { createServerClient } from '@supabase/ssr';
import { cookies } from 'next/headers';
export const createClient = () => {
const cookieStore = cookies();
return createServerClient(
process.env.NEXT_PUBLIC_SUPABASE_URL!,
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
{
cookies: {
getAll... | horizon-ui/shadcn-nextjs-boilerplate/utils/supabase/server.ts | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/utils/supabase/server.ts",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 361
} | 26 |
import { OrganizationProfile } from '@clerk/nextjs';
import { useTranslations } from 'next-intl';
import { TitleBar } from '@/features/dashboard/TitleBar';
import { getI18nPath } from '@/utils/Helpers';
const OrganizationProfilePage = (props: { params: { locale: string } }) => {
const t = useTranslations('Organizat... | ixartz/SaaS-Boilerplate/src/app/[locale]/(auth)/dashboard/organization-profile/[[...organization-profile]]/page.tsx | {
"file_path": "ixartz/SaaS-Boilerplate/src/app/[locale]/(auth)/dashboard/organization-profile/[[...organization-profile]]/page.tsx",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 380
} | 27 |
import { type ForwardedRef, forwardRef } from 'react';
import { Button } from '@/components/ui/button';
type IToggleMenuButtonProps = {
onClick?: () => void;
};
/**
* A toggle button to show/hide component in small screen.
* @component
* @params props - Component props.
* @params props.onClick - Function to ru... | ixartz/SaaS-Boilerplate/src/components/ToggleMenuButton.tsx | {
"file_path": "ixartz/SaaS-Boilerplate/src/components/ToggleMenuButton.tsx",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 395
} | 28 |
export const PricingFeature = (props: { children: React.ReactNode }) => (
<li className="flex items-center text-muted-foreground">
<svg
className="mr-1 size-6 stroke-current stroke-2 text-purple-400"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
strokeLinecap="ro... | ixartz/SaaS-Boilerplate/src/features/billing/PricingFeature.tsx | {
"file_path": "ixartz/SaaS-Boilerplate/src/features/billing/PricingFeature.tsx",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 223
} | 29 |
import { useState } from 'react';
/**
* React Hook to toggle element. Mostly used for responsive menu.
* @hook
*/
export const useMenu = () => {
const [showMenu, setShowMenu] = useState(false);
const handleToggleMenu = () => {
setShowMenu(prevState => !prevState);
};
const handleClose = () => {
se... | ixartz/SaaS-Boilerplate/src/hooks/UseMenu.ts | {
"file_path": "ixartz/SaaS-Boilerplate/src/hooks/UseMenu.ts",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 127
} | 30 |
import Link from 'next/link';
import { useTranslations } from 'next-intl';
import { CenteredFooter } from '@/features/landing/CenteredFooter';
import { Section } from '@/features/landing/Section';
import { AppConfig } from '@/utils/AppConfig';
import { Logo } from './Logo';
export const Footer = () => {
const t = ... | ixartz/SaaS-Boilerplate/src/templates/Footer.tsx | {
"file_path": "ixartz/SaaS-Boilerplate/src/templates/Footer.tsx",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 3757
} | 31 |
import percySnapshot from '@percy/playwright';
import { expect, test } from '@playwright/test';
test.describe('Visual testing', () => {
test.describe('Static pages', () => {
test('should take screenshot of the homepage', async ({ page }) => {
await page.goto('/');
await expect(page.getByText('The pe... | ixartz/SaaS-Boilerplate/tests/e2e/Visual.e2e.ts | {
"file_path": "ixartz/SaaS-Boilerplate/tests/e2e/Visual.e2e.ts",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 241
} | 32 |
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
pnpm lint-staged
pnpm checkIcons
| lucide-icons/lucide/.husky/pre-commit | {
"file_path": "lucide-icons/lucide/.husky/pre-commit",
"repo_id": "lucide-icons/lucide",
"token_count": 41
} | 33 |
import fs from 'fs';
import module from 'node:module';
/* WASM_IMPORT */
let wasm;
if (process.env.NODE_ENV === 'development') {
const require = module.createRequire(import.meta.url);
wasm = fs.readFileSync(require.resolve('@resvg/resvg-wasm/index_bg.wasm'));
} else {
wasm = resvg_wasm;
}
export default wasm;... | lucide-icons/lucide/docs/.vitepress/api/gh-icon/dpi/loadWasm.ts | {
"file_path": "lucide-icons/lucide/docs/.vitepress/api/gh-icon/dpi/loadWasm.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 123
} | 34 |
import { SVGProps } from 'react';
import { getCommands } from './utils';
export type Point = { x: number; y: number };
export type Path = {
d: string;
prev: Point;
next: Point;
isStart: boolean;
circle?: { x: number; y: number; r: number };
cp1?: Point;
cp2?: Point;
c: ReturnType<typeof getCommands>[n... | lucide-icons/lucide/docs/.vitepress/lib/SvgPreview/types.ts | {
"file_path": "lucide-icons/lucide/docs/.vitepress/lib/SvgPreview/types.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 265
} | 35 |
import { getAllData } from '../../../lib/icons';
import { getAllCategoryFiles, mapCategoryIconCount } from '../../../lib/categories';
import iconsMetaData from '../../../data/iconMetaData';
export default {
async load() {
let categories = getAllCategoryFiles();
categories = mapCategoryIconCount(categories, ... | lucide-icons/lucide/docs/.vitepress/theme/components/icons/CategoryList.data.ts | {
"file_path": "lucide-icons/lucide/docs/.vitepress/theme/components/icons/CategoryList.data.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 124
} | 36 |
import { useRoute } from 'vitepress';
import { ref, inject, Ref, onMounted, watch } from 'vue';
export const CATEGORY_VIEW_CONTEXT = Symbol('categoryView');
interface CategoryViewContext {
selectedCategory: Ref<string>;
categoryCounts: Ref<Record<string, number>>;
}
export const categoryViewContext = {
selecte... | lucide-icons/lucide/docs/.vitepress/theme/composables/useCategoryView.ts | {
"file_path": "lucide-icons/lucide/docs/.vitepress/theme/composables/useCategoryView.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 320
} | 37 |
export default function downloadData(filename: string, data: string) {
const link = document.createElement('a');
link.download = filename;
link.href = data;
link.click();
}
| lucide-icons/lucide/docs/.vitepress/theme/utils/downloadData.ts | {
"file_path": "lucide-icons/lucide/docs/.vitepress/theme/utils/downloadData.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 52
} | 38 |
import App from './App.js?raw'
import styles from '../styles.css?raw'
import IconCss from './icon.css?raw'
const files = {
'icon.css': {
code: IconCss,
readOnly: false,
active: true,
},
'App.js': {
code: App,
},
'styles.css': {
code: styles,
hidden: true
},
}
export default files
| lucide-icons/lucide/docs/guide/basics/examples/size-icon-font-example/files.ts | {
"file_path": "lucide-icons/lucide/docs/guide/basics/examples/size-icon-font-example/files.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 135
} | 39 |
import createCodeExamples from '../.vitepress/lib/codeExamples/createCodeExamples';
export default {
async load() {
const codeExamples = await createCodeExamples();
return {
codeExamples,
};
},
};
| lucide-icons/lucide/docs/icons/codeExamples.data.ts | {
"file_path": "lucide-icons/lucide/docs/icons/codeExamples.data.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 72
} | 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="m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1... | lucide-icons/lucide/icons/award.svg | {
"file_path": "lucide-icons/lucide/icons/award.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 189
} | 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="M3 3h18" />
<path d="M20 7H8" />
<path d="M20 11H8" />
<path d="M10 19h10" />
<path d="M8 15h12" />
... | lucide-icons/lucide/icons/blinds.svg | {
"file_path": "lucide-icons/lucide/icons/blinds.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 186
} | 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"
>
<circle cx="11" cy="13" r="9" />
<path d="M14.35 4.65 16.3 2.7a2.41 2.41 0 0 1 3.4 0l1.6 1.6a2.4 2.4 0 0 1 0 3.4l-1... | lucide-icons/lucide/icons/bomb.svg | {
"file_path": "lucide-icons/lucide/icons/bomb.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 190
} | 43 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M12 5a3 3 0 1 0-5.997.142 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588 4 4 0 0 0 7.636 2.106 3.2 3.2 0 0 0 .164... | lucide-icons/lucide/icons/brain-cog.svg | {
"file_path": "lucide-icons/lucide/icons/brain-cog.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 554
} | 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"
>
<line x1="2" x2="22" y1="2" y2="22" />
<path d="M7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16" />
<path d="M9.5 4h5L17 ... | lucide-icons/lucide/icons/camera-off.svg | {
"file_path": "lucide-icons/lucide/icons/camera-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 209
} | 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="m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8" />
<path d="M7 14h.01" />
<path... | lucide-icons/lucide/icons/car-front.svg | {
"file_path": "lucide-icons/lucide/icons/car-front.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 226
} | 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"
>
<rect width="20" height="16" x="2" y="4" rx="2" />
<circle cx="8" cy="10" r="2" />
<path d="M8 12h8" />
<circle... | lucide-icons/lucide/icons/cassette-tape.svg | {
"file_path": "lucide-icons/lucide/icons/cassette-tape.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 217
} | 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="M3 3v16a2 2 0 0 0 2 2h16" />
<path d="M18 17V9" />
<path d="M13 17V5" />
<path d="M8 17v-3" />
</svg>
| lucide-icons/lucide/icons/chart-column.svg | {
"file_path": "lucide-icons/lucide/icons/chart-column.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 154
} | 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="M10 9h4" />
<path d="M12 7v5" />
<path d="M14 22v-4a2 2 0 0 0-4 0v4" />
<path d="M18 22V5.618a1 1 0 0 ... | lucide-icons/lucide/icons/church.svg | {
"file_path": "lucide-icons/lucide/icons/church.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 279
} | 49 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="12" r="10" />
<rect x="9" y="9" width="6" height="6" rx="1" />
</svg>
| lucide-icons/lucide/icons/circle-stop.svg | {
"file_path": "lucide-icons/lucide/icons/circle-stop.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 134
} | 50 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M10 18H5a3 3 0 0 1-3-3v-1" />
<path d="M14 2a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2" />
<path d="M20 2a2 2 0 0 1 ... | lucide-icons/lucide/icons/combine.svg | {
"file_path": "lucide-icons/lucide/icons/combine.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 247
} | 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"
>
<polyline points="14 15 9 20 4 15" />
<path d="M20 4h-7a4 4 0 0 0-4 4v12" />
</svg>
| lucide-icons/lucide/icons/corner-left-down.svg | {
"file_path": "lucide-icons/lucide/icons/corner-left-down.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 131
} | 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="M21.54 15H17a2 2 0 0 0-2 2v4.54" />
<path d="M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0... | lucide-icons/lucide/icons/earth.svg | {
"file_path": "lucide-icons/lucide/icons/earth.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="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z" />
</svg>
| lucide-icons/lucide/icons/facebook.svg | {
"file_path": "lucide-icons/lucide/icons/facebook.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 152
} | 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="M14 2v4a2 2 0 0 0 2 2h4" />
<path d="m3.2 12.9-.9-.4" />
<path d="m3.2 15.1-.9.4" />
<path d="M4.677 2... | lucide-icons/lucide/icons/file-cog.svg | {
"file_path": "lucide-icons/lucide/icons/file-cog.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 342
} | 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="m6 14 1.45-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.55 6a2 2 0 0 1-1.94 1.5H4a2 2 0 0 1-2-2V5c0-1.1.9-... | lucide-icons/lucide/icons/folder-open-dot.svg | {
"file_path": "lucide-icons/lucide/icons/folder-open-dot.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 240
} | 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 12H5a2 2 0 0 0-2 2v5" />
<circle cx="13" cy="19" r="2" />
<circle cx="5" cy="19" r="2" />
<path d=... | lucide-icons/lucide/icons/forklift.svg | {
"file_path": "lucide-icons/lucide/icons/forklift.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 193
} | 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"
>
<circle cx="18" cy="18" r="3" />
<circle cx="6" cy="6" r="3" />
<path d="M18 6V5" />
<path d="M18 11v-1" />
<... | lucide-icons/lucide/icons/git-pull-request-draft.svg | {
"file_path": "lucide-icons/lucide/icons/git-pull-request-draft.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 177
} | 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="M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17" />
<path d="m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-... | lucide-icons/lucide/icons/hand-coins.svg | {
"file_path": "lucide-icons/lucide/icons/hand-coins.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 265
} | 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="M4 12h8" />
<path d="M4 18V6" />
<path d="M12 18V6" />
<path d="M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0... | lucide-icons/lucide/icons/heading-3.svg | {
"file_path": "lucide-icons/lucide/icons/heading-3.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 206
} | 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="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-crack.svg | {
"file_path": "lucide-icons/lucide/icons/heart-crack.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 227
} | 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="M16 5h6" />
<path d="M19 2v6" />
<path d="M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5"... | lucide-icons/lucide/icons/image-plus.svg | {
"file_path": "lucide-icons/lucide/icons/image-plus.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 221
} | 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="M12 9.5V21m0-11.5L6 3m6 6.5L18 3" />
<path d="M6 15h12" />
<path d="M6 11h12" />
</svg>
| lucide-icons/lucide/icons/japanese-yen.svg | {
"file_path": "lucide-icons/lucide/icons/japanese-yen.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 149
} | 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"
>
<line x1="3" x2="21" y1="22" y2="22" />
<line x1="6" x2="6" y1="18" y2="11" />
<line x1="10" x2="10" y1="18" y2="... | lucide-icons/lucide/icons/landmark.svg | {
"file_path": "lucide-icons/lucide/icons/landmark.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 231
} | 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="M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z" />
<path d="M2 21c0-3 1.... | lucide-icons/lucide/icons/leaf.svg | {
"file_path": "lucide-icons/lucide/icons/leaf.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 185
} | 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="M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5" />
<path d="m2 2 20 20" />
<path d="M6.3 6.3a4.67 4.67 0... | lucide-icons/lucide/icons/lightbulb-off.svg | {
"file_path": "lucide-icons/lucide/icons/lightbulb-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 222
} | 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="m3 10 2.5-2.5L3 5" />
<path d="m3 19 2.5-2.5L3 14" />
<path d="M10 6h11" />
<path d="M10 12h11" />
<... | lucide-icons/lucide/icons/list-collapse.svg | {
"file_path": "lucide-icons/lucide/icons/list-collapse.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 172
} | 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="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4" />
<polyline points="10 17 15 12 10 7" />
<line x1="15" x2="3... | lucide-icons/lucide/icons/log-in.svg | {
"file_path": "lucide-icons/lucide/icons/log-in.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 166
} | 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="M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z" />... | lucide-icons/lucide/icons/mail-open.svg | {
"file_path": "lucide-icons/lucide/icons/mail-open.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 211
} | 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 18h8" />
<path d="M3 22h18" />
<path d="M14 22a7 7 0 1 0 0-14h-1" />
<path d="M9 14h2" />
<path d... | lucide-icons/lucide/icons/microscope.svg | {
"file_path": "lucide-icons/lucide/icons/microscope.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 226
} | 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="M5.5 20H8" />
<path d="M17 9h.01" />
<rect width="10" height="16" x="12" y="4" rx="2" />
<path d="M8 6... | lucide-icons/lucide/icons/monitor-speaker.svg | {
"file_path": "lucide-icons/lucide/icons/monitor-speaker.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 197
} | 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="M19 5c-1.5 0-2.8 1.4-3 2-3.5-1.5-11-.3-11 5 0 1.8 0 3 2 4.5V20h4v-2h3v2h4v-4c1-.5 1.7-1 2-2h2v-4h-2c0-1-.5-1... | lucide-icons/lucide/icons/piggy-bank.svg | {
"file_path": "lucide-icons/lucide/icons/piggy-bank.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 235
} | 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 22 1-1h3l9-9" />
<path d="M3 21v-3l9-9" />
<path d="m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1... | lucide-icons/lucide/icons/pipette.svg | {
"file_path": "lucide-icons/lucide/icons/pipette.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 208
} | 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="M18.6 14.4c.8-.8.8-2 0-2.8l-8.1-8.1a4.95 4.95 0 1 0-7.1 7.1l8.1 8.1c.9.7 2.1.7 2.9-.1Z" />
<path d="m22 22... | lucide-icons/lucide/icons/popsicle.svg | {
"file_path": "lucide-icons/lucide/icons/popsicle.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 188
} | 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="M13 13H8a1 1 0 0 0-1 1v7" />
<path d="M14 8h1" />
<path d="M17 21v-4" />
<path d="m2 2 20 20" />
<pa... | lucide-icons/lucide/icons/save-off.svg | {
"file_path": "lucide-icons/lucide/icons/save-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 270
} | 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="M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z" />
<path d="M3 6h18" />
<path d="M16 10a4 4 0 0 1-8 ... | lucide-icons/lucide/icons/shopping-bag.svg | {
"file_path": "lucide-icons/lucide/icons/shopping-bag.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="M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2" ... | lucide-icons/lucide/icons/sigma.svg | {
"file_path": "lucide-icons/lucide/icons/sigma.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 177
} | 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"
>
<line x1="2" x2="22" y1="12" y2="12" />
<line x1="12" x2="12" y1="2" y2="22" />
<path d="m20 16-4-4 4-4" />
<pa... | lucide-icons/lucide/icons/snowflake.svg | {
"file_path": "lucide-icons/lucide/icons/snowflake.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 209
} | 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="M8.8 20v-4.1l1.9.2a2.3 2.3 0 0 0 2.164-2.1V8.3A5.37 5.37 0 0 0 2 8.25c0 2.8.656 3.054 1 4.55a5.77 5.77 0 0 1... | lucide-icons/lucide/icons/speech.svg | {
"file_path": "lucide-icons/lucide/icons/speech.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 241
} | 79 |
<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 8 10.58-5.06a1 1 0 0 1 1.342.488L18.5 8" />
<path d="M6 10V8" />
<path d="M6 14v1" />
<path d="M6... | lucide-icons/lucide/icons/tickets.svg | {
"file_path": "lucide-icons/lucide/icons/tickets.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 192
} | 80 |
<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 4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16" />
<path d="M2 14h12" />
<path d="M22 14h-2" />
<path d="M12 2... | lucide-icons/lucide/icons/touchpad-off.svg | {
"file_path": "lucide-icons/lucide/icons/touchpad-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 202
} | 81 |
<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="18" x="3" y="3" rx="2" ry="2" />
<rect width="3" height="9" x="7" y="7" />
<rect width="... | lucide-icons/lucide/icons/trello.svg | {
"file_path": "lucide-icons/lucide/icons/trello.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 164
} | 82 |
<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 12a5 5 0 0 0 5 5 8 8 0 0 1 5 2 8 8 0 0 1 5-2 5 5 0 0 0 5-5V7h-5a8 8 0 0 0-5 2 8 8 0 0 0-5-2H2Z" />
<pat... | lucide-icons/lucide/icons/venetian-mask.svg | {
"file_path": "lucide-icons/lucide/icons/venetian-mask.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 223
} | 83 |
/** @deprecated Use the injection token LUCIDE_ICONS instead. Will be removed in v1.0. */
export class Icons {
constructor(private icons: object) {}
}
| lucide-icons/lucide/packages/lucide-angular/src/lib/icons.provider.ts | {
"file_path": "lucide-icons/lucide/packages/lucide-angular/src/lib/icons.provider.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 45
} | 84 |
import { h, toChildArray } from 'preact';
import defaultAttributes from './defaultAttributes';
import type { IconNode, LucideProps } from './types';
interface IconComponentProps extends LucideProps {
iconNode: IconNode;
}
/**
* Lucide icon component
*
* @component Icon
* @param {object} props
* @param {string}... | lucide-icons/lucide/packages/lucide-preact/src/Icon.ts | {
"file_path": "lucide-icons/lucide/packages/lucide-preact/src/Icon.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 486
} | 85 |
import '@testing-library/jest-dom';
import { expect, afterEach } from 'vitest';
import { cleanup } from '@testing-library/react';
import '@testing-library/jest-dom/vitest';
import htmlSerializer from 'jest-serializer-html';
expect.addSnapshotSerializer(htmlSerializer);
afterEach(() => {
cleanup();
});
| lucide-icons/lucide/packages/lucide-react-native/tests/setupVitest.js | {
"file_path": "lucide-icons/lucide/packages/lucide-react-native/tests/setupVitest.js",
"repo_id": "lucide-icons/lucide",
"token_count": 102
} | 86 |
import { JSX } from 'solid-js/jsx-runtime';
import { SVGAttributes } from './types';
const defaultAttributes: SVGAttributes = {
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... | lucide-icons/lucide/packages/lucide-solid/src/defaultAttributes.ts | {
"file_path": "lucide-icons/lucide/packages/lucide-solid/src/defaultAttributes.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 136
} | 87 |
import plugins from '@lucide/rollup-plugins';
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-static.ts'];
const bundles = [
{
format: 'cjs',
inputs,
outputDir,
},
{
... | lucide-icons/lucide/packages/lucide-static/rollup.config.mjs | {
"file_path": "lucide-icons/lucide/packages/lucide-static/rollup.config.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 552
} | 88 |
import type { Attrs } from './types.js';
const defaultAttributes: Attrs = {
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',
};
export default defaultAttri... | lucide-icons/lucide/packages/lucide-svelte/src/defaultAttributes.ts | {
"file_path": "lucide-icons/lucide/packages/lucide-svelte/src/defaultAttributes.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 122
} | 89 |
import plugins, { replace } from '@lucide/rollup-plugins';
import pkg from './package.json' assert { type: 'json' };
import dts from 'rollup-plugin-dts';
const packageName = 'LucideVueNext';
const outputFileName = 'lucide-vue-next';
const outputDir = 'dist';
const inputs = ['src/lucide-vue-next.ts'];
const bundles = [... | lucide-icons/lucide/packages/lucide-vue-next/rollup.config.mjs | {
"file_path": "lucide-icons/lucide/packages/lucide-vue-next/rollup.config.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 749
} | 90 |
import { expect } from 'vitest';
import '@testing-library/jest-dom/vitest';
import htmlSerializer from 'jest-serializer-html';
expect.addSnapshotSerializer(htmlSerializer);
| lucide-icons/lucide/packages/lucide/tests/setupVitest.js | {
"file_path": "lucide-icons/lucide/packages/lucide/tests/setupVitest.js",
"repo_id": "lucide-icons/lucide",
"token_count": 58
} | 91 |
import path from 'path';
import { promises as fs } from 'fs';
import { getCurrentDirPath, readSvgDirectory } from '../tools/build-helpers/helpers.mjs';
// This is a special case convertion NextJS uses for their modularize imports. We try to follow the same convention, to generate the same imports.
function pascalToKeb... | lucide-icons/lucide/scripts/generateNextJSAliases.mjs | {
"file_path": "lucide-icons/lucide/scripts/generateNextJSAliases.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 727
} | 92 |
/* eslint-disable import/prefer-default-export */
import fs from 'fs';
import path from 'path';
/**
* Resets the file contents.
*
* @param {string} fileName
* @param {string} outputDirectory
*/
export const resetFile = (fileName, outputDirectory) =>
fs.writeFileSync(path.join(outputDirectory, fileName), '', 'ut... | lucide-icons/lucide/tools/build-helpers/src/resetFile.mjs | {
"file_path": "lucide-icons/lucide/tools/build-helpers/src/resetFile.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 102
} | 93 |
import { getProjectById } from "../action";
import TabSections from "./tab-sections";
export default async function SingleProject({
params,
}: {
params: { projectId: string };
}) {
const { projectId } = params;
const project = await getProjectById(projectId);
return <TabSections project={project} />;
}
| moinulmoin/chadnext/src/app/[locale]/dashboard/projects/[projectId]/page.tsx | {
"file_path": "moinulmoin/chadnext/src/app/[locale]/dashboard/projects/[projectId]/page.tsx",
"repo_id": "moinulmoin/chadnext",
"token_count": 93
} | 94 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.