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
+1 -1
View File
@@ -4,7 +4,7 @@ import { Badge } from "@/components/ui/badge"
import { Button } from "@/components/ui/button"
import { Card, CardContent } from "@/components/ui/card"
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
import { mockNotifications } from "@/lib/mock-data"
import { mockNotifications } from "@/lib/mock"
import type { Notification } from "@/lib/types"
const typeIcons: Record<Notification["type"], typeof Bell> = {
+1 -1
View File
@@ -11,7 +11,7 @@ import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"
import { Separator } from "@/components/ui/separator"
import { Switch } from "@/components/ui/switch"
import { Textarea } from "@/components/ui/textarea"
import { currentUser } from "@/lib/mock-data"
import { currentUser } from "@/lib/mock"
import type { UserRole } from "@/lib/types"
import { useAuthStore } from "@/store/auth"
+1 -1
View File
@@ -13,7 +13,7 @@ import { Button } from "@/components/ui/button"
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
import { Input } from "@/components/ui/input"
import { Separator } from "@/components/ui/separator"
import { mockTransactions, walletBalance } from "@/lib/mock-data"
import { mockTransactions, walletBalance } from "@/lib/mock"
import { useAuthStore } from "@/store/auth"
const typeLabels: Record<string, string> = {