diff --git a/apps/infoalloggi/biome.json b/apps/infoalloggi/biome.json index 2feadba..3b0d036 100644 --- a/apps/infoalloggi/biome.json +++ b/apps/infoalloggi/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/2.3.1/schema.json", + "$schema": "https://biomejs.dev/schemas/2.3.11/schema.json", "assist": { "actions": { "source": { @@ -9,7 +9,6 @@ }, "enabled": true }, - "files": { "ignoreUnknown": true, "includes": [ @@ -84,7 +83,6 @@ "complexity": { "noUselessFragments": "off" }, - "correctness": { "noUndeclaredVariables": "on", "useExhaustiveDependencies": "off", @@ -124,11 +122,14 @@ } } }, - "plugins": ["biome_plugins/missing.grit", "biome_plugins/null.grit"], + "plugins": [ + "biome_plugins/missing.grit", + "biome_plugins/null.grit" + ], "vcs": { "clientKind": "git", "enabled": true, "root": "../../", "useIgnoreFile": false } -} +} \ No newline at end of file diff --git a/apps/infoalloggi/package.json b/apps/infoalloggi/package.json index 0a8c2aa..3405d08 100644 --- a/apps/infoalloggi/package.json +++ b/apps/infoalloggi/package.json @@ -1,137 +1,137 @@ { - "name": "infoalloggi", - "private": true, - "scripts": { - "build": "next build", - "d": "npm run-p dev stripe-dev -cl", - "dev": "next dev --turbopack", - "dev-https": "cross-env NEXT_PUBLIC_BASE_URL='https://localhost:3000' INTERNAL_BASE_URL='https://localhost:3000' BASE_URL='https://localhost:3000' next dev --experimental-https --turbopack", - "email": "cross-env NEXT_PUBLIC_BASE_URL='https://localhost:3000' email dev --port 3500", - "idev": "cross-env NODE_OPTIONS='--inspect' next dev --turbopack", - "knip": "knip --no-exit-code --no-config-hints", - "lint": "biome lint", - "format": "biome format --write", - "pg-typegen": "npx kanel", - "start": "next start", - "stripe-dev": "stripe listen --forward-to https://localhost:3000/api/stripe-webhook", - "test": "npm run lint && npm run types", - "types": "tsc --noEmit", - "analyze": "cross-env ANALYZE=true next build" - }, - "version": "0.1.0", - "dependencies": { - "@dnd-kit/core": "^6.3.1", - "@dnd-kit/sortable": "^10.0.0", - "@dnd-kit/utilities": "^3.2.2", - "@fattureincloud/fattureincloud-ts-sdk": "^2.1.1", - "@hookform/resolvers": "^5.2.2", - "@next/bundle-analyzer": "^16.0.2", - "@radix-ui/react-dialog": "^1.1.15", - "@radix-ui/react-popover": "^1.1.14", - "@radix-ui/react-scroll-area": "^1.2.10", - "@radix-ui/react-slot": "^1.2.3", - "@radix-ui/react-toggle-group": "^1.1.10", - "@radix-ui/react-tooltip": "^1.2.8", - "@react-email/components": "^1.0.4", - "@react-email/render": "^2.0.2", - "@stripe/react-stripe-js": "^3.9.0", - "@stripe/stripe-js": "^7.8.0", - "@t3-oss/env-nextjs": "^0.13.8", - "@tailwindcss/forms": "^0.5.10", - "@tailwindcss/postcss": "^4.1.11", - "@tailwindcss/typography": "^0.5.16", - "@tanstack/react-query": "^5.74.4", - "@tanstack/react-table": "^8.21.3", - "@tanstack/react-virtual": "^3.13.12", - "@tiptap/core": "^3.15.3", - "@tiptap/extension-link": "^3.15.3", - "@tiptap/extension-underline": "^3.15.3", - "@tiptap/pm": "^3.15.3", - "@tiptap/react": "^3.15.3", - "@tiptap/starter-kit": "^3.15.3", - "@trpc/client": "^11.1.0", - "@trpc/next": "^11.4.3", - "@trpc/react-query": "^11.1.0", - "@trpc/server": "^11.1.0", - "class-variance-authority": "^0.7.1", - "clsx": "^2.1.1", - "cmdk": "^1.1.1", - "cookies-next": "^6.1.1", - "date-fns": "^4.1.0", - "embla-carousel-react": "^8.6.0", - "framer-motion": "^12.26.2", - "frimousse": "^0.3.0", - "html2canvas-pro": "^1.5.13", - "ioredis": "^5.9.1", - "jose": "^6.0.12", - "jspdf": "^4.0.0", - "kysely": "^0.28.9", - "kysely-plugin-serialize": "^0.8.2", - "leaflet": "^1.9.4", - "leaflet-defaulticon-compatibility": "^0.1.2", - "lucide-react": "^0.562.0", - "next": "15.4.10", - "next-themes": "^0.4.6", - "nextjs-progressbar": "^0.0.16", - "nodemailer": "^7.0.12", - "nodemailer-html-to-text": "^3.2.0", - "nuqs": "^2.8.6", - "pg": "^8.16.3", - "postcss": "^8.5.6", - "radix-ui": "^1.4.3", - "react": "^19.1.0", - "react-colorful": "^5.6.1", - "react-day-picker": "^9.11.1", - "react-dom": "^19.1.1", - "react-email": "^5.2.3", - "react-hook-form": "^7.71.1", - "react-hot-toast": "^2.5.2", - "react-is": "^19.2.0", - "react-leaflet": "^5.0.0", - "react-number-format": "^5.4.4", - "react-pdf": "^10.2.0", - "react-phone-number-input": "^3.4.14", - "react-reverse-portal": "^2.3.0", - "react-select": "^5.10.2", - "react-to-print": "^3.2.0", - "react-use": "^17.6.0", - "recharts": "^2.15.4", - "sharp": "^0.34.5", - "stripe": "^20.1.2", - "superjson": "2.2.2", - "tailwind-merge": "3.3", - "tailwind-scrollbar": "^4.0.2", - "tailwindcss": "^4.1.11", - "tunnel-rat": "^0.1.2", - "tw-animate-css": "^1.3.6", - "type-fest": "^5.4.1", - "uuid": "^13.0.0", - "vaul": "^1.1.2", - "zod": "^4.1.12" - }, - "devDependencies": { - "@biomejs/biome": "^2.3.1", - "@hookform/devtools": "^4.4.0", - "@react-email/preview-server": "^5.2.3", - "@total-typescript/ts-reset": "^0.6.1", - "@types/leaflet": "^1.9.20", - "@types/node": "^24.2.0", - "@types/nodemailer": "^7.0.5", - "@types/nodemailer-html-to-text": "^3.1.3", - "@types/pg": "^8.15.5", - "@types/react": "^19.1.8", - "@types/react-dom": "^19.1.7", - "@types/react-is": "^19.2.0", - "@types/uuid": "^10.0.0", - "cross-env": "^10.1.0", - "jiti": "^2.6.1", - "kanel": "^3.14.2", - "kanel-kysely": "^0.7.1", - "knip": "^5.81.0", - "npm-run-all": "^4.1.5", - "typescript": "^5.9.2" - }, - "ct3aMetadata": { - "initVersion": "7.9.0" - } -} \ No newline at end of file + "name": "infoalloggi", + "private": true, + "scripts": { + "build": "next build", + "d": "npm run-p dev stripe-dev -cl", + "dev": "next dev --turbopack", + "dev-https": "cross-env NEXT_PUBLIC_BASE_URL='https://localhost:3000' INTERNAL_BASE_URL='https://localhost:3000' BASE_URL='https://localhost:3000' next dev --experimental-https --turbopack", + "email": "cross-env NEXT_PUBLIC_BASE_URL='https://localhost:3000' email dev --port 3500", + "idev": "cross-env NODE_OPTIONS='--inspect' next dev --turbopack", + "knip": "knip --no-exit-code --no-config-hints", + "lint": "biome lint", + "format": "biome format --write", + "pg-typegen": "npx kanel", + "start": "next start", + "stripe-dev": "stripe listen --forward-to https://localhost:3000/api/stripe-webhook", + "test": "npm run lint && npm run types", + "types": "tsc --noEmit", + "analyze": "cross-env ANALYZE=true next build" + }, + "version": "0.1.0", + "dependencies": { + "@dnd-kit/core": "^6.3.1", + "@dnd-kit/sortable": "^10.0.0", + "@dnd-kit/utilities": "^3.2.2", + "@fattureincloud/fattureincloud-ts-sdk": "^2.1.1", + "@hookform/resolvers": "^5.2.2", + "@next/bundle-analyzer": "^16.0.2", + "@radix-ui/react-dialog": "^1.1.15", + "@radix-ui/react-popover": "^1.1.14", + "@radix-ui/react-scroll-area": "^1.2.10", + "@radix-ui/react-slot": "^1.2.3", + "@radix-ui/react-toggle-group": "^1.1.10", + "@radix-ui/react-tooltip": "^1.2.8", + "@react-email/components": "^1.0.4", + "@react-email/render": "^2.0.2", + "@stripe/react-stripe-js": "^3.9.0", + "@stripe/stripe-js": "^7.8.0", + "@t3-oss/env-nextjs": "^0.13.8", + "@tailwindcss/forms": "^0.5.10", + "@tailwindcss/postcss": "^4.1.11", + "@tailwindcss/typography": "^0.5.16", + "@tanstack/react-query": "^5.74.4", + "@tanstack/react-table": "^8.21.3", + "@tanstack/react-virtual": "^3.13.12", + "@tiptap/core": "^3.15.3", + "@tiptap/extension-link": "^3.15.3", + "@tiptap/extension-underline": "^3.15.3", + "@tiptap/pm": "^3.15.3", + "@tiptap/react": "^3.15.3", + "@tiptap/starter-kit": "^3.15.3", + "@trpc/client": "^11.1.0", + "@trpc/next": "^11.4.3", + "@trpc/react-query": "^11.1.0", + "@trpc/server": "^11.1.0", + "class-variance-authority": "^0.7.1", + "clsx": "^2.1.1", + "cmdk": "^1.1.1", + "cookies-next": "^6.1.1", + "date-fns": "^4.1.0", + "embla-carousel-react": "^8.6.0", + "framer-motion": "^12.26.2", + "frimousse": "^0.3.0", + "html2canvas-pro": "^1.5.13", + "ioredis": "^5.9.1", + "jose": "^6.0.12", + "jspdf": "^4.0.0", + "kysely": "^0.28.9", + "kysely-plugin-serialize": "^0.8.2", + "leaflet": "^1.9.4", + "leaflet-defaulticon-compatibility": "^0.1.2", + "lucide-react": "^0.562.0", + "next": "15.4.10", + "next-themes": "^0.4.6", + "nextjs-progressbar": "^0.0.16", + "nodemailer": "^7.0.12", + "nodemailer-html-to-text": "^3.2.0", + "nuqs": "^2.8.6", + "pg": "^8.16.3", + "postcss": "^8.5.6", + "radix-ui": "^1.4.3", + "react": "^19.1.0", + "react-colorful": "^5.6.1", + "react-day-picker": "^9.11.1", + "react-dom": "^19.1.1", + "react-email": "^5.2.3", + "react-hook-form": "^7.71.1", + "react-hot-toast": "^2.5.2", + "react-is": "^19.2.0", + "react-leaflet": "^5.0.0", + "react-number-format": "^5.4.4", + "react-pdf": "^10.2.0", + "react-phone-number-input": "^3.4.14", + "react-reverse-portal": "^2.3.0", + "react-select": "^5.10.2", + "react-to-print": "^3.2.0", + "react-use": "^17.6.0", + "recharts": "^2.15.4", + "sharp": "^0.34.5", + "stripe": "^20.1.2", + "superjson": "2.2.2", + "tailwind-merge": "3.3", + "tailwind-scrollbar": "^4.0.2", + "tailwindcss": "^4.1.11", + "tunnel-rat": "^0.1.2", + "tw-animate-css": "^1.3.6", + "type-fest": "^5.4.1", + "uuid": "^13.0.0", + "vaul": "^1.1.2", + "zod": "^4.1.12" + }, + "devDependencies": { + "@biomejs/biome": "^2.3.1", + "@hookform/devtools": "^4.4.0", + "@react-email/preview-server": "^5.2.3", + "@total-typescript/ts-reset": "^0.6.1", + "@types/leaflet": "^1.9.20", + "@types/node": "^24.2.0", + "@types/nodemailer": "^7.0.5", + "@types/nodemailer-html-to-text": "^3.1.3", + "@types/pg": "^8.15.5", + "@types/react": "^19.1.8", + "@types/react-dom": "^19.1.7", + "@types/react-is": "^19.2.0", + "@types/uuid": "^10.0.0", + "cross-env": "^10.1.0", + "jiti": "^2.6.1", + "kanel": "^3.14.2", + "kanel-kysely": "^0.7.1", + "knip": "^5.81.0", + "npm-run-all": "^4.1.5", + "typescript": "^5.9.2" + }, + "ct3aMetadata": { + "initVersion": "7.9.0" + } +} diff --git a/apps/infoalloggi/src/components/InformationBubble.tsx b/apps/infoalloggi/src/components/InformationBubble.tsx index 338b71c..eb3b4c8 100644 --- a/apps/infoalloggi/src/components/InformationBubble.tsx +++ b/apps/infoalloggi/src/components/InformationBubble.tsx @@ -54,7 +54,7 @@ const InformationBubble = ({ diff --git a/apps/infoalloggi/src/components/chat/chat-attachments.tsx b/apps/infoalloggi/src/components/chat/chat-attachments.tsx index 42fa371..0ee8c6a 100644 --- a/apps/infoalloggi/src/components/chat/chat-attachments.tsx +++ b/apps/infoalloggi/src/components/chat/chat-attachments.tsx @@ -51,7 +51,7 @@ export const ChatAttachments = ({ variant="ghost" > {attachments && attachments.length > 0 && ( - + {attachments.length} )} @@ -71,7 +71,7 @@ export const ChatAttachments = ({ userId={chatUserData.id} /> -
+
{attachmentsLoading ? ( ) : ( @@ -137,7 +137,7 @@ export const ChatAttachments = ({ > {t.allegati.i_tuoi_allegati} {attachments && attachments.length > 0 && ( - + {attachments.length} )} diff --git a/apps/infoalloggi/src/components/chat/chat-bubble.tsx b/apps/infoalloggi/src/components/chat/chat-bubble.tsx index 57a2cd4..062817b 100644 --- a/apps/infoalloggi/src/components/chat/chat-bubble.tsx +++ b/apps/infoalloggi/src/components/chat/chat-bubble.tsx @@ -100,7 +100,7 @@ const ChatBubbleMessage = React.forwardRef<
{ return (
- +
); }; diff --git a/apps/infoalloggi/src/components/servizio/servizio_actions.tsx b/apps/infoalloggi/src/components/servizio/servizio_actions.tsx index 6408207..d8d3ad2 100644 --- a/apps/infoalloggi/src/components/servizio/servizio_actions.tsx +++ b/apps/infoalloggi/src/components/servizio/servizio_actions.tsx @@ -293,7 +293,7 @@ const AddAnnuncio = ({ { if (selectedAnnunci.length !== 0) { e.preventDefault(); // Prevent closing the dialog if there are selected announcements @@ -559,7 +559,6 @@ const EditServizioAdmin = () => { {(() => { - // biome-ignore lint/correctness/noUnusedVariables: const { annunci, ...rest } = servizio; return
{JSON.stringify(rest, null, 2)}
; })()} diff --git a/apps/infoalloggi/src/components/ui/carousel.tsx b/apps/infoalloggi/src/components/ui/carousel.tsx index 22e813d..ad74ef3 100644 --- a/apps/infoalloggi/src/components/ui/carousel.tsx +++ b/apps/infoalloggi/src/components/ui/carousel.tsx @@ -183,8 +183,8 @@ function CarouselPrevious({ className={cn( "absolute size-8 rounded-full", orientation === "horizontal" - ? "-left-12 -translate-y-1/2 top-1/2" - : "-top-12 -translate-x-1/2 left-1/2 rotate-90", + ? "top-1/2 -left-12 -translate-y-1/2" + : "-top-12 left-1/2 -translate-x-1/2 rotate-90", className, )} data-slot="carousel-previous" @@ -213,8 +213,8 @@ function CarouselNext({ className={cn( "absolute size-8 rounded-full", orientation === "horizontal" - ? "-right-12 -translate-y-1/2 top-1/2" - : "-bottom-12 -translate-x-1/2 left-1/2 rotate-90", + ? "top-1/2 -right-12 -translate-y-1/2" + : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", className, )} data-slot="carousel-next" diff --git a/apps/infoalloggi/src/components/ui/select.tsx b/apps/infoalloggi/src/components/ui/select.tsx index 5c30cc4..1c50891 100644 --- a/apps/infoalloggi/src/components/ui/select.tsx +++ b/apps/infoalloggi/src/components/ui/select.tsx @@ -35,7 +35,7 @@ function SelectTrigger({ return ( {children} @@ -106,7 +106,7 @@ function SelectItem({ return ( ) { return ( diff --git a/apps/infoalloggi/src/forms/FormEditAnnuncio.tsx b/apps/infoalloggi/src/forms/FormEditAnnuncio.tsx index 65e518d..926d805 100644 --- a/apps/infoalloggi/src/forms/FormEditAnnuncio.tsx +++ b/apps/infoalloggi/src/forms/FormEditAnnuncio.tsx @@ -1051,7 +1051,7 @@ export const AnnuncioEditForm = ({ data }: { data: AnnunciWithMedia }) => {
-

{field.value?.join(", ")}

+

{field.value?.join(", ")}

)} /> @@ -1105,7 +1105,7 @@ export const AnnuncioEditForm = ({ data }: { data: AnnunciWithMedia }) => { {field.value !== null && (
-

{field.value?.join(", ")}

+

{field.value?.join(", ")}

)} @@ -1825,7 +1825,7 @@ export const AnnuncioEditForm = ({ data }: { data: AnnunciWithMedia }) => {
-

+

{field.value ? filteredCaratteristiche(field.value) .map((v) => v.text) diff --git a/apps/infoalloggi/src/forms/FormNewServizioAcquisto.tsx b/apps/infoalloggi/src/forms/FormNewServizioAcquisto.tsx index c8fba68..836a999 100644 --- a/apps/infoalloggi/src/forms/FormNewServizioAcquisto.tsx +++ b/apps/infoalloggi/src/forms/FormNewServizioAcquisto.tsx @@ -810,7 +810,7 @@ export const FormNewServizioAcquisto = ({