fix: bugs
This commit is contained in:
@@ -11,10 +11,16 @@ export const adminDashboard = {
|
||||
openTickets: 32,
|
||||
},
|
||||
stats: {
|
||||
activeUsers: 11_000,
|
||||
totalUsers: 11_540,
|
||||
coursesCreated: 6,
|
||||
coursesSold: 12,
|
||||
totalApplicants: 18,
|
||||
awaitingEvaluation: 1,
|
||||
term1Students: 2,
|
||||
term2Students: 0,
|
||||
term3Students: 1,
|
||||
graduates: 0,
|
||||
activeUsers: 11,
|
||||
totalUsers: 24,
|
||||
coursesCreated: 4,
|
||||
coursesSold: 3,
|
||||
},
|
||||
recentRegistrations: [
|
||||
{
|
||||
|
||||
@@ -2,4 +2,8 @@ import { register } from '@/services/mock/registry'
|
||||
import { endpoints } from '@/services/api/endpoints'
|
||||
import { adminDashboard } from '@/services/mock/fixtures/admin-dashboard'
|
||||
|
||||
register('GET', endpoints.getAdminDashboard, () => ({ data: adminDashboard }))
|
||||
register('GET', endpoints.getAdminDashboard, () => ({
|
||||
success: true,
|
||||
message: 'انجام شد.',
|
||||
data: adminDashboard,
|
||||
}))
|
||||
|
||||
@@ -2,4 +2,8 @@ import { register } from '@/services/mock/registry'
|
||||
import { endpoints } from '@/services/api/endpoints'
|
||||
import { counselorDashboard } from '@/services/mock/fixtures/counselor-dashboard'
|
||||
|
||||
register('GET', endpoints.getCounselorDashboard, () => ({ data: counselorDashboard }))
|
||||
register('GET', endpoints.getCounselorDashboard, () => ({
|
||||
success: true,
|
||||
message: 'انجام شد.',
|
||||
data: counselorDashboard,
|
||||
}))
|
||||
|
||||
@@ -2,4 +2,8 @@ import { register } from '@/services/mock/registry'
|
||||
import { endpoints } from '@/services/api/endpoints'
|
||||
import { missionaryDashboard } from '@/services/mock/fixtures/missionary-dashboard'
|
||||
|
||||
register('GET', endpoints.getMissionaryDashboard, () => ({ data: missionaryDashboard }))
|
||||
register('GET', endpoints.getMissionaryDashboard, () => ({
|
||||
success: true,
|
||||
message: 'انجام شد.',
|
||||
data: missionaryDashboard,
|
||||
}))
|
||||
|
||||
@@ -2,4 +2,8 @@ import { register } from '@/services/mock/registry'
|
||||
import { endpoints } from '@/services/api/endpoints'
|
||||
import { studentDashboard } from '@/services/mock/fixtures/student-dashboard'
|
||||
|
||||
register('GET', endpoints.getStudentDashboard, () => ({ data: studentDashboard }))
|
||||
register('GET', endpoints.getStudentDashboard, () => ({
|
||||
success: true,
|
||||
message: 'انجام شد.',
|
||||
data: studentDashboard,
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user