chore: fix liniting issues

This commit is contained in:
Nicolas Meienberger 2026-01-08 22:01:01 +01:00
parent dd9f5f702a
commit 00c60b2cdd
5 changed files with 123 additions and 122 deletions

View file

@ -90,15 +90,19 @@ export default function LoginPage() {
return; return;
} }
setIsVerifying2FA(true);
const { data, error } = await authClient.twoFactor.verifyTotp({ const { data, error } = await authClient.twoFactor.verifyTotp({
code: totpCode, code: totpCode,
trustDevice, trustDevice,
fetchOptions: {
onRequest: () => {
setIsVerifying2FA(true);
},
onResponse: () => {
setIsVerifying2FA(false);
},
},
}); });
setIsVerifying2FA(false);
if (error) { if (error) {
console.error(error); console.error(error);
toast.error("Verification failed", { description: error.message }); toast.error("Verification failed", { description: error.message });

View file

@ -114,7 +114,6 @@ export const BackupCodesDialog = ({ open, onOpenChange }: BackupCodesDialogProps
onChange={(e) => setPassword(e.target.value)} onChange={(e) => setPassword(e.target.value)}
placeholder="Enter your password" placeholder="Enter your password"
required required
autoFocus
/> />
</div> </div>
<Button type="submit" loading={isGenerating} className="w-full"> <Button type="submit" loading={isGenerating} className="w-full">

View file

@ -79,7 +79,6 @@ export const TwoFactorDisableDialog = ({ open, onOpenChange, onSuccess }: TwoFac
onChange={(e) => setPassword(e.target.value)} onChange={(e) => setPassword(e.target.value)}
placeholder="Enter your password" placeholder="Enter your password"
required required
autoFocus
/> />
</div> </div>
</div> </div>

View file

@ -133,7 +133,6 @@ export const TwoFactorSetupDialog = ({ open, onOpenChange, onSuccess }: TwoFacto
onChange={(e) => setPassword(e.target.value)} onChange={(e) => setPassword(e.target.value)}
placeholder="Enter your password" placeholder="Enter your password"
required required
autoFocus
/> />
</div> </div>
</div> </div>

View file

@ -1,117 +1,117 @@
{ {
"name": "zerobyte", "name": "zerobyte",
"private": true, "private": true,
"type": "module", "type": "module",
"packageManager": "bun@1.3.5", "scripts": {
"scripts": { "lint": "oxlint --type-aware",
"lint": "oxlint --type-aware", "build": "react-router build",
"build": "react-router build", "dev": "bunx --bun vite",
"dev": "bunx --bun vite", "start": "bun ./dist/server/index.js",
"start": "bun ./dist/server/index.js", "cli:dev": "bun run app/server/cli/main.ts",
"cli:dev": "bun run app/server/cli/main.ts", "cli": "ZEROBYTE_CLI=1 bun ./dist/server/index.js",
"cli": "ZEROBYTE_CLI=1 bun ./dist/server/index.js", "tsc": "react-router typegen && tsc",
"tsc": "react-router typegen && tsc", "start:dev": "docker compose down && docker compose up --build zerobyte-dev",
"start:dev": "docker compose down && docker compose up --build zerobyte-dev", "start:prod": "docker compose down && docker compose up --build zerobyte-prod",
"start:prod": "docker compose down && docker compose up --build zerobyte-prod", "gen:api-client": "openapi-ts",
"gen:api-client": "openapi-ts", "gen:migrations": "drizzle-kit generate",
"gen:migrations": "drizzle-kit generate", "studio": "drizzle-kit studio",
"studio": "drizzle-kit studio", "test:server": "dotenv -e .env.test -- bun test app/server --preload ./app/test/setup.ts",
"test:server": "dotenv -e .env.test -- bun test app/server --preload ./app/test/setup.ts", "test:client": "dotenv -e .env.test -- bun test app/client --preload ./app/test/setup-client.ts",
"test:client": "dotenv -e .env.test -- bun test app/client --preload ./app/test/setup-client.ts", "test": "bun run test:server && bun run test:client"
"test": "bun run test:server && bun run test:client" },
}, "dependencies": {
"overrides": { "@dnd-kit/core": "^6.3.1",
"esbuild": "^0.27.2" "@dnd-kit/sortable": "^10.0.0",
}, "@dnd-kit/utilities": "^3.2.2",
"dependencies": { "@hono/standard-validator": "^0.2.0",
"@dnd-kit/core": "^6.3.1", "@hookform/resolvers": "^5.2.2",
"@dnd-kit/sortable": "^10.0.0", "@inquirer/prompts": "^8.0.2",
"@dnd-kit/utilities": "^3.2.2", "@radix-ui/react-alert-dialog": "^1.1.15",
"@hono/standard-validator": "^0.2.0", "@radix-ui/react-checkbox": "^1.3.3",
"@hookform/resolvers": "^5.2.2", "@radix-ui/react-collapsible": "^1.1.12",
"@inquirer/prompts": "^8.0.2", "@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-alert-dialog": "^1.1.15", "@radix-ui/react-hover-card": "^1.1.15",
"@radix-ui/react-checkbox": "^1.3.3", "@radix-ui/react-label": "^2.1.8",
"@radix-ui/react-collapsible": "^1.1.12", "@radix-ui/react-progress": "^1.1.8",
"@radix-ui/react-dialog": "^1.1.15", "@radix-ui/react-scroll-area": "^1.2.10",
"@radix-ui/react-hover-card": "^1.1.15", "@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-label": "^2.1.8", "@radix-ui/react-separator": "^1.1.8",
"@radix-ui/react-progress": "^1.1.8", "@radix-ui/react-slot": "^1.2.4",
"@radix-ui/react-scroll-area": "^1.2.10", "@radix-ui/react-switch": "^1.2.6",
"@radix-ui/react-select": "^2.2.6", "@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-separator": "^1.1.8", "@radix-ui/react-tooltip": "^1.2.8",
"@radix-ui/react-slot": "^1.2.4", "@react-router/node": "^7.10.0",
"@radix-ui/react-switch": "^1.2.6", "@react-router/serve": "^7.10.0",
"@radix-ui/react-tabs": "^1.1.13", "@scalar/hono-api-reference": "^0.9.25",
"@radix-ui/react-tooltip": "^1.2.8", "@tanstack/react-query": "^5.90.11",
"@react-router/node": "^7.10.0", "arktype": "^2.1.28",
"@react-router/serve": "^7.10.0", "better-auth": "^1.4.10",
"@scalar/hono-api-reference": "^0.9.25", "class-variance-authority": "^0.7.1",
"@tanstack/react-query": "^5.90.11", "clsx": "^2.1.1",
"arktype": "^2.1.28", "commander": "^14.0.2",
"better-auth": "^1.4.10", "cron-parser": "^5.4.0",
"class-variance-authority": "^0.7.1", "date-fns": "^4.1.0",
"clsx": "^2.1.1", "dither-plugin": "^1.1.1",
"commander": "^14.0.2", "dotenv": "^17.2.3",
"cron-parser": "^5.4.0", "drizzle-orm": "^0.44.7",
"date-fns": "^4.1.0", "es-toolkit": "^1.42.0",
"dither-plugin": "^1.1.1", "hono": "4.10.5",
"dotenv": "^17.2.3", "hono-openapi": "^1.1.1",
"drizzle-orm": "^0.44.7", "hono-rate-limiter": "^0.5.0",
"es-toolkit": "^1.42.0", "http-errors-enhanced": "^4.0.2",
"hono": "4.10.5", "input-otp": "^1.4.2",
"hono-openapi": "^1.1.1", "isbot": "^5.1.32",
"hono-rate-limiter": "^0.5.0", "lucide-react": "^0.555.0",
"http-errors-enhanced": "^4.0.2", "next-themes": "^0.4.6",
"input-otp": "^1.4.2", "node-cron": "^4.2.1",
"isbot": "^5.1.32", "qrcode.react": "^4.2.0",
"lucide-react": "^0.555.0", "react": "^19.2.1",
"next-themes": "^0.4.6", "react-dom": "^19.2.1",
"node-cron": "^4.2.1", "react-hook-form": "^7.68.0",
"qrcode.react": "^4.2.0", "react-markdown": "^10.1.0",
"react": "^19.2.1", "react-router": "^7.10.0",
"react-dom": "^19.2.1", "react-router-hono-server": "^2.22.0",
"react-hook-form": "^7.68.0", "recharts": "3.5.1",
"react-markdown": "^10.1.0", "remark-gfm": "^4.0.1",
"react-router": "^7.10.0", "semver": "^7.7.3",
"react-router-hono-server": "^2.22.0", "slugify": "^1.6.6",
"recharts": "3.5.1", "sonner": "^2.0.7",
"remark-gfm": "^4.0.1", "tailwind-merge": "^3.4.0",
"semver": "^7.7.3", "tiny-typed-emitter": "^2.1.0",
"slugify": "^1.6.6", "winston": "^3.18.3",
"sonner": "^2.0.7", "yaml": "^2.8.2"
"tailwind-merge": "^3.4.0", },
"tiny-typed-emitter": "^2.1.0", "devDependencies": {
"winston": "^3.18.3", "@faker-js/faker": "^10.1.0",
"yaml": "^2.8.2" "@happy-dom/global-registrator": "^20.0.11",
}, "@hey-api/openapi-ts": "^0.88.0",
"devDependencies": { "@react-router/dev": "^7.10.0",
"@faker-js/faker": "^10.1.0", "@tailwindcss/typography": "^0.5.19",
"@happy-dom/global-registrator": "^20.0.11", "@tailwindcss/vite": "^4.1.17",
"@hey-api/openapi-ts": "^0.88.0", "@tanstack/react-query-devtools": "^5.91.1",
"@react-router/dev": "^7.10.0", "@testing-library/dom": "^10.4.1",
"@tailwindcss/typography": "^0.5.19", "@testing-library/react": "^16.3.1",
"@tailwindcss/vite": "^4.1.17", "@types/bun": "^1.3.4",
"@tanstack/react-query-devtools": "^5.91.1", "@types/node": "^25.0.3",
"@testing-library/dom": "^10.4.1", "@types/react": "^19.2.7",
"@testing-library/react": "^16.3.1", "@types/react-dom": "^19.2.3",
"@types/bun": "^1.3.4", "@types/semver": "^7.7.1",
"@types/node": "^25.0.3", "dotenv-cli": "^11.0.0",
"@types/react": "^19.2.7", "drizzle-kit": "^0.31.7",
"@types/react-dom": "^19.2.3", "lightningcss": "^1.30.2",
"@types/semver": "^7.7.1", "oxfmt": "^0.22.0",
"dotenv-cli": "^11.0.0", "oxlint": "^1.36.0",
"drizzle-kit": "^0.31.7", "oxlint-tsgolint": "^0.10.1",
"lightningcss": "^1.30.2", "tailwindcss": "^4.1.17",
"oxfmt": "^0.22.0", "tinyglobby": "^0.2.15",
"oxlint": "^1.36.0", "tw-animate-css": "^1.4.0",
"oxlint-tsgolint": "^0.10.1", "typescript": "^5.9.3",
"tailwindcss": "^4.1.17", "vite": "^7.2.6",
"tinyglobby": "^0.2.15", "vite-bundle-analyzer": "^1.2.3",
"tw-animate-css": "^1.4.0", "vite-tsconfig-paths": "^6.0.3"
"typescript": "^5.9.3", },
"vite": "^7.2.6", "overrides": {
"vite-bundle-analyzer": "^1.2.3", "esbuild": "^0.27.2"
"vite-tsconfig-paths": "^6.0.3" },
} "packageManager": "bun@1.3.5"
} }