heartbeat-monitor/node_modules/next/dist/build/babel/plugins/amp-attributes.js
Matt Bruce bed1169443 Initial commit: Heartbeat Monitor dashboard
- 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
2026-02-18 11:16:01 -06:00

36 lines
1.0 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return AmpAttributePatcher;
}
});
function AmpAttributePatcher() {
return {
visitor: {
JSXOpeningElement (path) {
const openingElement = path.node;
const { name, attributes } = openingElement;
if (!(name && name.type === 'JSXIdentifier')) {
return;
}
if (!name.name.startsWith('amp-')) {
return;
}
for (const attribute of attributes){
if (attribute.type !== 'JSXAttribute') {
continue;
}
if (attribute.name.name === 'className') {
attribute.name.name = 'class';
}
}
}
}
};
}
//# sourceMappingURL=amp-attributes.js.map