Commit Graph
37 Commits
Author SHA1 Message Date
ShareVB f122bafaa9 feat(new tool): Sound Tester
Fix #589
2026-10-30 22:12:06 +01:00
Sebastian DanielssonandClaude Opus 5.5 de40fc7a98 fix(visualsubnetcalc, zpool-calc): escape user data before inserting HTML
Visual Subnet Calculator loads its subnet map from `?c=` shareable links
and imported configs, then wrote subnet keys, notes and colours into the
table HTML unescaped. A crafted link could run script on the it-tools
origin. addRow() now escapes the network, note and ancestor keys in join
cells, and only accepts hex colours. Allocation results, validation
issues, warnings, the network-boundary notice and caught exception
messages are escaped as well.

zpool-calc wrote the vdev type <select> value with .html(); use .text().

Both are vendored files; reapply if they are updated from upstream.

Fixes CodeQL js/xss-through-dom and js/xss-through-exception alerts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 21:11:50 +02:00
SebastianandClaude Opus 5 5e4972e285 chore(deps): replace the five deprecated packages from the dependency dashboard (#557)
* test: extract testable services and pin current crypto behaviour

Move the hashing, hmac, crc and ULA logic out of the single file components
into service modules next to them, and cover them with characterization tests
that pin the exact digests, encodings and ciphertexts the tools produce today.

The encryption tool had no tests at all; it now has round trip coverage for
every algorithm plus pinned ciphertexts for the deterministic ones, including
OpenSSL salted payloads produced by previous versions of it-tools.

No behaviour change: this is the reference point the dependency replacements
that follow have to reproduce exactly.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mf5V2jMpFFXxGVXZU5rHBq

* chore(deps): replace the five deprecated packages flagged by renovate

Renovate's dependency dashboard lists five deprecated or replaced packages;
this removes all of them, keeping the observable behaviour identical.

- crypto-js -> crypto-es. Upstream discontinued crypto-js; crypto-es is its
  maintained ESM/TypeScript successor and is byte for byte compatible, which
  the characterization tests added in the previous commit verify: the same
  1012 assertions pass before and after the swap, including the OpenSSL
  salted ciphertexts of the encryption tool. It ships its own types, so
  @types/crypto-js goes away too.
- plausible-tracker -> @plausible-analytics/tracker, the official replacement.
  The app keeps providing the same 'plausible' injection shape, so nothing
  downstream changes. apiHost maps onto the new endpoint option and keeps
  posting to the very same url, trackLocalhost onto captureOnLocalhost, and
  the pageviews that enableAutoPageviews() used to start are now captured by
  init() itself. init() throws without a domain, unlike the old tracker, so
  an enabled but domain-less config now falls back to the no-op instance
  instead of breaking the app bootstrap.
- svg2png-wasm -> @resvg/resvg-wasm, the replacement named in its deprecation
  notice. The renderer moves into a service covered by tests that rasterize
  real svg content, and the 2 MB binary no longer has to be committed under
  public/: vite emits it from the package as a hashed asset, so it can never
  drift from the js glue on upgrade.
- @types/bcryptjs and @types/uuid are deprecated stubs, bcryptjs and uuid
  having shipped their own types for a while.

Also drops the now dead renovate rules that only existed to keep uuid and
@types/uuid in lockstep, and fixes the tool metadata a new guard test caught:
the encryption tool advertised 'crypto-s' and the wysiwyg editor still
advertised monaco and prettier.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mf5V2jMpFFXxGVXZU5rHBq

* test: pin that svg text is actually drawn, document the load bearing empty iv

The resvg swap is pixel identical to svg2png-wasm for shapes and gradients,
and it also fixes text that names the embedded Roboto family: svg2png-wasm
returned an empty canvas there, so the assertion guards a real improvement
rather than only the image dimensions.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mf5V2jMpFFXxGVXZU5rHBq

* fix: address review feedback on the plugin and renderer initialization

Two of the review comments are real regressions against the behaviour the
replaced packages had, so both are fixed with a test that fails without the fix:

- The plausible plugin called init() on every install. init() throws on the
  second call, so installing the plugin on a second app instance (tests, hot
  reload) would have taken the app down, where the old tracker was happy to be
  constructed repeatedly. The tracker is now initialized once and reused. The
  api host also gets its trailing slash trimmed so the endpoint cannot end up
  with a double slash.
- initializeSvgRenderer() memoized the initialization promise including its
  rejections, so one failed wasm download left the tool broken until a page
  reload. The old code only latched its flag after a successful load. A failed
  attempt is no longer cached.

Also extends the tool metadata guard to the removed stub type packages, and
pins the negative counters that verifyHOTP walks through when the window is
wider than the counter: their hexadecimal form keeps the minus sign, which the
hex parser reads as ffffffff rather than rejecting, and crypto-es reproduces
that exactly.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mf5V2jMpFFXxGVXZU5rHBq

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-08-15 21:52:48 +02:00
ShareVB bce809a5cc feat(Image to SVG): intégration de esm-potrace-wasm et VTracer pour le mode couleur
Fix #391
2026-06-20 17:54:57 +02:00
ShareVB ee94dc9d07 feat(Visual Subnet Calculator): update js 2026-04-19 11:34:03 +02:00
ShareVB e50899fa9f feat(new tool): Visual Subnet Calculator
Fix #1746
2026-03-23 00:18:53 +01:00
ShareVB 801e3d52d1 feat: Custom External Tools
Fix #220
2025-12-07 21:04:22 +01:00
ShareVB 4db9743221 feat(new tool): Pdf Compressor
Fix #1672
2025-11-29 12:50:25 +01:00
ShareVB c25ec86546 chore: clean qpdf 2025-11-23 23:09:04 +01:00
ShareVB c2f5b6477c chore: cleaning sponsors and buymeacoffee 2025-08-24 23:49:40 +02:00
ShareVB 8ee06eeedb feat(new tools): Zpool/OpenZFS calculator and cheatsheet
Fix #973
2025-08-21 14:32:22 +02:00
ShareVB 63065a59e5 feat: tools default params and default language at runtime and more url parameters
Fix #1624, #1537, #906, #654
2025-08-19 19:57:12 +02:00
ShareVB ac3648c749 fix: add a splash screen
Fix part of #32
2025-06-08 22:44:34 +02:00
ShareVB 8decf33ec8 feat(new tool): Age Crypto
Fix #640
2025-06-08 11:09:47 +02:00
ShareVB 9dd8412e57 feat: Home Custom Content and tools filters
Fix #1538 and part of #395
2025-04-20 18:35:37 +02:00
ShareVB 5b93531eec fix: handle non https hosting
Fix #58
2025-04-19 16:03:42 +02:00
ShareVB 4b9d7ab637 fix: replace Beep.mp3 by a smoother 2025-04-13 21:34:20 +02:00
ShareVB 0536cf9585 feat(new tool): Pomodoro Timer
Fix #47
2025-04-12 14:26:04 +02:00
ShareVB 3474e871ab fixup! chore: gitignore Zone.Identifier 2025-04-06 21:45:23 +02:00
ShareVB f5c5a511d8 fix(Ascii Text Drawer): serve figlet fonts locally
Fix #1546
2025-04-06 19:04:54 +02:00
ShareVB f3814e9a5b feat(My IP): show IPv4, IPv6 and country
Fix #1535
2025-03-17 23:19:14 +01:00
sharevb 7e40050986 feat(new tools): Dice Roller, Cin Flipper, Card Picker and Fortune Wheel
Fix #1493 and #28
2025-03-16 22:57:35 +01:00
ShareVB 0de2ed10b9 fix: use Plurimath as asset
Plurimath opal cannot be minified, esbuilded and bundled without causing unexpected exceptions
So copy js in public folder and import plurimath from here
2025-01-01 16:54:55 +01:00
ShareVB f56a39aac3 chore: change github repo url to my fork 2025-01-01 13:26:48 +01:00
ShareVB 2f145f88ff fix: update tree sitter wasm 2024-11-11 20:37:56 +01:00
ShareVB 8ebda99056 Merge branch 'feat/pdfutils' into chore/all-my-stuffs
# Conflicts:
#	package.json
2024-11-03 23:03:25 +01:00
ShareVB d3eca6ff55 Merge branch 'feat/image-converter' into chore/all-my-stuffs
# Conflicts:
#	package.json
#	pnpm-lock.yaml
#	src/tools/index.ts
2024-11-03 20:39:08 +01:00
ShareVB 1da084635c Merge branch 'feat/curlconverter' into chore/all-my-stuffs
# Conflicts:
#	package.json
#	pnpm-lock.yaml
#	src/tools/index.ts
#	vite.config.ts
2024-11-03 20:24:18 +01:00
ShareVB cd045934aa feat: add SVG as possible input format
Fix #1338
2024-10-26 10:02:52 +02:00
sharevb e86e9212d5 feat(new tool): Bounce Email Parser
Parse SMTP bounce emails
2024-10-06 17:04:01 +02:00
sharevb 6d079f18bf feat(new tool): curl converter
Generate curl version for common coding languages
Fix #830
2024-07-22 00:26:12 +02:00
sharevb 06640f9809 feat: prepare qpdf-wasm 2024-03-10 14:25:18 +01:00
Corentin Thomasset fcf4cfe64d refactor(share): new share banner 2022-08-14 10:53:39 +02:00
Corentin Thomasset 39746e07c5 feat(share): social image 2022-04-15 22:31:22 +02:00
Corentin Thomasset b7193e838b feat(seo): pwa and icons 2022-04-15 16:30:25 +02:00
Corentin Thomasset cd9a3bc9b1 feat(seo): added robots.txt and humans.txt 2022-04-15 12:29:40 +02:00
Corentin Thomasset 64c92a661c chore: first commit 2022-03-31 00:33:29 +02:00