🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
clsx
Marc Klingen5b5271398a85
diff --git a/package-lock.json b/package-lock.jsonindex 2cbd1f43f6..dd8ce085ca 100644--- a/package-lock.json+++ b/package-lock.json@@ -25,6 +25,7 @@"@trpc/next": "^10.18.0","@trpc/react-query": "^10.18.0","@trpc/server": "^10.18.0",+ "clsx": "^1.2.1","next": "^13.4.1","next-auth": "^4.21.0","next-swagger-doc": "^0.3.6",diff --git a/package.json b/package.jsonindex d7e94dd1e5..bec5a3e44c 100644--- a/package.json+++ b/package.json@@ -29,6 +29,7 @@"@trpc/next": "^10.18.0","@trpc/react-query": "^10.18.0","@trpc/server": "^10.18.0",+ "clsx": "^1.2.1","next": "^13.4.1","next-auth": "^4.21.0","next-swagger-doc": "^0.3.6",diff --git a/src/components/layouts/layout.tsx b/src/components/layouts/layout.tsxindex 54ce69cb0c..23fb35398d 100644--- a/src/components/layouts/layout.tsx+++ b/src/components/layouts/layout.tsx@@ -15,7 +15,7 @@ import {} from "@heroicons/react/20/solid";import Link from "next/link";import { useRouter } from "next/router";-import { classNames } from "~/utils/tailwind";+import clsx from "clsx";const navigationPaths = [{ name: "Dashboard", href: "/", icon: HomeIcon },@@ -114,7 +114,7 @@ export default function Layout(props: PropsWithChildren) {<li key={item.name}><Linkhref={item.href}- className={classNames(+ className={clsx(item.current? "bg-gray-50 text-indigo-600": "text-gray-700 hover:bg-gray-50 hover:text-indigo-600",@@ -122,7 +122,7 @@ export default function Layout(props: PropsWithChildren) {)}><item.icon- className={classNames(+ className={clsx(item.current? "text-indigo-600": "text-gray-400 group-hover:text-indigo-600",@@ -145,7 +145,7 @@ export default function Layout(props: PropsWithChildren) {<li key={team.name}><Linkhref={team.href}- className={classNames(+ className={clsx(team.current? "bg-gray-50 text-indigo-600": "text-gray-700 hover:bg-gray-50 hover:text-indigo-600",@@ -153,7 +153,7 @@ export default function Layout(props: PropsWithChildren) {)}><span- className={classNames(+ className={clsx(team.current? "border-indigo-600 text-indigo-600": "border-gray-200 text-gray-400 group-hover:border-indigo-600 group-hover:text-indigo-600",@@ -208,7 +208,7 @@ export default function Layout(props: PropsWithChildren) {<li key={item.name}><Linkhref={item.href}- className={classNames(+ className={clsx(item.current? "bg-gray-50 text-indigo-600": "text-gray-700 hover:bg-gray-50 hover:text-indigo-600",@@ -216,7 +216,7 @@ export default function Layout(props: PropsWithChildren) {)}><item.icon- className={classNames(+ className={clsx(item.current? "text-indigo-600": "text-gray-400 group-hover:text-indigo-600",@@ -239,7 +239,7 @@ export default function Layout(props: PropsWithChildren) {<li key={team.name}><Linkhref={team.href}- className={classNames(+ className={clsx(team.current? "bg-gray-50 text-indigo-600": "text-gray-700 hover:bg-gray-50 hover:text-indigo-600",@@ -247,7 +247,7 @@ export default function Layout(props: PropsWithChildren) {)}><span- className={classNames(+ className={clsx(team.current? "border-indigo-600 text-indigo-600": "border-gray-200 text-gray-400 group-hover:border-indigo-600 group-hover:text-indigo-600",@@ -365,7 +365,7 @@ export default function Layout(props: PropsWithChildren) {{({ active }) => (<Linkhref={item.href}- className={classNames(+ className={clsx(active ? "bg-gray-50" : "","block px-3 py-1 text-sm leading-6 text-gray-900")}diff --git a/src/pages/index.tsx b/src/pages/index.tsxindex f0ac6300b8..70763e272b 100644--- a/src/pages/index.tsx+++ b/src/pages/index.tsx@@ -1,7 +1,7 @@import { ChevronRightIcon } from "@heroicons/react/20/solid";import { CommandLineIcon, MegaphoneIcon } from "@heroicons/react/24/outline";+import clsx from "clsx";import { SiPython } from "react-icons/si";-import { classNames } from "~/utils/tailwind";const items = [{@@ -46,7 +46,7 @@ export default function Start() {<div className="group relative flex items-start space-x-3 py-4"><div className="flex-shrink-0"><span- className={classNames(+ className={clsx(item.iconColor,"inline-flex h-10 w-10 items-center justify-center rounded-lg")}diff --git a/src/utils/tailwind.ts b/src/utils/tailwind.tsdeleted file mode 100644index b14852ec60..0000000000--- a/src/utils/tailwind.ts+++ /dev/null@@ -1,3 +0,0 @@-export function classNames(...classes: string[]) {- return classes.filter(Boolean).join(" ");-}