{ // 获取包含Hugging Face文本的span元素 const spans = link.querySelectorAll('span.whitespace-nowrap, span.hidden.whitespace-nowrap'); spans.forEach(span => { if (span.textContent && span.textContent.trim().match(/Hugging\s*Face/i)) { span.textContent = 'AI快站'; } }); }); // 替换logo图片的alt属性 document.querySelectorAll('img[alt*="Hugging"], img[alt*="Face"]').forEach(img => { if (img.alt.match(/Hugging\s*Face/i)) { img.alt = 'AI快站 logo'; } }); } // 替换导航栏中的链接 function replaceNavigationLinks() { // 已替换标记,防止重复运行 if (window._navLinksReplaced) { return; } // 已经替换过的链接集合,防止重复替换 const replacedLinks = new Set(); // 只在导航栏区域查找和替换链接 const headerArea = document.querySelector('header') || document.querySelector('nav'); if (!headerArea) { return; } // 在导航区域内查找链接 const navLinks = headerArea.querySelectorAll('a'); navLinks.forEach(link => { // 如果已经替换过,跳过 if (replacedLinks.has(link)) return; const linkText = link.textContent.trim(); const linkHref = link.getAttribute('href') || ''; // 替换Spaces链接 - 仅替换一次 if ( (linkHref.includes('/spaces') || linkHref === '/spaces' || linkText === 'Spaces' || linkText.match(/^s*Spacess*$/i)) && linkText !== 'OCR模型免费转Markdown' && linkText !== 'OCR模型免费转Markdown' ) { link.textContent = 'OCR模型免费转Markdown'; link.href = 'https://fast360.xyz'; link.setAttribute('target', '_blank'); link.setAttribute('rel', 'noopener noreferrer'); replacedLinks.add(link); } // 删除Posts链接 else if ( (linkHref.includes('/posts') || linkHref === '/posts' || linkText === 'Posts' || linkText.match(/^s*Postss*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } // 替换Docs链接 - 仅替换一次 else if ( (linkHref.includes('/docs') || linkHref === '/docs' || linkText === 'Docs' || linkText.match(/^s*Docss*$/i)) && linkText !== '模型下载攻略' ) { link.textContent = '模型下载攻略'; link.href = '/'; replacedLinks.add(link); } // 删除Enterprise链接 else if ( (linkHref.includes('/enterprise') || linkHref === '/enterprise' || linkText === 'Enterprise' || linkText.match(/^s*Enterprises*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } }); // 查找可能嵌套的Spaces和Posts文本 const textNodes = []; function findTextNodes(element) { if (element.nodeType === Node.TEXT_NODE) { const text = element.textContent.trim(); if (text === 'Spaces' || text === 'Posts' || text === 'Enterprise') { textNodes.push(element); } } else { for (const child of element.childNodes) { findTextNodes(child); } } } // 只在导航区域内查找文本节点 findTextNodes(headerArea); // 替换找到的文本节点 textNodes.forEach(node => { const text = node.textContent.trim(); if (text === 'Spaces') { node.textContent = node.textContent.replace(/Spaces/g, 'OCR模型免费转Markdown'); } else if (text === 'Posts') { // 删除Posts文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } else if (text === 'Enterprise') { // 删除Enterprise文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } }); // 标记已替换完成 window._navLinksReplaced = true; } // 替换代码区域中的域名 function replaceCodeDomains() { // 特别处理span.hljs-string和span.njs-string元素 document.querySelectorAll('span.hljs-string, span.njs-string, span[class*="hljs-string"], span[class*="njs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换hljs-string类的span中的域名(移除多余的转义符号) document.querySelectorAll('span.hljs-string, span[class*="hljs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换pre和code标签中包含git clone命令的域名 document.querySelectorAll('pre, code').forEach(element => { if (element.textContent && element.textContent.includes('git clone')) { const text = element.innerHTML; if (text.includes('huggingface.co')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 处理特定的命令行示例 document.querySelectorAll('pre, code').forEach(element => { const text = element.innerHTML; if (text.includes('huggingface.co')) { // 针对git clone命令的专门处理 if (text.includes('git clone') || text.includes('GIT_LFS_SKIP_SMUDGE=1')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 特别处理模型下载页面上的代码片段 document.querySelectorAll('.flex.border-t, .svelte_hydrator, .inline-block').forEach(container => { const content = container.innerHTML; if (content && content.includes('huggingface.co')) { container.innerHTML = content.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 特别处理模型仓库克隆对话框中的代码片段 try { // 查找包含"Clone this model repository"标题的对话框 const cloneDialog = document.querySelector('.svelte_hydration_boundary, [data-target="MainHeader"]'); if (cloneDialog) { // 查找对话框中所有的代码片段和命令示例 const codeElements = cloneDialog.querySelectorAll('pre, code, span'); codeElements.forEach(element => { if (element.textContent && element.textContent.includes('huggingface.co')) { if (element.innerHTML.includes('huggingface.co')) { element.innerHTML = element.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { element.textContent = element.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); } // 更精确地定位克隆命令中的域名 document.querySelectorAll('[data-target]').forEach(container => { const codeBlocks = container.querySelectorAll('pre, code, span.hljs-string'); codeBlocks.forEach(block => { if (block.textContent && block.textContent.includes('huggingface.co')) { if (block.innerHTML.includes('huggingface.co')) { block.innerHTML = block.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { block.textContent = block.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); }); } catch (e) { // 错误处理但不打印日志 } } // 当DOM加载完成后执行替换 if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', () => { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); }); } else { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); } // 增加一个MutationObserver来处理可能的动态元素加载 const observer = new MutationObserver(mutations => { // 检查是否导航区域有变化 const hasNavChanges = mutations.some(mutation => { // 检查是否存在header或nav元素变化 return Array.from(mutation.addedNodes).some(node => { if (node.nodeType === Node.ELEMENT_NODE) { // 检查是否是导航元素或其子元素 if (node.tagName === 'HEADER' || node.tagName === 'NAV' || node.querySelector('header, nav')) { return true; } // 检查是否在导航元素内部 let parent = node.parentElement; while (parent) { if (parent.tagName === 'HEADER' || parent.tagName === 'NAV') { return true; } parent = parent.parentElement; } } return false; }); }); // 只在导航区域有变化时执行替换 if (hasNavChanges) { // 重置替换状态,允许再次替换 window._navLinksReplaced = false; replaceHeaderBranding(); replaceNavigationLinks(); } }); // 开始观察document.body的变化,包括子节点 if (document.body) { observer.observe(document.body, { childList: true, subtree: true }); } else { document.addEventListener('DOMContentLoaded', () => { observer.observe(document.body, { childList: true, subtree: true }); }); } })(); \n \n );\n}\n"},"id":{"kind":"string","value":"nobruf/shadcn-landing-page/app/layout.tsx"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"nobruf/shadcn-landing-page/app/layout.tsx\",\n \"repo_id\": \"nobruf/shadcn-landing-page\",\n \"token_count\": 351\n}"},"__index_level_0__":{"kind":"number","value":87,"string":"87"}}},{"rowIdx":1919,"cells":{"text":{"kind":"string","value":"import { Badge } from \"@/components/ui/badge\";\nimport {\n Card,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/components/ui/card\";\n\nenum ProService {\n YES = 1,\n NO = 0,\n}\ninterface ServiceProps {\n title: string;\n pro: ProService;\n description: string;\n}\nconst serviceList: ServiceProps[] = [\n {\n title: \"Custom Domain Integration\",\n description:\n \"Lorem ipsum dolor sit, amet consectetur adipisicing elit adipisicing.\",\n pro: 0,\n },\n {\n title: \"Social Media Integrations\",\n description:\n \"Lorem ipsum dolor sit, amet consectetur adipisicing elit. Molestiae, dicta.\",\n pro: 0,\n },\n {\n title: \"Email Marketing Integrations\",\n description: \"Lorem dolor sit amet adipisicing.\",\n pro: 0,\n },\n {\n title: \"SEO Optimization\",\n description: \"Lorem ipsum dolor sit amet consectetur.\",\n pro: 1,\n },\n];\n\nexport const ServicesSection = () => {\n return (\n
\n

\n Services\n

\n\n

\n Grow Your Business\n

\n

\n From marketing and sales to operations and strategy, we have the\n expertise to help you achieve your goals.\n

\n
\n\n
\n {serviceList.map(({ title, description, pro }) => (\n \n \n {title}\n {description}\n \n \n PRO\n \n \n ))}\n
\n
\n );\n};\n"},"id":{"kind":"string","value":"nobruf/shadcn-landing-page/components/layout/sections/services.tsx"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"nobruf/shadcn-landing-page/components/layout/sections/services.tsx\",\n \"repo_id\": \"nobruf/shadcn-landing-page\",\n \"token_count\": 999\n}"},"__index_level_0__":{"kind":"number","value":88,"string":"88"}}},{"rowIdx":1920,"cells":{"text":{"kind":"string","value":"#!/usr/bin/env sh\n. \"$(dirname -- \"$0\")/_/husky.sh\"\n\nnpx commitlint --edit $1\n"},"id":{"kind":"string","value":"shadcn-ui/taxonomy/.husky/commit-msg"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/taxonomy/.husky/commit-msg\",\n \"repo_id\": \"shadcn-ui/taxonomy\",\n \"token_count\": 37\n}"},"__index_level_0__":{"kind":"number","value":89,"string":"89"}}},{"rowIdx":1921,"cells":{"text":{"kind":"string","value":"import { notFound } from \"next/navigation\"\nimport { allDocs } from \"contentlayer/generated\"\n\nimport { getTableOfContents } from \"@/lib/toc\"\nimport { Mdx } from \"@/components/mdx-components\"\nimport { DocsPageHeader } from \"@/components/page-header\"\nimport { DocsPager } from \"@/components/pager\"\nimport { DashboardTableOfContents } from \"@/components/toc\"\n\nimport \"@/styles/mdx.css\"\nimport { Metadata } from \"next\"\n\nimport { env } from \"@/env.mjs\"\nimport { absoluteUrl } from \"@/lib/utils\"\n\ninterface DocPageProps {\n params: {\n slug: string[]\n }\n}\n\nasync function getDocFromParams(params) {\n const slug = params.slug?.join(\"/\") || \"\"\n const doc = allDocs.find((doc) => doc.slugAsParams === slug)\n\n if (!doc) {\n null\n }\n\n return doc\n}\n\nexport async function generateMetadata({\n params,\n}: DocPageProps): Promise {\n const doc = await getDocFromParams(params)\n\n if (!doc) {\n return {}\n }\n\n const url = env.NEXT_PUBLIC_APP_URL\n\n const ogUrl = new URL(`${url}/api/og`)\n ogUrl.searchParams.set(\"heading\", doc.description ?? doc.title)\n ogUrl.searchParams.set(\"type\", \"Documentation\")\n ogUrl.searchParams.set(\"mode\", \"dark\")\n\n return {\n title: doc.title,\n description: doc.description,\n openGraph: {\n title: doc.title,\n description: doc.description,\n type: \"article\",\n url: absoluteUrl(doc.slug),\n images: [\n {\n url: ogUrl.toString(),\n width: 1200,\n height: 630,\n alt: doc.title,\n },\n ],\n },\n twitter: {\n card: \"summary_large_image\",\n title: doc.title,\n description: doc.description,\n images: [ogUrl.toString()],\n },\n }\n}\n\nexport async function generateStaticParams(): Promise<\n DocPageProps[\"params\"][]\n> {\n return allDocs.map((doc) => ({\n slug: doc.slugAsParams.split(\"/\"),\n }))\n}\n\nexport default async function DocPage({ params }: DocPageProps) {\n const doc = await getDocFromParams(params)\n\n if (!doc) {\n notFound()\n }\n\n const toc = await getTableOfContents(doc.body.raw)\n\n return (\n
\n
\n \n \n
\n \n
\n
\n
\n \n
\n
\n
\n )\n}\n"},"id":{"kind":"string","value":"shadcn-ui/taxonomy/app/(docs)/docs/[[...slug]]/page.tsx"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/taxonomy/app/(docs)/docs/[[...slug]]/page.tsx\",\n \"repo_id\": \"shadcn-ui/taxonomy\",\n \"token_count\": 1088\n}"},"__index_level_0__":{"kind":"number","value":90,"string":"90"}}},{"rowIdx":1922,"cells":{"text":{"kind":"string","value":"import NextAuth from \"next-auth\"\n\nimport { authOptions } from \"@/lib/auth\"\n\nconst handler = NextAuth(authOptions)\n\nexport { handler as GET, handler as POST }\n"},"id":{"kind":"string","value":"shadcn-ui/taxonomy/app/api/auth/[...nextauth]/_route.ts"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/taxonomy/app/api/auth/[...nextauth]/_route.ts\",\n \"repo_id\": \"shadcn-ui/taxonomy\",\n \"token_count\": 47\n}"},"__index_level_0__":{"kind":"number","value":91,"string":"91"}}},{"rowIdx":1923,"cells":{"text":{"kind":"string","value":"\"use client\"\n\nimport * as React from \"react\"\n\nimport { UserSubscriptionPlan } from \"types\"\nimport { cn, formatDate } from \"@/lib/utils\"\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/components/ui/card\"\nimport { toast } from \"@/components/ui/use-toast\"\nimport { Icons } from \"@/components/icons\"\n\ninterface BillingFormProps extends React.HTMLAttributes {\n subscriptionPlan: UserSubscriptionPlan & {\n isCanceled: boolean\n }\n}\n\nexport function BillingForm({\n subscriptionPlan,\n className,\n ...props\n}: BillingFormProps) {\n const [isLoading, setIsLoading] = React.useState(false)\n\n async function onSubmit(event) {\n event.preventDefault()\n setIsLoading(!isLoading)\n\n // Get a Stripe session URL.\n const response = await fetch(\"/api/users/stripe\")\n\n if (!response?.ok) {\n return toast({\n title: \"Something went wrong.\",\n description: \"Please refresh the page and try again.\",\n variant: \"destructive\",\n })\n }\n\n // Redirect to the Stripe session.\n // This could be a checkout page for initial upgrade.\n // Or portal to manage existing subscription.\n const session = await response.json()\n if (session) {\n window.location.href = session.url\n }\n }\n\n return (\n
\n \n \n Subscription Plan\n \n You are currently on the {subscriptionPlan.name}{\" \"}\n plan.\n \n \n {subscriptionPlan.description}\n \n \n {isLoading && (\n \n )}\n {subscriptionPlan.isPro ? \"Manage Subscription\" : \"Upgrade to PRO\"}\n \n {subscriptionPlan.isPro ? (\n

\n {subscriptionPlan.isCanceled\n ? \"Your plan will be canceled on \"\n : \"Your plan renews on \"}\n {formatDate(subscriptionPlan.stripeCurrentPeriodEnd)}.\n

\n ) : null}\n
\n
\n
\n )\n}\n"},"id":{"kind":"string","value":"shadcn-ui/taxonomy/components/billing-form.tsx"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/taxonomy/components/billing-form.tsx\",\n \"repo_id\": \"shadcn-ui/taxonomy\",\n \"token_count\": 1095\n}"},"__index_level_0__":{"kind":"number","value":92,"string":"92"}}},{"rowIdx":1924,"cells":{"text":{"kind":"string","value":"import Link from \"next/link\"\nimport { Post } from \"@prisma/client\"\n\nimport { formatDate } from \"@/lib/utils\"\nimport { Skeleton } from \"@/components/ui/skeleton\"\nimport { PostOperations } from \"@/components/post-operations\"\n\ninterface PostItemProps {\n post: Pick\n}\n\nexport function PostItem({ post }: PostItemProps) {\n return (\n
\n
\n \n {post.title}\n \n
\n

\n {formatDate(post.createdAt?.toDateString())}\n

\n
\n
\n \n
\n )\n}\n\nPostItem.Skeleton = function PostItemSkeleton() {\n return (\n
\n
\n \n \n
\n
\n )\n}\n"},"id":{"kind":"string","value":"shadcn-ui/taxonomy/components/post-item.tsx"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/taxonomy/components/post-item.tsx\",\n \"repo_id\": \"shadcn-ui/taxonomy\",\n \"token_count\": 504\n}"},"__index_level_0__":{"kind":"number","value":93,"string":"93"}}},{"rowIdx":1925,"cells":{"text":{"kind":"string","value":"import { User } from \"@prisma/client\"\nimport { AvatarProps } from \"@radix-ui/react-avatar\"\n\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport { Icons } from \"@/components/icons\"\n\ninterface UserAvatarProps extends AvatarProps {\n user: Pick\n}\n\nexport function UserAvatar({ user, ...props }: UserAvatarProps) {\n return (\n \n {user.image ? (\n \n ) : (\n \n {user.name}\n \n \n )}\n \n )\n}\n"},"id":{"kind":"string","value":"shadcn-ui/taxonomy/components/user-avatar.tsx"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/taxonomy/components/user-avatar.tsx\",\n \"repo_id\": \"shadcn-ui/taxonomy\",\n \"token_count\": 284\n}"},"__index_level_0__":{"kind":"number","value":94,"string":"94"}}},{"rowIdx":1926,"cells":{"text":{"kind":"string","value":"// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n provider = \"prisma-client-js\"\n}\n\ndatasource db {\n provider = \"mysql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel Account {\n id String @id @default(cuid())\n userId String\n type String\n provider String\n providerAccountId String\n refresh_token String? @db.Text\n access_token String? @db.Text\n expires_at Int?\n token_type String?\n scope String?\n id_token String? @db.Text\n session_state String?\n createdAt DateTime @default(now()) @map(name: \"created_at\")\n updatedAt DateTime @default(now()) @map(name: \"updated_at\")\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@unique([provider, providerAccountId])\n @@map(name: \"accounts\")\n}\n\nmodel Session {\n id String @id @default(cuid())\n sessionToken String @unique\n userId String\n expires DateTime\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@map(name: \"sessions\")\n}\n\nmodel User {\n id String @id @default(cuid())\n name String?\n email String? @unique\n emailVerified DateTime?\n image String?\n createdAt DateTime @default(now()) @map(name: \"created_at\")\n updatedAt DateTime @default(now()) @map(name: \"updated_at\")\n\n accounts Account[]\n sessions Session[]\n Post Post[]\n\n stripeCustomerId String? @unique @map(name: \"stripe_customer_id\")\n stripeSubscriptionId String? @unique @map(name: \"stripe_subscription_id\")\n stripePriceId String? @map(name: \"stripe_price_id\")\n stripeCurrentPeriodEnd DateTime? @map(name: \"stripe_current_period_end\")\n\n @@map(name: \"users\")\n}\n\nmodel VerificationToken {\n identifier String\n token String @unique\n expires DateTime\n\n @@unique([identifier, token])\n @@map(name: \"verification_tokens\")\n}\n\nmodel Post {\n id String @id @default(cuid())\n title String\n content Json?\n published Boolean @default(false)\n createdAt DateTime @default(now()) @map(name: \"created_at\")\n updatedAt DateTime @default(now()) @map(name: \"updated_at\")\n authorId String\n\n author User @relation(fields: [authorId], references: [id])\n\n @@map(name: \"posts\")\n}\n"},"id":{"kind":"string","value":"shadcn-ui/taxonomy/prisma/schema.prisma"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/taxonomy/prisma/schema.prisma\",\n \"repo_id\": \"shadcn-ui/taxonomy\",\n \"token_count\": 968\n}"},"__index_level_0__":{"kind":"number","value":95,"string":"95"}}},{"rowIdx":1927,"cells":{"text":{"kind":"string","value":".dark .ce-block--selected .ce-block__content,\n.dark .ce-inline-toolbar,\n.dark .codex-editor--narrow .ce-toolbox,\n.dark .ce-conversion-toolbar,\n.dark .ce-settings,\n.dark .ce-settings__button,\n.dark .ce-toolbar__settings-btn,\n.dark .cdx-button,\n.dark .ce-popover,\n.dark .ce-toolbar__plus:hover {\n background: theme('colors.popover.DEFAULT');\n color: inherit;\n\tborder-color: theme('colors.border');\n}\n\n.dark .ce-inline-tool,\n.dark .ce-conversion-toolbar__label,\n.dark .ce-toolbox__button,\n.dark .cdx-settings-button,\n.dark .ce-toolbar__plus {\n color: inherit;\n}\n\n.dark .ce-popover__item-icon,\n.dark .ce-conversion-tool__icon {\n\tbackground-color: theme('colors.muted.DEFAULT');\n\tbox-shadow: none;\n}\n\n.dark .cdx-search-field {\n\tborder-color: theme('colors.border');\n\tbackground: theme('colors.input');\n\tcolor: inherit;\n}\n\n.dark ::selection {\n background: theme('colors.accent.DEFAULT');\n}\n\n.dark .cdx-settings-button:hover,\n.dark .ce-settings__button:hover,\n.dark .ce-toolbox__button--active,\n.dark .ce-toolbox__button:hover,\n.dark .cdx-button:hover,\n.dark .ce-inline-toolbar__dropdown:hover,\n.dark .ce-inline-tool:hover,\n.dark .ce-popover__item:hover,\n.dark .ce-conversion-tool:hover,\n.dark .ce-toolbar__settings-btn:hover {\n background-color:theme('colors.accent.DEFAULT');\n color: theme('colors.accent.foreground');;\n}\n\n.dark .cdx-notify--error {\n background: theme('colors.destructive.DEFAULT') !important;\n}\n\n.dark .cdx-notify__cross::after,\n.dark .cdx-notify__cross::before {\n background: white;\n}"},"id":{"kind":"string","value":"shadcn-ui/taxonomy/styles/editor.css"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/taxonomy/styles/editor.css\",\n \"repo_id\": \"shadcn-ui/taxonomy\",\n \"token_count\": 578\n}"},"__index_level_0__":{"kind":"number","value":96,"string":"96"}}},{"rowIdx":1928,"cells":{"text":{"kind":"string","value":"import { Metadata } from \"next\"\n\nimport { Announcement } from \"@/components/announcement\"\nimport {\n PageActions,\n PageHeader,\n PageHeaderDescription,\n PageHeaderHeading,\n} from \"@/components/page-header\"\nimport { Button } from \"@/registry/new-york/ui/button\"\n\nexport const metadata: Metadata = {\n title: \"Building Blocks.\",\n description:\n \"Beautifully designed. Copy and paste into your apps. Open Source.\",\n}\n\nexport default function BlocksLayout({\n children,\n}: {\n children: React.ReactNode\n}) {\n return (\n
\n \n \n Building Blocks for the Web\n \n Beautifully designed. Copy and paste into your apps. Open Source.\n \n \n \n \n \n \n
\n {children}\n
\n
\n )\n}\n"},"id":{"kind":"string","value":"shadcn-ui/ui/apps/www/app/(app)/blocks/layout.tsx"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/ui/apps/www/app/(app)/blocks/layout.tsx\",\n \"repo_id\": \"shadcn-ui/ui\",\n \"token_count\": 568\n}"},"__index_level_0__":{"kind":"number","value":97,"string":"97"}}},{"rowIdx":1929,"cells":{"text":{"kind":"string","value":"import { Separator } from \"@/registry/new-york/ui/separator\"\nimport { AppearanceForm } from \"@/app/(app)/examples/forms/appearance/appearance-form\"\n\nexport default function SettingsAppearancePage() {\n return (\n
\n
\n

Appearance

\n

\n Customize the appearance of the app. Automatically switch between day\n and night themes.\n

\n
\n \n \n
\n )\n}\n"},"id":{"kind":"string","value":"shadcn-ui/ui/apps/www/app/(app)/examples/forms/appearance/page.tsx"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/ui/apps/www/app/(app)/examples/forms/appearance/page.tsx\",\n \"repo_id\": \"shadcn-ui/ui\",\n \"token_count\": 228\n}"},"__index_level_0__":{"kind":"number","value":98,"string":"98"}}},{"rowIdx":1930,"cells":{"text":{"kind":"string","value":"import { cookies } from \"next/headers\"\nimport Image from \"next/image\"\n\nimport { Mail } from \"@/app/(app)/examples/mail/components/mail\"\nimport { accounts, mails } from \"@/app/(app)/examples/mail/data\"\n\nexport default function MailPage() {\n const layout = cookies().get(\"react-resizable-panels:layout:mail\")\n const collapsed = cookies().get(\"react-resizable-panels:collapsed\")\n\n const defaultLayout = layout ? JSON.parse(layout.value) : undefined\n const defaultCollapsed = collapsed ? JSON.parse(collapsed.value) : undefined\n\n return (\n <>\n
\n \n \n
\n
\n \n
\n \n )\n}\n"},"id":{"kind":"string","value":"shadcn-ui/ui/apps/www/app/(app)/examples/mail/page.tsx"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/ui/apps/www/app/(app)/examples/mail/page.tsx\",\n \"repo_id\": \"shadcn-ui/ui\",\n \"token_count\": 528\n}"},"__index_level_0__":{"kind":"number","value":99,"string":"99"}}},{"rowIdx":1931,"cells":{"text":{"kind":"string","value":"\"use client\"\n\nimport * as React from \"react\"\nimport { SliderProps } from \"@radix-ui/react-slider\"\n\nimport {\n HoverCard,\n HoverCardContent,\n HoverCardTrigger,\n} from \"@/registry/new-york/ui/hover-card\"\nimport { Label } from \"@/registry/new-york/ui/label\"\nimport { Slider } from \"@/registry/new-york/ui/slider\"\n\ninterface TemperatureSelectorProps {\n defaultValue: SliderProps[\"defaultValue\"]\n}\n\nexport function TemperatureSelector({\n defaultValue,\n}: TemperatureSelectorProps) {\n const [value, setValue] = React.useState(defaultValue)\n\n return (\n
\n \n \n
\n
\n \n \n {value}\n \n
\n \n
\n
\n \n Controls randomness: lowering results in less random completions. As\n the temperature approaches zero, the model will become deterministic\n and repetitive.\n \n
\n
\n )\n}\n"},"id":{"kind":"string","value":"shadcn-ui/ui/apps/www/app/(app)/examples/playground/components/temperature-selector.tsx"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/ui/apps/www/app/(app)/examples/playground/components/temperature-selector.tsx\",\n \"repo_id\": \"shadcn-ui/ui\",\n \"token_count\": 797\n}"},"__index_level_0__":{"kind":"number","value":100,"string":"100"}}},{"rowIdx":1932,"cells":{"text":{"kind":"string","value":"import fs from \"fs\"\nimport path from \"path\"\nimport { faker } from \"@faker-js/faker\"\n\nimport { labels, priorities, statuses } from \"./data\"\n\nconst tasks = Array.from({ length: 100 }, () => ({\n id: `TASK-${faker.number.int({ min: 1000, max: 9999 })}`,\n title: faker.hacker.phrase().replace(/^./, (letter) => letter.toUpperCase()),\n status: faker.helpers.arrayElement(statuses).value,\n label: faker.helpers.arrayElement(labels).value,\n priority: faker.helpers.arrayElement(priorities).value,\n}))\n\nfs.writeFileSync(\n path.join(__dirname, \"tasks.json\"),\n JSON.stringify(tasks, null, 2)\n)\n\nconsole.log(\" Tasks data generated.\")\n"},"id":{"kind":"string","value":"shadcn-ui/ui/apps/www/app/(app)/examples/tasks/data/seed.ts"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/ui/apps/www/app/(app)/examples/tasks/data/seed.ts\",\n \"repo_id\": \"shadcn-ui/ui\",\n \"token_count\": 229\n}"},"__index_level_0__":{"kind":"number","value":101,"string":"101"}}},{"rowIdx":1933,"cells":{"text":{"kind":"string","value":"\"use client\"\n\nimport * as React from \"react\"\nimport { AnimatePresence, motion } from \"framer-motion\"\n\nimport { cn } from \"@/lib/utils\"\nimport { useLiftMode } from \"@/hooks/use-lift-mode\"\nimport { BlockCopyButton } from \"@/components/block-copy-button\"\nimport { V0Button } from \"@/components/v0-button\"\nimport { Block, type BlockChunk } from \"@/registry/schema\"\n\nexport function BlockChunk({\n block,\n chunk,\n children,\n ...props\n}: React.PropsWithChildren<{ block: Block; chunk?: BlockChunk }>) {\n const { isLiftMode } = useLiftMode(block.name)\n\n if (!chunk) {\n return null\n }\n\n return (\n \n {isLiftMode && (\n \n
{children}
\n {chunk.code && (\n
\n
\n \n \n
\n
\n )}\n \n )}\n
\n )\n}\n"},"id":{"kind":"string","value":"shadcn-ui/ui/apps/www/components/block-chunk.tsx"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/ui/apps/www/components/block-chunk.tsx\",\n \"repo_id\": \"shadcn-ui/ui\",\n \"token_count\": 1019\n}"},"__index_level_0__":{"kind":"number","value":102,"string":"102"}}},{"rowIdx":1934,"cells":{"text":{"kind":"string","value":"import React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { AspectRatio } from \"@/registry/new-york/ui/aspect-ratio\"\n\nexport function ComponentCard({\n className,\n ...props\n}: React.HTMLAttributes) {\n return (\n \n \n \n )\n}\n"},"id":{"kind":"string","value":"shadcn-ui/ui/apps/www/components/component-card.tsx"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/ui/apps/www/components/component-card.tsx\",\n \"repo_id\": \"shadcn-ui/ui\",\n \"token_count\": 203\n}"},"__index_level_0__":{"kind":"number","value":103,"string":"103"}}},{"rowIdx":1935,"cells":{"text":{"kind":"string","value":"\"use client\"\n\nimport { AspectRatio } from \"@/registry/new-york/ui/aspect-ratio\"\n\nexport function PromoVideo() {\n return (\n \n \n \n )\n}\n"},"id":{"kind":"string","value":"shadcn-ui/ui/apps/www/components/promo-video.tsx"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/ui/apps/www/components/promo-video.tsx\",\n \"repo_id\": \"shadcn-ui/ui\",\n \"token_count\": 212\n}"},"__index_level_0__":{"kind":"number","value":104,"string":"104"}}},{"rowIdx":1936,"cells":{"text":{"kind":"string","value":"import { MainNavItem, SidebarNavItem } from \"types/nav\"\n\nexport interface DocsConfig {\n mainNav: MainNavItem[]\n sidebarNav: SidebarNavItem[]\n chartsNav: SidebarNavItem[]\n}\n\nexport const docsConfig: DocsConfig = {\n mainNav: [\n {\n title: \"Documentation\",\n href: \"/docs\",\n },\n {\n title: \"Components\",\n href: \"/docs/components/accordion\",\n },\n {\n title: \"Blocks\",\n href: \"/blocks\",\n },\n {\n title: \"Charts\",\n href: \"/charts\",\n },\n {\n title: \"Themes\",\n href: \"/themes\",\n },\n {\n title: \"Examples\",\n href: \"/examples\",\n },\n {\n title: \"Colors\",\n href: \"/colors\",\n },\n ],\n sidebarNav: [\n {\n title: \"Getting Started\",\n items: [\n {\n title: \"Introduction\",\n href: \"/docs\",\n items: [],\n },\n {\n title: \"Installation\",\n href: \"/docs/installation\",\n items: [],\n },\n {\n title: \"components.json\",\n href: \"/docs/components-json\",\n items: [],\n },\n {\n title: \"Theming\",\n href: \"/docs/theming\",\n items: [],\n },\n {\n title: \"Dark mode\",\n href: \"/docs/dark-mode\",\n items: [],\n },\n {\n title: \"CLI\",\n href: \"/docs/cli\",\n label: \"Updated\",\n items: [],\n },\n {\n title: \"Typography\",\n href: \"/docs/components/typography\",\n items: [],\n },\n {\n title: \"Open in v0\",\n href: \"/docs/v0\",\n items: [],\n label: \"New\",\n },\n {\n title: \"Figma\",\n href: \"/docs/figma\",\n items: [],\n },\n {\n title: \"Changelog\",\n href: \"/docs/changelog\",\n items: [],\n },\n ],\n },\n {\n title: \"Installation\",\n items: [\n {\n title: \"Next.js\",\n href: \"/docs/installation/next\",\n items: [],\n },\n {\n title: \"Vite\",\n href: \"/docs/installation/vite\",\n items: [],\n },\n {\n title: \"Remix\",\n href: \"/docs/installation/remix\",\n items: [],\n },\n {\n title: \"Astro\",\n href: \"/docs/installation/astro\",\n items: [],\n },\n {\n title: \"Laravel\",\n href: \"/docs/installation/laravel\",\n items: [],\n },\n {\n title: \"Gatsby\",\n href: \"/docs/installation/gatsby\",\n items: [],\n },\n {\n title: \"Manual\",\n href: \"/docs/installation/manual\",\n items: [],\n },\n ],\n },\n {\n title: \"Components\",\n items: [\n {\n title: \"Accordion\",\n href: \"/docs/components/accordion\",\n items: [],\n },\n {\n title: \"Alert\",\n href: \"/docs/components/alert\",\n items: [],\n },\n {\n title: \"Alert Dialog\",\n href: \"/docs/components/alert-dialog\",\n items: [],\n },\n {\n title: \"Aspect Ratio\",\n href: \"/docs/components/aspect-ratio\",\n items: [],\n },\n {\n title: \"Avatar\",\n href: \"/docs/components/avatar\",\n items: [],\n },\n {\n title: \"Badge\",\n href: \"/docs/components/badge\",\n items: [],\n },\n {\n title: \"Breadcrumb\",\n href: \"/docs/components/breadcrumb\",\n items: [],\n },\n {\n title: \"Button\",\n href: \"/docs/components/button\",\n items: [],\n },\n {\n title: \"Calendar\",\n href: \"/docs/components/calendar\",\n items: [],\n },\n {\n title: \"Card\",\n href: \"/docs/components/card\",\n items: [],\n },\n {\n title: \"Carousel\",\n href: \"/docs/components/carousel\",\n items: [],\n },\n {\n title: \"Chart\",\n href: \"/docs/components/chart\",\n items: [],\n },\n {\n title: \"Checkbox\",\n href: \"/docs/components/checkbox\",\n items: [],\n },\n {\n title: \"Collapsible\",\n href: \"/docs/components/collapsible\",\n items: [],\n },\n {\n title: \"Combobox\",\n href: \"/docs/components/combobox\",\n items: [],\n },\n {\n title: \"Command\",\n href: \"/docs/components/command\",\n items: [],\n },\n {\n title: \"Context Menu\",\n href: \"/docs/components/context-menu\",\n items: [],\n },\n {\n title: \"Data Table\",\n href: \"/docs/components/data-table\",\n items: [],\n },\n {\n title: \"Date Picker\",\n href: \"/docs/components/date-picker\",\n items: [],\n },\n {\n title: \"Dialog\",\n href: \"/docs/components/dialog\",\n items: [],\n },\n {\n title: \"Drawer\",\n href: \"/docs/components/drawer\",\n items: [],\n },\n {\n title: \"Dropdown Menu\",\n href: \"/docs/components/dropdown-menu\",\n items: [],\n },\n {\n title: \"Form\",\n href: \"/docs/components/form\",\n items: [],\n },\n {\n title: \"Hover Card\",\n href: \"/docs/components/hover-card\",\n items: [],\n },\n {\n title: \"Input\",\n href: \"/docs/components/input\",\n items: [],\n },\n {\n title: \"Input OTP\",\n href: \"/docs/components/input-otp\",\n items: [],\n },\n {\n title: \"Label\",\n href: \"/docs/components/label\",\n items: [],\n },\n {\n title: \"Menubar\",\n href: \"/docs/components/menubar\",\n items: [],\n },\n {\n title: \"Navigation Menu\",\n href: \"/docs/components/navigation-menu\",\n items: [],\n },\n {\n title: \"Pagination\",\n href: \"/docs/components/pagination\",\n items: [],\n },\n {\n title: \"Popover\",\n href: \"/docs/components/popover\",\n items: [],\n },\n {\n title: \"Progress\",\n href: \"/docs/components/progress\",\n items: [],\n },\n {\n title: \"Radio Group\",\n href: \"/docs/components/radio-group\",\n items: [],\n },\n {\n title: \"Resizable\",\n href: \"/docs/components/resizable\",\n items: [],\n },\n {\n title: \"Scroll Area\",\n href: \"/docs/components/scroll-area\",\n items: [],\n },\n {\n title: \"Select\",\n href: \"/docs/components/select\",\n items: [],\n },\n {\n title: \"Separator\",\n href: \"/docs/components/separator\",\n items: [],\n },\n {\n title: \"Sheet\",\n href: \"/docs/components/sheet\",\n items: [],\n },\n {\n title: \"Skeleton\",\n href: \"/docs/components/skeleton\",\n items: [],\n },\n {\n title: \"Slider\",\n href: \"/docs/components/slider\",\n items: [],\n },\n {\n title: \"Sonner\",\n href: \"/docs/components/sonner\",\n items: [],\n },\n {\n title: \"Switch\",\n href: \"/docs/components/switch\",\n items: [],\n },\n {\n title: \"Table\",\n href: \"/docs/components/table\",\n items: [],\n },\n {\n title: \"Tabs\",\n href: \"/docs/components/tabs\",\n items: [],\n },\n {\n title: \"Textarea\",\n href: \"/docs/components/textarea\",\n items: [],\n },\n {\n title: \"Toast\",\n href: \"/docs/components/toast\",\n items: [],\n },\n {\n title: \"Toggle\",\n href: \"/docs/components/toggle\",\n items: [],\n },\n {\n title: \"Toggle Group\",\n href: \"/docs/components/toggle-group\",\n items: [],\n },\n {\n title: \"Tooltip\",\n href: \"/docs/components/tooltip\",\n items: [],\n },\n ],\n },\n ],\n chartsNav: [\n {\n title: \"Getting Started\",\n items: [\n {\n title: \"Introduction\",\n href: \"/docs/charts\",\n items: [],\n },\n {\n title: \"Installation\",\n href: \"/docs/charts/installation\",\n items: [],\n },\n {\n title: \"Theming\",\n href: \"/docs/charts/theming\",\n items: [],\n },\n ],\n },\n {\n title: \"Charts\",\n items: [\n {\n title: \"Area Chart\",\n href: \"/docs/charts/area\",\n items: [],\n },\n {\n title: \"Bar Chart\",\n href: \"/docs/charts/bar\",\n items: [],\n },\n {\n title: \"Line Chart\",\n href: \"/docs/charts/line\",\n items: [],\n },\n {\n title: \"Pie Chart\",\n href: \"/docs/charts/pie\",\n items: [],\n },\n {\n title: \"Radar Chart\",\n href: \"/docs/charts/radar\",\n items: [],\n },\n {\n title: \"Radial Chart\",\n href: \"/docs/charts/radial\",\n items: [],\n },\n ],\n },\n {\n title: \"Components\",\n items: [\n {\n title: \"Tooltip\",\n href: \"/docs/charts/tooltip\",\n items: [],\n },\n {\n title: \"Legend\",\n href: \"/docs/charts/legend\",\n items: [],\n },\n ],\n },\n ],\n}\n"},"id":{"kind":"string","value":"shadcn-ui/ui/apps/www/config/docs.ts"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/ui/apps/www/config/docs.ts\",\n \"repo_id\": \"shadcn-ui/ui\",\n \"token_count\": 5894\n}"},"__index_level_0__":{"kind":"number","value":105,"string":"105"}}},{"rowIdx":1937,"cells":{"text":{"kind":"string","value":"import {\n Accordion,\n AccordionContent,\n AccordionItem,\n AccordionTrigger,\n} from \"@/registry/default/ui/accordion\"\n\nexport default function AccordionDemo() {\n return (\n \n \n Is it accessible?\n \n Yes. It adheres to the WAI-ARIA design pattern.\n \n \n \n Is it styled?\n \n Yes. It comes with default styles that matches the other\n components&apos; aesthetic.\n \n \n \n Is it animated?\n \n Yes. It&apos;s animated by default, but you can disable it if you\n prefer.\n \n \n \n )\n}\n"},"id":{"kind":"string","value":"shadcn-ui/ui/apps/www/registry/default/example/accordion-demo.tsx"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/ui/apps/www/registry/default/example/accordion-demo.tsx\",\n \"repo_id\": \"shadcn-ui/ui\",\n \"token_count\": 439\n}"},"__index_level_0__":{"kind":"number","value":106,"string":"106"}}},{"rowIdx":1938,"cells":{"text":{"kind":"string","value":"import Link from \"next/link\"\n\nimport { Button } from \"@/registry/default/ui/button\"\n\nexport default function ButtonAsChild() {\n return (\n \n )\n}\n"},"id":{"kind":"string","value":"shadcn-ui/ui/apps/www/registry/default/example/button-as-child.tsx"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/ui/apps/www/registry/default/example/button-as-child.tsx\",\n \"repo_id\": \"shadcn-ui/ui\",\n \"token_count\": 78\n}"},"__index_level_0__":{"kind":"number","value":107,"string":"107"}}},{"rowIdx":1939,"cells":{"text":{"kind":"string","value":"\"use client\"\n\nimport { addDays } from \"date-fns\"\n\nimport { Calendar } from \"@/registry/default/ui/calendar\"\nimport { Card, CardContent } from \"@/registry/default/ui/card\"\n\nconst start = new Date(2023, 5, 5)\n\nexport function CardsCalendar() {\n return (\n \n \n \n \n \n )\n}\n"},"id":{"kind":"string","value":"shadcn-ui/ui/apps/www/registry/default/example/cards/calendar.tsx"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/ui/apps/www/registry/default/example/cards/calendar.tsx\",\n \"repo_id\": \"shadcn-ui/ui\",\n \"token_count\": 268\n}"},"__index_level_0__":{"kind":"number","value":108,"string":"108"}}},{"rowIdx":1940,"cells":{"text":{"kind":"string","value":"\"use client\"\n\nimport { zodResolver } from \"@hookform/resolvers/zod\"\nimport { Check, ChevronsUpDown } from \"lucide-react\"\nimport { useForm } from \"react-hook-form\"\nimport { z } from \"zod\"\n\nimport { cn } from \"@/lib/utils\"\nimport { toast } from \"@/registry/default/hooks/use-toast\"\nimport { Button } from \"@/registry/default/ui/button\"\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"@/registry/default/ui/command\"\nimport {\n Form,\n FormControl,\n FormDescription,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\n} from \"@/registry/default/ui/form\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/default/ui/popover\"\n\nconst languages = [\n { label: \"English\", value: \"en\" },\n { label: \"French\", value: \"fr\" },\n { label: \"German\", value: \"de\" },\n { label: \"Spanish\", value: \"es\" },\n { label: \"Portuguese\", value: \"pt\" },\n { label: \"Russian\", value: \"ru\" },\n { label: \"Japanese\", value: \"ja\" },\n { label: \"Korean\", value: \"ko\" },\n { label: \"Chinese\", value: \"zh\" },\n] as const\n\nconst FormSchema = z.object({\n language: z.string({\n required_error: \"Please select a language.\",\n }),\n})\n\nexport default function ComboboxForm() {\n const form = useForm>({\n resolver: zodResolver(FormSchema),\n })\n\n function onSubmit(data: z.infer) {\n toast({\n title: \"You submitted the following values:\",\n description: (\n
\n          {JSON.stringify(data, null, 2)}\n        
\n ),\n })\n }\n\n return (\n
\n \n (\n \n Language\n \n \n \n \n {field.value\n ? languages.find(\n (language) => language.value === field.value\n )?.label\n : \"Select language\"}\n \n \n \n \n \n \n \n \n No language found.\n \n {languages.map((language) => (\n {\n form.setValue(\"language\", language.value)\n }}\n >\n \n {language.label}\n \n ))}\n \n \n \n \n \n \n This is the language that will be used in the dashboard.\n \n \n \n )}\n />\n \n \n \n )\n}\n"},"id":{"kind":"string","value":"shadcn-ui/ui/apps/www/registry/default/example/combobox-form.tsx"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/ui/apps/www/registry/default/example/combobox-form.tsx\",\n \"repo_id\": \"shadcn-ui/ui\",\n \"token_count\": 2398\n}"},"__index_level_0__":{"kind":"number","value":109,"string":"109"}}},{"rowIdx":1941,"cells":{"text":{"kind":"string","value":"import {\n Cloud,\n CreditCard,\n Github,\n Keyboard,\n LifeBuoy,\n LogOut,\n Mail,\n MessageSquare,\n Plus,\n PlusCircle,\n Settings,\n User,\n UserPlus,\n Users,\n} from \"lucide-react\"\n\nimport { Button } from \"@/registry/default/ui/button\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n} from \"@/registry/default/ui/dropdown-menu\"\n\nexport default function DropdownMenuDemo() {\n return (\n \n \n \n \n \n My Account\n \n \n \n \n Profile\n P\n \n \n \n Billing\n B\n \n \n \n Settings\n S\n \n \n \n Keyboard shortcuts\n K\n \n \n \n \n \n \n Team\n \n \n \n \n Invite users\n \n \n \n \n \n Email\n \n \n \n Message\n \n \n \n \n More...\n \n \n \n \n \n \n New Team\n +T\n \n \n \n \n \n GitHub\n \n \n \n Support\n \n \n \n API\n \n \n \n \n Log out\n Q\n \n \n \n )\n}\n"},"id":{"kind":"string","value":"shadcn-ui/ui/apps/www/registry/default/example/dropdown-menu-demo.tsx"},"metadata":{"kind":"string","value":"{\n \"file_path\": \"shadcn-ui/ui/apps/www/registry/default/example/dropdown-menu-demo.tsx\",\n \"repo_id\": \"shadcn-ui/ui\",\n \"token_count\": 1934\n}"},"__index_level_0__":{"kind":"number","value":110,"string":"110"}}},{"rowIdx":1942,"cells":{"text":{"kind":"string","value":"import { Label } from \"@/registry/default/ui/label\"\nimport { Textarea } from \"@/registry/default/ui/textarea\"\n\nexport default function TextareaWithLabel() {\n return (\n
\n \n
Subsets and Splits

No community queries yet

The top public SQL queries from the community will appear here once available.