- 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
12 lines
538 B
JavaScript
12 lines
538 B
JavaScript
import { streamToString } from '../stream-utils/node-web-streams-helper';
|
|
import { AppRenderSpan } from '../lib/trace/constants';
|
|
import { getTracer } from '../lib/trace/tracer';
|
|
export async function renderToString({ ReactDOMServer, element }) {
|
|
return getTracer().trace(AppRenderSpan.renderToString, async ()=>{
|
|
const renderStream = await ReactDOMServer.renderToReadableStream(element);
|
|
await renderStream.allReady;
|
|
return streamToString(renderStream);
|
|
});
|
|
}
|
|
|
|
//# sourceMappingURL=render-to-string.js.map
|