From 7b2348d04276219f62309650c6581f075ebf36ea Mon Sep 17 00:00:00 2001 From: Aaron Villalpando Date: Thu, 9 Jan 2025 11:24:29 -0800 Subject: [PATCH] formatting --- .../[project_id]/_components/GithubStars.tsx | 12 +-- .../[project_id]/_components/ProjectView.tsx | 71 +++++++------- .../[project_id]/_components/TopNavbar.tsx | 70 +++++++------- .../_components/Tree/FileViewer.tsx | 18 ++-- .../[project_id]/_components/Tree/Node.tsx | 32 +++---- .../fiddle-frontend/app/[project_id]/page.tsx | 4 +- typescript/fiddle-frontend/app/layout.tsx | 4 +- typescript/fiddle-frontend/app/page.tsx | 4 +- .../components/ui/checkbox.tsx | 20 ++-- .../components/ui/scroll-area.tsx | 32 +++---- .../src/baml_wasm_web/EventListener.tsx | 14 +-- .../src/components/ui/checkbox.tsx | 2 +- .../src/components/ui/scroll-area.tsx | 4 +- .../codemirror-panel/code-mirror-viewer.tsx | 10 +- .../playground-panel/preview-toolbar.tsx | 48 +++++----- .../playground-panel/prompt-preview/index.tsx | 18 ++-- .../prompt-preview/prompt-preview-content.tsx | 22 ++--- .../prompt-preview/prompt-preview-curl.tsx | 2 +- .../prompt-preview/render-text.tsx | 36 ++++---- .../test-panel/components/ClientGraphView.tsx | 16 ++-- .../components/ParsedResponseRender.tsx | 20 ++-- .../components/ResponseRenderer.tsx | 56 +++++------ .../test-panel/components/TabularView.tsx | 88 +++++++++--------- .../test-panel/components/TestMenu.tsx | 32 +++---- .../test-panel/components/TestStatus.tsx | 12 +-- .../test-panel/components/ViewSelector.tsx | 4 +- .../prompt-preview/test-panel/index.tsx | 8 +- .../playground-panel/side-bar/index.tsx | 92 +++++++++---------- .../baml-project-panel/theme/ThemeToggle.tsx | 12 +-- .../packages/vscode/src/extension.ts | 7 +- .../vscode/src/helpers/get-open-file.ts | 4 +- .../vscode/src/panels/WebPanelView.ts | 2 - .../src/plugins/language-server/index.ts | 8 +- 33 files changed, 387 insertions(+), 397 deletions(-) diff --git a/typescript/fiddle-frontend/app/[project_id]/_components/GithubStars.tsx b/typescript/fiddle-frontend/app/[project_id]/_components/GithubStars.tsx index 0a12e37f7..2f89862a0 100644 --- a/typescript/fiddle-frontend/app/[project_id]/_components/GithubStars.tsx +++ b/typescript/fiddle-frontend/app/[project_id]/_components/GithubStars.tsx @@ -22,16 +22,16 @@ export const GithubStars = () => { return (
Github {/* Star us on Github diff --git a/typescript/fiddle-frontend/app/[project_id]/_components/ProjectView.tsx b/typescript/fiddle-frontend/app/[project_id]/_components/ProjectView.tsx index 25af5a2a6..3aa26e1ff 100644 --- a/typescript/fiddle-frontend/app/[project_id]/_components/ProjectView.tsx +++ b/typescript/fiddle-frontend/app/[project_id]/_components/ProjectView.tsx @@ -37,10 +37,13 @@ const ProjectViewImpl = ({ project }: { project: BAMLProject }) => { console.log('Updating files due: project', project.id) setUnsavedChanges(false) setFiles( - project.files.reduce((acc, f) => { - acc[f.path] = f.content - return acc - }, {} as Record), + project.files.reduce( + (acc, f) => { + acc[f.path] = f.content + return acc + }, + {} as Record, + ), ) } }, [project.id]) @@ -69,19 +72,19 @@ const ProjectViewImpl = ({ project }: { project: BAMLProject }) => { return ( // firefox wont apply the background color for some reason so we forcefully set it. -
+
{isMobile && ( -
+
Visit PromptFiddle on Desktop to get the best experience
)} - + {!isMobile && } - + -
+
{ // the size of the topnavbar height: 'calc(100% - 55px)', }} - className="flex flex-row h-full overflow-clip" + className='flex flex-row h-full overflow-clip' > - + -
+