refactor: migrate from ESLint to Biome and extract SQL queries to data.ts

- Replace ESLint with Biome for linting and formatting
- Configure Biome with tabs, double quotes, and organized imports
- Move all SQL/Drizzle queries from page.tsx files to data.ts files
- Create new data.ts files for: ajustes, dashboard, relatorios/categorias
- Update existing data.ts files: extrato, fatura (add lancamentos queries)
- Remove all drizzle-orm imports from page.tsx files
- Update README.md with new tooling info

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Felipe Coutinho
2026-01-27 13:15:37 +00:00
parent 8ffe61c59b
commit a7f63fb77a
442 changed files with 66141 additions and 69292 deletions

View File

@@ -1,49 +1,49 @@
import { Button } from "@/components/ui/button";
import { RiCheckLine, RiFileCopyLine } from "@remixicon/react";
import { Button } from "@/components/ui/button";
export type CalculatorDisplayProps = {
history: string | null;
expression: string;
resultText: string | null;
copied: boolean;
onCopy: () => void;
history: string | null;
expression: string;
resultText: string | null;
copied: boolean;
onCopy: () => void;
};
export function CalculatorDisplay({
history,
expression,
resultText,
copied,
onCopy,
history,
expression,
resultText,
copied,
onCopy,
}: CalculatorDisplayProps) {
return (
<div className="rounded-xl border bg-muted px-4 py-5 text-right">
{history && (
<div className="text-sm text-muted-foreground">{history}</div>
)}
<div className="flex items-center justify-end gap-2">
<div className="text-right text-3xl font-semibold tracking-tight tabular-nums">
{expression}
</div>
{resultText && (
<Button
type="button"
variant="ghost"
size="icon"
onClick={onCopy}
className="h-6 w-6 shrink-0 rounded-full p-0 text-muted-foreground hover:text-foreground"
>
{copied ? (
<RiCheckLine className="h-4 w-4" />
) : (
<RiFileCopyLine className="h-4 w-4" />
)}
<span className="sr-only">
{copied ? "Resultado copiado" : "Copiar resultado"}
</span>
</Button>
)}
</div>
</div>
);
return (
<div className="rounded-xl border bg-muted px-4 py-5 text-right">
{history && (
<div className="text-sm text-muted-foreground">{history}</div>
)}
<div className="flex items-center justify-end gap-2">
<div className="text-right text-3xl font-semibold tracking-tight tabular-nums">
{expression}
</div>
{resultText && (
<Button
type="button"
variant="ghost"
size="icon"
onClick={onCopy}
className="h-6 w-6 shrink-0 rounded-full p-0 text-muted-foreground hover:text-foreground"
>
{copied ? (
<RiCheckLine className="h-4 w-4" />
) : (
<RiFileCopyLine className="h-4 w-4" />
)}
<span className="sr-only">
{copied ? "Resultado copiado" : "Copiar resultado"}
</span>
</Button>
)}
</div>
</div>
);
}