mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-09 18:53:38 +02: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,16 +1,16 @@
|
||||
import { Button } from './core/Button';
|
||||
import { DetailsBanner } from './core/DetailsBanner';
|
||||
import { FormattedError } from './core/FormattedError';
|
||||
import { Heading } from './core/Heading';
|
||||
import { VStack } from './core/Stacks';
|
||||
import { Button } from "./core/Button";
|
||||
import { DetailsBanner } from "./core/DetailsBanner";
|
||||
import { FormattedError } from "./core/FormattedError";
|
||||
import { Heading } from "./core/Heading";
|
||||
import { VStack } from "./core/Stacks";
|
||||
|
||||
export default function RouteError({ error }: { error: unknown }) {
|
||||
console.log('Error', error);
|
||||
console.log("Error", error);
|
||||
const stringified = JSON.stringify(error);
|
||||
// oxlint-disable-next-line no-explicit-any
|
||||
const message = (error as any).message ?? stringified;
|
||||
const stack =
|
||||
typeof error === 'object' && error != null && 'stack' in error ? String(error.stack) : null;
|
||||
typeof error === "object" && error != null && "stack" in error ? String(error.stack) : null;
|
||||
return (
|
||||
<div className="flex items-center justify-center h-full">
|
||||
<VStack space={5} className="w-[50rem] !h-auto">
|
||||
@@ -31,7 +31,7 @@ export default function RouteError({ error }: { error: unknown }) {
|
||||
<Button
|
||||
color="primary"
|
||||
onClick={async () => {
|
||||
window.location.assign('/');
|
||||
window.location.assign("/");
|
||||
}}
|
||||
>
|
||||
Go Home
|
||||
|
||||
Reference in New Issue
Block a user