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 |
|---|---|---|---|---|---|---|
.50257 8.57626V8.57726ZM6.24391 7.00022L7.99972 5.9997L9.75553 6.99972V9.00027L7.99972 10.0003L6.24391 9.00027V7.00022Z"
fill="currentColor"
/>
</svg>
);
};
export const LogoGoogle = ({ size = 16 }: { size?: number }) => {
return (
<svg
data-testid="geist-icon"
height={size}
... | tdot_chatbot | components/icons.tsx | TypeScript | d6a12e6d6c50af8fc9849b49e857ac772415701d88c30ec79c059d0c0e644c65 | 3 | 896 |
13.25C1.5 13.8023 1.94772 14.25 2.5 14.25ZM14.5 2.74999C14.5 3.30228 14.0523 3.74999 13.5 3.74999C12.9477 3.74999 12.5 3.30228 12.5 2.74999C12.5 2.19771 12.9477 1.74999 13.5 1.74999C14.0523 1.74999 14.5 2.19771 14.5 2.74999ZM16 2.74999C16 4.1307 14.8807 5.24999 13.5 5.24999C12.1193 5.24999 11 4.1307 11 2.74999C11 1.369... | tdot_chatbot | components/icons.tsx | TypeScript | 93986ef12ad40fc6b6a8a1b88d8eb7513fd3413ce3edae83d9c77a120e4ddd30 | 4 | 896 |
evenodd"
clipRule="evenodd"
d="M1.5 4.875C1.5 3.01104 3.01104 1.5 4.875 1.5C6.20018 1.5 7.34838 2.26364 7.901 3.37829C8.1902 3.96162 8.79547 4.5 9.60112 4.5H12.25C13.4926 4.5 14.5 5.50736 14.5 6.75C14.5 7.42688 14.202 8.03329 13.7276 8.44689L13.1622 8.93972L14.1479 10.0704L14.7133 9.57758C15.5006 8.8912... | tdot_chatbot | components/icons.tsx | TypeScript | c13c403a52402290258d99c3034e25cb2aecf0b0617bb204602510acb1a14231 | 5 | 896 |
rect
x="1"
y="1"
width="14"
height="14"
stroke="currentColor"
strokeWidth="1.5"
fill="none"
/>
</svg>
);
};
export const MoreIcon = ({ size = 16 }: { size?: number }) => {
return (
<svg
height={size}
strokeLinejoin="round"
view... | tdot_chatbot | components/icons.tsx | TypeScript | b9b89d4f90404b0503ac71d516ad88a74543d10ce0d330e45f0efc2e84c36987 | 6 | 896 |
: { size?: number }) => (
<svg
height={size}
strokeLinejoin="round"
viewBox="0 0 16 16"
width={size}
style={{ color: 'currentcolor' }}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M2.67705 15H1L1.75 13.5L6.16147 4.67705L6.15836 4.67082L6.16667 4.66667L7.16147 2.67705L8 ... | tdot_chatbot | components/icons.tsx | TypeScript | 57d18f309084625923e0acb309f316914c44eaf07d2025a869592384518320c7 | 9 | 896 |
<path
fillRule="evenodd"
clipRule="evenodd"
d="M8.75 1.75V1H7.25V1.75V6.75H2.25H1.5V8.25H2.25H7.25V13.25V14H8.75V13.25V8.25H13.75H14.5V6.75H13.75H8.75V1.75Z"
fill="currentColor"
/>
</svg>
);
export const CopyIcon = ({ size = 16 }: { size?: number }) => (
<svg
height={size}
strok... | tdot_chatbot | components/icons.tsx | TypeScript | e860a67c8ee384b66d846437f4bf48e66d7330b7cb2dec3f1bb6c2e05f4fd4eb | 10 | 896 |
{ size?: number }) => (
<svg
height={size}
strokeLinejoin="round"
viewBox="0 0 16 16"
width={size}
style={{ color: 'currentcolor' }}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M12.0607 6.74999L11.5303 7.28032L8.7071 10.1035C8.31657 10.4941 7.68341 10.4941 7.29288 10.1... | tdot_chatbot | components/icons.tsx | TypeScript | 654624ece83f61475fdaaa6a554820da74056f149764681c7bff3a7f612385b5 | 11 | 896 |
14.5 8.44099 14.5 8C14.5 7.55901 14.4561 7.12828 14.3724 6.71194C13.5116 6.52755 12.5137 6.37904 11.4187 6.27753C11.4719 6.83232 11.5 7.40867 11.5 8C11.5 8.59133 11.4719 9.16768 11.4187 9.72246ZM10.1525 6.18401C10.2157 6.75982 10.25 7.36805 10.25 8C10.25 8.63195 10.2157 9.24018 10.1525 9.81598C9.46123 9.85455 8.7409 9.... | tdot_chatbot | components/icons.tsx | TypeScript | f277ee9afca5ce307e0c62f2c104f4d97c4d0e8c56ef3a27c1da923b5b2af4c6 | 12 | 896 |
viewBox="0 0 16 16"
width={size}
style={{ color: 'currentcolor' }}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M15 11.25V10.5H13.5V11.25V12.75C13.5 13.1642 13.1642 13.5 12.75 13.5H3.25C2.83579 13.5 2.5 13.1642 2.5 12.75L2.5 3.25C2.5 2.83579 2.83579 2.5 3.25 2.5H5.75H6.... | tdot_chatbot | components/icons.tsx | TypeScript | 8b23ff010bdd480d1fddf31791848ca5bc96dc0a45f36cf218c58b89c21e3f8f | 13 | 896 |
.7693C4.13086 14.8037 5.04033 15.4122 6.06049 15.709C7.28211 16.0642 8.45359 16.1285 9.91525 15.709C10.8868 15.4307 11.8449 14.8708 11.8449 13.7693V12.3145H7.99012V11.8296H11.8449H13.7745C14.8961 11.8296 15.3141 11.0558 15.7041 9.89434C16.1071 8.69865 16.0899 7.5488 15.7041 6.01495C15.4269 4.91058 14.8975 4.07971 13.77... | tdot_chatbot | components/icons.tsx | TypeScript | 58ac71582c4f8333ad2ec9a4c2aa4432217ff0513a32cf0edfc44e9434224dae | 14 | 896 |
' }}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M9 2H9.75H14.25H15V3.5H14.25H9.75H9V2ZM9 12.5H9.75H14.25H15V14H14.25H9.75H9V12.5ZM9.75 7.25H9V8.75H9.75H14.25H15V7.25H14.25H9.75ZM1 12.5H1.75H2.25H3V14H2.25H1.75H1V12.5ZM1.75 2H1V3.5H1.75H2.25H3V2H2.25H1.75ZM1 7.25H1.75H2.25H3V8.75H... | tdot_chatbot | components/icons.tsx | TypeScript | 3d01557cc9f5931a82861bae492d582781054a44a1c478257aab21cb48c073ac | 15 | 704 |
import { LoaderIcon } from './icons';
import cn from 'classnames';
interface ImageEditorProps {
title: string;
content: string;
isCurrentVersion: boolean;
currentVersionIndex: number;
status: string;
isInline: boolean;
}
export function ImageEditor({
title,
content,
isCurrentVersion,
currentVersio... | tdot_chatbot | components/image-editor.tsx | TypeScript | 3c1084e1d0a99cbd8c230fe046a6ff50ba414c7e1f3e08aa35439477544cfc2d | 0 | 282 |
import Link from 'next/link';
import React, { memo, useMemo, useState } from 'react';
import ReactMarkdown, { type Components } from 'react-markdown';
import remarkGfm from 'remark-gfm';
import { CodeBlock } from './code-block';
const components: Partial<Components> = {
// @ts-expect-error
code: CodeBlock,
pre: ... | tdot_chatbot | components/markdown.tsx | TypeScript | 0a7475c7f3b6696821984ad687615f872839475688e90742a52ce9400f37eb3d | 0 | 775 |
import type { Message } from 'ai';
import { toast } from 'sonner';
import { useSWRConfig } from 'swr';
import { useCopyToClipboard } from 'usehooks-ts';
import type { Vote } from '@/lib/db/schema';
import { getMessageIdFromAnnotations } from '@/lib/utils';
import { CopyIcon, ThumbDownIcon, ThumbUpIcon } from './icons... | tdot_chatbot | components/message-actions.tsx | TypeScript | 91e681c906584943796922a19700d213efb3395134128e3a3852457e54ecab9c | 0 | 896 |
false,
},
];
},
{ revalidate: false },
);
return 'Downvoted Response!';
},
error: 'Failed to downvote response.',
});
}... | tdot_chatbot | components/message-actions.tsx | TypeScript | f81287676d47d6b051e922f5dccf1f4ec5344b856f86afc9eef86ff93fb10023 | 1 | 132 |
'use client';
import { ChatRequestOptions, Message } from 'ai';
import { Button } from './ui/button';
import { Dispatch, SetStateAction, useEffect, useRef, useState } from 'react';
import { Textarea } from './ui/textarea';
import { deleteTrailingMessages } from '@/app/(chat)/actions';
import { toast } from 'sonner';
i... | tdot_chatbot | components/message-editor.tsx | TypeScript | 88e37e71e35278fe28431cb0acba104563fc5281f2f9793eac5b54ba46cd3bfc | 0 | 695 |
'use client';
import type { ChatRequestOptions, Message } from 'ai';
import cx from 'classnames';
import { AnimatePresence, motion } from 'framer-motion';
import { memo, useMemo, useState } from 'react';
import type { Vote } from '@/lib/db/schema';
import { DocumentToolCall, DocumentToolResult } from './document';
i... | tdot_chatbot | components/message.tsx | TypeScript | b9356713b5ff8f54aac5f2c3cd92a87fef53a6d6df8340c616a130520f689881 | 0 | 896 |
-xl':
message.role === 'user',
})}
>
<Markdown>{message.content as string}</Markdown>
</div>
</div>
)}
{message.content && mode === 'edit' && (
<div className="flex flex-row gap... | tdot_chatbot | components/message.tsx | TypeScript | 93991234411a34faac5888deea7c6aa73b86df623a2d5ed32a25c98ffe5093a4 | 1 | 896 |
]/message:py-2 rounded-xl',
{
'group-data-[role=user]/message:bg-muted': true,
},
)}
>
<div className="size-8 flex items-center rounded-full justify-center ring-1 shrink-0 ring-border">
<SparklesIcon size={14} />
</div>
<div className="fle... | tdot_chatbot | components/message.tsx | TypeScript | 4f359be50b90729946ec52f42167deac71cd2a0fca3bec3a0af5cc4061cc7e1b | 2 | 142 |
import { ChatRequestOptions, Message } from 'ai';
import { PreviewMessage, ThinkingMessage } from './message';
import { useScrollToBottom } from './use-scroll-to-bottom';
import { Overview } from './overview';
import { memo } from 'react';
import { Vote } from '@/lib/db/schema';
import equal from 'fast-deep-equal';
in... | tdot_chatbot | components/messages.tsx | TypeScript | 2486b449c9b8ead32e5f92311f086fb9e127d20b89d68c9c23ae88a92046f9a1 | 0 | 553 |
'use client';
import { startTransition, useMemo, useOptimistic, useState } from 'react';
import { saveModelId } from '@/app/(chat)/actions';
import { Button } from '@/components/ui/button';
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from '@/components/ui/dropdown-menu... | tdot_chatbot | components/model-selector.tsx | TypeScript | 5eae48c947b749220d2ddd00420f707a250cef6155a8505731f085bae6b9fdee | 0 | 533 |
'use client';
import type {
Attachment,
ChatRequestOptions,
CreateMessage,
Message,
} from 'ai';
import cx from 'classnames';
import type React from 'react';
import {
useRef,
useEffect,
useState,
useCallback,
type Dispatch,
type SetStateAction,
type ChangeEvent,
memo,
} from 'react';
import { t... | tdot_chatbot | components/multimodal-input.tsx | TypeScript | 778a3b157d6832623e10cd837243e66296e3339785eb307671c27eca49407b6e | 0 | 896 |
{
const data = await response.json();
const { url, pathname, contentType } = data;
return {
url,
name: pathname,
contentType: contentType,
};
}
const { error } = await response.json();
toast.error(error);
} catch (error) {
toast.... | tdot_chatbot | components/multimodal-input.tsx | TypeScript | 8be78abb2a0c29b283cd7f251fe965e3c59f44309c14f4c5be621500d5591362 | 1 | 896 |
},
);
function PureAttachmentsButton({
fileInputRef,
isLoading,
}: {
fileInputRef: React.MutableRefObject<HTMLInputElement | null>;
isLoading: boolean;
}) {
return (
<Button
className="rounded-md rounded-bl-lg p-[7px] h-fit dark:border-zinc-700 hover:dark:bg-zinc-900 hover:bg-zinc-200"
onClic... | tdot_chatbot | components/multimodal-input.tsx | TypeScript | d7378ebf89de3bbc9d266e25a490d80e11870d5784ec52dd5d28ce655bcec7e7 | 2 | 432 |
import { motion } from 'framer-motion';
import Link from 'next/link';
import { MessageIcon, VercelIcon } from './icons';
export const Overview = () => {
return (
<motion.div
key="overview"
className="max-w-3xl mx-auto md:mt-20"
initial={{ opacity: 0, scale: 0.98 }}
animate={{ opacity: 1,... | tdot_chatbot | components/overview.tsx | TypeScript | d74ed4915ae1b5e57b8932543a765495e8c1ec6210d674f671c8b0645828d24f | 0 | 435 |
import type { Attachment } from 'ai';
import { LoaderIcon } from './icons';
export const PreviewAttachment = ({
attachment,
isUploading = false,
}: {
attachment: Attachment;
isUploading?: boolean;
}) => {
const { name, url, contentType } = attachment;
return (
<div className="flex flex-col gap-2">
... | tdot_chatbot | components/preview-attachment.tsx | TypeScript | 3dd21764b97aa7b158428de1308c67ea01df265253f51b9af6f32c2e3c205fe8 | 0 | 292 |
import { generateUUID } from '@/lib/utils';
import {
type Dispatch,
type SetStateAction,
startTransition,
useCallback,
useState,
useEffect,
memo,
} from 'react';
import type { ConsoleOutput, ConsoleOutputContent, UIBlock } from './block';
import { Button } from './ui/button';
import { PlayIcon } from './i... | tdot_chatbot | components/run-code-button.tsx | TypeScript | d0941d7d2d767905acf9a8cfc053f1e25e4aa9360e9eb6bdedcf2cd50388a7d1 | 0 | 896 |
output) => output.id !== runId),
{
id: generateUUID(),
contents: stdOutputs.filter((output) => output.value.trim().length),
status: 'completed',
},
]);
} catch (error: any) {
setConsoleOutputs((outputs) => [
...outputs.filter((outpu... | tdot_chatbot | components/run-code-button.tsx | TypeScript | a3117b444ab76009b380c1d605407475b21eefdd20907cfdbb55507f5f66c84a | 1 | 358 |
'use client';
import { isToday, isYesterday, subMonths, subWeeks } from 'date-fns';
import Link from 'next/link';
import { useParams, usePathname, useRouter } from 'next/navigation';
import type { User } from 'next-auth';
import { memo, useEffect, useState } from 'react';
import { toast } from 'sonner';
import useSWR ... | tdot_chatbot | components/sidebar-history.tsx | TypeScript | fe7043604e6683412e27794b9884299b207abc74618bc914660fa4b4280685d6 | 0 | 896 |
(PureChatItem, (prevProps, nextProps) => {
if (prevProps.isActive !== nextProps.isActive) return false;
return true;
});
export function SidebarHistory({ user }: { user: User | undefined }) {
const { setOpenMobile } = useSidebar();
const { id } = useParams();
const pathname = usePathname();
const {
dat... | tdot_chatbot | components/sidebar-history.tsx | TypeScript | a55b6b130b58be0213830c5dc71fa5e726781800736ec9f78a7d9f49a15067b2 | 1 | 896 |
: [],
} as GroupedChats,
);
};
return (
<>
<SidebarGroup>
<SidebarGroupContent>
<SidebarMenu>
{history &&
(() => {
const groupedChats = groupChatsByDate(history);
return (
<>
{grou... | tdot_chatbot | components/sidebar-history.tsx | TypeScript | dc808d0bbcaf69824816f61985321a358bdfd9e27e7709838cacb444653049fc | 2 | 763 |
import type { ComponentProps } from 'react';
import { type SidebarTrigger, useSidebar } from '@/components/ui/sidebar';
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from '@/components/ui/tooltip';
import { SidebarLeftIcon } from './icons';
import { Button } from './ui/button';
export function SidebarTog... | tdot_chatbot | components/sidebar-toggle.tsx | TypeScript | e52c9c5d9c416012b7104bf2747bab3a0096e8cffef86aaec359390dd2b9e49f | 0 | 171 |
'use client';
import { ChevronUp } from 'lucide-react';
import Image from 'next/image';
import type { User } from 'next-auth';
import { signOut } from 'next-auth/react';
import { useTheme } from 'next-themes';
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuSeparator,
DropdownMenuTr... | tdot_chatbot | components/sidebar-user-nav.tsx | TypeScript | 9c2d0384c109f9de2c25b35d9188ec1605f91330df926d5653d8b5303ef58ab5 | 0 | 448 |
import Form from 'next/form';
import { signOut } from '@/app/(auth)/auth';
export const SignOutForm = () => {
return (
<Form
className="w-full"
action={async () => {
'use server';
await signOut({
redirectTo: '/',
});
}}
>
<button
type="submi... | tdot_chatbot | components/sign-out-form.tsx | TypeScript | 179a28e1915f982e47f99f7830487335b6132a26c464a10fe4a91f3ff8c9825e | 0 | 119 |
'use client';
import { motion } from 'framer-motion';
import { Button } from './ui/button';
import { ChatRequestOptions, CreateMessage, Message } from 'ai';
import { memo } from 'react';
interface SuggestedActionsProps {
chatId: string;
append: (
message: Message | CreateMessage,
chatRequestOptions?: Chat... | tdot_chatbot | components/suggested-actions.tsx | TypeScript | b15d8fe393129e5f624a3cc558bfae310607a866f29204d7a690bbfa92fb6128 | 0 | 551 |
'use client';
import { AnimatePresence, motion } from 'framer-motion';
import { useState } from 'react';
import { useWindowSize } from 'usehooks-ts';
import type { UISuggestion } from '@/lib/editor/suggestions';
import { CrossIcon, MessageIcon } from './icons';
import { Button } from './ui/button';
import { cn } fro... | tdot_chatbot | components/suggestion.tsx | TypeScript | 1b36fe3e145433f817a0a093634e2cba8e861f572be789d7fc770e1ca1916b61 | 0 | 607 |
'use client';
import type { ChatRequestOptions, CreateMessage, Message } from 'ai';
import cx from 'classnames';
import {
AnimatePresence,
motion,
useMotionValue,
useTransform,
} from 'framer-motion';
import {
type Dispatch,
memo,
type SetStateAction,
useEffect,
useRef,
useState,
} from 'react';
im... | tdot_chatbot | components/toolbar.tsx | TypeScript | 3894f51649ba0a2e879ac5ddde6bc450bf26a01842e234301f3a95304fddf897 | 0 | 896 |
/> : icon}
</motion.div>
</TooltipTrigger>
<TooltipContent
side="left"
sideOffset={16}
className="bg-foreground text-background rounded-2xl p-3 px-4"
>
{description}
</TooltipContent>
</Tooltip>
);
};
const randomArr = [...Array(6)].map((x) => nanoi... | tdot_chatbot | components/toolbar.tsx | TypeScript | 8b89b542e0853b591afbf1a363054066442700f8259f9e5b203f9fff7dfb67fd | 1 | 896 |
| 'code-review'
| 'add-comments'
| 'add-logs';
description: string;
icon: JSX.Element;
}>
> = {
text: [
{
type: 'final-polish',
description: 'Add final polish',
icon: <PenIcon />,
},
{
type: 'adjust-reading-level',
description: 'Adjust reading level',
... | tdot_chatbot | components/toolbar.tsx | TypeScript | d0e21ad79e58f98aa37d15708319af8bc025a52f3e8284184959c6ba3c37a0b8 | 2 | 896 |
cursor-pointer absolute right-6 bottom-6 p-1.5 border rounded-full shadow-lg bg-background flex flex-col justify-end"
initial={{ opacity: 0, y: -20, scale: 1 }}
animate={
isToolbarVisible
? selectedTool === 'adjust-reading-level'
? {
opacity: 1,
... | tdot_chatbot | components/toolbar.tsx | TypeScript | f858ee7147d520afbd9d5f92ac8680e25ae1981d6fb304ac018ac651cc222ba2 | 3 | 533 |
import { useEffect, useRef, type RefObject } from 'react';
export function useScrollToBottom<T extends HTMLElement>(): [
RefObject<T>,
RefObject<T>,
] {
const containerRef = useRef<T>(null);
const endRef = useRef<T>(null);
useEffect(() => {
const container = containerRef.current;
const end = endRef.... | tdot_chatbot | components/use-scroll-to-bottom.ts | TypeScript | ff364f71f73b8c392c7af867e4dec6a324a26f4e0ff533a658135c729c458e3a | 0 | 174 |
'use client';
import { isAfter } from 'date-fns';
import { motion } from 'framer-motion';
import { useState } from 'react';
import { useSWRConfig } from 'swr';
import { useWindowSize } from 'usehooks-ts';
import type { Document } from '@/lib/db/schema';
import { getDocumentTimestampByIndex } from '@/lib/utils';
impo... | tdot_chatbot | components/version-footer.tsx | TypeScript | 8cd2cc4971ea325befe655273dd3cb4251c53671958f373cc80c66b877c6a051 | 0 | 639 |
'use client';
import { ReactNode, useMemo, useState } from 'react';
import { Button } from '@/components/ui/button';
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from '@/components/ui/dropdown-menu';
import { cn } from '@/lib/utils';
import {
CheckCircleFillIcon,
Ch... | tdot_chatbot | components/visibility-selector.tsx | TypeScript | af050ce1e3983c38c1bc472262e06b79cd8e67dae3d7be8c54189dc788eb4998 | 0 | 635 |
'use client';
import cx from 'classnames';
import { format, isWithinInterval } from 'date-fns';
import { useEffect, useState } from 'react';
interface WeatherAtLocation {
latitude: number;
longitude: number;
generationtime_ms: number;
utc_offset_seconds: number;
timezone: string;
timezone_abbreviation: st... | tdot_chatbot | components/weather.tsx | TypeScript | cfe6bf00837bb8c9080d1fd1e3acc85e9c7241e1c6fd280aee237e72b9b39db5 | 0 | 896 |
2024-10-07T07:15',
'2024-10-08T07:16',
'2024-10-09T07:17',
'2024-10-10T07:18',
'2024-10-11T07:19',
],
sunset: [
'2024-10-07T19:00',
'2024-10-08T18:58',
'2024-10-09T18:57',
'2024-10-10T18:55',
'2024-10-11T18:54',
],
},
};
function n(num: number): numbe... | tdot_chatbot | components/weather.tsx | TypeScript | f8fea3bb830b60656c39e68ca0f8b30f22f8d77068790ac206f71766c3e70305 | 2 | 865 |
'use client';
import * as React from 'react';
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
import { cn } from '@/lib/utils';
import { buttonVariants } from '@/components/ui/button';
const AlertDialog = AlertDialogPrimitive.Root;
const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
cons... | tdot_chatbot | components/ui/alert-dialog.tsx | TypeScript | 38e4d66f6d4bf71daa9f19c5f2501ebfea6ca2a9c6a32ae35921e9b3bc8bfe29 | 0 | 896 |
{cn('text-sm text-muted-foreground', className)}
{...props}
/>
));
AlertDialogDescription.displayName =
AlertDialogPrimitive.Description.displayName;
const AlertDialogAction = React.forwardRef<
React.ElementRef<typeof AlertDialogPrimitive.Action>,
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.... | tdot_chatbot | components/ui/alert-dialog.tsx | TypeScript | 8297e5484ab40432eec77b9a2fe678bb68916a0b1d06512cf5d10bea26c375d9 | 1 | 253 |
import * as React from 'react';
import { Slot } from '@radix-ui/react-slot';
import { cva, type VariantProps } from 'class-variance-authority';
import { cn } from '@/lib/utils';
const buttonVariants = cva(
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-ba... | tdot_chatbot | components/ui/button.tsx | TypeScript | 295fc11d5381b8412854d2dc56233e71a861a17dd40f16bdc05f4520487f7ec0 | 0 | 493 |
import * as React from 'react';
import { cn } from '@/lib/utils';
const Card = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn(
'rounded-lg border bg-card text-card-foreground shadow-sm',
className,
... | tdot_chatbot | components/ui/card.tsx | TypeScript | 645d4fa4d43ceb65c5a37524760e646f7d8a105e3c9923abe2a89cdab8d54910 | 0 | 518 |
'use client';
import * as React from 'react';
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
import { Check, ChevronRight, Circle } from 'lucide-react';
import { cn } from '@/lib/utils';
const DropdownMenu = DropdownMenuPrimitive.Root;
const DropdownMenuTrigger = DropdownMenuPrimitive.Trigg... | tdot_chatbot | components/ui/dropdown-menu.tsx | TypeScript | 761cfc1af1b8fb6da7a5049de7d1292633ad771b5222301f0f7511178c8f9a75 | 0 | 896 |
.displayName;
const DropdownMenuItem = React.forwardRef<
React.ElementRef<typeof DropdownMenuPrimitive.Item>,
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {
inset?: boolean;
}
>(({ className, inset, ...props }, ref) => (
<DropdownMenuPrimitive.Item
ref={ref}
className={cn(
... | tdot_chatbot | components/ui/dropdown-menu.tsx | TypeScript | c7b4f3bd228410e9f04f691ad8da5fe8e9539dfea4ce4bd903c246500e479404 | 1 | 896 |
);
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
const DropdownMenuShortcut = ({
className,
...props
}: React.HTMLAttributes<HTMLSpanElement>) => {
return (
<span
className={cn('ml-auto text-xs tracking-widest opacity-60', className)}
{...props}
/>
);
};
D... | tdot_chatbot | components/ui/dropdown-menu.tsx | TypeScript | 5581a1800e1e1423dfb54f2c193ba2f409547ec3e2aed8b2c9186b7d551fef7f | 2 | 116 |
import * as React from 'react';
import { cn } from '@/lib/utils';
const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<'input'>>(
({ className, type, ...props }, ref) => {
return (
<input
type={type}
className={cn(
'flex h-10 w-full rounded-md border border-input... | tdot_chatbot | components/ui/input.tsx | TypeScript | d7ba3cbef08deed6e8868cfa4a5007f2c4bbe032216eae9f70ed7c4368b6992b | 0 | 221 |
'use client';
import * as React from 'react';
import * as LabelPrimitive from '@radix-ui/react-label';
import { cva, type VariantProps } from 'class-variance-authority';
import { cn } from '@/lib/utils';
const labelVariants = cva(
'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opa... | tdot_chatbot | components/ui/label.tsx | TypeScript | dec6e3c633674baf1c0c45bd59d784102ed0beb567348a0771a205cb3f82f401 | 0 | 190 |
'use client';
import * as React from 'react';
import * as SelectPrimitive from '@radix-ui/react-select';
import { Check, ChevronDown, ChevronUp } from 'lucide-react';
import { cn } from '@/lib/utils';
const Select = SelectPrimitive.Root;
const SelectGroup = SelectPrimitive.Group;
const SelectValue = SelectPrimitiv... | tdot_chatbot | components/ui/select.tsx | TypeScript | edbdec506b224fbd6550df586ffed2f2859fb341f53be7e9585bafc249f98128 | 0 | 896 |
]:-translate-y-1',
className,
)}
position={position}
{...props}
>
<SelectScrollUpButton />
<SelectPrimitive.Viewport
className={cn(
'p-1',
position === 'popper' &&
'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-t... | tdot_chatbot | components/ui/select.tsx | TypeScript | 2ded675d83792462a27fed9d632e61188a41f2b84d14a800ce225d542b0b1bd7 | 1 | 578 |
'use client';
import * as React from 'react';
import * as SeparatorPrimitive from '@radix-ui/react-separator';
import { cn } from '@/lib/utils';
const Separator = React.forwardRef<
React.ElementRef<typeof SeparatorPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
>(
(
{ classN... | tdot_chatbot | components/ui/separator.tsx | TypeScript | 29a30c648ba9294fbf8ebd164c2e94174e6091398b7f1f043d98757825733ba3 | 0 | 193 |
'use client';
import * as React from 'react';
import * as SheetPrimitive from '@radix-ui/react-dialog';
import { cva, type VariantProps } from 'class-variance-authority';
import { X } from 'lucide-react';
import { cn } from '@/lib/utils';
const Sheet = SheetPrimitive.Root;
const SheetTrigger = SheetPrimitive.Trigge... | tdot_chatbot | components/ui/sheet.tsx | TypeScript | 333f11bb8d7b23e35fc7739cf78f0ecd48487db5feec3dac61a7e767759e984d | 0 | 896 |
-2 text-center sm:text-left',
className,
)}
{...props}
/>
);
SheetHeader.displayName = 'SheetHeader';
const SheetFooter = ({
className,
...props
}: React.HTMLAttributes<HTMLDivElement>) => (
<div
className={cn(
'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',
class... | tdot_chatbot | components/ui/sheet.tsx | TypeScript | df6fb44e72125ef51d0acd161e25cdcfa6717fda49a3086a58d3eca73f038525 | 1 | 321 |
'use client';
import * as React from 'react';
import { Slot } from '@radix-ui/react-slot';
import { VariantProps, cva } from 'class-variance-authority';
import { PanelLeft } from 'lucide-react';
import { useIsMobile } from '@/hooks/use-mobile';
import { cn } from '@/lib/utils';
import { Button } from '@/components/ui... | tdot_chatbot | components/ui/sidebar.tsx | TypeScript | 6e8a0cce69f4f94978db2308d39d9f195ad14534e15623d7277d123adcbc61d5 | 0 | 896 |
,
open,
setOpen,
isMobile,
openMobile,
setOpenMobile,
toggleSidebar,
}),
[
state,
open,
setOpen,
isMobile,
openMobile,
setOpenMobile,
toggleSidebar,
],
);
return (
<SidebarContext.Pro... | tdot_chatbot | components/ui/sidebar.tsx | TypeScript | bd44e89485d0f453cfc2a3351c4ea2567b63d9b4ec32ecb8536162512d44898b | 1 | 896 |
=offcanvas]:right-[calc(var(--sidebar-width)*-1)]',
// Adjust the padding for floating and inset variants.
variant === 'floating' || variant === 'inset'
? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]'
: 'group-data-[co... | tdot_chatbot | components/ui/sidebar.tsx | TypeScript | 482bfe9d5e7e66320828e3e0abd6958984bdbff6f9d2993a9197e259605993b8 | 2 | 896 |
'main'>
>(({ className, ...props }, ref) => {
return (
<main
ref={ref}
className={cn(
'relative flex min-h-svh flex-1 flex-col bg-background',
'peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[var... | tdot_chatbot | components/ui/sidebar.tsx | TypeScript | 42bfa5edbec2774aeb46ee8dcffdd6bd21606471970565d92c815206c7756b1e | 3 | 896 |
, asChild = false, ...props }, ref) => {
const Comp = asChild ? Slot : 'div';
return (
<Comp
ref={ref}
data-sidebar="group-label"
className={cn(
'duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring t... | tdot_chatbot | components/ui/sidebar.tsx | TypeScript | 98de1dbb5ed7dd5a2e2832da5ac1664a9007bc01ff98f05d2234c3de3cce3fb7 | 4 | 896 |
bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]... | tdot_chatbot | components/ui/sidebar.tsx | TypeScript | 5e4cac16c217f213cb652a5c348abe176fc01d695b9f39e225ffb487925a8011 | 5 | 896 |
-2.5',
'group-data-[collapsible=icon]:hidden',
showOnHover &&
'group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0',
className,
)}
{...props}... | tdot_chatbot | components/ui/sidebar.tsx | TypeScript | 63c267715732426b4f7fb7dc33999065e9641934c956912f5f5f7cccda28c1f9 | 6 | 896 |
({ asChild = false, size = 'md', isActive, className, ...props }, ref) => {
const Comp = asChild ? Slot : 'a';
return (
<Comp
ref={ref}
data-sidebar="menu-sub-button"
data-size={size}
data-active={isActive}
className={cn(
'flex h-7 min-w-0 -translate-x-px items-center gap-... | tdot_chatbot | components/ui/sidebar.tsx | TypeScript | a0d8a046af9be30f6e6b6ec52ee332d8cddfba34d61c0fc120851fb95990be5f | 7 | 384 |
import { cn } from '@/lib/utils';
function Skeleton({
className,
...props
}: React.HTMLAttributes<HTMLDivElement>) {
return (
<div
className={cn('animate-pulse rounded-md bg-muted', className)}
{...props}
/>
);
}
export { Skeleton };
| tdot_chatbot | components/ui/skeleton.tsx | TypeScript | 43b0afa75a641b3298dbe332a0a3cc214bb30f8b77d39c020ebc1f176f051321 | 0 | 73 |
import * as React from 'react';
import { cn } from '@/lib/utils';
const Textarea = React.forwardRef<
HTMLTextAreaElement,
React.ComponentProps<'textarea'>
>(({ className, ...props }, ref) => {
return (
<textarea
className={cn(
'flex min-h-[80px] w-full rounded-md border border-input bg-backgro... | tdot_chatbot | components/ui/textarea.tsx | TypeScript | 29c3b37433c59cf944b1cd3a1dfb65f1a336073659a352e4b02ce90ab9dc2fba | 0 | 193 |
'use client';
import * as React from 'react';
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
import { cn } from '@/lib/utils';
const TooltipProvider = TooltipPrimitive.Provider;
const Tooltip = TooltipPrimitive.Root;
const TooltipTrigger = TooltipPrimitive.Trigger;
const TooltipContent = React.forwa... | tdot_chatbot | components/ui/tooltip.tsx | TypeScript | af83463e3e316c59fd96ab39a6667bfc844463d6e4dc616d8856d3804b572381 | 0 | 317 |
'use client';
import { UIBlock } from '@/components/block';
import { useCallback, useMemo } from 'react';
import useSWR from 'swr';
export const initialBlockData: UIBlock = {
documentId: 'init',
content: '',
kind: 'text',
title: '',
status: 'idle',
isVisible: false,
boundingBox: {
top: 0,
left: ... | tdot_chatbot | hooks/use-block.ts | TypeScript | 3fcb4b415ea1de445832aea2031c67968e93f4f637c7e787b76096ee0b77207e | 0 | 362 |
'use client';
import { updateChatVisibility } from '@/app/(chat)/actions';
import { VisibilityType } from '@/components/visibility-selector';
import { Chat } from '@/lib/db/schema';
import { useMemo } from 'react';
import useSWR, { useSWRConfig } from 'swr';
export function useChatVisibility({
chatId,
initialVisi... | tdot_chatbot | hooks/use-chat-visibility.ts | TypeScript | 2585e9f1a566fae1eb1ab3d2b98b2496b2447edad587aa51d1683ffd079bbfdf | 0 | 345 |
import { useCopyToClipboard } from 'usehooks-ts';
async function copyImageToClipboard(base64String: string) {
try {
const blob = await fetch(`data:image/png;base64,${base64String}`).then(
(res) => res.blob(),
);
const item = new ClipboardItem({
'image/png': blob,
});
await navigator... | tdot_chatbot | hooks/use-multimodal-copy-to-clipboard.ts | TypeScript | a75ee26e0ee142e61e567c335ac07d94bada6a36e4f65728513be022bdf933c5 | 0 | 139 |
'use client';
import useSWR from 'swr';
export function useUserMessageId() {
const { data: userMessageIdFromServer, mutate: setUserMessageIdFromServer } =
useSWR('userMessageIdFromServer', null);
return { userMessageIdFromServer, setUserMessageIdFromServer };
}
| tdot_chatbot | hooks/use-user-message-id.ts | TypeScript | 6d6928c98cb38b25c307fd0cc71af61e38206462c3f47369f9ffe9e010945066 | 0 | 46 |
import type {
CoreAssistantMessage,
CoreMessage,
CoreToolMessage,
Message,
ToolInvocation,
} from 'ai';
import { type ClassValue, clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';
import type { Message as DBMessage, Document } from '@/lib/db/schema';
export function cn(...inputs: ClassValue[]) {... | tdot_chatbot | lib/utils.ts | TypeScript | 75336987b743320227421579466d502e0c46d50692d8f7881ad6671de2653aba | 0 | 896 |
;
const sanitizedContent = message.content.filter((content) =>
content.type === 'tool-call'
? toolResultIds.includes(content.toolCallId)
: content.type === 'text'
? content.text.length > 0
: true,
);
return {
...message,
content: sanitizedContent,
... | tdot_chatbot | lib/utils.ts | TypeScript | 24a91353a71dbea325bde99965a57343163580532e64f9cb4b84b658a24c178d | 1 | 440 |
import type { Experimental_LanguageModelV1Middleware } from 'ai';
export const customMiddleware: Experimental_LanguageModelV1Middleware = {};
| tdot_chatbot | lib/ai/custom-middleware.ts | TypeScript | d4cc9477df93fde2d1496384092a3f3ff2e53684e94e9a3dfca6df7e48e3a556 | 0 | 19 |
import { openai } from '@ai-sdk/openai';
import { experimental_wrapLanguageModel as wrapLanguageModel } from 'ai';
import { customMiddleware } from './custom-middleware';
export const customModel = (apiIdentifier: string) => {
return wrapLanguageModel({
model: openai(apiIdentifier),
middleware: customMiddle... | tdot_chatbot | lib/ai/index.ts | TypeScript | e7564978b049c21f664464b7fe2e15d83c3eaa7d6b6f97f4fd94f6ee0522f4fc | 0 | 87 |
// Define your models here.
export interface Model {
id: string;
label: string;
apiIdentifier: string;
description: string;
}
export const models: Array<Model> = [
{
id: 'gpt-4o-mini',
label: 'GPT 4o mini',
apiIdentifier: 'gpt-4o-mini',
description: 'Small model for fast, lightweight tasks',... | tdot_chatbot | lib/ai/models.ts | TypeScript | 479e7742cf0c95b7c9f1e6e926faf0cf5200d499ef3cb4d7610dae2f9c2ebf2d | 0 | 144 |
import { BlockKind } from '@/components/block';
export const blocksPrompt = `
Blocks is a special user interface mode that helps users with writing, editing, and other content creation tasks. When block is open, it is on the right side of the screen, while the conversation is on the left side. When creating or updatin... | tdot_chatbot | lib/ai/prompts.ts | TypeScript | 4959918af2dae85980db7d9290deac56129825bb82f0ec02e85bcbf9f25adb4d | 0 | 685 |
import { generateUUID } from '@/lib/utils';
import {
DataStreamWriter,
experimental_generateImage,
smoothStream,
streamObject,
streamText,
tool,
} from 'ai';
import { z } from 'zod';
import { customModel, imageGenerationModel } from '..';
import { codePrompt } from '../prompts';
import { saveDocument } from... | tdot_chatbot | lib/ai/tools/create-document.ts | TypeScript | ea6a50515721d1166519db6eedb1a5418fb50d40330d4b7052c7352e2678ca82 | 0 | 774 |
import { tool } from 'ai';
import { z } from 'zod';
export const getWeather = tool({
description: 'Get the current weather at a location',
parameters: z.object({
latitude: z.number(),
longitude: z.number(),
}),
execute: async ({ latitude, longitude }) => {
const response = await fetch(
`https... | tdot_chatbot | lib/ai/tools/get-weather.ts | TypeScript | ab199017a25f4c8d7cde079a304cb1c5c3781e10a0f09d5157c8d6c0b179aca6 | 0 | 152 |
import { z } from 'zod';
import { Model } from '../models';
import { Session } from 'next-auth';
import { DataStreamWriter, streamObject, tool } from 'ai';
import { getDocumentById, saveSuggestions } from '@/lib/db/queries';
import { Suggestion } from '@/lib/db/schema';
import { customModel } from '..';
import { genera... | tdot_chatbot | lib/ai/tools/request-suggestions.ts | TypeScript | 4348110763ff89e1c088241d3dbf09e74993dbf0f709167db2c727f7fb417957 | 0 | 575 |
import {
DataStreamWriter,
experimental_generateImage,
smoothStream,
streamObject,
streamText,
tool,
} from 'ai';
import { Model } from '../models';
import { Session } from 'next-auth';
import { z } from 'zod';
import { getDocumentById, saveDocument } from '@/lib/db/queries';
import { customModel, imageGene... | tdot_chatbot | lib/ai/tools/update-document.ts | TypeScript | ae52a852ac762ca5c7083cf3cb9c75b307eda94d69efac192b95f8f070cfe7ad | 0 | 770 |
import { config } from 'dotenv';
import { drizzle } from 'drizzle-orm/postgres-js';
import { migrate } from 'drizzle-orm/postgres-js/migrator';
import postgres from 'postgres';
config({
path: '.env.local',
});
const runMigrate = async () => {
if (!process.env.POSTGRES_URL) {
throw new Error('POSTGRES_URL is n... | tdot_chatbot | lib/db/migrate.ts | TypeScript | 83d4b9ce955e6deb69668f655a2fb807358f0ae6f93ce013af458c0ce8966363 | 0 | 242 |
import 'server-only';
import { genSaltSync, hashSync } from 'bcrypt-ts';
import { and, asc, desc, eq, gt, gte } from 'drizzle-orm';
import { drizzle } from 'drizzle-orm/postgres-js';
import postgres from 'postgres';
import {
user,
chat,
type User,
document,
type Suggestion,
suggestion,
type Message,
m... | tdot_chatbot | lib/db/queries.ts | TypeScript | 1909914a00f865e1e0052078dbe991809d71412b72bdd7eff210764bff642e80 | 0 | 896 |
messageId,
type,
}: {
chatId: string;
messageId: string;
type: 'up' | 'down';
}) {
try {
const [existingVote] = await db
.select()
.from(vote)
.where(and(eq(vote.messageId, messageId)));
if (existingVote) {
return await db
.update(vote)
.set({ isUpvoted: type =... | tdot_chatbot | lib/db/queries.ts | TypeScript | ef3b70e37610169c6e10eeb4d048a436af1687b2c399664c52bcc6c047692074 | 1 | 896 |
('Failed to get message by id from database');
throw error;
}
}
export async function deleteMessagesByChatIdAfterTimestamp({
chatId,
timestamp,
}: {
chatId: string;
timestamp: Date;
}) {
try {
return await db
.delete(message)
.where(
and(eq(message.chatId, chatId), gte(message.c... | tdot_chatbot | lib/db/queries.ts | TypeScript | 095bdceb5429f3bf27d09efd464991bc6619aaddd26154c87ff4a28746855c58 | 2 | 194 |
import type { InferSelectModel } from 'drizzle-orm';
import {
pgTable,
varchar,
timestamp,
json,
uuid,
text,
primaryKey,
foreignKey,
boolean,
} from 'drizzle-orm/pg-core';
export const user = pgTable('User', {
id: uuid('id').primaryKey().notNull().defaultRandom(),
email: varchar('email', { length... | tdot_chatbot | lib/db/schema.ts | TypeScript | 01d18a4354ad40885b48665fbaf7486e5a2e1f039e00903b7cbe4c7ef672e840 | 0 | 862 |
{
"version": "7",
"dialect": "postgresql",
"entries": [
{
"idx": 0,
"version": "7",
"when": 1728598022383,
"tag": "0000_keen_devos",
"breakpoints": true
},
{
"idx": 1,
"version": "7",
"when": 1730207363999,
"tag": "0001_sparkling_blue_marvel",
... | tdot_chatbot | lib/db/migrations/meta/_journal.json | JSON | 1e3a82c2c090b009599d66e3165996e70185ed39beb8d1f7dbf58eb9b7f2d26a | 0 | 208 |
import { textblockTypeInputRule } from 'prosemirror-inputrules';
import { Schema } from 'prosemirror-model';
import { schema } from 'prosemirror-schema-basic';
import { addListNodes } from 'prosemirror-schema-list';
import type { Transaction } from 'prosemirror-state';
import type { EditorView } from 'prosemirror-view'... | tdot_chatbot | lib/editor/config.ts | TypeScript | 02d4b45eb642ad17d8a424d14bb79b27bb5b274bf50248b9824e6ae62e27b5d9 | 0 | 336 |
});
export const getNodeMarks = (node) => node.marks ?? [];
export const getNodeChildren = (node) => node.content?.content ?? [];
export const getNodeText = (node) => node.text;
export const isTextNode = (node) => node.type?.name === 'text';
export const matchNodeType = (node1, node2) =>
node1.type?.name === nod... | tdot_chatbot | lib/editor/diff.js | JavaScript | 50b4026d7bdf1afddb3599d5f351ee51c35025006fce1e33fbe49f3b083c27a7 | 3 | 478 |
'use client';
import { defaultMarkdownSerializer } from 'prosemirror-markdown';
import { DOMParser, type Node } from 'prosemirror-model';
import { Decoration, DecorationSet, type EditorView } from 'prosemirror-view';
import { renderToString } from 'react-dom/server';
import { Markdown } from '@/components/markdown';
... | tdot_chatbot | lib/editor/functions.tsx | TypeScript | cc96dd0973c18cb618cb74033b150e65216e4a5b65c9981a166f3a72071cbf65 | 0 | 342 |
var teacherLessons = {};
var isLoading = false;
async function fetchTeacherTimetables(date, numThreads = 4) {
async function getRooms() {
const response = await fetch(
`https://melete.webuntis.com/WebUntis/api/public/timetable/weekly/pageconfig?type=4`,
{ credentials: "include" }
);
if (!resp... | untis-lehrer-extension | background.js | JavaScript | f1213afa366ff565d005511c3e848bc51377fcfc4865b9c523fef2a728852f74 | 0 | 896 |
=> {
for (const _class of classesChunk) {
try {
const response = await getLessonsFromClass(_class.id, date);
for (const elementPeriod of response.elementPeriods) {
for (const element of elementPeriod.elements) {
if (element.type != 2) {
continu... | untis-lehrer-extension | background.js | JavaScript | daf3e02b3702b5d6cd2ed7e2595eaa06f0db0181e1ffcd3925140a1502849052 | 1 | 668 |
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@modules/*": ["src/modules/*"],
"@utils/*": ["src/modules/utils/*"],
"@constants": ["src/modules/constants.js"],
"@navigation/*": ["src/modules/navigation/*"],
"@timetable/*": ["src/modules/timetable/*"]
}
},
"exclude": [... | untis-lehrer-extension | jsconfig.json | JSON | 8ea28c079f34bc6286a0a52cae85a4801333c362b53aaabf1b4b5745167138c4 | 0 | 126 |
{
"manifest_version": 3,
"name": "WebUntis Lehrer Stundenpläne",
"version": "1.0",
"description": "Erweitert WebUntis mit Lehrer Stundenplänen. [HTL Donaustadt]",
"permissions": [
"activeTab",
"storage"
],
"host_permissions": [
"https://melete.webuntis.com/*"
],
... | untis-lehrer-extension | manifest.json | JSON | 28d6dc3cedf52faa7e21c82de8df030978d3c7a927095f7f9f6ab6c7135724c2 | 0 | 208 |
{
"name": "teacher-timetable-extension",
"version": "1.0.0",
"type": "module",
"scripts": {
"build": "rollup -c",
"watch": "rollup -c -w"
},
"devDependencies": {
"@rollup/plugin-alias": "^5.1.1",
"@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-node-r... | untis-lehrer-extension | package.json | JSON | 0c747a82cd5f35aaac0594c20ee2e6de0cec4ccd9b74897861391f27098b9082 | 0 | 139 |
# 📚 WebUntis Teacher Timetable Extension
## 🎯 Overview
A powerful Chrome extension that seamlessly integrates teacher timetable viewing functionality into WebUntis
> [!IMPORTANT]
> This extension was specifically developed for HTL Donaustadt and is not guaranteed to work with other schools using WebUntis. The impl... | untis-lehrer-extension | README.md | Markdown | a665fa60bb0b475bcabe84dd56f1510c08b4a0d1a96d7146e4e4d9897ce236ad | 0 | 484 |
import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import alias from "@rollup/plugin-alias";
import path from "path";
export default {
input: "src/contentScript.js",
output: {
file: "dist/contentScript.js",
format: "iife",
},
plugins: [
alias({
... | untis-lehrer-extension | rollup.config.js | JavaScript | 5beb611cd032cd330e83d588bbc160398135e2eff2de0984a0d5c14b00d1c153 | 0 | 226 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.