mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 12:32:10 +01:00
Improves the dashboard with additional metrics and visualizations to provide a more comprehensive overview of application usage and performance. Adds new charts, including: - Word cloud for category analysis - Geographic map for user distribution (simulated data) - Response time distribution chart Refactors existing components for improved clarity and reusability, including the introduction of a generic `MetricCard` component. Improves error handling and user feedback during data refresh and session loading. Adds recommended VSCode extensions for ESLint and Prettier.
9 lines
242 B
TypeScript
9 lines
242 B
TypeScript
export async function sendEmail(
|
|
to: string,
|
|
subject: string,
|
|
text: string
|
|
): Promise<void> {
|
|
// For demo: log to console. Use nodemailer/sendgrid/whatever in prod.
|
|
process.stdout.write(`[Email to ${to}]: ${subject}\n${text}\n`);
|
|
}
|