text stringlengths 3 8.33k | repo stringclasses 52
values | path stringlengths 6 141 | language stringclasses 35
values | sha stringlengths 64 64 | chunk_index int32 0 273 | n_tokens int32 1 896 |
|---|---|---|---|---|---|---|
import { env } from '@/env';
import { withCMS } from '@interiorly/cms/next-config';
import { withToolbar } from '@interiorly/feature-flags/lib/toolbar';
import { config, withAnalyzer } from '@interiorly/next-config';
import { withLogtail, withSentry } from '@interiorly/observability/next-config';
import type { NextConf... | interiorly | apps/web/next.config.ts | TypeScript | 8a43e4fcdb864499e2ec80f4f45ee0acc88d5c6b4508750723ffaef5fa71beec | 0 | 247 |
{
"name": "web",
"private": true,
"scripts": {
"dev": "next dev -p 3001 --turbopack",
"build": "next build",
"start": "next start",
"analyze": "ANALYZE=true pnpm build",
"clean": "git clean -xdf .cache .turbo dist node_modules",
"typecheck": "tsc --noEmit --emitDeclarationOnly false"
},
... | interiorly | apps/web/package.json | JSON | c456e3a4e7f6cdb65339a419fd9f29ee3f89efe5e60fcc184166e1877c5bad92 | 0 | 561 |
{
"extends": [
"@interiorly/typescript-config/nextjs.json",
"@interiorly/cms/typescript-config.json"
],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./*"],
"@interiorly/*": ["../../packages/*"]
}
},
"include": [
"next-env.d.ts",
"next.config.ts",
"**/*.t... | interiorly | apps/web/tsconfig.json | JSON | e0b8447087ae8a228f11f91f3ce131b0d9481565fd89515f20d0ec2a7c564af1 | 0 | 144 |
{
"crons": []
}
| interiorly | apps/web/vercel.json | JSON | d4d52e25558e56319226bfaf1658cf45dd98dd318155075101d9936f388aca89 | 0 | 8 |
import '@interiorly/design-system/styles/globals.css';
import './styles/web.css';
import { DesignSystemProvider } from '@interiorly/design-system';
import { fonts } from '@interiorly/design-system/lib/fonts';
import { cn } from '@interiorly/design-system/lib/utils';
import { Toolbar } from '@interiorly/feature-flags/co... | interiorly | apps/web/app/layout.tsx | TypeScript | f8a00aa58cd0e027ea49f3797aae1911804a83bb245f5cb12909482beba4580d | 0 | 217 |
import { env } from '@/env';
import type { MetadataRoute } from 'next';
const protocol = env.VERCEL_PROJECT_PRODUCTION_URL?.startsWith('https')
? 'https'
: 'http';
const url = new URL(`${protocol}://${env.VERCEL_PROJECT_PRODUCTION_URL}`);
export default function robots(): MetadataRoute.Robots {
return {
rul... | interiorly | apps/web/app/robots.ts | TypeScript | 41aa3e3569c007a078a064f76b427a268d3668572523e6826dfb6d9fc95883ea | 0 | 119 |
import fs from 'node:fs';
import { env } from '@/env';
import { blog, legal } from '@interiorly/cms';
import type { MetadataRoute } from 'next';
const appFolders = fs.readdirSync('app', { withFileTypes: true });
const pages = appFolders
.filter((file) => file.isDirectory())
.filter((folder) => !folder.name.startsW... | interiorly | apps/web/app/sitemap.ts | TypeScript | 4e74663796613a047264dac4f5f8f16dec0b06108ac20df135dc3f69f3d004e3 | 0 | 398 |
import { showBetaFeature } from '@interiorly/feature-flags';
import { createMetadata } from '@interiorly/seo/metadata';
import type { Metadata } from 'next';
import { Cases } from './components/cases';
import { CTA } from './components/cta';
import { FAQ } from './components/faq';
import { Features } from './components... | interiorly | apps/web/app/(home)/page.tsx | TypeScript | 65d2fbd8c6a46eeefa34e68de8d4a0170991674cb2126d3f7259d07f5f2b7105 | 0 | 313 |
'use client';
import {
Carousel,
type CarouselApi,
CarouselContent,
CarouselItem,
} from '@interiorly/design-system/components/ui/carousel';
import { useEffect, useState } from 'react';
export const Cases = () => {
const [api, setApi] = useState<CarouselApi>();
const [current, setCurrent] = useState(0);
... | interiorly | apps/web/app/(home)/components/cases.tsx | TypeScript | 9215b3338b75c7521c010a851ff64995f4de0bc30a072a2697012c16d4c93d0d | 0 | 398 |
import { env } from '@/env';
import { Button } from '@interiorly/design-system/components/ui/button';
import { MoveRight, PhoneCall } from 'lucide-react';
import Link from 'next/link';
export const CTA = () => (
<div className="w-full py-20 lg:py-40">
<div className="container mx-auto">
<div className="fle... | interiorly | apps/web/app/(home)/components/cta.tsx | TypeScript | 93310a8d50a7579f1e24d8d4ad89bb11557ced3c9d8fe9ad1e0c5e1cec3bdd49 | 0 | 375 |
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from '@interiorly/design-system/components/ui/accordion';
import { Button } from '@interiorly/design-system/components/ui/button';
import { PhoneCall } from 'lucide-react';
import Link from 'next/link';
export const FAQ = () => (
<div c... | interiorly | apps/web/app/(home)/components/faq.tsx | TypeScript | 54c74fe41a12b4d17791e66ce7dcb6e9441410b2ed8f8fbbb8b463c30f2520c8 | 0 | 498 |
import { User } from 'lucide-react';
export const Features = () => (
<div className="w-full py-20 lg:py-40">
<div className="container mx-auto">
<div className="flex flex-col gap-10">
<div className="flex flex-col items-start gap-4">
<div className="flex flex-col gap-2">
<h2 c... | interiorly | apps/web/app/(home)/components/features.tsx | TypeScript | b362ccc8f5f4bbdf69611e802ad23601c8ce30798bb7a9ef445b3145de9211cb | 0 | 755 |
import { env } from '@/env';
import { blog } from '@interiorly/cms';
import { Feed } from '@interiorly/cms/components/feed';
import { Button } from '@interiorly/design-system/components/ui/button';
import { MoveRight, PhoneCall } from 'lucide-react';
import { draftMode } from 'next/headers';
import Link from 'next/link... | interiorly | apps/web/app/(home)/components/hero.tsx | TypeScript | 0ba77757585239727de5be0d2567e91f4be2027f7b243cc1b60e5510a3819d1f | 0 | 586 |
import { MoveDownLeft, MoveUpRight } from 'lucide-react';
export const Stats = () => (
<div className="w-full py-20 lg:py-40">
<div className="container mx-auto">
<div className="grid grid-cols-1 gap-10 lg:grid-cols-2">
<div className="flex flex-col items-start gap-4">
<div className="fle... | interiorly | apps/web/app/(home)/components/stats.tsx | TypeScript | 0848c5ff19e30a2f022b1e776addbe92c49802da87109b2cdf7c0e73ff8270cf | 0 | 896 |
/h2>
<p className="max-w-xl text-left text-base text-muted-foreground leading-relaxed tracking-tight">
Cost per acquisition
</p>
</div>
</div>
</div>
</div>
</div>
</div>
);
| interiorly | apps/web/app/(home)/components/stats.tsx | TypeScript | a009343fbd268919294b4bb57f70be16409b0e2cfb3f0b0d94f2baa7ca8909fb | 1 | 65 |
'use client';
import {
Avatar,
AvatarFallback,
AvatarImage,
} from '@interiorly/design-system/components/ui/avatar';
import {
Carousel,
type CarouselApi,
CarouselContent,
CarouselItem,
} from '@interiorly/design-system/components/ui/carousel';
import { User } from 'lucide-react';
import { useEffect, useS... | interiorly | apps/web/app/(home)/components/testimonials.tsx | TypeScript | 51167500226a378118db9b5514bedafc885ac6554f37f5de2e78be9fc08fd73c | 0 | 628 |
import { Toolbar } from '@interiorly/cms/components/toolbar';
import type { ReactNode } from 'react';
type BlogLayoutProps = {
children: ReactNode;
};
const BlogLayout = ({ children }: BlogLayoutProps) => (
<>
{children}
<Toolbar />
</>
);
export default BlogLayout;
| interiorly | apps/web/app/blog/layout.tsx | TypeScript | 20637af80043c489f2fd87ac38c954517be00faa3b81869bcfd874c4846ed19a | 0 | 67 |
import { blog } from '@interiorly/cms';
import { Feed } from '@interiorly/cms/components/feed';
import { Image } from '@interiorly/cms/components/image';
import { cn } from '@interiorly/design-system/lib/utils';
import type { Blog, WithContext } from '@interiorly/seo/json-ld';
import { JsonLd } from '@interiorly/seo/js... | interiorly | apps/web/app/blog/page.tsx | TypeScript | 4cdbbc99a2f694dc34c072de7c57dbd023b69954975abfdebe77e5d9c6d771df | 0 | 740 |
import { Sidebar } from '@/components/sidebar';
import { env } from '@/env';
import { ArrowLeftIcon } from '@radix-ui/react-icons';
import { blog } from '@interiorly/cms';
import { Body } from '@interiorly/cms/components/body';
import { Feed } from '@interiorly/cms/components/feed';
import { Image } from '@interiorly/c... | interiorly | apps/web/app/blog/[slug]/page.tsx | TypeScript | 41fa28864eab04e6b2442f135480f39a9aa5d3b17a69c924da7ae761a24eb3c8 | 0 | 896 |
]:mt-6">
<Balancer>{page.description}</Balancer>
</p>
{page.image ? (
<Image
src={page.image.url}
width={page.image.width}
height={page.image.height}
... | interiorly | apps/web/app/blog/[slug]/page.tsx | TypeScript | 415c99578235d2a7c3c7c80063952fe988ae2f2f9b8687ba70f1f3fc6fdae6ba | 1 | 235 |
import { env } from '@/env';
import { Status } from '@interiorly/observability/status';
import Link from 'next/link';
export const Footer = () => {
const navigationItems = [
{
title: 'Home',
href: '/',
description: '',
},
{
title: 'Pages',
description: 'Managing a small busi... | interiorly | apps/web/app/components/footer.tsx | TypeScript | 9fc0fde695efb40e1d938b23e0c87f8b9157347f67e2daac9a619908925756f8 | 0 | 769 |
'use client';
import { env } from '@/env';
import { ModeToggle } from '@interiorly/design-system/components/mode-toggle';
import { Button } from '@interiorly/design-system/components/ui/button';
import {
NavigationMenu,
NavigationMenuContent,
NavigationMenuItem,
NavigationMenuLink,
NavigationMenuList,
Navi... | interiorly | apps/web/app/components/header/index.tsx | TypeScript | 489af53fd4fdb86b696f892a7b9664d7f5e4ef333fa84941c416473a6deb6a38 | 0 | 896 |
/NavigationMenuContent>
</>
)}
</NavigationMenuItem>
))}
</NavigationMenuList>
</NavigationMenu>
</div>
<div className="flex items-center gap-2 lg:justify-center">
<Image
src={Logo}
... | interiorly | apps/web/app/components/header/index.tsx | TypeScript | 436f9a065d1486f2defe12d9e49dca9fcfb1d94847f040f2e34abdc5532f19db | 1 | 684 |
import { createMetadata } from '@interiorly/seo/metadata';
import type { Metadata } from 'next';
import { ContactForm } from './components/contact-form';
const title = 'Contact';
const description =
"Let us know what's on your mind. We'll get back to you as soon as possible.";
export const metadata: Metadata = crea... | interiorly | apps/web/app/contact/page.tsx | TypeScript | 189e917e7e259939e6ec7954c4b1fa8c1dab606f335f07823d9401973279d9f9 | 0 | 106 |
'use server';
import { env } from '@/env';
import { resend } from '@interiorly/email';
import { ContactTemplate } from '@interiorly/email/templates/contact';
import { parseError } from '@interiorly/observability/error';
import { createRateLimiter, slidingWindow } from '@interiorly/rate-limit';
import { headers } from ... | interiorly | apps/web/app/contact/actions/contact.tsx | TypeScript | 53cf50543723dc59cfa64ec3572c0ae3d91b7465757a61ac99cff78f1a5227a3 | 0 | 308 |
'use client';
import { Button } from '@interiorly/design-system/components/ui/button';
import { Calendar } from '@interiorly/design-system/components/ui/calendar';
import { Input } from '@interiorly/design-system/components/ui/input';
import { Label } from '@interiorly/design-system/components/ui/label';
import {
Po... | interiorly | apps/web/app/contact/components/contact-form.tsx | TypeScript | af7db340e7c1a29557e2784d6ffad71d1e230712c4c2118fc2b7578bbb6da01c | 0 | 896 |
text-muted-foreground'
)}
>
<CalendarIcon className="mr-2 h-4 w-4" />
{date ? format(date, 'PPP') : <span>Pick a date</span>}
</Button>
</PopoverTrigger>
<PopoverContent classNam... | interiorly | apps/web/app/contact/components/contact-form.tsx | TypeScript | cce9dd28466e22ec1c3fa83ad31ea4512d2707bade81fbd65f4bc61038ecd7b6 | 1 | 322 |
import { Toolbar } from '@interiorly/cms/components/toolbar';
import type { ReactNode } from 'react';
type LegalLayoutProps = {
children: ReactNode;
};
const LegalLayout = ({ children }: LegalLayoutProps) => (
<>
{children}
<Toolbar />
</>
);
export default LegalLayout;
| interiorly | apps/web/app/legal/layout.tsx | TypeScript | 7dcbc039e4771415c02ab48683586c6912362a6f9f7c4ab3e6e58759a37fad1e | 0 | 67 |
import { Sidebar } from '@/components/sidebar';
import { ArrowLeftIcon } from '@radix-ui/react-icons';
import { legal } from '@interiorly/cms';
import { Body } from '@interiorly/cms/components/body';
import { Feed } from '@interiorly/cms/components/feed';
import { TableOfContents } from '@interiorly/cms/components/toc'... | interiorly | apps/web/app/legal/[slug]/page.tsx | TypeScript | 8264983c5e7d1a79bf804cb3c7400cf178d86c03de941569ff6bbc7a116a3c69 | 0 | 768 |
import { env } from '@/env';
import { Button } from '@interiorly/design-system/components/ui/button';
import { Check, Minus, MoveRight, PhoneCall } from 'lucide-react';
import Link from 'next/link';
const Pricing = () => (
<div className="w-full py-20 lg:py-40">
<div className="container mx-auto">
<div cla... | interiorly | apps/web/app/pricing/page.tsx | TypeScript | 4234309ddb3cd260d062d1f09513b805cc9578efc37d0d1fcd3c2295dc3f33b4 | 0 | 896 |
-foreground text-sm"> / month</span>
</p>
<Button variant="outline" className="mt-8 gap-4" asChild>
<Link href="/contact">
Contact us <PhoneCall className="h-4 w-4" />
</Link>
</Button>
</div>
<div className="col-span-3 ... | interiorly | apps/web/app/pricing/page.tsx | TypeScript | ba895252068180bcc0a1671b24250ec20eb8c8668882d21168a0484599a664cb | 1 | 896 |
members</p>
</div>
<div className="flex justify-center px-3 py-1 md:px-6 md:py-4">
<p className="text-muted-foreground text-sm">100+ members</p>
</div>
{/* New Line */}
<div className="col-span-3 px-3 py-4 lg:col-span-1 lg:px-6">
Multiplayer Mode... | interiorly | apps/web/app/pricing/page.tsx | TypeScript | e947e7d6cbcdb84a1517f7c48581b0d813d68e4a38e25f3e33cf5b660ff574ca | 2 | 463 |
.shiki {
background-color: var(--shiki-light-bg);
color: var(--shiki-light);
@apply border-border;
}
.shiki span {
color: var(--shiki-light);
}
.dark .shiki {
background-color: var(--shiki-dark-bg);
color: var(--shiki-dark);
}
.dark .shiki span {
color: var(--shiki-dark);
}
.shiki code {
display: gr... | interiorly | apps/web/app/styles/web.css | CSS | ec43924eae0a02419520fc734601b7294ab15d88217302b462f3b23d0511e1b8 | 0 | 201 |
import { capitalize } from '@interiorly/design-system/lib/utils';
import type { ReactNode } from 'react';
type SidebarProperties = {
readonly date: Date;
readonly readingTime: string;
readonly tags?: string[];
readonly toc?: ReactNode;
};
export const Sidebar = async ({
date,
readingTime,
tags,
toc: T... | interiorly | apps/web/components/sidebar.tsx | TypeScript | 23b0dc89b4ab2b2157ddcdd3fb60329b42dcc484baaf59126c08e383d6b0b1e2 | 0 | 433 |
export * from 'ai';
| interiorly | packages/ai/index.ts | TypeScript | 7b8a3a76392e39594d74fbaa6dde17bf916b059b83aa9c8d7bb0b4d38149f6b8 | 0 | 7 |
import { createEnv } from '@t3-oss/env-nextjs';
import { z } from 'zod';
export const keys = () =>
createEnv({
server: {
OPENAI_API_KEY: z.string().min(1).startsWith('sk-').optional(),
},
runtimeEnv: {
OPENAI_API_KEY: process.env.OPENAI_API_KEY,
},
});
| interiorly | packages/ai/keys.ts | TypeScript | 0ff03c2390c7892396e1592d64b87a4530e4e087bd32375586f8104c7b44dc84 | 0 | 82 |
{
"name": "@interiorly/ai",
"version": "0.0.0",
"private": true,
"scripts": {
"clean": "git clean -xdf .cache .turbo dist node_modules",
"typecheck": "tsc --noEmit --emitDeclarationOnly false"
},
"dependencies": {
"@ai-sdk/openai": "^1.0.11",
"@t3-oss/env-nextjs": "^0.11.1",
"ai": "^4.0.... | interiorly | packages/ai/package.json | JSON | 5361b3b601020985b8123c8a05d79be952e86ed7034158e0b082debfb0993822 | 0 | 228 |
{
"extends": "@interiorly/typescript-config/nextjs.json",
"compilerOptions": {
"baseUrl": "."
},
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
| interiorly | packages/ai/tsconfig.json | JSON | db5195933bde9d132c106fbcc6f8a82d968ddbb10008aa00d536fa514aade7a3 | 0 | 66 |
import type { Message as MessageType } from 'ai';
import type { ComponentProps } from 'react';
import Markdown from 'react-markdown';
import { twMerge } from 'tailwind-merge';
type MessageProps = {
data: MessageType;
markdown?: ComponentProps<typeof Markdown>;
};
export const Message = ({ data, markdown }: Messag... | interiorly | packages/ai/components/message.tsx | TypeScript | 5d053011d31858dcb13a310d611183d17b878eafe6002fac6b4700d42b43c481 | 0 | 168 |
import type { HTMLAttributes } from 'react';
import { twMerge } from 'tailwind-merge';
type ThreadProps = HTMLAttributes<HTMLDivElement>;
export const Thread = ({ children, className, ...props }: ThreadProps) => (
<div
className={twMerge(
'flex flex-1 flex-col items-start gap-4 overflow-y-auto p-8 pb-0',
... | interiorly | packages/ai/components/thread.tsx | TypeScript | 2e938e12f91618351536ec7bc3a16ab2f4994d16bd1f189ef2795c1206027652 | 0 | 103 |
import { createOpenAI } from '@ai-sdk/openai';
import { keys } from '../keys';
export const provider = createOpenAI({
apiKey: keys().OPENAI_API_KEY,
compatibility: 'strict',
});
| interiorly | packages/ai/lib/provider.ts | TypeScript | 3700cb9b7af2087d9adbb3036018d4a8914cdbe3189662c75daa2389eadce31c | 0 | 50 |
export * from 'ai/react';
| interiorly | packages/ai/lib/react.ts | TypeScript | 2b9a6845065a80d1fc0be09424fe2c4591707f50be7b8bb43793ac4756983836 | 0 | 9 |
export { GoogleAnalytics } from '@next/third-parties/google';
| interiorly | packages/analytics/google.ts | TypeScript | 083225df0a3c2b0f3fa0d81799ecd76472037f8950770545fe546a2acf94942a | 0 | 16 |
import type { ReactNode } from 'react';
import { GoogleAnalytics } from './google';
import { keys } from './keys';
import { PostHogProvider } from './posthog/client';
import { VercelAnalytics } from './vercel';
type AnalyticsProviderProps = {
readonly children: ReactNode;
};
const { NEXT_PUBLIC_GA_MEASUREMENT_ID } ... | interiorly | packages/analytics/index.tsx | TypeScript | 1d6f74971e6ac7465e2a59af534f99c650d38d3d3e3fd4a0fb90ecc996a07a7b | 0 | 122 |
import { createEnv } from '@t3-oss/env-nextjs';
import { z } from 'zod';
export const keys = () =>
createEnv({
client: {
NEXT_PUBLIC_POSTHOG_KEY: z.string().min(1).startsWith('phc_'),
NEXT_PUBLIC_POSTHOG_HOST: z.string().min(1).url(),
NEXT_PUBLIC_GA_MEASUREMENT_ID: z
.string()
.... | interiorly | packages/analytics/keys.ts | TypeScript | 011372f3f55ef3b6f6a1cda035193780075106c76a6fb9a617ec3f7d45e81b3b | 0 | 135 |
{
"name": "@interiorly/analytics",
"version": "0.0.0",
"private": true,
"scripts": {
"clean": "git clean -xdf .cache .turbo dist node_modules",
"typecheck": "tsc --noEmit --emitDeclarationOnly false"
},
"dependencies": {
"@next/third-parties": "^15.1.3",
"@t3-oss/env-nextjs": "^0.11.1",
... | interiorly | packages/analytics/package.json | JSON | 5e6fbc91fa3c4fbc16d2d71998dd3981fcb9a08b80f91ea5dd76b59992aa59f5 | 0 | 244 |
export { Analytics as VercelAnalytics } from '@vercel/analytics/react';
| interiorly | packages/analytics/vercel.ts | TypeScript | 05518f61fcddf5bf6f6f2d77b2b7d4375da91631d268e8bec052aea6ebb3fea8 | 0 | 16 |
'use client';
import posthogRaw, { type PostHog } from 'posthog-js';
import { PostHogProvider as PostHogProviderRaw } from 'posthog-js/react';
import type { ReactNode } from 'react';
import { keys } from '../keys';
export const analytics = posthogRaw.init(keys().NEXT_PUBLIC_POSTHOG_KEY, {
api_host: '/ingest',
ui_... | interiorly | packages/analytics/posthog/client.tsx | TypeScript | a2ceb641c3a62c70dce763bb7724b0c022f56d7aba4b06e42e426ea1627196bf | 0 | 169 |
import 'server-only';
import { PostHog } from 'posthog-node';
import { keys } from '../keys';
export const analytics = new PostHog(keys().NEXT_PUBLIC_POSTHOG_KEY, {
host: keys().NEXT_PUBLIC_POSTHOG_HOST,
// Don't batch events and flush immediately - we're running in a serverless environment
flushAt: 1,
flushI... | interiorly | packages/analytics/posthog/server.ts | TypeScript | abf3445b62df30be6549e296d6371d3c30e30d4af57de0d2bc75613ba0fcc622 | 0 | 82 |
export * from '@clerk/nextjs';
| interiorly | packages/auth/client.ts | TypeScript | c83d78b1302428bf2dbfd1f584336d9b0a18a24b3bda03054c8941af13c1632d | 0 | 10 |
import { createEnv } from '@t3-oss/env-nextjs';
import { z } from 'zod';
export const keys = () =>
createEnv({
server: {
CLERK_SECRET_KEY: z.string().min(1).startsWith('sk_'),
CLERK_WEBHOOK_SECRET: z.string().min(1).startsWith('whsec_').optional(),
},
client: {
NEXT_PUBLIC_CLERK_PUBLISH... | interiorly | packages/auth/keys.ts | TypeScript | dc31148cbdf2ccc59fcc96de03b4721405ad22d1f998b6a6e528504a360fd17b | 0 | 254 |
export { clerkMiddleware as authMiddleware } from '@clerk/nextjs/server';
| interiorly | packages/auth/middleware.ts | TypeScript | 8a27ee148c580336332696472fe262e5dc265f02570ad9c5a6e2bd461c00f178 | 0 | 16 |
{
"name": "@interiorly/auth",
"version": "0.0.0",
"private": true,
"scripts": {
"clean": "git clean -xdf .cache .turbo dist node_modules",
"typecheck": "tsc --noEmit --emitDeclarationOnly false"
},
"dependencies": {
"@clerk/nextjs": "^6.9.6",
"@clerk/themes": "^2.2.3",
"@interiorly/tailw... | interiorly | packages/auth/package.json | JSON | b29578855ed61ae06204c70a9c7ca0c1d2380974552b096d1db709a1326bfea6 | 0 | 269 |
'use client';
import { ClerkProvider } from '@clerk/nextjs';
import { dark } from '@clerk/themes';
import type { Theme } from '@clerk/types';
import { tailwind } from '@interiorly/tailwind-config';
import { useTheme } from 'next-themes';
import type { ComponentProps } from 'react';
export const AuthProvider = (
pro... | interiorly | packages/auth/provider.tsx | TypeScript | 41a7484bcd377fc9bf946c7ce8aea16790a9c889262d08141b75dbf87608c668 | 0 | 337 |
import 'server-only';
export * from '@clerk/nextjs/server';
| interiorly | packages/auth/server.ts | TypeScript | 5f9d26defcf10651ce77cd7c766c096fafd1da16556d7f26b1a69d5938319b2c | 0 | 19 |
import { SignIn as ClerkSignIn } from '@clerk/nextjs';
export const SignIn = () => (
<ClerkSignIn
appearance={{
elements: {
header: 'hidden',
},
}}
forceRedirectUrl={'/onboarding'}
signUpUrl={'/sign-up'}
/>
);
| interiorly | packages/auth/components/sign-in.tsx | TypeScript | d31f041c6ea3777fa8d8a0c74348a6cf191c832e19340aa6f00d132b422035e2 | 0 | 64 |
import { SignUp as ClerkSignUp } from '@clerk/nextjs';
export const SignUp = () => (
<ClerkSignUp
appearance={{
elements: {
header: 'hidden',
},
}}
forceRedirectUrl={'/onboarding'}
signInUrl={'/sign-in'}
/>
);
| interiorly | packages/auth/components/sign-up.tsx | TypeScript | ccc76187d3cfb9f6a851c617032831c61eb9d8168e28996b26b5103ccb21e903 | 0 | 64 |
import { basehub as basehubClient, fragmentOn } from 'basehub';
import { keys } from './keys';
const basehub = basehubClient({
token: keys().BASEHUB_TOKEN,
});
const imageFragment = fragmentOn('BlockImage', {
url: true,
width: true,
height: true,
alt: true,
blurDataURL: true,
});
const postFragment = fra... | interiorly | packages/cms/index.ts | TypeScript | 46f2bc322bbfa39503de1fa0f3463a75bca104817582956fd12b74783589a542 | 0 | 643 |
import { createEnv } from '@t3-oss/env-nextjs';
import { z } from 'zod';
export const keys = () =>
createEnv({
server: {
BASEHUB_TOKEN: z.string().min(1).startsWith('bshb_pk_'),
},
runtimeEnv: {
BASEHUB_TOKEN: process.env.BASEHUB_TOKEN,
},
});
| interiorly | packages/cms/keys.ts | TypeScript | edd0678afb406e55683538b4ede2b0a56f1190ca126d035ac90ea35b20e87faf | 0 | 77 |
import type { NextConfig } from 'next';
// This file is a stub for modifying the Next.js configuration.
// It's handy for supplementing the default CMS configuration.
export const withCMS = (config: NextConfig) => config;
| interiorly | packages/cms/next-config.ts | TypeScript | 93818090fcfbca8fa1172d72372c0a86e8c18e8de976a9cdee6c6c2f1b91e65f | 0 | 51 |
{
"name": "@interiorly/cms",
"version": "0.0.0",
"private": true,
"scripts": {
"dev": "basehub dev",
"build": "basehub",
"analyze": "basehub",
"clean": "git clean -xdf .cache .turbo dist node_modules",
"typecheck": "tsc --noEmit --emitDeclarationOnly false"
},
"dependencies": {
"@t3-... | interiorly | packages/cms/package.json | JSON | a94ec5340961ec050b1efc283e2333851bfc3b2349282f2fec5a9ee4bfce7c3b | 0 | 221 |
{}
| interiorly | packages/cms/typescript-config.json | JSON | ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356 | 0 | 2 |
export { RichText as Body } from 'basehub/react-rich-text';
| interiorly | packages/cms/components/body.tsx | TypeScript | 78186fb099c7ef721ce67aef9a8f8346dcc5fc0afad9ce1eecd882954040fd8b | 0 | 17 |
export { Pump as Feed } from 'basehub/react-pump';
| interiorly | packages/cms/components/feed.tsx | TypeScript | 34b5bfeeb63facf4f33af2d78a3cb71a6b449ab8905aae0a498ebde73f9c8468 | 0 | 15 |
export { BaseHubImage as Image } from 'basehub/next-image';
| interiorly | packages/cms/components/image.tsx | TypeScript | ab299f5da4288a78909268ad53e09736a629f7c656004cd7f82ec66f13bb3ed6 | 0 | 15 |
import { RichText } from 'basehub/react-rich-text';
import type { ComponentProps } from 'react';
type TableOfContentsProperties = Omit<
ComponentProps<typeof RichText>,
'children'
> & {
readonly data: ComponentProps<typeof RichText>['children'];
};
export const TableOfContents = ({
data,
...props
}: TableOf... | interiorly | packages/cms/components/toc.tsx | TypeScript | d09a32013f285d226eb5853dafbba12d01ab2d46276f0cd4517616f9af092e70 | 0 | 307 |
export { Toolbar } from 'basehub/next-toolbar';
| interiorly | packages/cms/components/toolbar.tsx | TypeScript | a7917431d83e3699326efa0a320fa2b5a277efcbbaf8dc772465cd6d7b153504 | 0 | 13 |
import 'server-only';
import { Liveblocks as LiveblocksNode } from '@liveblocks/node';
import { keys } from './keys';
type AuthenticateOptions = {
userId: string;
orgId: string;
userInfo: Liveblocks['UserMeta']['info'];
};
const secret = keys().LIVEBLOCKS_SECRET;
export const authenticate = async ({
userId,
... | interiorly | packages/collaboration/auth.ts | TypeScript | 68ed31deac20272951323361877c64b73596a1670962749de32e4eed3780ce23 | 0 | 219 |
import { LiveMap, LiveObject } from "@liveblocks/client";
import { Document, User } from "./types";
export type Note = LiveObject<{
x: number;
y: number;
text: string;
selectedBy: Liveblocks["UserMeta"]["info"] | null;
id: string;
}>;
export type Notes = LiveMap<string, Note>;
declare global {
interface ... | interiorly | packages/collaboration/config.ts | TypeScript | a72054001b852c5699e10cd8891e4b8f5a144e1fdc218698bdd33b4811c78721 | 0 | 354 |
import type { DocumentType } from './types';
export const DASHBOARD_URL = '/';
export const DASHBOARD_DRAFTS_URL = `${DASHBOARD_URL}/drafts`;
export const DASHBOARD_GROUP_URL = (id: string) =>
`${DASHBOARD_URL}/group/${id}`;
export const DOCUMENT_URL = (type: DocumentType, id: string) =>
`/${type}/${id}`;
| interiorly | packages/collaboration/constants.ts | TypeScript | 40ee77385214104bf2b3a9bce455fc055e0a0b4b740da35fefed5294fe3590e1 | 0 | 86 |
export * from '@liveblocks/react/suspense';
| interiorly | packages/collaboration/hooks.ts | TypeScript | 229474bf7c49ac509d1bfe8f4aa6cb7e49f179d1610ee6caf9e2f1f4dfb6c51a | 0 | 12 |
import { createEnv } from '@t3-oss/env-nextjs';
import { z } from 'zod';
export const keys = () =>
createEnv({
server: {
LIVEBLOCKS_SECRET: z.string().min(1).startsWith('sk_').optional(),
},
runtimeEnv: {
LIVEBLOCKS_SECRET: process.env.LIVEBLOCKS_SECRET,
},
});
| interiorly | packages/collaboration/keys.ts | TypeScript | eda95f3258bd2b9141299b00317434ef4184f0a0d64384578e049610bf37f0b1 | 0 | 81 |
import { Liveblocks } from '@liveblocks/node';
export const liveblocks = new Liveblocks({
secret: process.env.LIVEBLOCKS_SECRET as string,
});
| interiorly | packages/collaboration/liveblocks.server.config.ts | TypeScript | 709a2ace1df2f0dc189bd3d7652ebab21bc1454b615b7904d890eefcedd36156 | 0 | 33 |
{
"name": "@interiorly/collaboration",
"version": "0.0.0",
"private": true,
"scripts": {
"clean": "git clean -xdf .cache .turbo dist node_modules",
"typecheck": "tsc --noEmit --emitDeclarationOnly false"
},
"dependencies": {
"@t3-oss/env-nextjs": "^0.11.1",
"@liveblocks/client": "^2.15.1",
... | interiorly | packages/collaboration/package.json | JSON | 6176b3869a5a4e5520af9234ce567fa0ec515904e5313e6cfb6bd1a43f2a20e1 | 0 | 230 |
/**
* These types are used in `/data`
*/
export type User = {
id: string;
name: string;
avatar?: string;
color: string;
groupIds: string[];
};
export type Group = {
id: string;
name: string;
};
| interiorly | packages/collaboration/types/data.ts | TypeScript | 3a53de26db7e44b51fd5e2df3cbd1852430aba25fe6b02ed2c304acf44f0b74f | 0 | 60 |
import type { Group, User } from './data';
/**
* This is the main type of your Documents.
* Make sure to edit /lib/server/utils/buildDocuments.ts when adding new
* properties.
*/
export type Document = {
id: string;
name: string;
accesses: DocumentAccesses;
owner: DocumentUser['id'];
icon: string | null;... | interiorly | packages/collaboration/types/document.ts | TypeScript | de998935d90d572def281cf839a82beeccb6cf71928da35f177c58dc36a0e157 | 0 | 323 |
export * from "./data";
export * from "./document";
| interiorly | packages/collaboration/types/index.ts | TypeScript | 583b86a08219471e2f3349fadf661bcd3b904241a370ea28ea26f8e3aed0ad0c | 0 | 18 |
import 'server-only';
import { Pool, neonConfig } from '@neondatabase/serverless';
import { PrismaNeon } from '@prisma/adapter-neon';
import { PrismaClient } from '@prisma/client';
import ws from 'ws';
import { keys } from './keys';
neonConfig.webSocketConstructor = ws;
const pool = new Pool({ connectionString: keys... | interiorly | packages/database/index.ts | TypeScript | a462de863b00d54b82983f072ae97b039e3ff79aa40d648e812ea2581bc423ef | 0 | 119 |
import { createEnv } from '@t3-oss/env-nextjs';
import { z } from 'zod';
export const keys = () =>
createEnv({
server: {
DATABASE_URL: z.string().min(1).url(),
},
runtimeEnv: {
DATABASE_URL: process.env.DATABASE_URL,
},
});
| interiorly | packages/database/keys.ts | TypeScript | 816862ae05463eb7bb149473d2dd17ffa498333ec039a9bde246f873630585eb | 0 | 74 |
{
"name": "@interiorly/database",
"version": "0.0.0",
"main": "./index.ts",
"types": "./index.ts",
"scripts": {
"analyze": "prisma generate --no-hints",
"build": "prisma generate --no-hints",
"clean": "git clean -xdf .cache .turbo dist node_modules",
"typecheck": "tsc --noEmit --emitDeclaratio... | interiorly | packages/database/package.json | JSON | bade3649db36eb03e332468d1ef9d0202dbd0ffacbbdd194796bdc287a489159 | 0 | 305 |
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
previewFeatures = ["driverAdapters"]
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
relationMode = "prisma"
}
mod... | interiorly | packages/database/prisma/schema.prisma | Prisma | f40fa144e26f325b92fbf0a8db5024cb02495bc80b3706e9b86e0a97c1ec8704 | 0 | 104 |
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "../tailwind-config/config.ts",
"css": "styles/globals.css",
"baseColor": "neutral",
"cssVariables": true
},
"aliases": {
"components": "@interiorly/design-system/co... | interiorly | packages/design-system/components.json | JSON | 00c119bec2102e3c6e762f6529b2e1122c549a68ea39e9e7976e4149b2289fe5 | 0 | 178 |
import { AnalyticsProvider } from '@interiorly/analytics';
import { AuthProvider } from '@interiorly/auth/provider';
import type { ThemeProviderProps } from 'next-themes';
import { Toaster } from './components/ui/sonner';
import { TooltipProvider } from './components/ui/tooltip';
import { ThemeProvider } from './provid... | interiorly | packages/design-system/index.tsx | TypeScript | 7615a4477ef1d57341e6e133b3b553f6225b61d5524929a4d5ce270349e1b2ec | 0 | 148 |
{
"name": "@interiorly/design-system",
"version": "0.0.0",
"private": true,
"scripts": {
"clean": "git clean -xdf .cache .turbo dist node_modules",
"typecheck": "tsc --noEmit --emitDeclarationOnly false"
},
"dependencies": {
"@hookform/resolvers": "^3.9.1",
"@interiorly/analytics": "workspac... | interiorly | packages/design-system/package.json | JSON | e077ea9c7a133cf2709802b26f7eed0db1ea78ccb2a4aedc647b7083475bf725 | 0 | 896 |
panels": "^2.1.7",
"recharts": "^2.15.0",
"server-only": "^0.0.1",
"sonner": "^1.7.1",
"tailwind-merge": "^2.6.0",
"vaul": "^1.1.2",
"zod": "^3.24.1"
},
"devDependencies": {
"@interiorly/typescript-config": "workspace:*",
"@types/node": "^22.10.2",
"@types/react": "^19.0.6",
... | interiorly | packages/design-system/package.json | JSON | 1b7093063b6f41573351dd81188b349dc13f1c706213b93ebc1aa548ea88f565 | 1 | 174 |
/** @type {import('postcss-load-config').Config} */
const config = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
export default config;
| interiorly | packages/design-system/postcss.config.mjs | JavaScript | efa65c65e17d51d58570edce9d702b0604fdf6a9b8db65afaed8f075af8867c7 | 0 | 46 |
{
"extends": "@interiorly/typescript-config/react-library.json",
"compilerOptions": {
"baseUrl": ".",
"plugins": [
{
"name": "next"
}
],
"paths": {
"@interiorly/*": ["../*"],
"@interiorly/design-system/*": ["./*"]
}
},
"include": ["**/*.ts", "**/*.tsx"],
"ex... | interiorly | packages/design-system/tsconfig.json | JSON | a74388531e7113b3d218726cc799019b9f32493fa08e4c1bfecd6450c745388f | 0 | 125 |
'use client';
import { MoonIcon, SunIcon } from '@radix-ui/react-icons';
import { useTheme } from 'next-themes';
import { Button } from '../components/ui/button';
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from '../components/ui/dropdown-menu';
const themes = [
{ la... | interiorly | packages/design-system/components/mode-toggle.tsx | TypeScript | ad49fb5c7c559920e5766b9afb4d4ab6efec39c025019e35608e6d358b669a81 | 0 | 337 |
"use client"
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio"
const AspectRatio = AspectRatioPrimitive.Root
export { AspectRatio }
| interiorly | packages/design-system/components/ui/aspect-ratio.tsx | TypeScript | 589c299c27e2ad99c2e96c9a90e6ad49051cf99fc88f0c42a13465177379186f | 0 | 31 |
import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { cn } from "@interiorly/design-system/lib/utils"
import { ChevronRightIcon, DotsHorizontalIcon } from "@radix-ui/react-icons"
const Breadcrumb = React.forwardRef<
HTMLElement,
React.ComponentPropsWithoutRef<"nav"> & {
separator?... | interiorly | packages/design-system/components/ui/breadcrumb.tsx | TypeScript | 25650eafef9e6014af36cc27e61f42eef6fd91f30af462bd176cff08854c666b | 0 | 719 |
import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@interiorly/design-system/lib/utils"
const buttonVariants = cva(
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-m... | interiorly | packages/design-system/components/ui/button.tsx | TypeScript | ff4126c9b4b65caf7140b87d1b9350ebac4b29e8431fe633b16b9e2341f5f47d | 0 | 484 |
"use client"
import * as React from "react"
import { DayPicker } from "react-day-picker"
import { cn } from "@interiorly/design-system/lib/utils"
import { buttonVariants } from "@interiorly/design-system/components/ui/button"
import { ChevronLeftIcon, ChevronRightIcon } from "@radix-ui/react-icons"
export type Calen... | interiorly | packages/design-system/components/ui/calendar.tsx | TypeScript | 4953a881c166f68fa129e81db568d35163d06d8400b91daf12c0dbd8d985f3ac | 0 | 807 |
import * as React from "react"
import { cn } from "@interiorly/design-system/lib/utils"
const Card = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn(
"rounded-xl border bg-card text-card-foreground shadow",
... | interiorly | packages/design-system/components/ui/card.tsx | TypeScript | 9feb18053986640e89d1ac912bdb135d7a702445ffd3f02ec90b43312266df36 | 0 | 499 |
"use client"
import * as React from "react"
import * as RechartsPrimitive from "recharts"
import {
NameType,
Payload,
ValueType,
} from "recharts/types/component/DefaultTooltipContent"
import { cn } from "@interiorly/design-system/lib/utils"
// Format: { THEME_NAME: CSS_SELECTOR }
const THEMES = { light: "", d... | interiorly | packages/design-system/components/ui/chart.tsx | TypeScript | 1adfd683f9903689ca32b6f1420335c2b0ba6dbba4d9cd8f55b906b322261d1a | 0 | 896 |
.ComponentProps<typeof RechartsPrimitive.Tooltip> &
React.ComponentProps<"div"> & {
hideLabel?: boolean
hideIndicator?: boolean
indicator?: "line" | "dot" | "dashed"
nameKey?: string
labelKey?: string
}
>(
(
{
active,
payload,
className,
indicator = "d... | interiorly | packages/design-system/components/ui/chart.tsx | TypeScript | a11101f0cc0b9fee37d24adf4a0ad5f28be86712233d8d5c6871894d3aa97e38 | 1 | 896 |
{itemConfig?.label || item.name}
</span>
</div>
{item.value && (
<span className="font-mono font-medium tabular-nums text-foreground">
{item.value.toLocaleString()}
</span>
... | interiorly | packages/design-system/components/ui/chart.tsx | TypeScript | 2606c131b3f4f2c719d035ae6ff26f5a53d9806dd0d77c1b239eaa6e58ecc647 | 2 | 626 |
"use client"
import * as React from "react"
import * as CheckboxPrimitive from "@radix-ui/react-checkbox"
import { cn } from "@interiorly/design-system/lib/utils"
import { CheckIcon } from "@radix-ui/react-icons"
const Checkbox = React.forwardRef<
React.ElementRef<typeof CheckboxPrimitive.Root>,
React.ComponentPr... | interiorly | packages/design-system/components/ui/checkbox.tsx | TypeScript | 2061fab2e7cb3e82ea5d384d63935e279a204e4861193e6e44e65837ae71a163 | 0 | 269 |
"use client"
import * as React from "react"
import { type DialogProps } from "@radix-ui/react-dialog"
import { Command as CommandPrimitive } from "cmdk"
import { cn } from "@interiorly/design-system/lib/utils"
import { Dialog, DialogContent, DialogTitle } from "@interiorly/design-system/components/ui/dialog"
import { ... | interiorly | packages/design-system/components/ui/command.tsx | TypeScript | e10138d27ff70e2f4cdef7f6fdcbc45073d122b9bd7c1794a40396b75952b09b | 0 | 896 |
"use client"
import * as React from "react"
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu"
import { cn } from "@interiorly/design-system/lib/utils"
import { CheckIcon, ChevronRightIcon, DotFilledIcon } from "@radix-ui/react-icons"
const ContextMenu = ContextMenuPrimitive.Root
const ContextMenuT... | interiorly | packages/design-system/components/ui/context-menu.tsx | TypeScript | 5b6a299fb1b21a93896e7b1f44f3648a1ebf986693a6c8f3d0641f4043e66d91 | 0 | 896 |
<typeof ContextMenuPrimitive.Item> & {
inset?: boolean
}
>(({ className, inset, ...props }, ref) => (
<ContextMenuPrimitive.Item
ref={ref}
className={cn(
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground ... | interiorly | packages/design-system/components/ui/context-menu.tsx | TypeScript | c1dc4d10136e635e9565f9bff7bb4b3372a97c0d0425e31a1ae154e0353463a8 | 1 | 872 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.