Compare two pasted XML documents and highlight the differences, mirroring
the JSON diff tool's UI and diff engine. XML is parsed with a native
DOMParser-based normalizer (attributes as @name, text-only leaves as plain
strings) instead of xml-js, and a reconciliation step coerces mismatched
single/repeated element shapes into arrays before diffing so a repeated
element compares cleanly instead of producing a garbled type-mismatch diff.
From PR #1840Fix#1839
Co-Authored-By: @sharevb
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
n-input-number emits null when its text is cleared, while the computeds only
treated undefined as a missing value. The arithmetic then coerced null to 0,
so emptying To showed -100 and emptying X showed 0.
The three formulas moved into a service that treats null and undefined alike,
with unit tests for the cleared cases and an e2e case that clears a filled
field.
From PR #1913Fixes#1906
Paste an image from the clipboard with Ctrl+V or Cmd+V, or with a
"Paste from clipboard" button for touch devices, then download it.
- Converts to PNG (default), JPEG, or WebP, with a quality slider for
JPEG and WebP. The format and quality persist across visits.
- Keeps every image pasted in the session, with remove and clear all.
- Shows dimensions, original and output type and size.
- Edits the file name, copies the image as PNG, or copies a base64
data URL.
- Converts images one at a time in the browser only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PEUYi3h8enZM5rmJAZ1UAF
Taken from https://github.com/CorentinTh/it-tools/pull/1912/changes/d19824e7ea42a192808b585f02e2479d6fe87cb3
Co-Authored-By: @destan
Add a tool that cleans terminal and Claude Code output. The cleaner strips line numbers, ANSI escape sequences, box drawing, bullet markers, diff markers, trailing whitespace, and the common indent. Smart unwrap and Markdown / Reddit mode are optional. Options persist in localStorage. The pasted input is not saved.
Co-Authored-By: @destan
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PEUYi2gRxcytxRFXjPjH3U
Add an Automation category with three tools for PLC programmers and
instrumentation technicians, built on a shared AnalogSignalConverter
component and a tested src/utils/analog-signal.ts module:
- 4-20 mA converter: current <-> engineering value, 4-20 / 0-20 mA, with the
NAMUR NE 43 loop diagnostic (failure, undefined zone, under/over-range)
- 0-10 V converter: 0-10, 2-10, 0-5, 1-5 and ±10 V, warns below the live
zero (broken wire)
- Analog scaling calculator: raw PLC values (Siemens 0-27648 / ±27648,
Schneider 0-10000, 12/15/16 bits) <-> engineering value, with the rounded
raw value
Three-column layout: input, parameters and output, each side with a gauge and
a coloured status. A swap button inverts the conversion direction and keeps
the operating point. Also shows the y = gain × x + offset formula for the PLC
and a 0-25-50-75-100 % reference table. Ranges are validated (min < max).
English and French translations.
dns-query calls Cloudflare DNS over HTTPS and rdap.org, so offline mode
now hides it like dns-queries.
The gitattributes download commands are now built from the URLs the
preview was generated from. When the snapshot was used, they point at the
snapshot commit instead of master, so they reproduce what is shown.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Offline, explainshell now always uses the configured explainchain.url.
Before, a URL the browser had stored earlier (the public
explainshell.com) overrode it.
ocr-image's lang-url template may now name the file
(.../{lang}.traineddata.gz). tesseract.js appends that file name itself,
so the template is reduced to its directory instead of requesting a
duplicated path.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Add json-schemas.catalog-url, currency-converter.url and
geo-coordinates-converter.tile-url. Offline without a mirror, schema
validation offers custom schemas only, the map is not shown and the
currency converter is hidden. Show the external-access badge on the
YAML viewer and the coordinates converter.
Refs sharevb/it-tools#571
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Offline mode uses the snapshot only; online, it replaces the hardcoded
fallback list when GitHub can't be reached. Refresh it with
pnpm script:update:git-templates.
Refs sharevb/it-tools#571
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Ship the ONNX runtime, the ffmpeg core, the tesseract worker and core and
English/Simplified Chinese OCR data instead of loading them from
jsdelivr. They load only when their tool runs and are left out of the
PWA precache. Models and other OCR languages can come from an intranet
mirror (transformers.models-url, ocr-image.lang-url). Remove math-ocr's
leftover MathJax typings: MathJax is no longer used.
Refs sharevb/it-tools#571
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The root-absolute /Beep.mp3 (also fixed in pomodoro-timer, in the previous commit) broke when IT-Tools is served from a subfolder.
Refs sharevb/it-tools#571
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
md-editor-v3 loaded highlight.js, katex, mermaid, prettier, cropper,
screenfull and echarts from unpkg.com; the two other tools loaded Google
Fonts. All of them now come from the app.
Refs sharevb/it-tools#571
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
"offline": true in tools-settings.json hides tools that need internet
access (menus and routes). Tools declare it with requiresInternet, either
always or unless an intranet mirror is configured. The settings helper
lives in a module without top-level await so eagerly loaded tool
index.ts files can use it without delaying app boot.
Refs sharevb/it-tools#571
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Add fonts, md-editor extensions, the ffmpeg core, the tesseract core and
English/Simplified Chinese OCR data so tools stop loading them from
third-party CDNs. Remove currency-exchanger-js and @ffmpeg/util, which
nothing imports anymore. Patch curlconverter to resolve its wasm files
against the page's <base href> so curl-converter works in a subfolder.
Refs sharevb/it-tools#571
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Fix machine-translation errors, make terminology consistent, add spacing
between CJK and Latin text, use full-width punctuation, and add the two
missing database-builder keys.
Restore the externalAccess "null" sentinel that had been translated as
无效的 and restore code samples that had been translated.
Refs sharevb/it-tools#571
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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>
`(?:[^']+|(?<=\\)')+` nests quantifiers and backtracks exponentially on long
unterminated values. Use one `'(?:[^'\\]|\\.)*'` pattern for both extracting
and replacing. Extraction used `(.*?)`, which stopped at the first escaped
quote (`'It\'s'` became `It\`); it now reads the whole value and decodes
JS string escapes (\n, \xHH, \uHHHH, \u{...}, \') before writing the
locale file.
Fixes CodeQL js/redos alerts in scripts/extract-tools-desc.mjs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The database name, account and server address are prefilled from URL query
parameters and were pasted into the script as is, so a crafted link could
add statements to the SQL a user copies and runs (e.g. a database name
containing `` `; DROP DATABASE prod; -- ``). A password containing `'` also
produced invalid SQL.
- Quote identifiers and string literals per dialect.
- PostgreSQL passwords containing a backslash are emitted as E'' strings,
which parse the same whatever standard_conforming_strings is set to.
- Oracle has no escape for `"` in quoted names or passwords, so either one
containing `"` shows a validation error instead of generating SQL. Plain
Oracle names stay unquoted since quoting makes them case-sensitive.
- Newlines in values that land in SQL comments are flattened.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`src/utils/random.ts` was built on Math.random(), and it backs the token
generator, htpasswd salts and the passphrase suffixes. The PIN code
generator and the database builder's default password called Math.random()
directly. All now go through crypto.getRandomValues() with rejection
sampling, so indices are unbiased, for ranges up to 2^53.
The passphrase generator no longer calls generateSillyPassword(), which also
picks words with Math.random(). It uses the package's word lists with the
secure helpers, and skips pulling lodash and zxcvbn into the bundle.
Behaviour changes that came with it:
- randIntFromInterval() now includes its upper bound. The lorem ipsum
sliders could never reach their maximum and the passphrase generator never
put a number on the last word. The coin flipper used `0..10 % 2`, which
would be biased with an inclusive range, so it now draws 0 or 1.
- randIntFromInterval() orders reversed bounds, rounds fractional ones
inward and returns NaN for non-finite input instead of throwing.
- The lorem ipsum generator falls back to its defaults for malformed
`paragraphs`, `sentences` and `words` URL values and clamps them to the
slider ranges, so a link like `?sentences=[1,4294967297]` cannot freeze
the page.
- Passphrases whose length equals the min or max length are accepted.
- Multi-word list entries ("wide eyed") count as one word, so the word count
and number placement match the settings.
- Token generator draws each character independently instead of shuffling
the alphabet repeated `length` times.
Fixes the CodeQL js/insecure-randomness alert in the passphrase generator.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
String replace() only replaced the first `[`, `]`, `(` and `)`, and link
text backslashes were left as is. Use global regexes and escape
backslashes too.
Fixes CodeQL js/incomplete-sanitization alerts in the tool layout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Turndown only applies rules to element nodes; text nodes always go through
its built-in escape(). The `escapeText` rules and their `escapeMarkdown`
helpers in HTML to Markdown, HTML to data and EPUB to Markdown were never
called. They also escaped `|` twice, which would have produced `\\|` had
anyone wired them up. Output is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pipes were escaped but backslashes were not, so a cell ending in `\` turned
the added `\|` into `\\|` and the pipe split the cell. The object-array
Markdown export also left newlines in cells, which broke the row; they now
become `<br>` like in the Markdown table generator.
Fixes CodeQL js/incomplete-sanitization alerts in the Markdown table
generator and the object-array export.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Unescaping backslashes before `\n`, `\t` and friends decoded escaped
backslashes twice: `\\n` in an escaped JSON string became a raw newline
instead of `\n`, so parsing failed with "invalid character". A single
replace with a lookup table decodes each escape exactly once.
Fixes the CodeQL js/double-escaping alert.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The comment check passed its pattern as a string, so every `\s` became a
literal `s`. Lines starting with `s` that contained `//` or ended in `/`
(e.g. `site = https://example.com`) were dropped as comments. Lines are
already trimmed, so only `//` and lone `/` lines need skipping.
`spacesRegx` and `newLineRegx` lacked the global flag: prop names kept all
but their first space, and whitespace-only lines were treated as content.
Fixes CodeQL js/useless-regexp-character-escape and js/incomplete-sanitization
alerts in src/utils/objgen.ts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Generate gzip sidecars for JavaScript, CSS, and WebAssembly assets during the image build. Serve them through nginx when clients accept gzip, including proxied requests, while preserving uncompressed fallback and runtime HTML base-path rewriting.
* ci: move to pnpm 12, pnpm/setup v3 and faster, pinned CI
pnpm 12.6.0 is declared in devEngines.packageManager instead of
packageManager, so pnpm/setup, the Dockerfile and local installs all pick
the same version; the lockfile records the resolved binary. Every workflow
moves to pnpm/setup v3, and the Vercel workflows gain a setup step so
`vercel build` runs with that pnpm rather than whatever is on the runner.
CI time:
- ci runs format check, lint, unit tests, typecheck and build as parallel
steps instead of one after another.
- E2E builds the app once and shares dist with the three browser jobs
instead of rebuilding it in each.
- ci and E2E cancel superseded runs on the same ref.
- The Docker latest/baseurl workflows no longer repeat ci's checks. They
run on workflow_run after ci succeeds for a push, and build the commit
ci tested.
Runners are pinned to ubuntu-26.04-arm. CodeQL stays on x64
(ubuntu-26.04): only the x64 image ships the CodeQL bundle in its tool
cache. The Playwright cache key now includes the runner architecture.
Every action is pinned to its latest release by commit SHA with a version
comment, the Dockerfile base images by digest, and the pnpm and Vercel CLI
installs to exact versions, matching the Renovate presets already enabled
(helpers:pinGitHubActionDigests, docker:pinDigests).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017s2w39tKNdBdD8kyfThuLy
* ci: deploy to Vercel from one workflow with previews and a concurrency group
Replaces sharevb-vercel-preview.yml and sharevb-vercel-prod.yml with
deploy.yaml, which builds here and deploys the prebuilt output:
- One concurrency group per ref with cancel-in-progress, so a burst of
pushes costs one deployment instead of one per push.
- A GitHub environment per run (Production or Preview), which restores the
Environments sidebar and the PR's "View deployment" button.
- Pull requests build their own head commit, named after the PR branch so
Vercel shows the branch rather than "HEAD"; runs from forks are skipped,
since they get no secrets.
- Fails early on missing secrets, refuses to deploy a build without
index.html, and pins the Vercel CLI.
The production hostname for sitemap.xml and robots.txt comes from the
VERCEL_PRODUCTION_URL repository variable instead of being hardcoded, so
the same file serves any deployment. Secrets can live on the repository
or on the Production/Preview environments.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017s2w39tKNdBdD8kyfThuLy
* build: stop compiling tree-sitter's native addon
curlconverter depends on tree-sitter and tree-sitter-bash for its Node
shell parser, but the app only uses curlconverter in the browser, where its
`browser` field swaps in web-tree-sitter (WASM). The native addon is never
loaded.
Building it anyway broke installs: tree-sitter 0.21 ships prebuilds only for
darwin-x64 and win32-x64, so Linux compiles it from source, and its C++17
flags fail against Node 24.21's headers, which require C++20. That is what
failed pnpm install on the arm64 runners.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017s2w39tKNdBdD8kyfThuLy
* ci(e2e): run the browser jobs on x64
On ubuntu-26.04-arm the Playwright suite ran over 7x slower: chromium was
still in the test step after 27 minutes, against under 4 on x64. The build
job stays on arm; its output is architecture-independent.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017s2w39tKNdBdD8kyfThuLy
* test(e2e): stop the preview server with SIGTERM so runs exit
pnpm 12 starts the script it runs in its own process group. Playwright
stops its webServer by SIGKILLing the `pnpm preview` process group, which
no longer contains vite: vite survives, keeps the output pipes open, and
Playwright waits on it forever. The E2E jobs finished every test and then
hung until the job timeout.
pnpm 12.6 forwards SIGTERM to the script it runs, so stop the server with
SIGTERM instead. Locally with pnpm 12.6.0: 112 tests in 1.8 min, clean
exit, nothing left listening on the port.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017s2w39tKNdBdD8kyfThuLy
* Revert "ci(e2e): run the browser jobs on x64"
The slowdown blamed on arm was the Playwright webServer hang fixed in the
previous commit: every test had finished and the job was waiting on an
orphaned vite process. The suite is not slower on arm, so the browser jobs
go back to ubuntu-26.04-arm like the rest.
This reverts commit 9f5af383.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017s2w39tKNdBdD8kyfThuLy
* ci(docker): publish one image at a time, newest wins
Two workflow_run publishes could overlap, and whichever finished last set
the tags, even if it built the older commit. A single concurrency group per
workflow with cancel-in-progress fixes that: ci already cancels superseded
runs on the branch, so publishes arrive in commit order and cancelling the
older one leaves the newest commit on the tags. Raised in review.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017s2w39tKNdBdD8kyfThuLy
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: sharevb <sharevb@gmail.com>
* perf(bundle): improve initial load + loading of tool
Render the sider once and only build the parts of it that are visible.
- App.vue renders BaseLayout around the layout switch instead of inside each
layout, so moving between a plain route and a tool route no longer unmounts
and rebuilds the whole sider (~460 menu items) on every navigation.
- CollapsibleToolMenu mounts a category's items the first time it opens. Every
category starts collapsed, so the menu was built entirely out of view.
- Its menuOptions computed no longer folds in the collapsed/active flags, which
rebuilt every category's tools array -- and re-rendered every item -- per route
change. They are read from the template instead.
- MenuItemTooltip measures truncation with scrollWidth/clientWidth rather than a
canvas measureText(), dropping a throwaway <canvas> and a getComputedStyle per
menu item.
Production build, 3 runs each, fresh profile per run:
first contentful paint 2476-2735ms -> 814-974ms
main-thread blocking 1806-2024ms -> 250-294ms
requests at boot 384 -> 208
click a tool from home 991-1014ms -> 178-197ms
switch between tools 281-322ms -> 74-125ms
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* Fix small width in mermaid exporter
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: sharevb <sharevb@gmail.com>
Generates restic CLI commands, with the focus on getting data back out of a
repository when the Backrest UI is not available: a full restore, a restore
limited to some files or a subfolder, a single-file dump, or a FUSE mount.
Covers the backends Backrest points at (S3 compatible such as Backblaze B2,
B2 native, local, SFTP, REST, rclone, Azure, GCS, raw URI), builds the
matching environment setup without ever putting a secret in the command
(the default reads them with `read -rs`), and turns the Backrest plan and
instance IDs into the `plan:` / `created-by:` tag filters restic expects.
Also generates the whole recovery sequence (snapshots, find, ls, restore,
mount) from the same repository settings, and ships a small Backrest cheat
sheet pointing at the config file, the data directory and the tag formats.
Generator only: nothing is executed and no input leaves the browser.
* docs(cheatsheets): expand and align the chmod, git, docker and swarm memos
Unify the four cheat sheets on one layout: short intro, emoji section
headings, grouped command blocks with aligned inline comments, reference
tables and a resources section. Placeholders are consistently <angled>.
- chmod: ls -l breakdown, octal and symbolic tables, special bits, umask,
recursive/selective changes, recipes, related commands and gotchas;
fix the directory access matrix (r alone does not grant file access)
and the --preserve-root default
- git: config and aliases, staging, commit, branching, merge/rebase with
conflict flow, remotes, stashing, inspection, cherry-pick, tags, undo
with a reset-mode table, cleaning, bisect, submodules and worktrees
- docker: contexts and events, build flags, registries, run/exec/inspect,
volumes and mounts, networks, the full compose workflow, cleanup and
one-liners
- swarm: required firewall ports, node and manager operations, live
service updates, job modes, placement expressions, publish modes,
health checks, secret and config rotation, task states and a
troubleshooting table
* docs(cheatsheets): put descriptions above commands so each line copies clean
Trailing inline comments meant selecting a single command also picked up
the padding and its description. Move every description onto its own line
above the command it documents, keeping one code block per topic.
- each command now stands alone on its line: triple-click copies exactly
the command, nothing else
- no comment column to re-pad when a longer command is added later, so
adding a line no longer reindents the whole block
- code lines drop from a median of 78 columns to ~22 (p90 42), so blocks
no longer scroll sideways on narrow screens
- wrap the three remaining long commands over several lines
- reword the descriptions that only made sense trailing a command
* docs(cheatsheets): rework the tmux, screen, zellij, nano, jq, zpool, CSS and JSONPath memos
Bring eight more cheat sheets onto the same layout as the Docker and Git
ones: short intro, emoji section headings, one code block per topic with
the description above each command, reference tables, resources at the end.
- tmux: session/window/pane/copy-mode tables, scripting with send-keys and
capture-pane, a starting .tmux.conf
- screen: shared and detached attach modes, split regions, copy mode,
logging and monitoring, nested-screen prefix
- zellij: correct the pane-mode bindings (d/r split, not v/h), add tab,
resize, move, search and session modes, layouts, zellij run/edit/action
- nano: add the command-line options and .nanorc settings the sheet was
missing, drop the stray H1 and broken headings
- jq: flags, core syntax, object/array/string tables, conditionals,
variables, reduce, and runnable recipes; drop the stale AWS AMI note
and the HTML pipe entities
- zpool: vdev and support-vdev types, import/export, properties, dataset
and snapshot/replication commands, tuning notes
- CSS selectors: split one 60-row table into basic, combinator, attribute,
structural, state, form, functional and pseudo-element groups; add
:is()/:where()/:has() and a specificity table
- JSONPath: RFC 9535 functions, worked example document, filter operators
* docs(cheatsheets): rework the Dockerfile, Compose and kubectl memos
- Dockerfile: instruction reference table, BuildKit cache/secret/bind
mounts and heredocs, COPY --chown/--chmod/--from, HEALTHCHECK,
STOPSIGNAL, a CMD vs ENTRYPOINT table, build commands and a worked
multi-stage example
- Compose: drop the obsolete version: framing, merge the two duplicated
"Compose vs Swarm" sections into one table, correct the claim that
file-based secrets are Swarm-only, and add depends_on conditions,
profiles, watch mode, include/extends/anchors, env interpolation and
the full CLI section
- kubectl: replace the removed rolling-update and the retired Heapster
section, add contexts, custom-columns and JSONPath output, rollouts,
debug containers, port-forward, secrets, labels, node maintenance and
one-liners; tag the code blocks so they highlight
* docs(cheatsheets): rework the sed, regex and common-regex memos
- sed: how the pattern space works, an addressing table, the full command
reference including hold-space and branching, multi-line recipes, and a
warning about BSD/macOS -i; merge the duplicated deletion and addressing
sections
- regex: add flags, lazy quantifiers, named groups and backreferences,
Unicode property escapes, replacement tokens, the JavaScript methods
that expose groups, and a gotchas section (stateful /g, catastrophic
backtracking, escaping user input)
- common-regex: rewrite the patterns that markdown escaping had mangled
into unusable text, group them by subject, and add UUID, semver, CIDR,
MAC, ISO 8601, duration, log-line and CSV patterns
Every pattern in common-regex now compiles, and the ones people copy most
(IPv4, UUID, semver, E.164, ISO dates, password rules, slug, duration,
MAC) were checked against matching and non-matching input.
* docs(cheatsheets): rework the XPath, conventional-commits and RJ45 memos
- XPath: give every table a CSS-equivalent column, fix the broken
"only children of type" expression, flag which functions are 2.0+ and
give the 1.0 workarounds for ends-with and case folding, add the axes
short forms, worked examples, and how to run XPath from devtools,
xmllint, lxml, Selenium and Playwright
- conventional commits: types table with the release effect each one
has, description do/don't table, footer reference, both ways to mark a
breaking change, a version-bump table, and husky v9 hook syntax
- RJ45: keep the colour swatches and the pinout image, add what each pin
carries on 10/100 vs Gigabit, the PoE standards table (correcting the
claim that the blue pair is the PoE pair), gigabit crossover, Cat8,
length and solid-vs-stranded rules, and a fault-finding table
* docs(cheatsheets): rework the nginx and PowerShell memos
- nginx: the whole sheet was a single 218-line code block; split it into
sections with a service/CLI block, a file-layout table, location
matching priority, root vs alias, reverse proxy and WebSocket headers,
load-balancing methods, TLS, rate limiting, caching and gzip, a
variable reference and a 502/504 troubleshooting table
- PowerShell: add discovery (Get-Help/Get-Command/Get-Member), functions
and param blocks, try/catch and error preferences, Invoke-RestMethod
and JSON/CSV conversion, services, jobs, remoting, modules and
execution policy, PowerShell 7 operators, an alias table, and repair
the mangled escape-character rows
* docs(cheatsheets): rework the vim and bash memos
Both sheets were a single unbroken code block with ASCII banners, so the
whole page rendered as one <pre> with nothing to scan. Rebuild them as
sections with key/action tables and runnable blocks.
- vim: explain the count + operator + motion grammar, add the text-object
table (ciw, ci", da(), registers and why "0p exists, the :g and :v
global commands, folds, completion, diff mode, undo by time, a :set
reference and a starter vimrc
- bash: parameter expansion, arrays including associative ones, the test
operator tables, redirection and process substitution, job control and
traps, set -euo pipefail with its caveat, shellcheck, and an ANSI
colour table in place of sixty lines of colour variables
The vim sheet dropped roughly a hundred lines of one person's leader-key
mappings and plugin bindings (NERDTree, Taglist, sparkup, PHP DOC), which
only worked with their dotfiles; a note now explains that leader mappings
come from your own vimrc.
* feat(docker): serve the app from any subpath with a runtime BASE_URL
BASE_URL was a build argument, so hosting under a subfolder meant building
your own image (or pulling the separate baseurl-it-tools tag, which is only
ever right for /it-tools/). Make it a runtime setting instead, so the regular
image works anywhere:
docker run -e BASE_URL=/it-tools/ ghcr.io/sharevb/it-tools:latest
The build is now path-agnostic. Vite's base is relative, so hashed assets and
lazy chunks resolve against the chunk that imports them, and the single
absolute anchor left in the output is a `<base href="/">` injected into
index.html. nginx rewrites that one tag per request (sub_filter) from the
normalised BASE_URL, and the app reads its base back from it at runtime
(src/utils/base-url.ts) for the router and for every URL it builds into
public/ -- import.meta.env.BASE_URL is meaningless in a relative build.
Also handled:
- both reverse-proxy styles: the prefix may reach the container (stripped by
the rewrite) or be stripped by the proxy first (nothing to do). The assets
location matches with or without it, so a missing chunk is still a 404
rather than the SPA shell.
- `/it-tools` redirects to `/it-tools/`, with a relative Location so the
scheme of the proxy hop does not leak into it.
- the PWA: manifest URLs are relative to the manifest, workbox precache
entries relative to the service worker, and the worker is registered
against the runtime base rather than the build-time one.
- BASE_URL is normalised (`it-tools`, `/it-tools`, `/it-tools/` all work) and
rejected if it is not a plain path, since it lands in an HTML attribute and
in an nginx regex.
Defaults are unchanged: with BASE_URL unset the rendered config and the
served page are what they were, except that index.html loses ETag/Last-Modified
to sub_filter. On a read-only filesystem the template cannot be re-rendered,
so BASE_URL is ignored there and the container now says so, like it already
had to for PORT.
Building with --build-arg BASE_URL still works but only moves the image
default; the baseurl-it-tools tag is now just latest with that default.
Closes sharevb/it-tools#403
* fix(docker): restore the PWA update reload, escape BASE_URL in the nginx regexes
Follow-up from review of the runtime BASE_URL change.
- registerSW() in autoUpdate mode reloaded the page when a newly deployed
worker took over (workbox-window's `activated` handler); hand-rolling the
registration dropped that, so a tab kept running the previous bundle until
it navigated. Reimplemented on `controllerchange`, guarded so a first
install -- which also claims the page -- does not reload. Verified by
counting document loads across an install and a simulated deploy: 1 load on
first visit, exactly 1 reload when a new worker takes over.
- The comment justifying the hand-rolled registration was wrong: register()
does resolve a relative URL against `<base href>`. The real reason is
workbox-window's own urlsMatch(), which resolves against location.href, so
a relative sw URL misidentifies the worker on a route deeper than one
segment. Comment now says that.
- BASE_URL allows `.`, which is a metacharacter in the two nginx regexes it
is spliced into: `/it.tools/` also matched `/itXtools/`. The entrypoint now
exports regex-escaped forms for those, keeping the literal value for the
sub_filter replacement and the redirect target.
- Dropped `$uri/` from try_files. Nothing in the build is a directory with an
index, so the only thing it ever produced was nginx's trailing-slash
redirect -- computed after the prefix rewrite, so `/it-tools/figlet-fonts`
answered `301 /figlet-fonts/` and bounced the browser out of the app.
- The sub_filter comment claimed index.html was the only response losing
ETag/Last-Modified; public/visualsubnetcalc/calc.html is HTML too and is
equally affected. Comment corrected.
- README: in the prefix-stripping proxy setup, `/it-tools` without the
trailing slash never reaches the container, so the proxy has to redirect it
(as the sample does). Said so.
- The new e2e test reloaded a page that had just started pulling in a tool's
chunks; WebKit cancelled the load ~1 run in 3 (the app reloads itself on an
aborted chunk fetch). It opens the URL in a second tab instead: 8/8 on
WebKit, 3/3 browsers green.
* fix(build): validate BASE_URL before it reaches the <base href>
From Copilot's review of #10.
The container validates its runtime BASE_URL, but the build-time one went
straight into an HTML attribute unchecked: a value carrying a quote rewrote
the tag around it, and one carrying a space or `..` quietly produced a page
that loads from the wrong place. Apply the same rule the entrypoint does --
a plain path of unreserved characters -- and fail the build otherwise.
Also: "can not" -> "cannot" in the read-only filesystem warning.
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* ci(e2e): one job per browser with three workers
Replace the 3-way shard matrix with a per-browser matrix. Each job now
runs one Playwright project with three workers instead of three jobs each
running a mixed slice of all browsers at one worker.
The old layout gave each of three runners a single worker, so each job
used one of its four cores; a browser failure also showed up as
"shard 2/3" with no indication of which engine broke.
- `workers: 1` -> `3` on CI. Measured on a 4-core box: 9.4 min at one
worker vs 5.1 min at three, with the box ~95% busy. A fourth worker
added nothing and left no core for the preview server.
- `fail-fast: false` so one engine failing still reports the other two.
- Install and cache only the browser a job actually needs, instead of all
three in every job.
- Fix the cache key, which read `.dependencies.playwright` and always
resolved to `null`; the package is `devDependencies["@playwright/test"]`,
so the key never changed when Playwright was upgraded.
- `set_node_mem.sh` grows a `NODE_MAX_OLD_SPACE_MB` override, used to cap
each worker at 4GB. Playwright workers inherit `NODE_OPTIONS`, so
otherwise every worker claims a machine-sized heap ceiling.
The script is now POSIX. It is sourced from package.json scripts, which
run under dash, where `[[` does not exist -- every run was logging
"[[: not found" and silently falling through to the Linux branch, so the
macOS detection never worked when invoked that way.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA
* refactor(set_node_mem): capture memory sizes before the arithmetic
Addresses review feedback on the sourced heap-sizing script. Reads
closer to the original, which also assigned the raw value first.
Behaviour is unchanged: dash still produces --max-old-space-size=15051
by default and honours NODE_MAX_OLD_SPACE_MB.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA
* fix(e2e): give CI more timeout headroom now that workers share a runner
The webkit job failed on `markdown-diff`, which mounts a Monaco diff
editor -- the heaviest tool in the suite -- on the slowest engine:
1 failed [webkit] markdown-diff Has correct title
1 flaky [webkit] markdown-diff Diff editor is visible with two panes
107 passed (9.3m)
Both are first-paint timing, not behaviour. The 15s expect timeout was
sized for one worker per runner; with three sharing four cores, first
paint of a lazy-loaded tool takes longer, and the failure survived two
retries.
Raise the CI budget to 30s for assertions. The test timeout has to move
with it -- it defaults to 30s, so a 30s expect timeout would trip the
test timeout first and report a timeout instead of the failing
assertion. Local runs keep the previous 15s/30s.
Timeouts are upper bounds, so passing tests are unaffected.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA
* fix(e2e): drop the inline timeout that caps markdown-diff below the CI budget
Raising the CI expect timeout to 30s fixed one of the two webkit
failures in markdown-diff but not the other:
before: 1 failed + 1 flaky, 107 passed
after: 1 failed, 108 passed
The surviving failure asserts the title with an inline
`{ timeout: 15000 }`, which overrides the global expect timeout, so it
kept the old budget while its neighbour picked up the new one.
The inline value only restated what the global used to be, so removing
it is a no-op locally (still 15s) and lets CI use its 30s budget.
The four inline overrides in mermaid-exporter are left alone: those
raise the timeout to 30s rather than capping it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA
* perf(test): scope jsdom to the suites that need it
`test:unit` ran `vitest --environment jsdom`, which builds a jsdom for
every test file. Only 7 of 128 need one -- the other 121 are pure
functions and pass unchanged under the node environment.
Measured on a 4-core box, `pnpm test`, warm cache:
before 89s wall, environment 128.79s, tests 4.70s
after ~56s wall, environment 7.37s, tests 5.30s
Environment setup was the single largest cost in the run and is now
~7s. The tests themselves were always ~5s.
Default to the node environment and let the 7 DOM-dependent suites opt
in with a `// @vitest-environment jsdom` docblock:
src/ui/c-input-text (@vue/test-utils mount)
src/ui/n-input-number-i18n (@vue/test-utils mount)
src/tools/certificate-key-parser (webcrypto-liner-shim)
src/tools/extract-text-from-html
src/tools/markdown-preview
src/tools/file-splitter
src/tools/django-secret-generator
Same 128 files and 1035 tests pass before and after.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA
* test: drop jsdom from three more suites and fix two assertions
Down from 7 jsdom suites to 4. The three removed did not need a DOM;
they needed it by accident.
certificate-key-parser
The service and its infos module each did a side-effect
`import 'webcrypto-liner-shim'`. That shim polyfills WebCrypto for
browsers without a secure context (see README: WebCrypto needs HTTPS),
and it touches browser globals at import time, so pulling it into a
node process fails before any test runs.
Node has WebCrypto natively, so the polyfill only belongs on the
browser path. Move the import to certificate-key-parser.vue, which is
what pgp-keygen.vue and pgp-encryption.vue already do. It now also
evaluates before sshpk rather than after it, and no longer loads
eagerly through the tool's infos module.
That let the test drop its jsdom workaround too: it was replacing
global.TextEncoder/TextDecoder with the text-encoding-utf-8 polyfill,
which node does not need. The `no-restricted-globals` disable existed
only for those writes and is gone with them.
Side effect: the run no longer emits the shim's asm.js linking
warning, which was the only warning left in the unit suite.
extract-text-from-html
`validateHtml` parsed the input with DOMParser, discarded the
document, and validated with a regex instead. `parseFromString` with
'text/html' recovers from bad markup rather than throwing, so the
catch was unreachable and the whole block was dead -- and the only
reason the file needed a DOM.
django-secret-generator
Used `window.crypto`; `globalThis.crypto` is the same API in browsers
and in node.
Two assertions did not test what they claimed:
expect(getTextFromHtml('<p>..</p>')).toString();
`.toString()` on the assertion object asserts nothing -- this passed
even if the function returned null. Now checks the type.
expect(getSecretKey()).toMatch(/[a-z0-9!@#$%^&*(-_=+)]{50,60}/);
`toMatch` searches rather than anchors, so any key of 50 chars or more
passed regardless of length. Split into an explicit length range and an
anchored charset check. The old class was also wrong: `(-_` reads as the
range `(` to `_`, which accepts digits and uppercase.
Also moved a valid-html case that sat in the invalid block, and fixed
the `invlid` / `django-secret-generato` typos.
128 files pass, 1035 tests -> 1036 (the django assertion is now two).
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA
* chore(deps): drop the now-unused text-encoding-utf-8
The certificate-key-parser test was the only consumer: it replaced
global.TextEncoder/TextDecoder with this polyfill so the suite could run
under jsdom. That workaround went away when the suite moved to the node
environment, which provides both natively.
pnpm also prunes an orphaned transitive crypto-js@4.2.0, whose own
metadata marks it as no longer maintained. The lockfile change is 22
deletions and no additions.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA
* ci: enable oxlint type-aware linting, drop typecheck from build and CI
Adds oxlint-tsgolint and turns on `options.typeAware`, which brings 59
type-aware rules from typescript-eslint into `pnpm lint`. It found 59
issues; `--fix` resolved 3 (useless `= undefined` defaults).
The remaining 56 are semantic -- floating promises, base-to-string,
misused string spread -- spread over ~20 files, so they are staged as
`warn` rather than fixed blind in a CI change. Lint exits 0 and the
findings are visible in the output, ready to burn down by rule.
TypeScript stays on 6.0.3. The docs ask for TypeScript 7+, but that is
about tsgolint's own toolchain, not the project's: oxlint-tsgolint ships
a self-contained binary with no npm dependencies, and produces the same
56 findings against TypeScript 6.
Upgrading the project to TypeScript 7.0.2 was tried and reverted -- it
breaks the build:
[@vue/compiler-sfc] No fs option provided to `compileScript` in
non-Node environment. File system access is required for resolving
imported types.
Isolated by rebuilding with the same scripts on 6.0.3, which passes. TS
7's native port also drops the `./lib/tsc` subpath export, so vue-tsc
cannot start at all -- neither 3.3.6 nor the current 3.3.10.
Script and workflow cleanup:
- `build` no longer runs `vue-tsc --noEmit` first; it just builds.
- The `ci` workflow drops its Type check step. It already runs `pnpm
lint`, which now carries the type-aware rules. No other workflow had
a typecheck step.
- `precommit` and the PR template drop `pnpm typecheck` for the same
reason.
The `typecheck` script itself is kept, and so is vue-tsc. tsgolint
analyses no .vue files at all -- 0 of the 59 findings came from one --
so vue-tsc remains the only thing that type-checks single-file
components, and deleting it would drop that coverage with nothing
replacing it. It is simply no longer wired into the build or CI.
Renovate's TypeScript toolchain group gains oxlint-tsgolint, whose
version tracks TypeScript releases.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA
* refactor(oxlint): move config to oxlint.config.ts
Replaces .oxlintrc.json with a typed config built from oxlint's own
`defineConfig`, so rule names and options are checked by the editor
instead of being free-form JSON strings, and the staged type-aware rules
can carry an explanation next to them.
Verified as a faithful translation by diffing `oxlint --print-config`
between the two: identical resolved rule set (167 rules), no rule added,
dropped or re-levelled, and `options.typeAware` equal. Same 56 warnings
and 0 errors either way.
TypeScript configs are auto-discovered but marked experimental upstream
and require running under Node, which `pnpm lint` already does.
Also records why vue-tsc stays, since oxlint's vue plugin invites the
opposite conclusion: those 46 vue rules are style and correctness lint
rules, not a type checker. Planting
const deliberateTypeError: number = getSecretKey();
in a .vue script block is reported by neither `--type-aware` nor
`--type-check` -- oxlint exits 0 -- while vue-tsc catches it as TS2322.
tsgolint only analyses .ts files.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA
* ci: restore typecheck and run lint + typecheck on every build path
oxc-project/oxc#15761 ("oxlint: better vue support") is the tracking
issue for Vue in oxlint. It is open, unimplemented, and scoped to
parsing template bindings so structural lint rules can work -- not to
type checking. Even once it ships it would not cover what vue-tsc does,
and the maintainer notes eslint-plugin-vue cannot be fully replicated
because Vue templates carry no JavaScript bindings for the linter.
So vue-tsc stays and goes back into CI. Confirmed the gap is real by
planting `const x: number = getSecretKey()` in a .vue script block:
oxlint exits 0 under both --type-aware and --type-check, vue-tsc reports
TS2322.
Every job that runs `pnpm build` directly now runs lint and typecheck
first:
sharevb-ci + typecheck
sharevb-docker-nightly-release + typecheck
sharevb-docker-realease-latest + typecheck
sharevb-docker-realease-baseurl + typecheck
sharevb-github-pages-publish + lint, typecheck (had none)
sharevb-releases + lint, typecheck (had none)
The two publish workflows were building and shipping without any check
at all. Left alone: the nightly github-release job, already gated by
`needs: ci` on the same commit, and the e2e workflow, whose three
browser jobs build on the same commit that the ci workflow is already
checking in parallel.
`precommit` and the PR template get typecheck back for the same reason.
oxfmt config moves to oxfmt.config.ts alongside oxlint's, using oxfmt's
own defineConfig. Same 832 files are flagged before and after, so the
translation is faithful.
Format checking is deliberately NOT wired into CI yet: `pnpm fmt:check`
currently fails on 832 of 1613 files (410 .vue, 359 .ts, 50 .md, 12
other). The scripts exist but have never been enforced, so the tree has
drifted. Enabling the gate needs a repo-wide reformat, which belongs in
its own commit rather than buried here.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA
* ci: report formatting drift without enforcing it
Adds `pnpm fmt:check` to the ci workflow with continue-on-error, so the
832 files that predate oxfmt being run in CI are visible on every PR
without blocking anything. Drop continue-on-error once a repo-wide
reformat lands.
Only the ci workflow gets it. It is the one that runs on pull_request,
so it is where a non-blocking signal is actually read; adding it to the
docker and release workflows would just add noise to logs nobody opens.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA
* refactor(test): pin the timezone in config instead of every script
`TZ=UTC` was repeated across four scripts, including once redundantly
(`test` set it and then called `test:unit`, which set it again).
It is genuinely load-bearing for the unit suite. Running vitest on
America/New_York fails 7 tests across 5 files -- date-time-converter,
days-calculator, crontab-generator and friends assert on formatted dates
and offsets. Moved to `test.env` in vite.config.ts, which is enough on
its own: the full suite passes with the host on America/New_York and on
Asia/Tokyo with no inline prefix.
That also fixes `pnpm coverage`, which never had the prefix and so would
fail those same 7 tests on any machine not set to UTC.
For e2e it was doing nothing. The browser timezone is already pinned by
`timezoneId: 'Europe/Paris'`, and the specs do no date maths on the node
side -- the one `Date.now` override runs inside `addInitScript`, so it
is browser-side. The timezone-sensitive specs pass on Asia/Tokyo without
it. Pinned in playwright.config.ts anyway so the runner stays
deterministic if a spec ever does compute a date in node.
Also switches `test` from `npm run` to `pnpm run`, since everything else
in the repo uses pnpm.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA
* chore: drop the `test` alias in favour of `test:unit`
`test` was a pass-through to `test:unit` and nothing else, so it only
added a level of indirection and a second name for the same thing --
confusing next to `test:e2e`, which is a different suite.
Repointed all five callers: the ci, nightly-release and two docker
release workflows, plus the README's "Run Unit Tests" snippet.
Note `pnpm test` no longer resolves, since npm's implicit test
lifecycle has nothing to fall back on now.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA
* refactor(e2e): fold test:e2e:dev into test:e2e
The two scripts were not two environments, they were two answers to
"who owns the web server":
test:e2e Playwright starts `pnpm preview` on :5050 and tests the
production build
test:e2e:dev assumes `pnpm dev` is already up on :5173 and starts
nothing
That is one variable, not a second workflow, so it does not need a
second script. The config now derives it: if E2E_BASE_URL points
somewhere other than the preview URL, you are supplying the server and
Playwright leaves the lifecycle alone. NO_WEB_SERVER is gone -- it only
ever restated what a custom base URL already implies.
Renamed BASE_URL to E2E_BASE_URL along the way. vite.config.ts reads
BASE_URL as the app's base path (`/it-tools/`, set by the Pages and
Docker builds), so one exported value meant two incompatible things and
would have pointed Playwright at a path instead of a URL.
Both paths verified:
pnpm test:e2e 5/5, preview started
E2E_BASE_URL=http://localhost:5173 pnpm ... 5/5, dev server reused
Documented both in the README, which had no e2e section at all -- the
script was the only place the dev flow was written down. Also notes that
a cold dev server compiles on demand and can blow the assertion timeouts
on a first run; that cost 2 failures until the routes were warmed.
Also fixes webServer.command, which shelled out to `npm run preview`.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA
* chore: delete set_node_mem.sh
The script raised the V8 heap to total RAM minus 1GB and was sourced by
build, test:unit and test:e2e. Nothing needs it any more.
The build does not come close to the heap. It completes on Node's
default (2096MB here) and still completes when capped at 512MB -- a
thirtieth of what the script was handing out:
cap 15051MB (script) 92s, 93s
default 2096MB 94s, 103s
cap 1024MB 91s
cap 512MB 95s
Unit tests are the same story: 35s and 37s with, 36s and 37s without.
No measurable difference anywhere, so the script was not buying speed
either.
The reason is that the build is not a JavaScript-heap workload. It peaks
around 6.5GB of system memory while running fine under a 512MB heap cap,
because rolldown does the work in Rust, outside V8. The README's "you
need around 16GB" dates from the old JS bundler; corrected to ~8GB with
the measured figure.
Removing it also retires two things it dragged along: the
NODE_MAX_OLD_SPACE_MB override added for Playwright, which existed only
because every worker inherited a machine-sized ceiling from this script,
and a POSIX bug where `[[` failed under dash on every single run.
Verified with NODE_OPTIONS unset, so at the 2096MB default CI will see:
build 87s, 129 files / 1072 unit tests, e2e 5/5.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA
* fix(e2e): key the browser cache on the installed Playwright version
The key read the range from package.json, so it was `^1.62.0` rather
than `1.62.0`. Those agree today, but the range also matches 1.62.3 and
1.63.0: a lockfile bump inside the same range leaves the key unchanged,
so the run restores browsers for the old version and the cache is never
refreshed, because that key already exists.
Read node_modules/@playwright/test/package.json instead. pnpm/setup has
already installed dependencies by this step, so the resolved version is
available.
Raised by Copilot on the upstream PR.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA
---------
Co-authored-by: Claude <noreply@anthropic.com>
* ci: use pnpm/setup for pnpm setup and install
Replace the corepack bootstrap + actions/setup-node + separate
`pnpm install` steps with a single `pnpm/setup` step, which installs
pnpm (version read from package.json `packageManager`), installs Node,
caches the pnpm store and runs `pnpm install`.
Node 24 stays pinned via `runtime: node@24`, and the GitHub Pages
workflow drops `pnpm/action-setup` in favour of the same step (it now
caches the store too).
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA
* chore: pin Node in package.json, bump pnpm to 11.22.0
Move the Node version out of the workflows and into package.json, so the
`pnpm/setup` steps are just `cache: true`:
- `engines.node` pins Node 24 as package metadata.
- `devEngines.runtime` is the field `pnpm/setup` actually reads to pick
the runtime, and pnpm itself uses it to run scripts, so it is needed
for the pin to take effect.
Bump `packageManager` from pnpm 11.11.0 to 11.22.0 (latest 11.x).
pnpm records the runtime in the lockfile (`node@runtime:24.19.0`), and
the 11.22.0 resolver writes peer suffixes differently from 11.11.0, so
pnpm-lock.yaml is regenerated. Lint, typecheck, unit tests and build all
pass on the updated lockfile.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA
* chore: bump .nvmrc to Node 24.19.0
The repo was already on Node 24 everywhere else (Dockerfile, workflows,
and now engines/devEngines in package.json) while .nvmrc still selected
22.19.0. Align it with the rest, matching the node@runtime:24.19.0
version pnpm resolved into the lockfile.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA
---------
Co-authored-by: Claude <noreply@anthropic.com>
* fix(deps): move @xmldom/xmldom off the versions upstream flagged as critical
Upstream deprecated 0.8.13 and 0.9.10 with 'this version has critical issues,
please update to the latest version'. 0.8.14 and 0.9.11 are the patched
releases of those same lines.
The direct dependency moves to ^0.8.14, which also lifts xml-crypto and
xml-encryption since both accept the whole 0.8 line. @boxyhq/saml20 pins
0.9.10 exactly, so a version scoped override takes it to 0.9.11.
epubjs asks for ^0.7.5 and the 0.7 line has no release that is not deprecated,
so 0.7.13 stays until epubjs moves; overriding it across two minors of an xml
parser is not something to do blind.
Also refreshes the stale minimumReleaseAgeExclude entry, which still named
0.8.12 and 0.8.13. The policy is not currently switched on, but 0.8.14 was
published three days ago and the list is where this repo records that.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mf5V2jMpFFXxGVXZU5rHBq
* test(crontab-generator): pin the cron dialect detection and the execution times
getLastExecutionTimes was only asserted to return five items, and getCronType
only covered four expressions. Neither is enough to move a cron library under.
Adds a classification table spanning the standard and aws dialects, including
the six field expressions where they overlap, and freezes the clock so the
returned execution times can be pinned exactly, timezone offsets included.
No behaviour change: this is the reference the cron-parser v5 upgrade has to
reproduce.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mf5V2jMpFFXxGVXZU5rHBq
* fix(deps): upgrade cron-parser to v5, keeping the aws dialect detected
Upstream deprecated v4 with 'v4 is no longer maintained, upgrade to v5'. The
rename is mechanical (parseExpression -> CronExpressionParser.parse) but the
upgrade is not, because v5 accepts the six field aws dialect that v4 rejected.
getCronType relied on that rejection: it tried the standard parser first and
treated a throw as the signal to fall through to event-cron-parser. Under v5
'0 11-22 ? * MON-FRI *' parses as standard, so aws expressions would have been
classified as standard, given the wrong next execution times and reported as
invalid whenever the aws dialect was requested.
Detection now keys off the '?' marker, which AWS EventBridge requires in one of
the two day fields and which standard cron gives no meaning to. Checked against
v4 over a 32 expression corpus spanning both dialects: identical classification
everywhere, including '* * * * * *', which is valid in both and stays standard.
getLastExecutionTimes keeps returning string[]: v5 types toJSON() as nullable
and the caller joins the array, so a hole would have silently rendered as a
blank line.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mf5V2jMpFFXxGVXZU5rHBq
* fix(build): stub bare fs/promises, which cron-parser v5 reaches for
cron-parser v5 adds CronFileParser, exported from the package entry, and it
does require('fs/promises') to read crontab files. The browser build has no
business loading that, and the alias list only stubbed 'node:fs/promises'.
Vite matches aliases by prefix, so the bare 'fs' entry rewrote 'fs/promises'
into '_empty.ts/promises' and the build failed with UNLOADABLE_DEPENDENCY:
'Not a directory'. The new entry has to sit before 'fs' for that reason.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mf5V2jMpFFXxGVXZU5rHBq
* refactor(crontab-generator): run each cron parser at most once per classification
From review feedback. getCronType could evaluate the standard branch twice for
an expression that is neither dialect, and getLastExecutionTimes asked for the
type twice, which repeated the whole classification. The '?' marker now selects
which dialect to try first and each parser runs once; the caller keeps the type
in a local.
Behaviour is unchanged, the 30 assertions of the untouched test file still pass.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mf5V2jMpFFXxGVXZU5rHBq
---------
Co-authored-by: Claude <noreply@anthropic.com>
* refactor(websocket-tester): use the native WebSocket instead of w-websocket-client
w-websocket-client ships a single 1465 byte UMD that wraps the platform
WebSocket: it builds `${url}/?token=${token}`, wires four handlers and returns
the socket. It nevertheless declares wsemi and lodash-es as runtime
dependencies, which its published build never imports, and wsemi alone pulls in
20 packages. Installing all of that to avoid writing twenty lines is a bad
trade, so the wrapper now lives here, behind tests.
Removes 14 packages from the lockfile (w-websocket-client, wsemi, diff2html,
tippy.js, @popperjs/core, seamless-scroll-polyfill, tree-kill, eventemitter3,
xxhash-wasm and their own transitives), and drops the Node-only `ws` from the
browser app's dependency graph; `ws` now only comes in through ethers.
Two follow-on effects:
- wsemi was the only subdependency wanting xlsx, which is why the xlsx CDN
override forced pnpm's blockExoticSubdeps protection off repo-wide. Only this
package depends on xlsx now, so the protection goes back to its default. A
forced re-resolution of all 2484 packages passes with it enabled and leaves
the lockfile byte identical.
- Connecting with an invalid url used to return { error } from the wrapper
instead of a socket, so the next send() threw 'wsc.send is not a function'
and nothing was ever logged. The failure is now reported in the log.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mf5V2jMpFFXxGVXZU5rHBq
* fix(websocket-tester): make connection errors readable and normalize the url
Both from review feedback on the pull request:
- The log showed 'Error: [object Event]' for a failed connection, because the
native onerror handler receives a bare Event whose reason the websocket spec
deliberately withholds. formatWebSocketError() turns it into 'connection
failed', keeps the message of a real Error, and stringifies anything else.
The old client had the same flaw, but this pr claims to report connection
failures in the log, so it should actually report something.
- buildWebSocketUrl() now trims a trailing slash, so 'ws://host/' produces
'ws://host/?token=...' rather than 'ws://host//?token=...'. This is a
deliberate deviation from the previous client, which concatenated blindly.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mf5V2jMpFFXxGVXZU5rHBq
---------
Co-authored-by: Claude <noreply@anthropic.com>
* 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>
Five fixes to the Docker image, found while running it-tools on
OpenShift, where containers run as an arbitrary UID. No application code
is changed.
Start on a read-only filesystem. `docker run --read-only` and Kubernetes
readOnlyRootFilesystem crash-loop the container, because
20-envsubst-on-templates.sh checks its output directory with
`[ ! -w $dir ]`. That only reads permission bits, so a read-only mount
passes the check, the write fails with EROFS and `set -e` stops the
entrypoint. 19-skip-envsubst-if-readonly.envsh now tests the directory
with a real write and, on failure, points NGINX_ENVSUBST_TEMPLATE_DIR at
a missing path so the envsubst script exits early. That is only safe if
the config in the image is already correct, and today it is nginx's
stock welcome config, so the Dockerfile renders the template at build
time as well. Writable setups are unchanged: the write test passes,
nothing is exported and the config is rendered at startup as before, so
a custom $PORT still works.
Skip IPv6 when the host has none. nginx.conf always listens on IPv6, so
where IPv6 is off nginx fails with `socket() [::]:8080 failed (97:
Address family not supported by protocol)`.
25-remove-ipv6-listen-if-unavailable.sh comments those lines out, using
the same /proc/net/if_inet6 check as nginx's own
10-listen-on-ipv6-by-default.sh, and exits at once when IPv6 works. It
probes the directory before editing, because `sed -i` rewrites through a
temporary file there, so a writable file in a read-only directory is not
enough, and it tolerates a failed edit so it can never stop the
entrypoint.
Match workers to the cpu limit. `worker_processes auto` counts the
host's cores, not the container's cpu limit, so the image starts 256
workers on a 256-core host in any container size. `docker run -m 192m`
is enough to be OOM-killed at startup. Setting
NGINX_ENTRYPOINT_WORKER_PROCESSES_AUTOTUNE enables the script nginx
already ships. Containers without a cpu limit keep one worker per core.
This is the only change that affects a deployment that works today.
Return 404 for missing assets. All paths fall back to index.html, so a
missing build file returns 200 and text/html, and the browser reports a
confusing MIME error instead of a 404. /assets/ now skips the SPA
fallback. Sub-folder requests such as /it-tools/assets/... still match
`location /`, so those deployments do not change.
Stop remapping js. nginx.conf includes mime.types, which already maps
js, then maps it again, so every startup logs a duplicate extension
warning. mime.types has no entry for mjs, so mjs stays and js goes.
Signed-off-by: Sebastian Danielsson <sebastian.danielsson@proton.me>
* feat(git-memo): add i18n support and Chinese translation
- Dynamically load locale-specific markdown content
- Add comprehensive Chinese translation for git memo
- Apply theme-aware styles for tables and links
* feat(git-semantic-commit-memo): add i18n support and table styling
Load memo markdown dynamically based on locale, add Chinese translation, and apply theme-aware styles for tables and links.
* feat(jq-memo): add i18n support and Chinese memo
Support multiple languages for the jq memo tool by dynamically loading locale-specific markdown files based on the current i18n locale, and add the Chinese translation (jq.zh.md).
* feat(jsonpath-memo): add i18n support for memo component
Dynamically load localized markdown files based on the current locale, falling back to the default English memo.
* feat(markdown-cheatsheet): add i18n support with Chinese content
Load locale-specific memo content dynamically using glob import and provide the Chinese translation for the Markdown cheatsheet.
* style(markdown-cheatsheet): add table and link styling
Add borders, padding, and collapse for tables, and set link color using theme variables.
* feat(nano-memo): add i18n support and table/link styling
- Dynamically load locale-specific content markdown based on the current language
- Add Chinese translation content file
- Apply theme-aware border and link colors for tables and links
* feat(nginx-memo): add i18n support and styling improvements
- dynamically load localized content based on current locale
- add Chinese (zh) translation for nginx memo
- add table and link styling using theme variables
- fallback to default content if localized version is missing
* feat(powershell-memo): add i18n support and Chinese translation
Load localized Markdown content based on the current locale, falling back to the default English version. Include the complete Chinese translation file.
* feat(sed-memo): add i18n support and zh docs
* feat(tmux-memo): add i18n support and Chinese translation
- Dynamically load locale-specific markdown content
- Add Chinese translation (tmux-memo.content.zh.md)
- Fall back to default content if locale file not found
* feat(vim-memo): add i18n support and zh content
- Implement dynamic locale-based content loading
- Add comprehensive Chinese translation file
- Update styles for tables and links using theme variables
* feat(xpath-memo): support locale-based markdown loading
Load the appropriate markdown file based on the current i18n locale, falling back to the default when a localized version is not available.
* feat(zellij-memo): add i18n support for memo content
Load locale-specific markdown files dynamically based on the current language setting, falling back to the default when a translation is unavailable.
* feat(chmod-memo): add i18n support and Chinese docs
- load locale-specific markdown via dynamic imports
- add chmod.zh.md with detailed Chinese documentation
- fall back to default chmod.md if no locale match
* feat(screen-memo): add i18n support with Chinese translation
Add dynamic locale-based markdown loading for the Screen Memo tool
and include the complete Chinese (zh) translation.
* feat(regex-memo): add i18n support with Chinese translation
Load locale-specific markdown content dynamically based on the selected language.
Large inputs (e.g. a 64KB JSON pasted into the JSON prettify tool) pushed
all tool content off-screen. The mobile UX overhaul (#474) switched the app
to document-level scrolling (overflow: visible, no nested scroll container),
which exposed that the .content flex column has the default min-width: auto
and refuses to shrink below its content's min-content width. A long,
non-wrapping code line therefore stretched the whole column past the
viewport instead of scrolling inside the viewer.
Set min-width: 0 on the .content flex child so the column shrinks to the
available width and the inner scrollers (n-scrollbar / CodeMirror) handle
horizontal overflow as intended.
Claude-Session: https://claude.ai/code/session_016ujGA3EmSyT39H7awrRuCS
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
* feat: mobile UX overhaul, theme flash prevention and build cleanup
UI/UX (mostly mobile):
- Prevent white flash on load: pre-paint inline style + script in
index.html applies the persisted theme before first paint.
- Match browser chrome to the app background: theme-color meta kept in
sync for Android/older iOS, and body background pinned to the Layout
color for Safari 26+, which ignores theme-color and samples the page.
- Make the document the app's scroller instead of n-layout's nested
container: single scrollbar, native iOS tap-status-bar-to-scroll-top,
natural toolbar collapsing; desktop sider becomes sticky and router
scrollBehavior restores/resets scroll on navigation.
- Full-width mobile menu that fades in under an always-visible sticky
top bar, seamless app background without the hero gradient, closes on
navigation (including About while already on /about), scroll-locked
behind, symmetric spacing around the title block and icon row.
- Language selector and theme toggle become icon dropdowns; theme
supports System/Light/Dark via useColorMode (same storage as before).
- Route-change loading spinner scoped to the page area so the nav bar
stays visible; spinner remains cosmetic-only (350ms delay).
- Halve content padding on small screens; reduce home top padding.
- Full-width expand/collapse tools button so its width doesn't jump.
- No sticky hover styles on touch devices (hover gated behind
@media (hover: hover)).
Build:
- Rename deprecated rolldown output.advancedChunks to codeSplitting.
- Fix unocss 'unmatched utility' warnings in the pretty-scrollbar
shortcut; override js-sha256 to 0.11.x (drops eval); bump
javascript-obfuscator to 5.4.6.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TNayL5ianBBucVapfkM8CC
* Remove unnecessary comment
* Refresh lockfile, remove releaseage ignore
Signed-off-by: Sebastian Danielsson <sebastian.danielsson@proton.me>
* chore: remove unused LocaleSelector component
Language selection moved into the NavbarButtons dropdown; nothing
references this component anymore. Its i18n keys are left in place.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TNayL5ianBBucVapfkM8CC
---------
Signed-off-by: Sebastian Danielsson <sebastian.danielsson@proton.me>
Co-authored-by: Claude <noreply@anthropic.com>
* perf(i18n): bundle only English eagerly, lazy-load other locales on demand
The entry bundle previously inlined all 19 locales (11 MB minified, 2.4 MB
gzip) via the virtual @intlify messages module. Now only en (plus tool-level
en files) is compiled into the entry; every other locale becomes its own lazy
chunk fetched the first time it is selected, with vue-i18n falling back to
English until the messages arrive.
VITE_AVAILABLE_LOCALES now filters the locales offered at runtime instead of
trimming the build; unlisted locale chunks are emitted but never fetched.
Also adds shims for *.yml default imports and @tabler/icons-vue per-icon
deep imports (used by the follow-up icon-loading commit).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea
* perf(tools): load tool icons lazily and parallelize boot config fetches
The eager tool-metadata glob pulled ~460 static icon component modules into
the entry graph. Tool definitions now reference their icon via
defineAsyncComponent + per-icon dynamic import, and an advancedChunks group
merges all of them into a single lazy 'tool-icons' chunk fetched off the
critical path when the menu/home first renders. Exact same glyphs as before.
Entry-graph components (navbar, layouts, ToolCard, copy buttons, command
palette, home) switch from runtime icon packages to build-time-inlined
~icons/tabler imports so no static reference drags the icon chunk into the
entry bundle.
src/tools/index.ts also fetched tools-filter.json and external-tools.json
sequentially under top-level await, blocking first render on two serial
round-trips; they are now fetched in parallel.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea
* perf(pwa): precache only the app shell, cache chunks and wasm on demand
The service worker precached every JS chunk and WASM binary — 1,679 files,
~162 MB — on first visit, saturating bandwidth while the page was trying to
become interactive. Precache is now limited to the shell (css/html) with
CacheFirst runtime caching for same-origin hashed scripts, workers and wasm,
so offline support covers everything the user has actually opened.
VITE_PWA_FULL_PRECACHE=true restores the previous cache-everything behavior
for self-hosted full-offline deployments.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea
* perf(menu): eliminate layout thrash in sider and category animations
The sider show/hide animates CSS width, which re-laid-out all ~460 menu
items plus the page content on every frame; category expand/collapse
animates grid-template-rows with the same cost. Two changes cut the
per-frame work:
- content-visibility: auto on each category container so offscreen
categories skip layout and paint entirely during animations
- the sider scroll content is pinned to the expanded width, so the width
transition clips the menu instead of re-wrapping every item per frame
Measured with the Long Animation Frames API (dev mode, full hide+show
cycle): 4 long frames totalling ~395 ms before, 2 totalling ~236 ms after;
animation frames after the initial commit now stay under 50 ms.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea
* perf(deps): replace moment with date-fns in countdown and alarm tools
moment was only used by three tools, each pulling its ~70 KB gzip bundle
into their chunks while date-fns (already a dependency) covers the same
needs tree-shaken. Also fixes a latent bug: moment's mutating add()/set()
modified the shared 'now' ref on every computed evaluation, so the deadline
could drift by one duration per re-render; date-fns operations are
immutable.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea
* perf(deps): replace lodash with es-toolkit
Full CJS lodash (~70 KB gzip, no tree-shaking) was in the entry graph via
the tools store and shared composables, plus four lodash.* micro-packages.
es-toolkit provides the same functions as tree-shakeable ESM:
- import _ from 'lodash' -> import * as _ from 'es-toolkit/compat'
(namespace member access tree-shakes under Rolldown)
- the 20 _.chain pipelines are rewritten as plain array/object operations
or es-toolkit calls (es-toolkit has no chain, deliberately)
- lodash.defaultsdeep/flattendeep/last/mergewith micro-packages replaced
with es-toolkit core/compat equivalents
- lodash's RecursiveArray type is declared locally in generate-tree.ts
- files whose only lodash use was inside a rewritten chain lose the
dependency entirely
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea
* fix: catch lodash usages the codemod missed (.js/.tsx files, bare _() wrapper)
outputFormatter.js and diff-viewer.models.tsx were outside the codemod's
*.ts/*.vue glob, and otp.service.ts used the implicit-chain _(...) wrapper
form that the _. usage regex didn't match (its import was wrongly removed).
Both builds still passed because pnpm's hoisted store made 'lodash'
resolvable even after removal from package.json.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea
* perf(boot): drop the splash screen and parallelize the settings fetch
The splash screen existed to cover a multi-second blank period while the old
13 MB entry bundle parsed; with the startup payload at ~3 MB the app shell
paints fast enough to render directly (measurements in the PR description).
Removes vite-plugin-splash-screen entirely.
tools-settings.json was fetched under top-level await in main.ts, serially
after the config fetches in src/tools/index.ts. It now lives in a sibling
async module so all three optional config fetches share one round-trip.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea
* fix: defer preload-error reload so it cannot abort an in-flight navigation
Firefox fires vite:preloadError for module preloads cancelled by a user
navigation (NS_BINDING_ABORTED), and the immediate location.reload() raced
and aborted that navigation. With the tool icons now loading via dynamic
imports there are ~460 preloads in flight at startup, which made the race
deterministic in the date-time-converter Playwright specs on firefox.
Deferring the reload by a tick resolves it: if the page is genuinely
navigating away its timers die with the document; on a real chunk-load
failure the reload still happens.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea
* fix(types): satisfy the vitest tsconfig typecheck
pnpm typecheck runs vue-tsc against tsconfig.vitest.json, which lacks the
unplugin-vue-i18n type shim and infers stricter unions:
- tools/index.ts: type the fetch fallbacks so Promise.all doesn't widen
filterConfig to 'ToolsFilter | {}'
- i18n.plugin.ts: collapse es-toolkit merge's recursive mapped type before
it reaches vue-i18n's generics (TS2589), watch the locale through the
getter, and cast the messages record
- generate-tree.ts: drop flattenDeep/RecursiveArray for a plain spread —
child output is already joined strings, so there was only one level to
flatten
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea
* perf(bundle): cut startup payload from ~1 MB to ~560 KB gzip
Four eager-loading leaks accounted for almost half the startup JS:
- Font Awesome (298 KB gzip): main.ts registered the entire solid icon set
via library.add(fas) although only the pomodoro timer uses it. The six
icons it needs are now registered inside the tool's lazy chunk.
- tool-icons chunk (67 KB gzip): rolldown's advancedChunks defaults to
includeDependenciesRecursively, which captured shared helpers into the
icon chunk and made entry chunks statically depend on it, dragging the
whole lazy icon set back into the startup payload. Disabled per-group.
- markdown-it + entities + dompurify (~50 KB gzip): eagerly reachable via
three paths — the external-tools mapping in tools/index.ts (now a
conditional dynamic import), vue-markdown-render in tool.layout.vue and
Home.custom.vue (now defineAsyncComponent).
- demo gallery routes: registered behind a runtime env check the bundler
cannot eliminate; now a conditional dynamic import gated on
import.meta.env.DEV so production builds drop it entirely.
Startup JS: 3.2 MB -> 1.92 MB raw, ~1.05 MB -> 562 KB gzip.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea
* fix(lint): drop redundant spread flagged by oxlint
Object.values already returns a fresh array, so it can be pushed into
directly.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
* chore: upgrade toolchain to Vite 8, Vue 3.5, Vitest 4, TypeScript 6 and pnpm 11; adopt oxlint/oxfmt
- vite 4 -> 8.1.3 (rolldown-based: build.rollupOptions -> rolldownOptions,
drop optimizeDeps.esbuildOptions), @vitejs/plugin-vue 4 -> 6, plugin-vue-jsx 3 -> 5
- vue 3.3 -> 3.5.39, vue-tsc 1.8 -> 3.3.6, vitest 0.34 -> 4.1.9, jsdom 22 -> 29
- typescript 5.2 -> 6.0.3 with moduleResolution=bundler (baseUrl/node10 are
hard errors in TS 6, removed in TS 7); TS 7 RC not adoptable: its native
tsc lacks the JS compiler API vue-tsc needs (vuejs/language-tools#5381)
- unocss 0.57 -> 66 (presetUno -> presetWind3), unplugin-* to current majors
(unplugin-vue-components dtsTsx disabled: emits invalid declarations for
dotted component names)
- @vueuse/head 1.0.0 -> 1.3.1 (1.0.0 silently stopped applying page titles
under Vue 3.5)
- replace ESLint (@antfu config) + Prettier with oxlint + oxfmt; configs
mirror the previous style rules. Existing files are intentionally NOT
mass-reformatted (oxfmt has no brace-style/operator-position options to
match the old @antfu style) — only files with real changes are formatted
- pnpm 9 -> 11.10.0: settings move to pnpm-workspace.yaml, fresh lockfile
passing supply-chain policies, explicit allowBuilds decisions,
blockExoticSubdeps off (xlsx CDN override patches vulnerable npm 0.18.5)
- isolated-vm (17 MB) and onnxruntime-node (208 MB) stubbed via overrides:
native-only transitives already aliased to an empty module for the bundle
- elliptic overridden to npm ^6.6.1 (github fork tarball of
webcrypto-liner-shim unreachable from the build environment)
- CI: node 22 -> 24, all actions pinned to latest patch releases, automatic
Vercel workflows disabled (fork deploys via Vercel Git integration),
vercel.json: git.deploymentEnabled removed, buildCommand skips no-op vue-tsc
- Dockerfile: node:24-alpine, pnpm@11, ship pnpm-workspace.yaml and stubs
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6deEDJXFzgDzPiYPAcsv1
* fix: resolve type, lint and runtime issues from the toolchain upgrade
vue-tsc 3 checks templates far more strictly than 1.8 and TS 5.7+ made
Uint8Array generic over its backing buffer. Widen shared component props
(InputCopyable, c-table, c-input-text, UnitsConverter), convert values at
call sites, fix invalid local .d.ts declarations, and repair issues the
new tooling exposed:
- WireGuard generator: pre-shared-keys checkbox used v-model:value which
never binds on a standalone n-checkbox (now v-model:checked)
- mask-closable="false" string attrs became real boolean bindings in
countdown/cron-alarm/time-alarm
- v-model casts (x as any) fail to compile under plugin-vue 6 + rolldown;
replaced with :value/@update:value split bindings
- invalid '::ffff::' IPv6 literal in ipv6registry.json, exposed by stricter
parsing in cidr-tools 11.3 (IPv4-mapped range never matched)
- fanger pinned to 0.3.1 (0.3.2 published without dist/)
- countries-and-timezones namespace imports, Vitest 4 snapshot format,
invalid ul-inside-p HTML in dead-pixel, test assertion outside it() block
vue-tsc clean; oxlint clean; vitest 665/665; vite build + PWA OK;
Playwright e2e 100/100; all 457 tool routes render without errors
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6deEDJXFzgDzPiYPAcsv1
* chore: drop whole-tree oxfmt from precommit instructions
The tree deliberately keeps its existing @antfu-era formatting; running
'pnpm fmt' (oxfmt over all of src) would reformat ~800 untouched files.
Format only the files you change, or run 'pnpm fmt' in a dedicated PR.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6deEDJXFzgDzPiYPAcsv1
* fix: escape backslashes before dots in parquet column keys
CodeQL flagged incomplete string escaping (js/incomplete-sanitization):
escaping '.' to '\.' without first escaping existing backslashes makes
column names containing backslashes ambiguous in naive-ui's nested-key
syntax. Escape backslashes first.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6deEDJXFzgDzPiYPAcsv1
* test: allow 30s for initial mermaid render in e2e
mermaid is a large lazy-loaded chunk; webkit on cold CI runners exceeds
Playwright's default 5s expect timeout even across retries.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6deEDJXFzgDzPiYPAcsv1
* refactor: replace 'as any' input type casts with proper typings
Copilot review on the upstream PR flagged the casts. c-input-text
renders any non-password type as a text input, so widen its type union
to include 'url' instead of casting; for naive-ui's NInput use the
documented input-props to set the native input's type=number.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6deEDJXFzgDzPiYPAcsv1
(cherry picked from commit 906820336b271aa6d96ecb11efa03219bf869475)
* fix: reconcile lockfile with upstream sync; repair date-picker typing in Docker Label Generator
- fold upstream's new CodeMirror/picomatch dependencies into the pnpm 11
lockfile; add @lezer/highlight to optimizeDeps (kept from upstream)
- dockerfile-label-generator: n-date-picker emits a number timestamp,
not a Date — calling toISOString() on it would throw at runtime the
moment a date was picked. Type as number and convert via new Date()
- drop stray tsconfig.vite-config.tsbuildinfo build artifact; ignore
*.tsbuildinfo
vue-tsc clean; oxlint clean; vitest 665/665; vite build OK
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6deEDJXFzgDzPiYPAcsv1
* chore: keep upstream Vercel CLI deployment setup
The fork-specific Vercel changes (Git-integration deploys, disabled CLI
workflows, build:vercel command) are excluded from the upstream
contribution; upstream deploys via its own Vercel CLI workflows.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6deEDJXFzgDzPiYPAcsv1
(cherry picked from commit ed182ec55648358556343e60e1667129acdbb966)
* fix: escape backslashes in Docker label values; raise global e2e expect timeout
- dockerfile-label-generator escaped quotes without escaping existing
backslashes first (CodeQL js/incomplete-sanitization, same class as
the parquets-reader fix): a value ending in a backslash would break
the generated LABEL quoting
- playwright: 15s global expect timeout — first paint of heavy lazy
chunks exceeds the 5s default on slow CI browsers (webkit), which
intermittently failed title assertions across retries
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6deEDJXFzgDzPiYPAcsv1
(cherry picked from commit 5b3822e10113a49bc519661a5b01ad62660d56a9)
* Update .gitignore to include specific file types
* Add stats.html to .gitignore
* Delete tsconfig.vite-config.tsbuildinfo
* Delete stats.html
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: sharevb <sharevb@gmail.com>
- Created a new markdown file for bash memo in Chinese (bash-memo.content.zh.md) containing various bash commands and shortcuts.
- Updated the Vue component to dynamically load the appropriate markdown content based on the selected locale using Vue I18n.
- Implemented a watcher to reload the memo content when the locale changes, ensuring the correct language is displayed.
* Add crop-image tool
Introduce a new Crop Image tool: adds an interactive Vue cropper component (src/tools/crop-image/crop-image.vue) with drag/drop upload, viewport cropping, zoom, rotation, horizontal/vertical flip, aspect-ratio presets/custom ratio, rule-of-thirds grid, background color, and export options (PNG/JPEG/WebP, quality and width modes). Also adds tool registration (src/tools/crop-image/index.ts), a placeholder service (crop-image.service.ts), a Vitest unit test (crop-image.service.test.ts) and a Playwright e2e spec stub (crop-image.e2e.spec.ts).
Adds a new Random Line Picker tool to pick one or more random lines from user-provided text. It's a handy utility for quickly selecting random items (winners, samples, shuffled lists) inside the app.
Co-authored-by: sharevb <sharevb@gmail.com>
Converts a flat JSON object into a .env file. Keys are upper-cased,
values are safely quoted when they contain whitespace, quotes, or env
special characters (#, $, `, \). Nested objects and arrays are
JSON-stringified and always quoted; null/undefined become "".
Follows the existing FormatTransformer pattern used by the other
json-to-* converters, including i18n via useI18n and the built-in
.env download button.
Co-authored-by: ShareVB <sharevb@gmail.com>
"Tip Calculator & Bill Splitter" tool to the Maths category.
It allows users to calculate gratuity and split bills among multiple people with a clean, responsive UI.
Closes#1778
Co-authored-by: ShareVB <sharevb@gmail.com>
Add optional password input field to PDF unlock tool to properly decrypt
password-protected PDFs using qpdf's --password parameter. And add password retry on encryption error
---------
Co-authored-by: sharevb <sharevb@gmail.com>
* Added color to component group when a tool inside that group is currently selected, and changed resistor-calculator icon from a hammer to the omega icon
* - Added scrollto functionality for active tool in sidebar
- Improved icon diversity and correctness for multiple tools
* - Changed scrollto behaviour to trigger on mount and on url path change
- Restored the IT-Tools banner to stick to the top of the screen while scrolling
* Swapped nextTick for setTimeout to fix a delay issue where it didn't scroll to the active tool
* Reduced bottom padding of sidebar to fix an issue where the sidebar was scrollable with all categories closed
Fix#298
---------
Co-authored-by: ShareVB <sharevb@gmail.com>
* feat(Privacy): Changed icon for local tools from 'Lock' to 'DeviceDesktop'
* Changed seperator width from unnecessary dynamic width calculation to 100%
* Added .vscode/settings.json, removed .vscode/* from gitignore and turned off import/order ESLint rule
* removed git tracking of components.d.ts file
* removed prettier as default formatter, because it wasn't used
* set formatting on save actions from 'explicit' to 'always'
* Added more specific ignores and excludes for the .vscode folder and .vsix files
* Add "Output as column" feature to list converter tool
- Implemented functionality to convert list input into column output format.
- Enhanced the FormatTransformer component to support line numbers and autosizing for multiline inputs.
- Added tests to validate the new column output feature in both end-to-end and model tests.
- Modified the list converter's conversion logic to handle item and list wrappers when outputting as a column.
* fix: correct string formatting in list converter test
* fix: correct string formatting in list converter test
* fix: update test input and expected output for column conversion
---------
Co-authored-by: Robert Molenkamp <robert@molenkamp.be>
Co-authored-by: sharevb <sharevb@gmail.com>
* fix: use correct name of a pc (parsec)
* Add 'pica' to length converter keywords
* Add 'pica' to length converter units
---------
Co-authored-by: sharevb <sharevb@gmail.com>
- Added a performance improvement for the homepage to only load in tiles when the user scrolls to the bottom, instead of loading it in batches which looped forever each 150 ms
- Changed the animation type and dynamic durations of the side bar to feel more snappy and consistent
Introduces a new Dead Pixel tool for checking dead pixels on screens. Updates type declarations and tool registry, and implements the tool with fullscreen color cycling and keyboard navigation.
---------
Co-authored-by: sharevb <sharevb@gmail.com>
Added debounce to the "passphrase" and "comment" fields to prevent the computationally expensive key generator from running on each keystroke. The debounce is added to the RSA, ECDSA and ED25519 key pair generators
---------
Co-authored-by: sharevb <sharevb@gmail.com>
- add labels for case-converter tool (titlecase, spongecase, swapcase)
- add full translation set for new amortization-calculator tool
- add validation and formatting labels for json-editor tool
This PR adds a new tool in the finance category called Amortization Calculator. It's used for calculating the amount of interest and principle that are a part of a payment to an amortized loan, like a car-loan or home-mortgage.
---------
Co-authored-by: Jacob Alford <github.scouting378@passmail.net>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Added the ability so search using unicode characters
Changed English and Chinese translations of tag-gt-more-info translation key to remove an unparsed html > tag
Changed indexed characterName by removing the unnecessary addition of "U+${hex})". To still show the Unicode hex part, it is now added to the 'name' column
- Changed the color of the loader from white to the primary green color of IT-Tools
- Made the background of the splashscreen a slightly lighter gray to ease the difference between the loading background color of light and dark mode
FIx#161
* - Added dedicated copy button
- Added download icon to download button
- Moved output format dropdown from the bottom of the page to under the error resistance dropdown for easier access
- Increased the width of the QR code image displayed on the page to match the copy and download buttons
- Disabled the multiline attribute in the url text field as newlines weren't being encoded into the QR code
* - Fixed a bug where the output format selection wouldn't update the image file extension when downloading the QR code image
* Fixed an issue with using the copy button for image formats other than png
---------
Co-authored-by: sharevb <sharevb@gmail.com>
extract-tools-desc: use t() to make recognizable
extract-tools-string: search for attributes only in .vue + handle single directory/file from command line + useI18n only in .vue
* - Made the sidebar responsive
- Edited the hero-gradient svg to fix an issue where it would never scale to the full width of the sidebar
- Fixed a bug on Chrome where you'd need to click twice on a category element in the sidebar to see its tools
* - Added hover effect for category button
- Disabled transition built into the n-menu element to display the hover effect for tools items directly instead of after a slight delay
* - Added a tooltip which shows when the title of the tool is truncated
* - Increased sidebar width from 10% to 12.5%
- Changed check truncation calculation for container width to a more accurate variant to fix a bug where a tooltip was shown without the text being truncated
* fixed merge conflicts
* Fixed merge conflict in pnpm lock file
* Another fix for merge conflixt pnpm lock file
---------
Co-authored-by: sharevb <sharevb@gmail.com>
* - Fixed a performance issue where visiting the Unicode Search page would significantly slow down the website because of the constant unintentional reinitialization of the flexSearch index
* Removed unnecessary leftover code
---------
Co-authored-by: sharevb <sharevb@gmail.com>
* - Made the sidebar responsive
- Edited the hero-gradient svg to fix an issue where it would never scale to the full width of the sidebar
- Fixed a bug on Chrome where you'd need to click twice on a category element in the sidebar to see its tools
* - Added hover effect for category button
- Disabled transition built into the n-menu element to display the hover effect for tools items directly instead of after a slight delay
* - Added a tooltip which shows when the title of the tool is truncated
Improved the smoothness of the opening an closing animation of the menu items by switching from an overflow: hidden to a display: grid approach
Added a function which adds a small amount of extra animation time per tools under a menu item to prevent large menu items (like 'Network') to feel too snappy compared to the other menu items
---------
Co-authored-by: sharevb <sharevb@gmail.com>
What's CLI command editor?
In my day-to-day work, I have to use a lot of CLI commands. I often copy and paste them to my terminal and edited the command option values as required. Observing that many people face the similar issue, which can get tad bit annoying for complex commands, I have made this tool which easily lets you modify the option values.
How it works?
Paste the command.
A form will be presented with all the options and flags, you can edit this form.
Copy the command that gets generated in real-time as you edit it.
Improved a section of the initializeIndices function which was causing slow loading times for really large datasets. This specific section alone was responsible for more than 75% of the loading time of the Unicode search page (Section index load speed: 3300 ms -> 400 ms)
---------
Co-authored-by: ShareVB <sharevb@gmail.com>
* Folder Structure Diagram
- Added an extra column to convert folder trees back to their indented structures
- Created the `convertTreeToStructure` function which handles converting folder trees back to an indented structure
TextareaCopyable component
- Added `scrollable` boolean and `maxHeight` property to allow the content in the field to become scrollable, and define the maximum height before becoming scrollable
---------
Co-authored-by: ShareVB <sharevb@gmail.com>
Added a loading delay of 750ms to prevent the loading screen from appearing too quickly. This caused a flickering effect when a page did load quickly
Added extra logic to prevent the loading screen from popping up when query parameters were changed (as some tools update query params when you change values)
Made the background color of the loading screen lighter to better see the black wrench in the logo of it-tools (#101014 -> #292929)
Improvements for #32
---------
Co-authored-by: ShareVB <sharevb@gmail.com>
Improved performance on the fortune wheel page by replacing the laggy vue3 fortune wheel with a local implementation
Uninstalled vue3-fortune-wheel package
Created a clearer option list while still keeping it compact
Now allowing a spin duration of 0s , while limiting the maximum to 10s
Created a function which generates unique colors instead of using a preset palette
---------
Co-authored-by: ShareVB <sharevb@gmail.com>
* Improved performance on the Unicode Search page:
- Created new flexSearch component (Faster than fuzzySearch). For more information, see https://github.com/nextapps-de/flexsearch
- Replaced fuzzySearch with the flexSearch component on the unicode search page
- Fixed a bug where the search limit counter didn't have any effect
- Reduced the default search limit from 100 to 40 to reduce lag from loading all the ui elements
* Added clarification to comment
* components.d.ts update
* - Replaced FuzzySearch with FlexSearch on the ISO 3166 Searcher page
- Reduced the debounce from 500ms to 250ms
- Reduced the default search limit from 100 to 20, and fixed a bug where the search limit wasn't applied when the value changed
- Added the `readonly` prop to the `input-copyable` field
- Added the `readonly` flag to all input copyable fields on the unicode search and iso 3166 searcher pages
* Merged new changes to flexSearch
* chore: vercel optimisation tentative
* Emoji Picker:
- Replaced fuzzysearch with flexsearch
- Reduced debounce from 500ms to 250ms
- Increased search limit from 100 to 150
- Implemented a UI loading sequence where it will load an emoji group each 150ms instead of loading all groups at once. This eliminates the lag experienced when loading the page or when removing the search query
- Updated unicode-emoji-json from version 0.4.0 to 0.8.0
Emoji Card:
- Fixed an issue where the country flag emojis weren't being rendered
- Added row which displays the emoji keywords, and uses a tooltip to display all keywords when they are truncated to fit in the card
- Moved codepoints and unicode escape lines to seperate rows instead of occasionally being displayed on the same line
* - Added logic to use an emoji in the search query
* small change
* - Replaced fuzzysearch with flexsearch in the command pallette
- Improved the performance of the collapsible tool menu by rewriting the logic to prevent the DOM elements being destroyed and recreated each time a category is expanded or collapsed
- Added logic to load the home page tool cards in batches instead of all at once
* Fixed linter error
* Fixed an issue where the weight of a search key wasn't properly being applied
* AD LDAP searcher:
- Replaced fuzzysearch with flexsearch
- Removed the debounce from the search field
- Made all fields searchable
C-Select:
- Replaced fuzzysearch with flexsearch
ASCII text drawer:
- Fixed a bug where B1FF and Rot13 options appeared duplicate in the list, causing them to duplicate even further when searching specifically for them
FuzzySearch:
- Marked `useFuzzySearch` as deprecated, with the advise to use `useFlexSearch` instead
* ISO 3166 searcher:
- Made more fields searchable
c-input-text:
- Fixed an issue where country flag emojis weren't rendered
* - Added batch loading for the UI elements after a search
- Removed the Unicode item from the flag emoji copyable field so only the emoji is copied
- Added string 'None' to be used when a country has no neighboring countries
* - Disabled the cache by default because it caused minor hickups during searches and added extra documentation
---------
Co-authored-by: ShareVB <sharevb@gmail.com>
* Improved performance on the Unicode Search page:
- Created new flexSearch component (Faster than fuzzySearch). For more information, see https://github.com/nextapps-de/flexsearch
- Replaced fuzzySearch with the flexSearch component on the unicode search page
- Fixed a bug where the search limit counter didn't have any effect
- Reduced the default search limit from 100 to 40 to reduce lag from loading all the ui elements
* Added clarification to comment
* components.d.ts update
* - Replaced FuzzySearch with FlexSearch on the ISO 3166 Searcher page
- Reduced the debounce from 500ms to 250ms
- Reduced the default search limit from 100 to 20, and fixed a bug where the search limit wasn't applied when the value changed
- Added the `readonly` prop to the `input-copyable` field
- Added the `readonly` flag to all input copyable fields on the unicode search and iso 3166 searcher pages
* Merged new changes to flexSearch
* chore: vercel optimisation tentative
* - Added controls to lock the aspect ratio, set preset aspect ratios or set a custom aspect ratio
- Added a reset button to fill the width and height with the dimensions of the original image
- Added validation and warnings to prevent the width or height value to be lower than 1 or higher than the values HTML Canvas supports (32767, or more than 268 million pixels of area)
- Added logic to not display the preview image when one of the dimensions is higher than 7680 pixels due to performance reasons
- Fixed an issue with the download options where you never got the selected image type when clicking a download option, and instead always getting a .png.
- Changed the download options to the file type options supported by HTML Canvas
* Fixed an issue with width and height input for locked aspect ratio
---------
Co-authored-by: ShareVB <sharevb@gmail.com>
* Improved performance on the Unicode Search page:
- Created new flexSearch component (Faster than fuzzySearch). For more information, see https://github.com/nextapps-de/flexsearch
- Replaced fuzzySearch with the flexSearch component on the unicode search page
- Fixed a bug where the search limit counter didn't have any effect
- Reduced the default search limit from 100 to 40 to reduce lag from loading all the ui elements
* Added clarification to comment
* components.d.ts update
* - Replaced FuzzySearch with FlexSearch on the ISO 3166 Searcher page
- Reduced the debounce from 500ms to 250ms
- Reduced the default search limit from 100 to 20, and fixed a bug where the search limit wasn't applied when the value changed
- Added the `readonly` prop to the `input-copyable` field
- Added the `readonly` flag to all input copyable fields on the unicode search and iso 3166 searcher pages
* Merged new changes to flexSearch
* chore: vercel optimisation tentative
* Emoji Picker:
- Replaced fuzzysearch with flexsearch
- Reduced debounce from 500ms to 250ms
- Increased search limit from 100 to 150
- Implemented a UI loading sequence where it will load an emoji group each 150ms instead of loading all groups at once. This eliminates the lag experienced when loading the page or when removing the search query
- Updated unicode-emoji-json from version 0.4.0 to 0.8.0
Emoji Card:
- Fixed an issue where the country flag emojis weren't being rendered
- Added row which displays the emoji keywords, and uses a tooltip to display all keywords when they are truncated to fit in the card
- Moved codepoints and unicode escape lines to seperate rows instead of occasionally being displayed on the same line
* - Added logic to use an emoji in the search query
* small change
* - Replaced fuzzysearch with flexsearch in the command pallette
- Improved the performance of the collapsible tool menu by rewriting the logic to prevent the DOM elements being destroyed and recreated each time a category is expanded or collapsed
- Added logic to load the home page tool cards in batches instead of all at once
* Fixed linter error
* Fixed an issue where the weight of a search key wasn't properly being applied
---------
Co-authored-by: ShareVB <sharevb@gmail.com>
* Improved performance on the Unicode Search page:
- Created new flexSearch component (Faster than fuzzySearch). For more information, see https://github.com/nextapps-de/flexsearch
- Replaced fuzzySearch with the flexSearch component on the unicode search page
- Fixed a bug where the search limit counter didn't have any effect
- Reduced the default search limit from 100 to 40 to reduce lag from loading all the ui elements
* Added clarification to comment
* components.d.ts update
* - Replaced FuzzySearch with FlexSearch on the ISO 3166 Searcher page
- Reduced the debounce from 500ms to 250ms
- Reduced the default search limit from 100 to 20, and fixed a bug where the search limit wasn't applied when the value changed
- Added the `readonly` prop to the `input-copyable` field
- Added the `readonly` flag to all input copyable fields on the unicode search and iso 3166 searcher pages
* Merged new changes to flexSearch
* chore: vercel optimisation tentative
* - Replaced fuzzysearch with flexsearch
- Added a redirect icon to redirect to the MDN documentation for each status code
- Added an icon before the category icon to more clearly visualize what the category is about
* simplified category icon logic and added search icon
---------
Co-authored-by: ShareVB <sharevb@gmail.com>
* Improved performance on the Unicode Search page:
- Created new flexSearch component (Faster than fuzzySearch). For more information, see https://github.com/nextapps-de/flexsearch
- Replaced fuzzySearch with the flexSearch component on the unicode search page
- Fixed a bug where the search limit counter didn't have any effect
- Reduced the default search limit from 100 to 40 to reduce lag from loading all the ui elements
* Added clarification to comment
* components.d.ts update
* - Replaced FuzzySearch with FlexSearch on the ISO 3166 Searcher page
- Reduced the debounce from 500ms to 250ms
- Reduced the default search limit from 100 to 20, and fixed a bug where the search limit wasn't applied when the value changed
- Added the `readonly` prop to the `input-copyable` field
- Added the `readonly` flag to all input copyable fields on the unicode search and iso 3166 searcher pages
* Merged new changes to flexSearch
* chore: vercel optimisation tentative
* Emoji Picker:
- Replaced fuzzysearch with flexsearch
- Reduced debounce from 500ms to 250ms
- Increased search limit from 100 to 150
- Implemented a UI loading sequence where it will load an emoji group each 150ms instead of loading all groups at once. This eliminates the lag experienced when loading the page or when removing the search query
- Updated unicode-emoji-json from version 0.4.0 to 0.8.0
Emoji Card:
- Fixed an issue where the country flag emojis weren't being rendered
- Added row which displays the emoji keywords, and uses a tooltip to display all keywords when they are truncated to fit in the card
- Moved codepoints and unicode escape lines to seperate rows instead of occasionally being displayed on the same line
* - Added logic to use an emoji in the search query
* small change
---------
Co-authored-by: ShareVB <sharevb@gmail.com>
* Improved performance on the Unicode Search page:
- Created new flexSearch component (Faster than fuzzySearch). For more information, see https://github.com/nextapps-de/flexsearch
- Replaced fuzzySearch with the flexSearch component on the unicode search page
- Fixed a bug where the search limit counter didn't have any effect
- Reduced the default search limit from 100 to 40 to reduce lag from loading all the ui elements
* Added clarification to comment
* components.d.ts update
* - Replaced FuzzySearch with FlexSearch on the ISO 3166 Searcher page
- Reduced the debounce from 500ms to 250ms
- Reduced the default search limit from 100 to 20, and fixed a bug where the search limit wasn't applied when the value changed
- Added the `readonly` prop to the `input-copyable` field
- Added the `readonly` flag to all input copyable fields on the unicode search and iso 3166 searcher pages
* Fixed incorrect case usage for functions and variables
* - Replaced fuzzysearch with flexsearch on the IES Lighting Guidelines page
- Reduced the debounce from 500ms to 250ms
- Changed the search keys so all columns are now searchable
* - Added logic to sort the limited results using a similarity score created by calculating the Levenshtein distance
- Added the `shouldSort` boolean to control whether the results should be filtered by similarity. `true` by default
* Merged new changes to flexSearch
* - Added readonly flag to input copyable fields
* Improved performance on the Unicode Search page:
- Created new flexSearch component (Faster than fuzzySearch). For more information, see https://github.com/nextapps-de/flexsearch
- Replaced fuzzySearch with the flexSearch component on the unicode search page
- Fixed a bug where the search limit counter didn't have any effect
- Reduced the default search limit from 100 to 40 to reduce lag from loading all the ui elements
* Added clarification to comment
* components.d.ts update
* - Replaced FuzzySearch with FlexSearch on the ISO 3166 Searcher page
- Reduced the debounce from 500ms to 250ms
- Reduced the default search limit from 100 to 20, and fixed a bug where the search limit wasn't applied when the value changed
- Added the `readonly` prop to the `input-copyable` field
- Added the `readonly` flag to all input copyable fields on the unicode search and iso 3166 searcher pages
* Fixed incorrect case usage for functions and variables
* Improved performance on the Unicode Search page:
- Created new flexSearch component (Faster than fuzzySearch). For more information, see https://github.com/nextapps-de/flexsearch
- Replaced fuzzySearch with the flexSearch component on the unicode search page
- Fixed a bug where the search limit counter didn't have any effect
- Reduced the default search limit from 100 to 40 to reduce lag from loading all the ui elements
* Added clarification to comment
* Attempt to fix pnpm-lock merge conflict
* Another attempt to fix pnpm-lock
* Try deleting lock file because regenerating doesn't make a difference
* Try regenerating from scratch
* fix: pnpm-lock.yaml
---------
Co-authored-by: sharevb <sharevb@gmail.com>
* Translations have been supplemented and links have been corrected in Russian and Ukrainian localizations
Changes to be committed:
modified: locales/ru.yml
modified: locales/uk.yml
* add test translations for ad-ldap-searcher
* Add all mainpage card translate templates + add ru & ua translations
test translations in some tools
Changes to be committed:
modified: locales/en.yml
modified: locales/ru.yml
modified: locales/uk.yml
modified: src/tools/ad-ldap-searcher/index.ts
modified: src/tools/ai-prompt-splitter/index.ts
modified: src/tools/angle-converter/index.ts
modified: src/tools/ansible-vault-crypt-decrypt/index.ts
modified: src/tools/api-tester/index.ts
modified: src/tools/area-converter/index.ts
modified: src/tools/ascii-text-drawer/index.ts
modified: src/tools/aspect-ratio-calculator/index.ts
modified: src/tools/barcode-generator/index.ts
modified: src/tools/barcode-reader/index.ts
modified: src/tools/encryption/encryption.vue
feat: script:create:tool command supports specifying tool categories: pnpm script:create:tool [tool-name] [category-name]
feat: A locales folder can be created independently under each tool to support independent configuration of the tool's own internationalization, making developers more focused and reducing file modification conflicts
perf: Optimize the script:create:tool command to create generated files, reduce the chance of public file modification conflicts, and allow developers to focus more on developing their own
perf: Improve the category field in defineTool for existing tools
- updated reference to figlet@1.8.0
- updated the fontPath URL
Fix#40
feat(menu): default collapse state & add global toggle button for improved UX (#35)
- Changed the default behavior so that if no collapse state is stored, menu categories auto-collapse on first load.
- Updated the computed logic to default the collapsed state to true when undefined, ensuring a consistent initial UI.
- Added new computed properties (areAllCollapsed) and a function (toggleAllCategories) to manage global collapse/expand behavior.
- Introduced a top-level toggle button (using <c-button>) that allows users to expand or collapse all menu categories at once, aligning with the site's theme and improving overall UX/UI.
---------
Co-authored-by: sharevb <sharevb@gmail.com>
Author: Taltos-ch <info@taltos.ch>
Date: Sun Feb 16 18:21:54 2025 +0100
This component generates a QR code that stores contact information in vCard format, compatible with both Android and iOS contact cards.
Background for this addition was that I primarily use ZFS and therefore like to calculate RAID-Z1/Z2/Z3 with RAID-Z3 being the newest addition to as least TrueNAS (unsure since when ZFS supports Z3). As RAID-Z3 being the equivalent to RAID TP, also known unofficially as RAID 7, I've kept the naming in the tool and just added RAID 7/TP.
* feat(Cert Key Parser): fingerprint in hex format
Add hexadecimal certificate fingerprint output and sha1 algorithm.
- Extend the certificate parser to output certificate fingerprints in both base64 and hexadecimal formats
- Include sha1 in the list of supported fingerprint algorithms to accommodate additional use cases.
* fix: typechecking
---------
Co-authored-by: sharevb <sharevb@gmail.com>
Plurimath opal cannot be minified, esbuilded and bundled without causing unexpected exceptions
So copy js in public folder and import plurimath from here
In Search of tools, show up to 25 tools (configurable by VITE_MAX_SEARCH_RESULT) and show a scrollbar if needed
Fix#1430 (since there are many json related tools)
Allows computing specific date + some durations
Allows computing Date interval with many options (include end date, select week days, holidays, business time) and output many statistics
Fix#778, #584, #971
All units, pressure, power, angle, area, energy, force, length, mass, volume units converter
Many Units Converter: convert any unit string (ie 1d 3m) into best unit and selected target unit
Fix#571
Handle AWS Cron syntax and distinguishe from standard syntax (fix#855)
Add show crontab next 5 execution times (taken from #1283)
Add Timezone handling: fix#261
New Tool: Data Transfer Rate Converter
New Tool: Data Storage Units Converter (with MB, MiB and Mb)
Fix#539#785#1160#848
Data Storage Units Converter inspired by #948 by @utf26
Fix corepack claiming strange thing : UsageError: This project is configured to use yarn because /home/runner/work/it-tools/it-tools/package.json has a "packageManager" field
* fix(Emoji picker): fix lags
Fix#1176 using debounced ref
* chore: fix strange corepack message
Fix corepack claiming strange thing : UsageError: This project is configured to use yarn because /home/runner/work/it-tools/it-tools/package.json has a "packageManager" field
Fix corepack claiming strange thing : UsageError: This project is configured to use yarn because /home/runner/work/it-tools/it-tools/package.json has a "packageManager" field
Fix corepack claiming strange thing : UsageError: This project is configured to use yarn because /home/runner/work/it-tools/it-tools/package.json has a "packageManager" field
Fix corepack claiming strange thing : UsageError: This project is configured to use yarn because /home/runner/work/it-tools/it-tools/package.json has a "packageManager" field
Fix corepack claiming strange thing : UsageError: This project is configured to use yarn because /home/runner/work/it-tools/it-tools/package.json has a "packageManager" field
Fix corepack claiming strange thing : UsageError: This project is configured to use yarn because /home/runner/work/it-tools/it-tools/package.json has a "packageManager" field
Fix corepack claiming strange thing : UsageError: This project is configured to use yarn because /home/runner/work/it-tools/it-tools/package.json has a "packageManager" field
Fix corepack claiming strange thing : UsageError: This project is configured to use yarn because /home/runner/work/it-tools/it-tools/package.json has a "packageManager" field
Fix corepack claiming strange thing : UsageError: This project is configured to use yarn because /home/runner/work/it-tools/it-tools/package.json has a "packageManager" field
Fix corepack claiming strange thing : UsageError: This project is configured to use yarn because /home/runner/work/it-tools/it-tools/package.json has a "packageManager" field
Fix corepack claiming strange thing : UsageError: This project is configured to use yarn because /home/runner/work/it-tools/it-tools/package.json has a "packageManager" field
Fix corepack claiming strange thing : UsageError: This project is configured to use yarn because /home/runner/work/it-tools/it-tools/package.json has a "packageManager" field
Fix corepack claiming strange thing : UsageError: This project is configured to use yarn because /home/runner/work/it-tools/it-tools/package.json has a "packageManager" field
* fix(base64): use js-base64 to handle non ascii text
Use js-base64 to handle non ascii text and ignore whitespaces
Fix#879 and #409
* fix(base64): use js-base64 to handle non ascii text
Use js-base64 to handle non ascii text and ignore whitespaces
Fix#879 and #409
* feat(base64 file converter): add a filename and extension fields
Add filename and extension (auto filled if data url) to allow downloading with right extension and filename
Fix#788
* feat(base64 file converter): add a preview image
Fix#594. Taken from #595 (thanks @SAF2k)
webcrack is a tool for reverse engineering javascript. It can deobfuscate obfuscator.io, unminify, transpile, and unpack webpack/browserify, to resemble the original source code as much as possible.
Convert HTML to Markdown, allow pasting from clipboard (ie, pasting part of a web page or copy paste from Word)
Fix partially #538. Inspired by #632
Using turndown
Update pdf-signature-reader to latest version (recently updated with some changes of pdf-signature-reader-jpc)
Updated View PEM to a better display with copy
Fix#937
Handle common languages prefix : 0x, 0o, 0b (C/C#), &H, &O, &B (vb.net)
Handle common languages suffix : I (vb.net), U/L (C/C# unsigned and long), n (js bigint)
Handle case insensitive for base < 36 (ie, hexa) ( 36 = décimal + lower letters)
Fix#694
Fix#281 (ed25519 key pairs, passphrase and openssh format)
Supports generation in PEM, PKCS#8, OpenSSH Standard (with or without passphrase), OpenSSH (new format) and PuTTY (no passphrase)
Fix#281 (rsa with passphrase and comment)
Supports many formats: PEM (with or without passphrase), PKCS#1, PKCS#8, OpenSSH Standard (with or without passphrase), OpenSSH (new format) and PuTTY
Fix#281 (rsa with passphrase and comment)
Supports many formats: PEM (with or without passphrase), PKCS#1, PKCS#8, OpenSSH Standard (with or without passphrase), OpenSSH (new format) and PuTTY
- Ability to paste more than one docker run command
- Ability to choose Docker Compose version
- Ability to merge an existing Docker Compose
- Ability to set indent size #775
- Fix#814, #838
* fix(base64-file-converter): fix downloading of index.html content without data preambula
* feat(base64-file-converter): infer mime type from base64 signature
---------
Co-authored-by: akharlov <harl_aa@skbkontur.ru>
* feat(base64-string-converter): switch to encode and decode url safe
* feat(base64-string-converter): changes based on review comments, use config object instead of boolean argument.
* feat(base64-string-converter): fix validation, add option to watch additional refs for changes which interfere with validation rules
* feat(list-converter): a small converter who deals with column based data and do some stuff with it
* Update src/tools/list-converter/index.ts
* Update src/tools/list-converter/index.ts
* Update src/tools/list-converter/index.ts
---------
Co-authored-by: Corentin THOMASSET <corentin.thomasset74@gmail.com>
fix(list-format): fix e2e
* feat(ipv4-range-expander): expands a given IPv4 start and end address to a valid IPv4 subnet
* feat(ipv4-range-expander): remove old component copyable-ip-like.vue
* feat(ipv4-range-expander): fix sonar findings
* feat(ipv4-range-expander): changes due to review
* feat(ipv4-range-expander): only show n-alert if both ipv4 addresses are valid
* feat(ipv6-ula-generator): new tool: generate ula based on timestamp and mac address
This new tool generates a random unique ula based on the current timestamp and the provided mac address. An ULA is your "secondary" IPV6-Address only for internal use.
It can also be used as a backup address if your provider gets offline and your Prefix-IPs are not longer valid.Also you can create the most of your internal firewall rules based on your ULAs.
* feat(ipv6-ula-generator): changes requested by review
* Update src/tools/ipv6-ula-generator/index.ts
* Update src/tools/ipv6-ula-generator/ipv6-ula-generator.vue
---------
Co-authored-by: Corentin THOMASSET <corentin.thomasset74@gmail.com>
* feat(ipv6-ula-generator): new tool: generate ula based on timestamp and mac address
This new tool generates a random unique ula based on the current timestamp and the provided mac address. An ULA is your "secondary" IPV6-Address only for internal use.
It can also be used as a backup address if your provider gets offline and your Prefix-IPs are not longer valid.Also you can create the most of your internal firewall rules based on your ULAs.
* feat(ipv6-ula-generator): changes requested by review
* Update src/tools/ipv6-ula-generator/index.ts
* Update src/tools/ipv6-ula-generator/ipv6-ula-generator.vue
---------
Co-authored-by: Corentin THOMASSET <corentin.thomasset74@gmail.com>
* fix(roman-numeral-converter): checks for valid input and conversion enhancements
Validates if numeral values are between 1 and 3999999.
Validates if a roman number is valid.
* fix(roman-numeral-converter): optimize logic for copy button
* fix(roman-numeral-converter): changes due to review
* fix(docker-run-to-docker-compose-converter): use different version of converter which suppports more options and is mor failsafe
* chore(docker-run-to-docker-compose-converter): add pnpm-lock.yaml again which was accidently removed in last commit
* chore(docker-run-to-docker-compose-converter): add fixed version of composerize-ts
* chore(user-agent-parser): changes requested by code review
* chore(user-agent-parser): some more changes requested by code review
* fix(docker-run-to-docker-compose-converter): use different version of converter which suppports more options and is mor failsafe
* chore(docker-run-to-docker-compose-converter): add pnpm-lock.yaml again which was accidently removed in last commit
* chore(docker-run-to-docker-compose-converter): add fixed version of composerize-ts
* npm install jwt-decode
* added base tool structure
* added function to decode JWT and display header and payload
* use a table to display the data
* show human readable values
* added switch to toggle display of parsed values
* lint
* replaced basic package-lock.json with pnpm-lock.json
* change the icon of the tool
* simplify return
* use camelCase
* added description of the tool
* always parse the values
* use camelCase...
* Device information page styling fix
I was checking out your site, and really like it! already added to my bookmarks, and when I was on the Device Information page I noticed the `p` and `y` in the words 1 dppx and landscape-primary were cut off and my ocd kicked in to tweak it.
The fix was to remove the line height set on the value, and then to keep the spacing how it was just moving it up 5px seemed to do the trick.
I'm using Firefox 102.0.1 on Windows 11. I'll attach some pics so you can see the before and after.
I've never messed with vue, but after looking at this file here ya make me want to check it out more. I love how its keeping it all together in one file.
Might also need to rebuild it the site after this change, but you get the point.
Awesome site!
* Update src/tools/device-information/device-information.vue
Co-authored-by: Corentin THOMASSET <corentin.thomasset74@gmail.com>
* compute all hashes at the same time instead of using a select
* add prettier config
* Revert "add prettier config"
This reverts commit fd374ff6fdd1c91500791e18c5cce0414b08b1c9.
Prettier config is in `.eslintrc.cjs`. Should run the lint script or
should use ESLint's VS Code extension.
* fix: address requested changes
- rename hashedText to hashText since it's a function and no longer a variable
- rename to list to algoNames
- rename to type to AlgoName
removed unused import
* revert back to allow empty value to be hashed; lint
Thanks for taking the time to fill out this bug report!
- type:textarea
id:bug-description
attributes:
label:Describe the bug
description:A clear and concise description, in PLAIN ENGLISH ONLY, of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
placeholder:Bug description
validations:
required:true
- type:textarea
id:what-happened
attributes:
label:What happened?
description:Also tell us, what did you expect to happen? If you have a screenshot, you can paste it here.
placeholder:Tell us what you see!
value:'A bug happened!'
validations:
required:true
- type:textarea
id:version
attributes:
label:System information
description:What is you environment? You can use the `npx envinfo --system --browsers` command to get this information.
description:Propose a new feature/enhancement or tool idea for IT-Tools
labels:['enhancement','triage']
body:
- type:markdown
attributes:
value:|
Thanks for your interest in the project and taking the time to fill out this feature report!
- type:dropdown
id:request-type
attributes:
label:What type of request is this?
options:
- New tool idea
- New feature for an existing tool
- Deployment or CI/CD improvement
- Self-hosting improvement
- Other
validations:
required:true
- type:textarea
id:feature-description
attributes:
label:Clear and concise description of the feature you are proposing
description:A clear and concise description of what the feature is, in PLAIN ENGLISH ONLY.
placeholder:'Example:a token generator tool'
validations:
required:true
- type:textarea
id:alternative
attributes:
label:Is there example of this tool in the wild?
description:Provide link to already existing tool (like websites, apps, cli, ...) or npm packages that could be used or provide inspiration for the feature.
- type:textarea
id:additional-context
attributes:
label:Additional context
description:Any other context or screenshots about the feature request here.
- type:checkboxes
id:checkboxes
attributes:
label:Validations
description:Before submitting the issue, please make sure you do the following
options:
- label:Check the feature is not already implemented in the project.
required:true
- label:Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
required:true
- label:Check that the feature can be implemented in a client side only app (IT-Tools is client side only, no server).
<!-- Please insert your description here and provide especially info about the "what" this PR is solving -->
### Additional context
<!-- e.g. is there anything you'd like reviewers to focus on? -->
---
### What is the purpose of this pull request? <!-- (put an "X" next to an item) -->
- [ ] Bug fix
- [ ] New Feature
- [ ] Documentation update
- [ ] Other
### Before submitting the PR, please make sure you do the following
- [ ] Submit the PR against the `chore/all-my-stuffs` branch.
- [ ] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
- [ ] Provide a description, in PLAIN ENGLISH ONLY, in this PR that addresses **what** the PR is solving, or reference the issue that it solves (e.g. `fixes #123`).
- [ ] Run `pnpm install --ignore-scripts && pnpm lint:fix && pnpm typecheck` to ensure pnpm lock, oxlint (including type-aware rules) and vue-tsc are ok
- [ ] Ideally, include relevant tests that fail without this PR but pass with it.
for name in VERCEL_TOKEN VERCEL_ORG_ID VERCEL_PROJECT_ID; do
[ -z "${!name}" ] && missing="$missing $name"
done
if [ -n "$missing" ]; then
# Either place works, so name both rather than send anyone to the wrong settings
# page.
echo "::error::Missing secrets:$missing — set them on the repository (Settings > Secrets and variables > Actions) or on the Production and Preview environments (Settings > Environments). See .github/workflows/deploy.yaml"
Aggregated set of useful tools that every developer may need once in a while. Available [here](https://it-tools.tech).
Since the _base image_ is now `nginx-unpriviledged` the container will now listen to port **8080** and not 80. So you need to update your port mapping, i.e. from `8080:80` to `8080:8080`.
## Functionalities roadmap
Here is an unordered list of the current functionalities, and some that may come.
You can override listening port using environment variable `PORT` (docker option `-e PORT=8888`).
- [x] Token generator
- [x] Uuid generator
- [x] String hash
- [x] Text encryption
- [x] Date format converter
- [x] Int base converter
- [x] Color format converter
- [x] Url encoder
- [x] Base 64 generator
- [x] Text information
- [x] Markdown editor
- [x] Lorem ipsum text generator
- [x] Git memo (cheat sheet)
- [x] QR code generator
- [ ] CSS memo (cheat sheet)
- [ ] REGEX memo (cheat sheet) + tester?
- [ ] Minify/un-minify
- [ ] Image exif editor/remover
- [ ] Bip39 pass-phrase generator
- [ ] Crontab friendly generator
- [ ] Image format converter?
- [ ] Image cropper
- [ ] Image resizer
- [ ] HTTP client (w/ axios + cors proxy)
- [ ] Math expression evaluator
- [ ] Math expression graph
You can serve the app from a subfolder using environment variable `BASE_URL` (docker option
`-e BASE_URL=/it-tools/`), without rebuilding the image -- see
[Host in a subfolder](#host-in-a-subfolder-it-tools).
You have an idea of a tool? Submit a feature request!
If the container needs to listen to IPv6, it needs to be enabled: https://serverfault.com/questions/1147296/how-to-enable-ipv6-on-ubuntu-20-04. Alternatively, you can mount your own `nginx.conf` own using docker option `-v "./nginx.conf:/etc/nginx/templates/default.conf.template"` (with `listen [::]:8080;` removed)
## Project setup
Install dependencies by running the following command:
Related doc for CyberPanel: https://community.cyberpanel.net/t/reverse-proxy-traffic-to-docker-container-on-cyberpanel/30644
### Check out these change here: <https://sharevb-it-tools.vercel.app/> or <https://sharevb.github.io/it-tools/>
You can use my image in your docker-compose/quadlet file if you want an up-to-date version of it-tools (with my PR and some of others) until the main branch has been updated.
- github action triggers on every push to this branch - [view package here](https://github.com/sharevb/it-tools/pkgs/container/it-tools)
(Thanks to [gitmotion](https://github.com/gitmotion/it-tools) for this model of README fork)
## Contributors
Big thanks to all the people who have already contributed!
docker run --pull always --restart unless-stopped -p 8080:8080 sharevb/it-tools:latest
```
Then compiles and hot-reloads for development:
```shell
npm run serve
Other existing docker tags: `latest-en` (english only)
Container builds precompress JavaScript, CSS, and WebAssembly files in `dist/assets`.
Nginx serves the `.gz` sidecars when clients accept gzip, including requests forwarded
by reverse proxies, and otherwise serves the original files. Compression happens once
at build time rather than on every request. HTML remains uncompressed so runtime
`BASE_URL` rewriting continues to work.
## Use in Docker Compose file
```yml
services:
it-tools:
container_name: it-tools
image: sharevb/it-tools:latest
pull_policy: always
restart: unless-stopped
ports:
- 8080:8080
```
And to lint and fixe files, run:
```shell
npm run lint
## Use in Podman Quadlet file
```
[Unit]
Description=IT Tools container
After=network-online.target
[Container]
AutoUpdate=registry
Image=ghcr.io/sharevb/it-tools:latest
PublishPort=8080:8080
Label=io.containers.autoupdate=registry
[Install]
WantedBy=multi-user.target default.target
[Service]
Restart=always
```
## Use with companion Self Hosted docker services
Some tools requires additional docker services: HTTPS/DNS tools/Ping, HTML to PDF, Docker Image Download, Multi Links Download, Short Url Expander and TCP/UDP Port tester.
See complete example here: [docker-with-services](https://github.com/sharevb/it-tools/tree/chore/all-my-stuffs/docker-with-services)
## Filter tools and add home custom content
You can add custom content in Home page by mounting a `home.custom.md` in `/usr/share/nginx/html`.
You can filter available tools by mounting `tools-filter.json` in `/usr/share/nginx/html`. It can contains the following filtering regex:
```json
{
"excludeCategoryFilterRegex": "",
"includeCategoryFilterRegex": "",
"excludeToolsFilterRegex": "",
"includeToolsFilterRegex": ""
}
```
Category matches on category (English) names ; Tools matches on tools path/url.
See [docker-tools-filter-and-home-content](https://github.com/sharevb/it-tools/tree/chore/all-my-stuffs/docker-tools-filter-and-home-content)
## Add custom external tools
You can add custom external tools (href or markdownContent) by mounting a `external-tools.json` in `/usr/share/nginx/html` with the following structure:
See [docker-tools-filter-and-home-content](https://github.com/sharevb/it-tools/tree/chore/all-my-stuffs/docker-tools-filter-and-home-content)
## Setting default tools parameters / default UI language at runtime
For a complete sample, see [docker-with-services](https://github.com/sharevb/it-tools/tree/chore/all-my-stuffs/docker-with-services).
You can set default tool parameters by mounting a `tools-settings.json` in `/usr/share/nginx/html`.
It is a two level json, with the first level being for `tool name` and the second level for `parameter name`:
```json
{
"regex-tester": {
"multi": true,
"regex": "some regex",
"global": false
}
}
```
You can find `tool name` and `parameter name` in the tools source code `src/tools` subfolder :
- example pattern for `const global = useQueryParamOrStorage({ storageName: 'regex-tester:g', name: 'global', defaultValue: true });`:
```json
{
"regex-tester": {
"global": false
}
}
```
- example pattern for `const value = useQueryParam({ tool: 'barcode-gen', name: 'text', defaultValue: '123456789' });`:
```json
{
"barcode-gen": {
"text": "4356"
}
}
```
- example pattern for `const width = useITStorage('ascii-text-drawer:width', 80);`:
```json
{
"ascii-text-drawer": {
"width": 80
}
}
```
To define the default UI language, add a `default_locale` key to json:
```json
{
"default_locale": "fr"
}
```
## Offline / air-gapped deployments
Fonts, editor extensions, the ffmpeg core, the ONNX runtime, the Tesseract OCR engine and its English and Simplified Chinese language data ship with the app, so these never come from a third-party CDN. The large ones are only downloaded when their tool is opened, and are left out of the PWA precache.
On a network without internet access, add `"offline": true` to `tools-settings.json`. Tools that only work with internet are then hidden (my-ip, ip-geo-location, dns-query, dns-queries, dnsbl-checker, dns-propagation-tester, online-wiktionary, iana-whois-checker), and tools with a bundled fallback switch to it:
- gitignore-generator and gitattributes-generator use a template snapshot bundled at build time (also used online when GitHub can't be reached). Refresh it with `pnpm script:update:git-templates`.
- ocr-image offers only the bundled languages.
- JSON/YAML schema validation offers only a custom schema (pasted, or a URL you enter).
- geo-coordinates-converter converts coordinates without showing a map.
Some tools work offline once you point them at an intranet mirror; without one, they are hidden in offline mode. The mirrors can also be used online:
| `transformers.models-url` | translator, remove-background, math-ocr | A mirror of the Hugging Face model repos with the same layout: `<url>/<org>/<model>/resolve/main/<file>`, e.g. `Xenova/opus-mt-en-fr/resolve/main/onnx/encoder_model_quantized.onnx`. Relative URLs resolve against the app. |
| `ocr-image.lang-url` | ocr-image | A directory of `<lang>.traineddata.gz` files (the `4.0.0_best_int` variant from the `@tesseract.js-data/<lang>` npm packages). The path may contain a `{lang}` placeholder, e.g. `https://intranet.example/npm/@tesseract.js-data/{lang}/4.0.0_best_int` for a mirror of jsDelivr. |
| `json-schemas.catalog-url` | json-viewer, yaml-viewer, json-editor, json-linter | A copy of the [SchemaStore](https://www.schemastore.org) catalog. The schema URLs listed in it must be reachable too. |
| `currency-converter.url` | currency-converter | A mirror of the `@fawazahmed0/currency-api` npm package, serving `v1/currencies/<code>.json`. |
| `geo-coordinates-converter.tile-url` | geo-coordinates-converter | A Leaflet tile URL template; `tile-attribution` is optional. |
| `explainchain.url` | explainshell | A self-hosted [explainshell](https://github.com/idank/explainshell). |
The tools that use the [companion self-hosted services](#use-with-companion-self-hosted-docker-services) stay available in offline mode and work against intranet targets.
docker run -d --name it-tools-fr --restart unless-stopped -p 8080:8080 it-tools-fr
```
## Host in a subfolder (`/it-tools/`)
The container serves the app from whatever path you point `BASE_URL` at. Nothing is baked
into the image, so the regular `latest` image works for any subfolder -- no rebuild, no
subfolder-specific tag:
```yaml
services:
it-tools:
image: ghcr.io/sharevb/it-tools:latest
restart: unless-stopped
environment:
BASE_URL: /it-tools/
ports:
- 8080:8080
```
or `docker run -d --name it-tools -e BASE_URL=/it-tools/ -p 8080:8080 ghcr.io/sharevb/it-tools:latest`.
`BASE_URL` accepts `it-tools`, `/it-tools` and `/it-tools/` alike; the default is `/`.
You still want a reverse proxy in front -- [Nginx Proxy Manager](https://nginxproxymanager.com/),
[Traefik](https://traefik.io/traefik/), [caddy](https://caddyserver.com/) etc. -- passing
`/it-tools/` through to the container. It does not matter whether the proxy strips the
prefix before forwarding (`proxy_pass http://it-tools:8080/;`) or passes it on as-is
(`proxy_pass http://it-tools:8080;`): the container handles both.
One thing only the proxy can do, in the stripping setup: `/it-tools` without the trailing
slash never reaches the container, so redirect it there -- the sample's
`location /it-tools { return 301 /it-tools/; }`. When the prefix is forwarded instead, the
container does that redirect itself.
See the [sample docker-compose.yml and nginx.conf](https://github.com/sharevb/it-tools/tree/chore/all-my-stuffs/docker-subfolder-sample).
To run the sample:
```bash
git clone https://github.com/sharevb/it-tools
cd it-tools/docker-subfolder-sample/
docker compose up
```
Then navigate to http://localhost/it-tools/
Two things worth knowing:
- Building with `--build-arg BASE_URL=/it-tools/` still works, but it now only changes the
image's *default* -- the environment variable still wins at run time.
- On a read-only root filesystem the config template cannot be re-rendered at startup, so
`BASE_URL` (like `PORT`) has no effect unless `/etc/nginx/conf.d` is writable -- mount a
tmpfs or an emptyDir there. The container says so in its log.
## To build using a custom folder:
1. `BASE_URL="/it-tools/" pnpm build`
2. Rename the generated `dist` folder to `it-tools` and serve on `https://your-domain.com/it-tools`
## To build for GitHub Pages:
1. Enable GitHub Pages build and deployment option in your fork, under **Settings** > **Pages** and select **GitHub Actions** as the source
2. Add the following GitHub action to your repo: https://github.com/sharevb/it-tools/tree/chore/all-my-stuffs/.github/workflows/sharevb-github-pages-publish.yml
## To add authentication
Assuming you're already hosting it-tools behind a reverse proxy, you can configure forward-auth and enforce authentication from the reverse proxy
- [Official guides](https://docs.goauthentik.io/docs/add-secure-apps/providers/proxy/server_nginx) with nginx. Guides with other reverse proxy setups are available
- [Step-by-step setup guide with nginx-proxy-manager](https://geekscircuit.com/set-up-authentik-sso-with-nginx-proxy-manager/)
Then, update the file [router.js](./src/router.js) specifying info of the component.
Use [fontawesome 5](https://fontawesome.com/icons?d=gallery&m=free) for icons.
### Type Support for `.vue` Imports in TS
## Credits
Coded with ❤️ by [Corentin Thomasset](//corentin-thomasset.fr).
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
This project is continuously deployed using [vercel.com](https://vercel.com).
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
1. Disable the built-in TypeScript Extension
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
### Project Setup
```sh
pnpm install --ignore-scripts
```
### Compile and Hot-Reload for Development
```sh
pnpm dev
```
### Type-Check, Compile and Minify for Production
```sh
pnpm build
```
### Run Unit Tests with [Vitest](https://vitest.dev/)
```sh
pnpm test:unit
```
### Run End-to-End Tests with [Playwright](https://playwright.dev/)
Playwright starts `pnpm preview` itself, so build first:
```sh
pnpm build
pnpm test:e2e
```
To iterate against the dev server instead, leave `pnpm dev` running and point
the tests at it. Playwright then leaves the server alone:
```sh
E2E_BASE_URL=http://localhost:5173 pnpm test:e2e
```
The dev server compiles routes on demand, so a first run against a cold one can
blow past the assertion timeouts. Open the pages once, or just run it again.
### Lint with [Oxlint](https://oxc.rs/docs/guide/usage/linter)
```sh
pnpm lint
```
### Format with [Oxfmt](https://oxc.rs/docs/guide/usage/formatter)
```sh
pnpm fmt
```
### Ensure CI (lock, oxlint, typecheck) will succeed
To create a new tool, there is a script that generate the boilerplate of the new tool, simply run:
```sh
pnpm run script:create:tool my-tool-name
```
It will create a directory in `src/tools` with the correct files. You will need to fill `src/tools/_my-tool-name_/index.ts` with tool name, category, description... and then develop the tool.
## Installation methods
Local installation required installing first: `python3 make g++`
| replace your current image with this image | copy & paste oneliner (from github repo) |
| You may need to clear cache and hard reload to get new features loading | Installing packages for the first time may take some time; please wait until it finishes |
if [ -z "${NGINX_ENTRYPOINT_QUIET_LOGS:-}" ]; then
echo "19-skip-envsubst-if-readonly.envsh: info: $_envsubst_output_dir is not writable, keeping the config baked into the image"
fi
# The baked config carries the image defaults, so anything that is only applied by
# rendering the template is quietly lost. $PORT has always had this caveat; say so for
# BASE_URL too, where the symptom (an app that loads from the wrong path) is a lot less
# obvious than a port that did not move.
if [ "${BASE_URL:-/}" != "/" ]; then
echo "19-skip-envsubst-if-readonly.envsh: warning: BASE_URL=$BASE_URL cannot be applied on a read-only filesystem; mount a writable $_envsubst_output_dir (a tmpfs or an emptyDir will do)" >&2
Loaded 100 of 2205 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.