41 lines
1.2 KiB
Markdown
41 lines
1.2 KiB
Markdown
# WRNexusJS CAPTCHA Fixed 8
|
|
|
|
Extract this ZIP directly into the WRNexusJS repository root and allow the included files to replace the current CAPTCHA files.
|
|
|
|
## Added
|
|
|
|
- 18 concrete generated CAPTCHA image styles
|
|
- `imageStyle="random"`
|
|
- `allowedStyles` and `excludedStyles`
|
|
- `randomizeStyle`
|
|
- Resolved style metadata and browser event details
|
|
- Easy, normal, hard, controlled-pool, and full renderer showcase at `/styles`
|
|
- Tailwind Iconify/Lucide showcase dependencies
|
|
- Faster CRC32 PNG encoding
|
|
- Safe floating-point line rendering for web, darts, distortion, wave, and scribble effects
|
|
- Tests for every renderer and style-pool rule
|
|
|
|
## Supported styles
|
|
|
|
`classic`, `collision`, `snow`, `corrosion`, `spiderweb`, `cross-shadow`, `split`, `split2`, `cut`, `darts`, `distortion`, `stitch`, `striped`, `wave`, `grid-noise`, `scribble`, `pixel`, `broken-lines`, and `random`.
|
|
|
|
## After extraction
|
|
|
|
```bash
|
|
bun install
|
|
bun run scripts/generate-ui-component-reference.mjs
|
|
bun run typecheck
|
|
bun test packages/captcha
|
|
bun test services/managed-captcha
|
|
bun run --cwd examples/captcha-showcase check
|
|
bun run --cwd examples/captcha-showcase dev
|
|
```
|
|
|
|
Open:
|
|
|
|
```text
|
|
http://localhost:3000/styles
|
|
```
|
|
|
|
Use a hard browser refresh after restarting the development server.
|