Compare commits
No commits in common. "0f58cba38c42f8c7722884453dbd3d535489e377" and "51691bda11f878aa81046c44981f898b869bc886" have entirely different histories.
0f58cba38c
...
51691bda11
4
.replit
4
.replit
@ -35,10 +35,6 @@ externalPort = 4200
|
|||||||
localPort = 42175
|
localPort = 42175
|
||||||
externalPort = 3002
|
externalPort = 3002
|
||||||
|
|
||||||
[[ports]]
|
|
||||||
localPort = 42423
|
|
||||||
externalPort = 5173
|
|
||||||
|
|
||||||
[[ports]]
|
[[ports]]
|
||||||
localPort = 43169
|
localPort = 43169
|
||||||
externalPort = 5000
|
externalPort = 5000
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { useQuery, useMutation } from "@tanstack/react-query";
|
import { useQuery, useMutation } from "@tanstack/react-query";
|
||||||
import { Site, InsertSite, Customer } from "@shared/schema";
|
import { Site, InsertSite } from "@shared/schema";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
|
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
|
||||||
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger } from "@/components/ui/dialog";
|
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger } from "@/components/ui/dialog";
|
||||||
@ -40,10 +40,6 @@ export default function Sites() {
|
|||||||
queryKey: ["/api/sites"],
|
queryKey: ["/api/sites"],
|
||||||
});
|
});
|
||||||
|
|
||||||
const { data: customers } = useQuery<Customer[]>({
|
|
||||||
queryKey: ["/api/customers"],
|
|
||||||
});
|
|
||||||
|
|
||||||
const form = useForm<InsertSite>({
|
const form = useForm<InsertSite>({
|
||||||
resolver: zodResolver(insertSiteSchema),
|
resolver: zodResolver(insertSiteSchema),
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
@ -232,32 +228,6 @@ export default function Sites() {
|
|||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<FormField
|
|
||||||
control={form.control}
|
|
||||||
name="customerId"
|
|
||||||
render={({ field }) => (
|
|
||||||
<FormItem>
|
|
||||||
<FormLabel>Cliente</FormLabel>
|
|
||||||
<Select onValueChange={field.onChange} value={field.value || undefined}>
|
|
||||||
<FormControl>
|
|
||||||
<SelectTrigger data-testid="select-customer">
|
|
||||||
<SelectValue placeholder="Seleziona cliente (opzionale)" />
|
|
||||||
</SelectTrigger>
|
|
||||||
</FormControl>
|
|
||||||
<SelectContent>
|
|
||||||
<SelectItem value="">Nessun cliente</SelectItem>
|
|
||||||
{customers?.map((customer) => (
|
|
||||||
<SelectItem key={customer.id} value={customer.id}>
|
|
||||||
{customer.name}
|
|
||||||
</SelectItem>
|
|
||||||
))}
|
|
||||||
</SelectContent>
|
|
||||||
</Select>
|
|
||||||
<FormMessage />
|
|
||||||
</FormItem>
|
|
||||||
)}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<FormField
|
<FormField
|
||||||
control={form.control}
|
control={form.control}
|
||||||
name="location"
|
name="location"
|
||||||
@ -519,32 +489,6 @@ export default function Sites() {
|
|||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<FormField
|
|
||||||
control={editForm.control}
|
|
||||||
name="customerId"
|
|
||||||
render={({ field }) => (
|
|
||||||
<FormItem>
|
|
||||||
<FormLabel>Cliente</FormLabel>
|
|
||||||
<Select onValueChange={field.onChange} value={field.value || undefined}>
|
|
||||||
<FormControl>
|
|
||||||
<SelectTrigger data-testid="select-edit-customer">
|
|
||||||
<SelectValue placeholder="Seleziona cliente (opzionale)" />
|
|
||||||
</SelectTrigger>
|
|
||||||
</FormControl>
|
|
||||||
<SelectContent>
|
|
||||||
<SelectItem value="">Nessun cliente</SelectItem>
|
|
||||||
{customers?.map((customer) => (
|
|
||||||
<SelectItem key={customer.id} value={customer.id}>
|
|
||||||
{customer.name}
|
|
||||||
</SelectItem>
|
|
||||||
))}
|
|
||||||
</SelectContent>
|
|
||||||
</Select>
|
|
||||||
<FormMessage />
|
|
||||||
</FormItem>
|
|
||||||
)}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<FormField
|
<FormField
|
||||||
control={editForm.control}
|
control={editForm.control}
|
||||||
name="location"
|
name="location"
|
||||||
|
|||||||
BIN
database-backups/vigilanzaturni_v1.0.27_20251021_162727.sql.gz
Normal file
BIN
database-backups/vigilanzaturni_v1.0.27_20251021_162727.sql.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1082,7 +1082,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
|||||||
|
|
||||||
weekData.push({
|
weekData.push({
|
||||||
date: dayStr,
|
date: dayStr,
|
||||||
dayOfWeek: format(currentDayTimestamp, "EEEE"),
|
dayOfWeek: format(currentDay, "EEEE"),
|
||||||
sites: sitesData,
|
sites: sitesData,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
10
version.json
10
version.json
@ -1,13 +1,7 @@
|
|||||||
{
|
{
|
||||||
"version": "1.0.37",
|
"version": "1.0.36",
|
||||||
"lastUpdate": "2025-10-23T09:23:28.990Z",
|
"lastUpdate": "2025-10-23T09:06:31.261Z",
|
||||||
"changelog": [
|
"changelog": [
|
||||||
{
|
|
||||||
"version": "1.0.37",
|
|
||||||
"date": "2025-10-23",
|
|
||||||
"type": "patch",
|
|
||||||
"description": "Deployment automatico v1.0.37"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"version": "1.0.36",
|
"version": "1.0.36",
|
||||||
"date": "2025-10-23",
|
"date": "2025-10-23",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user