update ts 6
This commit is contained in:
parent
59dc00f048
commit
3fc8dd60f9
11 changed files with 43 additions and 38 deletions
|
|
@ -10,7 +10,6 @@ TODOS:
|
||||||
- Log email fallite e retry
|
- Log email fallite e retry
|
||||||
- modal invia conferma, che genera email e inserisce le condizioni di conferma
|
- modal invia conferma, che genera email e inserisce le condizioni di conferma
|
||||||
- quando conferma accettata/caparra versata, bottone per inviare email di conferma avvenuta
|
- quando conferma accettata/caparra versata, bottone per inviare email di conferma avvenuta
|
||||||
- Mostrare ultimo servizio di ricerca diretto nella pag ricerca, poi magari se servizi>1 avere bottone per modal che mostra lista servizi
|
|
||||||
- pre attivazione se admin mostrare tastino contatti in preview
|
- pre attivazione se admin mostrare tastino contatti in preview
|
||||||
- onboarding submit (toast e email che invitano a pagare)
|
- onboarding submit (toast e email che invitano a pagare)
|
||||||
- migliorare onboarding e pag guida
|
- migliorare onboarding e pag guida
|
||||||
|
|
|
||||||
46
apps/infoalloggi/package-lock.json
generated
46
apps/infoalloggi/package-lock.json
generated
|
|
@ -117,7 +117,7 @@
|
||||||
"knip": "^6.4.1",
|
"knip": "^6.4.1",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"react-email": "^6.0.5",
|
"react-email": "^6.0.5",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^6.0.3",
|
||||||
"vite-tsconfig-paths": "^6.1.1",
|
"vite-tsconfig-paths": "^6.1.1",
|
||||||
"vitest": "^4.1.5"
|
"vitest": "^4.1.5"
|
||||||
}
|
}
|
||||||
|
|
@ -13259,25 +13259,6 @@
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"license": "Unlicense"
|
"license": "Unlicense"
|
||||||
},
|
},
|
||||||
"node_modules/tsconfck": {
|
|
||||||
"version": "3.1.6",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"bin": {
|
|
||||||
"tsconfck": "bin/tsconfck.js"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^18 || >=20"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"typescript": "^5.0.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"typescript": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/tsconfig-paths": {
|
"node_modules/tsconfig-paths": {
|
||||||
"version": "4.2.0",
|
"version": "4.2.0",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
|
@ -13407,7 +13388,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/typescript": {
|
"node_modules/typescript": {
|
||||||
"version": "5.9.3",
|
"version": "6.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz",
|
||||||
|
"integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"peer": true,
|
"peer": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
@ -13681,6 +13664,27 @@
|
||||||
"vite": "*"
|
"vite": "*"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/vite-tsconfig-paths/node_modules/tsconfck": {
|
||||||
|
"version": "3.1.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/tsconfck/-/tsconfck-3.1.6.tgz",
|
||||||
|
"integrity": "sha512-ks6Vjr/jEw0P1gmOVwutM3B7fWxoWBL2KRDb1JfqGVawBmO5UsvmWOQFGHBPl5yxYz4eERr19E6L7NMv+Fej4w==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"bin": {
|
||||||
|
"tsconfck": "bin/tsconfck.js"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "^18 || >=20"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"typescript": "^5.0.0"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"typescript": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/vitest": {
|
"node_modules/vitest": {
|
||||||
"version": "4.1.5",
|
"version": "4.1.5",
|
||||||
"resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.5.tgz",
|
"resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.5.tgz",
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@
|
||||||
"knip": "^6.4.1",
|
"knip": "^6.4.1",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"react-email": "^6.0.5",
|
"react-email": "^6.0.5",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^6.0.3",
|
||||||
"vite-tsconfig-paths": "^6.1.1",
|
"vite-tsconfig-paths": "^6.1.1",
|
||||||
"vitest": "^4.1.5"
|
"vitest": "^4.1.5"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ import {
|
||||||
FormProvider,
|
FormProvider,
|
||||||
useFormContext,
|
useFormContext,
|
||||||
} from "react-hook-form";
|
} from "react-hook-form";
|
||||||
import { Label } from "src/components/ui/label";
|
import { Label } from "~/components/ui/label";
|
||||||
import { cn } from "src/lib/utils";
|
import { cn } from "~/lib/utils";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
React Hook Form DevTools, only in development mode.
|
React Hook Form DevTools, only in development mode.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import type { SVGProps } from "react";
|
import type { SVGProps } from "react";
|
||||||
|
|
||||||
import { cn } from "src/lib/utils";
|
import { cn } from "~/lib/utils";
|
||||||
|
|
||||||
interface ISVGProps extends SVGProps<SVGSVGElement> {
|
interface ISVGProps extends SVGProps<SVGSVGElement> {
|
||||||
size?: number;
|
size?: number;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { forwardRef, type InputHTMLAttributes } from "react";
|
import { forwardRef, type InputHTMLAttributes } from "react";
|
||||||
import { cn } from "src/lib/utils";
|
import { cn } from "~/lib/utils";
|
||||||
|
|
||||||
type InputProps = InputHTMLAttributes<HTMLInputElement>;
|
type InputProps = InputHTMLAttributes<HTMLInputElement>;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -177,7 +177,8 @@ export const FormAddCodaEmail = ({ submitMutation }: FormProps) => {
|
||||||
defaultValue={
|
defaultValue={
|
||||||
field.value
|
field.value
|
||||||
? {
|
? {
|
||||||
label: Templates[field.value].title,
|
label:
|
||||||
|
Templates[field.value as TemplateType]?.title,
|
||||||
value: field.value,
|
value: field.value,
|
||||||
}
|
}
|
||||||
: undefined
|
: undefined
|
||||||
|
|
@ -189,7 +190,7 @@ export const FormAddCodaEmail = ({ submitMutation }: FormProps) => {
|
||||||
field.onChange(value.value as TemplateType);
|
field.onChange(value.value as TemplateType);
|
||||||
}}
|
}}
|
||||||
options={TemplateKeys.map((key) => ({
|
options={TemplateKeys.map((key) => ({
|
||||||
label: Templates[key].title,
|
label: Templates[key as TemplateType]?.title,
|
||||||
value: key,
|
value: key,
|
||||||
}))}
|
}))}
|
||||||
placeholder="Seleziona..."
|
placeholder="Seleziona..."
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
import type { Override } from "TypeHelpers.type";
|
|
||||||
import { TRPCError } from "@trpc/server";
|
import { TRPCError } from "@trpc/server";
|
||||||
import { add, set } from "date-fns";
|
import { add, set } from "date-fns";
|
||||||
import { sql } from "kysely";
|
import { sql } from "kysely";
|
||||||
import type { Attachment } from "nodemailer/lib/mailer";
|
import type { Attachment } from "nodemailer/lib/mailer";
|
||||||
|
import type { Override } from "@/TypeHelpers.type";
|
||||||
import type { AnnunciId } from "~/schemas/public/Annunci";
|
import type { AnnunciId } from "~/schemas/public/Annunci";
|
||||||
import type {
|
import type {
|
||||||
EventQueueEventId,
|
EventQueueEventId,
|
||||||
|
|
|
||||||
|
|
@ -74,9 +74,9 @@ export const Templates = {
|
||||||
},
|
},
|
||||||
} satisfies Record<string, { title: string; props: ZodSchema | null }>;
|
} satisfies Record<string, { title: string; props: ZodSchema | null }>;
|
||||||
|
|
||||||
export const TemplateKeys = Object.keys(Templates) as Array<
|
|
||||||
keyof typeof Templates
|
|
||||||
>;
|
export const TemplateKeys = Object.keys(Templates)
|
||||||
|
|
||||||
// const TemplateSchemas = Object.entries(Templates)
|
// const TemplateSchemas = Object.entries(Templates)
|
||||||
// .map(([_, value]) => value.props)
|
// .map(([_, value]) => value.props)
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import { TRPCError } from "@trpc/server";
|
||||||
import type { EstrattoContoData } from "~/server/api/routers/stripe_reports";
|
import type { EstrattoContoData } from "~/server/api/routers/stripe_reports";
|
||||||
|
|
||||||
const execPromise = promisify(exec);
|
const execPromise = promisify(exec);
|
||||||
const projectRoot = path.resolve(".");
|
const projectRoot = process.cwd()
|
||||||
const fontsPath = path.join(projectRoot, "typst", "fonts");
|
const fontsPath = path.join(projectRoot, "typst", "fonts");
|
||||||
|
|
||||||
const tmpDir = path.join(projectRoot, "tmp");
|
const tmpDir = path.join(projectRoot, "tmp");
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,7 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
/* Path Aliases */
|
|
||||||
|
|
||||||
"baseUrl": ".",
|
|
||||||
"checkJs": true,
|
"checkJs": true,
|
||||||
/* Base Options: */
|
/* Base Options: */
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
|
|
@ -19,7 +17,9 @@
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"noUncheckedIndexedAccess": true,
|
"noUncheckedIndexedAccess": true,
|
||||||
"paths": {
|
"paths": {
|
||||||
"~/*": ["./src/*"]
|
"@/*": ["./*"],
|
||||||
|
"~/*": ["./src/*"],
|
||||||
|
"emails/*": ["./emails/*"]
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [
|
||||||
{
|
{
|
||||||
|
|
@ -30,7 +30,8 @@
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
/* Strictness */
|
/* Strictness */
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"target": "esnext"
|
"target": "esnext",
|
||||||
|
"types": ["node"]
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules",
|
"node_modules",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue