Skip to content

Commit f4ccb67

Browse files
committed
Update constants.ts
1 parent 7691329 commit f4ccb67

File tree

1 file changed

+63
-1
lines changed

1 file changed

+63
-1
lines changed

lib/constants.ts

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,5 +287,67 @@ export const MOCK_USERS: User[] = [
287287
favoriteCategories: ["pub", "bistro"],
288288
notifications: true
289289
}
290-
}
290+
},
291+
// --- MOCKUP USERS: 20 male, 40 female, random bar assignment ---
292+
...Array.from({ length: 20 }, (_, i) => ({
293+
id: `mock-male-${i+1}`,
294+
username: `ชาย${i+1}`,
295+
email: `male${i+1}@mock.com`,
296+
avatar: `https://randomuser.me/api/portraits/men/${i+10}.jpg`,
297+
bio: "หนุ่มสายชิลล์",
298+
note: "กำลังหาเพื่อนใหม่",
299+
favoriteBarIds: [],
300+
currentBarId: (Math.floor(Math.random()*MOCK_BARS.length)+1).toString(),
301+
joinDate: `2024-01-${(i%28+1).toString().padStart(2,'0')}T12:00:00Z`,
302+
preferences: {
303+
favoriteCategories: ["pub", "bar", "club", "bistro"].sort(() => 0.5 - Math.random()).slice(0,2),
304+
notifications: Math.random() > 0.5
305+
}
306+
})),
307+
...Array.from({ length: 40 }, (_, i) => ({
308+
id: `mock-female-${i+1}`,
309+
username: `หญิง${i+1}`,
310+
email: `female${i+1}@mock.com`,
311+
avatar: `https://randomuser.me/api/portraits/women/${i+10}.jpg`,
312+
bio: "สาวสายปาร์ตี้",
313+
note: "กำลังรอแก๊งค์",
314+
favoriteBarIds: [],
315+
currentBarId: (Math.floor(Math.random()*MOCK_BARS.length)+1).toString(),
316+
joinDate: `2024-02-${(i%28+1).toString().padStart(2,'0')}T12:00:00Z`,
317+
preferences: {
318+
favoriteCategories: ["pub", "bar", "club", "bistro"].sort(() => 0.5 - Math.random()).slice(0,2),
319+
notifications: Math.random() > 0.5
320+
}
321+
})),
322+
// --- MOCKUP USERS: 80 more, 40 male, 40 female, random bar assignment ---
323+
...Array.from({ length: 40 }, (_, i) => ({
324+
id: `mock-male-extra-${i+1}`,
325+
username: `ชาย${i+21}`,
326+
email: `male-extra${i+1}@mock.com`,
327+
avatar: `https://randomuser.me/api/portraits/men/${i+31}.jpg`,
328+
bio: "หนุ่มสายชิลล์",
329+
note: "กำลังหาเพื่อนใหม่",
330+
favoriteBarIds: [],
331+
currentBarId: (Math.floor(Math.random()*MOCK_BARS.length)+1).toString(),
332+
joinDate: `2024-03-${(i%28+1).toString().padStart(2,'0')}T12:00:00Z`,
333+
preferences: {
334+
favoriteCategories: ["pub", "bar", "club", "bistro"].sort(() => 0.5 - Math.random()).slice(0,2),
335+
notifications: Math.random() > 0.5
336+
}
337+
})),
338+
...Array.from({ length: 40 }, (_, i) => ({
339+
id: `mock-female-extra-${i+1}`,
340+
username: `หญิง${i+41}`,
341+
email: `female-extra${i+1}@mock.com`,
342+
avatar: `https://randomuser.me/api/portraits/women/${i+51}.jpg`,
343+
bio: "สาวสายปาร์ตี้",
344+
note: "กำลังรอแก๊งค์",
345+
favoriteBarIds: [],
346+
currentBarId: (Math.floor(Math.random()*MOCK_BARS.length)+1).toString(),
347+
joinDate: `2024-04-${(i%28+1).toString().padStart(2,'0')}T12:00:00Z`,
348+
preferences: {
349+
favoriteCategories: ["pub", "bar", "club", "bistro"].sort(() => 0.5 - Math.random()).slice(0,2),
350+
notifications: Math.random() > 0.5
351+
}
352+
}))
291353
];

0 commit comments

Comments
 (0)