refactor: update TypeScript SDK path and improve error handling in servizio service
This commit is contained in:
parent
985a302a05
commit
41d743c97f
4 changed files with 146 additions and 151 deletions
3
apps/infoalloggi/.vscode/settings.json
vendored
3
apps/infoalloggi/.vscode/settings.json
vendored
|
|
@ -17,5 +17,6 @@
|
||||||
"username": "postgres"
|
"username": "postgres"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"typescript.tsdk": "node_modules\\typescript\\lib"
|
"js/ts.tsdk.path": "node_modules\\typescript\\lib",
|
||||||
|
"biome.lsp.trace.server": "verbose",
|
||||||
}
|
}
|
||||||
|
|
@ -121,9 +121,7 @@ const RinnovoLinkCard = ({
|
||||||
key={data.id}
|
key={data.id}
|
||||||
>
|
>
|
||||||
<Card
|
<Card
|
||||||
className={cn(
|
className={cn("transition-shadow hover:bg-muted/15 hover:shadow-md")}
|
||||||
"transition-shadow hover:bg-muted/15 hover:shadow-md",
|
|
||||||
)}
|
|
||||||
>
|
>
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="group-hover:underline">
|
<CardTitle className="group-hover:underline">
|
||||||
|
|
@ -134,7 +132,6 @@ const RinnovoLinkCard = ({
|
||||||
</CardDescription>
|
</CardDescription>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className="flex flex-col flex-wrap gap-4 sm:flex-row sm:justify-between">
|
<CardContent className="flex flex-col flex-wrap gap-4 sm:flex-row sm:justify-between">
|
||||||
|
|
||||||
<div className="flex items-center gap-2 rounded-md text-muted-foreground group-hover:text-foreground">
|
<div className="flex items-center gap-2 rounded-md text-muted-foreground group-hover:text-foreground">
|
||||||
<span>Vai al rinnovo</span>
|
<span>Vai al rinnovo</span>
|
||||||
<ArrowRight />
|
<ArrowRight />
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ import {
|
||||||
FormEditServizio,
|
FormEditServizio,
|
||||||
} from "~/forms/FormEditServizioAdmin";
|
} from "~/forms/FormEditServizioAdmin";
|
||||||
import { FormNewOrder } from "~/forms/FormNewOrdine";
|
import { FormNewOrder } from "~/forms/FormNewOrdine";
|
||||||
import { FormNewServizio, type FormValues } from "~/forms/FormNewServizio";
|
import { FormServizio, type FormValues } from "~/forms/FormServizio";
|
||||||
import { cn, formatCurrency } from "~/lib/utils";
|
import { cn, formatCurrency } from "~/lib/utils";
|
||||||
import { useTranslation } from "~/providers/I18nProvider";
|
import { useTranslation } from "~/providers/I18nProvider";
|
||||||
import { useServizio } from "~/providers/ServizioProvider";
|
import { useServizio } from "~/providers/ServizioProvider";
|
||||||
|
|
@ -696,7 +696,7 @@ const EditParametri = () => {
|
||||||
</CredenzaDescription>
|
</CredenzaDescription>
|
||||||
</CredenzaHeader>
|
</CredenzaHeader>
|
||||||
<CredenzaBody className="max-h-[80vh] w-full max-w-3xl overflow-y-auto pb-5 sm:max-w-5xl">
|
<CredenzaBody className="max-h-[80vh] w-full max-w-3xl overflow-y-auto pb-5 sm:max-w-5xl">
|
||||||
<FormNewServizio
|
<FormServizio
|
||||||
initialData={servizio}
|
initialData={servizio}
|
||||||
isLimited={!isAdmin}
|
isLimited={!isAdmin}
|
||||||
onSubmit={onSubmit}
|
onSubmit={onSubmit}
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
import { TRPCError } from "@trpc/server";
|
import { TRPCError } from "@trpc/server";
|
||||||
import { db } from "../db";
|
|
||||||
import type { NewServizio, ServizioServizioId, ServizioUpdate } from "~/schemas/public/Servizio";
|
|
||||||
import OrderTypeEnum from "~/schemas/public/OrderTypeEnum";
|
|
||||||
import { ACCONTO_STABILE, ACCONTO_TRANSITORIO } from "../controllers/pagamenti.controller";
|
|
||||||
import TipologiaPosizioneEnum from "~/schemas/public/TipologiaPosizioneEnum";
|
|
||||||
import { getPrezziarioByIdHandler } from "./prezziario.service";
|
|
||||||
import type { AnnunciId } from "~/schemas/public/Annunci";
|
import type { AnnunciId } from "~/schemas/public/Annunci";
|
||||||
|
import OrderTypeEnum from "~/schemas/public/OrderTypeEnum";
|
||||||
|
import type {
|
||||||
|
NewServizio,
|
||||||
|
ServizioServizioId,
|
||||||
|
ServizioUpdate,
|
||||||
|
} from "~/schemas/public/Servizio";
|
||||||
import type { ServizioAnnunciUpdate } from "~/schemas/public/ServizioAnnunci";
|
import type { ServizioAnnunciUpdate } from "~/schemas/public/ServizioAnnunci";
|
||||||
import { db } from "../db";
|
import { db } from "../db";
|
||||||
|
|
||||||
|
|
@ -110,9 +110,6 @@ export const deleteServizio = async (servizioId: ServizioServizioId) => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
////// SERVIZIO ANNUNCI
|
////// SERVIZIO ANNUNCI
|
||||||
|
|
||||||
export const getServizioAnnuncio = async ({
|
export const getServizioAnnuncio = async ({
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue