Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | 23x 3x 2x 4x 2x 3x 2x 3x 2x 3x 2x 4x 3x 3x 2x | import {courses} from "@/mock/courses";
import {certifications} from "@/mock/certifications";
import {experiences} from "@/mock/experiences";
import {projects} from "@/mock/projects";
import {testimonials} from "@/mock/testimonials";
import {tradingPerformance} from "@/mock/trading";
import {links} from "@/mock/links";
/**
* Simulates network latency.
*
* @param ms - Milliseconds to wait before resolving.
* @returns Promise that resolves after the given delay.
*/
const delay = (ms) => new Promise(res => setTimeout(res, ms));
/**
* Fetches course data.
*
* Simulates a remote API call and resolves with the list of courses.
*
* @returns Promise resolving to the courses dataset.
*/
export async function getCourses() {
await delay(300);
return courses;
}
/**
* Fetches certification data.
*
* Simulates a remote API call and resolves with the list of certifications.
*
* @returns Promise resolving to the certifications dataset.
*/
export async function getCertifications() {
await delay(300);
return certifications;
}
/**
* Fetches professional experience data.
*
* Simulates a remote API call and resolves with the list of experiences.
*
* @returns Promise resolving to the experiences dataset.
*/
export async function getExperiences() {
await delay(300);
return experiences;
}
/**
* Fetches project data.
*
* Simulates a remote API call and resolves with the list of projects.
*
* @returns Promise resolving to the projects dataset.
*/
export async function getProjects() {
await delay(300);
return projects;
}
/**
* Fetches testimonial data.
*
* Simulates a remote API call and resolves with the list of testimonials.
*
* @returns Promise resolving to the testimonials dataset.
*/
export async function getTestimonials() {
await delay(300);
return testimonials;
}
/**
* Fetches trading performance metrics.
*
* Simulates a remote API call and resolves with trading performance data.
*
* @returns Promise resolving to the trading performance dataset.
*/
export async function getTradingPerformance() {
await delay(300);
return tradingPerformance;
}
/**
* Fetches social and external link data.
*
* Simulates a remote API call and resolves with the list of links.
*
* @returns Promise resolving to the links dataset.
*/
export async function getLinks() {
await delay(300);
return links;
}
|