text
stringlengths 21
253k
| id
stringlengths 25
123
| metadata
dict | __index_level_0__
int64 0
181
|
---|---|---|---|
import { z } from "zod"
export const blockChunkSchema = z.object({
name: z.string(),
description: z.string(),
component: z.any(),
file: z.string(),
code: z.string().optional(),
container: z
.object({
className: z.string().nullish(),
})
.optional(),
})
export const registryItemTypeSchema = z.enum([
"registry:style",
"registry:lib",
"registry:example",
"registry:block",
"registry:component",
"registry:ui",
"registry:hook",
"registry:theme",
"registry:page",
])
export const registryItemFileSchema = z.union([
z.string(),
z.object({
path: z.string(),
content: z.string().optional(),
type: registryItemTypeSchema,
target: z.string().optional(),
}),
])
export const registryItemTailwindSchema = z.object({
config: z.object({
content: z.array(z.string()).optional(),
theme: z.record(z.string(), z.any()).optional(),
plugins: z.array(z.string()).optional(),
}),
})
export const registryItemCssVarsSchema = z.object({
light: z.record(z.string(), z.string()).optional(),
dark: z.record(z.string(), z.string()).optional(),
})
export const registryEntrySchema = z.object({
name: z.string(),
type: registryItemTypeSchema,
description: z.string().optional(),
dependencies: z.array(z.string()).optional(),
devDependencies: z.array(z.string()).optional(),
registryDependencies: z.array(z.string()).optional(),
files: z.array(registryItemFileSchema).optional(),
tailwind: registryItemTailwindSchema.optional(),
cssVars: registryItemCssVarsSchema.optional(),
source: z.string().optional(),
category: z.string().optional(),
subcategory: z.string().optional(),
chunks: z.array(blockChunkSchema).optional(),
docs: z.string().optional(),
})
export const registrySchema = z.array(registryEntrySchema)
export type RegistryEntry = z.infer<typeof registryEntrySchema>
export type Registry = z.infer<typeof registrySchema>
export const blockSchema = registryEntrySchema.extend({
type: z.literal("registry:block"),
style: z.enum(["default", "new-york"]),
component: z.any(),
container: z
.object({
height: z.string().nullish(),
className: z.string().nullish(),
})
.optional(),
code: z.string(),
highlightedCode: z.string(),
})
export type Block = z.infer<typeof blockSchema>
export type BlockChunk = z.infer<typeof blockChunkSchema>
| shadcn-ui/ui/apps/www/registry/schema.ts | {
"file_path": "shadcn-ui/ui/apps/www/registry/schema.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 839
} | 118 |
import { existsSync, promises as fs } from "fs"
import path from "path"
import { Config, getConfig } from "@/src/utils/get-config"
import { handleError } from "@/src/utils/handle-error"
import { logger } from "@/src/utils/logger"
import {
fetchTree,
getItemTargetPath,
getRegistryBaseColor,
getRegistryIndex,
} from "@/src/utils/registry"
import { registryIndexSchema } from "@/src/utils/registry/schema"
import { transform } from "@/src/utils/transformers"
import chalk from "chalk"
import { Command } from "commander"
import { diffLines, type Change } from "diff"
import { z } from "zod"
const updateOptionsSchema = z.object({
component: z.string().optional(),
yes: z.boolean(),
cwd: z.string(),
path: z.string().optional(),
})
export const diff = new Command()
.name("diff")
.description("check for updates against the registry")
.argument("[component]", "the component name")
.option("-y, --yes", "skip confirmation prompt.", false)
.option(
"-c, --cwd <cwd>",
"the working directory. defaults to the current directory.",
process.cwd()
)
.action(async (name, opts) => {
try {
const options = updateOptionsSchema.parse({
component: name,
...opts,
})
const cwd = path.resolve(options.cwd)
if (!existsSync(cwd)) {
logger.error(`The path ${cwd} does not exist. Please try again.`)
process.exit(1)
}
const config = await getConfig(cwd)
if (!config) {
logger.warn(
`Configuration is missing. Please run ${chalk.green(
`init`
)} to create a components.json file.`
)
process.exit(1)
}
const registryIndex = await getRegistryIndex()
if (!options.component) {
const targetDir = config.resolvedPaths.components
// Find all components that exist in the project.
const projectComponents = registryIndex.filter((item) => {
for (const file of item.files) {
const filePath = path.resolve(targetDir, file)
if (existsSync(filePath)) {
return true
}
}
return false
})
// Check for updates.
const componentsWithUpdates = []
for (const component of projectComponents) {
const changes = await diffComponent(component, config)
if (changes.length) {
componentsWithUpdates.push({
name: component.name,
changes,
})
}
}
if (!componentsWithUpdates.length) {
logger.info("No updates found.")
process.exit(0)
}
logger.info("The following components have updates available:")
for (const component of componentsWithUpdates) {
logger.info(`- ${component.name}`)
for (const change of component.changes) {
logger.info(` - ${change.filePath}`)
}
}
logger.break()
logger.info(
`Run ${chalk.green(`diff <component>`)} to see the changes.`
)
process.exit(0)
}
// Show diff for a single component.
const component = registryIndex.find(
(item) => item.name === options.component
)
if (!component) {
logger.error(
`The component ${chalk.green(options.component)} does not exist.`
)
process.exit(1)
}
const changes = await diffComponent(component, config)
if (!changes.length) {
logger.info(`No updates found for ${options.component}.`)
process.exit(0)
}
for (const change of changes) {
logger.info(`- ${change.filePath}`)
await printDiff(change.patch)
logger.info("")
}
} catch (error) {
handleError(error)
}
})
async function diffComponent(
component: z.infer<typeof registryIndexSchema>[number],
config: Config
) {
const payload = await fetchTree(config.style, [component])
const baseColor = await getRegistryBaseColor(config.tailwind.baseColor)
const changes = []
for (const item of payload) {
const targetDir = await getItemTargetPath(config, item)
if (!targetDir) {
continue
}
for (const file of item.files) {
const filePath = path.resolve(targetDir, file.name)
if (!existsSync(filePath)) {
continue
}
const fileContent = await fs.readFile(filePath, "utf8")
const registryContent = await transform({
filename: file.name,
raw: file.content,
config,
baseColor,
})
const patch = diffLines(registryContent as string, fileContent)
if (patch.length > 1) {
changes.push({
file: file.name,
filePath,
patch,
})
}
}
}
return changes
}
async function printDiff(diff: Change[]) {
diff.forEach((part) => {
if (part) {
if (part.added) {
return process.stdout.write(chalk.green(part.value))
}
if (part.removed) {
return process.stdout.write(chalk.red(part.value))
}
return process.stdout.write(part.value)
}
})
}
| shadcn-ui/ui/packages/cli/src/commands/diff.ts | {
"file_path": "shadcn-ui/ui/packages/cli/src/commands/diff.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 2171
} | 119 |
import { Transformer } from "@/src/utils/transformers"
export const transformImport: Transformer = async ({ sourceFile, config }) => {
const importDeclarations = sourceFile.getImportDeclarations()
for (const importDeclaration of importDeclarations) {
const moduleSpecifier = importDeclaration.getModuleSpecifierValue()
// Replace @/registry/[style] with the components alias.
if (moduleSpecifier.startsWith("@/registry/")) {
if (config.aliases.ui) {
importDeclaration.setModuleSpecifier(
moduleSpecifier.replace(/^@\/registry\/[^/]+\/ui/, config.aliases.ui)
)
} else {
importDeclaration.setModuleSpecifier(
moduleSpecifier.replace(
/^@\/registry\/[^/]+/,
config.aliases.components
)
)
}
}
// Replace `import { cn } from "@/lib/utils"`
if (moduleSpecifier == "@/lib/utils") {
const namedImports = importDeclaration.getNamedImports()
const cnImport = namedImports.find((i) => i.getName() === "cn")
if (cnImport) {
importDeclaration.setModuleSpecifier(
moduleSpecifier.replace(/^@\/lib\/utils/, config.aliases.utils)
)
}
}
}
return sourceFile
}
| shadcn-ui/ui/packages/cli/src/utils/transformers/transform-import.ts | {
"file_path": "shadcn-ui/ui/packages/cli/src/utils/transformers/transform-import.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 497
} | 120 |
import Image from 'next/image'
import { Inter } from 'next/font/google'
const inter = Inter({ subsets: ['latin'] })
export default function Home() {
return (
<main
className={`flex min-h-screen flex-col items-center justify-between p-24 ${inter.className}`}
>
<div className="z-10 max-w-5xl w-full items-center justify-between font-mono text-sm lg:flex">
<p className="fixed left-0 top-0 flex w-full justify-center border-b border-gray-300 bg-gradient-to-b from-zinc-200 pb-6 pt-8 backdrop-blur-2xl dark:border-neutral-800 dark:bg-zinc-800/30 dark:from-inherit lg:static lg:w-auto lg:rounded-xl lg:border lg:bg-gray-200 lg:p-4 lg:dark:bg-zinc-800/30">
Get started by editing
<code className="font-mono font-bold">pages/index.tsx</code>
</p>
<div className="fixed bottom-0 left-0 flex h-48 w-full items-end justify-center bg-gradient-to-t from-white via-white dark:from-black dark:via-black lg:static lg:h-auto lg:w-auto lg:bg-none">
<a
className="pointer-events-none flex place-items-center gap-2 p-8 lg:pointer-events-auto lg:p-0"
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
By{' '}
<Image
src="/vercel.svg"
alt="Vercel Logo"
className="dark:invert"
width={100}
height={24}
priority
/>
</a>
</div>
</div>
<div className="relative flex place-items-center before:absolute before:h-[300px] before:w-[480px] before:-translate-x-1/2 before:rounded-full before:bg-gradient-radial before:from-white before:to-transparent before:blur-2xl before:content-[''] after:absolute after:-z-20 after:h-[180px] after:w-[240px] after:translate-x-1/3 after:bg-gradient-conic after:from-sky-200 after:via-blue-200 after:blur-2xl after:content-[''] before:dark:bg-gradient-to-br before:dark:from-transparent before:dark:to-blue-700/10 after:dark:from-sky-900 after:dark:via-[#0141ff]/40 before:lg:h-[360px]">
<Image
className="relative dark:drop-shadow-[0_0_0.3rem_#ffffff70] dark:invert"
src="/next.svg"
alt="Next.js Logo"
width={180}
height={37}
priority
/>
</div>
<div className="mb-32 grid text-center lg:max-w-5xl lg:w-full lg:mb-0 lg:grid-cols-4 lg:text-left">
<a
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app"
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
target="_blank"
rel="noopener noreferrer"
>
<h2 className={`mb-3 text-2xl font-semibold`}>
Docs{' '}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
->
</span>
</h2>
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
Find in-depth information about Next.js features and API.
</p>
</a>
<a
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app"
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
target="_blank"
rel="noopener noreferrer"
>
<h2 className={`mb-3 text-2xl font-semibold`}>
Learn{' '}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
->
</span>
</h2>
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
Learn about Next.js in an interactive course with quizzes!
</p>
</a>
<a
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app"
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
target="_blank"
rel="noopener noreferrer"
>
<h2 className={`mb-3 text-2xl font-semibold`}>
Templates{' '}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
->
</span>
</h2>
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
Discover and deploy boilerplate example Next.js projects.
</p>
</a>
<a
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app"
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
target="_blank"
rel="noopener noreferrer"
>
<h2 className={`mb-3 text-2xl font-semibold`}>
Deploy{' '}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
->
</span>
</h2>
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
Instantly deploy your Next.js site to a shareable URL with Vercel.
</p>
</a>
</div>
</main>
)
}
| shadcn-ui/ui/packages/cli/test/fixtures/next-pages/pages/index.tsx | {
"file_path": "shadcn-ui/ui/packages/cli/test/fixtures/next-pages/pages/index.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 2808
} | 121 |
import { expect, test } from "vitest"
import { transform } from "../../src/utils/transformers"
test("transform rsc", async () => {
expect(
await transform({
filename: "test.ts",
raw: `import * as React from "react"
import { Foo } from "bar"
`,
config: {
tsx: true,
rsc: true,
},
})
).toMatchSnapshot()
expect(
await transform({
filename: "test.ts",
raw: `"use client"
import * as React from "react"
import { Foo } from "bar"
`,
config: {
tsx: true,
rsc: true,
},
})
).toMatchSnapshot()
expect(
await transform({
filename: "test.ts",
raw: `"use client"
import * as React from "react"
import { Foo } from "bar"
`,
config: {
tsx: true,
rsc: false,
},
})
).toMatchSnapshot()
expect(
await transform({
filename: "test.ts",
raw: `"use foo"
import * as React from "react"
import { Foo } from "bar"
"use client"
`,
config: {
tsx: true,
rsc: false,
},
})
).toMatchSnapshot()
})
| shadcn-ui/ui/packages/cli/test/utils/transform-rsc.test.ts | {
"file_path": "shadcn-ui/ui/packages/cli/test/utils/transform-rsc.test.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 524
} | 122 |
import path from "path"
import { initOptionsSchema } from "@/src/commands/init"
import { getPackageManager } from "@/src/utils/get-package-manager"
import { highlighter } from "@/src/utils/highlighter"
import { logger } from "@/src/utils/logger"
import { spinner } from "@/src/utils/spinner"
import { execa } from "execa"
import fs from "fs-extra"
import prompts from "prompts"
import { z } from "zod"
export async function createProject(
options: Pick<z.infer<typeof initOptionsSchema>, "cwd" | "force" | "srcDir">
) {
options = {
srcDir: false,
...options,
}
if (!options.force) {
const { proceed } = await prompts({
type: "confirm",
name: "proceed",
message: `The path ${highlighter.info(
options.cwd
)} does not contain a package.json file. Would you like to start a new ${highlighter.info(
"Next.js"
)} project?`,
initial: true,
})
if (!proceed) {
return {
projectPath: null,
projectName: null,
}
}
}
const packageManager = await getPackageManager(options.cwd)
const { name } = await prompts({
type: "text",
name: "name",
message: `What is your project named?`,
initial: "my-app",
format: (value: string) => value.trim(),
validate: (value: string) =>
value.length > 128 ? `Name should be less than 128 characters.` : true,
})
const projectPath = `${options.cwd}/${name}`
// Check if path is writable.
try {
await fs.access(options.cwd, fs.constants.W_OK)
} catch (error) {
logger.break()
logger.error(`The path ${highlighter.info(options.cwd)} is not writable.`)
logger.error(
`It is likely you do not have write permissions for this folder or the path ${highlighter.info(
options.cwd
)} does not exist.`
)
logger.break()
process.exit(1)
}
if (fs.existsSync(path.resolve(options.cwd, name, "package.json"))) {
logger.break()
logger.error(
`A project with the name ${highlighter.info(name)} already exists.`
)
logger.error(`Please choose a different name and try again.`)
logger.break()
process.exit(1)
}
const createSpinner = spinner(
`Creating a new Next.js project. This may take a few minutes.`
).start()
// Note: pnpm fails here. Fallback to npx with --use-PACKAGE-MANAGER.
const args = [
"--tailwind",
"--eslint",
"--typescript",
"--app",
options.srcDir ? "--src-dir" : "--no-src-dir",
"--no-import-alias",
`--use-${packageManager}`,
]
try {
await execa(
"npx",
["create-next-app@latest", projectPath, "--silent", ...args],
{
cwd: options.cwd,
}
)
} catch (error) {
logger.break()
logger.error(
`Something went wrong creating a new Next.js project. Please try again.`
)
process.exit(1)
}
createSpinner?.succeed("Creating a new Next.js project.")
return {
projectPath,
projectName: name,
}
}
| shadcn-ui/ui/packages/shadcn/src/utils/create-project.ts | {
"file_path": "shadcn-ui/ui/packages/shadcn/src/utils/create-project.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 1185
} | 123 |
import '@/styles/globals.css'
import type { AppProps } from 'next/app'
export default function App({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
}
| shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/next-pages-src/src/pages/_app.tsx | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/next-pages-src/src/pages/_app.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 60
} | 124 |
import type {
ActionFunctionArgs,
LoaderFunctionArgs,
MetaFunction,
} from "@remix-run/node";
import { json, redirect } from "@remix-run/node";
import { Form, Link, useActionData, useSearchParams } from "@remix-run/react";
import { useEffect, useRef } from "react";
import { createUser, getUserByEmail } from "~/models/user.server";
import { createUserSession, getUserId } from "~/session.server";
import { safeRedirect, validateEmail } from "~/utils";
export const loader = async ({ request }: LoaderFunctionArgs) => {
const userId = await getUserId(request);
if (userId) return redirect("/");
return json({});
};
export const action = async ({ request }: ActionFunctionArgs) => {
const formData = await request.formData();
const email = formData.get("email");
const password = formData.get("password");
const redirectTo = safeRedirect(formData.get("redirectTo"), "/");
if (!validateEmail(email)) {
return json(
{ errors: { email: "Email is invalid", password: null } },
{ status: 400 },
);
}
if (typeof password !== "string" || password.length === 0) {
return json(
{ errors: { email: null, password: "Password is required" } },
{ status: 400 },
);
}
if (password.length < 8) {
return json(
{ errors: { email: null, password: "Password is too short" } },
{ status: 400 },
);
}
const existingUser = await getUserByEmail(email);
if (existingUser) {
return json(
{
errors: {
email: "A user already exists with this email",
password: null,
},
},
{ status: 400 },
);
}
const user = await createUser(email, password);
return createUserSession({
redirectTo,
remember: false,
request,
userId: user.id,
});
};
export const meta: MetaFunction = () => [{ title: "Sign Up" }];
export default function Join() {
const [searchParams] = useSearchParams();
const redirectTo = searchParams.get("redirectTo") ?? undefined;
const actionData = useActionData<typeof action>();
const emailRef = useRef<HTMLInputElement>(null);
const passwordRef = useRef<HTMLInputElement>(null);
useEffect(() => {
if (actionData?.errors?.email) {
emailRef.current?.focus();
} else if (actionData?.errors?.password) {
passwordRef.current?.focus();
}
}, [actionData]);
return (
<div className="flex min-h-full flex-col justify-center">
<div className="mx-auto w-full max-w-md px-8">
<Form method="post" className="space-y-6">
<div>
<label
htmlFor="email"
className="block text-sm font-medium text-gray-700"
>
Email address
</label>
<div className="mt-1">
<input
ref={emailRef}
id="email"
required
// eslint-disable-next-line jsx-a11y/no-autofocus
autoFocus={true}
name="email"
type="email"
autoComplete="email"
aria-invalid={actionData?.errors?.email ? true : undefined}
aria-describedby="email-error"
className="w-full rounded border border-gray-500 px-2 py-1 text-lg"
/>
{actionData?.errors?.email ? (
<div className="pt-1 text-red-700" id="email-error">
{actionData.errors.email}
</div>
) : null}
</div>
</div>
<div>
<label
htmlFor="password"
className="block text-sm font-medium text-gray-700"
>
Password
</label>
<div className="mt-1">
<input
id="password"
ref={passwordRef}
name="password"
type="password"
autoComplete="new-password"
aria-invalid={actionData?.errors?.password ? true : undefined}
aria-describedby="password-error"
className="w-full rounded border border-gray-500 px-2 py-1 text-lg"
/>
{actionData?.errors?.password ? (
<div className="pt-1 text-red-700" id="password-error">
{actionData.errors.password}
</div>
) : null}
</div>
</div>
<input type="hidden" name="redirectTo" value={redirectTo} />
<button
type="submit"
className="w-full rounded bg-blue-500 px-4 py-2 text-white hover:bg-blue-600 focus:bg-blue-400"
>
Create Account
</button>
<div className="flex items-center justify-center">
<div className="text-center text-sm text-gray-500">
Already have an account?{" "}
<Link
className="text-blue-500 underline"
to={{
pathname: "/login",
search: searchParams.toString(),
}}
>
Log in
</Link>
</div>
</div>
</Form>
</div>
</div>
);
}
| shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/app/routes/join.tsx | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/app/routes/join.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 2489
} | 125 |
import { faker } from "@faker-js/faker";
declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace Cypress {
interface Chainable {
/**
* Logs in with a random user. Yields the user and adds an alias to the user
*
* @returns {typeof login}
* @memberof Chainable
* @example
* cy.login()
* @example
* cy.login({ email: '[email protected]' })
*/
login: typeof login;
/**
* Deletes the current @user
*
* @returns {typeof cleanupUser}
* @memberof Chainable
* @example
* cy.cleanupUser()
* @example
* cy.cleanupUser({ email: '[email protected]' })
*/
cleanupUser: typeof cleanupUser;
/**
* Extends the standard visit command to wait for the page to load
*
* @returns {typeof visitAndCheck}
* @memberof Chainable
* @example
* cy.visitAndCheck('/')
* @example
* cy.visitAndCheck('/', 500)
*/
visitAndCheck: typeof visitAndCheck;
}
}
}
function login({
email = faker.internet.email({ provider: "example.com" }),
}: {
email?: string;
} = {}) {
cy.then(() => ({ email })).as("user");
cy.exec(
`npx ts-node -r tsconfig-paths/register ./cypress/support/create-user.ts "${email}"`,
).then(({ stdout }) => {
const cookieValue = stdout
.replace(/.*<cookie>(?<cookieValue>.*)<\/cookie>.*/s, "$<cookieValue>")
.trim();
cy.setCookie("__session", cookieValue);
});
return cy.get("@user");
}
function cleanupUser({ email }: { email?: string } = {}) {
if (email) {
deleteUserByEmail(email);
} else {
cy.get("@user").then((user) => {
const email = (user as { email?: string }).email;
if (email) {
deleteUserByEmail(email);
}
});
}
cy.clearCookie("__session");
}
function deleteUserByEmail(email: string) {
cy.exec(
`npx ts-node -r tsconfig-paths/register ./cypress/support/delete-user.ts "${email}"`,
);
cy.clearCookie("__session");
}
// We're waiting a second because of this issue happen randomly
// https://github.com/cypress-io/cypress/issues/7306
// Also added custom types to avoid getting detached
// https://github.com/cypress-io/cypress/issues/7306#issuecomment-1152752612
// ===========================================================
function visitAndCheck(url: string, waitTime = 1000) {
cy.visit(url);
cy.location("pathname").should("contain", url).wait(waitTime);
}
export const registerCommands = () => {
Cypress.Commands.add("login", login);
Cypress.Commands.add("cleanupUser", cleanupUser);
Cypress.Commands.add("visitAndCheck", visitAndCheck);
};
| shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/cypress/support/commands.ts | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/cypress/support/commands.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 1107
} | 126 |
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'
function App() {
const [count, setCount] = useState(0)
return (
<>
<div>
<a href="https://vitejs.dev" target="_blank">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
</div>
<h1>Vite + React</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
<p>
Edit <code>src/App.tsx</code> and save to test HMR
</p>
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
</>
)
}
export default App
| shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/vite/src/App.tsx | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/vite/src/App.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 434
} | 127 |
import { describe, expect, test } from "vitest"
import { registryResolveItemsTree } from "../../../src/utils/registry"
describe("registryResolveItemTree", () => {
test("should resolve items tree", async () => {
expect(
await registryResolveItemsTree(["button"], {
style: "new-york",
tailwind: {
baseColor: "stone",
},
})
).toMatchSnapshot()
})
test("should resolve multiple items tree", async () => {
expect(
await registryResolveItemsTree(["button", "input", "command"], {
style: "default",
tailwind: {
baseColor: "zinc",
},
})
).toMatchSnapshot()
})
test("should resolve index", async () => {
expect(
await registryResolveItemsTree(["index", "label"], {
style: "default",
tailwind: {
baseColor: "zinc",
},
})
).toMatchSnapshot()
})
})
| shadcn-ui/ui/packages/shadcn/test/utils/schema/registry-resolve-items-tree.test.ts | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/utils/schema/registry-resolve-items-tree.test.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 386
} | 128 |
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
| shadcn-ui/ui/postcss.config.cjs | {
"file_path": "shadcn-ui/ui/postcss.config.cjs",
"repo_id": "shadcn-ui/ui",
"token_count": 38
} | 129 |
import Link from "next/link"
import { siteConfig } from "@/config/site"
import { buttonVariants } from "@/components/ui/button"
import { Icons } from "@/components/icons"
import { MainNav } from "@/components/main-nav"
import { ThemeToggle } from "@/components/theme-toggle"
export function SiteHeader() {
return (
<header className="sticky top-0 z-40 w-full border-b bg-background">
<div className="container flex h-16 items-center space-x-4 sm:justify-between sm:space-x-0">
<MainNav items={siteConfig.mainNav} />
<div className="flex flex-1 items-center justify-end space-x-4">
<nav className="flex items-center space-x-1">
<Link
href={siteConfig.links.github}
target="_blank"
rel="noreferrer"
>
<div
className={buttonVariants({
size: "icon",
variant: "ghost",
})}
>
<Icons.gitHub className="h-5 w-5" />
<span className="sr-only">GitHub</span>
</div>
</Link>
<Link
href={siteConfig.links.twitter}
target="_blank"
rel="noreferrer"
>
<div
className={buttonVariants({
size: "icon",
variant: "ghost",
})}
>
<Icons.twitter className="h-4 w-4 fill-current" />
<span className="sr-only">Twitter</span>
</div>
</Link>
<ThemeToggle />
</nav>
</div>
</div>
</header>
)
}
| shadcn-ui/ui/templates/next-template/components/site-header.tsx | {
"file_path": "shadcn-ui/ui/templates/next-template/components/site-header.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 909
} | 130 |
MIT License
Copyright (c) 2024 Easy UI
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
| DarkInventor/easy-ui/LICENSE | {
"file_path": "DarkInventor/easy-ui/LICENSE",
"repo_id": "DarkInventor/easy-ui",
"token_count": 273
} | 0 |
import React from "react"
function IntroductionPage() {
return (
<div className="flex flex-wrap justify-center gap-4 pb-10 ml-0 lg:ml-10">
<div className="w-full p-4 space-y-4 mt-5">
<h2 className="text-2xl font-bold">Introduction</h2>
<p className="text-lg text-balance text-lg text-muted-foreground">
Beautiful collection of 50+ building blocks and website templates.
</p>
<p className="leading-7 tracking-tight font-[500]">
Easy UI is a <b>collection of re-usable 50+ templates</b> and <b>building blocks</b> that you can use into your web apps.
</p>
<p className="leading-7 tracking-tight font-[500]">It helps you:</p>
<ul className="list-disc pl-5 space-y-2 leading-7 tracking-tight font-[500]">
<li> Save 100+ hours of work</li>
<li> No need to learn advanced animations</li>
<li> Easy to configure and change</li>
<li> 1-click download and setup</li>
<li> 5 minutes to update the text and images</li>
<li> Deploy live to Vercel</li>
</ul>
<h2 className="text-2xl font-bold pt-10">Philosophy</h2>
<p>
<b>The philosophy behind Easy UI is rooted in simplicity and efficiency. As a developer, I've always believed in the power of good design and user experience.</b> However, I also understand the challenges and time constraints that come with creating visually appealing and functional web applications. That's why I created Easy UI.
</p>
<p>
<b>My goal with Easy UI is to provide a straightforward solution for developers and designers alike. </b>Whether you're working on a personal project, a startup, or for a client, Easy UI offers a foundation that can be easily adapted and customized to fit your needs.
</p>
<p>
<b>It's not just about saving time; it's about maintaining a high standard of quality without the need to reinvent the wheel for every new project.</b>
</p>
<p>
<b>I've focused on making Easy UI as accessible as possible.</b> This means clear documentation, simple configuration, and a community-driven approach to improvements and support. I believe that by sharing resources and tools, we can all achieve more, faster, and with better results.
</p>
<p>
In essence, Easy UI is my contribution to a more collaborative and efficient future in web development. It's about enabling creators to bring their visions to life with less friction and more joy in the process.
</p>
<p>
Easy UI templates draw inspiration from many well-regarded templates in the industry.
</p>
</div>
</div>
)
}
export default IntroductionPage
| DarkInventor/easy-ui/app/(docs)/introduction/page.tsx | {
"file_path": "DarkInventor/easy-ui/app/(docs)/introduction/page.tsx",
"repo_id": "DarkInventor/easy-ui",
"token_count": 1006
} | 1 |
// import { Button } from "@/components/ui/button"
// export default function ShareButtons({ post }) {
// const shareUrl = `https://easyui.pro/${post._raw.flattenedPath}`
// return (
// <div className="mt-8">
// <h3>Share this post</h3>
// <Button onClick={() => window.open(`https://twitter.com/intent/tweet?text=${post.title}&url=${encodeURIComponent(shareUrl)}`, '_blank')}>
// Share on Twitter
// </Button>
// {/* Add more social sharing buttons */}
// </div>
// )
// }
'use client'
import { Button } from "@/components/ui/button"
import { Share2, Twitter } from 'lucide-react'
interface ShareButtonsProps {
title: string
url: string
}
export default function ShareButtons({ title, url }: ShareButtonsProps) {
const handleShare = () => {
window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(title)}&url=${encodeURIComponent(url)}`, '_blank')
}
return (
<div className="flex justify-between items-center">
<Button variant="outline" onClick={handleShare}>
<Share2 className="w-4 h-4 mr-2" />
Share this post
</Button>
<div className="flex space-x-4">
<Button variant="outline" size="icon" onClick={handleShare}>
<Twitter className="h-4 w-4" />
</Button>
</div>
</div>
)
} | DarkInventor/easy-ui/app/posts/[slug]/ShareButtons.tsx | {
"file_path": "DarkInventor/easy-ui/app/posts/[slug]/ShareButtons.tsx",
"repo_id": "DarkInventor/easy-ui",
"token_count": 567
} | 2 |
"use client"
import React, { useEffect, useState } from "react"
interface GlitchTextProps {
text: string
textSize: string
className?: string
fontWeight?: React.CSSProperties["fontWeight"]
}
export default function GlitchText({
text,
textSize,
className = "",
fontWeight = "normal",
}: GlitchTextProps) {
const [displayedText, setDisplayedText] = useState("")
useEffect(() => {
let currentIndex = 0
const fullText = text
const typingInterval = setInterval(() => {
if (currentIndex <= fullText.length) {
setDisplayedText(fullText.slice(0, currentIndex))
currentIndex++
} else {
clearInterval(typingInterval)
}
}, 100)
return () => clearInterval(typingInterval)
}, [text])
return (
<div
className={`glitch-wrapper ${className} dark:text-white text-black`}
style={{ fontSize: textSize, fontWeight }}
>
<div className="glitch" data-text={displayedText}>
{displayedText}
</div>
<style jsx>{`
.glitch-wrapper {
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
background-color: transparent;
}
.glitch {
position: relative;
letter-spacing: 3px;
z-index: 1;
}
.glitch:before,
.glitch:after {
display: block;
content: attr(data-text);
position: absolute;
top: 0;
left: 0;
opacity: 0.8;
}
.glitch:before {
animation: glitch-it 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both
infinite;
color: #00ffff;
z-index: -1;
}
.glitch:after {
animation: glitch-it 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse
both infinite;
color: #ff00ff;
z-index: -2;
}
@keyframes glitch-it {
0% {
transform: translate(0);
}
20% {
transform: translate(-2px, 2px);
}
40% {
transform: translate(-2px, -2px);
}
60% {
transform: translate(2px, 2px);
}
80% {
transform: translate(2px, -2px);
}
to {
transform: translate(0);
}
}
`}</style>
</div>
)
}
| DarkInventor/easy-ui/components/easyui/glitch-text.tsx | {
"file_path": "DarkInventor/easy-ui/components/easyui/glitch-text.tsx",
"repo_id": "DarkInventor/easy-ui",
"token_count": 1267
} | 3 |
import { cn } from "@/lib/utils";
interface MarqueeProps {
className?: string;
reverse?: boolean;
pauseOnHover?: boolean;
children?: React.ReactNode;
vertical?: boolean;
repeat?: number;
[key: string]: any;
}
export default function Marquee({
className,
reverse,
pauseOnHover = false,
children,
vertical = false,
repeat = 4,
...props
}: MarqueeProps) {
return (
<div
{...props}
className={cn(
"group flex overflow-hidden p-2 [--duration:40s] [--gap:1rem] [gap:var(--gap)]",
{
"flex-row": !vertical,
"flex-col": vertical,
},
className,
)}
>
{Array(repeat)
.fill(0)
.map((_, i) => (
<div
key={i}
className={cn("flex shrink-0 justify-around [gap:var(--gap)]", {
"animate-marquee flex-row": !vertical,
"animate-marquee-vertical flex-col": vertical,
"group-hover:[animation-play-state:paused]": pauseOnHover,
"[animation-direction:reverse]": reverse,
})}
>
{children}
</div>
))}
</div>
);
}
| DarkInventor/easy-ui/components/magicui/marquee.tsx | {
"file_path": "DarkInventor/easy-ui/components/magicui/marquee.tsx",
"repo_id": "DarkInventor/easy-ui",
"token_count": 576
} | 4 |
import { cva, type VariantProps } from "class-variance-authority";
import * as React from "react";
import { cn } from "@/lib/utils";
const badgeVariants = cva(
"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
{
variants: {
variant: {
default:
"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
secondary:
"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
destructive:
"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
green:
"border-transparent bg-green-600 text-destructive-foreground shadow hover:bg-destructive/80",
outline: "text-foreground",
},
},
defaultVariants: {
variant: "default",
},
},
);
export interface BadgeProps
extends React.HTMLAttributes<HTMLDivElement>,
VariantProps<typeof badgeVariants> {}
function Badge({ className, variant, ...props }: BadgeProps) {
return (
<div className={cn(badgeVariants({ variant }), className)} {...props} />
);
}
export { Badge, badgeVariants }; | DarkInventor/easy-ui/components/ui/badge.tsx | {
"file_path": "DarkInventor/easy-ui/components/ui/badge.tsx",
"repo_id": "DarkInventor/easy-ui",
"token_count": 473
} | 5 |
// import { defineDocumentType, makeSource } from 'contentlayer/source-files'
// const Post = defineDocumentType(() => ({
// name: 'Post',
// filePathPattern: `**/*.mdx`,
// contentType: 'mdx',
// fields: {
// title: {
// type: 'string',
// description: 'The title of the post',
// required: true,
// },
// date: {
// type: 'date',
// description: 'The date of the post',
// required: true,
// },
// },
// computedFields: {
// url: {
// type: 'string',
// resolve: (doc) => `/posts/${doc._raw.flattenedPath}`,
// },
// },
// }))
// export default makeSource({
// contentDirPath: 'posts',
// documentTypes: [Post],
// })
import { defineDocumentType, makeSource } from 'contentlayer/source-files'
export const Post = defineDocumentType(() => ({
name: 'Post',
filePathPattern: `**/*.mdx`,
contentType: 'mdx',
fields: {
title: { type: 'string', required: true },
date: { type: 'date', required: true },
description: { type: 'string', required: true },
tags: { type: 'list', of: { type: 'string' }, default: [] },
coverImage: { type: 'string' },
},
computedFields: {
url: { type: 'string', resolve: (post) => `/posts/${post._raw.flattenedPath}` },
},
}))
export default makeSource({
contentDirPath: 'posts',
documentTypes: [Post],
})
| DarkInventor/easy-ui/contentlayer.config.ts | {
"file_path": "DarkInventor/easy-ui/contentlayer.config.ts",
"repo_id": "DarkInventor/easy-ui",
"token_count": 535
} | 6 |
"use client";
import { cn } from "@/lib/utils";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import type { TabsProps } from "@radix-ui/react-tabs";
import { SaasStarterkitHighlight } from "@/app/(app)/_components/saas-startkit-highlight";
import React from "react";
const highlights = [
{
id: "saas-starterkit",
title: "SaaS Starterkit",
description:
"Auth, Dashboard, Landing Pages, billing and more everything you need to launch your MVP faster.",
badge: "Almost Ready",
},
{
id: "blocks",
title: "Blocks",
description:
"Auth forms, modals, hero sections, pricing tables, and more all customizable and open source.",
disabled: true,
badge: "Soon",
},
{
id: "guides",
title: "Guides",
description:
"Authenticating users, setting up billing, and more all the guides you need to launch your app.",
disabled: true,
badge: "Soon",
},
];
type HighlightNavProps = TabsProps;
export function HighlightTabs({ className, ...props }: HighlightNavProps) {
const [selectedHighlight, setSelectedHighlight] = React.useState(
highlights[0]?.id,
);
const activeHighlight = highlights.find(
(highlight) => highlight.id === selectedHighlight,
);
return (
<Tabs
className={cn("space-y-10", className)}
value={selectedHighlight}
onValueChange={(value) => setSelectedHighlight(value)}
{...props}
>
<div className="flex flex-col items-center gap-4">
<TabsList className="grid h-auto grid-cols-3 items-start bg-transparent p-0">
{highlights.map((highlight) => (
<TabsTrigger
value={highlight.id}
key={highlight.id}
disabled={highlight.disabled}
className="group flex flex-col items-center justify-start gap-2 whitespace-normal rounded-none border-t py-6 text-start data-[state=active]:border-primary data-[state=active]:shadow-none sm:items-start"
>
<div className="flex flex-col items-center gap-2 sm:flex-row">
<h2 className="text-center font-medium">
{highlight.title}
</h2>
{highlight?.badge && (
<span className="block rounded-sm bg-secondary px-2 py-0.5 text-center text-xs font-medium text-primary">
{highlight.badge}
</span>
)}
</div>
<p className="hidden font-normal text-muted-foreground transition-all sm:block">
{highlight.description}
</p>
</TabsTrigger>
))}
</TabsList>
<p className="block w-full text-center text-sm font-normal text-muted-foreground transition-all sm:hidden">
{activeHighlight?.description}
</p>
</div>
<TabsContent value="saas-starterkit">
<SaasStarterkitHighlight />
</TabsContent>
</Tabs>
);
}
| alifarooq9/rapidlaunch/apps/www/src/app/(app)/_components/highlight-tabs.tsx | {
"file_path": "alifarooq9/rapidlaunch/apps/www/src/app/(app)/_components/highlight-tabs.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 1833
} | 7 |
"use client";
import { Button } from "@/components/ui/button";
import {
Dialog,
DialogClose,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
DialogTrigger,
} from "@/components/ui/dialog";
import {
Form,
FormControl,
FormDescription,
FormField,
FormItem,
FormLabel,
FormMessage,
} from "@/components/ui/form";
import { Icons } from "@/components/ui/icons";
import { Input } from "@/components/ui/input";
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/components/ui/select";
import { Textarea } from "@/components/ui/textarea";
import { useAwaitableTransition } from "@/hooks/use-awaitable-transition";
import { createFeedbackMutation } from "@/server/actions/feedback/mutations";
import { feedback, feedbackInsertSchema } from "@/server/db/schema";
import { zodResolver } from "@hookform/resolvers/zod";
import { useMutation } from "@tanstack/react-query";
import { useRouter } from "next/navigation";
import { useState } from "react";
import { useForm } from "react-hook-form";
import { toast } from "sonner";
import type { z } from "zod";
const createfeedbackFormSchema = feedbackInsertSchema.pick({
title: true,
message: true,
label: true,
});
type CreateFeedbackFormSchema = z.infer<typeof createfeedbackFormSchema>;
export function CreateFeedbackForm() {
const router = useRouter();
const [isOpen, setIsOpen] = useState(false);
const form = useForm<CreateFeedbackFormSchema>({
resolver: zodResolver(createfeedbackFormSchema),
defaultValues: {
title: "",
message: "",
label: "Feature Request",
},
});
const { isPending: isMutatePending, mutateAsync } = useMutation({
mutationFn: () => createFeedbackMutation(form.getValues()),
});
const [isPending, startAwaitableTransition] = useAwaitableTransition();
const onSubmit = async () => {
try {
await mutateAsync();
await startAwaitableTransition(() => {
router.refresh();
});
form.reset();
setIsOpen(false);
toast.success("Feedback submitted successfully");
} catch (error) {
toast.error(
(error as { message?: string })?.message ??
"Failed to submit feedback",
);
}
};
return (
<Dialog
open={isOpen}
onOpenChange={(o) => {
form.reset();
setIsOpen(o);
}}
>
<DialogTrigger asChild>
<Button type="button">Give Feedback</Button>
</DialogTrigger>
<DialogContent>
<DialogHeader>
<DialogTitle>Give your feedback</DialogTitle>
<DialogDescription>
We appreciate your feedback and suggestions. Please
provide your feedback below.
</DialogDescription>
</DialogHeader>
<Form {...form}>
<form
onSubmit={form.handleSubmit(onSubmit)}
className="grid w-full gap-4"
>
<FormField
control={form.control}
name="title"
render={({ field }) => (
<FormItem>
<FormLabel>Title</FormLabel>
<FormControl>
<Input
placeholder="Title of your feedback"
{...field}
value={field.value ?? ""}
/>
</FormControl>
<FormDescription>
Give a title to your feedback.
</FormDescription>
<FormMessage />
</FormItem>
)}
/>
<FormField
control={form.control}
name="label"
render={({ field }) => (
<FormItem>
<FormLabel>Label</FormLabel>
<Select
onValueChange={field.onChange}
defaultValue={field.value}
>
<FormControl>
<SelectTrigger>
<SelectValue placeholder="What type of feedback is this?" />
</SelectTrigger>
</FormControl>
<SelectContent>
{feedback.label.enumValues.map(
(label) => (
<SelectItem
key={label}
value={label}
>
{label}
</SelectItem>
),
)}
</SelectContent>
</Select>
<FormDescription>
Select the type of feedback you are
providing.
</FormDescription>
<FormMessage />
</FormItem>
)}
/>
<FormField
control={form.control}
name="message"
render={({ field }) => (
<FormItem>
<FormLabel>Message</FormLabel>
<FormControl>
<Textarea
placeholder="Your feedback message"
{...field}
/>
</FormControl>
<FormDescription>
Type your feedback message here.
</FormDescription>
<FormMessage />
</FormItem>
)}
/>
</form>
</Form>
<DialogFooter>
<DialogClose asChild>
<Button type="button" variant="outline">
Cancel
</Button>
</DialogClose>
<Button
type="submit"
disabled={isPending || isMutatePending}
onClick={form.handleSubmit(onSubmit)}
className="gap-2"
>
{isPending || isMutatePending ? (
<Icons.loader className="h-4 w-4" />
) : null}
<span>Submit Feedback</span>
</Button>
</DialogFooter>
</DialogContent>
</Dialog>
);
}
| alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/feedback/_components/create-feedback-form.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/feedback/_components/create-feedback-form.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 5206
} | 8 |
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
"use client";
import { type ColumnDef } from "@tanstack/react-table";
import { type membersToOrganizations } from "@/server/db/schema";
import { Badge } from "@/components/ui/badge";
import { ColumnDropdown } from "@/app/(app)/(user)/org/members/_components/column-dropdown";
import { format } from "date-fns";
// This type is used to define the shape of our data.
// You can use a Zod schema here if you want.
export type MembersData = {
id: string;
name: string | null;
email: string;
memberId: string;
role: typeof membersToOrganizations.$inferSelect.role;
createdAt: Date;
};
export function getColumns(): ColumnDef<MembersData>[] {
return columns;
}
export const columns: ColumnDef<MembersData>[] = [
{
accessorKey: "name",
header: () => <span className="pl-2">Name</span>,
cell: ({ row }) => {
console.log(row.original);
if (row.original.name) {
return (
<span className="pl-2 font-medium">
{row.original.name}
</span>
);
}
return <span className="pl-2 text-muted-foreground">No name</span>;
},
},
{
accessorKey: "email",
header: "Email",
},
{
accessorKey: "role",
header: "Role",
cell: ({ row }) => (
<Badge variant="secondary" className="capitalize">
{row.original.role}
</Badge>
),
filterFn: (row, id, value) => {
return !!value.includes(row.getValue(id));
},
},
{
accessorKey: "createdAt",
header: "Created At",
cell: ({ row }) => (
<span className="text-muted-foreground">
{format(new Date(row.original.createdAt), "PP")}
</span>
),
},
{
id: "actions",
cell: ({ row }) => <ColumnDropdown {...row.original} />,
},
];
| alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/org/members/_components/columns.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/org/members/_components/columns.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 978
} | 9 |
import { AppPageShell } from "@/app/(app)/_components/page-shell";
import { orgSettingsPageConfig } from "@/app/(app)/(user)/org/settings/_constants/page-config";
import { OrgNameForm } from "@/app/(app)/(user)/org/settings/_components/org-name-form";
import { DeleteYourOrgForm } from "@/app/(app)/(user)/org/settings/_components/org-delete-form";
import { OrgImageForm } from "@/app/(app)/(user)/org/settings/_components/org-image-form";
import { getOrganizations } from "@/server/actions/organization/queries";
export default async function OrgSettingsPage() {
const { currentOrg, userOrgs } = await getOrganizations();
return (
<AppPageShell
title={orgSettingsPageConfig.title}
description={orgSettingsPageConfig.description}
>
<div className="grid w-full grid-cols-1 gap-4 sm:grid-cols-2">
<OrgImageForm currentOrg={currentOrg} />
<OrgNameForm currentOrg={currentOrg} key={currentOrg.id} />
<DeleteYourOrgForm fallbackOrgId={userOrgs[0]!.id} />
</div>
</AppPageShell>
);
}
| alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/org/settings/page.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/org/settings/page.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 435
} | 10 |
import { AppHeader } from "@/app/(app)/_components/app-header";
import { Sidebar, SidebarLoading } from "@/app/(app)/_components/sidebar";
import { Suspense } from "react";
type AppLayoutProps = {
children: React.ReactNode;
sideNavRemoveIds?: string[];
sideNavIncludedIds?: string[];
showOrgSwitcher?: boolean;
};
/**
* @purpose The app shell component contain sidebar nav info and the main content of the app
* to add a new component in app shell and use it in the `AppShell` component it will apply to all the app pages
*
* @param children the main content of the app
* @param sideNavIncludedIds the ids of the sidebar nav items to include in the sidebar specifically @get ids from the sidebar config
* @param sideNavRemoveIds the ids of the sidebar nav items to remove from the sidebar specifically @get ids from the sidebar config
*
*/
export function AppLayoutShell({
children,
sideNavIncludedIds,
sideNavRemoveIds,
showOrgSwitcher,
}: AppLayoutProps) {
return (
<div className="container flex items-start gap-8">
<div className="sticky left-0 top-0 hidden h-screen w-52 flex-shrink-0 lg:block xl:w-60 ">
<Suspense fallback={<SidebarLoading />}>
<Sidebar
sidebarNavIncludeIds={sideNavIncludedIds}
sidebarNavRemoveIds={sideNavRemoveIds}
showOrgSwitcher={showOrgSwitcher}
/>
</Suspense>
</div>
<section className="min-h-screen w-full flex-grow">
<div className="sticky left-0 right-0 top-0 z-50 block border-b border-border bg-background lg:hidden">
<AppHeader
showOrgSwitcher={showOrgSwitcher}
sidebarNavIncludeIds={sideNavIncludedIds}
sidebarNavRemoveIds={sideNavRemoveIds}
/>
</div>
{children}
</section>
</div>
);
}
| alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/_components/layout-shell.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/_components/layout-shell.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 897
} | 11 |
/**
* This file contains the page configuration for the users page.
* This is used to generate the page title and description.
*/
export const adminDashConfig = {
title: "Admin Dashboard",
description:
"View insights and analytics to monitor your app's performance and user behavior.",
} as const;
| alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/admin/dashboard/_constants/page-config.ts | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/admin/dashboard/_constants/page-config.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 84
} | 12 |
import { AppPageLoading } from "@/app/(app)/_components/page-loading";
import { organizationsPageConfig } from "@/app/(app)/admin/organizations/_constants/page-config";
import { Skeleton } from "@/components/ui/skeleton";
export default function OrganizationsPageLoading() {
return (
<AppPageLoading
title={organizationsPageConfig.title}
description={organizationsPageConfig.description}
>
<Skeleton className="h-96 w-full" />
</AppPageLoading>
);
}
| alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/admin/organizations/loading.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/admin/organizations/loading.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 190
} | 13 |
type BackgroundProps = {
children: React.ReactNode;
};
export function Background({ children }: BackgroundProps) {
return (
<>
<svg
className="absolute inset-0 -z-10 h-full w-full stroke-muted-foreground/25 [mask-image:radial-gradient(100%_130%_at_top,white,transparent)]"
aria-hidden="true"
>
<defs>
<pattern
id="0787a7c5-978c-4f66-83c7-11c213f99cb7"
width={200}
height={200}
x="50%"
y={-1}
patternUnits="userSpaceOnUse"
>
<path d="M.5 200V.5H200" fill="none" />
</pattern>
</defs>
<rect
width="100%"
height="100%"
strokeWidth={0}
fill="url(#0787a7c5-978c-4f66-83c7-11c213f99cb7)"
/>
</svg>
{children}
</>
);
}
| alifarooq9/rapidlaunch/starterkits/saas/src/app/(web)/_components/background.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(web)/_components/background.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 725
} | 14 |
import Features from "@/app/(web)/_components/features";
import {
WebPageHeader,
WebPageWrapper,
} from "@/app/(web)/_components/general-components";
import { Promotion } from "@/app/(web)/_components/promotion";
import { Testimonials } from "@/app/(web)/_components/testimonials";
import { buttonVariants } from "@/components/ui/button";
import { Icons } from "@/components/ui/icons";
import { siteUrls } from "@/config/urls";
import Image from "next/image";
import Link from "next/link";
import Balancer from "react-wrap-balancer";
import type { Metadata } from "next";
export const metadata: Metadata = {
title: "Build Your MVP in Days, not weeks. Next.js Starter Kit",
};
export const dynamic = "force-static";
export default async function HomePage() {
return (
<WebPageWrapper>
<WebPageHeader
badge="Launch your saas in 24 hours"
title="Build Your MVP in Days, not weeks. Open Source Starter Kit"
>
<Balancer
as="p"
className="text-center text-base text-muted-foreground sm:text-lg"
>
Elevate your development game with Rapidlaunch! Launch your
apps faster with our SaaS starterkits, components, building
guides, and more. Customizable. Open Source.
</Balancer>
<div className="flex items-center gap-3">
<Link
href={siteUrls.github}
className={buttonVariants({ variant: "outline" })}
target="_blank"
rel="noopener noreferrer"
>
<Icons.gitHub className="mr-2 h-4 w-4" /> Github
</Link>
<Link
href={siteUrls.auth.signup}
className={buttonVariants()}
>
Signup
<span className="ml-1 font-light italic">
it's free
</span>
</Link>
</div>
</WebPageHeader>
<div className="-m-2 w-full rounded-xl bg-foreground/5 p-2 ring-1 ring-inset ring-foreground/10 lg:-m-4 lg:rounded-2xl lg:p-4">
<div className="relative aspect-video w-full rounded-md bg-muted">
<Image
src="https://utfs.io/f/43bbc3c8-cf3c-4fae-a0eb-9183f1779489-294m81.png"
alt="dashboard preview"
fill
className="block rounded-md border border-border dark:hidden"
priority
/>
<Image
src="https://utfs.io/f/fddea366-51c6-45f4-bd54-84d273ad9fb9-1ly324.png"
alt="dashboard preview"
fill
className="hidden rounded-md border border-border dark:block"
priority
/>
</div>
</div>
<Promotion />
<Features />
<Testimonials />
</WebPageWrapper>
);
}
| alifarooq9/rapidlaunch/starterkits/saas/src/app/(web)/page.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(web)/page.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 1804
} | 15 |
import { AuthForm } from "@/app/auth/_components/auth-form";
import { signupPageConfig } from "@/app/auth/signup/_constants/page-config";
import { type Metadata } from "next";
export const metadata: Metadata = {
title: signupPageConfig.title,
description: signupPageConfig.description,
};
export default function Signup() {
return <AuthForm type="signup" />;
}
| alifarooq9/rapidlaunch/starterkits/saas/src/app/auth/signup/page.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/auth/signup/page.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 120
} | 16 |
import { WaitlistForm } from "@/app/waitlist/_components/waitlist-form";
import { waitlistPageConfig } from "@/app/waitlist/_constants/page-config";
import { Icons } from "@/components/ui/icons";
import { siteConfig } from "@/config/site";
import { type Metadata } from "next";
export const metadata: Metadata = {
title: waitlistPageConfig.title,
description: waitlistPageConfig.description,
};
export default function Waitlist() {
return (
<main className="container flex min-h-screen w-screen flex-col items-center justify-center space-y-4">
<Icons.logoIcon className="h-10 w-10 text-foreground sm:h-14 sm:w-14" />
<h1 className=" z-10 bg-gradient-to-br from-muted to-foreground bg-clip-text text-center font-heading text-3xl font-bold text-transparent md:text-7xl">
Join the waitlist
</h1>
<p className=" z-10 mx-auto max-w-lg text-center text-sm text-muted-foreground">
Welcome to {siteConfig.name}, a platform which provides
resources for building applications faster. We're currently
working on adding more features and improving the user
experience. In the meantime, you can join our waitlist!
</p>
<WaitlistForm />
</main>
);
}
| alifarooq9/rapidlaunch/starterkits/saas/src/app/waitlist/page.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/waitlist/page.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 532
} | 17 |
"use client";
import { Drawer as DrawerPrimitive } from "vaul";
import { cn } from "@/lib/utils";
import { forwardRef } from "react";
const Drawer = ({
shouldScaleBackground = true,
...props
}: React.ComponentProps<typeof DrawerPrimitive.Root>) => (
<DrawerPrimitive.Root
shouldScaleBackground={shouldScaleBackground}
{...props}
/>
);
Drawer.displayName = "Drawer";
const DrawerTrigger = DrawerPrimitive.Trigger;
const DrawerPortal = DrawerPrimitive.Portal;
const DrawerClose = DrawerPrimitive.Close;
const DrawerOverlay = forwardRef<
React.ElementRef<typeof DrawerPrimitive.Overlay>,
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>
>(({ className, ...props }, ref) => (
<DrawerPrimitive.Overlay
ref={ref}
className={cn("fixed inset-0 z-50 bg-black/80", className)}
{...props}
/>
));
DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
const DrawerContent = forwardRef<
React.ElementRef<typeof DrawerPrimitive.Content>,
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>
>(({ className, children, ...props }, ref) => (
<DrawerPortal>
<DrawerOverlay />
<DrawerPrimitive.Content
ref={ref}
className={cn(
"fixed z-50 flex h-auto flex-col rounded-t-[10px] border bg-background",
className,
)}
{...props}
>
<div className="mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" />
{children}
</DrawerPrimitive.Content>
</DrawerPortal>
));
DrawerContent.displayName = "DrawerContent";
const DrawerHeader = ({
className,
...props
}: React.HTMLAttributes<HTMLDivElement>) => (
<div
className={cn("grid gap-1.5 p-4 text-center sm:text-left", className)}
{...props}
/>
);
DrawerHeader.displayName = "DrawerHeader";
const DrawerFooter = ({
className,
...props
}: React.HTMLAttributes<HTMLDivElement>) => (
<div
className={cn("mt-auto flex flex-col gap-2 p-4", className)}
{...props}
/>
);
DrawerFooter.displayName = "DrawerFooter";
const DrawerTitle = forwardRef<
React.ElementRef<typeof DrawerPrimitive.Title>,
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>
>(({ className, ...props }, ref) => (
<DrawerPrimitive.Title
ref={ref}
className={cn(
"text-lg font-semibold leading-none tracking-tight",
className,
)}
{...props}
/>
));
DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
const DrawerDescription = forwardRef<
React.ElementRef<typeof DrawerPrimitive.Description>,
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description>
>(({ className, ...props }, ref) => (
<DrawerPrimitive.Description
ref={ref}
className={cn("text-sm text-muted-foreground", className)}
{...props}
/>
));
DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
export {
Drawer,
DrawerPortal,
DrawerOverlay,
DrawerTrigger,
DrawerClose,
DrawerContent,
DrawerHeader,
DrawerFooter,
DrawerTitle,
DrawerDescription,
};
| alifarooq9/rapidlaunch/starterkits/saas/src/components/ui/drawer.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/components/ui/drawer.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 1331
} | 18 |
import * as React from "react";
export function useDebounce<T>(value: T, delay?: number): T {
const [debouncedValue, setDebouncedValue] = React.useState<T>(value);
React.useEffect(() => {
const timer = setTimeout(() => setDebouncedValue(value), delay ?? 500);
return () => {
clearTimeout(timer);
};
}, [value, delay]);
return debouncedValue;
}
| alifarooq9/rapidlaunch/starterkits/saas/src/hooks/use-debounce.ts | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/hooks/use-debounce.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 152
} | 19 |
import { DrizzleAdapter } from "@auth/drizzle-adapter";
import {
getServerSession,
type DefaultSession,
type NextAuthOptions,
} from "next-auth";
import { type Adapter } from "next-auth/adapters";
import { db } from "@/server/db";
import { createTable, users } from "@/server/db/schema";
import { siteUrls } from "@/config/urls";
//Next Auth Providers
import EmailProvider from "next-auth/providers/email";
import GoogleProvider from "next-auth/providers/google";
import GithubProvider from "next-auth/providers/github";
import { sendVerificationEmail } from "@/server/actions/send-verification-email";
import { env } from "@/env";
import { eq } from "drizzle-orm";
/**
* Module augmentation for `next-auth` types. Allows us to add custom properties to the `session`
* object and keep type safety.
*
* @see https://next-auth.js.org/getting-started/typescript#module-augmentation
*/
type UserRole = typeof users.$inferSelect.role;
declare module "next-auth" {
interface Session extends DefaultSession {
user: {
id: string;
role: UserRole;
createdAt: Date;
emailVerified: Date | null;
isNewUser: boolean;
// ...other properties
} & DefaultSession["user"];
}
interface User {
id: string;
role: UserRole;
createdAt: Date;
emailVerified: Date | null;
isNewUser: boolean;
// ...other properties
}
}
/**
* Module augmentation for `next-auth/jwt` types. Allows us to add custom properties to the `jwt`
* object and keep type safety.
*
* @see https://next-auth.js.org/getting-started/typescript#module-augmentation
*/
declare module "next-auth/jwt" {
// /** Returned by the `jwt` callback and `getToken`, when using JWT sessions */
interface JWT {
id: string;
role: UserRole;
createdAt: Date;
emailVerified: Date | null;
isNewUser: boolean;
// ...other properties
}
}
/**
* Options for NextAuth.js used to configure adapters, providers, callbacks, etc.
*
* @see https://next-auth.js.org/configuration/options
*/
export const authOptions: NextAuthOptions = {
callbacks: {
session({ token, session }) {
if (token) {
// Add the user id to the session, so it's available in the client app
session.user.id = token.id;
session.user.name = token.name;
session.user.email = token.email;
session.user.image = token.picture;
session.user.role = token.role;
session.user.createdAt = token.createdAt;
session.user.emailVerified = token.emailVerified;
session.user.isNewUser = token.isNewUser;
}
return session;
},
async jwt({ token, user }) {
const dbUser = await db.query.users.findFirst({
where: eq(users.email, token.email!),
});
if (!dbUser) {
if (user) {
token.id = user?.id;
}
return token;
}
return {
id: dbUser.id,
role: dbUser.role,
createdAt: dbUser.createdAt,
emailVerified: dbUser.emailVerified,
email: dbUser.email,
name: dbUser.name,
picture: dbUser.image,
isNewUser: dbUser.isNewUser,
};
},
},
secret: env.NEXTAUTH_SECRET,
session: {
strategy: "jwt",
},
adapter: DrizzleAdapter(db, createTable) as Adapter,
pages: {
signIn: siteUrls.auth.login,
signOut: siteUrls.auth.login,
error: siteUrls.auth.login,
verifyRequest: siteUrls.auth.login,
},
providers: [
EmailProvider({
async sendVerificationRequest(params) {
return await sendVerificationEmail({ params });
},
}),
GoogleProvider({
clientId: env.GOOGLE_CLIENT_ID,
clientSecret: env.GOOGLE_CLIENT_SECRET,
}),
GithubProvider({
clientId: env.GITHUB_CLIENT_ID,
clientSecret: env.GITHUB_CLIENT_SECRET,
}),
/**
* ...add more providers here.
*
* Most other providers require a bit more work than the Discord provider. For example, the
* GitHub provider requires you to add the `refresh_token_expires_in` field to the Account
* model. Refer to the NextAuth.js docs for the provider you want to use. Example:
*
* @see https://next-auth.js.org/providers/github
*/
],
};
/**
* Wrapper for `getServerSession` so that you don't need to import the `authOptions` in every file.
*
* @see https://next-auth.js.org/configuration/nextjs
*/
export const getServerAuthSession = () => getServerSession(authOptions);
/**
* Get the current user from the session. This is a convenience function so that you don't need to import the `getServerSession` and `authOptions` in every file.
*
* @returns The user object or `null` if the user is not authenticated.
*/
export const getUser = async () => {
const session = await getServerAuthSession();
return session?.user ?? null;
};
| alifarooq9/rapidlaunch/starterkits/saas/src/server/auth.ts | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/server/auth.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 2299
} | 20 |
{
"extends": ["next/babel","next/core-web-vitals"]
} | horizon-ui/shadcn-nextjs-boilerplate/.eslintrc | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/.eslintrc",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 24
} | 21 |
import { getUser } from '@/utils/supabase/queries';
import { redirect } from 'next/navigation';
import { createClient } from '@/utils/supabase/server';
export default async function Dashboard() {
const supabase = createClient();
const [user] = await Promise.all([getUser(supabase)]);
if (!user) {
return redirect('/dashboard/signin');
} else {
redirect('/dashboard/main');
}
}
| horizon-ui/shadcn-nextjs-boilerplate/app/page.tsx | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/app/page.tsx",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 128
} | 22 |
'use client';
import { Button } from '../ui/button';
import Footer from '@/components/footer/FooterAuthDefault';
import { useTheme } from 'next-themes';
import { PropsWithChildren } from 'react';
import { FaChevronLeft } from 'react-icons/fa6';
import { HiBolt } from 'react-icons/hi2';
import { IoMoon, IoSunny } from 'react-icons/io5';
interface DefaultAuthLayoutProps extends PropsWithChildren {
children: JSX.Element;
viewProp: any;
}
export default function DefaultAuthLayout(props: DefaultAuthLayoutProps) {
const { children } = props;
const { theme, setTheme } = useTheme();
return (
<div className="relative h-max dark:bg-zinc-950">
<div className="mx-auto flex w-full flex-col justify-center px-5 pt-0 md:h-[unset] md:max-w-[66%] lg:h-[100vh] lg:max-w-[66%] lg:px-6 xl:pl-0 ">
<a className="mt-10 w-fit text-zinc-950 dark:text-white" href="/">
<div className="flex w-fit items-center lg:pl-0 lg:pt-0 xl:pt-0">
<FaChevronLeft className="mr-3 h-[13px] w-[8px] text-zinc-950 dark:text-white" />
<p className="ml-0 text-sm text-zinc-950 dark:text-white">
Back to the website
</p>
</div>
</a>
{children}
<div className="absolute right-0 hidden h-full min-h-[100vh] xl:block xl:w-[50vw] 2xl:w-[44vw]">
<div className="absolute flex h-full w-full flex-col items-end justify-center bg-zinc-950 dark:bg-zinc-900">
<div
className={`mb-[160px] mt-8 flex w-full items-center justify-center `}
>
<div className="me-2 flex h-[76px] w-[76px] items-center justify-center rounded-md bg-white text-zinc-950 dark:text-zinc-900">
<HiBolt className="h-9 w-9" />
</div>
<h5 className="text-4xl font-bold leading-5 text-white">
Horizon AI
</h5>
</div>
<div
className={`flex w-full flex-col items-center justify-center text-2xl font-bold text-white`}
>
<h4 className="mb-5 flex w-[600px] items-center justify-center rounded-md text-center text-2xl font-bold">
This library has saved me countless hours of work and helped me
deliver stunning designs to my clients faster than ever before.
</h4>
<h5 className="text-xl font-medium leading-5 text-zinc-300">
Sofia Davis - CTO Horizon AI
</h5>
</div>
</div>
</div>
<Footer />
</div>
<Button
className="absolute bottom-10 right-10 flex min-h-10 min-w-10 cursor-pointer rounded-full bg-zinc-950 p-0 text-xl text-white hover:bg-zinc-950 dark:bg-white dark:text-zinc-950 hover:dark:bg-white xl:bg-white xl:text-zinc-950 xl:hover:bg-white xl:dark:text-zinc-900"
onClick={() => setTheme(theme === 'dark' ? 'light' : 'dark')}
>
{theme === 'light' ? (
<IoMoon className="h-4 w-4" />
) : (
<IoSunny className="h-4 w-4" />
)}
</Button>
</div>
);
}
| horizon-ui/shadcn-nextjs-boilerplate/components/auth/index.tsx | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/components/auth/index.tsx",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 1480
} | 23 |
'use client';
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
import { Button } from '@/components/ui/button';
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuTrigger
} from '@/components/ui/dropdown-menu';
import { OpenContext, UserContext } from '@/contexts/layout';
import { getRedirectMethod } from '@/utils/auth-helpers/settings';
import { useTheme } from 'next-themes';
import { useRouter } from 'next/navigation';
import React, { useContext } from 'react';
import { FiAlignJustify } from 'react-icons/fi';
import {
HiOutlineMoon,
HiOutlineSun,
HiOutlineInformationCircle,
HiOutlineArrowRightOnRectangle
} from 'react-icons/hi2';
import { createClient } from '@/utils/supabase/client';
const supabase = createClient();
export default function HeaderLinks(props: { [x: string]: any }) {
const { open, setOpen } = useContext(OpenContext);
const user = useContext(UserContext);
const { theme, setTheme } = useTheme();
const router = getRedirectMethod() === 'client' ? useRouter() : null;
const onOpen = () => {
setOpen(false);
};
const handleSignOut = async (e) => {
e.preventDefault();
supabase.auth.signOut();
router.push('/dashboard/signin');
};
return (
<div className="relative flex min-w-max max-w-max flex-grow items-center justify-around gap-1 rounded-lg md:px-2 md:py-2 md:pl-3 xl:gap-2">
<Button
variant="outline"
className="flex h-9 min-w-9 cursor-pointer rounded-full border-zinc-200 p-0 text-xl text-zinc-950 dark:border-zinc-800 dark:text-white md:min-h-10 md:min-w-10 xl:hidden"
onClick={onOpen}
>
<FiAlignJustify className="h-4 w-4" />
</Button>
<Button
variant="outline"
className="flex h-9 min-w-9 cursor-pointer rounded-full border-zinc-200 p-0 text-xl text-zinc-950 dark:border-zinc-800 dark:text-white md:min-h-10 md:min-w-10"
onClick={() => setTheme(theme === 'dark' ? 'light' : 'dark')}
>
{theme === 'light' ? (
<HiOutlineMoon className="h-4 w-4 stroke-2" />
) : (
<HiOutlineSun className="h-5 w-5 stroke-2" />
)}
</Button>
{/* Dropdown Menu */}
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
variant="outline"
className="flex h-9 min-w-9 cursor-pointer rounded-full border-zinc-200 p-0 text-xl text-zinc-950 dark:border-zinc-800 dark:text-white md:min-h-10 md:min-w-10"
>
<HiOutlineInformationCircle className="h-[20px] w-[20px] text-zinc-950 dark:text-white" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-56 p-2">
<a
target="blank"
href="https://horizon-ui.com/boilerplate-shadcn#pricing"
className="w-full"
// className="flex h-[44px] w-full min-w-[44px] cursor-pointer items-center rounded-lg border border-zinc-200 bg-transparent text-center text-sm font-medium text-zinc-950 duration-100 placeholder:text-zinc-950 hover:bg-gray-100 focus:bg-zinc-200 active:bg-zinc-200 dark:border-white/10 dark:bg-zinc-950 dark:text-white dark:hover:bg-white/10 dark:focus:bg-white/20 dark:active:bg-white/20"
>
<Button variant="outline" className="mb-2 w-full">
Pricing
</Button>
</a>
<a target="blank" href="mailto:[email protected]">
<Button variant="outline" className="mb-2 w-full">
Help & Support
</Button>
</a>
<a target="blank" href="/#faqs">
<Button variant="outline" className="w-full">
FAQs & More
</Button>
</a>
</DropdownMenuContent>
</DropdownMenu>
<Button
onClick={(e) => handleSignOut(e)}
variant="outline"
className="flex h-9 min-w-9 cursor-pointer rounded-full border-zinc-200 p-0 text-xl text-zinc-950 dark:border-zinc-800 dark:text-white md:min-h-10 md:min-w-10"
>
<HiOutlineArrowRightOnRectangle className="h-4 w-4 stroke-2 text-zinc-950 dark:text-white" />
</Button>
<a className="w-full" href="/dashboard/settings">
<Avatar className="h-9 min-w-9 md:min-h-10 md:min-w-10">
<AvatarImage src={user?.user_metadata.avatar_url} />
<AvatarFallback className="font-bold">
{user?.user_metadata.full_name
? `${user?.user_metadata.full_name[0]}`
: `${user?.email[0].toUpperCase()}`}
</AvatarFallback>
</Avatar>
</a>
</div>
);
}
| horizon-ui/shadcn-nextjs-boilerplate/components/navbar/NavbarLinksAdmin.tsx | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/components/navbar/NavbarLinksAdmin.tsx",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 2068
} | 24 |
export type Json =
| string
| number
| boolean
| null
| { [key: string]: Json | undefined }
| Json[];
export interface Database {
public: {
Tables: {
customers: {
Row: {
id: string;
stripe_customer_id: string | null;
};
Insert: {
id: string;
stripe_customer_id?: string | null;
};
Update: {
id?: string;
stripe_customer_id?: string | null;
};
Relationships: [
{
foreignKeyName: 'customers_id_fkey';
columns: ['id'];
referencedRelation: 'users';
referencedColumns: ['id'];
}
];
};
prices: {
Row: {
active: boolean | null;
currency: string | null;
description: string | null;
id: string;
interval: Database['public']['Enums']['pricing_plan_interval'] | null;
interval_count: number | null;
metadata: Json | null;
product_id: string | null;
trial_period_days: number | null;
type: Database['public']['Enums']['pricing_type'] | null;
unit_amount: number | null;
};
Insert: {
active?: boolean | null;
currency?: string | null;
description?: string | null;
id: string;
interval?:
| Database['public']['Enums']['pricing_plan_interval']
| null;
interval_count?: number | null;
metadata?: Json | null;
product_id?: string | null;
trial_period_days?: number | null;
type?: Database['public']['Enums']['pricing_type'] | null;
unit_amount?: number | null;
};
Update: {
active?: boolean | null;
currency?: string | null;
description?: string | null;
id?: string;
interval?:
| Database['public']['Enums']['pricing_plan_interval']
| null;
interval_count?: number | null;
metadata?: Json | null;
product_id?: string | null;
trial_period_days?: number | null;
type?: Database['public']['Enums']['pricing_type'] | null;
unit_amount?: number | null;
};
Relationships: [
{
foreignKeyName: 'prices_product_id_fkey';
columns: ['product_id'];
referencedRelation: 'products';
referencedColumns: ['id'];
}
];
};
products: {
Row: {
active: boolean | null;
description: string | null;
id: string;
image: string | null;
metadata: Json | null;
name: string | null;
};
Insert: {
active?: boolean | null;
description?: string | null;
id: string;
image?: string | null;
metadata?: Json | null;
name?: string | null;
};
Update: {
active?: boolean | null;
description?: string | null;
id?: string;
image?: string | null;
metadata?: Json | null;
name?: string | null;
};
Relationships: [];
};
subscriptions: {
Row: {
cancel_at: string | null;
cancel_at_period_end: boolean | null;
canceled_at: string | null;
created: string;
current_period_end: string;
current_period_start: string;
ended_at: string | null;
id: string;
metadata: Json | null;
price_id: string | null;
quantity: number | null;
status: Database['public']['Enums']['subscription_status'] | null;
trial_end: string | null;
trial_start: string | null;
user_id: string;
};
Insert: {
cancel_at?: string | null;
cancel_at_period_end?: boolean | null;
canceled_at?: string | null;
created?: string;
current_period_end?: string;
current_period_start?: string;
ended_at?: string | null;
id: string;
metadata?: Json | null;
price_id?: string | null;
quantity?: number | null;
status?: Database['public']['Enums']['subscription_status'] | null;
trial_end?: string | null;
trial_start?: string | null;
user_id: string;
};
Update: {
cancel_at?: string | null;
cancel_at_period_end?: boolean | null;
canceled_at?: string | null;
created?: string;
current_period_end?: string;
current_period_start?: string;
ended_at?: string | null;
id?: string;
metadata?: Json | null;
price_id?: string | null;
quantity?: number | null;
status?: Database['public']['Enums']['subscription_status'] | null;
trial_end?: string | null;
trial_start?: string | null;
user_id?: string;
};
Relationships: [
{
foreignKeyName: 'subscriptions_price_id_fkey';
columns: ['price_id'];
referencedRelation: 'prices';
referencedColumns: ['id'];
},
{
foreignKeyName: 'subscriptions_user_id_fkey';
columns: ['user_id'];
referencedRelation: 'users';
referencedColumns: ['id'];
}
];
};
users: {
Row: {
avatar_url: string | null;
billing_address: Json | null;
full_name: string | null;
id: string;
payment_method: Json | null;
};
Insert: {
avatar_url?: string | null;
billing_address?: Json | null;
full_name?: string | null;
id: string;
payment_method?: Json | null;
};
Update: {
avatar_url?: string | null;
billing_address?: Json | null;
full_name?: string | null;
id?: string;
payment_method?: Json | null;
};
Relationships: [
{
foreignKeyName: 'users_id_fkey';
columns: ['id'];
referencedRelation: 'users';
referencedColumns: ['id'];
}
];
};
};
Views: {
[_ in never]: never;
};
Functions: {
[_ in never]: never;
};
Enums: {
pricing_plan_interval: 'day' | 'week' | 'month' | 'year';
pricing_type: 'one_time' | 'recurring';
subscription_status:
| 'trialing'
| 'active'
| 'canceled'
| 'incomplete'
| 'incomplete_expired'
| 'past_due'
| 'unpaid'
| 'paused';
};
CompositeTypes: {
[_ in never]: never;
};
};
}
export interface DatabaseTTS {
public: {
Tables: {
customers: {
Row: {
id: string;
stripe_customer_id: string | null;
};
Insert: {
id: string;
stripe_customer_id?: string | null;
};
Update: {
id?: string;
stripe_customer_id?: string | null;
};
Relationships: [
{
foreignKeyName: 'customers_id_fkey';
columns: ['id'];
referencedRelation: 'users';
referencedColumns: ['id'];
}
];
};
prices: {
Row: {
active: boolean | null;
currency: string | null;
description: string | null;
id: string;
interval: Database['public']['Enums']['pricing_plan_interval'] | null;
interval_count: number | null;
metadata: Json | null;
product_id: string | null;
trial_period_days: number | null;
type: Database['public']['Enums']['pricing_type'] | null;
unit_amount: number | null;
};
Insert: {
active?: boolean | null;
currency?: string | null;
description?: string | null;
id: string;
interval?:
| Database['public']['Enums']['pricing_plan_interval']
| null;
interval_count?: number | null;
metadata?: Json | null;
product_id?: string | null;
trial_period_days?: number | null;
type?: Database['public']['Enums']['pricing_type'] | null;
unit_amount?: number | null;
};
Update: {
active?: boolean | null;
currency?: string | null;
description?: string | null;
id?: string;
interval?:
| Database['public']['Enums']['pricing_plan_interval']
| null;
interval_count?: number | null;
metadata?: Json | null;
product_id?: string | null;
trial_period_days?: number | null;
type?: Database['public']['Enums']['pricing_type'] | null;
unit_amount?: number | null;
};
Relationships: [
{
foreignKeyName: 'prices_product_id_fkey';
columns: ['product_id'];
referencedRelation: 'products';
referencedColumns: ['id'];
}
];
};
products: {
Row: {
active: boolean | null;
description: string | null;
id: string;
image: string | null;
metadata: Json | null;
name: string | null;
};
Insert: {
active?: boolean | null;
description?: string | null;
id: string;
image?: string | null;
metadata?: Json | null;
name?: string | null;
};
Update: {
active?: boolean | null;
description?: string | null;
id?: string;
image?: string | null;
metadata?: Json | null;
name?: string | null;
};
Relationships: [];
};
subscriptions: {
Row: {
cancel_at: string | null;
cancel_at_period_end: boolean | null;
canceled_at: string | null;
created: string;
current_period_end: string;
current_period_start: string;
ended_at: string | null;
id: string;
metadata: Json | null;
price_id: string | null;
quantity: number | null;
status: Database['public']['Enums']['subscription_status'] | null;
trial_end: string | null;
trial_start: string | null;
user_id: string;
};
Insert: {
cancel_at?: string | null;
cancel_at_period_end?: boolean | null;
canceled_at?: string | null;
created?: string;
current_period_end?: string;
current_period_start?: string;
ended_at?: string | null;
id: string;
metadata?: Json | null;
price_id?: string | null;
quantity?: number | null;
status?: Database['public']['Enums']['subscription_status'] | null;
trial_end?: string | null;
trial_start?: string | null;
user_id: string;
};
Update: {
cancel_at?: string | null;
cancel_at_period_end?: boolean | null;
canceled_at?: string | null;
created?: string;
current_period_end?: string;
current_period_start?: string;
ended_at?: string | null;
id?: string;
metadata?: Json | null;
price_id?: string | null;
quantity?: number | null;
status?: Database['public']['Enums']['subscription_status'] | null;
trial_end?: string | null;
trial_start?: string | null;
user_id?: string;
};
Relationships: [
{
foreignKeyName: 'subscriptions_price_id_fkey';
columns: ['price_id'];
referencedRelation: 'prices';
referencedColumns: ['id'];
},
{
foreignKeyName: 'subscriptions_user_id_fkey';
columns: ['user_id'];
referencedRelation: 'users';
referencedColumns: ['id'];
}
];
};
users: {
Row: {
avatar_url: string | null;
billing_address: Json | null;
full_name: string | null;
id: string;
payment_method: Json | null;
};
Insert: {
avatar_url?: string | null;
billing_address?: Json | null;
full_name?: string | null;
id: string;
payment_method?: Json | null;
};
Update: {
avatar_url?: string | null;
billing_address?: Json | null;
full_name?: string | null;
id?: string;
payment_method?: Json | null;
};
Relationships: [
{
foreignKeyName: 'users_id_fkey';
columns: ['id'];
referencedRelation: 'users';
referencedColumns: ['id'];
}
];
};
};
Views: {
[_ in never]: never;
};
Functions: {
[_ in never]: never;
};
Enums: {
pricing_plan_interval: 'day' | 'week' | 'month' | 'year';
pricing_type: 'one_time' | 'recurring';
subscription_status:
| 'trialing'
| 'active'
| 'canceled'
| 'incomplete'
| 'incomplete_expired'
| 'past_due'
| 'unpaid'
| 'paused';
};
CompositeTypes: {
[_ in never]: never;
};
};
}
export type Tables<
PublicTableNameOrOptions extends
| keyof (Database['public']['Tables'] & Database['public']['Views'])
| { schema: keyof Database },
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
? keyof (Database[PublicTableNameOrOptions['schema']]['Tables'] &
Database[PublicTableNameOrOptions['schema']]['Views'])
: never = never
> = PublicTableNameOrOptions extends { schema: keyof Database }
? (Database[PublicTableNameOrOptions['schema']]['Tables'] &
Database[PublicTableNameOrOptions['schema']]['Views'])[TableName] extends {
Row: infer R;
}
? R
: never
: PublicTableNameOrOptions extends keyof (Database['public']['Tables'] &
Database['public']['Views'])
? (Database['public']['Tables'] &
Database['public']['Views'])[PublicTableNameOrOptions] extends {
Row: infer R;
}
? R
: never
: never;
export type TablesInsert<
PublicTableNameOrOptions extends
| keyof Database['public']['Tables']
| { schema: keyof Database },
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
? keyof Database[PublicTableNameOrOptions['schema']]['Tables']
: never = never
> = PublicTableNameOrOptions extends { schema: keyof Database }
? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
Insert: infer I;
}
? I
: never
: PublicTableNameOrOptions extends keyof Database['public']['Tables']
? Database['public']['Tables'][PublicTableNameOrOptions] extends {
Insert: infer I;
}
? I
: never
: never;
export type TablesUpdate<
PublicTableNameOrOptions extends
| keyof Database['public']['Tables']
| { schema: keyof Database },
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
? keyof Database[PublicTableNameOrOptions['schema']]['Tables']
: never = never
> = PublicTableNameOrOptions extends { schema: keyof Database }
? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
Update: infer U;
}
? U
: never
: PublicTableNameOrOptions extends keyof Database['public']['Tables']
? Database['public']['Tables'][PublicTableNameOrOptions] extends {
Update: infer U;
}
? U
: never
: never;
export type Enums<
PublicEnumNameOrOptions extends
| keyof Database['public']['Enums']
| { schema: keyof Database },
EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database }
? keyof Database[PublicEnumNameOrOptions['schema']]['Enums']
: never = never
> = PublicEnumNameOrOptions extends { schema: keyof Database }
? Database[PublicEnumNameOrOptions['schema']]['Enums'][EnumName]
: PublicEnumNameOrOptions extends keyof Database['public']['Enums']
? Database['public']['Enums'][PublicEnumNameOrOptions]
: never;
| horizon-ui/shadcn-nextjs-boilerplate/types/types_db.ts | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/types/types_db.ts",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 7979
} | 25 |
import { createServerClient } from "@supabase/ssr";
import { type NextRequest, NextResponse } from "next/server";
export const updateSession = async (request: NextRequest) => {
// This `try/catch` block is only here for the interactive tutorial.
// Feel free to remove once you have Supabase connected.
try {
// Create an unmodified response
let response = NextResponse.next({
request: {
headers: request.headers,
},
});
const supabase = createServerClient(
process.env.NEXT_PUBLIC_SUPABASE_URL!,
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
{
cookies: {
getAll() {
return request.cookies.getAll();
},
setAll(cookiesToSet) {
cookiesToSet.forEach(({ name, value }) =>
request.cookies.set(name, value),
);
response = NextResponse.next({
request,
});
cookiesToSet.forEach(({ name, value, options }) =>
response.cookies.set(name, value, options),
);
},
},
},
);
// This will refresh session if expired - required for Server Components
// https://supabase.com/docs/guides/auth/server-side/nextjs
const user = await supabase.auth.getUser();
// protected routes
if (request.nextUrl.pathname.startsWith("/protected") && user.error) {
return NextResponse.redirect(new URL("/dashboard/sign-in", request.url));
}
return response;
} catch (e) {
// If you are here, a Supabase client could not be created!
// This is likely because you have not set up environment variables.
// Check out http://localhost:3000 for Next Steps.
return NextResponse.next({
request: {
headers: request.headers,
},
});
}
}; | horizon-ui/shadcn-nextjs-boilerplate/utils/supabase/middleware.ts | {
"file_path": "horizon-ui/shadcn-nextjs-boilerplate/utils/supabase/middleware.ts",
"repo_id": "horizon-ui/shadcn-nextjs-boilerplate",
"token_count": 736
} | 26 |
/// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
| ixartz/SaaS-Boilerplate/next-env.d.ts | {
"file_path": "ixartz/SaaS-Boilerplate/next-env.d.ts",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 65
} | 27 |
import { SignUp } from '@clerk/nextjs';
import { getTranslations } from 'next-intl/server';
import { getI18nPath } from '@/utils/Helpers';
export async function generateMetadata(props: { params: { locale: string } }) {
const t = await getTranslations({
locale: props.params.locale,
namespace: 'SignUp',
});
return {
title: t('meta_title'),
description: t('meta_description'),
};
}
const SignUpPage = (props: { params: { locale: string } }) => (
<SignUp path={getI18nPath('/sign-up', props.params.locale)} />
);
export default SignUpPage;
| ixartz/SaaS-Boilerplate/src/app/[locale]/(auth)/(center)/sign-up/[[...sign-up]]/page.tsx | {
"file_path": "ixartz/SaaS-Boilerplate/src/app/[locale]/(auth)/(center)/sign-up/[[...sign-up]]/page.tsx",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 199
} | 28 |
'use client';
import { useLocale } from 'next-intl';
import { Button } from '@/components/ui/button';
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuRadioGroup,
DropdownMenuRadioItem,
DropdownMenuTrigger,
} from '@/components/ui/dropdown-menu';
import { usePathname, useRouter } from '@/libs/i18nNavigation';
import { AppConfig } from '@/utils/AppConfig';
export const LocaleSwitcher = () => {
const router = useRouter();
const pathname = usePathname();
const locale = useLocale();
const handleChange = (value: string) => {
router.push(pathname, { locale: value });
router.refresh();
};
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button className="p-2 focus-visible:ring-offset-0" variant="ghost" aria-label="lang-switcher">
<svg
xmlns="http://www.w3.org/2000/svg"
className="size-6 stroke-current stroke-2"
fill="none"
strokeLinecap="round"
strokeLinejoin="round"
viewBox="0 0 24 24"
>
<path stroke="none" d="M0 0h24v24H0z" />
<path d="M3 12a9 9 0 1 0 18 0 9 9 0 0 0-18 0M3.6 9h16.8M3.6 15h16.8" />
<path d="M11.5 3a17 17 0 0 0 0 18M12.5 3a17 17 0 0 1 0 18" />
</svg>
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent>
<DropdownMenuRadioGroup value={locale} onValueChange={handleChange}>
{AppConfig.locales.map(elt => (
<DropdownMenuRadioItem key={elt.id} value={elt.id}>
{elt.name}
</DropdownMenuRadioItem>
))}
</DropdownMenuRadioGroup>
</DropdownMenuContent>
</DropdownMenu>
);
};
| ixartz/SaaS-Boilerplate/src/components/LocaleSwitcher.tsx | {
"file_path": "ixartz/SaaS-Boilerplate/src/components/LocaleSwitcher.tsx",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 780
} | 29 |
import { useTranslations } from 'next-intl';
import {
Tooltip,
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from '@/components/ui/tooltip';
export const ProtectFallback = (props: { trigger: React.ReactNode }) => {
const t = useTranslations('ProtectFallback');
return (
<TooltipProvider delayDuration={0}>
<Tooltip>
<TooltipTrigger asChild>{props.trigger}</TooltipTrigger>
<TooltipContent align="center">
<p>{t('not_enough_permission')}</p>
</TooltipContent>
</Tooltip>
</TooltipProvider>
);
};
| ixartz/SaaS-Boilerplate/src/features/auth/ProtectFallback.tsx | {
"file_path": "ixartz/SaaS-Boilerplate/src/features/auth/ProtectFallback.tsx",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 225
} | 30 |
export const StickyBanner = (props: { children: React.ReactNode }) => (
<div className="sticky top-0 z-50 bg-primary p-4 text-center text-lg font-semibold text-primary-foreground [&_a:hover]:text-indigo-500 [&_a]:text-fuchsia-500">
{props.children}
</div>
);
| ixartz/SaaS-Boilerplate/src/features/landing/StickyBanner.tsx | {
"file_path": "ixartz/SaaS-Boilerplate/src/features/landing/StickyBanner.tsx",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 104
} | 31 |
import { useTranslations } from 'next-intl';
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from '@/components/ui/accordion';
import { Section } from '@/features/landing/Section';
export const FAQ = () => {
const t = useTranslations('FAQ');
return (
<Section>
<Accordion type="multiple" className="w-full">
<AccordionItem value="item-1">
<AccordionTrigger>{t('question')}</AccordionTrigger>
<AccordionContent>{t('answer')}</AccordionContent>
</AccordionItem>
<AccordionItem value="item-2">
<AccordionTrigger>{t('question')}</AccordionTrigger>
<AccordionContent>{t('answer')}</AccordionContent>
</AccordionItem>
<AccordionItem value="item-3">
<AccordionTrigger>{t('question')}</AccordionTrigger>
<AccordionContent>{t('answer')}</AccordionContent>
</AccordionItem>
<AccordionItem value="item-4">
<AccordionTrigger>{t('question')}</AccordionTrigger>
<AccordionContent>{t('answer')}</AccordionContent>
</AccordionItem>
<AccordionItem value="item-5">
<AccordionTrigger>{t('question')}</AccordionTrigger>
<AccordionContent>{t('answer')}</AccordionContent>
</AccordionItem>
<AccordionItem value="item-6">
<AccordionTrigger>{t('question')}</AccordionTrigger>
<AccordionContent>{t('answer')}</AccordionContent>
</AccordionItem>
</Accordion>
</Section>
);
};
| ixartz/SaaS-Boilerplate/src/templates/FAQ.tsx | {
"file_path": "ixartz/SaaS-Boilerplate/src/templates/FAQ.tsx",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 681
} | 32 |
import { expect, test } from '@playwright/test';
test.describe('I18n', () => {
test.describe('Language Switching', () => {
test('should switch language from English to French using dropdown and verify text on the homepage', async ({ page }) => {
await page.goto('/');
await expect(page.getByText('The perfect SaaS template to build')).toBeVisible();
await page.getByRole('button', { name: 'lang-switcher' }).click();
await page.getByText('Francais').click();
await expect(page.getByText('Le parfait SaaS template pour construire')).toBeVisible();
});
test('should switch language from English to French using URL and verify text on the sign-in page', async ({ page }) => {
await page.goto('/sign-in');
await expect(page.getByText('Email address')).toBeVisible();
await page.goto('/fr/sign-in');
await expect(page.getByText('Adresse e-mail')).toBeVisible();
});
});
});
| ixartz/SaaS-Boilerplate/tests/e2e/I18n.e2e.ts | {
"file_path": "ixartz/SaaS-Boilerplate/tests/e2e/I18n.e2e.ts",
"repo_id": "ixartz/SaaS-Boilerplate",
"token_count": 330
} | 33 |
import { eventHandler, setResponseHeader, defaultContentType } from 'h3';
import { renderToString, renderToStaticMarkup } from 'react-dom/server';
import { createElement } from 'react';
import Diff from '../../../lib/SvgPreview/Diff.tsx';
import iconNodes from '../../../data/iconNodes';
import createLucideIcon from 'lucide-react/src/createLucideIcon';
export default eventHandler((event) => {
const { params } = event.context;
const pathData = params.data.split('/');
const data = pathData.at(-1).slice(0, -4);
const [name] = pathData;
const newSrc = Buffer.from(data, 'base64')
.toString('utf8')
.replaceAll('\n', '')
.replace(/<svg[^>]*>|<\/svg>/g, '');
const children = [];
const oldSrc = iconNodes[name]
? renderToStaticMarkup(createElement(createLucideIcon(name, iconNodes[name])))
.replaceAll('\n', '')
.replace(/<svg[^>]*>|<\/svg>/g, '')
: '';
const svg = Buffer.from(
// We can't use jsx here, is not supported here by nitro.
renderToString(createElement(Diff, { oldSrc, newSrc, showGrid: true }, children)),
).toString('utf8');
defaultContentType(event, 'image/svg+xml');
setResponseHeader(event, 'Cache-Control', 'public,max-age=31536000');
return svg;
});
| lucide-icons/lucide/docs/.vitepress/api/gh-icon/diff/[...data].get.ts | {
"file_path": "lucide-icons/lucide/docs/.vitepress/api/gh-icon/diff/[...data].get.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 458
} | 34 |
import React from 'react';
import Backdrop from './Backdrop.tsx';
import { darkModeCss, Grid } from './index.tsx';
const SvgPreview = React.forwardRef<
SVGSVGElement,
{
oldSrc: string;
newSrc: string;
} & React.SVGProps<SVGSVGElement>
>(({ oldSrc, newSrc, children, ...props }, ref) => {
return (
<svg
ref={ref}
xmlns="http://www.w3.org/2000/svg"
width={24}
height={24}
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth={2}
strokeLinecap="round"
strokeLinejoin="round"
{...props}
>
<style>{darkModeCss}</style>
<Grid
strokeWidth={0.1}
stroke="#777"
strokeOpacity={0.3}
radius={1}
/>
<mask
id="gray"
maskUnits="userSpaceOnUse"
>
<rect
x="0"
y="0"
width="24"
height="24"
fill="#000"
stroke="none"
/>
<g
stroke="#fff"
dangerouslySetInnerHTML={{ __html: oldSrc }}
/>
</mask>
<Backdrop
src=""
outline={false}
backdropString={`<g mask="url('#gray')">${newSrc}</g>`}
color="#777"
/>
<Backdrop
src={oldSrc}
backdropString={newSrc}
color="lime"
/>
<Backdrop
src={newSrc}
backdropString={oldSrc}
color="red"
/>
{children}
</svg>
);
});
export default SvgPreview;
| lucide-icons/lucide/docs/.vitepress/lib/SvgPreview/Diff.tsx | {
"file_path": "lucide-icons/lucide/docs/.vitepress/lib/SvgPreview/Diff.tsx",
"repo_id": "lucide-icons/lucide",
"token_count": 797
} | 35 |
export type IconNode = [elementName: string, attrs: Record<string, string>][];
export type IconNodeWithKeys = [elementName: string, attrs: Record<string, string>, key: string][];
export interface IconMetaData {
tags: string[];
categories: string[];
contributors: string[];
aliases?: string[];
}
export type ExternalLibs = 'lab';
export interface IconEntity extends IconMetaData {
name: string;
iconNode: IconNode;
externalLibrary?: ExternalLibs;
createdRelease?: Release;
changedRelease?: Release;
}
export interface Category {
name: string;
title: string;
icon?: string;
iconCount: number;
icons?: IconEntity[];
}
interface Shield {
alt: string;
src: string;
href: string;
}
export interface PackageItem {
name: string;
description: string;
icon: string;
iconDark: string;
shields: Shield[];
source: string;
documentation: string;
order?: number;
private?: boolean;
flutter?: object;
}
export interface Release {
version: string;
date: string;
}
interface ShowcaseItemImage {
light: string;
dark: string;
}
export interface ShowcaseItem {
name: string;
url: string;
image: ShowcaseItemImage;
}
| lucide-icons/lucide/docs/.vitepress/theme/types.ts | {
"file_path": "lucide-icons/lucide/docs/.vitepress/theme/types.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 358
} | 36 |
import App from './App.js?raw'
import styles from '../../../basics/examples/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/advanced/examples/global-styling-css-example/files.ts | {
"file_path": "lucide-icons/lucide/docs/guide/advanced/examples/global-styling-css-example/files.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 142
} | 37 |
import App from './App.js?raw'
import styles from '../styles.css?raw'
const files = {
'App.js': {
code: App,
active: true,
},
'styles.css': {
code:styles,
hidden: true
},
}
export default files
| lucide-icons/lucide/docs/guide/basics/examples/size-icon-example/files.ts | {
"file_path": "lucide-icons/lucide/docs/guide/basics/examples/size-icon-example/files.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 90
} | 38 |
import { getAllCategoryFiles } from '../.vitepress/lib/categories';
import iconMetaData from '../.vitepress/data/iconMetaData';
export default {
async load() {
return {
categories: getAllCategoryFiles(),
iconCategories: Object.fromEntries(
Object.entries(iconMetaData).map(([name, { categories }]) => [name, categories]),
),
};
},
};
| lucide-icons/lucide/docs/icons/categories.data.ts | {
"file_path": "lucide-icons/lucide/docs/icons/categories.data.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 137
} | 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="m3 8 4-4 4 4" />
<path d="M7 4v16" />
<path d="M20 8h-5" />
<path d="M15 10V6.5a2.5 2.5 0 0 1 5 0V10" />
<path d="M15 14h5l-5 6h5" />
</svg>
| lucide-icons/lucide/icons/arrow-up-a-z.svg | {
"file_path": "lucide-icons/lucide/icons/arrow-up-a-z.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 182
} | 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="M4 9V5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4" />
<path d="M8 8v1" />
<path d="M12 8v1" />
<path d="M16 8v1" />
<rect width="20" height="12" x="2" y="9" rx="2" />
<circle cx="8" cy="15" r="2" />
<circle cx="16" cy="15" r="2" />
</svg>
| lucide-icons/lucide/icons/boom-box.svg | {
"file_path": "lucide-icons/lucide/icons/boom-box.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 224
} | 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"
>
<rect x="8" y="8" width="8" height="8" rx="2" />
<path d="M4 10a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2" />
<path d="M14 20a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2" />
</svg>
| lucide-icons/lucide/icons/bring-to-front.svg | {
"file_path": "lucide-icons/lucide/icons/bring-to-front.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 202
} | 42 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M8 6v6" />
<path d="M15 6v6" />
<path d="M2 12h19.6" />
<path d="M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3" />
<circle cx="7" cy="18" r="2" />
<path d="M9 18h5" />
<circle cx="16" cy="18" r="2" />
</svg>
| lucide-icons/lucide/icons/bus.svg | {
"file_path": "lucide-icons/lucide/icons/bus.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 268
} | 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="m3 15 4-8 4 8" />
<path d="M4 13h6" />
<path d="M15 11h4.5a2 2 0 0 1 0 4H15V7h4a2 2 0 0 1 0 4" />
</svg>
| lucide-icons/lucide/icons/case-upper.svg | {
"file_path": "lucide-icons/lucide/icons/case-upper.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 157
} | 44 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M12 16v5" />
<path d="M16 14v7" />
<path d="M20 10v11" />
<path d="m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15" />
<path d="M4 18v3" />
<path d="M8 14v7" />
</svg>
| lucide-icons/lucide/icons/chart-no-axes-combined.svg | {
"file_path": "lucide-icons/lucide/icons/chart-no-axes-combined.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 206
} | 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"
>
<rect x="2" y="6" width="20" height="8" rx="1" />
<path d="M17 14v7" />
<path d="M7 14v7" />
<path d="M17 3v3" />
<path d="M7 3v3" />
<path d="M10 14 2.3 6.3" />
<path d="m14 6 7.7 7.7" />
<path d="m8 6 8 8" />
</svg>
| lucide-icons/lucide/icons/construction.svg | {
"file_path": "lucide-icons/lucide/icons/construction.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 216
} | 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"
>
<line x1="12" x2="18" y1="15" y2="15" />
<rect width="14" height="14" x="8" y="8" rx="2" ry="2" />
<path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" />
</svg>
| lucide-icons/lucide/icons/copy-minus.svg | {
"file_path": "lucide-icons/lucide/icons/copy-minus.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 199
} | 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"
>
<circle cx="12" cy="4" r="2" />
<path d="M10.2 3.2C5.5 4 2 8.1 2 13a2 2 0 0 0 4 0v-1a2 2 0 0 1 4 0v4a2 2 0 0 0 4 0v-4a2 2 0 0 1 4 0v1a2 2 0 0 0 4 0c0-4.9-3.5-9-8.2-9.8" />
<path d="M3.2 14.8a9 9 0 0 0 17.6 0" />
</svg>
| lucide-icons/lucide/icons/dessert.svg | {
"file_path": "lucide-icons/lucide/icons/dessert.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 229
} | 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="M14 9c0 .6-.4 1-1 1H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9c.6 0 1 .4 1 1Z" />
<path d="M18 6h4" />
<path d="M14 4h3a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-3" />
<path d="m5 10-2 8" />
<path d="M12 10v3c0 .6-.4 1-1 1H8" />
<path d="m7 18 2-8" />
<path d="M5 22c-1.7 0-3-1.3-3-3 0-.6.4-1 1-1h7c.6 0 1 .4 1 1v2c0 .6-.4 1-1 1Z" />
</svg>
| lucide-icons/lucide/icons/drill.svg | {
"file_path": "lucide-icons/lucide/icons/drill.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 309
} | 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="M10 12.5 8 15l2 2.5" />
<path d="m14 12.5 2 2.5-2 2.5" />
<path d="M14 2v4a2 2 0 0 0 2 2h4" />
<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z" />
</svg>
| lucide-icons/lucide/icons/file-code.svg | {
"file_path": "lucide-icons/lucide/icons/file-code.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 202
} | 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="14" cy="16" r="2" />
<circle cx="6" cy="18" r="2" />
<path d="M4 12.4V4a2 2 0 0 1 2-2h8.5L20 7.5V20a2 2 0 0 1-2 2h-7.5" />
<path d="M8 18v-7.7L16 9v7" />
</svg>
| lucide-icons/lucide/icons/file-music.svg | {
"file_path": "lucide-icons/lucide/icons/file-music.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 195
} | 51 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4" />
<path d="M14 2v4a2 2 0 0 0 2 2h4" />
<path d="M2 13v-1h6v1" />
<path d="M5 12v6" />
<path d="M4 18h2" />
</svg>
| lucide-icons/lucide/icons/file-type-2.svg | {
"file_path": "lucide-icons/lucide/icons/file-type-2.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 200
} | 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="M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4" />
<path d="M14 13.12c0 2.38 0 6.38-1 8.88" />
<path d="M17.29 21.02c.12-.6.43-2.3.5-3.02" />
<path d="M2 12a10 10 0 0 1 18-6" />
<path d="M2 16h.01" />
<path d="M21.8 16c.2-2 .131-5.354 0-6" />
<path d="M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2" />
<path d="M8.65 22c.21-.66.45-1.32.57-2" />
<path d="M9 6.8a6 6 0 0 1 9 5.2v2" />
</svg>
| lucide-icons/lucide/icons/fingerprint.svg | {
"file_path": "lucide-icons/lucide/icons/fingerprint.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 329
} | 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="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z" />
<line x1="4" x2="4" y1="22" y2="15" />
</svg>
| lucide-icons/lucide/icons/flag.svg | {
"file_path": "lucide-icons/lucide/icons/flag.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 168
} | 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="M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z" />
<path d="M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z" />
<path d="M16 17h4" />
<path d="M4 13h4" />
</svg>
| lucide-icons/lucide/icons/footprints.svg | {
"file_path": "lucide-icons/lucide/icons/footprints.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 292
} | 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="m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9" />
<path d="m18 15 4-4" />
<path d="m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5" />
</svg>
| lucide-icons/lucide/icons/hammer.svg | {
"file_path": "lucide-icons/lucide/icons/hammer.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 247
} | 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="M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z" />
<path d="M21 16v2a4 4 0 0 1-4 4h-5" />
</svg>
| lucide-icons/lucide/icons/headset.svg | {
"file_path": "lucide-icons/lucide/icons/headset.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 217
} | 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="m11 16-5 5" />
<path d="M11 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6.5" />
<path d="M15.765 22a.5.5 0 0 1-.765-.424V13.38a.5.5 0 0 1 .765-.424l5.878 3.674a1 1 0 0 1 0 1.696z" />
<circle cx="9" cy="9" r="2" />
</svg>
| lucide-icons/lucide/icons/image-play.svg | {
"file_path": "lucide-icons/lucide/icons/image-play.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 230
} | 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="M 20 4 A2 2 0 0 1 22 6" />
<path d="M 22 6 L 22 16.41" />
<path d="M 7 16 L 16 16" />
<path d="M 9.69 4 L 20 4" />
<path d="M14 8h.01" />
<path d="M18 8h.01" />
<path d="m2 2 20 20" />
<path d="M20 20H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2" />
<path d="M6 8h.01" />
<path d="M8 12h.01" />
</svg> | lucide-icons/lucide/icons/keyboard-off.svg | {
"file_path": "lucide-icons/lucide/icons/keyboard-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 258
} | 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="M8 20V8c0-2.2 1.8-4 4-4 1.5 0 2.8.8 3.5 2" />
<path d="M6 12h4" />
<path d="M14 12h2v8" />
<path d="M6 20h4" />
<path d="M14 20h4" />
</svg>
| lucide-icons/lucide/icons/ligature.svg | {
"file_path": "lucide-icons/lucide/icons/ligature.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 185
} | 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="M21 6H3" />
<path d="M7 12H3" />
<path d="M7 18H3" />
<path d="M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14" />
<path d="M11 10v4h4" />
</svg>
| lucide-icons/lucide/icons/list-restart.svg | {
"file_path": "lucide-icons/lucide/icons/list-restart.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 204
} | 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="M22 17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9.5C2 7 4 5 6.5 5H18c2.2 0 4 1.8 4 4v8Z" />
<polyline points="15,9 18,9 18,11" />
<path d="M6.5 5C9 5 11 7 11 9.5V17a2 2 0 0 1-2 2" />
<line x1="6" x2="7" y1="10" y2="10" />
</svg>
| lucide-icons/lucide/icons/mailbox.svg | {
"file_path": "lucide-icons/lucide/icons/mailbox.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 228
} | 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="m8 6 4-4 4 4" />
<path d="M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22" />
<path d="m20 22-5-5" />
</svg>
| lucide-icons/lucide/icons/merge.svg | {
"file_path": "lucide-icons/lucide/icons/merge.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 154
} | 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="M18 12h2" />
<path d="M18 16h2" />
<path d="M18 20h2" />
<path d="M18 4h2" />
<path d="M18 8h2" />
<path d="M4 12h2" />
<path d="M4 16h2" />
<path d="M4 20h2" />
<path d="M4 4h2" />
<path d="M4 8h2" />
<path d="M8 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-1.5c-.276 0-.494.227-.562.495a2 2 0 0 1-3.876 0C9.994 2.227 9.776 2 9.5 2z" />
</svg>
| lucide-icons/lucide/icons/microchip.svg | {
"file_path": "lucide-icons/lucide/icons/microchip.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 319
} | 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="M9 18V5l12-2v13" />
<path d="m9 9 12-2" />
<circle cx="6" cy="18" r="3" />
<circle cx="18" cy="16" r="3" />
</svg>
| lucide-icons/lucide/icons/music-4.svg | {
"file_path": "lucide-icons/lucide/icons/music-4.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 158
} | 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="M12 4V2" />
<path d="M5 10v4a7.004 7.004 0 0 0 5.277 6.787c.412.104.802.292 1.102.592L12 22l.621-.621c.3-.3.69-.488 1.102-.592A7.003 7.003 0 0 0 19 14v-4" />
<path d="M12 4C8 4 4.5 6 4 8c-.243.97-.919 1.952-2 3 1.31-.082 1.972-.29 3-1 .54.92.982 1.356 2 2 1.452-.647 1.954-1.098 2.5-2 .595.995 1.151 1.427 2.5 2 1.31-.621 1.862-1.058 2.5-2 .629.977 1.162 1.423 2.5 2 1.209-.548 1.68-.967 2-2 1.032.916 1.683 1.157 3 1-1.297-1.036-1.758-2.03-2-3-.5-2-4-4-8-4Z" />
</svg>
| lucide-icons/lucide/icons/nut.svg | {
"file_path": "lucide-icons/lucide/icons/nut.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 374
} | 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="M8 4.5v5H3m-1-6 6 6m13 0v-3c0-1.16-.84-2-2-2h-7m-9 9v2c0 1.05.95 2 2 2h3" />
<rect width="10" height="7" x="12" y="13.5" ry="2" />
</svg>
| lucide-icons/lucide/icons/picture-in-picture.svg | {
"file_path": "lucide-icons/lucide/icons/picture-in-picture.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 184
} | 67 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M18 8a2 2 0 0 0 0-4 2 2 0 0 0-4 0 2 2 0 0 0-4 0 2 2 0 0 0-4 0 2 2 0 0 0 0 4" />
<path d="M10 22 9 8" />
<path d="m14 22 1-14" />
<path d="M20 8c.5 0 .9.4.8 1l-2.6 12c-.1.5-.7 1-1.2 1H7c-.6 0-1.1-.4-1.2-1L3.2 9c-.1-.6.3-1 .8-1Z" />
</svg>
| lucide-icons/lucide/icons/popcorn.svg | {
"file_path": "lucide-icons/lucide/icons/popcorn.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 247
} | 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="M5 7 3 5" />
<path d="M9 6V3" />
<path d="m13 7 2-2" />
<circle cx="9" cy="13" r="3" />
<path d="M11.83 12H20a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h2.17" />
<path d="M16 16h2" />
</svg>
| lucide-icons/lucide/icons/projector.svg | {
"file_path": "lucide-icons/lucide/icons/projector.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 223
} | 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="M12 12h.01" />
<path d="M7.5 4.2c-.3-.5-.9-.7-1.3-.4C3.9 5.5 2.3 8.1 2 11c-.1.5.4 1 1 1h5c0-1.5.8-2.8 2-3.4-1.1-1.9-2-3.5-2.5-4.4z" />
<path d="M21 12c.6 0 1-.4 1-1-.3-2.9-1.8-5.5-4.1-7.1-.4-.3-1.1-.2-1.3.3-.6.9-1.5 2.5-2.6 4.3 1.2.7 2 2 2 3.5h5z" />
<path d="M7.5 19.8c-.3.5-.1 1.1.4 1.3 2.6 1.2 5.6 1.2 8.2 0 .5-.2.7-.8.4-1.3-.5-.9-1.4-2.5-2.5-4.3-1.2.7-2.8.7-4 0-1.1 1.8-2 3.4-2.5 4.3z" />
</svg>
| lucide-icons/lucide/icons/radiation.svg | {
"file_path": "lucide-icons/lucide/icons/radiation.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 408
} | 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="M17 5c0-1.7-1.3-3-3-3s-3 1.3-3 3c0 .8.3 1.5.8 2H11c-3.9 0-7 3.1-7 7c0 2.2 1.8 4 4 4" />
<path d="M16.8 3.9c.3-.3.6-.5 1-.7 1.5-.6 3.3.1 3.9 1.6.6 1.5-.1 3.3-1.6 3.9l1.6 2.8c.2.3.2.7.2 1-.2.8-.9 1.2-1.7 1.1 0 0-1.6-.3-2.7-.6H17c-1.7 0-3 1.3-3 3" />
<path d="M13.2 18a3 3 0 0 0-2.2-5" />
<path d="M13 22H4a2 2 0 0 1 0-4h12" />
<path d="M16 9h.01" />
</svg>
| lucide-icons/lucide/icons/rat.svg | {
"file_path": "lucide-icons/lucide/icons/rat.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 354
} | 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"
>
<circle cx="12" cy="17" r="1" />
<path d="M21 7v6h-6" />
<path d="M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7" />
</svg>
| lucide-icons/lucide/icons/redo-dot.svg | {
"file_path": "lucide-icons/lucide/icons/redo-dot.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 158
} | 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"
>
<circle cx="12" cy="12" r="3" />
<path d="M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5" />
<path d="M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5" />
<path d="M6 6h.01" />
<path d="M6 18h.01" />
<path d="m15.7 13.4-.9-.3" />
<path d="m9.2 10.9-.9-.3" />
<path d="m10.6 15.7.3-.9" />
<path d="m13.6 15.7-.4-1" />
<path d="m10.8 9.3-.4-1" />
<path d="m8.3 13.6 1-.4" />
<path d="m14.7 10.8 1-.4" />
<path d="m13.4 8.3-.3.9" />
</svg>
| lucide-icons/lucide/icons/server-cog.svg | {
"file_path": "lucide-icons/lucide/icons/server-cog.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 407
} | 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="M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z" />
</svg>
| lucide-icons/lucide/icons/shirt.svg | {
"file_path": "lucide-icons/lucide/icons/shirt.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 216
} | 74 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M2 18h1.4c1.3 0 2.5-.6 3.3-1.7l6.1-8.6c.7-1.1 2-1.7 3.3-1.7H22" />
<path d="m18 2 4 4-4 4" />
<path d="M2 6h1.9c1.5 0 2.9.9 3.6 2.2" />
<path d="M22 18h-5.9c-1.3 0-2.6-.7-3.3-1.8l-.5-.8" />
<path d="m18 14 4 4-4 4" />
</svg>
| lucide-icons/lucide/icons/shuffle.svg | {
"file_path": "lucide-icons/lucide/icons/shuffle.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 256
} | 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="M10 9H4L2 7l2-2h6" />
<path d="M14 5h6l2 2-2 2h-6" />
<path d="M10 22V4a2 2 0 1 1 4 0v18" />
<path d="M8 22h8" />
</svg>
| lucide-icons/lucide/icons/signpost-big.svg | {
"file_path": "lucide-icons/lucide/icons/signpost-big.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 171
} | 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="m8 14-6 6h9v-3" />
<path d="M18.37 3.63 8 14l3 3L21.37 6.63a2.12 2.12 0 1 0-3-3Z" />
</svg>
| lucide-icons/lucide/icons/slice.svg | {
"file_path": "lucide-icons/lucide/icons/slice.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 152
} | 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="M2 13a6 6 0 1 0 12 0 4 4 0 1 0-8 0 2 2 0 0 0 4 0" />
<circle cx="10" cy="13" r="8" />
<path d="M2 21h12c4.4 0 8-3.6 8-8V7a2 2 0 1 0-4 0v6" />
<path d="M18 3 19.1 5.2" />
<path d="M22 3 20.9 5.2" />
</svg>
| lucide-icons/lucide/icons/snail.svg | {
"file_path": "lucide-icons/lucide/icons/snail.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 215
} | 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"
>
<rect width="20" height="20" x="2" y="2" rx="2" />
<circle cx="8" cy="8" r="2" />
<path d="M9.414 9.414 12 12" />
<path d="M14.8 14.8 18 18" />
<circle cx="8" cy="16" r="2" />
<path d="m18 6-8.586 8.586" />
</svg>
| lucide-icons/lucide/icons/square-scissors.svg | {
"file_path": "lucide-icons/lucide/icons/square-scissors.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 203
} | 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="M8.34 8.34 2 9.27l5 4.87L5.82 21 12 17.77 18.18 21l-.59-3.43" />
<path d="M18.42 12.76 22 9.27l-6.91-1L12 2l-1.44 2.91" />
<line x1="2" x2="22" y1="2" y2="22" />
</svg>
| lucide-icons/lucide/icons/star-off.svg | {
"file_path": "lucide-icons/lucide/icons/star-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 197
} | 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="M10.5 17h1.227a2 2 0 0 0 1.345-.52L18 12" />
<path d="m12 13.5 3.75.5" />
<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 19v2" />
<rect x="2" y="8" width="20" height="13" rx="2" />
</svg>
| lucide-icons/lucide/icons/tickets-plane.svg | {
"file_path": "lucide-icons/lucide/icons/tickets-plane.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 241
} | 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"
>
<ellipse cx="12" cy="11" rx="3" ry="2" />
<ellipse cx="12" cy="12.5" rx="10" ry="8.5" />
</svg>
| lucide-icons/lucide/icons/torus.svg | {
"file_path": "lucide-icons/lucide/icons/torus.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 145
} | 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="M8 3.1V7a4 4 0 0 0 8 0V3.1" />
<path d="m9 15-1-1" />
<path d="m15 15 1-1" />
<path d="M9 19c-2.8 0-5-2.2-5-5v-4a8 8 0 0 1 16 0v4c0 2.8-2.2 5-5 5Z" />
<path d="m8 19-2 3" />
<path d="m16 19 2 3" />
</svg>
| lucide-icons/lucide/icons/train-front.svg | {
"file_path": "lucide-icons/lucide/icons/train-front.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 228
} | 83 |
<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 10v.2A3 3 0 0 1 8.9 16H5a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z" />
<path d="M7 16v6" />
<path d="M13 19v3" />
<path d="M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5" />
</svg>
| lucide-icons/lucide/icons/trees.svg | {
"file_path": "lucide-icons/lucide/icons/trees.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 240
} | 84 |
<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 9H4.5a2.5 2.5 0 0 1 0-5H6" />
<path d="M18 9h1.5a2.5 2.5 0 0 0 0-5H18" />
<path d="M4 22h16" />
<path d="M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22" />
<path d="M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22" />
<path d="M18 2H6v7a6 6 0 0 0 12 0V2Z" />
</svg>
| lucide-icons/lucide/icons/trophy.svg | {
"file_path": "lucide-icons/lucide/icons/trophy.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 272
} | 85 |
<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="7" cy="12" r="3" />
<path d="M10 9v6" />
<circle cx="17" cy="12" r="3" />
<path d="M14 7v8" />
<path d="M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1" />
</svg>
| lucide-icons/lucide/icons/whole-word.svg | {
"file_path": "lucide-icons/lucide/icons/whole-word.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 191
} | 86 |
Subsets and Splits