mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-28 04:11:16 +01:00
Run oxfmt across repo, add format script and docs
Add .oxfmtignore to skip generated bindings and wasm-pack output. Add npm format script, update DEVELOPMENT.md for Vite+ toolchain, and format all non-generated files with oxfmt. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
import classNames from 'classnames';
|
||||
import { useAtom, useAtomValue } from 'jotai';
|
||||
import { memo } from 'react';
|
||||
import { activeWorkspaceAtom, activeWorkspaceMetaAtom } from '../hooks/useActiveWorkspace';
|
||||
import { useToggleCommandPalette } from '../hooks/useToggleCommandPalette';
|
||||
import { workspaceLayoutAtom } from '../lib/atoms';
|
||||
import { setupOrConfigureEncryption } from '../lib/setupOrConfigureEncryption';
|
||||
import { CookieDropdown } from './CookieDropdown';
|
||||
import { Icon } from './core/Icon';
|
||||
import { IconButton } from './core/IconButton';
|
||||
import { PillButton } from './core/PillButton';
|
||||
import { HStack } from './core/Stacks';
|
||||
import { EnvironmentActionsDropdown } from './EnvironmentActionsDropdown';
|
||||
import { ImportCurlButton } from './ImportCurlButton';
|
||||
import { LicenseBadge } from './LicenseBadge';
|
||||
import { RecentRequestsDropdown } from './RecentRequestsDropdown';
|
||||
import { SettingsDropdown } from './SettingsDropdown';
|
||||
import { SidebarActions } from './SidebarActions';
|
||||
import { WorkspaceActionsDropdown } from './WorkspaceActionsDropdown';
|
||||
import classNames from "classnames";
|
||||
import { useAtom, useAtomValue } from "jotai";
|
||||
import { memo } from "react";
|
||||
import { activeWorkspaceAtom, activeWorkspaceMetaAtom } from "../hooks/useActiveWorkspace";
|
||||
import { useToggleCommandPalette } from "../hooks/useToggleCommandPalette";
|
||||
import { workspaceLayoutAtom } from "../lib/atoms";
|
||||
import { setupOrConfigureEncryption } from "../lib/setupOrConfigureEncryption";
|
||||
import { CookieDropdown } from "./CookieDropdown";
|
||||
import { Icon } from "./core/Icon";
|
||||
import { IconButton } from "./core/IconButton";
|
||||
import { PillButton } from "./core/PillButton";
|
||||
import { HStack } from "./core/Stacks";
|
||||
import { EnvironmentActionsDropdown } from "./EnvironmentActionsDropdown";
|
||||
import { ImportCurlButton } from "./ImportCurlButton";
|
||||
import { LicenseBadge } from "./LicenseBadge";
|
||||
import { RecentRequestsDropdown } from "./RecentRequestsDropdown";
|
||||
import { SettingsDropdown } from "./SettingsDropdown";
|
||||
import { SidebarActions } from "./SidebarActions";
|
||||
import { WorkspaceActionsDropdown } from "./WorkspaceActionsDropdown";
|
||||
|
||||
interface Props {
|
||||
className?: string;
|
||||
@@ -37,10 +37,10 @@ export const WorkspaceHeader = memo(function WorkspaceHeader({ className }: Prop
|
||||
<div
|
||||
className={classNames(
|
||||
className,
|
||||
'grid grid-cols-[auto_minmax(0,1fr)_auto] items-center w-full h-full',
|
||||
"grid grid-cols-[auto_minmax(0,1fr)_auto] items-center w-full h-full",
|
||||
)}
|
||||
>
|
||||
<HStack space={0.5} className={classNames('flex-1 pointer-events-none')}>
|
||||
<HStack space={0.5} className={classNames("flex-1 pointer-events-none")}>
|
||||
<SidebarActions />
|
||||
<CookieDropdown />
|
||||
<HStack className="min-w-0">
|
||||
@@ -63,17 +63,17 @@ export const WorkspaceHeader = memo(function WorkspaceHeader({ className }: Prop
|
||||
)}
|
||||
<IconButton
|
||||
icon={
|
||||
workspaceLayout === 'responsive'
|
||||
? 'magic_wand'
|
||||
: workspaceLayout === 'horizontal'
|
||||
? 'columns_2'
|
||||
: 'rows_2'
|
||||
workspaceLayout === "responsive"
|
||||
? "magic_wand"
|
||||
: workspaceLayout === "horizontal"
|
||||
? "columns_2"
|
||||
: "rows_2"
|
||||
}
|
||||
title={`Change to ${workspaceLayout === 'horizontal' ? 'vertical' : 'horizontal'} layout`}
|
||||
title={`Change to ${workspaceLayout === "horizontal" ? "vertical" : "horizontal"} layout`}
|
||||
size="sm"
|
||||
iconColor="secondary"
|
||||
onClick={() =>
|
||||
setWorkspaceLayout((prev) => (prev === 'horizontal' ? 'vertical' : 'horizontal'))
|
||||
setWorkspaceLayout((prev) => (prev === "horizontal" ? "vertical" : "horizontal"))
|
||||
}
|
||||
/>
|
||||
<IconButton
|
||||
|
||||
Reference in New Issue
Block a user