feat: add city/state/country to complex, new settings page with sidebar, and Biome linting

- Added city, state, and country optional fields to Complex model
- Updated onboarding to include optional location fields
- Created new settings page with sidebar navigation (Datos del Complejo, Canchas)
- Replaced ESLint with Biome for frontend and backend linting
- Added parallel dev script with concurrently
- Migrated register-routes to use direct app.route() pattern
This commit is contained in:
Jose Selesan
2026-04-10 15:36:15 -03:00
parent 77004b14b0
commit 9ee98a4cb4
129 changed files with 2929 additions and 3186 deletions

View File

@@ -1,36 +1,33 @@
import { Hono } from 'hono'
import { cors } from 'hono/cors'
import { logger } from '@/lib/logger'
import type { AppEnv } from '@/types/hono'
import { requestId } from 'hono/request-id'
import { logger } from '@/lib/logger';
import type { AppEnv } from '@/types/hono';
import { Hono } from 'hono';
import { cors } from 'hono/cors';
import { requestId } from 'hono/request-id';
export function createApp() {
const app = new Hono<AppEnv>()
const app = new Hono<AppEnv>();
const allowedOrigins = (
Bun.env.CORS_ORIGIN ??
'http://localhost:5173,http://127.0.0.1:5173'
)
const allowedOrigins = (Bun.env.CORS_ORIGIN ?? 'http://localhost:5173,http://127.0.0.1:5173')
.split(',')
.map((value) => value.trim())
.filter(Boolean)
.filter(Boolean);
app.use(
'*',
cors({
origin: (origin) => {
if (!origin) return allowedOrigins[0] ?? ''
return allowedOrigins.includes(origin) ? origin : ''
if (!origin) return allowedOrigins[0] ?? '';
return allowedOrigins.includes(origin) ? origin : '';
},
allowHeaders: ['Authorization', 'Content-Type'],
allowMethods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'],
}),
)
})
);
app.use('*', async (c, next) => {
const start = performance.now()
await next()
const durationMs = Number((performance.now() - start).toFixed(1))
const start = performance.now();
await next();
const durationMs = Number((performance.now() - start).toFixed(1));
logger.info(
{
@@ -38,11 +35,11 @@ export function createApp() {
path: c.req.path,
status: c.res.status,
durationMs,
requestId
requestId,
},
'http_request',
)
})
'http_request'
);
});
return app
return app;
}