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:
root
2025-11-19 17:48:15 +00:00
parent 77b4d10af8
commit 9ebcc359ae
4360 changed files with 37751 additions and 18578 deletions

View File

@@ -10,9 +10,7 @@ Full syntax highlighting for all JQHTML constructs:
- **Component Definitions**: `<Define:ComponentName>`
- **Template Expressions**: `<%= expression %>`
- **Control Flow**: Both colon and brace styles
- `<% if (condition): %> ... <% endif; %>`
- `<% if (condition) { %> ... <% } %>`
- **Control Flow**: `<% if (condition) { %> ... <% } %>`
- **Slots**: `<#slotname>` with let:prop support
- **Data Bindings**: `:property="value"`
- **Event Handlers**: `@click="handler"`
@@ -25,7 +23,7 @@ Full syntax highlighting for all JQHTML constructs:
- **Auto-closing pairs**: Automatically close tags, brackets, and quotes
- **Bracket matching**: Highlight matching brackets and tags
- **Code folding**: Fold component definitions
- **Smart indentation**: Handles both colon and brace control flow styles
- **Smart indentation**: Handles control flow
- **Comment toggling**: Use standard VS Code shortcuts to toggle comments
### Code Snippets
@@ -36,11 +34,9 @@ Quick snippets for common patterns:
|--------|-------------|
| `define` | Component definition |
| `definecomp` | Component with structure |
| `if:` | If statement (colon style) |
| `ifelse:` | If-else (colon style) |
| `if{` | If statement (brace style) |
| `for:` | For loop (colon style) |
| `for{` | For loop (brace style) |
| `if` | If statement |
| `ifelse` | If-else |
| `for` | For loop |
| `exp` | Expression `<%= %>` |
| `$id` | Scoped ID attribute |
| `:prop` | Property binding |
@@ -87,13 +83,13 @@ All JQHTML syntax is highlighted with semantic colors:
<Define:UserCard>
<div class="user-card" $id="card">
<h2><%= this.data.name %></h2>
<% if (this.data.isAdmin): %>
<% if (this.data.isAdmin) { %>
<span class="admin">Admin</span>
<% endif; %>
<% } %>
<button @click="handleClick">Click Me</button>
<% for (const skill of this.data.skills) { %>
<div class="skill"><%= skill %></div>
<% } %>
@@ -117,7 +113,7 @@ Component definitions can be folded at the `<Define:>` level:
### Formatting Support
The extension respects VS Code's formatting settings and supports both colon and brace control flow styles without enforcing either.
The extension respects VS Code's formatting settings.
## Configuration
@@ -156,7 +152,7 @@ The extension uses standard TextMate scopes and works with all VS Code themes. F
### Bracket Matching Errors with Split Control Flow
When using brace-style control flow split across multiple `<% %>` blocks, VS Code may show bracket matching errors:
When using control flow split across multiple `<% %>` blocks, VS Code may show bracket matching errors:
```jqhtml
<% if (condition) { %>
@@ -168,30 +164,18 @@ When using brace-style control flow split across multiple `<% %>` blocks, VS Cod
**Why this happens:** VS Code's bracket matcher can't track bracket state across separate template blocks. It sees a closing `}` without a matching opening `{` in the same block.
**Solutions:**
**Solution:** The extension automatically disables bracket colorization for `.jqhtml` files:
1. **Use colon syntax** (recommended for complex control flow):
```jqhtml
<% if (condition): %>
<div>Content</div>
<% else: %>
<div>Other content</div>
<% endif; %>
```
```json
{
"[jqhtml]": {
"editor.bracketPairColorization.enabled": false,
"editor.guides.bracketPairs": false
}
}
```
2. **Disable bracket colorization** (already set by default):
```json
{
"[jqhtml]": {
"editor.bracketPairColorization.enabled": false,
"editor.guides.bracketPairs": false
}
}
```
3. **Ignore the visual errors** - they don't affect functionality, just appearance.
The extension automatically disables bracket colorization for `.jqhtml` files to minimize these false positives.
These visual errors don't affect functionality.
### Other Known Issues
@@ -233,7 +217,7 @@ MIT License - See LICENSE file in the JQHTML repository
### 2.0.0
- Initial release
- Full JQHTML v2 syntax support
- Colon and brace control flow styles
- Brace-style control flow
- Slot syntax with let:prop
- Data binding and event handlers
- Component highlighting