diff --git a/app/package.json b/app/package.json index a22a0a6..b256ae3 100644 --- a/app/package.json +++ b/app/package.json @@ -65,7 +65,7 @@ "hono": "4.8.3", "json-schema-library": "10.0.0-rc7", "json-schema-to-ts": "^3.1.1", - "jsonv-ts": "^0.8.1", + "jsonv-ts": "0.8.2", "kysely": "0.27.6", "lodash-es": "^4.17.21", "oauth4webapi": "^2.11.1", diff --git a/app/src/modules/ModuleManager.ts b/app/src/modules/ModuleManager.ts index 660902a..2948b5c 100644 --- a/app/src/modules/ModuleManager.ts +++ b/app/src/modules/ModuleManager.ts @@ -1,13 +1,5 @@ -import { - mark, - stripMark, - $console, - s, - objectEach, - transformObject, - McpServer, - DebugLogger, -} from "bknd/utils"; +import { mark, stripMark, $console, s, objectEach, transformObject, McpServer } from "bknd/utils"; +import { DebugLogger } from "core/utils/DebugLogger"; import { Guard } from "auth/authorize/Guard"; import { env } from "core/env"; import { BkndError } from "core/errors"; diff --git a/app/src/ui/components/code/JsonViewer.tsx b/app/src/ui/components/code/JsonViewer.tsx index 6c75bea..26748fd 100644 --- a/app/src/ui/components/code/JsonViewer.tsx +++ b/app/src/ui/components/code/JsonViewer.tsx @@ -20,8 +20,9 @@ const style = { basicChildStyle: "pl-5 ml-1 border-l border-muted hover:border-primary/20", container: "ml-[-10px]", label: "text-primary/90 font-bold font-mono mr-2", - stringValue: "text-emerald-600 dark:text-emerald-500 font-mono select-text", - numberValue: "text-sky-500 dark:text-sky-400 font-mono", + stringValue: + "text-emerald-600 dark:text-emerald-500 font-mono select-text text-wrap whitespace-wrap break-words", + numberValue: "text-sky-500 dark:text-sky-400 font-mono select-text", nullValue: "text-zinc-400 font-mono", undefinedValue: "text-zinc-400 font-mono", otherValue: "text-zinc-400 font-mono", diff --git a/app/src/ui/layouts/AppShell/AppShell.tsx b/app/src/ui/layouts/AppShell/AppShell.tsx index 687c08c..b6f704a 100644 --- a/app/src/ui/layouts/AppShell/AppShell.tsx +++ b/app/src/ui/layouts/AppShell/AppShell.tsx @@ -1,6 +1,6 @@ import { useClickOutside, useHotkeys } from "@mantine/hooks"; import { IconChevronDown, IconChevronUp } from "@tabler/icons-react"; -import { clampNumber } from "core/utils/numbers"; +import { transformObject, clampNumber } from "bknd/utils"; import { throttle } from "lodash-es"; import { ScrollArea } from "radix-ui"; import { @@ -19,9 +19,21 @@ import { appShellStore } from "ui/store"; import { useLocation } from "wouter"; export function Root({ children }: { children: React.ReactNode }) { + const sidebarWidths = appShellStore((store) => store.sidebars); + const style = transformObject(sidebarWidths, (value) => value.width); return ( -
+
[ + `--sidebar-width-${key}`, + `${value}px`, + ]), + )} + > {children}
diff --git a/app/src/ui/main.css b/app/src/ui/main.css index 89511a9..755af31 100644 --- a/app/src/ui/main.css +++ b/app/src/ui/main.css @@ -74,7 +74,7 @@ @apply bg-background text-primary overflow-hidden h-dvh w-dvw; ::selection { - @apply bg-muted; + @apply bg-primary/15; } input { diff --git a/app/src/ui/main.tsx b/app/src/ui/main.tsx index 07e6540..ea561e4 100644 --- a/app/src/ui/main.tsx +++ b/app/src/ui/main.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import * as ReactDOM from "react-dom/client"; import Admin from "./Admin"; -import "./main.css"; +//import "./main.css"; import "./styles.css"; function render() { diff --git a/app/src/ui/routes/tools/mcp/tools.tsx b/app/src/ui/routes/tools/mcp/tools.tsx index dbd92ab..8a371fe 100644 --- a/app/src/ui/routes/tools/mcp/tools.tsx +++ b/app/src/ui/routes/tools/mcp/tools.tsx @@ -129,7 +129,7 @@ export function Content() { return (
-
+

{content?.description}

diff --git a/bun.lock b/bun.lock index 5de980a..d9765f6 100644 --- a/bun.lock +++ b/bun.lock @@ -15,7 +15,7 @@ }, "app": { "name": "bknd", - "version": "0.16.1", + "version": "0.17.0-rc.1", "bin": "./dist/cli/index.js", "dependencies": { "@cfworker/json-schema": "^4.1.1", @@ -35,7 +35,7 @@ "hono": "4.8.3", "json-schema-library": "10.0.0-rc7", "json-schema-to-ts": "^3.1.1", - "jsonv-ts": "^0.8.1", + "jsonv-ts": "0.8.2", "kysely": "0.27.6", "lodash-es": "^4.17.21", "oauth4webapi": "^2.11.1", @@ -2516,7 +2516,7 @@ "jsonpointer": ["jsonpointer@5.0.1", "", {}, "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ=="], - "jsonv-ts": ["jsonv-ts@0.8.1", "", { "optionalDependencies": { "hono": "*" }, "peerDependencies": { "typescript": "^5.0.0" } }, "sha512-kqt1OHZ4WM92PDAxySZeGGzccZr6q5YdKpM8c7QWkwGoaa1azwTG5lV9SN3PT4kVgI0OYFDr3OGkgCszLQ+WPw=="], + "jsonv-ts": ["jsonv-ts@0.8.2", "", { "optionalDependencies": { "hono": "*" }, "peerDependencies": { "typescript": "^5.0.0" } }, "sha512-1Z7+maCfoGGqBPu5vN8rU9gIsW7OatYmn+STBTPkybbtNqeMzAoJDDrXHjsZ89x5dPH9W+OgMpNLtN0ouwiMYg=="], "jsonwebtoken": ["jsonwebtoken@9.0.2", "", { "dependencies": { "jws": "^3.2.2", "lodash.includes": "^4.3.0", "lodash.isboolean": "^3.0.3", "lodash.isinteger": "^4.0.4", "lodash.isnumber": "^3.0.3", "lodash.isplainobject": "^4.0.6", "lodash.isstring": "^4.0.1", "lodash.once": "^4.0.0", "ms": "^2.1.1", "semver": "^7.5.4" } }, "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ=="],