Commit Graph

465 Commits

Author SHA1 Message Date
xxnuo
bcb6c370ac feat(desktop): buildscript 2026-01-09 16:48:36 +08:00
xxnuo
d2eb1bf377 Update package.json 2026-01-09 16:48:36 +08:00
xxnuo
32d23cd51a feat(desktop): init 2026-01-09 16:48:36 +08:00
xxnuo
55926734f3 fix: emoji placeholder 2026-01-09 16:48:36 +08:00
xxnuo
eab4a13f64 fix: better placeholder
curl 'http://localhost:8989/imme' \
  -H 'content-type: application/json' \
  --data-raw '{"text_list":["py2dist is a tool that uses Cython to compile Python source code into binary extension modules ( {0} / {1} ). It is designed to simply protect source code from modification and is suitable for scenarios such as releasing Python projects or building Docker service images."],"source_lang":"en","target_lang":"zh-CN"}'
2026-01-09 16:01:33 +08:00
xxnuo
37208cd28b feat(ui): voice input 2026-01-01 17:17:58 +08:00
xxnuo
296fd0535c bump v4.0.22 v4.0.22 2026-01-01 17:17:38 +08:00
xxnuo
12eb8fed33 fix: buildscript 2026-01-01 17:17:24 +08:00
xxnuo
d04ac0b77b feat(ui): language selector 2026-01-01 17:17:16 +08:00
xxnuo
908165b31f feat(ui): ui language 2026-01-01 17:17:11 +08:00
xxnuo
5f0b990160 feat(ui): improvements 2026-01-01 17:17:05 +08:00
xxnuo
1a90b51dcc fix: use <br data-mt="n"> as placeholder 2026-01-01 17:16:39 +08:00
xxnuo
540661e419 Update TranslationPanel.tsx 2026-01-01 17:16:15 +08:00
xxnuo
37dc708264 Update index.ts 2026-01-01 17:15:52 +08:00
xxnuo
e9da7786d1 Update build.ts 2026-01-01 17:15:24 +08:00
xxnuo
7b22897ef2 Update package.json 2026-01-01 17:15:20 +08:00
xxnuo
8ecb1e4afa Update Dockerfile 2026-01-01 17:15:16 +08:00
xxnuo
15f348fb72 chore: improve buildscript 2026-01-01 17:14:52 +08:00
xxnuo
5bf835274f fix: detectShortCjkLanguage 2026-01-01 17:14:28 +08:00
xxnuo
201b762d6e fix: buildscript 2026-01-01 17:14:24 +08:00
xxnuo
fa77180925 try: electron 2026-01-01 17:13:54 +08:00
xxnuo
ac45b5cd65 chore: improve buildscript 2026-01-01 17:13:45 +08:00
xxnuo
8308383b18 bump v4.0.21 2026-01-01 17:13:16 +08:00
xxnuo
825b60eceb Update package.json 2026-01-01 17:13:12 +08:00
xxnuo
bb3b0123a2 feat: protect placeholder [0] {0} v4.0.21 2026-01-01 17:13:07 +08:00
xxnuo
433d38bd23 fix: wrong trans of imme placeholder {1}
{0} {2} is fine, very weird
2026-01-01 17:12:42 +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