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 |
|---|---|---|---|---|---|---|
const ChatPage = () => {
return <div>Chat</div>;
};
export default ChatPage;
| interiorly | apps/app/app/(authenticated)/(dashboard)/chat/page.tsx | TypeScript | 4f32e1f26d76dadcf2e2fd9be578effa489ce5375c37fa9c516d18525b359dc2 | 0 | 24 |
'use client';
import { InboxNotifications } from '@/components/dashboard/notifications';
import LiveblocksProvider from '@/components/provider/liveblocks-provider';
export default function InboxPage() {
return (
<div className="flex h-full w-full flex-col items-center justify-center overflow-hidden bg-backgroun... | interiorly | apps/app/app/(authenticated)/(dashboard)/inbox/page.tsx | TypeScript | eea42be85a7e09e3fb088788b5de444572618b206b294d08c03733b8ba92b970 | 0 | 91 |
'use client';
import { OrganizationSelector } from '@/components/organization/organization-selector';
import { CreateOrganization, useOrganization, useOrganizationList } from '@interiorly/auth/client';
import { Loading03Icon } from 'hugeicons-react';
import { redirect } from 'next/navigation';
const OnboardingPage = ... | interiorly | apps/app/app/(authenticated)/onboarding/page.tsx | TypeScript | 2613d328982ccd87709c0dac299455ece7e092fc43724a8eff1d83dc4432d197 | 0 | 436 |
import Image from 'next/image';
import type { ReactNode } from 'react';
type AuthLayoutProps = {
readonly children: ReactNode;
};
const AuthLayout = ({ children }: AuthLayoutProps) => (
<div className="grid min-h-screen min-w-screen lg:grid-cols-2">
<div className="relative hidden flex-col items-center justif... | interiorly | apps/app/app/(unauthenticated)/layout.tsx | TypeScript | c6b2d1a9fcfe6c05a8f010186a02fde121e4439fd3c43e58cf8a93ca356c31c5 | 0 | 264 |
import { createMetadata } from '@interiorly/seo/metadata';
import type { Metadata } from 'next';
import dynamic from 'next/dynamic';
import Link from 'next/link';
const title = 'Welcome back';
const description = 'Enter your details to sign in.';
const SignIn = dynamic(() =>
import('@interiorly/auth/components/sign-... | interiorly | apps/app/app/(unauthenticated)/sign-in/[[...sign-in]]/page.tsx | TypeScript | 4c69ed7b9e65fe112a44d2c61643f78d6dd4276fdd8b4ab830bdadc481ad4bea | 0 | 358 |
import { createMetadata } from '@interiorly/seo/metadata';
import type { Metadata } from 'next';
import dynamic from 'next/dynamic';
const title = 'Create an account';
const description = 'Enter your details to get started.';
const SignUp = dynamic(() =>
import('@interiorly/auth/components/sign-up').then((mod) => mo... | interiorly | apps/app/app/(unauthenticated)/sign-up/[[...sign-up]]/page.tsx | TypeScript | ad9fda9c92999f11304b364952b230c0681898b83ab9c2edb770e5e21b9a4574 | 0 | 200 |
import { getFlags } from '@interiorly/feature-flags/access';
export const GET = getFlags;
| interiorly | apps/app/app/.well-known/vercel/flags/route.ts | TypeScript | b66caeabefb106a9cbc65c5834507c4ab251ffcca47459aa000d4f12bc39c7e5 | 0 | 22 |
'use server';
import {
type OrganizationMembership,
auth,
clerkClient,
} from '@interiorly/auth/server';
import { tailwind } from '@interiorly/tailwind-config';
const getName = (user: OrganizationMembership): string | undefined => {
let name = user.publicUserData?.firstName;
if (name && user.publicUserData... | interiorly | apps/app/app/actions/users/get.ts | TypeScript | d0ef841605610408f56ab9d7dde3d6a1af7e6d58ac299b329ae75b8edde363ec | 0 | 541 |
'use server';
import {
type OrganizationMembership,
auth,
clerkClient,
} from '@interiorly/auth/server';
import Fuse from 'fuse.js';
const getName = (user: OrganizationMembership): string | undefined => {
let name = user.publicUserData?.firstName;
if (name && user.publicUserData?.lastName) {
name = `${... | interiorly | apps/app/app/actions/users/search.ts | TypeScript | 284f5c90d4dbcba5fd19a0a67e8f5c561d972d88d71e7a82a72c8b0b04046c87 | 0 | 331 |
import { auth, currentUser } from '@interiorly/auth/server';
import { authenticate } from '@interiorly/collaboration/auth';
import { tailwind } from '@interiorly/tailwind-config';
const COLORS = [
tailwind.theme.colors.red[500],
tailwind.theme.colors.orange[500],
tailwind.theme.colors.amber[500],
tailwind.them... | interiorly | apps/app/app/api/collaboration/auth/route.ts | TypeScript | 007cb9666153ff0240805a36bea3e58cc35827fd0b770bf97c592a17b08ddd78 | 0 | 366 |
'use client';
import { useOthers, useSelf } from '@interiorly/collaboration/hooks';
import {
Avatar,
AvatarFallback,
AvatarImage,
} from '@interiorly/design-system/components/ui/avatar';
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from '@interiorly/design-system/components/ui/tooltip';
import { tai... | interiorly | apps/app/components/collaboration/avatar-stack.tsx | TypeScript | 974f90e1b327c9e4bce07f09f4f229983a96c2aa07b02967f033e825c29d8bc6 | 0 | 410 |
'use client';
import { useMyPresence, useOthers } from '@interiorly/collaboration/hooks';
import { useEffect } from 'react';
const Cursor = ({
name,
color,
x,
y,
}: {
name: string | undefined;
color: string;
x: number;
y: number;
}) => (
<div
className="pointer-events-none absolute top-0 left-0 ... | interiorly | apps/app/components/collaboration/cursors.tsx | TypeScript | ea811fd69272ea4412e4c42b73ec10e940346cd881ac446f8ab0e753ab214ec7 | 0 | 703 |
import type { DocumentType } from '@interiorly/collaboration/types';
import { CanvasIcon, File02Icon, NoteIcon } from 'hugeicons-react';
const DocumentTypeIcon = ({ type }: { type: DocumentType }) => {
switch (type) {
case 'text':
return <File02Icon className="size-5" />;
case 'canvas':
return <C... | interiorly | apps/app/components/collaboration/document-type-icon.tsx | TypeScript | ce95447eec2d6fee4d22d34498ecc01a545d10b1ac87256eb4a54847b1a6c489 | 0 | 128 |
'use client';
import { analytics } from '@interiorly/analytics/posthog/client';
import { useUser } from '@interiorly/auth/client';
import { usePathname, useSearchParams } from 'next/navigation';
import { useEffect, useRef } from 'react';
export const PostHogIdentifier = () => {
const { user } = useUser();
const i... | interiorly | apps/app/components/common/posthog-identifier.tsx | TypeScript | 93e5dc6a54bda10df669ce303900477fca82eb12adf91bdd605d332a511646e4 | 0 | 286 |
'use client';
import { cn } from '@interiorly/design-system/lib/utils';
import { ComputerSettingsIcon, Moon02Icon, Sun03Icon } from 'hugeicons-react';
import { motion } from 'motion/react';
import { useTheme } from 'next-themes';
import { useEffect, useState } from 'react';
export function ThemeSwitcher() {
const {... | interiorly | apps/app/components/common/theme-switcher.tsx | TypeScript | cd7b58d5a44d35f8a7ebee95802c28520389c01609a03cc85daf18bb385721a2 | 0 | 409 |
import { Tooltip } from '@interiorly/design-system/components/ui/tooltip';
import {
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from '@interiorly/design-system/components/ui/tooltip';
import type React from 'react';
const TooltipItem = ({
children,
tooltip,
}: { children: React.ReactNode; tooltip?: st... | interiorly | apps/app/components/common/tooltip-item.tsx | TypeScript | 4abe7619e4cf63f878e9c29c3d4af55f823a39213686a88c4671d7a3f5cf75c6 | 0 | 134 |
'use client';
import { createDocument } from '@/lib/actions';
import { zodResolver } from '@hookform/resolvers/zod';
import { useOrganization, useUser } from '@interiorly/auth/client';
import { Button } from '@interiorly/design-system/components/ui/button';
import {
Dialog,
DialogContent,
DialogDescription,
Di... | interiorly | apps/app/components/dashboard/create-document-dialog.tsx | TypeScript | 0f575b3fcebd725a11dda144dc34cbf26432430441ca4eb6fb8b36248ef77cf7 | 0 | 896 |
simple writing surface',
Icon: NoteIcon,
},
];
const currentDocumentType = documentTypes.find(({ value }) => value === type);
const currentDocumentTypeIcon = currentDocumentType ? (
<currentDocumentType.Icon className="size-5 text-secondary-foreground" />
) : null;
return (
<Dialog open={o... | interiorly | apps/app/components/dashboard/create-document-dialog.tsx | TypeScript | 5ffde7d85c9fa0e5872b5c1189f22dc5662761428a256711a90263d46f374d7e | 1 | 896 |
}
onCheckedChange={field.onChange}
/>
</FormControl>
</FormItem>
)}
/>
</div>
<DialogFooter className="rounded-b-lg bg-background p-4">
<div className="flex items-cent... | interiorly | apps/app/components/dashboard/create-document-dialog.tsx | TypeScript | 40b7dacddd906cd0e360f6bdfdc5d84fef26956e16a0392b02267a38457ceb87 | 2 | 148 |
import {
Breadcrumb,
BreadcrumbItem,
BreadcrumbLink,
BreadcrumbList,
BreadcrumbPage,
BreadcrumbSeparator,
} from '@interiorly/design-system/components/ui/breadcrumb';
import { Separator } from '@interiorly/design-system/components/ui/separator';
import { SidebarTrigger } from '@interiorly/design-system/comp... | interiorly | apps/app/components/dashboard/header.tsx | TypeScript | 84c9ae6968456498b4271ae9f03377f860ec22155fd6c5f00658d701013df36a | 0 | 326 |
import {
Button,
buttonVariants,
} from '@interiorly/design-system/components/ui/button';
import {
Popover,
PopoverContent,
PopoverTrigger,
} from '@interiorly/design-system/components/ui/popover';
import { Separator } from '@interiorly/design-system/components/ui/separator';
import {
Tooltip,
TooltipCont... | interiorly | apps/app/components/dashboard/help-popover.tsx | TypeScript | 575ba34b7235f94df2c5ef2c033eee333d80980998bfdacc6b7892ccfe78b033 | 0 | 896 |
-48 bg-secondary p-0"
>
<div className="flex flex-col">
{items.map((group, groupIndex) => (
<div key={groupIndex} className="flex flex-col">
<div className="flex flex-col p-1">
{group.section.map((item, itemIndex) => (
<Po... | interiorly | apps/app/components/dashboard/help-popover.tsx | TypeScript | ee530460cb53994b41ea9870fdd85331d78ccfb84b03b6d7948e75620c11135c | 1 | 282 |
import { useInboxNotifications } from '@interiorly/collaboration/hooks';
export function InboxNotifications() {
const { inboxNotifications } = useInboxNotifications();
return (
<div className="flex flex-col gap-2">
{inboxNotifications.length}
{inboxNotifications.map((inboxNotification) => (
... | interiorly | apps/app/components/dashboard/notifications.tsx | TypeScript | 695e15848f8665f8b50bf53f93789ca683218f8abeca6e2eeaac84d91e25fa8e | 0 | 119 |
'use client';
import * as React from 'react';
import { getDocuments } from '@/lib/actions';
import { useDocumentsFunctionSWR } from '@/lib/hooks';
import type { Document } from '@interiorly/collaboration/types';
import {
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
... | interiorly | apps/app/components/dashboard/quick-search-dialog.tsx | TypeScript | 0f2ebae0a2af34843ff3d55fdc31178a8c9507d57884d70d267945c9cbd9c47a | 0 | 739 |
import { useUser } from '@interiorly/auth/client';
import {
Avatar,
AvatarFallback,
AvatarImage,
} from '@interiorly/design-system/components/ui/avatar';
import {} from '@interiorly/design-system/components/ui/dialog';
import {
Popover,
PopoverTrigger,
} from '@interiorly/design-system/components/ui/popover';... | interiorly | apps/app/components/dashboard/user-profile-popover.tsx | TypeScript | 5ab701267cb393feb2bab7cea19b13f3fa49dfda8d2746897fc4cef29a59a747 | 0 | 342 |
.tl-theme__light {
--color-background: hsl(var(--background));
--color-panel: hsl(var(--muted));
}
.tl-theme__dark {
--color-background: hsl(var(--background));
--color-text-0: hsl(var(--primary));
--color-panel: hsl(var(--secondary));
--color-low: hsl(var(--secondary));
--color-divider: hsl(var(--muted)... | interiorly | apps/app/components/dashboard/canvas/canvas.css | CSS | 922dd59983520a25916cf5fc2076b38b3461ea7286669dd53ebb89466ba5776b | 0 | 216 |
'use client';
import 'tldraw/tldraw.css';
import './canvas.css';
import { AvatarStack } from '@/components/collaboration/avatar-stack';
import { Button } from '@interiorly/design-system/components/ui/button';
import { Separator } from '@interiorly/design-system/components/ui/separator';
import { useSidebar } from '@in... | interiorly | apps/app/components/dashboard/canvas/canvas.tsx | TypeScript | 2e5eaf93a0dbd047ce78598939e8e0836aea0f1508b711c748e79944610e88db | 0 | 567 |
export { Canvas } from './canvas';
| interiorly | apps/app/components/dashboard/canvas/index.ts | TypeScript | fe6235ebcf3c0ee450e78025f8db7bf4504111f0c79c3465e0b152c8033b60f6 | 0 | 11 |
# tldraw license
This License from tldraw, Inc. (“tldraw”) governs your use of the accompanying
Software. By using the Software, you accept the terms of this License. The
tldraw software is copyrighted by tldraw Inc.
## Permissions
Subject to the following conditions, you are permitted to:
- Use the Software in you... | interiorly | apps/app/components/dashboard/canvas/LICENSE.md | Markdown | 37a9a927b94e013dd7fcaabb3f38a48a322f009db2686b709d76a36b91209ce2 | 0 | 610 |
import { useRoom } from '@liveblocks/react/suspense';
import { useEffect, useState } from 'react';
import {
DocumentRecordType,
type IndexKey,
InstancePresenceRecordType,
PageRecordType,
type TLAnyShapeUtilConstructor,
type TLDocument,
type TLInstancePresence,
type TLPageId,
type TLRecord,
type TLSt... | interiorly | apps/app/components/dashboard/canvas/useStorageStore.ts | TypeScript | b8c1697652becf6b71b93dfb678d190acd122f3079ab7aeb80bc7b1322b4cf44 | 0 | 896 |
-ignore lint/style/useDefaultSwitchClause: <explanation>
switch (type) {
// Object deleted from Liveblocks, remove from tldraw
case 'delete': {
toRemove.push(id as TLRecord['id']);
break;
}
/... | interiorly | apps/app/components/dashboard/canvas/useStorageStore.ts | TypeScript | b947449ccd06cad69b5c124dec76a6af3774424fa92df506b2b81d698a162812 | 1 | 736 |
'use client';
import { AvatarStack } from '@/components/collaboration/avatar-stack';
import { useOrganization } from '@interiorly/auth/client';
import type { Document } from '@interiorly/collaboration/types';
import { Badge } from '@interiorly/design-system/components/ui/badge';
import {
Breadcrumb,
BreadcrumbItem,... | interiorly | apps/app/components/dashboard/editor/editor-layout.tsx | TypeScript | fd11e938129a9f9f53ad37c2c0cd160592017fa0ac5cae7801db02b8db8acdb9 | 0 | 896 |
</Button>
)}
<div className="flex items-center space-x-4">
<h1 className="font-bold text-4xl tracking-tight">
{document.name}
</h1>
</div>
</div>
<div className="mx-auto mt-4 w-full max-w-4xl">
<TextEditor setCharsCount={setCh... | interiorly | apps/app/components/dashboard/editor/editor-layout.tsx | TypeScript | 95d909da2f6192a2a88039c7b4546de59d92b4349c9cd57867457cf7e8b233fe | 1 | 107 |
import {
AIHighlight,
CharacterCount,
CodeBlockLowlight,
Color,
CustomKeymap,
GlobalDragHandle,
HighlightExtension,
HorizontalRule,
MarkdownExtension,
Mathematics,
Placeholder,
StarterKit,
TaskItem,
TaskList,
TextStyle,
TiptapLink,
TiptapUnderline,
Twitter,
Youtube,
} from 'novel/e... | interiorly | apps/app/components/dashboard/editor/extensions.tsx | TypeScript | 6663acfab7f6e9ae10dc3e105b45436155c1d4e0b4f10bf643c81670064ed9cf | 0 | 730 |
'use client';
import { defaultExtensions } from '@/components/dashboard/editor/extensions';
import GenerativeMenuSwitch from '@/components/dashboard/editor/generative/generative-menu-switch';
import { AddCommentSelector } from '@/components/dashboard/editor/selectors/add-comment-selector';
import { ColorSelector } fro... | interiorly | apps/app/components/dashboard/editor/index.tsx | TypeScript | 2ae928f781415a45f80b400b444c90560b0aaaed754c3fa346057caed997fc5b | 0 | 896 |
-foreground text-xs">
{item.description}
</p>
</div>
</EditorCommandItem>
))}
</EditorCommandList>
</EditorCommand>
<GenerativeMenuSwitch open={openAI} onOpenChange={setOpenAI}>
<Separator orientation="v... | interiorly | apps/app/components/dashboard/editor/index.tsx | TypeScript | fd7b98819b761e5116d6ba61b26df6f0c391ad9880773cc0995f8a15ad7a1186 | 1 | 172 |
import {
Heading01Icon,
Heading02Icon,
Heading03Icon,
LeftToRightListBulletIcon,
LeftToRightListNumberIcon,
QuoteDownIcon,
SourceCodeIcon,
TaskAdd01Icon,
TextIcon,
TwitterIcon,
YoutubeIcon,
} from 'hugeicons-react';
import { createSuggestionItems } from 'novel/extensions';
import { Command, render... | interiorly | apps/app/components/dashboard/editor/slash-command.tsx | TypeScript | d81299befc1b2f2889660067ad27ed369331516d2bca1c8a7b15f41dbd66a891 | 0 | 896 |
.deleteRange(range).toggleOrderedList().run();
},
},
{
title: 'Quote',
description: 'Capture a quote.',
searchTerms: ['blockquote'],
icon: <QuoteDownIcon size={18} />,
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
command: ({ editor, range }: { editor: any; range: any }) =... | interiorly | apps/app/components/dashboard/editor/slash-command.tsx | TypeScript | 21df035eebed5c035c7bfb1775eaaaed699b5168a7291b93c20f514ea1e349d7 | 1 | 795 |
/* Placeholder in first line */
p.tiptap-empty:first-child::before {
color: #adb5bd;
content: attr(data-placeholder);
float: left;
height: 0;
pointer-events: none;
}
.tiptap-paragraph {
margin: var(--space-8) 0;
}
.tiptap-hr {
margin: var(--space-14) 0;
border-bottom: 1px solid var(--color-border);
}
... | interiorly | apps/app/components/dashboard/editor/text-editor.css | CSS | 17d77663a9c17789d06098cbab6d009beef3b94e4e90ea77dbe6438212abe939 | 0 | 896 |
-item
.tiptap-list-item
.tiptap-list-item {
list-style: disc;
}
.tiptap-ordered-list .tiptap-list-item {
list-style: decimal;
}
.tiptap-ordered-list .tiptap-list-item .tiptap-list-item,
.tiptap-ordered-list
.tiptap-list-item
.tiptap-list-item
.tiptap-list-item
.tiptap-list-item
.tiptap-list-item {
... | interiorly | apps/app/components/dashboard/editor/text-editor.css | CSS | 02cd7ab39a8b79adcb24660857d0ec7eb470603f61779339e64700f8fd186d41 | 1 | 581 |
.container {
display: flex;
flex-direction: column;
background: var(--color-surface);
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.editorHeader {
top: 0;
left: 0;
right: 0;
flex: 0 0;
display: flex;
justify-content: space-between;
align-items: flex-start;
background: var... | interiorly | apps/app/components/dashboard/editor/text-editor.module.css | CSS | 25451fe30ef9db89b2ac2c12e0fb3de9cdcd15d72ba81702204781bde14028b7 | 0 | 372 |
import {
AnchoredThreads,
FloatingComposer,
FloatingThreads,
} from '@liveblocks/react-tiptap';
import { useThreads } from '@liveblocks/react/suspense';
import { useEditor } from 'novel';
import { useSyncExternalStore } from 'react';
export function Threads() {
const { editor } = useEditor();
const isMobile ... | interiorly | apps/app/components/dashboard/editor/threads.tsx | TypeScript | 9b716d283bb30fa43feb264f9ddc4d88698e9655f6010c7e5a4a2e66a85e2397 | 0 | 303 |
import AiEditingIcon from '@/components/icons/ai-editing-stroke-rounded';
import {
CommandGroup,
CommandItem,
CommandSeparator,
} from '@interiorly/design-system/components/ui/command';
import { Delete02Icon, Tick02Icon } from 'hugeicons-react';
import { useEditor } from 'novel';
const AICompletionCommands = ({
... | interiorly | apps/app/components/dashboard/editor/generative/ai-completion-command.tsx | TypeScript | 1ef1e30745bf6d39c36ddbf0480516e8c5d26ffa0dcd080fcdde6f46da2ac841 | 0 | 389 |
import AiEditingIcon from '@/components/icons/ai-editing-stroke-rounded';
import {
CommandGroup,
CommandItem,
CommandSeparator,
} from '@interiorly/design-system/components/ui/command';
import {
AiEraserIcon,
ArrowTurnForwardIcon,
SortByDown01Icon,
SortByUp01Icon,
} from 'hugeicons-react';
import { useEdi... | interiorly | apps/app/components/dashboard/editor/generative/ai-selector-commands.tsx | TypeScript | 039d7fa7ba03dffb89a31a7cd2df0fd35f2586285c08f7b539c4d3d941008182 | 0 | 515 |
'use client';
import AICompletionCommands from '@/components/dashboard/editor/generative/ai-completion-command';
import AISelectorCommands from '@/components/dashboard/editor/generative/ai-selector-commands';
import { useCompletion } from '@interiorly/ai/lib/react';
import { Button } from '@interiorly/design-system/co... | interiorly | apps/app/components/dashboard/editor/generative/ai-selector.tsx | TypeScript | cd2bb020216a77da50583f92f10c12f9eeaea1e9db1bddb20b721aaeca552891 | 0 | 896 |
{
body: { option: 'zap', command: inputValue },
}).then(() => setInputValue(''));
}}
>
<ArrowUp01Icon className="h-4 w-4" />
</Button>
</div>
{hasCompletion ? (
<AICompletionCommands
onDis... | interiorly | apps/app/components/dashboard/editor/generative/ai-selector.tsx | TypeScript | 3d51909466b7b9f3544e9c216b2792825385c8de2ac57e015118dbfe39f427f7 | 1 | 155 |
import { AISelector } from '@/components/dashboard/editor/generative/ai-selector';
import { Button } from '@interiorly/design-system/components/ui/button';
import { AiMagicIcon } from 'hugeicons-react';
import { EditorBubble, useEditor } from 'novel';
import { removeAIHighlight } from 'novel/extensions';
import { type ... | interiorly | apps/app/components/dashboard/editor/generative/generative-menu-switch.tsx | TypeScript | afb038fccb1d99387400ce2be41db57c20f8f7847276be72eb6eca457001157f | 0 | 385 |
import { Button } from '@interiorly/design-system/components/ui/button';
import { cn } from '@interiorly/design-system/lib/utils';
import { CommentAdd01Icon } from 'hugeicons-react';
import { useEditor } from 'novel';
export const AddCommentSelector = () => {
const { editor } = useEditor();
if (!editor) {
ret... | interiorly | apps/app/components/dashboard/editor/selectors/add-comment-selector.tsx | TypeScript | cccb857246369fecca05354bb9d83f73f6d629591c03aab16f1674386a171e28 | 0 | 208 |
import { EditorBubbleItem, useEditor } from 'novel';
import { Button } from '@interiorly/design-system/components/ui/button';
import {
Popover,
PopoverContent,
PopoverTrigger,
} from '@interiorly/design-system/components/ui/popover';
import { ArrowDown01Icon, Tick02Icon } from 'hugeicons-react';
export interfac... | interiorly | apps/app/components/dashboard/editor/selectors/color-selector.tsx | TypeScript | d7b0ac780e30dc0b5efed6f59901b0aa28a94309f6a81e47a9be2ad6b65600f4 | 0 | 896 |
.setColor(color || '')
.run();
onOpenChange(false);
}}
className="flex cursor-pointer items-center justify-between px-2 py-1 text-sm hover:bg-accent"
>
<div className="flex items-center gap-2">
<div
... | interiorly | apps/app/components/dashboard/editor/selectors/color-selector.tsx | TypeScript | d9de53c0daf03a26ecad50005ec097dfc5f5b63a14fe1c63c37db458fecba48a | 1 | 374 |
import { Button } from '@interiorly/design-system/components/ui/button';
import {
Popover,
PopoverContent,
PopoverTrigger,
} from '@interiorly/design-system/components/ui/popover';
import { cn } from '@interiorly/design-system/lib/utils';
import { Delete02Icon, Tick02Icon } from 'hugeicons-react';
import { useEdi... | interiorly | apps/app/components/dashboard/editor/selectors/link-selector.tsx | TypeScript | f621f5cc8f733fdb7809aba56dbccb9e6bd96565a8857212776d1e27bd7245d4 | 0 | 782 |
import { Button } from '@interiorly/design-system/components/ui/button';
import { cn } from '@interiorly/design-system/lib/utils';
import { CalculatorIcon } from 'hugeicons-react';
import { useEditor } from 'novel';
export const MathSelector = () => {
const { editor } = useEditor();
if (!editor) {
return null... | interiorly | apps/app/components/dashboard/editor/selectors/math-selector.tsx | TypeScript | dfbd9fcdd68a00f669f46691d222428ae2ea8d36845d40f5b62cdfec51dd93a0 | 0 | 262 |
import { EditorBubbleItem, useEditor } from 'novel';
import { Button } from '@interiorly/design-system/components/ui/button';
import {
Popover,
PopoverContent,
PopoverTrigger,
} from '@interiorly/design-system/components/ui/popover';
import {
ArrowDown01Icon,
Heading01Icon,
Heading02Icon,
Heading03Icon,
... | interiorly | apps/app/components/dashboard/editor/selectors/node-selector.tsx | TypeScript | 75bd237049da7314d3411c97c84b0baf117f958208fffd2d86142b7f3aaf7bde | 0 | 896 |
(open: boolean) => void;
}
export const NodeSelector = ({ open, onOpenChange }: NodeSelectorProps) => {
const { editor } = useEditor();
if (!editor) {
return null;
}
const activeItem = items.filter((item) => item.isActive(editor)).pop() ?? {
name: 'Multiple',
};
return (
<Popover modal={true} ... | interiorly | apps/app/components/dashboard/editor/selectors/node-selector.tsx | TypeScript | 336eb7061c69dc3ab26f02555837d20bed27cc9f22a43413d83a3ca06425353a | 1 | 402 |
import { Button } from '@interiorly/design-system/components/ui/button';
import { cn } from '@interiorly/design-system/lib/utils';
import {
SourceCodeIcon,
TextBoldIcon,
TextItalicIcon,
TextStrikethroughIcon,
TextUnderlineIcon,
} from 'hugeicons-react';
import { EditorBubbleItem, useEditor } from 'novel';
imp... | interiorly | apps/app/components/dashboard/editor/selectors/text-buttons.tsx | TypeScript | 0cbae0487b0c10e295ae642cf21f9eba54cb2501f7c768dee5d62bc9a11ac797 | 0 | 543 |
'use client';
import {
Carousel,
type CarouselApi,
CarouselContent,
CarouselItem,
CarouselNext,
CarouselPrevious,
} from '@interiorly/design-system/components/ui/carousel';
import { BookOpen01Icon } from 'hugeicons-react';
import Image from 'next/image';
import Link from 'next/link';
import React from 'rea... | interiorly | apps/app/components/dashboard/home/learn-carousel.tsx | TypeScript | 237711224c4f27ea4c87525a6b8da8a97592d429c4d1f3246ea08425cf3a66ae | 0 | 803 |
'use client';
import {
Carousel,
type CarouselApi,
CarouselContent,
CarouselItem,
CarouselNext,
CarouselPrevious,
} from '@interiorly/design-system/components/ui/carousel';
import Image from 'next/image';
import Link from 'next/link';
import React from 'react';
interface LearnCarouselProps {
items: {
... | interiorly | apps/app/components/dashboard/home/template-carousel.tsx | TypeScript | a963355cdb35f1535d67ac30dfc1f1df206dda5bb4f08987d459692a6d385429 | 0 | 827 |
export const AiContentGenerator02Icon = (
props: React.SVGProps<SVGSVGElement>
) => (
// biome-ignore lint/a11y/noSvgWithoutTitle: <explanation>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width={24}
height={24}
fill={'none'}
{...props}
>
<path
d="M11 20C7.25027... | interiorly | apps/app/components/icons/ai-content-generator-02.tsx | TypeScript | 2c583a1a2add7a8ef7326a35b0555be5a382de0a64ef050c203d73eed31c14aa | 0 | 355 |
import type React from 'react';
const AiEditingIcon = (props: React.SVGProps<SVGSVGElement>) => (
// biome-ignore lint/a11y/noSvgWithoutTitle: <explanation>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width={24}
height={24}
fill={'none'}
{...props}
>
<path
d="M6.... | interiorly | apps/app/components/icons/ai-editing-stroke-rounded.tsx | TypeScript | c2d384ef6a4bd4fd758a2aa8c6210ee6a0ac7b3f1973f1773c118422ddf967a7 | 0 | 346 |
import type { SVGProps } from 'react';
export const AiFileIcon = (props: SVGProps<SVGSVGElement>) => (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width={24}
height={24}
fill="none"
aria-label="AI File"
{...props}
>
<title>AI File</title>
<path
d="M19 11.00... | interiorly | apps/app/components/icons/ai-file-icon.tsx | TypeScript | 63d75644b29430c0ca5b09051763e6b8e84464daa690c7678725b9d1d0325198 | 0 | 343 |
import { buttonVariants } from '@interiorly/design-system/components/ui/button';
import { cn } from '@interiorly/design-system/lib/utils';
import TooltipItem from '../common/tooltip-item';
export const IconWrapper = ({
children,
className,
tooltip,
}: {
children: React.ReactNode;
className?: string;
toolti... | interiorly | apps/app/components/navigation/icon-wrapper.tsx | TypeScript | ad8f851e8cdba4f31bab8cfcdd4e9a62a7d292c13135e1d0d13bfa1137642e62 | 0 | 166 |
import { WORKSPACE_NAV } from '@/lib/constants/navigation';
import { useRouter } from 'next/navigation';
import { useCallback, useEffect } from 'react';
const KbdShortcutHandler = () => {
const router = useRouter();
const handleKeyDown = useCallback(
(e: KeyboardEvent) => {
if (!e.metaKey && !e.ctrlKey)... | interiorly | apps/app/components/navigation/kbd-shortcut-handler.tsx | TypeScript | 11755a4b4d3b7abf949b73b3eb089f6334956f6b338ed8834920d0bc657cffef | 0 | 207 |
import { buttonVariants } from '@interiorly/design-system/components/ui/button';
import {
Collapsible,
CollapsibleContent,
CollapsibleTrigger,
} from '@interiorly/design-system/components/ui/collapsible';
import {
SidebarMenuButton,
SidebarMenuItem,
SidebarMenuSub,
} from '@interiorly/design-system/componen... | interiorly | apps/app/components/navigation/sidebar-document-button.tsx | TypeScript | a1fb7c4d2cef193e0a194a4e2a51e25598bf991edb70c979099bf884061dfb96 | 0 | 649 |
'use client';
import { usePaginatedDocumentsSWR } from '@/lib/hooks';
import { SidebarMenu } from '@interiorly/design-system/components/ui/sidebar';
import { usePathname } from 'next/navigation';
import { useMemo } from 'react';
import DocumentTypeIcon from '../collaboration/document-type-icon';
import { GlobalSidebarS... | interiorly | apps/app/components/navigation/sidebar-documents.tsx | TypeScript | 5bdd4f716df8e42470076b54ffcea05e9bbb25b4fbfd637fb68c471be00201ed | 0 | 356 |
'use client';
import { UserProfilePopover } from '@/components/user/user-profile-popover';
import {} from '@/lib/actions';
import { WORKSPACE_NAV } from '@/lib/constants/navigation';
import { useOrganization, useUser } from '@interiorly/auth/client';
import { Button } from '@interiorly/design-system/components/ui/butto... | interiorly | apps/app/components/navigation/sidebar.tsx | TypeScript | 8fedde361a5c7ae708fd38a0878d2ed9bc24a8fd08f543c27fbe16acad543200 | 0 | 896 |
}
>
<div className="flex cursor-pointer items-center justify-between">
<div className="flex items-center gap-2">
<SearchList01Icon className="h-5 w-5" />
<span>Quick Find</span>
</div>
... | interiorly | apps/app/components/navigation/sidebar.tsx | TypeScript | 11b1f017aeb7beb33a9e0c4f802cef4c6c37f2d326a21b42c1d39d0f9cc8fa37 | 1 | 692 |
import { Badge } from '@interiorly/design-system/components/ui/badge';
import { Button } from '@interiorly/design-system/components/ui/button';
import { Input } from '@interiorly/design-system/components/ui/input';
import { cn } from '@interiorly/design-system/lib/utils';
import { Cancel01Icon } from 'hugeicons-react';... | interiorly | apps/app/components/organization/invite-member-input.tsx | TypeScript | 0b462107837c6ba111929d1c20305478292dbf8c41565699c7ed3abcaca91aac | 0 | 754 |
import { Button } from '@interiorly/design-system/components/ui/button';
import { cn } from '@interiorly/design-system/lib/utils';
import OrganizationImage from './organization-image';
interface OrganizationButtonProps {
organization: {
id: string;
imageUrl: string;
name: string;
};
onClick?: () => v... | interiorly | apps/app/components/organization/organization-button.tsx | TypeScript | bd642a35d7fe001b026eaff946c49c46cca36df667daade003ca9861977e9690 | 0 | 230 |
import { Skeleton } from '@interiorly/design-system/components/ui/skeleton';
import { cn } from '@interiorly/design-system/lib/utils';
import { Loading03Icon } from 'hugeicons-react';
import Image from 'next/image';
import { type HTMLAttributes, Suspense } from 'react';
interface OrganizationImageProps extends HTMLAtt... | interiorly | apps/app/components/organization/organization-image.tsx | TypeScript | d61338a1e1355b734801a2c0c01094fd906660f57772cbd8f37f2b0b231abb7f | 0 | 302 |
'use client';
import { InputTags } from '@/components/organization/invite-member-input';
import { useOrganization } from '@interiorly/auth/client';
import { Button } from '@interiorly/design-system/components/ui/button';
import {
Dialog,
DialogContent,
DialogDescription,
DialogFooter,
DialogTitle,
DialogTr... | interiorly | apps/app/components/organization/organization-invite-members-dialog.tsx | TypeScript | 07647a443e4193e8ba6d991c544129721008ae0905999691522eab2ba511d76d | 0 | 896 |
div>
<Link
href="/"
target="_blank"
className="flex items-center justify-center gap-2 rounded-b-md border-t p-1 px-2 text-muted-foreground text-xs hover:bg-muted"
>
<HelpCircleIcon className="h-3 w-3" />
<span>
Learn more about invites, roles... | interiorly | apps/app/components/organization/organization-invite-members-dialog.tsx | TypeScript | 0865989656713785c5c60ce63d0c63d33b5843dcd938d54eb9c9ced5e77a2d4e | 1 | 107 |
'use client';
import OrganizationImage from '@/components/organization/organization-image';
import {
OrganizationProfile,
useOrganization,
useOrganizationList,
} from '@interiorly/auth/client';
import {
Button,
buttonVariants,
} from '@interiorly/design-system/components/ui/button';
import {
Dialog,
Dial... | interiorly | apps/app/components/organization/organization-popover.tsx | TypeScript | 47b067ec621e382028296ada27d1da8463fb9ffc3ebeb126e2cac5cc8192eeae | 0 | 896 |
>
<DialogContent className="min-w-fit border-none bg-transparent">
<DialogTitle className="sr-only">
Organization Settings
</DialogTitle>
<OrganizationProfile
routing="hash"
afterLeaveOrgani... | interiorly | apps/app/components/organization/organization-popover.tsx | TypeScript | a0c316dc9b9152c67ef558cf38233af61512e2fa942e04ea4e1e3834e5ff9528 | 1 | 325 |
'use client';
import {
CreateOrganization,
useOrganization,
useOrganizationList,
} from '@interiorly/auth/client';
import { Button } from '@interiorly/design-system/components/ui/button';
import {
Dialog,
DialogContent,
DialogTitle,
DialogTrigger,
} from '@interiorly/design-system/components/ui/dialog';
i... | interiorly | apps/app/components/organization/organization-selector.tsx | TypeScript | 871e21d4ea47a9336339ad76452e102a9dba3cff36b1ac77935d715b8d74293c | 0 | 728 |
'use client';
import { InitialDocumentProvider } from '@/lib/hooks';
import {
createInitialPresence,
createInitialStorage,
} from '@/liveblocks.config';
import type { Document } from '@interiorly/collaboration/types/document';
import { RoomProvider } from '@liveblocks/react/suspense';
import type { ReactNode } fro... | interiorly | apps/app/components/provider/documents-provider.tsx | TypeScript | 55f23222ba87c196740b67a0ed1512472788bd307547255539d1901dd13c159b | 0 | 173 |
'use client';
import { getUsers } from '@/app/actions/users/get';
import { searchUsers } from '@/app/actions/users/search';
import { authorizeLiveblocks } from '@/lib/actions/authorizeLiveblocks';
import { LiveblocksProvider as _LiveblocksProvider } from '@liveblocks/react';
import Router from 'next/router';
import ty... | interiorly | apps/app/components/provider/liveblocks-provider.tsx | TypeScript | a23fd54d9af98f213442c2137f9060dac618d6233734fd532d9a9ee74cf2c626 | 0 | 322 |
import { Skeleton } from '@interiorly/design-system/components/ui/skeleton';
const DocumentListSkeleton = () => {
return (
<>
<div className="absolute z-10 h-full w-full bg-gradient-to-t from-secondary to-transparent" />
{Array.from({ length: 8 }).map((_, index) => (
<Skeleton key={index} cla... | interiorly | apps/app/components/skeletons/document-list-skeleton.tsx | TypeScript | 9466df527af3ee335eac66255580b5b6a603e4a91a8d8f44d5d9b8bc36e5861b | 0 | 118 |
'use client';
import { Skeleton } from '@interiorly/design-system/components/ui/skeleton';
const EditorLayoutSkeleton = () => {
return (
<div className="flex w-full flex-1 flex-col">
<div className="flex h-10 items-center justify-between bg-background px-1 text-sm">
<div className="flex items-cente... | interiorly | apps/app/components/skeletons/editor-layout-skeleton.tsx | TypeScript | 3da50c414b0dfaf01177838fcbe11ac79eeedb03853ed3728088c12d97b6d3dd | 0 | 506 |
'use client';
import {
Carousel,
type CarouselApi,
CarouselContent,
CarouselItem,
CarouselNext,
CarouselPrevious,
} from '@interiorly/design-system/components/ui/carousel';
import { Skeleton } from '@interiorly/design-system/components/ui/skeleton';
import { useEffect, useState } from 'react';
interface L... | interiorly | apps/app/components/skeletons/learn-carousel-skeleton.tsx | TypeScript | 9a608df4a475efb4ea65b6e6c87d46782159d15c4206110d98ed725cd350f10a | 0 | 737 |
'use client';
import {
Sidebar,
SidebarContent,
SidebarFooter,
SidebarGroup,
SidebarGroupContent,
SidebarGroupLabel,
SidebarHeader,
SidebarMenu,
SidebarMenuItem,
} from '@interiorly/design-system/components/ui/sidebar';
import { Skeleton } from '@interiorly/design-system/components/ui/skeleton';
impo... | interiorly | apps/app/components/skeletons/sidebar-skeleton.tsx | TypeScript | 2cdca7700d76087d5c5508d76a065409c5c2544e3ec8c5a5b52bbf653eba7988 | 0 | 513 |
'use client';
import {
Carousel,
type CarouselApi,
CarouselContent,
CarouselItem,
CarouselNext,
CarouselPrevious,
} from '@interiorly/design-system/components/ui/carousel';
import { Skeleton } from '@interiorly/design-system/components/ui/skeleton';
import { useEffect, useState } from 'react';
interface T... | interiorly | apps/app/components/skeletons/template-carousel-skeleton.tsx | TypeScript | f85e4cd4be6a506b0171f73cd5b2838d99905f239e01233f8ed9ec728a94392f | 0 | 721 |
import { SignOutButton } from '@interiorly/auth/client';
import { Button } from '@interiorly/design-system/components/ui/button';
import {
Dialog,
DialogClose,
DialogContent,
DialogDescription,
DialogFooter,
DialogTitle,
DialogTrigger,
} from '@interiorly/design-system/components/ui/dialog';
import { Logo... | interiorly | apps/app/components/user/user-logout-dialog.tsx | TypeScript | 846f78a03c567be29e81b9d18c1dad119044e4bfc07dcd6d0f677c8b759245cb | 0 | 321 |
import { UserProfile, useUser } from '@interiorly/auth/client';
import {
Avatar,
AvatarFallback,
AvatarImage,
} from '@interiorly/design-system/components/ui/avatar';
import {
Button,
buttonVariants,
} from '@interiorly/design-system/components/ui/button';
import {
Dialog,
DialogContent,
DialogTitle,
... | interiorly | apps/app/components/user/user-profile-popover.tsx | TypeScript | c32dd4b7ea83dfead77074b0a0bfc19491c567cb3492a8b3c6f5daece68523f6 | 0 | 742 |
'use server';
import { getDraftsGroupName } from '@/lib/utils';
import { currentUser } from '@interiorly/auth/server';
import { liveblocks } from '@interiorly/collaboration/liveblocks.server.config';
import type { User } from '@interiorly/collaboration/types';
import { colors } from '../data/colors';
export async fun... | interiorly | apps/app/lib/actions/authorizeLiveblocks.ts | TypeScript | 98d69a983aecd982b026ebf16b9fa96b5c52866814d4dca3a3b58d6a77d8c88d | 0 | 373 |
'use server';
import { buildDocument } from '@/lib/utils';
import { auth, currentUser } from '@interiorly/auth/server';
import { DOCUMENT_URL } from '@interiorly/collaboration/constants';
import { liveblocks } from '@interiorly/collaboration/liveblocks.server.config';
import type {
Document,
DocumentGroup,
Docum... | interiorly | apps/app/lib/actions/createDocument.ts | TypeScript | 11c2c8f78b0bdf16d4a16250666d3dab731450e18b638e142f658ca02d0929c8 | 0 | 639 |
'use server';
import { userAllowedInRoom } from '@/lib/utils';
import { auth, currentUser } from '@interiorly/auth/server';
import { liveblocks } from '@interiorly/collaboration/liveblocks.server.config';
import type { Document } from '@interiorly/collaboration/types/document';
import type { RoomData } from '@livebloc... | interiorly | apps/app/lib/actions/deleteDocument.ts | TypeScript | 0ab5a627adc1c3577f5d3e7437e0ffd8a3cd7d182c2f3d6dec04670022063d9d | 0 | 449 |
'use server';
import { buildDocument, userAllowedInRoom } from '@/lib/utils';
import { currentUser } from '@interiorly/auth/server';
import { liveblocks } from '@interiorly/collaboration/liveblocks.server.config';
import type { Document } from '@interiorly/collaboration/types/document';
import type { RoomData } from '... | interiorly | apps/app/lib/actions/getDocument.ts | TypeScript | 380a91141e90944c02a12525c61903e2d90c7610cd0f5eedee1947137b81fe0c | 0 | 421 |
'use server';
import {
buildDocuments,
getDraftsGroupName,
userAllowedInRoom,
} from '@/lib/utils';
import { auth } from '@interiorly/auth/server';
import { liveblocks } from '@interiorly/collaboration/liveblocks.server.config';
import type {
Document,
DocumentGroup,
DocumentType,
DocumentUser,
} from '@... | interiorly | apps/app/lib/actions/getDocuments.ts | TypeScript | 9a352a861a1a43712df6ba0b0e41343e43e60a5a6611c78731d6ccbe9c17b903 | 0 | 715 |
'use server';
import { buildDocumentUsers } from '@/lib/utils';
import { currentUser } from '@interiorly/auth/server';
import { liveblocks } from '@interiorly/collaboration/liveblocks.server.config';
import type {
Document,
DocumentUser,
} from '@interiorly/collaboration/types/document';
import type { RoomData } f... | interiorly | apps/app/lib/actions/getDocumentUsers.ts | TypeScript | 546f6e198fb142e80465ca26f276e419cc5f08273be1fabc922311aab77bfb76 | 0 | 344 |
'use server';
import { currentUser } from '@interiorly/auth/server';
import { liveblocks } from '@interiorly/collaboration/liveblocks.server.config';
import type { Document } from '@interiorly/collaboration/types/document';
import type { RoomUser } from '@liveblocks/node';
type LiveUserList = { documentId: Document['... | interiorly | apps/app/lib/actions/getLiveUsers.ts | TypeScript | e2f28853c4f6ff7ea84087c89d8d5144bfd681c0f1f20b076f1e43730ec2f3c8 | 0 | 407 |
'use server';
import type { GetDocumentsResponse } from '@/lib/actions/getDocuments';
import { buildDocuments, userAllowedInRoom } from '@/lib/utils';
import { currentUser } from '@interiorly/auth/server';
import { liveblocks } from '@interiorly/collaboration/liveblocks.server.config';
import type { RoomData } from '@... | interiorly | apps/app/lib/actions/getNextDocuments.ts | TypeScript | f37cb4f1251c97f1511e84bb9a5e160002b77c124bc3c4cc4aafde4b458e5b7f | 0 | 458 |
'use server';
import { getDocument } from '@/lib/actions/getDocument';
import type { Document } from '@interiorly/collaboration/types';
type Props = {
documentIds: Document['id'][];
};
/**
* Get Specific Documents
*
* Get a list of documents by their IDs
*
* @param documentIds - The IDs of the documents
*/
e... | interiorly | apps/app/lib/actions/getSpecificDocuments.ts | TypeScript | 605f4fb34315236a576dada8f9526028c67786cd40cd8a13831b2587fefb7331 | 0 | 248 |
export * from './createDocument';
export * from './deleteDocument';
export * from './getDocument';
export * from './getDocuments';
export * from './getDocumentUsers';
export * from './getLiveUsers';
export * from './getNextDocuments';
export * from './getSpecificDocuments';
export * from './removeGroupAccess';
export *... | interiorly | apps/app/lib/actions/index.ts | TypeScript | eb7eacafe026a7afc4cf5d3f246d28cb1708b0ad9f594515f60081c8b30a3c7d | 0 | 117 |
'use server';
import { userAllowedInRoom } from '@/lib/utils';
import { currentUser } from '@interiorly/auth/server';
import { liveblocks } from '@interiorly/collaboration/liveblocks.server.config';
import type { Document, DocumentGroup } from '@interiorly/collaboration/types';
import type { RoomData } from '@livebloc... | interiorly | apps/app/lib/actions/removeGroupAccess.ts | TypeScript | 624fa7b6c9d1589143298a7a6c872624196e42f4a6a975dd5ac984f742d18516 | 0 | 594 |
'use server';
import {
buildDocumentUsers,
isUserDocumentOwner,
userAllowedInRoom,
} from '@/lib/utils';
import { currentUser } from '@interiorly/auth/server';
import { liveblocks } from '@interiorly/collaboration/liveblocks.server.config';
import type { Document, DocumentUser } from '@interiorly/collaboration/t... | interiorly | apps/app/lib/actions/removeUserAccess.ts | TypeScript | b16c82db8ee59ba165e80d6f0a970a78cc2ff121c0f545091030667b0d94f227 | 0 | 717 |
'use server';
import { userAllowedInRoom } from '@/lib/utils';
import { auth } from '@interiorly/auth/server';
import { liveblocks } from '@interiorly/collaboration/liveblocks.server.config';
import type { Document } from '@interiorly/collaboration/types';
import type { RoomData } from '@liveblocks/node';
interface P... | interiorly | apps/app/lib/actions/renameDocument.ts | TypeScript | baf937adab8c67ab10ade5e9ebbf03ea39842f92c8412a147aa7fc0d62229548 | 0 | 491 |
'use server';
import {
buildDocument,
documentAccessToRoomAccesses,
userAllowedInRoom,
} from '@/lib/utils';
import { auth } from '@interiorly/auth/server';
import { liveblocks } from '@interiorly/collaboration/liveblocks.server.config';
import type { Document, DocumentAccess } from '@interiorly/collaboration/ty... | interiorly | apps/app/lib/actions/updateDefaultAccess.ts | TypeScript | a7dda97ee80168619ba6235e0de072737908233fd0be29fb39f0184ecb54dd95 | 0 | 571 |
'use server';
import {
buildDocument,
buildDocumentUsers,
documentAccessToRoomAccesses,
isUserDocumentOwner,
userAllowedInRoom,
} from '@/lib/utils';
import { auth } from '@interiorly/auth/server';
import { liveblocks } from '@interiorly/collaboration/liveblocks.server.config';
import {
type Document,
Do... | interiorly | apps/app/lib/actions/updateUserAccess.ts | TypeScript | 2ee9db0ce8c1a5c869d0525106e81beb3939fea2457d47e0bbeefce95e7dbf3a | 0 | 845 |
import { AiFileIcon } from '@/components/icons/ai-file-icon';
import { Home05Icon, InboxIcon } from 'hugeicons-react';
export const WORKSPACE_NAV = [
{
title: 'Home',
tooltip: 'View recent changes and more',
url: '/',
icon: Home05Icon,
command: 'crtl+h',
},
{
title: 'Inbox',
url: '/in... | interiorly | apps/app/lib/constants/navigation.ts | TypeScript | d2c946f4c8849bf6b1cd8149c55aae0d035b53fce8fe0d052267ed3c0218667b | 0 | 165 |
/**
* Random colors used in the app.
*/
export const colors = [
'#0077ff',
'#00bbff',
'#00cc88',
'#88cc11',
'#ffbb00',
'#ff8811',
'#ee1144',
'#ee44bb',
'#8855bf',
];
| interiorly | apps/app/lib/data/colors.ts | TypeScript | 4b7bb39b6d59e3748480e010ebc0dbecb6f0d8b8983b671bdeec481ad51516f5 | 0 | 70 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.