440 Commits

Author SHA1 Message Date
xxnuo
8d6a8b7951 try: electron 2026-01-01 17:12:49 +08:00
xxnuo
1430968d74 Update package.json v4.0.20 2026-01-01 17:12:40 +08:00
xxnuo
ec285fb631 bump v4.0.20 2026-01-01 17:12:39 +08:00
xxnuo
7be48c5dca docs: update 2026-01-01 17:12:26 +08:00
xxnuo
9b57d2bff5 fix: node path of swagger ui 2026-01-01 17:12:07 +08:00
xxnuo
4c3bcbe399 feat: download command 2026-01-09 00:50:36 +08:00
xxnuo
4496f0d003 fix: wrong emoji placeholder 2026-01-01 17:11:54 +08:00
xxnuo
ab5a9aa9ef Update CHANGELOG.md 2026-01-01 17:11:25 +08:00
xxnuo
d9c1a947ca feat(ui): hover tips 2026-01-01 17:11:23 +08:00
xxnuo
c42cf18755 bump v4.0.19 2026-01-01 17:11:15 +08:00
xxnuo
0dd453be49 chore: default 1000 times cache 2026-01-01 17:11:00 +08:00
xxnuo
88010e9aa7 fix(cld2): stack overflow - increase WASM stack size
The CLD2 WASM module has a stack size of only 8KB (TOTAL_STACK=8192), leading to stack overflow crashes when processing long texts.

Error Manifestation:
- Abort when processing 282-character mixed English and Chinese text
- Error message: `RuntimeError: Aborted()`
- Crash location: `detectLanguageWithCLD` calling CLD2

- **Makefile**: Increase TOTAL_STACK from 8192 (8KB) ​​to 65536 (64KB)
- An 8-fold increase is sufficient for language detection of complex texts.
- The WASM module size remains unchanged at 1.1MB.

- Input sanitization: Remove null bytes and control characters
- UTF-8 byte boundary truncation: 512-byte limit
- Enhanced error logging: Record crash context
- API request limit: 10MB JSON parsing limit

- `detectLanguageWithLength` method accepts explicit length
- WebIDL interface definition completed
- Temporarily disabled; using the original interface with input sanitization

fix: detectMultipleLanguages

fix: detectMultipleLanguages
2026-01-01 17:10:36 +08:00
xxnuo
b62330d2be feat(ui): more features 2026-01-01 17:10:08 +08:00
xxnuo
628e9d8999 fix: cld2 resetter 2026-01-01 17:09:58 +08:00
xxnuo
7bd047d0f0 fix(ui): history component has no scrollbar 2026-01-01 17:09:40 +08:00
xxnuo
3175917a7b fix: limit length of language detection
Truncate input text to avoid memory issues in WASM and improve performance.

1KB is sufficient for reliable language detection.

Create reproduce_cld.ts
2026-01-01 17:09:35 +08:00
xxnuo
c7823bc49c Create npm.yml 2026-01-01 17:09:29 +08:00
xxnuo
355904740d bump v4.0.18
Update icon.png
v4.0.18
2026-01-01 17:08:59 +08:00
xxnuo
987946fb6a fix: missing index file 2026-01-01 17:08:48 +08:00
xxnuo
f88f03c654 bump v4.0.17 2026-01-01 17:08:28 +08:00
xxnuo
1ca6edad20 feat: npm package 2026-01-01 17:08:25 +08:00
xxnuo
159862ba67 feat: new icon 2026-01-01 17:08:16 +08:00
xxnuo
ced11b9a1b Update build.yml 2026-01-01 17:08:09 +08:00
xxnuo
69c1f47cd8 Update Dockerfile v4.0.16 2026-01-01 17:07:54 +08:00
xxnuo
9e78816080 Merge branch '3' v4.0.15 2026-01-01 17:07:51 +08:00
xxnuo
6aa8ea3e01 docs: update 2026-01-01 17:07:24 +08:00
xxnuo
b9a3592524 docs: update
Update Dockerfile

Squashed commit of the following:

Author: xxnuo <54252779+xxnuo@users.noreply.github.com>

    fix: Building Docker images using Node.js

Author: xxnuo <54252779+xxnuo@users.noreply.github.com>

    feat: node docker version

Author: xxnuo <54252779+xxnuo@users.noreply.github.com>

    fix: warn language detection failed
2026-01-06 15:49:03 +08:00
xxnuo
a6989619cc Merge branch '3' v4.0.14 2026-01-01 17:07:15 +08:00
xxnuo
a9b85bc565 Merge pull request #111 from ApliNi/main4
docs: update cache size description
2026-01-06 00:32:05 +08:00
ApliNi
76b3ece79a docs: update cache size description 2026-01-06 00:21:59 +08:00
xxnuo
3d1562b338 Update README.md 2026-01-01 17:06:34 +08:00
xxnuo
919efb9790 docs: update 2026-01-01 17:06:24 +08:00
xxnuo
5b9220b4bb feat: support access by /ui/?token=
docs: update

Update index.ts

Squashed commit of the following:

Author: ApliNi <aplini@ipacel.cc>

    feat: add request logging with configurable option

Update auth.ts
v4.0.13
2026-01-06 00:23:10 +08:00
xxnuo
113feb1927 Update README.md 2026-01-01 17:05:45 +08:00
xxnuo
5f67441680 docs: update 2026-01-01 17:05:20 +08:00
xxnuo
cb85bece4c Squashed commit of the following:
Author: xxnuo <54252779+xxnuo@users.noreply.github.com>

    docs: update

    refactor(cache): streamline caching functions for translation

    fix(cache): improve cache key generation, Using a null separator instead of underscores to prevent collisions.

    fix(cache): improve the performance on long text cache key

    Merge branch 'dev'

Author: ApliNi <aplini@ipacel.cc>

    feat: implement caching mechanism for translation results
v4.0.12
2026-01-01 17:04:57 +08:00
xxnuo
7442a7289c Update error-handler.ts
Update HISTORY.md

Update CHANGELOG.md
v4.0.11
2026-01-05 23:06:38 +08:00
xxnuo
3ae2324998 fix: auth by param 2026-01-01 17:04:15 +08:00
xxnuo
ed0c99784a feat: improve simd error msg 2026-01-01 17:04:01 +08:00
xxnuo
1f7ea98388 docs: update 2026-01-01 17:03:34 +08:00
xxnuo
132dfec262 docs: update translated READMEs to match main README changes 2026-01-01 17:03:19 +08:00
xxnuo
ad50c91e9b docs: update 2026-01-01 17:02:59 +08:00
xxnuo
2fd0191155 docs: fix 2026-01-01 17:02:53 +08:00
xxnuo
f12d2c4c56 Update build.yml 2026-01-01 17:02:51 +08:00
xxnuo
4e31a20bea Update build.yml v4.0.10 2026-01-01 17:02:28 +08:00
xxnuo
89075bb43e docs: update
Update HISTORY.md

feat: update checker
2026-01-01 17:02:26 +08:00
xxnuo
7eeda5fd22 fix: tags v4.0.9 2026-01-01 17:02:07 +08:00
xxnuo
9395b4ab23 chore: update v4.0.8 2026-01-01 17:01:49 +08:00
xxnuo
4daafca5ab fix: urls v4.0.7 2026-01-01 17:01:23 +08:00
xxnuo
212905899b fix: version
feat: add bump version script and bump version to v4.0.1
v4.0.6
2026-01-01 17:01:22 +08:00