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
error.message || 'Beim Senden der Nachricht ist ein Fehler aufgetreten. Bitte versuche es erneut.' } /> ) } }} > <div className="flex items-center w...
brz-chatbot
components/chat/chat-panel.tsx
TypeScript
fc35ccc1eae1029e5941fa898f62e269ea8dc435bd40d974979bedf1edc17c6b
1
90
'use client' import { ChatList } from '@/components/chat/chat-list' import { ChatPanel } from '@/components/chat/chat-panel' import { EmptyScreen } from '@/components/empty-screen' import { useLocalStorage } from '@/lib/hooks/use-local-storage' import { useScrollAnchor } from '@/lib/hooks/use-scroll-anchor' import { c...
brz-chatbot
components/chat/chat.tsx
TypeScript
a6d31b17e4962fd21a5af318cfd12fd291e5493f3f99fcebbbe41726b43e7b8c
0
896
radial-gradient(50%_50%_at_50%_50%,_rgba(185,_30,_35,_0.8)_46.35%,_rgba(173,_255,_0,_0)_100%)] mix-blend-lighten border-[35px] border-primary filter blur-[175px] rounded-full" /> <ScrollArea className="mx-1 my-5 overflow-auto"> <ChatList messages={messages} isShared={false} session={session} /> ...
brz-chatbot
components/chat/chat.tsx
TypeScript
377aef560f262ff9511d8831910063e2febedc021a67b2dbd1ef9fcc2a57cad6
1
236
'use client' /* eslint-disable @next/next/no-img-element */ import { IconBRZ, IconUser } from '@/components/ui/icons' import { cn } from '@/lib/utils' import { spinner } from '@/components/chat/spinner' import { CodeBlock } from '@/components/ui/codeblock' import { MemoizedReactMarkdown } from '../markdown' import re...
brz-chatbot
components/chat/message.tsx
TypeScript
3ad8d2d03bdbafd2c05b4540a91d1c22d573588ec4d1b56ad86a1ae9bfdad51e
0
896
:bg-primary dark:text-background' )} > <IconBRZ /> </div> <div className="flex flex-col mx-3 text-sm"> <b>Du</b> </div> </div> <div className="flex space-x-5"> <div className="items-center justify-center hidden w-10 h-10 border rounded-md...
brz-chatbot
components/chat/message.tsx
TypeScript
cc1364056a1cea93cbd508c07aec6023b41107bea6fd6da687049763f88e872d
1
259
'use client' import * as React from 'react' import Textarea from 'react-textarea-autosize' // @ts-ignore import { useActions, useUIState } from 'ai/rsc' import { type AI } from '@/lib/chat/actions' import { Button } from '@/components/ui/button' import { IconSubmit } from '@/components/ui/icons' import { Tooltip, ...
brz-chatbot
components/chat/prompt-form.tsx
TypeScript
302955bc25658758931e1b8b21519390282f7dda62015c684865dfbabe45b433
0
896
2"> <Tooltip> <TooltipTrigger asChild> <Button type="submit" disabled={input === ''} className="w-full h-full border bg-primary rounded-xl" > <IconSubmit className="w-10 h-10" /> <span class...
brz-chatbot
components/chat/prompt-form.tsx
TypeScript
8e04e425b40b92ea0a4bd84f233be1ec9c8afcb211388b88309ac5893b3df28a
1
112
'use client' export const spinner = ( <svg fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" strokeLinecap="round" strokeLinejoin="round" xmlns="http://www.w3.org/2000/svg" className="size-5 animate-spin stroke-zinc-400" > <path d="M12 3v3m6.366-.366-2.12 2...
brz-chatbot
components/chat/spinner.tsx
TypeScript
33ed674a6e01c3f8bb9596b8e45fcd30b26c06ee543d524ab3ff1412046ff817
0
140
import { HomeIcon, PiggyBankIcon, PlaneIcon, SchoolIcon, StarsIcon, TicketIcon, TrainIcon } from 'lucide-react' import React from 'react' export enum Benefit { 'Flexible Arbeitszeiten ohne Kernzeiten & 60% Teleworking' = 'Flexible Arbeitszeiten & Teleworking', 'Ausgezeichnete öffentliche Verkehrsanbi...
brz-chatbot
components/jobs/job-benefits.tsx
TypeScript
7cadf5a9dd701ac2d485ae5dd2b30292460a02fd8eecc257c939e7599bd3da9d
0
550
'use client' import React from 'react' import { Card } from '@/components/ui/card' import { JobInfo } from '@/lib/jobs/job-info' import { Separator } from '../ui/separator' import Image from 'next/image' import BRZLogo from '@/public/logo-brz.png' import { useTruncatedElement } from '@/lib/hooks/use-truncate-element' ...
brz-chatbot
components/jobs/job-card.tsx
TypeScript
8d531f579d7e115d6b5f059a07df1175eaceaaf98c8fda544fa95e965fa13a38
0
896
div> )} {jobInfo.requirements.length > 0 && ( <div className="flex flex-col gap-2"> <span className="text-xl font-semibold">Sie bringen mit</span> <Separator /> <ul className="list-disc space-y-3"> {jobInfo.requireme...
brz-chatbot
components/jobs/job-card.tsx
TypeScript
a355eaaf5e245bcd8d1e3313d47052f33bdb8aa2cc0e9c2c60846eb86bbfefe0
1
189
'use client' // @ts-ignore import { useActions, useUIState } from 'ai/rsc' import { Message, SitemapJob } from '@/types' import { format } from 'date-fns' import { de } from 'date-fns/locale' import BRZLogo from '@/public/logo-brz.png' import React from 'react' import Image from 'next/image' import { BriefcaseIcon, C...
brz-chatbot
components/jobs/job-list.tsx
TypeScript
18d10f409a01c513cf84735bdc330f447151573f066001dd37b8a571b6a98aa2
0
896
2.5">{job.title}</div> <div className="text-sm text-muted-foreground"> Bundesrechenzentrum - Wien </div> </div> <div> <div className="font-mono font-medium tracking-tight sm:text-right"> {format...
brz-chatbot
components/jobs/job-list.tsx
TypeScript
b6522219707f018cf2ea30449b0cced25657e25e150543c2502c183d0630f62e
1
179
import React from 'react' const JobStats = () => { return <div>JobStats</div> } export default JobStats
brz-chatbot
components/jobs/job-stats.tsx
TypeScript
c9d799480a7452ac5523ea2b28ef0cdfc69c1664bedc2049c4dea0ec72b209c7
0
27
'use client' import * as React from 'react' import { Check, ChevronsUpDown } from 'lucide-react' import { cn } from '@/lib/utils' import { Button } from '@/components/ui/button' import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem } from '@/components/ui/command' import { Popover, Pop...
brz-chatbot
components/public-transport/station-widget.tsx
TypeScript
6d851a4a34c6eff5c91c98d2bc4f567f8700fc96aa0af54ea757d7fd92a104a5
0
491
import * as React from 'react' import { SidebarList } from '@/components/sidebar/sidebar-list' import { UserMenu } from '../user-menu' interface ChatHistoryProps { userId?: string } export async function ChatHistory({ userId }: ChatHistoryProps) { return ( <div className="flex flex-col h-full"> <React....
brz-chatbot
components/sidebar/chat-history.tsx
TypeScript
4f382acadc7a47b399a2af119f3bd604dad67922797d7feb389f162dfe3db906
0
188
'use client' import * as React from 'react' import { type DialogProps } from '@radix-ui/react-dialog' import { toast } from 'sonner' import { Button } from '@/components/ui/button' import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog' im...
brz-chatbot
components/sidebar/chat-share-dialog.tsx
TypeScript
e688f85af17665d79f4a3b44e927bc74aee28af9232d03a8063be501dfecf584
0
545
'use client' import * as React from 'react' import { useRouter } from 'next/navigation' import { toast } from 'sonner' import { Button } from '@/components/ui/button' import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHea...
brz-chatbot
components/sidebar/clear-history.tsx
TypeScript
3ef3abf1b1d5db225a895dd05a0999ec55062d5e6a402013a45f9066b1946f6f
0
454
'use client' import { useRouter } from 'next/navigation' import * as React from 'react' import { toast } from 'sonner' import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from '@/components/ui/...
brz-chatbot
components/sidebar/sidebar-actions.tsx
TypeScript
6c49f1b886bcfca7636b13b9c74c32764d5c44873cc50a648b73ed23ce061489
0
678
import { Sidebar } from '@/components/sidebar/sidebar' import { auth } from '@/auth' import { ChatHistory } from '@/components/sidebar/chat-history' import { IconBRZ } from '@/components/ui/icons' import { Button } from '@/components/ui/button' import Link from 'next/link' import { getChats } from '@/app/actions' exp...
brz-chatbot
components/sidebar/sidebar-desktop.tsx
TypeScript
54e6d5266aef1efc4a027d087566dab72c14462a1bccab517f31c81f28aebb6d
0
896
Button> </div> {/* <div className="absolute inset-x-0 top-0 z-10 h-full pointer-events-none bg-gradient-to-t from-30% from-background" /> */} </div> )} </div> </Sidebar> </> ) }
brz-chatbot
components/sidebar/sidebar-desktop.tsx
TypeScript
8d0ad3a15de010d267f9751c17312de493945e1b4b26b3139ee184b10256a957
1
73
import { cn } from '@/lib/utils' export function SidebarFooter({ children, className, ...props }: React.ComponentProps<'div'>) { return ( <div className={cn('flex items-center justify-between p-4', className)} {...props} > {children} </div> ) }
brz-chatbot
components/sidebar/sidebar-footer.tsx
TypeScript
43440f8cbf8ff753cc736b60e57a9b7179c8a58740543d0eb1cfa9947e1aa00d
0
78
'use client' import * as React from 'react' import Link from 'next/link' import { usePathname } from 'next/navigation' import { motion } from 'framer-motion' import { buttonVariants } from '@/components/ui/button' import { IconMessage, IconUsers } from '@/components/ui/icons' import { Tooltip, TooltipContent, ...
brz-chatbot
components/sidebar/sidebar-item.tsx
TypeScript
3530e2508d4578b01adad042108b8f17b9a99fd040fb8d8dfd40db1f55979245
0
766
'use client' import { AnimatePresence, motion } from 'framer-motion' import { removeChat, shareChat } from '@/app/actions' import { SidebarActions } from '@/components/sidebar/sidebar-actions' import { SidebarItem } from '@/components/sidebar/sidebar-item' import { Chat } from '@/types' interface SidebarItemsProps ...
brz-chatbot
components/sidebar/sidebar-items.tsx
TypeScript
820e93ade46fdb571fd7f295ab1955cccabea94b9b15cdd4f1bbbc8b7ee9f580
0
201
import { clearChats, getChats } from '@/app/actions' import { ClearHistory } from '@/components/sidebar/clear-history' import { SidebarItems } from '@/components/sidebar/sidebar-items' import { cache } from 'react' import { ImprintDialog } from '../imprint-dialog' import { Button, buttonVariants } from '../ui/button' i...
brz-chatbot
components/sidebar/sidebar-list.tsx
TypeScript
8287b462f52461f12528c7cea251f3b8e447492e1420418370bb2fa8ea0de429
0
766
'use client' import { Sheet, SheetContent, SheetTrigger } from '@/components/ui/sheet' import { Sidebar } from '@/components/sidebar/sidebar' import { Button } from '@/components/ui/button' import { IconSidebar } from '@/components/ui/icons' interface SidebarMobileProps { children: React.ReactNode } export funct...
brz-chatbot
components/sidebar/sidebar-mobile.tsx
TypeScript
939b25c70d6ac306c1c5c69ed75f19d9e096b85400c5dc7a74581688b9c65473
0
212
'use client' import * as React from 'react' import { useSidebar } from '@/lib/hooks/use-sidebar' import { Button } from '@/components/ui/button' import { IconSidebar } from '@/components/ui/icons' export function SidebarToggle() { const { toggleSidebar } = useSidebar() return ( <Button variant="ghost"...
brz-chatbot
components/sidebar/sidebar-toggle.tsx
TypeScript
caf986ed5ec4f068ab4482f0f46b337bfea69b2a3712fd1d31c0da74750b2c3d
0
144
'use client' import * as React from 'react' import { useSidebar } from '@/lib/hooks/use-sidebar' import { cn } from '@/lib/utils' export interface SidebarProps extends React.ComponentProps<'div'> {} export function Sidebar({ className, children }: SidebarProps) { const { isSidebarOpen, isLoading } = useSidebar() ...
brz-chatbot
components/sidebar/sidebar.tsx
TypeScript
cfc6b5b146c747422be26fcd518d490bdef7ba58f2aa3cb912451d53a6919b0a
0
198
'use client' import { Sheet, SheetContent } from '@/components/ui/sheet' import { Sidebar } from '@/components/sidebar/sidebar' import { ChatHistory } from '@/components/sidebar/chat-history' interface SidebarMobileProps { children: React.ReactNode } export function SidebarMobile({ children }: SidebarMobileProps) ...
brz-chatbot
components/sidebar/sitebar-mobile.tsx
TypeScript
dffe2c7306e5b36990e947b0e48c04e1c4ec82d024e7c87f983fd72d69d7419c
0
121
'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 const Alert...
brz-chatbot
components/ui/alert-dialog.tsx
TypeScript
de36cba9245d68684a482e52f21576c4abcc726a8dac4d2c311233605fd87a12
0
896
) AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName const AlertDialogCancel = React.forwardRef< React.ElementRef<typeof AlertDialogPrimitive.Cancel>, React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> >(({ className, ...props }, ref) => ( <AlertDialogPrimitive.Cancel ref...
brz-chatbot
components/ui/alert-dialog.tsx
TypeScript
66a90d28543f7d9ff0e628a8225be7654d594372743fbdd66db53f4ba2216b9b
1
131
import * as React from 'react' import { cva, type VariantProps } from 'class-variance-authority' import { cn } from '@/lib/utils' const badgeVariants = cva( 'inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-...
brz-chatbot
components/ui/badge.tsx
TypeScript
984c63c8f41c24ac59346446c5220a34d58d70ce719c53621184772c96a458ad
0
257
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 rounded-md text-sm font-medium shadow ring-offset-background transition-c...
brz-chatbot
components/ui/button.tsx
TypeScript
1029c9a27ec050049348e88f5039704ff9197020eebc85498ee078f9e9b0daea
0
453
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 )}...
brz-chatbot
components/ui/card.tsx
TypeScript
8bad317eca5b74899d868688a339a16f54995e36810c0fdfe214c057755535e0
0
500
// Inspired by Chatbot-UI and modified to fit the needs of this project // @see https://github.com/mckaywrigley/chatbot-ui/blob/main/components/Markdown/CodeBlock.tsx 'use client' import { FC, memo } from 'react' import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter' import { coldarkDark } from 'react-...
brz-chatbot
components/ui/codeblock.tsx
TypeScript
f210c329711aaa7f2c8321906d4c8beecfb24ce246714ca2529f48cf05e470f4
0
896
downloadAsFile} size="icon" > <IconDownload /> <span className="sr-only">Download</span> </Button> <Button variant="ghost" size="icon" className="text-xs hover:bg-zinc-800 focus-visible:ring-1 focus-visible:ring-slate-...
brz-chatbot
components/ui/codeblock.tsx
TypeScript
59385999ed320f75fb8a1b25d658f24c94b473c8fe9e546da694d5b2c3452d3d
1
233
"use client" import * as React from "react" import { type DialogProps } from "@radix-ui/react-dialog" import { Command as CommandPrimitive } from "cmdk" import { Search } from "lucide-react" import { cn } from "@/lib/utils" import { Dialog, DialogContent } from "@/components/ui/dialog" const Command = React.forwardR...
brz-chatbot
components/ui/command.tsx
TypeScript
e096bd1fcfa1a67ae489855559e1de72163d4d9b3a9aeab34352199d15c91e04
0
896
.Group ref={ref} className={cn( "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", className )} {...props} /> )) CommandGr...
brz-chatbot
components/ui/command.tsx
TypeScript
3cd11f65b1773c3c80b651a632aaf11756b47dcf5411ba7c754ef724ef9e3346
1
449
"use client" import * as React from "react" import * as DialogPrimitive from "@radix-ui/react-dialog" import { X } from "lucide-react" import { cn } from "@/lib/utils" const Dialog = DialogPrimitive.Root const DialogTrigger = DialogPrimitive.Trigger const DialogPortal = DialogPrimitive.Portal const DialogClose = ...
brz-chatbot
components/ui/dialog.tsx
TypeScript
bef79b158515cb0d6c1b337d580f8d51baebdd1c63962267142d3f0236e18651
0
896
, ...props }, ref) => ( <DialogPrimitive.Title ref={ref} className={cn( "text-lg font-semibold leading-none tracking-tight", className )} {...props} /> )) DialogTitle.displayName = DialogPrimitive.Title.displayName const DialogDescription = React.forwardRef< React.ElementRef<typeof Di...
brz-chatbot
components/ui/dialog.tsx
TypeScript
2ceb4f644e98cf1d905239734aff8bd5c3312c5980d56e02f7cb3a57cfe4a76f
1
176
'use client' import * as React from 'react' import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu' import { cn } from '@/lib/utils' const DropdownMenu = DropdownMenuPrimitive.Root const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger const DropdownMenuGroup = DropdownMenuPrimitive.Group const ...
brz-chatbot
components/ui/dropdown-menu.tsx
TypeScript
6e9253721e5e3a634c3ab1776686291da7b0c2baf0baa5e9ddbda2a95da5f071
0
896
displayName const DropdownMenuShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => { return ( <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} /> ) } DropdownMenuShortcut.displayName = 'DropdownMenuShortcut' export { Dropd...
brz-chatbot
components/ui/dropdown-menu.tsx
TypeScript
4086cbd3823c4ccb739e52b5129a955ab002df970772fd48d78a44f026d14e4f
1
94
import * as React from "react" import * as LabelPrimitive from "@radix-ui/react-label" import { Slot } from "@radix-ui/react-slot" import { Controller, ControllerProps, FieldPath, FieldValues, FormProvider, useFormContext, } from "react-hook-form" import { cn } from "@/lib/utils" import { Label } from "@/c...
brz-chatbot
components/ui/form.tsx
TypeScript
acfc894418a91ae0ad17d188a8f26ea7ac0a9b201d35c5dab8d5b77f376118de
0
896
.message) : children if (!body) { return null } return ( <p ref={ref} id={formMessageId} className={cn("text-sm font-medium text-destructive", className)} {...props} > {body} </p> ) }) FormMessage.displayName = "FormMessage" export { useFormField, Form, For...
brz-chatbot
components/ui/form.tsx
TypeScript
a54c1956d73de7ff3d7850dd214e7f5fe43e529ee557cc8e09000683826be05a
1
91
'use client' import * as React from 'react' import { cn } from '@/lib/utils' function IconNextChat({ className, inverted, ...props }: React.ComponentProps<'svg'> & { inverted?: boolean }) { const id = React.useId() return ( <svg viewBox="0 0 17 17" xmlns="http://www.w3.org/2000/svg" ...
brz-chatbot
components/ui/icons.tsx
TypeScript
c6e5a9dbdd2b0ee47e210ee967266985bf9d09aa627d7f20ab1aaee8a32c8eaa
0
896
13.5 2.05228 13.5 1.5V1H14H14.5V1.5C14.5 2.05228 14.9477 2.5 15.5 2.5H16V3V3.5H15.5C14.9477 3.5 14.5 3.94772 14.5 4.5Z" fill="currentColor" ></path> <path d="M8.40706 4.92939L8.5 4H9.5L9.59294 4.92939C9.82973 7.29734 11.7027 9.17027 14.0706 9.40706L15 9.5V10.5L14.0706 10.5929C11.7027 10.8297...
brz-chatbot
components/ui/icons.tsx
TypeScript
be0e6f993e2352ef3f03d75f3da47945a546ded1df09c9348df359a8532ec41f
1
896
className, ...props }: React.ComponentProps<'svg'>) { return ( <svg width="34" height="15" viewBox="0 0 34 15" fill="currentColor" className={cn('h-4 w-4', className)} {...props} > <path d="M3.14512 0.00342383C2.16123 0.0342124 1.44506 0.0770487 0.862754 0.142642C0.52...
brz-chatbot
components/ui/icons.tsx
TypeScript
624b2e1a83de95f4ed36928ee3b1c33e02548501482eecf316a274d3ea23236c
2
896
10.0459 24.4776 12.4206 24.4468 12.4808C24.3022 12.7539 24.2152 13.1582 24.2152 13.5517C24.2152 13.8958 24.2728 14.1849 24.3799 14.3723C24.4361 14.4727 24.5646 14.5986 24.673 14.6588C24.7547 14.7043 24.9622 14.7833 24.9702 14.7726C24.9715 14.7699 26.855 12.023 29.1548 8.66974C31.749 4.88676 33.3567 2.52943 33.3915 2.45...
brz-chatbot
components/ui/icons.tsx
TypeScript
2a0891f7fff796723398b548e142c482e3af5f64ee21b4289f00c25dd6a4479e
3
896
138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" /> </svg> ) } function IconSeparator({ className, ......
brz-chatbot
components/ui/icons.tsx
TypeScript
8c59d82c25443726e78d6f9b4247c94545297f7a791407c985007ca7a9559917
4
896
21 20" xmlns="http://www.w3.org/2000/svg" fill="currentColor" className={cn('h-4 w-4', className)} {...props} > <g> <path d="M10.4999 7.49998C8.65827 7.49998 7.99994 8.15831 7.99994 9.99998C7.99994 11.8416 8.65819 12.5 10.4999 12.5C12.3415 12.5 12.9999 11.8416 12.9999 9.99998C1...
brz-chatbot
components/ui/icons.tsx
TypeScript
e14a9b380842a8940086ad6bea35fad94bd85a14fe6fb9904bb41ab5660d9c88
5
896
) } function IconArrowElbow({ className, ...props }: React.ComponentProps<'svg'>) { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" className={cn('h-4 w-4', className)} {...props} > <path d="M200 32v144a8 8 0 0 1-8 8H67.31l34.35 3...
brz-chatbot
components/ui/icons.tsx
TypeScript
41e5218458b0be7c81e940ea4efa17d8e6502a61f64a221e1e26929243d8ba93
6
896
www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" className={cn('h-4 w-4', className)} {...props} > <path d="M197.67 186.37a8 8 0 0 1 0 11.29C196.58 198.73 170.82 224 128 224c-37.39 0-64.53-22.4-80-39.85V208a8 8 0 0 1-16 0v-48a8 8 0 0 1 8-8h48a8 8 0 0 1 0 16H55.44C67.76 18...
brz-chatbot
components/ui/icons.tsx
TypeScript
839cdc62ca3b23472ae552327df70fabba543430d447e4c8e7bb75077b93fc91
7
896
> ) } function IconMoon({ className, ...props }: React.ComponentProps<'svg'>) { return ( <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor" className={cn('h-4 w-4', className)} {...props} > <path d="M21.64 1...
brz-chatbot
components/ui/icons.tsx
TypeScript
c9bafcb5b2a6e0bbd069ecbd0811d40a1b7485683a825c86eceef095846c5cb2
8
896
H10.931C10.7164 1.96059 10.2478 1.26343 9.59767 0.766389C8.94752 0.269352 8.15188 6.10352e-05 7.3335 6.10352e-05C6.51512 6.10352e-05 5.71948 0.269352 5.06933 0.766389C4.41917 1.26343 3.95064 1.96059 3.736 2.75032H1C0.734784 2.75032 0.48043 2.85568 0.292893 3.04321C0.105357 3.23075 0 3.4851 0 3.75032C0 4.01554 0.105357 ...
brz-chatbot
components/ui/icons.tsx
TypeScript
1ca41d2b4d2da775fa378fccfca7e87a974299aeb6bb5cb956d9f50dc642d4af
9
896
viewBox="0 0 256 256" fill="currentColor" className={cn('h-4 w-4', className)} {...props} > <path d="m229.66 77.66-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69 218.34 66.34a8 8 0 0 1 11.32 11.32Z" /> </svg> ) } function IconDownload({ className, ...props }: React.C...
brz-chatbot
components/ui/icons.tsx
TypeScript
99cd5dcf16c48437de20f7d0c8d9f8cfad8ad560c52761a87ab2168f1f3eead2
10
896
8 0 0 0 8-8V51.32L220.69 112Z" /> </svg> ) } function IconUsers({ className, ...props }: React.ComponentProps<'svg'>) { return ( <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" className={cn('h-4 w-4', className)} viewBox="0 0 256 256" {...props} > <path ...
brz-chatbot
components/ui/icons.tsx
TypeScript
5f15b4938216dfbd46d21fdf0d24753c623bb966b6da9a87f23869c69f6c4a2e
11
896
" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" className={cn('h-4 w-4', className)} {...props} > <path d="M10 7L11.763 8.74731C13.1689 10.1408 13.8719 10.8375 13.9801 11.6867C14.0066 11.8947 14.0066 12.1053 13.9801 12.3133C13.8719 13.1625 13.1689 13....
brz-chatbot
components/ui/icons.tsx
TypeScript
cd18fb539c48b88d2419c3a77aee0dca66a65c3a6f7e12e55dc875159f14d8dc
12
896
svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor" className={cn('h-4 w-4', className)} {...props} > <g> <path d="M10.007 3L8 2.986C7.9963 2.19278 7.67859 1.43331 7.11639 0.873724C6.55418 0.314139 5.79323 -8.6...
brz-chatbot
components/ui/icons.tsx
TypeScript
6a2c08b694fed9ff522367dea5623641436894883b467b6e174564d897f11686
13
896
C18.7345 21.9994 18.4802 21.894 18.2926 21.7065C18.1051 21.5189 17.9997 21.2646 17.9997 20.9994V18.9994C17.9997 18.7342 18.1051 18.4798 18.2926 18.2923C18.4802 18.1047 18.7345 17.9994 18.9997 17.9994H20.9997C21.2649 17.9994 21.5193 18.1047 21.7068 18.2923C21.8944 18.4798 21.9997 18.7342 21.9997 18.9994V20.9994Z" /> ...
brz-chatbot
components/ui/icons.tsx
TypeScript
9bb1a20b0654e86e33dd0a9280ad9ac9a30f998947dc93966d4ed72142f5b7b0
14
407
import * as React from 'react' import { cn } from '@/lib/utils' export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {} const Input = React.forwardRef<HTMLInputElement, InputProps>( ({ className, type, ...props }, ref) => { return ( <input type={type} classNam...
brz-chatbot
components/ui/input.tsx
TypeScript
d297dbe1e4467ee102635ecd55eb249ed6898f6eaddd88436425148d35155619
0
211
"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:opacity-...
brz-chatbot
components/ui/label.tsx
TypeScript
2eac8fbb04002c42b0fbc4062d20d131e421796eaf65c37d2049e29e42ecbc5a
0
180
"use client" import * as React from "react" import * as PopoverPrimitive from "@radix-ui/react-popover" import { cn } from "@/lib/utils" const Popover = PopoverPrimitive.Root const PopoverTrigger = PopoverPrimitive.Trigger const PopoverContent = React.forwardRef< React.ElementRef<typeof PopoverPrimitive.Content>...
brz-chatbot
components/ui/popover.tsx
TypeScript
8a10fdf10a500f709581fb49690c3a86c82d07db969266ee47bcad6f0c2782e5
0
341
'use client' import * as React from 'react' import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area' import { cn } from '@/lib/utils' const ScrollArea = React.forwardRef< React.ElementRef<typeof ScrollAreaPrimitive.Root>, React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> >(({ className, ch...
brz-chatbot
components/ui/scroll-area.tsx
TypeScript
e0623d4c62d432c42245ef9964fb0b1b936d0c2322ab93ecc0df03d019cbbfe7
0
371
'use client' import * as React from 'react' import * as SelectPrimitive from '@radix-ui/react-select' import { cn } from '@/lib/utils' import { IconArrowDown, IconCheck, IconChevronUpDown } from '@/components/ui/icons' const Select = SelectPrimitive.Root const SelectGroup = SelectPrimitive.Group const Select...
brz-chatbot
components/ui/select.tsx
TypeScript
7c926d1598e30be49d283755b730b6384b0c9f66ed2ad8fa42e00086e566be0a
0
896
forwardRef< React.ElementRef<typeof SelectPrimitive.Separator>, React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator> >(({ className, ...props }, ref) => ( <SelectPrimitive.Separator ref={ref} className={cn('-mx-1 my-1 h-px bg-muted', className)} {...props} /> )) SelectSeparator.displayNa...
brz-chatbot
components/ui/select.tsx
TypeScript
42cd357ebb89052e0af9faf4672d2977a7e45fcb38c0f0070687f55eef741e25
1
108
'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> >( ( { className,...
brz-chatbot
components/ui/separator.tsx
TypeScript
f37cc5f8bda2c0b226abc4e1fbd74dfa1bd77d34181a97f6bb43bf592e5c00b1
0
183
"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.Trigger cons...
brz-chatbot
components/ui/sheet.tsx
TypeScript
edab6d0b7662919d2f490745b268bd52ed35625932220fd17744477c219b0abf
0
896
..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", className )} {...props} /> ) SheetFooter.displayName = "S...
brz-chatbot
components/ui/sheet.tsx
TypeScript
f2f3b0d9a242aecf4d750e0b0338bf846bffb3b1f533755a677c7686749647ce
1
293
"use client" import { useTheme } from "next-themes" import { Toaster as Sonner } from "sonner" type ToasterProps = React.ComponentProps<typeof Sonner> const Toaster = ({ ...props }: ToasterProps) => { const { theme = "system" } = useTheme() return ( <Sonner theme={theme as ToasterProps["theme"]} ...
brz-chatbot
components/ui/sonner.tsx
TypeScript
771ab8637d27384c3ed030ba3be01a07b90c791c294eae06646250f8e81bc49e
0
227
'use client' import * as React from 'react' import * as SwitchPrimitives from '@radix-ui/react-switch' import { cn } from '@/lib/utils' const Switch = React.forwardRef< React.ElementRef<typeof SwitchPrimitives.Root>, React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> >(({ className, ...props }, ref) =>...
brz-chatbot
components/ui/switch.tsx
TypeScript
fae945e4e5978570d2cad06631be168f35f5cca48e3666a5d039eb5297896183
0
315
import * as React from 'react' import { cn } from '@/lib/utils' const Table = React.forwardRef< HTMLTableElement, React.HTMLAttributes<HTMLTableElement> >(({ className, ...props }, ref) => ( <div className="relative w-full overflow-auto border rounded-xl"> <table ref={ref} className={cn('w-full ...
brz-chatbot
components/ui/table.tsx
TypeScript
d6f6ebb206f3a4c7b9945a1ee50e322ed04e4705e4c0f48d308b2bfbacba199d
0
742
import * as React from 'react' import { cn } from '@/lib/utils' export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {} const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>( ({ className, ...props }, ref) => { return ( <textarea className={cn...
brz-chatbot
components/ui/textarea.tsx
TypeScript
5f1a8690177829235b302f0fb330b494459e63322a25a3f7d7a6dc2e9e2bc56b
0
186
'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.forwardRef< ...
brz-chatbot
components/ui/tooltip.tsx
TypeScript
181fad837e09777c5402bbe8f006c36cb164e116f39b8cb4ef84b73ae6de7dbd
0
267
import { SiteConfig } from 'types' export const siteConfig: SiteConfig = { name: 'BRZ Chatbot', description: 'AI Chatbot für das Bundesrechenzentrum (BRZ)', url: 'https://www.github.com/julian-at/brz-chatbot' } export const jobProfiles = [ 'BI/AI/Big Data/Data Science', 'Communications/HR/Legal/Controlling/...
brz-chatbot
config/config.ts
TypeScript
81381562f671fbb4152372eae13108f65db81de898e323202b8e659959b118b4
0
188
import { DashboardConfig } from 'types' export const dashboardConfig: DashboardConfig = { sidebarNav: [ { title: 'Einstellungen', href: '/dashboard', icon: 'IconSettings' }, { title: 'Jobs-API Explorer', href: '/dashboard/jobs/explorer', icon: 'IconBRZ' } ] }
brz-chatbot
config/dashboard.ts
TypeScript
0008f5d1ac9ac6b8eccae0d8d776e957839e139392c7aaa40218240e9bc37156
0
68
'use server' export const signOut = async () => { await signOut() }
brz-chatbot
lib/auth.ts
TypeScript
aa7b14714f0162c3791f5e549c2e3d120e1fafab7045a54635805f05559ad251
0
19
import { JetBrains_Mono as FontMono, Inter as FontSans } from 'next/font/google' export const fontSans = FontSans({ subsets: ['latin'], variable: '--font-sans' }) export const fontMono = FontMono({ subsets: ['latin'], variable: '--font-mono' })
brz-chatbot
lib/fonts.ts
TypeScript
710899b622346cb357faab972e17acd496186e92b9a854ee704e9fa59fee5059
0
70
import { clsx, type ClassValue } from 'clsx' import moment from 'moment' import { customAlphabet } from 'nanoid' import { twMerge } from 'tailwind-merge' export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)) } export const nanoid = customAlphabet( '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefgh...
brz-chatbot
lib/utils.ts
TypeScript
d1db316182e83c089642861b1da344b74154d8120b7bb2d221bf7f8eeaf7e702
0
754
import 'server-only' import { createAI, createStreamableUI, getMutableAIState, getAIState, streamUI, createStreamableValue } from 'ai/rsc' import { openai } from '@ai-sdk/openai' import { z } from 'zod' import { BotCard, BotMessage, SpinnerMessage, UserMessage } from '@/components/chat/message' i...
brz-chatbot
lib/chat/actions.tsx
TypeScript
a3623ed6052a75ef6bb64b7e5178cad99aaa0f496eacfec78c353b40230b36df
0
896
', toolName: 'listPositions', toolCallId, result: jobs } ] } ] }) return ( <BotCard> <JobList jobs={jobs} /> </BotCard> ) }...
brz-chatbot
lib/chat/actions.tsx
TypeScript
0056846c1d32e01d2a1034e8fd208669d730f64457cb6bcf0cf2d57fa7b98a6f
1
787
import { Ratelimit } from '@upstash/ratelimit' import { kv } from '@vercel/kv' import { redirect } from 'next/navigation' import { headers } from 'next/headers' const geminiRatelimit = new Ratelimit({ redis: kv, limiter: Ratelimit.slidingWindow(60, '1 m'), analytics: true, prefix: 'gemini_ratelimit' }) functi...
brz-chatbot
lib/chat/ratelimit.ts
TypeScript
50996adf71edaa3c8b43174fcf31d945e0dd6053eb9483a9b435070318938763
0
142
'use client' import * as React from 'react' export interface useCopyToClipboardProps { timeout?: number } export function useCopyToClipboard({ timeout = 2000 }: useCopyToClipboardProps) { const [isCopied, setIsCopied] = React.useState<Boolean>(false) const copyToClipboard = (value: string) => { if (type...
brz-chatbot
lib/hooks/use-copy-to-clipboard.tsx
TypeScript
568c25e5d7b713169a9183f2e09071b10ea092a48cef1b0485c5199de9f3ab33
0
137
import { useRef, type RefObject } from 'react' export function useEnterSubmit(): { formRef: RefObject<HTMLFormElement> onKeyDown: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void } { const formRef = useRef<HTMLFormElement>(null) const handleKeyDown = ( event: React.KeyboardEvent<HTMLTextAreaEleme...
brz-chatbot
lib/hooks/use-enter-submit.tsx
TypeScript
9c9bf64f5c07b88b9327fb03e8a65ca4dfbfdf2b7747f26e0383b45fe7f47c33
0
120
import { useEffect, useState } from 'react' export const useLocalStorage = <T>( key: string, initialValue: T ): [T, (value: T) => void] => { const [storedValue, setStoredValue] = useState(initialValue) useEffect(() => { // Retrieve from localStorage const item = window.localStorage.getItem(key) if...
brz-chatbot
lib/hooks/use-local-storage.ts
TypeScript
90304c9dd18f99cf8864533ab13f495af5818037afa96c14c7923d4b0ea8cb28
0
144
import { useCallback, useEffect, useRef, useState } from 'react' export const useScrollAnchor = () => { const messagesRef = useRef<HTMLDivElement>(null) const scrollRef = useRef<HTMLDivElement>(null) const visibilityRef = useRef<HTMLDivElement>(null) const [isAtBottom, setIsAtBottom] = useState(true) const ...
brz-chatbot
lib/hooks/use-scroll-anchor.tsx
TypeScript
389b640e9bd5e86ff687788acaa48c4f44f61d9a63b9e6472ee019c68c2f9dff
0
382
'use client' import * as React from 'react' const LOCAL_STORAGE_KEY = 'sidebar' interface SidebarContext { isSidebarOpen: boolean toggleSidebar: () => void isLoading: boolean } const SidebarContext = React.createContext<SidebarContext | undefined>( undefined ) export function useSidebar() { const context...
brz-chatbot
lib/hooks/use-sidebar.tsx
TypeScript
78e02a07969a7b1cff15328353162efa2e9e25086e37c8f1f6aee479a3cb65a0
0
250
import { StreamableValue, readStreamableValue } from 'ai/rsc' import { useEffect, useState } from 'react' export const useStreamableText = ( content: string | StreamableValue<string> ) => { const [rawContent, setRawContent] = useState( typeof content === 'string' ? content : '' ) useEffect(() => { ;(a...
brz-chatbot
lib/hooks/use-streamable-text.ts
TypeScript
b519b488601f73b91e2c0eb7e031ca1f5eb3d927529d82bf00de967f8fca9c58
0
150
import { useState, useLayoutEffect } from 'react' export const useTruncatedElement = ({ ref }: { ref: any }) => { const [isTruncated, setIsTruncated] = useState(false) const [isReadingMore, setIsReadingMore] = useState(false) useLayoutEffect(() => { const { offsetHeight, scrollHeight } = ref.current || {} ...
brz-chatbot
lib/hooks/use-truncate-element.tsx
TypeScript
62a539517edd416d89ca9d66e5d4a50c9c342471ecde61ddf432591eab8d384f
0
111
'use server' // import cheerio from 'cheerio' const cheerio = require('cheerio') export interface JobInfo { image: string | undefined title: string | undefined reference: string | undefined location: string | undefined employmentType: string | undefined startDate: string | undefined duration: string | u...
brz-chatbot
lib/jobs/job-info.ts
TypeScript
770e250b4584cad77c4cc5265c2652dc1dc38898f991fdf50448c63e90d5e326
0
718
'use server' import { SitemapJob } from '@/types' import fetch from 'node-fetch' import xml2js from 'xml2js' interface JobSimilarity { job: SitemapJob similarity: number } const SITEMAP_URL = 'https://www.brz-jobs.at/sitemap.xml' function decodeJobTitleFromUrl(url: string): string { const uriEncodedTitle = ur...
brz-chatbot
lib/jobs/sitemap.ts
TypeScript
369d9c09ec8222cbc7da07c3591f1e26393aceaafdb632de0ea38d519a45e76a
0
559
[ { "stationID": "214460106", "relatedLines": "6", "latitude": "48.1737831466666", "name": "Absberggasse", "longitude": "16.3897519115987", "platforms": [ { "line": "6", "rbl": "406", "latitude": "48.17382284...
brz-chatbot
public/data/wl.json
JSON
c064232b19a4f3e6ade53e9086267a3035f089b775db5022b790739a9dc70f1c
0
896
": "977", "latitude": "48.2510272637799", "longitude": "16.5068867773787" }, { "line": "24A", "rbl": "959", "latitude": "48.2511175032237", "longitude": "16.5075492771116" } ] ...
brz-chatbot
public/data/wl.json
JSON
9d249f43328aec0475c21ac5b8e040633342cd22ef3621fec3e47dbb2219b10e
1
896
"Alberner Hafen", "longitude": "16.4946709179492", "platforms": [ { "line": "76A", "rbl": "5018", "latitude": "48.1584274284285", "longitude": "16.4946274715499" } ] }, { "stationID": "2144601...
brz-chatbot
public/data/wl.json
JSON
275669fcd37bde261095f141e4e3e119e87d6e600ab04e3513bc67a46b602785
2
896
"name": "Allerheiligengasse", "longitude": "16.3871451959394", "platforms": [ { "line": "5A", "rbl": "592", "latitude": "48.2382276845673", "longitude": "16.3870414200302" }, { "line": "5A...
brz-chatbot
public/data/wl.json
JSON
50a179d6db10e97b9584d1d239b4bbddc857e81074994b8a38a08354a92eea02
3
896
": "Nußdorfer Str/Alserbachstraße", "longitude": "16.3543870516446", "platforms": [ { "line": "5", "rbl": "354", "latitude": "48.2247545736947", "longitude": "16.3546979419475" }, { "line"...
brz-chatbot
public/data/wl.json
JSON
1c95184e6c2e2b9e70e41a2af4584ee497f986efa0f167def5429e324434f048
4
896
"line": "D", "rbl": "135", "latitude": "48.2286351230962", "longitude": "16.3596595758618" }, { "line": "D", "rbl": "136", "latitude": "48.2288542428979", "longitude": "16.359382717288...
brz-chatbot
public/data/wl.json
JSON
72fd5d15c6b208c9ed9b2b2095760ae9b567784bf990ff123a5c776d697159d2
5
896
}, { "line": "12A", "rbl": "3146", "latitude": "48.1867888912194", "longitude": "16.3473887455917" } ] }, { "stationID": "214460147", "relatedLines": "69A|15A", "latitude": "48.1702311550803",...
brz-chatbot
public/data/wl.json
JSON
af85dae5bfeb10407d6bf5143e449f92abe11634c11339f3fb425f50fbe6f7b5
6
896
, { "line": "N66", "rbl": "504", "latitude": "48.1615681368391", "longitude": "16.3244262927351" }, { "line": "16A", "rbl": "513", "latitude": "48.1616219273937", ...
brz-chatbot
public/data/wl.json
JSON
f63359a14337afb49ec641301d2c54501d4a7043dd4630278924e432df997997
7
896
: "48.2012196616469", "longitude": "16.29213903563" } ] }, { "stationID": "214460160", "relatedLines": "51A|52", "latitude": "48.193779959858", "name": "Ameisgasse", "longitude": "16.2994979064619", "platforms": [ { ...
brz-chatbot
public/data/wl.json
JSON
ef1a56f161c0a549e880ca3c659ae8ef365c37679fe5cf0cce79959b1adc86a3
8
896
line": "64A", "rbl": "1825", "latitude": "48.1371948732596", "longitude": "16.2984849009089" } ] }, { "stationID": "214460165", "relatedLines": "97A", "latitude": "48.226478797659", "name": "An den alten Schanzen...
brz-chatbot
public/data/wl.json
JSON
a58f24805b5a273bf265162fdd062dcf8852114e6d8917be2f197fbf2b6d53de
9
896