- Full-featured monitoring dashboard for local web apps - Real-time status tracking with uptime percentages - Visual sparklines for status history - Add/Edit/Delete apps dynamically - Categories and color coding - Auto-refresh every 30 seconds - API endpoints for apps and status management
16 lines
491 B
JavaScript
16 lines
491 B
JavaScript
import { useEffect } from 'react';
|
|
import { onLCP, onFID, onCLS, onINP, onFCP, onTTFB } from 'next/dist/compiled/web-vitals';
|
|
export function useReportWebVitals(reportWebVitalsFn) {
|
|
useEffect(()=>{
|
|
onCLS(reportWebVitalsFn);
|
|
onFID(reportWebVitalsFn);
|
|
onLCP(reportWebVitalsFn);
|
|
onINP(reportWebVitalsFn);
|
|
onFCP(reportWebVitalsFn);
|
|
onTTFB(reportWebVitalsFn);
|
|
}, [
|
|
reportWebVitalsFn
|
|
]);
|
|
}
|
|
|
|
//# sourceMappingURL=web-vitals.js.map
|