Skip to content

Commit 8adca44

Browse files
fix: fix date inputs
1 parent 414beab commit 8adca44

File tree

11 files changed

+21
-16
lines changed

11 files changed

+21
-16
lines changed

docker-compose.test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ services:
5353
- SIMSUSTECH_NPM_TOKEN
5454
dockerfile: Dockerfile
5555
target: api
56+
network: "host"
5657
depends_on:
5758
database:
5859
condition: service_healthy

packages/api/tests/e2e/account.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ const pet = {
3434
const newPetName = faker.person.firstName()
3535

3636
const startDate = faker.date
37-
.soon({ days: 90 }, new Date())
37+
.soon({ days: 90, refDate: new Date() })
3838
.toISOString()
3939
.split('T')[0]
4040
const endDate = faker.date
41-
.soon({ days: 30 }, startDate)
41+
.soon({ days: 30, refDate: startDate })
4242
.toISOString()
4343
.split('T')[0]
4444
const booking = {

packages/api/vitrify.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ export default async function ({ mode, command }): Promise<VitrifyConfig> {
1414
ssr: {
1515
fastify: {
1616
bodyLimit: 10e6,
17-
maxParamLength: 5000
17+
routerOptions: {
18+
maxParamLength: 5000
19+
}
1820
},
1921
serverModules: [
2022
'@petboarding/app',

packages/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"@quasar/extras": "1.17.0",
5656
"@quasar/quasar-ui-qcalendar": "4.1.2",
5757
"@quasar/quasar-ui-qmarkdown": "2.0.5",
58-
"@simsustech/quasar-components": "0.11.22",
58+
"@simsustech/quasar-components": "0.11.23",
5959
"@trpc/client": "11.7.2",
6060
"@trpc/server": "11.7.2",
6161
"@typescript-eslint/eslint-plugin": "8.48.0",

packages/app/src/components/announcement/AnnouncementForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const formRef = ref<QForm>()
105105
const initialValue = {
106106
title: '',
107107
message: '',
108-
expirationDate: '',
108+
expirationDate: null,
109109
type: ANNOUNCEMENT_TYPE.GENERAL,
110110
comments: ''
111111
}

packages/app/src/components/booking/BookingForm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ const validations = computed<
149149
}))
150150
151151
const initialValue: Booking = {
152-
startDate: '',
153-
endDate: '',
152+
startDate: null,
153+
endDate: null,
154154
startTimeId: null,
155155
endTimeId: null,
156156
petIds: [],

packages/app/src/components/period/PeriodForm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ const formRef = ref<QForm>()
102102
103103
const initialValue = {
104104
name: '',
105-
startDate: '',
106-
endDate: '',
105+
startDate: null,
106+
endDate: null,
107107
type: PERIOD_TYPE.UNAVAILABLE_FOR_ALL,
108108
comments: '',
109109
minimumRatingForException: null

packages/app/src/components/pet/PetForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ const initialValue: Pet = {
282282
gender: null,
283283
sterilized: null,
284284
chemicalSterilizationDate: null,
285-
birthDate: '',
285+
birthDate: null,
286286
color: '',
287287
medicines: '',
288288
food: {

packages/app/src/components/vaccination/VaccinationForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const lang = useLang()
7373
const species = ref<(typeof PET_SPECIES)[number]>('dog')
7474
const initialValue: Vaccination = {
7575
petId: 0,
76-
expirationDate: '',
76+
expirationDate: null,
7777
types: []
7878
}
7979
const modelValue = ref<Vaccination>(initialValue)

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)