refactor: rewrite and expand mock data into modular files

This commit is contained in:
zetaloop
2026-02-21 00:24:03 +08:00
parent 44669d5606
commit 7ed7bad975
47 changed files with 1891 additions and 767 deletions
+74
View File
@@ -0,0 +1,74 @@
import type { Favorite } from "../types"
export const mockFavorites: Favorite[] = [
{
id: "fav1",
userId: "u1",
targetType: "player",
targetId: "u5",
createdAt: "2025-01-06T10:30:00Z",
},
{
id: "fav2",
userId: "u1",
targetType: "shop",
targetId: "shop1",
createdAt: "2025-01-10T14:00:00Z",
},
{
id: "fav3",
userId: "u1",
targetType: "player",
targetId: "u7",
createdAt: "2025-01-16T20:00:00Z",
},
{
id: "fav4",
userId: "u2",
targetType: "player",
targetId: "u6",
createdAt: "2025-01-09T18:00:00Z",
},
{
id: "fav5",
userId: "u2",
targetType: "shop",
targetId: "shop2",
createdAt: "2025-01-12T09:00:00Z",
},
{
id: "fav6",
userId: "u3",
targetType: "player",
targetId: "u8",
createdAt: "2025-01-12T01:00:00Z",
},
{
id: "fav7",
userId: "u4",
targetType: "player",
targetId: "u7",
createdAt: "2025-01-15T22:30:00Z",
},
{
id: "fav8",
userId: "u4",
targetType: "shop",
targetId: "shop1",
createdAt: "2025-01-20T11:00:00Z",
},
{
id: "fav9",
userId: "u1",
targetType: "player",
targetId: "u9",
createdAt: "2025-01-18T23:30:00Z",
},
{
id: "fav10",
userId: "u3",
targetType: "shop",
targetId: "shop3",
createdAt: "2025-02-09T15:00:00Z",
},
]