Add Oudelaa dashboard API integration
فشلت بعض الفحوصات
Deploy To Ghaymah / deploy (push) Has been cancelled
فشلت بعض الفحوصات
Deploy To Ghaymah / deploy (push) Has been cancelled
هذا الالتزام موجود في:
34
oudelaa_dashboard/lib/mock/analytics.ts
Normal file
34
oudelaa_dashboard/lib/mock/analytics.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
import type { Insight, SettingsNotifications, SettingsProfile } from "@/types";
|
||||
|
||||
export const retentionCurve: Insight[] = [
|
||||
{ label: "الأسبوع 1", value: 100 },
|
||||
{ label: "الأسبوع 2", value: 84 },
|
||||
{ label: "الأسبوع 3", value: 73 },
|
||||
{ label: "الأسبوع 4", value: 64 },
|
||||
{ label: "الأسبوع 5", value: 58 },
|
||||
{ label: "الأسبوع 6", value: 53 },
|
||||
];
|
||||
|
||||
export const cityPerformance: Insight[] = [
|
||||
{ label: "الرياض", value: 34 },
|
||||
{ label: "جدة", value: 22 },
|
||||
{ label: "الدمام", value: 15 },
|
||||
{ label: "المدينة", value: 11 },
|
||||
{ label: "مكة", value: 9 },
|
||||
{ label: "أخرى", value: 9 },
|
||||
];
|
||||
|
||||
export const profileDefaults: SettingsProfile = {
|
||||
businessName: "Oudelaa Music Experience",
|
||||
supportEmail: "support@oudelaa.com",
|
||||
supportPhone: "+966 50 111 2233",
|
||||
city: "Riyadh",
|
||||
currency: "SAR",
|
||||
};
|
||||
|
||||
export const notificationDefaults: SettingsNotifications = {
|
||||
orders: true,
|
||||
newUsers: true,
|
||||
payouts: false,
|
||||
weeklyDigest: true,
|
||||
};
|
||||
9
oudelaa_dashboard/lib/mock/content.ts
Normal file
9
oudelaa_dashboard/lib/mock/content.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { ContentItem } from "@/types";
|
||||
|
||||
export const contentLibrary: ContentItem[] = [
|
||||
{ id: "CNT-201", title: "موال السهرة", artist: "فرقة وتر الحجاز", genre: "طرب", duration: "06:12", status: "published", createdAt: "2026-03-10", listens: 12890 },
|
||||
{ id: "CNT-202", title: "ليالي العود", artist: "نواف الدوسري", genre: "Instrumental", duration: "04:48", status: "review", createdAt: "2026-03-26", listens: 7420 },
|
||||
{ id: "CNT-203", title: "نبض المرسى", artist: "سدن", genre: "Fusion", duration: "03:55", status: "draft", createdAt: "2026-04-01", listens: 0 },
|
||||
{ id: "CNT-204", title: "رحلة مقام", artist: "أمجاد", genre: "Classical", duration: "05:24", status: "published", createdAt: "2026-02-15", listens: 15430 },
|
||||
{ id: "CNT-205", title: "نخل الجنوب", artist: "علي الشهري", genre: "Folk", duration: "04:02", status: "published", createdAt: "2026-03-29", listens: 5120 },
|
||||
];
|
||||
36
oudelaa_dashboard/lib/mock/dashboard.ts
Normal file
36
oudelaa_dashboard/lib/mock/dashboard.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import type { ChannelPoint, RevenuePoint, StatMetric } from "@/types";
|
||||
|
||||
export const dashboardStats: StatMetric[] = [
|
||||
{ id: "gmv", label: "إجمالي الإيراد", value: "1,284,920 ر.س", delta: "+18.6%", trend: "up", note: "مقارنة بـ مارس" },
|
||||
{ id: "orders", label: "الطلبات المكتملة", value: "4,912", delta: "+11.2%", trend: "up", note: "آخر 30 يوم" },
|
||||
{ id: "aov", label: "متوسط قيمة الطلب", value: "261 ر.س", delta: "-2.4%", trend: "down", note: "يحتاج تحسين سلة الشراء" },
|
||||
{ id: "retention", label: "الاحتفاظ بالعملاء", value: "82.1%", delta: "+3.1%", trend: "up", note: "العملاء العائدون" },
|
||||
];
|
||||
|
||||
export const revenueSeries: RevenuePoint[] = [
|
||||
{ month: "يناير", revenue: 780000, orders: 2900 },
|
||||
{ month: "فبراير", revenue: 842000, orders: 3180 },
|
||||
{ month: "مارس", revenue: 906000, orders: 3375 },
|
||||
{ month: "أبريل", revenue: 1002000, orders: 3710 },
|
||||
{ month: "مايو", revenue: 1093000, orders: 3980 },
|
||||
{ month: "يونيو", revenue: 1160000, orders: 4250 },
|
||||
{ month: "يوليو", revenue: 1284920, orders: 4912 },
|
||||
];
|
||||
|
||||
export const channelShare: ChannelPoint[] = [
|
||||
{ name: "التطبيق", value: 46 },
|
||||
{ name: "الموقع", value: 33 },
|
||||
{ name: "واتساب", value: 14 },
|
||||
{ name: "شركاء", value: 7 },
|
||||
];
|
||||
|
||||
export const heatmapHours = [
|
||||
{ slot: "09:00", score: 20 },
|
||||
{ slot: "11:00", score: 42 },
|
||||
{ slot: "13:00", score: 54 },
|
||||
{ slot: "15:00", score: 79 },
|
||||
{ slot: "17:00", score: 92 },
|
||||
{ slot: "19:00", score: 68 },
|
||||
{ slot: "21:00", score: 49 },
|
||||
{ slot: "23:00", score: 30 },
|
||||
];
|
||||
6
oudelaa_dashboard/lib/mock/index.ts
Normal file
6
oudelaa_dashboard/lib/mock/index.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export * from "./dashboard";
|
||||
export * from "./users";
|
||||
export * from "./content";
|
||||
export * from "./orders";
|
||||
export * from "./messages";
|
||||
export * from "./analytics";
|
||||
8
oudelaa_dashboard/lib/mock/messages.ts
Normal file
8
oudelaa_dashboard/lib/mock/messages.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { MessageThread } from "@/types";
|
||||
|
||||
export const messageThreads: MessageThread[] = [
|
||||
{ id: "MSG-881", customer: "رؤى السالم", subject: "تحديث الاشتراك", state: "unread", lastMessageAt: "2026-04-06 11:03", channel: "WhatsApp", preview: "أحتاج ترقية من Silver إلى Gold مع حفظ المكتبة الحالية.", priority: "high" },
|
||||
{ id: "MSG-882", customer: "حسين العمري", subject: "مشكلة في الدفع", state: "open", lastMessageAt: "2026-04-06 09:54", channel: "Email", preview: "تم خصم المبلغ ولم يظهر الطلب في لوحة الطلبات.", priority: "high" },
|
||||
{ id: "MSG-883", customer: "سارة البقمي", subject: "طلب تعاون فني", state: "open", lastMessageAt: "2026-04-05 23:15", channel: "In-App", preview: "هل يمكن إدراج أعمالي ضمن قسم المواهب الجديدة؟", priority: "normal" },
|
||||
{ id: "MSG-884", customer: "عبدالاله الدوسري", subject: "استفسار باقة Maestro", state: "closed", lastMessageAt: "2026-04-04 20:01", channel: "Email", preview: "تم الرد وإغلاق التذكرة مع مشاركة العرض السعري.", priority: "low" },
|
||||
];
|
||||
10
oudelaa_dashboard/lib/mock/orders.ts
Normal file
10
oudelaa_dashboard/lib/mock/orders.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Order } from "@/types";
|
||||
|
||||
export const orders: Order[] = [
|
||||
{ id: "ORD-7781", customer: "مشاعل الكندري", product: "باقة Oudelaa Gold", amount: 420, paymentMethod: "Card", status: "paid", createdAt: "2026-04-06 10:42", city: "الرياض" },
|
||||
{ id: "ORD-7780", customer: "فهد العلي", product: "جلسة Maestro Live", amount: 960, paymentMethod: "Apple Pay", status: "processing", createdAt: "2026-04-06 09:27", city: "جدة" },
|
||||
{ id: "ORD-7779", customer: "أروى الحازمي", product: "باقة Silver", amount: 190, paymentMethod: "Wallet", status: "paid", createdAt: "2026-04-06 08:15", city: "الخبر" },
|
||||
{ id: "ORD-7778", customer: "محمد اليامي", product: "إهداء مقطوعة", amount: 300, paymentMethod: "Card", status: "refunded", createdAt: "2026-04-05 22:50", city: "أبها" },
|
||||
{ id: "ORD-7777", customer: "غلا السبيعي", product: "اشتراك سنوي", amount: 1880, paymentMethod: "Card", status: "failed", createdAt: "2026-04-05 20:33", city: "الدمام" },
|
||||
{ id: "ORD-7776", customer: "بدر الجهني", product: "باقة Gold", amount: 520, paymentMethod: "Apple Pay", status: "processing", createdAt: "2026-04-05 18:02", city: "الرياض" },
|
||||
];
|
||||
10
oudelaa_dashboard/lib/mock/users.ts
Normal file
10
oudelaa_dashboard/lib/mock/users.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { User } from "@/types";
|
||||
|
||||
export const users: User[] = [
|
||||
{ id: "USR-1048", fullName: "ريم الحربي", email: "reem@oudelaa.sa", plan: "Maestro", status: "active", joinedAt: "2026-02-13", totalSpent: 12680, city: "الرياض" },
|
||||
{ id: "USR-1049", fullName: "سلمان العتيبي", email: "salman@oudelaa.sa", plan: "Gold", status: "active", joinedAt: "2026-01-29", totalSpent: 7480, city: "جدة" },
|
||||
{ id: "USR-1050", fullName: "نور البلوشي", email: "nour@oudelaa.sa", plan: "Silver", status: "pending", joinedAt: "2026-03-03", totalSpent: 980, city: "الدمام" },
|
||||
{ id: "USR-1051", fullName: "عبدالرحمن الزهراني", email: "rahman@oudelaa.sa", plan: "Gold", status: "suspended", joinedAt: "2025-11-17", totalSpent: 5320, city: "الخبر" },
|
||||
{ id: "USR-1052", fullName: "لولوة المطيري", email: "lolwah@oudelaa.sa", plan: "Maestro", status: "active", joinedAt: "2026-03-19", totalSpent: 15400, city: "المدينة" },
|
||||
{ id: "USR-1053", fullName: "زياد القحطاني", email: "ziad@oudelaa.sa", plan: "Silver", status: "active", joinedAt: "2026-02-22", totalSpent: 2280, city: "الطائف" },
|
||||
];
|
||||
المرجع في مشكلة جديدة
حظر مستخدم