Run oxfmt across repo, add format script and ignore config

Format all non-generated files with oxfmt via `vp fmt`. Add
.oxfmtignore to skip bindings/ and wasm-pack output. Add npm
format script and update DEVELOPMENT.md docs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Gregory Schier
2026-03-13 09:52:11 -07:00
parent a9cccb21b8
commit 5919fae739
664 changed files with 13631 additions and 13482 deletions

View File

@@ -1,12 +1,12 @@
import { getCurrentWebviewWindow } from '@tauri-apps/api/webviewWindow';
import { type } from '@tauri-apps/plugin-os';
import { settingsAtom } from '@yaakapp-internal/models';
import classNames from 'classnames';
import { useAtomValue } from 'jotai';
import { useState } from 'react';
import { WINDOW_CONTROLS_WIDTH } from '../lib/constants';
import { Button } from './core/Button';
import { HStack } from './core/Stacks';
import { getCurrentWebviewWindow } from "@tauri-apps/api/webviewWindow";
import { type } from "@tauri-apps/plugin-os";
import { settingsAtom } from "@yaakapp-internal/models";
import classNames from "classnames";
import { useAtomValue } from "jotai";
import { useState } from "react";
import { WINDOW_CONTROLS_WIDTH } from "../lib/constants";
import { Button } from "./core/Button";
import { HStack } from "./core/Stacks";
interface Props {
className?: string;
@@ -18,13 +18,13 @@ export function WindowControls({ className, onlyX }: Props) {
const [maximized, setMaximized] = useState<boolean>(false);
const settings = useAtomValue(settingsAtom);
// Never show controls on macOS or if hideWindowControls is true
if (type() === 'macos' || settings.hideWindowControls || settings.useNativeTitlebar) {
if (type() === "macos" || settings.hideWindowControls || settings.useNativeTitlebar) {
return null;
}
return (
<HStack
className={classNames(className, 'ml-4 absolute right-0 top-0 bottom-0')}
className={classNames(className, "ml-4 absolute right-0 top-0 bottom-0")}
justifyContent="end"
style={{ width: WINDOW_CONTROLS_WIDTH }}
data-tauri-drag-region