Updates to booking
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 1m58s

This commit is contained in:
2024-04-30 13:56:42 -04:00
parent 0de9991a49
commit 2f68877ce6
4 changed files with 106 additions and 73 deletions

View File

@@ -1,6 +1,5 @@
import { DateOptions, date } from 'quasar';
import { Boat, useBoatStore } from '../boat';
import { ID } from 'src/boot/appwrite';
import {
parseTimestamp,
today,
@@ -43,7 +42,7 @@ export function getSampleTimeBlocks(): Timeblock[] {
const tsToday: Timestamp = parseTimestamp(today()) as Timestamp;
for (let i = 0; i <= 30; i++) {
const template = Math.random() < 0.5 ? templateA : templateB;
const template = templateB;
result.push(
...boats
.map((b): Timeblock[] => {
@@ -67,16 +66,16 @@ export function getSampleReservations(): Reservation[] {
{
id: 1,
user: 'John Smith',
start: '12:00',
end: '15:00',
start: '7:00',
end: '10:00',
boat: '1',
status: 'confirmed',
},
{
id: 2,
user: 'Bob Barker',
start: '18:00',
end: '21:00',
start: '16:00',
end: '19:00',
boat: '1',
status: 'confirmed',
},
@@ -91,24 +90,24 @@ export function getSampleReservations(): Reservation[] {
{
id: 4,
user: 'Vince McMahon',
start: '15:00',
end: '18:00',
start: '10:00',
end: '13:00',
boat: '2',
status: 'pending',
},
{
id: 5,
user: 'Heather Graham',
start: '09:00',
end: '12:00',
boat: '3',
start: '13:00',
end: '19:00',
boat: '4',
status: 'confirmed',
},
{
id: 6,
user: 'Lawrence Fishburne',
start: '18:00',
end: '21:00',
start: '13:00',
end: '16:00',
boat: '3',
},
];