Fix code quality violations and enhance ROUTE-EXISTS-01 rule
Implement JQHTML function cache ID system and fix bundle compilation Implement underscore prefix for system tables Fix JS syntax linter to support decorators and grant exception to Task system SPA: Update planning docs and wishlists with remaining features SPA: Document Navigation API abandonment and future enhancements Implement SPA browser integration with History API (Phase 1) Convert contacts view page to SPA action Convert clients pages to SPA actions and document conversion procedure SPA: Merge GET parameters and update documentation Implement SPA route URL generation in JavaScript and PHP Implement SPA bootstrap controller architecture Add SPA routing manual page (rsx:man spa) Add SPA routing documentation to CLAUDE.md Phase 4 Complete: Client-side SPA routing implementation Update get_routes() consumers for unified route structure Complete SPA Phase 3: PHP-side route type detection and is_spa flag Restore unified routes structure and Manifest_Query class Refactor route indexing and add SPA infrastructure Phase 3 Complete: SPA route registration in manifest Implement SPA Phase 2: Extract router code and test decorators Rename Jqhtml_Component to Component and complete SPA foundation setup 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
12
node_modules/@jqhtml/parser/dist/codegen.js
generated
vendored
12
node_modules/@jqhtml/parser/dist/codegen.js
generated
vendored
@@ -755,9 +755,8 @@ export class CodeGenerator {
|
||||
return output;
|
||||
}
|
||||
generate_if(node) {
|
||||
// Clean up condition - remove trailing colon or opening brace
|
||||
// Clean up condition - remove trailing opening brace
|
||||
let condition = node.condition.trim();
|
||||
condition = condition.replace(/:\s*$/, ''); // Remove trailing colon
|
||||
condition = condition.replace(/\s*{\s*$/, ''); // Remove trailing brace
|
||||
// Generate consequent body inline
|
||||
const consequent_parts = [];
|
||||
@@ -787,8 +786,7 @@ export class CodeGenerator {
|
||||
return code;
|
||||
}
|
||||
generate_for(node) {
|
||||
// Remove trailing colon from iterator if present
|
||||
const iterator = node.iterator.trim().replace(/:\s*$/, '');
|
||||
const iterator = node.iterator.trim();
|
||||
// Generate body inline
|
||||
const body_parts = [];
|
||||
for (const child of node.body) {
|
||||
@@ -1111,8 +1109,8 @@ export class CodeGenerator {
|
||||
// It's an identifier - output as JavaScript expression
|
||||
return `"${attrKey}": ${value.value}`;
|
||||
}
|
||||
// Check if it's an event handler binding (data-on-*)
|
||||
if (key.startsWith('data-on-')) {
|
||||
// Check if it's an event handler binding (data-__-on-*)
|
||||
if (key.startsWith('data-__-on-')) {
|
||||
// Handle based on whether value was quoted or not
|
||||
if (typeof value === 'object' && value !== null) {
|
||||
if (value.quoted) {
|
||||
@@ -1343,7 +1341,7 @@ export class CodeGenerator {
|
||||
for (const [name, component] of this.components) {
|
||||
code += `// Component: ${name}\n`;
|
||||
code += `jqhtml_components.set('${name}', {\n`;
|
||||
code += ` _jqhtml_version: '2.2.186',\n`; // Version will be replaced during build
|
||||
code += ` _jqhtml_version: '2.2.216',\n`; // Version will be replaced during build
|
||||
code += ` name: '${name}',\n`;
|
||||
code += ` tag: '${component.tagName}',\n`;
|
||||
code += ` defaultAttributes: ${this.serializeAttributeObject(component.defaultAttributes)},\n`;
|
||||
|
||||
Reference in New Issue
Block a user