- 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
23 lines
494 B
JavaScript
23 lines
494 B
JavaScript
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default function getJSXPragmaInfo(options) {
|
|
const [base, suffix] = splitPragma(options.jsxPragma || "React.createElement");
|
|
const [fragmentBase, fragmentSuffix] = splitPragma(options.jsxFragmentPragma || "React.Fragment");
|
|
return {base, suffix, fragmentBase, fragmentSuffix};
|
|
}
|
|
|
|
function splitPragma(pragma) {
|
|
let dotIndex = pragma.indexOf(".");
|
|
if (dotIndex === -1) {
|
|
dotIndex = pragma.length;
|
|
}
|
|
return [pragma.slice(0, dotIndex), pragma.slice(dotIndex)];
|
|
}
|