Fix boot sequence alignment, rate limiter memory leak, and docs gaps
- base.js: Fix boot sequence title centering — old formula was off by 1 char for odd-length app names (PULSE, GANDALF). Remove unused `bar` variable. New logic computes left/right padding independently to handle both even and odd title lengths correctly. - node/middleware.js: Prune expired rate-limit entries from Map when size exceeds 5000 to prevent unbounded memory growth. Also use req.socket?.remoteAddress as fallback for req.ip. - README.md: Document lt.beep() in the JS API section. Clarify Quick Start to distinguish core files from platform-specific helpers. Note that tableNav.init() and sortTable.init() require explicit calls. - aesthetic_diff.md: Correct §8 toast icon format — base.js uses bracketed symbols [✓][✗][!][i], not >> prefix as previously stated. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -195,13 +195,13 @@ GANDALF (`style.css`, `.section-title`):
|
||||
| Slide direction | from bottom | from top | from right | from right (`translateX(30px)`) |
|
||||
| Animation duration | `0.3s ease` | `0.3s ease-out` | `0.15s ease` | `0.2s ease-out` |
|
||||
| Auto-dismiss | 3500ms | 3000ms | 3500ms | `3500ms` |
|
||||
| Icon format | `>> ` prefix | `✓/✗/ℹ` prefix (inline style) | `>> ` prefix | `>> ` prefix + icon in `.lt-toast-icon` |
|
||||
| Icon format | `>> ` prefix | `✓/✗/ℹ` prefix (inline style) | `>> ` prefix | `[✓]` `[✗]` `[!]` `[i]` in `.lt-toast-icon` |
|
||||
| Queue system | Yes (serialised) | No (stacks) | No (stacks) | Yes (serialised) |
|
||||
|
||||
**Change required in PULSE:** Move toast position to `bottom: 20px; right: 20px`.
|
||||
Replace inline-style notification function with `.lt-toast` classes.
|
||||
Replace inline-style `showTerminalNotification()` with `lt.toast.*` calls. The icon format in `base.js` uses bracketed symbols: `[✓]`, `[✗]`, `[!]`, `[i]` — matches the terminal aesthetic better than bare unicode symbols.
|
||||
|
||||
**Change required in GANDALF:** Already close — update animation to `slide-in-right` instead of `slide-in` (which slides from left in Gandalf's current implementation).
|
||||
**Change required in GANDALF:** Already close — update animation to `slide-in-right` instead of `slide-in` (which slides from left in GANDALF's current implementation). Replace `showToast()` calls with `lt.toast.*` calls.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user