newcandies 0.1.32 → 0.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +17 -9
- package/package.json +1 -1
- package/templates/boilerplate/holidia/.vscode/settings.json +1 -0
- package/templates/boilerplate/holidia/.vscode/snippets.code-snippets +144 -0
- package/templates/boilerplate/holidia/.zed/settings.json +7 -0
- package/templates/boilerplate/holidia/README.md +25 -2
- package/templates/boilerplate/holidia/app/(tabs)/_layout.tsx +0 -0
- package/templates/boilerplate/holidia/app/(tabs)/bookings.tsx +0 -0
- package/templates/boilerplate/holidia/app/(tabs)/favorite.tsx +0 -0
- package/templates/boilerplate/holidia/app/(tabs)/index.tsx +0 -0
- package/templates/boilerplate/holidia/app/(tabs)/profile.tsx +0 -0
- package/templates/boilerplate/holidia/app/+html.tsx +46 -0
- package/templates/boilerplate/holidia/app/+not-found.tsx +23 -0
- package/templates/boilerplate/holidia/app/_layout.tsx +0 -0
- package/templates/boilerplate/holidia/app/checkout.tsx +0 -0
- package/templates/boilerplate/holidia/app/login.tsx +0 -0
- package/templates/boilerplate/holidia/app/payment-successful.tsx +0 -0
- package/templates/boilerplate/holidia/app/properties/[id].tsx +264 -0
- package/templates/boilerplate/holidia/app/search.tsx +0 -0
- package/templates/boilerplate/holidia/app/signup.tsx +0 -0
- package/templates/boilerplate/holidia/app/welcome.tsx +0 -0
- package/templates/boilerplate/holidia/app-env.d.ts +2 -0
- package/templates/boilerplate/holidia/app.json +66 -0
- package/templates/boilerplate/holidia/assets/adaptive-icon.png +0 -0
- package/templates/boilerplate/holidia/assets/favicon.png +0 -0
- package/templates/boilerplate/holidia/assets/icon.png +0 -0
- package/templates/boilerplate/holidia/assets/logo.png +0 -0
- package/templates/boilerplate/holidia/assets/logo.svg +46 -0
- package/templates/boilerplate/holidia/assets/splash.png +0 -0
- package/templates/boilerplate/holidia/babel.config.js +5 -6
- package/templates/boilerplate/holidia/cesconfig.json +35 -0
- package/templates/boilerplate/holidia/components/container.tsx +11 -0
- package/templates/boilerplate/holidia/core/api/api-provider.tsx +0 -0
- package/templates/boilerplate/holidia/core/api/client.ts +0 -0
- package/templates/boilerplate/holidia/core/auth/index.ts +0 -0
- package/templates/boilerplate/holidia/core/constants/data.ts +559 -0
- package/templates/boilerplate/holidia/core/constants/index.ts +0 -0
- package/templates/boilerplate/holidia/core/hooks/use-image-colors.ts +0 -0
- package/templates/boilerplate/holidia/core/hooks/use-toggle-favorite.ts +0 -0
- package/templates/boilerplate/holidia/core/storage.ts +0 -0
- package/templates/boilerplate/holidia/core/store/index.ts +0 -0
- package/templates/boilerplate/holidia/core/theme/calendar-theme.ts +0 -0
- package/templates/boilerplate/holidia/core/theme/colors.ts +2 -0
- package/templates/boilerplate/holidia/core/theme/use-theme-config.ts +0 -0
- package/templates/boilerplate/holidia/core/types/index.d.ts +63 -0
- package/templates/boilerplate/holidia/core/types/lib.d.ts +4 -0
- package/templates/boilerplate/holidia/core/utils/layout.ts +0 -0
- package/templates/boilerplate/holidia/core/utils/log.ts +0 -0
- package/templates/boilerplate/holidia/eas.json +18 -0
- package/templates/boilerplate/holidia/env.development +2 -0
- package/templates/boilerplate/holidia/env.prod +2 -0
- package/templates/boilerplate/holidia/global.css +0 -1
- package/templates/boilerplate/holidia/metro.config.js +6 -4
- package/templates/boilerplate/holidia/nativewind-env.d.ts +3 -0
- package/templates/boilerplate/holidia/package.json +74 -21
- package/templates/boilerplate/holidia/prettier.config.js +10 -0
- package/templates/boilerplate/holidia/tailwind.config.js +6 -7
- package/templates/boilerplate/holidia/tsconfig.json +11 -0
- package/templates/registry.json +2 -0
- package/templates/boilerplate/holidia/src/app/_layout.tsx +0 -16
- package/templates/boilerplate/holidia/src/app/holi.tsx +0 -9
- package/templates/boilerplate/holidia/src/app/index.tsx +0 -34
|
@@ -0,0 +1,559 @@
|
|
|
1
|
+
export const PROPERTIES = [
|
|
2
|
+
{
|
|
3
|
+
id: 'prop_543ce3c0-96c5-4031-87a4-3dee73c7cf82',
|
|
4
|
+
name: 'Beachfront Cottage',
|
|
5
|
+
description:
|
|
6
|
+
'Come to Playa Coronado and enjoy time with your family or a group of friends in this private home within an enclosed beach community! The house has a modern design.',
|
|
7
|
+
price_per_night: 111,
|
|
8
|
+
owner_id: 'user_c71adf0f-3fbd-4b37-8c4c-5b926d82666b',
|
|
9
|
+
created_at: '2024-10-12T10:38:18.678493Z',
|
|
10
|
+
images: [
|
|
11
|
+
'https://res.cloudinary.com/dbspz5tmg/image/upload/v1738301879/holidia/one_whhjrl.webp',
|
|
12
|
+
'https://res.cloudinary.com/dbspz5tmg/image/upload/v1738301878/holidia/two_fj39xa.webp',
|
|
13
|
+
],
|
|
14
|
+
address: '123 Beach Road',
|
|
15
|
+
city: 'paris',
|
|
16
|
+
country: 'USA',
|
|
17
|
+
amenities: 'WiFi, Kitchen, Free parking',
|
|
18
|
+
capacity: 4,
|
|
19
|
+
longitude: -118.6923,
|
|
20
|
+
latitude: 34.0381,
|
|
21
|
+
latitude_delta: 0.0421,
|
|
22
|
+
longitude_delta: 0.0922,
|
|
23
|
+
is_favorite: true,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 'prop_a65e920c-acec-4de6-813b-fd37748613cf',
|
|
27
|
+
name: 'Palm house',
|
|
28
|
+
description: 'A beautiful house',
|
|
29
|
+
price_per_night: 666,
|
|
30
|
+
owner_id: 'user_c71adf0f-3fbd-4b37-8c4c-5b926d82666b',
|
|
31
|
+
created_at: '2024-10-30T04:29:57.036778Z',
|
|
32
|
+
images: [
|
|
33
|
+
'https://images.pexels.com/photos/338504/pexels-photo-338504.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
34
|
+
'https://images.pexels.com/photos/1134176/pexels-photo-1134176.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
35
|
+
],
|
|
36
|
+
address: '123 Beach Road',
|
|
37
|
+
city: 'Paris',
|
|
38
|
+
country: 'France',
|
|
39
|
+
amenities: 'Pool, Kitchen, Free parking,WiFi',
|
|
40
|
+
capacity: 1,
|
|
41
|
+
longitude: -120.6923,
|
|
42
|
+
latitude: 30.0381,
|
|
43
|
+
latitude_delta: 0.0421,
|
|
44
|
+
longitude_delta: 0.0922,
|
|
45
|
+
is_favorite: true,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: 'prop_3651f0dd-46c8-4316-af4f-180f859af610',
|
|
49
|
+
name: 'Night house',
|
|
50
|
+
description: 'A beautiful house',
|
|
51
|
+
price_per_night: 50,
|
|
52
|
+
owner_id: 'user_c71adf0f-3fbd-4b37-8c4c-5b926d82666b',
|
|
53
|
+
created_at: '2024-10-30T04:31:43.103814Z',
|
|
54
|
+
images: [
|
|
55
|
+
'https://images.pexels.com/photos/2682770/pexels-photo-2682770.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
56
|
+
'https://images.pexels.com/photos/2745254/pexels-photo-2745254.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
57
|
+
],
|
|
58
|
+
address: '123 Beach Road',
|
|
59
|
+
city: 'Paris',
|
|
60
|
+
country: 'France',
|
|
61
|
+
amenities: 'Pool, Kitchen, Free parking,WiFi',
|
|
62
|
+
capacity: 1,
|
|
63
|
+
longitude: -120.6923,
|
|
64
|
+
latitude: 30.0381,
|
|
65
|
+
latitude_delta: 0.0421,
|
|
66
|
+
longitude_delta: 0.0922,
|
|
67
|
+
is_favorite: true,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: 'prop_9fe72fdb-2160-4a46-8f48-c593731beb73',
|
|
71
|
+
name: 'Beachfront Cottage',
|
|
72
|
+
description: 'A beautiful cottage with ocean views',
|
|
73
|
+
price_per_night: 200,
|
|
74
|
+
owner_id: 'user_c71adf0f-3fbd-4b37-8c4c-5b926d82666b',
|
|
75
|
+
created_at: '2024-10-12T10:36:07.456616Z',
|
|
76
|
+
images: [
|
|
77
|
+
'https://images.wallpaperscraft.com/image/single/city_sea_cliff_138673_3840x2160.jpg',
|
|
78
|
+
'https://images.pexels.com/photos/3225528/pexels-photo-3225528.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
79
|
+
],
|
|
80
|
+
address: '123 Beach Road',
|
|
81
|
+
city: 'Malibu',
|
|
82
|
+
country: 'USA',
|
|
83
|
+
amenities: 'WiFi, Kitchen, Free parking',
|
|
84
|
+
capacity: 4,
|
|
85
|
+
longitude: -106.8175,
|
|
86
|
+
latitude: 39.1911,
|
|
87
|
+
latitude_delta: 0.1,
|
|
88
|
+
longitude_delta: 0.1,
|
|
89
|
+
is_favorite: true,
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: 'prop_5b77e3c0-c948-434d-8c85-85a6ecbeaad2',
|
|
93
|
+
name: 'Night house',
|
|
94
|
+
description: 'A beautiful house',
|
|
95
|
+
price_per_night: 50,
|
|
96
|
+
owner_id: 'user_c71adf0f-3fbd-4b37-8c4c-5b926d82666b',
|
|
97
|
+
created_at: '2024-10-30T04:32:28.550667Z',
|
|
98
|
+
images: [
|
|
99
|
+
'https://images.pexels.com/photos/11669971/pexels-photo-11669971.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
100
|
+
'https://images.pexels.com/photos/1552208/pexels-photo-1552208.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
101
|
+
],
|
|
102
|
+
address: '123 Beach Road',
|
|
103
|
+
city: 'Paris',
|
|
104
|
+
country: 'France',
|
|
105
|
+
amenities: 'Pool, Kitchen, Free parking,WiFi',
|
|
106
|
+
capacity: 1,
|
|
107
|
+
longitude: -120.6923,
|
|
108
|
+
latitude: 30.0381,
|
|
109
|
+
latitude_delta: 0.0421,
|
|
110
|
+
longitude_delta: 0.0922,
|
|
111
|
+
is_favorite: true,
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: 'prop_ced60718-03e0-48fc-b8f3-98785645cd1f',
|
|
115
|
+
name: 'Night house',
|
|
116
|
+
description: 'A beautiful house',
|
|
117
|
+
price_per_night: 50,
|
|
118
|
+
owner_id: 'user_c71adf0f-3fbd-4b37-8c4c-5b926d82666b',
|
|
119
|
+
created_at: '2024-10-30T07:25:44.687903Z',
|
|
120
|
+
images: [
|
|
121
|
+
'https://images.pexels.com/photos/7031414/pexels-photo-7031414.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
122
|
+
'https://images.pexels.com/photos/7031413/pexels-photo-7031413.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
123
|
+
],
|
|
124
|
+
address: '123 Beach Road',
|
|
125
|
+
city: 'Paris',
|
|
126
|
+
country: 'France',
|
|
127
|
+
amenities: 'Pool, Kitchen, Free parking,WiFi',
|
|
128
|
+
capacity: 1,
|
|
129
|
+
longitude: -120.6923,
|
|
130
|
+
latitude: 30.0381,
|
|
131
|
+
latitude_delta: 0.0421,
|
|
132
|
+
longitude_delta: 0.0922,
|
|
133
|
+
is_favorite: true,
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
id: 'prop_d4016581-4f8d-4672-8813-184e10ae805c',
|
|
137
|
+
name: 'Beach House',
|
|
138
|
+
description: 'A beautiful cottage with ocean views',
|
|
139
|
+
price_per_night: 400,
|
|
140
|
+
owner_id: 'user_c71adf0f-3fbd-4b37-8c4c-5b926d82666b',
|
|
141
|
+
created_at: '2024-10-11T06:04:03.411978Z',
|
|
142
|
+
images: [
|
|
143
|
+
'https://images.pexels.com/photos/8143681/pexels-photo-8143681.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
144
|
+
'https://images.pexels.com/photos/6032280/pexels-photo-6032280.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
145
|
+
],
|
|
146
|
+
address: '123 Beach Road',
|
|
147
|
+
city: 'Malibu',
|
|
148
|
+
country: 'USA',
|
|
149
|
+
amenities: 'WiFi, Kitchen, Free parking',
|
|
150
|
+
capacity: 4,
|
|
151
|
+
longitude: -106.8175,
|
|
152
|
+
latitude: 44,
|
|
153
|
+
latitude_delta: 0.1,
|
|
154
|
+
longitude_delta: 0.1,
|
|
155
|
+
is_favorite: false,
|
|
156
|
+
},
|
|
157
|
+
];
|
|
158
|
+
|
|
159
|
+
export const BOOKINGS = [
|
|
160
|
+
{
|
|
161
|
+
id: 'booking_33459b01-2286-4a43-948f-6904ab7f2bf0',
|
|
162
|
+
created_at: '2024-10-30T13:39:26.223361Z',
|
|
163
|
+
updated_at: '2024-10-30T13:40:10.900813Z',
|
|
164
|
+
deleted_at: null,
|
|
165
|
+
property_id: 'prop_5b77e3c0-c948-434d-8c85-85a6ecbeaad2',
|
|
166
|
+
user_id: 'user_71ad1974-7e42-4f4a-9726-cd97d8ce35dd',
|
|
167
|
+
check_in: '2025-10-14T05:30:00Z',
|
|
168
|
+
check_out: '2025-10-18T05:30:00Z',
|
|
169
|
+
total_price: 250,
|
|
170
|
+
status: 'pending_payment',
|
|
171
|
+
guest_count: 1,
|
|
172
|
+
special_requests: '',
|
|
173
|
+
property: {
|
|
174
|
+
id: 'prop_5b77e3c0-c948-434d-8c85-85a6ecbeaad2',
|
|
175
|
+
name: 'Night house',
|
|
176
|
+
description: 'A beautiful house',
|
|
177
|
+
price_per_night: 50,
|
|
178
|
+
owner_id: 'user_c71adf0f-3fbd-4b37-8c4c-5b926d82666b',
|
|
179
|
+
created_at: '2024-10-30T04:32:28.550667Z',
|
|
180
|
+
images: [
|
|
181
|
+
'https://images.pexels.com/photos/11669971/pexels-photo-11669971.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
182
|
+
'https://images.pexels.com/photos/1552208/pexels-photo-1552208.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
183
|
+
],
|
|
184
|
+
address: '123 Beach Road',
|
|
185
|
+
city: 'Paris',
|
|
186
|
+
country: 'France',
|
|
187
|
+
amenities: 'Pool, Kitchen, Free parking,WiFi',
|
|
188
|
+
capacity: 1,
|
|
189
|
+
longitude: -120.6923,
|
|
190
|
+
latitude: 30.0381,
|
|
191
|
+
latitude_delta: 0.0421,
|
|
192
|
+
longitude_delta: 0.0922,
|
|
193
|
+
is_favorite: false,
|
|
194
|
+
},
|
|
195
|
+
user: {
|
|
196
|
+
id: '',
|
|
197
|
+
name: '',
|
|
198
|
+
created_at: '0001-01-01T00:00:00Z',
|
|
199
|
+
username: '',
|
|
200
|
+
email: '',
|
|
201
|
+
avatar: '',
|
|
202
|
+
password: '',
|
|
203
|
+
properties: null,
|
|
204
|
+
bookings: null,
|
|
205
|
+
},
|
|
206
|
+
payment_intent_id: 'pi_3QFc7NSFlPLyedhO19zEupBo',
|
|
207
|
+
payment_status: 'succeeded',
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
id: 'booking_bda5b5fb-6c88-4e80-a2c5-c2f5677975df',
|
|
211
|
+
created_at: '2024-10-24T11:25:21.146879Z',
|
|
212
|
+
updated_at: '2024-10-24T11:25:52.675646Z',
|
|
213
|
+
deleted_at: null,
|
|
214
|
+
property_id: 'prop_d4016581-4f8d-4672-8813-184e10ae805c',
|
|
215
|
+
user_id: 'user_71ad1974-7e42-4f4a-9726-cd97d8ce35dd',
|
|
216
|
+
check_in: '2024-10-24T05:30:00Z',
|
|
217
|
+
check_out: '2024-10-24T05:30:00Z',
|
|
218
|
+
total_price: 400,
|
|
219
|
+
status: 'pending_payment',
|
|
220
|
+
guest_count: 1,
|
|
221
|
+
special_requests: '',
|
|
222
|
+
property: {
|
|
223
|
+
id: 'prop_d4016581-4f8d-4672-8813-184e10ae805c',
|
|
224
|
+
name: 'Beach House',
|
|
225
|
+
description: 'A beautiful cottage with ocean views',
|
|
226
|
+
price_per_night: 400,
|
|
227
|
+
owner_id: 'user_c71adf0f-3fbd-4b37-8c4c-5b926d82666b',
|
|
228
|
+
created_at: '2024-10-11T06:04:03.411978Z',
|
|
229
|
+
images: [
|
|
230
|
+
'https://images.pexels.com/photos/8143681/pexels-photo-8143681.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
231
|
+
'https://images.pexels.com/photos/6032280/pexels-photo-6032280.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
232
|
+
],
|
|
233
|
+
address: '123 Beach Road',
|
|
234
|
+
city: 'Malibu',
|
|
235
|
+
country: 'USA',
|
|
236
|
+
amenities: 'WiFi, Kitchen, Free parking',
|
|
237
|
+
capacity: 4,
|
|
238
|
+
longitude: -106.8175,
|
|
239
|
+
latitude: 44,
|
|
240
|
+
latitude_delta: 0.1,
|
|
241
|
+
longitude_delta: 0.1,
|
|
242
|
+
is_favorite: false,
|
|
243
|
+
},
|
|
244
|
+
user: {
|
|
245
|
+
id: '',
|
|
246
|
+
name: '',
|
|
247
|
+
created_at: '0001-01-01T00:00:00Z',
|
|
248
|
+
username: '',
|
|
249
|
+
avatar: '',
|
|
250
|
+
|
|
251
|
+
email: '',
|
|
252
|
+
password: '',
|
|
253
|
+
properties: null,
|
|
254
|
+
bookings: null,
|
|
255
|
+
},
|
|
256
|
+
payment_intent_id: 'pi_3QDPAKSFlPLyedhO0GVkJEwt',
|
|
257
|
+
payment_status: 'succeeded',
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
id: 'booking_c4dc9930-610c-414e-acbf-76208cf81d9c',
|
|
261
|
+
created_at: '2024-10-25T12:46:44.738078Z',
|
|
262
|
+
updated_at: '2024-10-25T12:47:30.357405Z',
|
|
263
|
+
deleted_at: null,
|
|
264
|
+
property_id: 'prop_543ce3c0-96c5-4031-87a4-3dee73c7cf82',
|
|
265
|
+
user_id: 'user_71ad1974-7e42-4f4a-9726-cd97d8ce35dd',
|
|
266
|
+
check_in: '2025-09-05T05:30:00Z',
|
|
267
|
+
check_out: '2025-09-06T05:30:00Z',
|
|
268
|
+
total_price: 222,
|
|
269
|
+
status: 'pending_payment',
|
|
270
|
+
guest_count: 1,
|
|
271
|
+
special_requests: '',
|
|
272
|
+
property: {
|
|
273
|
+
id: 'prop_543ce3c0-96c5-4031-87a4-3dee73c7cf82',
|
|
274
|
+
name: 'Beachfront Cottage',
|
|
275
|
+
description:
|
|
276
|
+
'Come to Playa Coronado and enjoy time with your family or a group of friends in this private home within an enclosed beach community! The house has a modern design.',
|
|
277
|
+
price_per_night: 111,
|
|
278
|
+
owner_id: 'user_c71adf0f-3fbd-4b37-8c4c-5b926d82666b',
|
|
279
|
+
created_at: '2024-10-12T10:38:18.678493Z',
|
|
280
|
+
images: [
|
|
281
|
+
'https://res.cloudinary.com/dbspz5tmg/image/upload/v1738301879/holidia/one_whhjrl.webp',
|
|
282
|
+
'https://res.cloudinary.com/dbspz5tmg/image/upload/v1738301878/holidia/two_fj39xa.webp',
|
|
283
|
+
],
|
|
284
|
+
address: '123 Beach Road',
|
|
285
|
+
city: 'paris',
|
|
286
|
+
country: 'USA',
|
|
287
|
+
amenities: 'WiFi, Kitchen, Free parking',
|
|
288
|
+
capacity: 4,
|
|
289
|
+
longitude: -118.6923,
|
|
290
|
+
latitude: 34.0381,
|
|
291
|
+
latitude_delta: 0.0421,
|
|
292
|
+
longitude_delta: 0.0922,
|
|
293
|
+
is_favorite: false,
|
|
294
|
+
},
|
|
295
|
+
user: {
|
|
296
|
+
id: '',
|
|
297
|
+
name: '',
|
|
298
|
+
created_at: '0001-01-01T00:00:00Z',
|
|
299
|
+
username: '',
|
|
300
|
+
email: '',
|
|
301
|
+
avatar: '',
|
|
302
|
+
|
|
303
|
+
password: '',
|
|
304
|
+
properties: null,
|
|
305
|
+
bookings: null,
|
|
306
|
+
},
|
|
307
|
+
payment_intent_id: 'pi_3QDmueSFlPLyedhO08ZznlwP',
|
|
308
|
+
payment_status: 'succeeded',
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
id: 'booking_6bbf1e7c-37f8-4308-b72f-75de325fe45f',
|
|
312
|
+
created_at: '2024-10-30T13:41:51.125816Z',
|
|
313
|
+
updated_at: '2024-10-30T13:41:51.125816Z',
|
|
314
|
+
deleted_at: null,
|
|
315
|
+
property_id: 'prop_ced60718-03e0-48fc-b8f3-98785645cd1f',
|
|
316
|
+
user_id: 'user_71ad1974-7e42-4f4a-9726-cd97d8ce35dd',
|
|
317
|
+
check_in: '2025-07-10T05:30:00Z',
|
|
318
|
+
check_out: '2025-07-11T05:30:00Z',
|
|
319
|
+
total_price: 100,
|
|
320
|
+
status: 'pending_payment',
|
|
321
|
+
guest_count: 1,
|
|
322
|
+
special_requests: '',
|
|
323
|
+
property: {
|
|
324
|
+
id: 'prop_ced60718-03e0-48fc-b8f3-98785645cd1f',
|
|
325
|
+
name: 'Night house',
|
|
326
|
+
description: 'A beautiful house',
|
|
327
|
+
price_per_night: 50,
|
|
328
|
+
owner_id: 'user_c71adf0f-3fbd-4b37-8c4c-5b926d82666b',
|
|
329
|
+
created_at: '2024-10-30T07:25:44.687903Z',
|
|
330
|
+
images: [
|
|
331
|
+
'https://images.pexels.com/photos/7031414/pexels-photo-7031414.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
332
|
+
'https://images.pexels.com/photos/7031413/pexels-photo-7031413.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
333
|
+
],
|
|
334
|
+
address: '123 Beach Road',
|
|
335
|
+
city: 'Paris',
|
|
336
|
+
country: 'France',
|
|
337
|
+
amenities: 'Pool, Kitchen, Free parking,WiFi',
|
|
338
|
+
capacity: 1,
|
|
339
|
+
longitude: -120.6923,
|
|
340
|
+
latitude: 30.0381,
|
|
341
|
+
latitude_delta: 0.0421,
|
|
342
|
+
longitude_delta: 0.0922,
|
|
343
|
+
is_favorite: false,
|
|
344
|
+
},
|
|
345
|
+
user: {
|
|
346
|
+
id: '',
|
|
347
|
+
name: '',
|
|
348
|
+
created_at: '0001-01-01T00:00:00Z',
|
|
349
|
+
username: '',
|
|
350
|
+
email: '',
|
|
351
|
+
avatar: '',
|
|
352
|
+
|
|
353
|
+
password: '',
|
|
354
|
+
properties: null,
|
|
355
|
+
bookings: null,
|
|
356
|
+
},
|
|
357
|
+
payment_intent_id: 'pi_3QFc9iSFlPLyedhO0XaRitT9',
|
|
358
|
+
payment_status: 'pending',
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
id: 'booking_0caaba4d-6b36-47fc-addb-c3d70ce02483',
|
|
362
|
+
created_at: '2024-10-31T10:28:01.446917Z',
|
|
363
|
+
updated_at: '2024-10-31T10:28:01.446917Z',
|
|
364
|
+
deleted_at: null,
|
|
365
|
+
property_id: 'prop_543ce3c0-96c5-4031-87a4-3dee73c7cf82',
|
|
366
|
+
user_id: 'user_71ad1974-7e42-4f4a-9726-cd97d8ce35dd',
|
|
367
|
+
check_in: '2025-11-07T05:30:00Z',
|
|
368
|
+
check_out: '2025-11-08T05:30:00Z',
|
|
369
|
+
total_price: 222,
|
|
370
|
+
status: 'pending_payment',
|
|
371
|
+
guest_count: 1,
|
|
372
|
+
special_requests: '',
|
|
373
|
+
property: {
|
|
374
|
+
id: 'prop_543ce3c0-96c5-4031-87a4-3dee73c7cf82',
|
|
375
|
+
name: 'Beachfront Cottage',
|
|
376
|
+
description:
|
|
377
|
+
'Come to Playa Coronado and enjoy time with your family or a group of friends in this private home within an enclosed beach community! The house has a modern design.',
|
|
378
|
+
price_per_night: 111,
|
|
379
|
+
owner_id: 'user_c71adf0f-3fbd-4b37-8c4c-5b926d82666b',
|
|
380
|
+
created_at: '2024-10-12T10:38:18.678493Z',
|
|
381
|
+
images: [
|
|
382
|
+
'https://res.cloudinary.com/dbspz5tmg/image/upload/v1738301879/holidia/one_whhjrl.webp',
|
|
383
|
+
'https://res.cloudinary.com/dbspz5tmg/image/upload/v1738301878/holidia/two_fj39xa.webp',
|
|
384
|
+
],
|
|
385
|
+
address: '123 Beach Road',
|
|
386
|
+
city: 'paris',
|
|
387
|
+
country: 'USA',
|
|
388
|
+
amenities: 'WiFi, Kitchen, Free parking',
|
|
389
|
+
capacity: 4,
|
|
390
|
+
longitude: -118.6923,
|
|
391
|
+
latitude: 34.0381,
|
|
392
|
+
latitude_delta: 0.0421,
|
|
393
|
+
longitude_delta: 0.0922,
|
|
394
|
+
is_favorite: false,
|
|
395
|
+
},
|
|
396
|
+
user: {
|
|
397
|
+
id: '',
|
|
398
|
+
name: '',
|
|
399
|
+
created_at: '0001-01-01T00:00:00Z',
|
|
400
|
+
username: '',
|
|
401
|
+
email: '',
|
|
402
|
+
avatar: '',
|
|
403
|
+
|
|
404
|
+
password: '',
|
|
405
|
+
properties: null,
|
|
406
|
+
bookings: null,
|
|
407
|
+
},
|
|
408
|
+
payment_intent_id: 'pi_3QFvbgSFlPLyedhO19U3DbJK',
|
|
409
|
+
payment_status: 'pending',
|
|
410
|
+
},
|
|
411
|
+
];
|
|
412
|
+
|
|
413
|
+
export const FAVORITES = [
|
|
414
|
+
{
|
|
415
|
+
id: 'prop_543ce3c0-96c5-4031-87a4-3dee73c7cf82',
|
|
416
|
+
name: 'Beachfront Cottage',
|
|
417
|
+
description:
|
|
418
|
+
'Come to Playa Coronado and enjoy time with your family or a group of friends in this private home within an enclosed beach community! The house has a modern design.',
|
|
419
|
+
price_per_night: 111,
|
|
420
|
+
owner_id: 'user_c71adf0f-3fbd-4b37-8c4c-5b926d82666b',
|
|
421
|
+
created_at: '2024-10-12T10:38:18.678493Z',
|
|
422
|
+
images: [
|
|
423
|
+
'https://res.cloudinary.com/dbspz5tmg/image/upload/v1738301879/holidia/one_whhjrl.webp',
|
|
424
|
+
'https://res.cloudinary.com/dbspz5tmg/image/upload/v1738301878/holidia/two_fj39xa.webp',
|
|
425
|
+
],
|
|
426
|
+
address: '123 Beach Road',
|
|
427
|
+
city: 'paris',
|
|
428
|
+
country: 'USA',
|
|
429
|
+
amenities: 'WiFi, Kitchen, Free parking',
|
|
430
|
+
capacity: 4,
|
|
431
|
+
longitude: -118.6923,
|
|
432
|
+
latitude: 34.0381,
|
|
433
|
+
latitude_delta: 0.0421,
|
|
434
|
+
longitude_delta: 0.0922,
|
|
435
|
+
is_favorite: false,
|
|
436
|
+
widthRatio: 1,
|
|
437
|
+
heightRatio: 1.4,
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
id: 'prop_a65e920c-acec-4de6-813b-fd37748613cf',
|
|
441
|
+
name: 'Palm house',
|
|
442
|
+
description: 'A beautiful house',
|
|
443
|
+
price_per_night: 666,
|
|
444
|
+
owner_id: 'user_c71adf0f-3fbd-4b37-8c4c-5b926d82666b',
|
|
445
|
+
created_at: '2024-10-30T04:29:57.036778Z',
|
|
446
|
+
images: [
|
|
447
|
+
'https://images.pexels.com/photos/338504/pexels-photo-338504.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
448
|
+
'https://images.pexels.com/photos/1134176/pexels-photo-1134176.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
449
|
+
],
|
|
450
|
+
address: '123 Beach Road',
|
|
451
|
+
city: 'Paris',
|
|
452
|
+
country: 'France',
|
|
453
|
+
amenities: 'Pool, Kitchen, Free parking,WiFi',
|
|
454
|
+
capacity: 1,
|
|
455
|
+
longitude: -120.6923,
|
|
456
|
+
latitude: 30.0381,
|
|
457
|
+
latitude_delta: 0.0421,
|
|
458
|
+
longitude_delta: 0.0922,
|
|
459
|
+
is_favorite: false,
|
|
460
|
+
widthRatio: 1,
|
|
461
|
+
heightRatio: 1,
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
id: 'prop_3651f0dd-46c8-4316-af4f-180f859af610',
|
|
465
|
+
name: 'Night house',
|
|
466
|
+
description: 'A beautiful house',
|
|
467
|
+
price_per_night: 50,
|
|
468
|
+
owner_id: 'user_c71adf0f-3fbd-4b37-8c4c-5b926d82666b',
|
|
469
|
+
created_at: '2024-10-30T04:31:43.103814Z',
|
|
470
|
+
images: [
|
|
471
|
+
'https://images.pexels.com/photos/2682770/pexels-photo-2682770.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
472
|
+
'https://images.pexels.com/photos/2745254/pexels-photo-2745254.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
473
|
+
],
|
|
474
|
+
address: '123 Beach Road',
|
|
475
|
+
city: 'Paris',
|
|
476
|
+
country: 'France',
|
|
477
|
+
amenities: 'Pool, Kitchen, Free parking,WiFi',
|
|
478
|
+
capacity: 1,
|
|
479
|
+
longitude: -120.6923,
|
|
480
|
+
latitude: 30.0381,
|
|
481
|
+
latitude_delta: 0.0421,
|
|
482
|
+
longitude_delta: 0.0922,
|
|
483
|
+
is_favorite: false,
|
|
484
|
+
widthRatio: 1,
|
|
485
|
+
heightRatio: 1.2,
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
id: 'prop_9fe72fdb-2160-4a46-8f48-c593731beb73',
|
|
489
|
+
name: 'Beachfront Cottage',
|
|
490
|
+
description: 'A beautiful cottage with ocean views',
|
|
491
|
+
price_per_night: 200,
|
|
492
|
+
owner_id: 'user_c71adf0f-3fbd-4b37-8c4c-5b926d82666b',
|
|
493
|
+
created_at: '2024-10-12T10:36:07.456616Z',
|
|
494
|
+
images: [
|
|
495
|
+
'https://images.wallpaperscraft.com/image/single/city_sea_cliff_138673_3840x2160.jpg',
|
|
496
|
+
'https://images.pexels.com/photos/3225528/pexels-photo-3225528.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
497
|
+
],
|
|
498
|
+
address: '123 Beach Road',
|
|
499
|
+
city: 'Malibu',
|
|
500
|
+
country: 'USA',
|
|
501
|
+
amenities: 'WiFi, Kitchen, Free parking',
|
|
502
|
+
capacity: 4,
|
|
503
|
+
longitude: -106.8175,
|
|
504
|
+
latitude: 39.1911,
|
|
505
|
+
latitude_delta: 0.1,
|
|
506
|
+
longitude_delta: 0.1,
|
|
507
|
+
is_favorite: false,
|
|
508
|
+
widthRatio: 1,
|
|
509
|
+
heightRatio: 1.5,
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
id: 'prop_5b77e3c0-c948-434d-8c85-85a6ecbeaad2',
|
|
513
|
+
name: 'Night house',
|
|
514
|
+
description: 'A beautiful house',
|
|
515
|
+
price_per_night: 50,
|
|
516
|
+
owner_id: 'user_c71adf0f-3fbd-4b37-8c4c-5b926d82666b',
|
|
517
|
+
created_at: '2024-10-30T04:32:28.550667Z',
|
|
518
|
+
images: [
|
|
519
|
+
'https://images.pexels.com/photos/11669971/pexels-photo-11669971.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
520
|
+
'https://images.pexels.com/photos/1552208/pexels-photo-1552208.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
521
|
+
],
|
|
522
|
+
address: '123 Beach Road',
|
|
523
|
+
city: 'Paris',
|
|
524
|
+
country: 'France',
|
|
525
|
+
amenities: 'Pool, Kitchen, Free parking,WiFi',
|
|
526
|
+
capacity: 1,
|
|
527
|
+
longitude: -120.6923,
|
|
528
|
+
latitude: 30.0381,
|
|
529
|
+
latitude_delta: 0.0421,
|
|
530
|
+
longitude_delta: 0.0922,
|
|
531
|
+
is_favorite: false,
|
|
532
|
+
widthRatio: 1,
|
|
533
|
+
heightRatio: 1.5,
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
id: 'prop_ced60718-03e0-48fc-b8f3-98785645cd1f',
|
|
537
|
+
name: 'Night house',
|
|
538
|
+
description: 'A beautiful house',
|
|
539
|
+
price_per_night: 50,
|
|
540
|
+
owner_id: 'user_c71adf0f-3fbd-4b37-8c4c-5b926d82666b',
|
|
541
|
+
created_at: '2024-10-30T07:25:44.687903Z',
|
|
542
|
+
images: [
|
|
543
|
+
'https://images.pexels.com/photos/7031414/pexels-photo-7031414.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
544
|
+
'https://images.pexels.com/photos/7031413/pexels-photo-7031413.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2',
|
|
545
|
+
],
|
|
546
|
+
address: '123 Beach Road',
|
|
547
|
+
city: 'Paris',
|
|
548
|
+
country: 'France',
|
|
549
|
+
amenities: 'Pool, Kitchen, Free parking,WiFi',
|
|
550
|
+
capacity: 1,
|
|
551
|
+
longitude: -120.6923,
|
|
552
|
+
latitude: 30.0381,
|
|
553
|
+
latitude_delta: 0.0421,
|
|
554
|
+
longitude_delta: 0.0922,
|
|
555
|
+
is_favorite: false,
|
|
556
|
+
widthRatio: 1,
|
|
557
|
+
heightRatio: 1.5,
|
|
558
|
+
},
|
|
559
|
+
];
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
interface Property {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
price_per_night: number;
|
|
6
|
+
owner_id: string;
|
|
7
|
+
created_at: string;
|
|
8
|
+
images: string[];
|
|
9
|
+
address: string;
|
|
10
|
+
city: string;
|
|
11
|
+
country: string;
|
|
12
|
+
amenities: string;
|
|
13
|
+
capacity: number;
|
|
14
|
+
longitude: number;
|
|
15
|
+
latitude: number;
|
|
16
|
+
latitude_delta: number;
|
|
17
|
+
longitude_delta: number;
|
|
18
|
+
is_favorite: boolean;
|
|
19
|
+
rating?: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface User {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
created_at: string;
|
|
26
|
+
username: string;
|
|
27
|
+
email: string;
|
|
28
|
+
avatar: string;
|
|
29
|
+
properties: Property[] | null;
|
|
30
|
+
bookings: Booking[] | null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface Booking {
|
|
34
|
+
id: string;
|
|
35
|
+
created_at: string;
|
|
36
|
+
updated_at: string;
|
|
37
|
+
deleted_at: string | null;
|
|
38
|
+
property_id: string;
|
|
39
|
+
user_id: string;
|
|
40
|
+
check_in: string;
|
|
41
|
+
check_out: string;
|
|
42
|
+
total_price: number;
|
|
43
|
+
status: 'pending_payment' | 'succeeded' | 'failed' | string;
|
|
44
|
+
guest_count: number;
|
|
45
|
+
special_requests: string;
|
|
46
|
+
property: Property;
|
|
47
|
+
user: User;
|
|
48
|
+
payment_intent_id: string;
|
|
49
|
+
payment_status: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
interface ICartItem {
|
|
53
|
+
id: string;
|
|
54
|
+
name: string;
|
|
55
|
+
price_per_night: number;
|
|
56
|
+
quantity: number;
|
|
57
|
+
product: string;
|
|
58
|
+
startDate: string | Date;
|
|
59
|
+
endDate: string | Date;
|
|
60
|
+
days: number;
|
|
61
|
+
image: string;
|
|
62
|
+
property?: Property;
|
|
63
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cli": {
|
|
3
|
+
"version": ">= 10.1.1"
|
|
4
|
+
},
|
|
5
|
+
"build": {
|
|
6
|
+
"development": {
|
|
7
|
+
"developmentClient": true,
|
|
8
|
+
"distribution": "internal"
|
|
9
|
+
},
|
|
10
|
+
"preview": {
|
|
11
|
+
"distribution": "internal"
|
|
12
|
+
},
|
|
13
|
+
"production": {}
|
|
14
|
+
},
|
|
15
|
+
"submit": {
|
|
16
|
+
"production": {}
|
|
17
|
+
}
|
|
18
|
+
}
|