- 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
14 lines
543 B
JavaScript
14 lines
543 B
JavaScript
import { createContext, useContext } from 'react';
|
|
export const HtmlContext = createContext(undefined);
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
HtmlContext.displayName = 'HtmlContext';
|
|
}
|
|
export function useHtmlContext() {
|
|
const context = useContext(HtmlContext);
|
|
if (!context) {
|
|
throw new Error("<Html> should not be imported outside of pages/_document.\n" + 'Read more: https://nextjs.org/docs/messages/no-document-import-in-page');
|
|
}
|
|
return context;
|
|
}
|
|
|
|
//# sourceMappingURL=html-context.shared-runtime.js.map
|