Compare commits

...
Author SHA1 Message Date
ShareVB 1858324d60 feat(new tool): Color Constract Checker
Fix #48
2025-04-06 22:23:25 +02:00
ShareVB d9ef06dca5 feat(Docker): publish an image with BASE_URL=/it-tools/ 2025-04-06 18:16:14 +02:00
ShareVB 48397685e9 chore: remove pr-conflict workflow 2025-04-05 11:41:00 +02:00
ShareVB 734fcee3c1 feat(unocss): update attributify preset to ignore 'size' attribute
Fix #1442
2025-04-05 11:40:01 +02:00
ShareVB 153e79a171 refactor: simplify tools integration
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
2025-04-05 11:17:29 +02:00
ShareVB f28128a79e feat(Date Converter): LDAP and Win32FileTime formats
Added LDAP format
Added Win32FileTime / Windows timestamp format

Fix #1483
2025-03-30 23:42:42 +02:00
ShareVB ab75cd57be fix: eslint 2025-03-30 22:16:18 +02:00
ShareVB 948fc34f3c feat(Mermaid Previewer): Mermaid Diagram Previewer
FIx #46
2025-03-30 22:16:03 +02:00
ShareVB a92d03ba5d feat(UI): better UI (remove 600px for 1200px) 2025-03-30 20:25:22 +02:00
ShareVB 155e6194ab feat(Chmod Computer): better UI 2025-03-30 19:39:14 +02:00
ShareVB 85ae94260a chore: update docker images references 2025-03-30 13:33:06 +02:00
ShareVB f120be9227 feat(Cards Picker): enhancements (packs, jokers, ui)
Fix randomness with use jokers options and number of packs
Better UI and randomness
Fix #39
2025-03-30 13:26:07 +02:00
ShareVB b870e0e99b chore(Docker): publish to docker hub
Fix #45
2025-03-30 11:34:03 +02:00
ShareVB aff2cecba4 chore: remove Zone.Identifier
Fix #43
2025-03-23 22:43:30 +01:00
ShareVB 3e5ad755f5 feat: SQL Formatter enhancements 2025-03-23 22:42:03 +01:00
Dandyandyandsharevb 21d35801ac fix: ASCII Text Drawer and menu
- 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>
2025-03-23 22:40:15 +01:00
ShareVB a06daf29fd chore: add apt install to README 2025-03-23 22:37:11 +01:00
ShareVB 007ef74420 chore: gitignore Zone.Identifier
Fix #43
2025-03-23 22:37:11 +01:00
sharevb 7f1f39dda4 feat(Text to Unicode/Binary): encoding enhancements
Fix part of #1447
Fix #1425, #1072
Fix #1082, #1081, #1175
2025-03-23 19:47:35 +01:00
ShareVB f3814e9a5b feat(My IP): show IPv4, IPv6 and country
Fix #1535
2025-03-17 23:19:14 +01:00
sharevb 91541b8f7c feat(new tool): Parquet File Reader
Fix #1516
2025-03-16 23:01:50 +01:00
sharevb 7e40050986 feat(new tools): Dice Roller, Cin Flipper, Card Picker and Fortune Wheel
Fix #1493 and #28
2025-03-16 22:57:35 +01:00
ShareVB 76c2804052 feat(Passphrase Generator): add option to add number at end of some words
Fix https://github.com/CorentinTh/it-tools/discussions/1228#discussioncomment-12514695
2025-03-16 22:50:20 +01:00
sharevb dfe05ff5ac feat(new tool): HAR file sanitizer
Fix #811
2025-03-15 17:34:52 +01:00
sharevb e0ec52bcc0 feat(new tools): IES Guidelines and Illuminance converter
IES Guidelines searcher and Illuminance units converter

Fix #1475
2025-03-10 21:39:51 +01:00
sharevb a29a5b5365 feat(new tool): Hex Converter
Convert hex buffer to (un)signed integer/float
Fix #1447
2025-03-10 21:36:35 +01:00
sharevb 8d1d069cd2 feat(new tool): SharePoint Url Decoder
Decode sharepoint.com share urls

Fix #1482
2025-03-09 22:14:12 +01:00
ShareVB 4f9503333e fix(Case Converter): option for a cleaning regex before casing
Cleaning regex before casing
And update change-case npm
Fix #1446
2025-03-09 21:59:17 +01:00
ShareVB d80207b746 feat(new tool): Contact Info QR Code generator
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.
2025-03-08 22:13:49 +01:00
derekcentrico 0852d1822f added WPA2/WPA3 and WPA3 only.
added WPA2/WPA3 and WPA3 only.
2025-03-08 22:03:22 +01:00
ShareVB 62e2e30f90 feat(JSON to C#): update to add options from json2csharp.com
rootTypeName (choose root object name)
pascalCase (type and member names)
useFields (instead of properties)
useNullable (types)
addJsonProperty (Newtonsoft) and nullValueHandlingIgnore
addJsonPropertyName (System.Text.Json)
generateImmutableClasses
useRecordTypes
useReadonlyLists
2025-03-08 21:56:26 +01:00
ShareVB b956e9f718 Merge branch 'chore/all-my-stuffs' of https://github.com/sharevb/it-tools into chore/all-my-stuffs 2025-03-02 22:02:00 +01:00
ShareVB 415659f6b6 feat(Markdown to Html): more options (html, sub, sup, mark, align)
Add options to allow html tags, to sanitize html tags
To support Superscript (^), Subscript (~), Mark (==)
And alignment ::: center ... :::
2025-03-02 21:59:51 +01:00
Ashutosh Verma a040ac6909 fix(Dockerfile): Docker image listen on both IPv4 and IPv6 (#34) 2025-03-02 20:47:24 +01:00
ShareVB 31d2426614 fix(Nginx formatter): compile error + UI
Package npm 'nginx-config-formatter' worked at dev but not once compiled/built
UI enhancement: better sample and no output formatting
Fix #33
2025-03-02 20:35:43 +01:00
ShareVB 572e8efab7 fix(Date Converter): keywords 2025-02-23 22:34:26 +01:00
ShareVB 6518ed6fcb fix: fuzzy search limits 2025-02-23 22:32:59 +01:00
ShareVB 637ba07ef3 feat(CSR and x509 Generators): handle Subject Alternative Names
Fix #31
2025-02-23 18:59:31 +01:00
ShareVB 371517ff98 fix(Certificate/Key Parser): CSR infos and Certificate extensions
Better extract and display x509 Certificate extensions (sshpk and node-forge)
Better handle display of CSR information (and extensions)
2025-02-23 18:58:26 +01:00
ShareVB 904352a4eb test(RAID Calculator): added test for raid 7 and 70 2025-02-23 13:28:48 +01:00
ShareVB 53a1c358df Merge branch 'chore/all-my-stuffs' of https://github.com/sharevb/it-tools into chore/all-my-stuffs 2025-02-23 13:17:46 +01:00
Le Duc Lischetzke e3101a7bd7 feat(RAID calculator): Added non-standard RAID 7/RAID TP (triple parity) (#30)
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.
2025-02-23 13:17:25 +01:00
ShareVB a30b74780d Merge branch 'nginx-unpriviledged' into chore/all-my-stuffs 2025-02-23 13:16:21 +01:00
ShareVB 83e41433b1 test(RAID Calculator): added unit tests 2025-02-23 11:58:02 +01:00
ShareVB 50b9e726a2 Merge branch 'chore/all-my-stuffs' of https://github.com/sharevb/it-tools into chore/all-my-stuffs 2025-02-23 10:48:34 +01:00
ShareVB 22f2ce661e fix(Cron Generator): better cron validation
Double check with cron-parser and cronstrue for cron expresson validity
Fix #26
2025-02-23 10:48:29 +01:00
Timothy Stottandsharevb c57fd88886 feat(Cert Key Parser): fingerprint in hex format (#25)
* 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>
2025-02-23 10:33:54 +01:00
ShareVB 0a0ebddb5d fix(Tools Menu): remove duplicate entry
Duplicated Percent Calculator
Fix #27
2025-02-23 10:03:03 +01:00
Lukas Grimm f02a02878d use nginx-unpriviledged 2025-02-14 16:59:23 +01:00
ShareVB a3ac98993b chore(deps): update some tools dependencies 2025-02-09 23:03:10 +01:00
ShareVB 2ff77eefc0 chore: update (de)composerize and composeverter 2025-02-09 18:02:39 +01:00
ShareVB dafe963ebd chore: remove buymeacoffee 2025-02-09 17:59:13 +01:00
ShareVB 53bb635cd1 chore(version): release 2025.02.09-b99a19c 2025-02-09 14:49:44 +01:00
ShareVB fbc2c97014 docs(changelog): update changelog for 2025.02.09-b99a19c 2025-02-09 14:49:44 +01:00
393 changed files with 8999 additions and 3328 deletions

No files matched your search

-21
View File
@@ -1,21 +0,0 @@
name: "Pull Requests Merge Conflicts Tagger"
on:
# So that PRs touching the same files as the push are updated
push:
# So that the `dirtyLabel` is removed if conflicts are resolve
# We recommend `pull_request_target` so that github secrets are available.
# In `pull_request` we wouldn't be able to change labels of fork PRs
pull_request_target:
types: [synchronize]
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: check if prs are dirty
uses: eps1lon/actions-label-merge-conflict@v3
with:
dirtyLabel: "PR: needs rebase"
repoToken: "${{ secrets.GITHUB_TOKEN }}"
commentOnDirty: "This pull request has conflicts, please resolve those before we can evaluate the pull request."
# commentOnClean: "Conflicts have been resolved. A maintainer will review the pull request shortly."
@@ -83,6 +83,7 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: |
sharevb/it-tools:nightly
ghcr.io/${{ github.repository_owner }}/it-tools:nightly
# Optionally log out
+20 -1
View File
@@ -43,6 +43,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
@@ -56,6 +62,19 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push (BASE_URL)
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
build-args: |
"BASE_URL=/it-tools/"
platforms: linux/amd64,linux/arm64
push: true
tags: |
sharevb/it-tools:baseurl-it-tools
ghcr.io/sharevb/it-tools:baseurl-it-tools
- name: Build and push
uses: docker/build-push-action@v5
with:
@@ -64,9 +83,9 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: |
sharevb/it-tools:latest
ghcr.io/${{ github.repository_owner }}/it-tools:latest
# Optionally log out
- name: Log out from GitHub Container Registry
run: docker logout ghcr.io
+27
View File
@@ -15,6 +15,12 @@ jobs:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
@@ -28,6 +34,21 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push (BASE_URL)
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
build-args: |
"BASE_URL=/it-tools/"
platforms: linux/amd64,linux/arm64
push: true
tags: |
sharevb/it-tools:baseurl-it-tools
sharevb/it-tools:${{ env.RELEASE_VERSION}}-baseurl-it-tools
ghcr.io/sharevb/it-tools:baseurl-it-tools
ghcr.io/sharevb/it-tools:${{ env.RELEASE_VERSION}}-baseurl-it-tools
- name: Build and push
uses: docker/build-push-action@v5
with:
@@ -36,6 +57,8 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: |
sharevb/it-tools:latest
sharevb/it-tools:${{ env.RELEASE_VERSION}}
ghcr.io/sharevb/it-tools:latest
ghcr.io/sharevb/it-tools:${{ env.RELEASE_VERSION}}
@@ -89,6 +112,10 @@ jobs:
body: |
## Docker images
- Docker Hub Registry
- `sharevb/it-tools:latest`
- `sharevb/it-tools:${{ env.RELEASE_VERSION}}`
- GitHub Container Registry
- `ghcr.io/sharevb/it-tools:latest`
- `ghcr.io/sharevb/it-tools:${{ env.RELEASE_VERSION}}`
+3 -1
View File
@@ -32,4 +32,6 @@ coverage
/playwright-report/
/playwright/.cache/
# Webkit with playwright creates a salt file
salt
salt
# WSL can create Zone.Identifier
Zone.Identifier
+408
View File
@@ -2,6 +2,414 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## Version 2025.02.09-b99a19c
### Features
- **Days Calculator**: add more diff (days, weeks...minutes) (fd1647a)
- **Barcode Generator**: use bwip-js to add more barcode types (77b6b39)
- **new tool**: JWT Generator + JWT Signature verification (47917dc)
- **new tool**: GPT Token Counter (a8a2a0d)
- **Url Encoder**: enhance encoding options (f1adc66)
- **new tool**: My IP Address (bf2f63c)
- **new tool**: Geo Distance Computer (fcee9d8)
- **new tool**: OVH X-VR-SPAMCAUSE Decoder (3a272f6)
- **new tool**: IP Subnets Exclude Calculator (eead4e1)
- **CIDR in CIDR**: IP Range (single IP, CIDR, range, mask) in IP Range (CIDR, range, mask) (1f3dfc5)
- **UUID Generator**: add v6 and v7 versions (434001a)
- **wifi-qr-code**: Allow to copy wifi connection string. Fixes #1438 (82a4958)
- **i18n**: add back other languages (fb62eec)
- **sponsor**: added sponsor banner (#1422) (08d977b)
- **new tool**: curl converter (02593d8)
- **new tool**: JSON string converter (f536ae7)
- JSONPath and JQ memo (4015507)
- **new tools**: Date+Duration and Days Calculator (dec2e31)
- handle option to handle digits and punctuations pronunciation (6cfaf63)
- **new tool**: DNS query (over HTTPS) (2df9373)
- **new tool**: Week Numbers Converter (699f327)
- add SVG as possible input format (cd04593)
- **i18n**: added Norwegian language (#1337) (aa8cba9)
- **new tool**: Code Highlighter (eb1beb8)
- **new tools**: iCal Generator/Merger/Parser (6896d03)
- python/java formats + wrap option (2325669)
- add split by separator + order by numeric + no sort (7bafd47)
- **new tool**: VAT Number Validator (d38f9a2)
- **new tool**: Images Formats Converter (bac8c8d)
- **new tool**: Stacktrace Formatter (69e660b)
- **new tool**: Luhn Checker (98c50f0)
- **new tool**: Bounce Email Parser (e86e921)
- **new tool**: Smart Raw Error Converter (7a83b35)
- **new tools**: Units Converter (d1aca6a)
- **new tool**: Countries/ISO 3166 Searcher (98db1e7)
- **Html WYSYWIG**: add colors and tables (e3e8e9d)
- **new tool**: JSON Size Analyzer (3aa887c)
- **new tool**: Duration Calculator (5cd4253)
- **new tool**: Currency Converter (b241003)
- **new tool**: Duration Calculator (2384d3b)
- **new tool**: List Comparaison (f117a74)
- add whatsapp/sms message links forger (ba2d10a)
- use a better jsoneditor version + current selected node jsonpath (cf0d31f)
- **new tool**: SLA Computer (0e73e58)
- handle prefix 0x, &H, \x and custom output prefix (0c63eb7)
- **new tool**: SSL Certificate Converter (e62ca22)
- **List Converter**: add remove prefix/suffix capability (327ff11)
- add label for units (7856df3)
- Outlook MSG Parser (b50b790)
- add file upload option and word wrap (0c2dcbd)
- **new tool**: Unicode Search (8fdb31b)
- **new tool**: added Regex Cheatsheet (e2a1748)
- **new tool**: WebSocket Tester (9347c9f)
- **new tool**: Smart Text Replacer and LineBreaks manager (2f2b3db)
- **new tools**: Data Storage Units Converter and Data Transfer Rate Converter (49aa769)
- **new tool**: Timezone Converter (fcb8ab2)
- **new tools**: Data Storage/Transfer Units Converter (35ae97d)
- **new tool**: Paste as Markdown (9cee2d1)
- **new tool**: Math OCR to Latex (6fbff77)
- **new tool**: ICO <> PNG Converter (4bf7470)
- handle parsing of common qr code types (951143d)
- **new tool**: CSS <> XPath converter (be60b04)
- add print button (95722a6)
- add umask computation (7039888)
- add unique words count and read time (1cf54a8)
- **new tool**: Email Parser (a38def7)
- **new tool**: XPath tester (23214dc)
- **new tool**: AI Prompt Splitter (2da74fa)
- **new tool**: WPA PSK Raw Key Generator (8b93379)
- **new tool**: Hex File Converter (73e97f9)
- **new tool**: jq/JSONPath tester (0d9f6aa)
- **new tool**: Integers to IP (8659024)
- **new tool**: Punycode Converter (d087bd9)
- **new tool**: Mongo ObjectId DateTime Converter (f7b024a)
- **new tool**: PIN Code Generator (8e9c5c0)
- **new tool**: Passphrase Generator (f52b42d)
- **new tool**: Color Wheel (f9f9288)
- **new tool**: Exif Remover (ba1b5bc)
- **new tool**: JSON to object (bb1f872)
- **Slugify**: add separator option (b9725ea)
- **new tool**: JSON <> XML (31e280c)
- **new tool**: Paste as Markdown (d72facf)
- add download button to many tools (31eac2b)
- **new tool**: Potrace (045075a)
- add refresh button (from PR #1213) (40aad48)
- add sample of useful denied chars (8881f44)
- **new tool**: XSLT Tester (29a9093)
- **new tool**: Snowflake ID extractor (6540db3)
- **new tool**: curl converter (6d079f1)
- **new tool**: Torrent To Magnet and parser (3f44fec)
- better UI (7869914)
- disable some built-in regex (80d87cb)
- **new tool**: Markdown TOC Generator (e32d38c)
- add npmPackages (5441b26)
- enhance cleaned PII and custom regexes (933d824)
- **new tool**: Sensitive data masker (747a7c8)
- **new tool**: text to unicode names (cd93fde)
- **Lorem Ipsum Generator**: generate multi language/script (a465baf)
- Display a footer/list of npm packages per tool (c2e55b1)
- **new tool**: Common Regex Memo (3e8cdf3)
- test that all tools are loading (2ef2b39)
- **new tool**: JSON To Schema (2c2b302)
- **TextAreaCopyable**: word wrap (42d1bf7)
- **TextAreaCopyable**: word wrap (43922ae)
- **MAC Address Converter**: add EUI-64 and IPv6 support (7437577)
- **New tool**: Image to CSS (c8dbec7)
- **New tool**: API Tester (c906f11)
- **TextareaCopyable/FormatTransformer**: add download button prop (052ddeb)
- **TextAreaCopyable**: word wrap (49f4c88)
- **TextAreaCopyable**: more langs (f2de87e)
- add key encoding (text or hex string) for hmac (53df0a2)
- **new tool**: CRC calculator (e419ed3)
- **new tool**: File Hasher (fd48016)
- **tool**: nanoid generator (2dbc8fa)
- **new tool**: Folder Tree Diagram (6e113a8)
- **new tool**: Nginx Config File formatter (535ba88)
- **new tool**: JS Unobfuscator (b5d3ed6)
- **new tools**: Barcode Reader and Generator (fef1993)
- **new tool**: JSON to C# (748126f)
- **new tool**: JSON Editor (a28ba6e)
- **new tools**: JSON to PHP Array and reverse (ebfae5e)
- **new tool**: Math Formula format converter (bc0c344)
- **new tool**: rsa/ecdsa signing and verify (2de5935)
- **new tool**: Malicious Link Checker (91a6038)
- **new tool**: unicode to java entities (e9a4d06)
- **new tool**: unicode to java entities (2821655)
- **new tool**: Json to Go (47888b5)
- **new tool**: RMB Uppercase Converter (6530d37)
- **new tool**: Unicode Formatter (eac0de1)
- **new tool**: HDD Size Calculator (e46a5ec)
- **new tool**: Airport and Airline lookup (071cd4c)
- **new tool**: Text extractor form HTML (089853e)
- **Chmod Calculator**: implement symbol form input (3d63fde)
- **new tool**: Port Info Search (b36a01e)
- **new tool**: Regex Tester (f61db56)
- **new tool**: TTL Calculator (b3d48c0)
- **new tool**: nano cheatsheet (fb343ea)
- **new tool**: ECDSA Keygen (d415871)
- add CSR parsing (2f64b7e)
- add pgp parsing (5732ce7)
- **new tool**: Markdown Editor (a99dae7)
- **new tool**: HTML to Markdown (with paste) (d724281)
- **new tool**: File Type Identifier (7c12c12)
- **ui**: add c-monaco-editor to ui lib (e10beda)
- **new tool**: JSON Linter (9390435)
- **new tool**: HEIC Converter (d3ee99a)
- **Color Converter**: Many enhancements (a25a69e)
- **new tool**: PGP Encryption (01a0e06)
- **new tool**: PGP Keygen (aa0f705)
- **new tool**: RSA Encryption (97a2a11)
- **new tool**: Morse converter (3305c81)
- add OCRized text statistics (7a1beb5)
- refactor text stats to service (7f2bf11)
- **c-file-upload**: paste image (b7debec)
- **Text Statistics**: add more stats (af1013d)
- refactor text stats to service (2d87aaf)
- **new tool**: JSON Linter (75269c8)
- **new tool**: PDF Encrypt (1b82da5)
- prepare qpdf-wasm (23b4dc8)
- **new tool**: PDF Linearizer (849c34f)
- prepare qpdf-wasm (8d710d1)
- **new tool**: Pdf Unlocker (450b994)
- prepare qpdf-wasm (f812703)
- json to typescript (dd03874)
- **new tool**: IPv4/6 in IP Range (9501a60)
- **utils**: IPv4/6 Utils (591cdcd)
- **utils**: IPv4/6 Utils (70ed8fe)
- **utils**: IPv4/6 Utils (bf0faf6)
- **utils**: IPv4/6 Utils (94f0b9e)
- **IPv4 Subnet/Address Calculator**: add more ip info (070ec0b)
- **ASCII Art to Code**: utility to format ASCII Art to code (756162f)
- **new tool**: Image to ASCII Art (d37be27)
- **Hash Text**: more hashing methods (2816ed2)
- **utils**: IPv4/6 Utils (3550d81)
- **htpasswd generator**: allow salt rounds input (if bcrypt) (3b7b0a4)
- add SIP authentication (362434c)
- **new-tool**: csv to json converter (9dca9c3)
- **new tool**: Option 43 DHCP Generator (18f4fa8)
- **new tool**: Javascript Prettier (d1d2b6b)
- **new tool**: Markdown Cheatsheet (5bcc503)
- **new tool**: URL Cleaner (e94cebf)
- **ui**: add c-monaco-editor to ui lib (729a10c)
- **Text to NATO**: add other languages, upper/lower and other (1b1be10)
- **ui**: add c-monaco-editor to ui lib (65aad83)
- **Yaml Viewer**: add parsing validation (fd0a723)
- **ASCII Art Drawer**: add coding languages support (093daa8)
- **Chmod Calculator**: octal input and special flags (3ead4d3)
- **new tool**: Docker Compose Validator (c49ff00)
- **new tool**: IPv6 Subnet Calculator (1f67ba1)
- **new tool**: html cleaner (c0c5cfd)
- **new tool**: JSON Escape/Unescape (9c5b297)
- **new tool**: HTML Prettier (7616a35)
- **new tool**: CSS Prettier (a7dd503)
- add js-beautify (21fa721)
- **new tool**: UTM URL Generator (9d3337f)
- ipv4/6 calculator lib (d7a8c65)
- **ASCII Art to Code**: utility to format ASCII Art to code (2850dbd)
- Implement JS Object to JSON Converter (#849) (a385d18)
- **new tool**: Implement JSON sorter, addressing issue #941 (22cdc82)
- **new tool**: OCR Image (0d17698)
- **new tool**: Software Licenses Compatibility and infos (5223491)
- **new tool**: MIME Encoder/Decoder (df7cc7c)
- **new tool**: GZIP String converter (3ad648d)
- **new tool**: Url Defanger/Fanger (0106d1b)
- prepare qpdf-wasm (06640f9)
- **new tool**: Markdown to HTML (ccd6deb)
- **new tool**: x509 Certificate Generator (16d1a00)
- **new tool**: Certificate/Key Parser and infos (ce8199e)
- **c-file-upload**: paste image (dbd4730)
- **new tool**: QRCode decoder (6d61960)
- **new tool**: Ansible Vault Encrypt/Decrypt (82d99b6)
- **TextareaCopyable**: word-wrap prop (c413ac2)
- **new tool**: x509 Certificate Generator (b21ea3c)
- **new tool**: URL Text Fragment Generator (b779beb)
- **c-file-upload**: paste image (6c00514)
- **new tool**: htpasswd generator (3a0b612)
- **new tool**: CSR Generator (92b723a)
- **c-input-text**: handle paste htm (5641816)
- **base64 file converter**: add a preview image (a25bd8f)
- **base64 file converter**: add a filename and extension fields (435d812)
- **new-tool**: Docker Compose to Kubernetes manifests (b293763)
- **ui**: add c-monaco-editor to ui lib (2a8efd4)
- **new-tool**: Docker Run command(s) to Kubernetes manifests (a10caaa)
- **ui**: add c-monaco-editor to ui lib (377d6ec)
- **new tool**: Ed25519 Key Pair Generator (ca44c5c)
- **rsa-key-generator**: passphrase and formats (503cf67)
- **rsa-key-generator**: passphrase and formats (85aed08)
- **TextareaCopyable**: word-wrap prop (83832f3)
- **new tool**: ascii art generator (c0f7f8f)
- **new tool**: IPv4/6 Range To CIDR (2fe369a)
- **new tool**: IPv6 Address Converter (5bd2929)
- **new tool**: IP Geolocation (03f99d6)
- **new tool**: ISBN Parser and Formatter (29e0107)
- **new tool**: MAC Address Converter (4598eba)
- **new tool**: IPv4/6 CIDR to IP Range (2908763)
- **new tool**: Docker Compose to Docker Run (a4f0522)
- **tool enhancement**: Docker Run to Docker Compose (39bc401)
- **ui**: add c-monaco-editor to ui lib (22e836b)
- **new tool**: Docker Compose Converter (1b17302)
- **new tool**: Image EXIF Reader (d7c207c)
- :sparkles: Add tool uuid-converter (94eb67b)
### Bug fixes
- **Temperature Converter**: don't round to 2 digits (9dd752f)
- **Certificate Parser**: add validity dates and enhance extension display (1e17818)
- **My IP**: use https://www.ipify.org/ (68f8e39)
- serve it-tools in docker for any incoming name (81258f6)
- **Image Formats Converter**: better UI and clean image extension and multiple files (7cd3cb4)
- allow all units for bitrate (746fe85)
- fix handling of milliseconds (ea71d16)
- handle (.net) timespan format and submilliseconds (13e929e)
- use sandybox for webcrack (982ef5f)
- use String.raw in unit test (2c56bb3)
- use Plurimath as asset (0de2ed1)
- **Search tools**: show more tools (a9caef7)
- **Dockerfile**: allow base url in build (1bcc0ac)
- **Currency Converter**: tool description (e0ea732)
- **yaml-viewer**: prevent large integers from being converted to exponential notation by enabling inAsBigInt config (890c1f3)
- **list converter**: e2e test (84eb800)
- **csv to json**: e2e test (fb80d8a)
- **token generator test**: codeql (62802ff)
- **json to csv**: codeql (4e0252c)
- **markdown toc**: codeql (225ad41)
- **integer converter**: codeql (c413970)
- **ascii utils**: codeql (7cd1aa2)
- new version of hash-wasm (a77ebf8)
- iso duration test case (b1dce63)
- sonar (2956b08)
- codeql alerts (ff4fd6c)
- paste-html fallback to text (f7286a0)
- **Properties to yaml**: add description (5695589)
- add a label on datetime range dropdown (58a1f73)
- code style (7749f8c)
- better description and use of units (171ad3f)
- better ui and ISO Week mention (fcb4b68)
- spelling (243146a)
- **Multilink Downloader**: spelling (f8aa7db)
- **locales**: update license from MIT to GPL-3.0 in language files (#1419) (63fbd3b)
- missing tool en message (109a869)
- deps and en.yml (e88fafe)
- json to java typecheck (7720721)
- shiki deps (60851b5)
- remove all-tools single e2e spec test (d5e6965)
- typecheck and lint (ef0894f)
- **regex tester**: optional groups/captures failing (11c0ac7)
- update tree sitter wasm (2f145f8)
- ip and integer wrong merge (fd3ca23)
- remove copy plugin (5d96ef8)
- make vite copy tree sitter (8c99d26)
- fs external (cd492c2)
- disable top level await and some manual chunking (613bc8c)
- escape i18n (a72f8f2)
- **url-parser**: handle repeated params Fix #800 and #862 (cc33329)
- replace svg-to-url, ui improve and build (28699f7)
- tools lists (9ae4574)
- shiki building (ebc7956)
- **icons,branding**: swap twitter to X (#1369) (ea8c4ed)
- **FavoriteButton**: pass tool path to favorite button (#1368) (ae13639)
- **readme**: refresh stale contributors graph (#1364) (c7b80fb)
- **yaml-to-json**: allow merge key to be parsed (#1359) (f836666)
- intersection (393ac40)
- add GFM Tables, Strikeout, task list (d1fc7ec)
- better ui to select file or paste content (6c71882)
- ensure length and count are > 0 (aba466a)
- let user choice 'standard' vs 'aws' (fa01008)
- helpers dup % (605229f)
- **Cron Parser**: handle aws, next executions and TZ (48b4904)
- better ui on small phone screens (2f8fad5)
- pre-wrap result to proper display (f0ef42a)
- make current tz offset not copyable (4784925)
- 12hours format for input and ui overflow (66bfb2d)
- title, desc, spaces and placeholders (a50bfd5)
- add 24h switch and bugs fixes (04f2ec1)
- display numbers always with dot (66dd351)
- add No Sort option (8ccbc34)
- svg style bug in @regexper/render (f0a092f)
- **json-to-csv**: handle single object and flatten (d02443a)
- milliseconds test and e2e (3ef7e50)
- **date-time-converter**: add UTC ISO Display and JS Date Constructor (6fd79d6)
- wrong key length (96f6262)
- better select between file and content (099ecc8)
- **OTP Generator**: add query and storage for secret (so can be remembered) (fdb2bff)
- error in denied chars logic (bda56ac)
- denied chars expected values (f7e535f)
- link to openstreetmap (a0b8cf0)
- use ipinfo.io to allow https (a3e4ed9)
- better link style (aee1353)
- store favorites regardless of languages (44d7fa5)
- deps (aa90b72)
- ignore some tools (9f38cdf)
- add expect error message with toolHref (720c874)
- better display format (char, U+XXXX and name) (e220d4a)
- formatting, overflow, link colors (78084e6)
- ignore Device related JS errors (ie, camera recorder) (48df524)
- **Emoji picker**: fix lags (ab762c3)
- add tsconfig for playright (2bd17e9)
- **Mac Address Converter**: update description (11206a5)
- **TextAreaCopyable**: copy button placement (135b311)
- inverted done state (a0c51c9)
- **QR Code Generator**: more styling, SVG, image upload (f2e0022)
- **Phone Parser**: store country prefix (374caa1)
- **JWT Parser**: UI overflow on small screen (50d7803)
- refactor to service + add regex diagram + ui enhancements (c9f9bb1)
- **Token Generator**: handle UI for small smartphone screen (0d67535)
- **Token Generator**: handle UI for small smartphone screen (cbd32fd)
- **text-to-unicode**: handle non-BMP + more conversion options (b0ae8d7)
- **text-to-binary**: return valid UTF-8 results for non-ASCII text (35d8264)
- **Token Generator**: multi token, last settings, length input, denied chars (ff57fda)
- **Cron Parser**: handle more patterns (f1044b3)
- use qpdf-wasm-esm-embedded + add logs (c35e710)
- tiptap/core 2.3 causing typecheck errors in html wysiwyg (6971cb6)
- date error (df1169d)
- language type (d2c270a)
- refactor using IPv4/6 Utils Parse IPMask (ie, 192.168.0.5/255.255.255.0) to CIDR (ie 192.168.0.5/24), Fix #603 (328afe5)
- removed direct link with cleaned for security reason (3f7151b)
- **bcrypt tool**: allow salt rounds up to 100 (d832e86)
- remove empty unit test (for now) (5442a88)
- **PDF Signature Checker**: fix reading problem (172c617)
- **integer-base-converter**: fix conversion for number of more than 32bits (34357dd)
- make fonts list searchable (53e306b)
- update docker2kube to handle correctly command/entrypoint/args (ed6bd1a)
- update docker2kube to handle correctly command/entrypoint/args (690bb19)
- **integer-basee-converter**: handle prefix/suffix and case in sensitive (e336ebe)
- **date-time-converter**: handle timestamp in microseconds (88ecf60)
- **base64**: use js-base64 to handle non ascii text (3e27051)
- **base64**: use js-base64 to handle non ascii text (3f61e35)
- **integer-base-converter**: fix conversion for number of more than 32bits (6749d81)
- **integer-base-converter**: fix conversion for number of more than 32bits (21eabe9)
- **ui**: copy icon placement (7ebbddd)
- **ui**: copy icon placement (a74553c)
### Refactoring
- **sponsor**: removed sponsor banner and related configurations (#1405) (b47d132)
- **ascii-generator**: equilibrate ui (7a74c85)
- **ascii-generator**: updated tool definition (8301489)
- :art: Lint checks (808f56e)
### Tests
- **eslint**: fixing correct title of tool text from html (b2a4b96)
### Continuous integration
- fix docker nightly (9192d46)
- add a workflow to tag PR with merge conflicts (fde7035)
- add a workflow to tag PR with merge conflicts (f07687b)
- Remove unused uuid parser (6f64dc4)
### Chores
- update release workflow (b99a19c)
- update corepack in github actions (8057334)
- docker add arm64 (08ee879)
- update playwright (1b78bad)
- TZ=UTC for unit testing (35600c2)
- change github repo url to my fork (f56a39a)
- add docker compose sample (d920632)
- **Docker publish**: publish to latest (and not dev) tag (4693994)
- cleaning and referencing fork (8cfe480)
- update workflows and readme (bc50a87)
- build with dynamic node --max-old-space-size (78b7614)
- fix docker workflows (for me) (675e5bf)
- fix pnpm lock (b4f4199)
- fix strange corepack message (7e9613d)
- ignore src/libs in codeql (48dd7bb)
- prepare sshpk for cert/key/sshkeys related tools (90fba75)
- vue-i18n ignore html (ed019b0)
## Version 2024.10.22-7ca5933
### Features
+2 -2
View File
@@ -16,10 +16,10 @@ ENV BASE_URL=${BASE_URL}
RUN pnpm build
# production stage
FROM nginx:stable-alpine AS production-stage
FROM nginxinc/nginx-unprivileged:stable-alpine AS production-stage
ARG BASE_URL
ENV BASE_URL=${BASE_URL}
COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]
+25 -7
View File
@@ -1,3 +1,7 @@
## BREAKING CHANGE for Docker Image
Since *Docker base image* is now `nginx-unpriviledged`, docker image now listen to **8080** and no more 80. So you need to update your port mapping, ie from `8080:80` to `8080:8080`.
### Check out these change here: <https://sharevb-it-tools.vercel.app/>
You can use my image in your docker-compose file if you want an update to date version of it-tools (with my PR and some of others) until the main branch has been updated.
@@ -12,12 +16,24 @@ Almost [all tools PR of it-tools](https://github.com/sharevb/it-tools/pulls).
## Build docker image for a subfolder
According to https://github.com/sharevb/it-tools/pull/461#issuecomment-1602506049:
According to https://github.com/sharevb/it-tools/pull/461#issuecomment-1602506049 and https://github.com/CorentinTh/it-tools/pull/461:
```
docker build -t it-tools --build-arg BASE_URL="/my-folder/" .
docker run -d --name it-tools --restart unless-stopped -p 8080:80 it-tools
docker build -t it-tools --build-arg BASE_URL="/my-folder/" .
docker run -d --name it-tools --restart unless-stopped -p 8080:8080 it-tools
```
For `/it-tools/` subfolder, you can use `baseurl-it-tools` tag:
```
docker run -p 8080:8080 ghcr.io/sharevb/it-tools:baseurl-it-tools
```
## Docker images
[GitHub Container Registry](https://github.com/sharevb/it-tools/pkgs/container/it-tools): `ghcr.io/sharevb/it-tools:latest`
[Docker Hub](https://hub.docker.com/r/sharevb/it-tools): `sharevb/it-tools:latest`
## Use in Docker Compose file
```yml
@@ -28,14 +44,16 @@ services:
pull_policy: always
restart: unless-stopped
ports:
- 8080:80
- 8080:8080
```
## Installation methods
Local installation required installing first: `python3 make g++`
| Docker Image | Local Installation |
|-----------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|
| <span title="triple click me!">`ghcr.io/sharevb/it-tools:latest`</span> | <span title="triple click me!">`git clone -b chore/all-my-stuffs https://github.com/sharevb/it-tools.git && cd it-tools/ && pnpm i && pnpm dev`</span> |
| GitHub Container Registry: <span title="triple click me!">`ghcr.io/sharevb/it-tools:latest`</span><br/>Docker Hub: <span title="triple click me!">`sharevb/it-tools:latest`</span> | <span title="triple click me!">`sudo apt-get install python3 make g++ && git clone -b chore/all-my-stuffs https://github.com/sharevb/it-tools.git && cd it-tools/ && pnpm i && pnpm dev`</span> |
| 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 |
@@ -62,13 +80,13 @@ Self host solutions for your homelab
**From docker hub:**
```sh
docker run -d --name it-tools --restart unless-stopped -p 8080:80 corentinth/it-tools:latest
docker run -d --name it-tools --restart unless-stopped -p 8080:8080 corentinth/it-tools:latest
```
**From github packages:**
```sh
docker run -d --name it-tools --restart unless-stopped -p 8080:80 ghcr.io/corentinth/it-tools:latest
docker run -d --name it-tools --restart unless-stopped -p 8080:8080 ghcr.io/corentinth/it-tools:latest
```
**Other solutions:**
+35
View File
@@ -32,6 +32,7 @@ declare module '@vue/runtime-core' {
CAlert: typeof import('./src/ui/c-alert/c-alert.vue')['default']
'CAlert.demo': typeof import('./src/ui/c-alert/c-alert.demo.vue')['default']
CameraRecorder: typeof import('./src/tools/camera-recorder/camera-recorder.vue')['default']
CardPicker: typeof import('./src/tools/card-picker/card-picker.vue')['default']
CaseConverter: typeof import('./src/tools/case-converter/case-converter.vue')['default']
CButton: typeof import('./src/ui/c-button/c-button.vue')['default']
'CButton.demo': typeof import('./src/ui/c-button/c-button.demo.vue')['default']
@@ -63,7 +64,9 @@ declare module '@vue/runtime-core' {
'CModalValue.demo': typeof import('./src/ui/c-modal-value/c-modal-value.demo.vue')['default']
CMonacoEditor: typeof import('./src/ui/c-monaco-editor/c-monaco-editor.vue')['default']
CodeHighlighter: typeof import('./src/tools/code-highlighter/code-highlighter.vue')['default']
CoinFlipper: typeof import('./src/tools/coin-flipper/coin-flipper.vue')['default']
CollapsibleToolMenu: typeof import('./src/components/CollapsibleToolMenu.vue')['default']
ColorContrastChecker: typeof import('./src/tools/color-contrast-checker/color-contrast-checker.vue')['default']
ColorConverter: typeof import('./src/tools/color-converter/color-converter.vue')['default']
ColoredCard: typeof import('./src/components/ColoredCard.vue')['default']
ColorWheel: typeof import('./src/tools/color-wheel/color-wheel.vue')['default']
@@ -96,6 +99,7 @@ declare module '@vue/runtime-core' {
'DemoHome.page': typeof import('./src/ui/demo/demo-home.page.vue')['default']
DemoWrapper: typeof import('./src/ui/demo/demo-wrapper.vue')['default']
DeviceInformation: typeof import('./src/tools/device-information/device-information.vue')['default']
DiceRoller: typeof import('./src/tools/dice-roller/dice-roller.vue')['default']
DiffViewer: typeof import('./src/tools/json-diff/diff-viewer/diff-viewer.vue')['default']
DnsQueries: typeof import('./src/tools/dns-queries/dns-queries.vue')['default']
DockerComposeConverter: typeof import('./src/tools/docker-compose-converter/docker-compose-converter.vue')['default']
@@ -126,14 +130,17 @@ declare module '@vue/runtime-core' {
FolderStructureDiagram: typeof import('./src/tools/folder-structure-diagram/folder-structure-diagram.vue')['default']
ForceConverter: typeof import('./src/tools/force-converter/force-converter.vue')['default']
FormatTransformer: typeof import('./src/components/FormatTransformer.vue')['default']
FortuneWheel: typeof import('./src/tools/fortune-wheel/fortune-wheel.vue')['default']
GeoDistanceCalculator: typeof import('./src/tools/geo-distance-calculator/geo-distance-calculator.vue')['default']
GitMemo: typeof import('./src/tools/git-memo/git-memo.vue')['default']
'GitMemo.content': typeof import('./src/tools/git-memo/git-memo.content.md')['default']
GptTokenEstimator: typeof import('./src/tools/gpt-token-estimator/gpt-token-estimator.vue')['default']
GzipConverter: typeof import('./src/tools/gzip-converter/gzip-converter.vue')['default']
HarSanitizer: typeof import('./src/tools/har-sanitizer/har-sanitizer.vue')['default']
HashText: typeof import('./src/tools/hash-text/hash-text.vue')['default']
HddCalculator: typeof import('./src/tools/hdd-calculator/hdd-calculator.vue')['default']
HeicConverter: typeof import('./src/tools/heic-converter/heic-converter.vue')['default']
HexConverter: typeof import('./src/tools/hex-converter/hex-converter.vue')['default']
HexFileConverter: typeof import('./src/tools/hex-file-converter/hex-file-converter.vue')['default']
HmacGenerator: typeof import('./src/tools/hmac-generator/hmac-generator.vue')['default']
'Home.page': typeof import('./src/pages/Home.page.vue')['default']
@@ -150,6 +157,7 @@ declare module '@vue/runtime-core' {
IcalParser: typeof import('./src/tools/ical-parser/ical-parser.vue')['default']
IcoConverter: typeof import('./src/tools/ico-converter/ico-converter.vue')['default']
'IconMdi:brushVariant': typeof import('~icons/mdi/brush-variant')['default']
'IconMdi:contentCopy': typeof import('~icons/mdi/content-copy')['default']
'IconMdi:kettleSteamOutline': typeof import('~icons/mdi/kettle-steam-outline')['default']
IconMdiChevronDown: typeof import('~icons/mdi/chevron-down')['default']
IconMdiChevronRight: typeof import('~icons/mdi/chevron-right')['default']
@@ -161,6 +169,8 @@ declare module '@vue/runtime-core' {
IconMdiSearch: typeof import('~icons/mdi/search')['default']
IconMdiTranslate: typeof import('~icons/mdi/translate')['default']
IconMdiTriangleDown: typeof import('~icons/mdi/triangle-down')['default']
IesLightingGuidelines: typeof import('./src/tools/ies-lighting-guidelines/ies-lighting-guidelines.vue')['default']
IlluminanceConverter: typeof import('./src/tools/illuminance-converter/illuminance-converter.vue')['default']
ImageConverter: typeof import('./src/tools/image-converter/image-converter.vue')['default']
ImageExifReader: typeof import('./src/tools/image-exif-reader/image-exif-reader.vue')['default']
ImageResizer: typeof import('./src/tools/image-resizer/image-resizer.vue')['default']
@@ -234,6 +244,7 @@ declare module '@vue/runtime-core' {
MenuBarItem: typeof import('./src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue')['default']
MenuIconItem: typeof import('./src/components/MenuIconItem.vue')['default']
MenuLayout: typeof import('./src/components/MenuLayout.vue')['default']
MermaidPreviewer: typeof import('./src/tools/mermaid-previewer/mermaid-previewer.vue')['default']
MetaTagGenerator: typeof import('./src/tools/meta-tag-generator/meta-tag-generator.vue')['default']
MicTester: typeof import('./src/tools/mic-tester/mic-tester.vue')['default']
MimeConverter: typeof import('./src/tools/mime-converter/mime-converter.vue')['default']
@@ -242,32 +253,54 @@ declare module '@vue/runtime-core' {
MorseConverter: typeof import('./src/tools/morse-converter/morse-converter.vue')['default']
MultiLinkDownloader: typeof import('./src/tools/multi-link-downloader/multi-link-downloader.vue')['default']
MyIp: typeof import('./src/tools/my-ip/my-ip.vue')['default']
NA: typeof import('naive-ui')['NA']
NAlert: typeof import('naive-ui')['NAlert']
NanoidGenerator: typeof import('./src/tools/nanoid-generator/nanoid-generator.vue')['default']
NanoMemo: typeof import('./src/tools/nano-memo/nano-memo.vue')['default']
'NanoMemo.content': typeof import('./src/tools/nano-memo/nano-memo.content.md')['default']
NavbarButtons: typeof import('./src/components/NavbarButtons.vue')['default']
NCheckbox: typeof import('naive-ui')['NCheckbox']
NCode: typeof import('naive-ui')['NCode']
NCollapseTransition: typeof import('naive-ui')['NCollapseTransition']
NColorPicker: typeof import('naive-ui')['NColorPicker']
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
NDatePicker: typeof import('naive-ui')['NDatePicker']
NDivider: typeof import('naive-ui')['NDivider']
NDynamicInput: typeof import('naive-ui')['NDynamicInput']
NEllipsis: typeof import('naive-ui')['NEllipsis']
NForm: typeof import('naive-ui')['NForm']
NFormItem: typeof import('naive-ui')['NFormItem']
NGi: typeof import('naive-ui')['NGi']
NginxFormatter: typeof import('./src/tools/nginx-formatter/nginx-formatter.vue')['default']
NGrid: typeof import('naive-ui')['NGrid']
NH1: typeof import('naive-ui')['NH1']
NH3: typeof import('naive-ui')['NH3']
NIcon: typeof import('naive-ui')['NIcon']
NInput: typeof import('naive-ui')['NInput']
NInputGroup: typeof import('naive-ui')['NInputGroup']
NInputGroupLabel: typeof import('naive-ui')['NInputGroupLabel']
NInputNumber: typeof import('naive-ui')['NInputNumber']
NLayout: typeof import('naive-ui')['NLayout']
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
NMenu: typeof import('naive-ui')['NMenu']
NP: typeof import('naive-ui')['NP']
NRadio: typeof import('naive-ui')['NRadio']
NRadioGroup: typeof import('naive-ui')['NRadioGroup']
NScrollbar: typeof import('naive-ui')['NScrollbar']
NSelect: typeof import('naive-ui')['NSelect']
NSlider: typeof import('naive-ui')['NSlider']
NSpace: typeof import('naive-ui')['NSpace']
NSpin: typeof import('naive-ui')['NSpin']
NStatistic: typeof import('naive-ui')['NStatistic']
NSwitch: typeof import('naive-ui')['NSwitch']
NTable: typeof import('naive-ui')['NTable']
NText: typeof import('naive-ui')['NText']
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
OcrImage: typeof import('./src/tools/ocr-image/ocr-image.vue')['default']
Option43Generator: typeof import('./src/tools/option43-generator/option43-generator.vue')['default']
OtpCodeGeneratorAndValidator: typeof import('./src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue')['default']
OutlookParser: typeof import('./src/tools/outlook-parser/outlook-parser.vue')['default']
ParquetsReader: typeof import('./src/tools/parquets-reader/parquets-reader.vue')['default']
PassphraseGenerator: typeof import('./src/tools/passphrase-generator/passphrase-generator.vue')['default']
PasswordStrengthAnalyser: typeof import('./src/tools/password-strength-analyser/password-strength-analyser.vue')['default']
PasteAsMarkdown: typeof import('./src/tools/paste-as-markdown/paste-as-markdown.vue')['default']
@@ -290,6 +323,7 @@ declare module '@vue/runtime-core' {
PunycodeConverter: typeof import('./src/tools/punycode-converter/punycode-converter.vue')['default']
QrCodeDecoder: typeof import('./src/tools/qr-code-decoder/qr-code-decoder.vue')['default']
QrCodeGenerator: typeof import('./src/tools/qr-code-generator/qr-code-generator.vue')['default']
QrContactInfoGenerator: typeof import('./src/tools/qr-contact-info-generator/qr-contact-info-generator.vue')['default']
RaidCalculator: typeof import('./src/tools/raid-calculator/raid-calculator.vue')['default']
RandomPortGenerator: typeof import('./src/tools/random-port-generator/random-port-generator.vue')['default']
RegexMemo: typeof import('./src/tools/regex-memo/regex-memo.vue')['default']
@@ -306,6 +340,7 @@ declare module '@vue/runtime-core' {
RsaKeyPairGenerator: typeof import('./src/tools/rsa-key-pair-generator/rsa-key-pair-generator.vue')['default']
SafelinkDecoder: typeof import('./src/tools/safelink-decoder/safelink-decoder.vue')['default']
SensitiveDataMasker: typeof import('./src/tools/sensitive-data-masker/sensitive-data-masker.vue')['default']
SharepointDecoder: typeof import('./src/tools/sharepoint-decoder/sharepoint-decoder.vue')['default']
SipAuth: typeof import('./src/tools/sip-auth/sip-auth.vue')['default']
SlaCalculator: typeof import('./src/tools/sla-calculator/sla-calculator.vue')['default']
SlugifyString: typeof import('./src/tools/slugify-string/slugify-string.vue')['default']
+4
View File
@@ -275,6 +275,10 @@ tools:
title: WiFi QR Code generator
description: Generate and download QR codes for quick connections to WiFi networks.
qr-contact-info-generator:
title: QR Contact Info generator
description: Generate and download QR codes for Contact information (vCard), and customize the background and foreground colors.
xml-formatter:
title: XML formatter
description: Prettify your XML string into a friendly, human-readable format.
+3 -2
View File
@@ -1,5 +1,6 @@
server {
listen 80;
listen 8080;
listen [::]:8080;
server_name _;
root /usr/share/nginx/html;
index index.html;
@@ -7,4 +8,4 @@ server {
location / {
try_files $uri $uri/ /index.html;
}
}
}
+100 -80
View File
@@ -1,7 +1,7 @@
{
"name": "it-tools",
"type": "module",
"version": "2024.10.22-7ca5933",
"version": "2025.2.9-b99a19c",
"packageManager": "pnpm@9.11.0",
"description": "Collection of handy online tools for developers, with great UX. ",
"author": "Corentin Th <corentin.thomasset74+it-tools@gmail.com> (https://corentin.tech)",
@@ -39,37 +39,41 @@
"dependencies": {
"@chenfengyuan/vue-barcode": "^2.0.2",
"@date-fns/utc": "^1.2.0",
"@dice-roller/rpg-dice-roller": "^5.5.1",
"@github/paste-markdown": "^1.5.3",
"@guolao/vue-monaco-editor": "^1.5.4",
"@guyplusplus/turndown-plugin-gfm": "^1.0.7",
"@huggingface/transformers": "3.0.0-alpha.14",
"@iplookup/country-extra": "^1.0.20250317",
"@it-tools/bip39": "^0.0.4",
"@it-tools/oggen": "^1.3.0",
"@kenjiuno/decompressrtf": "^0.1.4",
"@kenjiuno/msgreader": "^1.22.0",
"@mdit/plugin-align": "^0.16.0",
"@regexper/render": "^1.0.0",
"@sindresorhus/slugify": "^2.2.1",
"@tabler/icons-vue": "^3.20.0",
"@tiptap/core": "2.9.1",
"@tiptap/extension-color": "^2.9.1",
"@tiptap/extension-gapcursor": "^2.9.1",
"@tiptap/extension-highlight": "^2.9.1",
"@tiptap/extension-table": "^2.9.1",
"@tiptap/extension-table-cell": "^2.9.1",
"@tiptap/extension-table-header": "^2.9.1",
"@tiptap/extension-table-row": "^2.9.1",
"@tiptap/extension-text-style": "^2.9.1",
"@tiptap/extension-color": "^2.11.5",
"@tiptap/extension-gapcursor": "^2.11.5",
"@tiptap/extension-highlight": "^2.11.5",
"@tiptap/extension-table": "^2.11.5",
"@tiptap/extension-table-cell": "^2.11.5",
"@tiptap/extension-table-header": "^2.11.5",
"@tiptap/extension-table-row": "^2.11.5",
"@tiptap/extension-text-style": "^2.11.5",
"@tiptap/pm": "2.9.1",
"@tiptap/starter-kit": "2.9.1",
"@tiptap/vue-3": "2.9.1",
"@types/haversine": "^1.1.8",
"@unicode/unicode-15.1.0": "^1.6.0",
"@unicode/unicode-15.1.0": "^1.6.5",
"@vicons/material": "^0.12.0",
"@vicons/tabler": "^0.12.0",
"@vueuse/core": "^10.11.1",
"@vueuse/head": "^1.0.0",
"@vueuse/router": "^10.0.0",
"@xmldom/xmldom": "^0.8.10",
"@younestouati/playing-cards-standard-deck": "^6.0.1",
"@zxing/library": "^0.21.3",
"aircodes": "^1.3.16",
"ansible-vault": "^1.3.0",
@@ -78,59 +82,63 @@
"bcryptjs": "^2.4.3",
"big.js": "^6.2.2",
"bwip-js": "^4.5.1",
"change-case": "^4.1.2",
"byte-data": "^19.0.1",
"change-case": "^5.4.4",
"chatgpt-prompt-splitter": "^1.0.5",
"chinesegen": "^0.3.3",
"cidr-tools": "^11.0.2",
"colord": "^2.9.3",
"composerize": "^1.6.12",
"composerize": "^1.7.1",
"composeverter": "^1.7.4",
"convert": "^5.5.1",
"convert": "^5.7.0",
"countries-and-timezones": "^3.7.2",
"countries-db": "^1.2.0",
"country-code-lookup": "^0.1.0",
"country-code-lookup": "^0.1.3",
"crc": "^4.3.2",
"cron-parser": "^4.9.0",
"cron-validator": "^1.3.1",
"cronstrue": "^2.26.0",
"crypto-js": "^4.1.1",
"cronstrue": "^2.54.0",
"crypto-js": "^4.2.0",
"csstoxpath": "^2.0.0",
"curlconverter": "^4.11.0",
"curlconverter": "^4.12.0",
"currency-codes-ts": "^3.0.0",
"currency-exchanger-js": "^1.0.4",
"data-guardian": "^1.1.3",
"date-fns": "^2.29.3",
"date-holidays": "^3.23.12",
"decomposerize": "^1.4.1",
"date-fns": "^2.30.0",
"date-holidays": "^3.23.21",
"decomposerize": "^1.4.4",
"dns-query": "^0.11.2",
"docker2kube": "^0.0.14",
"dom-to-image-more": "^3.5.0",
"dompurify": "^3.0.6",
"dompurify": "^3.2.4",
"duration-fns": "^3.0.2",
"email-bounce-parser-browser": "^1.1.0",
"email-normalizer": "^1.0.0",
"emojilib": "^3.0.10",
"event-cron-parser": "^1.0.34",
"emojilib": "^4.0.1",
"event-cron-parser": "^1.0.35",
"exif-be-gone": "^1.5.1",
"exifreader": "^4.25.0",
"exifreader": "^4.26.1",
"fanger": "^0.3.1",
"fast_array_intersect": "^1.1.0",
"fflate": "^0.8.2",
"figlet": "^1.7.0",
"figlet": "^1.8.0",
"figue": "^1.2.0",
"file-type": "^19.6.0",
"file-type": "^20.1.0",
"flatten-anything": "^4.0.1",
"fuse.js": "^6.6.2",
"fuse.js": "^7.1.0",
"generate-schema": "^2.6.0",
"get-timezone-offset": "^1.0.5",
"gpt-tokens": "^1.3.13",
"hash-wasm": "^4.11.0",
"gpt-tokens": "^1.3.14",
"hash-wasm": "^4.12.0",
"haversine": "^1.1.1",
"heic-convert": "^2.1.0",
"highlight.js": "^11.7.0",
"hex-array": "^1.0.0",
"highlight.js": "^11.11.1",
"hyparquet": "^1.9.0",
"hyparquet-compressors": "^1.0.0",
"iarna-toml-esm": "^3.0.5",
"ibantools": "^4.3.3",
"ical-generator": "^8.0.1",
"ibantools": "^4.5.1",
"ical-generator": "^8.1.1",
"ical.js": "^2.1.0",
"iconv-lite": "^0.6.3",
"image-in-browser": "^3.2.1",
@@ -142,20 +150,19 @@
"ip-regex": "^5.0.0",
"is-cidr": "^5.1.0",
"is-ip": "^5.0.1",
"isbn3": "^1.2.3",
"iso-639-1": "^3.1.3",
"isbn3": "^1.2.7",
"iso-639-1": "^3.1.5",
"javastack.js": "^1.0.3",
"jks-js": "^1.1.4",
"jose": "^5.9.6",
"jpeg-quality-estimator": "^1.0.1",
"jq-wasm": "^0.0.9",
"js-base64": "^3.7.7",
"js-beautify": "^1.15.1",
"js-beautify": "^1.15.2",
"jsbarcode": "^3.11.6",
"json-analyzer": "^1.2.2",
"json-editor-vue": "^0.16.0",
"json-to-ts": "^1.7.0",
"json2csharp": "^1.0.3",
"json5": "^2.2.3",
"jsonar-mod": "^1.9.0",
"jsonlint-mod": "^1.7.6",
@@ -163,50 +170,55 @@
"jsstack.js": "^2.0.0",
"jsvat-next": "^3.0.4",
"jszip": "^3.10.1",
"jwt-decode": "^3.1.2",
"jwt-decode": "^4.0.0",
"korean-unpacker": "^1.0.3",
"libmime": "^5.3.5",
"libphonenumber-js": "^1.10.28",
"libmime": "^5.3.6",
"libphonenumber-js": "^1.11.19",
"lodash": "^4.17.21",
"lodash.defaultsdeep": "^4.6.1",
"lodash.flattendeep": "^4.4.0",
"lodash.last": "^3.0.0",
"long": "^5.3.1",
"lorem-ipsum-japanese": "^1.0.1",
"luhn-js": "^1.1.2",
"luxon": "^3.5.0",
"markdown-it": "^14.1.0",
"markdown-it-mark": "^4.0.0",
"markdown-it-sanitizer": "^0.4.3",
"markdown-it-sub": "^2.0.0",
"markdown-it-sup": "^2.0.0",
"marked": "^10.0.0",
"mathjs": "^11.9.1",
"md-editor-v3": "^4.21.2",
"mathjs": "^14.2.1",
"md-editor-v3": "^4.21.3",
"memorystream": "^0.3.1",
"mime-types": "^2.1.35",
"monaco-editor": "^0.43.0",
"morsee": "^1.0.9",
"morsee": "^1.0.10",
"naive-ui": "^2.35.0",
"nanoid": "^5.0.7",
"nanoid": "^5.0.9",
"nanoid-dictionary": "^4.3.0",
"netmask": "^2.0.2",
"netstack.js": "^2.0.0",
"netstack.js": "^2.1.1",
"nginx-config-formatter": "^1.4.5",
"node-forge": "^1.3.1",
"openpgp": "^5.11.2",
"oui-data": "^1.0.10",
"parse-duration": "^1.1.0",
"parse-torrent": "^11.0.17",
"path2d-polyfill": "^3.1.2",
"openpgp": "^6.1.0",
"oui-data": "^1.1.281",
"parse-duration": "^2.1.2",
"parse-torrent": "^11.0.18",
"path2d-polyfill": "^3.1.3",
"pdf-signature-reader": "^1.4.3",
"pdfjs-dist": "^4.8.69",
"pinia": "^2.0.34",
"plausible-tracker": "^0.3.8",
"port-numbers": "^8.0.17",
"postal-mime": "^2.3.2",
"plausible-tracker": "^0.3.9",
"port-numbers": "^8.0.22",
"postal-mime": "^2.4.3",
"potrace": "^2.1.8",
"pp-qr-code": "^0.6.4",
"pretty-ms": "^9.1.0",
"pretty-ms": "^9.2.0",
"punycode": "^2.3.1",
"pythonstack.js": "^1.0.2",
"qpdf-wasm-esm-embedded": "^1.1.1",
"qrcode": "^1.5.1",
"qrcode": "^1.5.4",
"qrcode-parser": "^2.1.3",
"qrcode-terminal-nooctal": "^0.12.1",
"randexp": "^0.5.3",
@@ -215,61 +227,68 @@
"rtf-stream-parser": "^3.8.0",
"safe-license-list": "^0.1.2",
"sandybox": "^1.1.2",
"sanitize-html": "^2.13.1",
"sanitize-html": "^2.14.0",
"shiki": "1.22.2",
"silly-password-generator": "^1.0.28",
"slashes": "^3.0.12",
"spdx-satisfies": "^5.0.1",
"sql-formatter": "^13.0.0",
"sql-formatter": "^15.5.1",
"sshpk": "^1.18.0",
"stringify-object": "^5.0.0",
"svg2png-wasm": "^1.4.1",
"svgo": "^3.3.2",
"tesseract.js": "^5.1.1",
"text-encoding-utf-8": "^1.0.2",
"tidy-url": "^1.18.3",
"turndown": "^7.2.0",
"ua-parser-js": "^1.0.35",
"ua-parser-js": "^2.0.1",
"ulid": "^2.3.0",
"unicode-emoji-json": "^0.4.0",
"unique-random": "^4.0.0",
"unplugin-auto-import": "^0.16.4",
"utf8": "^3.0.0",
"uuid": "^11.0.3",
"uuid": "^11.0.5",
"vanilla-jsoneditor": "^0.23.8",
"vue": "^3.3.4",
"vue-color-wheel": "^0.1.1",
"vue-i18n": "^9.9.1",
"vue-markdown-render": "^2.2.1",
"vue-mathjax-next": "^0.0.6",
"vue-mermaid-string": "^7.0.0",
"vue-router": "^4.1.6",
"vue-shadow-dom": "^4.2.0",
"vue-tsc": "^1.8.1",
"vue3-fortune-wheel": "^2.0.5",
"vuedraggable": "^4.1.0",
"w-websocket-client": "^1.0.29",
"webcrack": "^2.14.1",
"wcag-contrast-utils": "^1.0.1",
"webcrack": "^2.15.0",
"webp-converter-browser": "^1.0.4",
"xml-formatter": "^3.3.2",
"xml-formatter": "^3.6.4",
"xml-js": "^1.6.11",
"xpath": "^0.0.34",
"xpath-to-css": "^1.2.0",
"xslt-processor": "^3.2.2",
"yaml": "^2.2.1"
"xslt-processor": "^3.3.1",
"yaml": "^2.7.0"
},
"devDependencies": {
"@antfu/eslint-config": "^0.41.0",
"@iconify-json/mdi": "^1.1.50",
"@intlify/unplugin-vue-i18n": "^0.13.0",
"@playwright/test": "^1.50.0",
"@playwright/test": "^1.50.1",
"@rushstack/eslint-patch": "^1.2.0",
"@tsconfig/node18": "^18.2.0",
"@types/arr-diff": "^4.0.3",
"@types/bcryptjs": "^2.4.2",
"@types/bcryptjs": "^2.4.6",
"@types/big.js": "^6.2.2",
"@types/crypto-js": "^4.1.1",
"@types/dompurify": "^3.0.5",
"@types/emscripten": "^1.39.13",
"@types/figlet": "^1.5.8",
"@types/crypto-js": "^4.2.2",
"@types/dompurify": "^3.2.0",
"@types/emscripten": "^1.40.0",
"@types/figlet": "^1.7.0",
"@types/har-format": "^1.2.16",
"@types/hex-array": "^1.0.2",
"@types/js-beautify": "^1.14.3",
"@types/jsdom": "^21.1.0",
"@types/jsdom": "^21.1.7",
"@types/jsonpath": "^0.2.4",
"@types/libmime": "^5.0.3",
"@types/lodash": "^4.14.192",
@@ -279,23 +298,24 @@
"@types/luxon": "^3.4.2",
"@types/markdown-it": "^13.0.9",
"@types/memorystream": "^0.3.4",
"@types/mime-types": "^2.1.1",
"@types/mime-types": "^2.1.4",
"@types/morsee": "^1.0.2",
"@types/nanoid-dictionary": "^4.2.3",
"@types/netmask": "^2.0.0",
"@types/node": "^18.15.11",
"@types/node-forge": "^1.3.2",
"@types/netmask": "^2.0.5",
"@types/node": "^18.19.75",
"@types/node-forge": "^1.3.11",
"@types/potrace": "^2.1.5",
"@types/punycode": "^2.1.4",
"@types/qrcode": "^1.5.0",
"@types/qrcode": "^1.5.5",
"@types/sanitize-html": "^2.13.0",
"@types/spdx-satisfies": "^0.1.2",
"@types/sshpk": "^1.17.4",
"@types/stringify-object": "^4.0.5",
"@types/text-encoding-utf-8": "^1.0.5",
"@types/turndown": "^5.0.5",
"@types/ua-parser-js": "^0.7.36",
"@types/ua-parser-js": "^0.7.39",
"@types/utf8": "^3.0.3",
"@types/uuid": "^9.0.0",
"@types/uuid": "^9.0.8",
"@unocss/eslint-config": "^0.57.1",
"@vitejs/plugin-vue": "^4.3.2",
"@vitejs/plugin-vue-jsx": "^3.0.2",
@@ -307,7 +327,7 @@
"eslint": "^8.47.0",
"hygen": "^6.2.11",
"jsdom": "^22.0.0",
"less": "^4.1.3",
"less": "^4.2.2",
"prettier": "^3.0.0",
"typescript": "~5.2.2",
"unocss": "^0.57.1",
@@ -319,8 +339,8 @@
"vite-plugin-pwa": "^0.16.0",
"vite-plugin-vue-markdown": "^0.23.5",
"vite-svg-loader": "^4.0.0",
"vitest": "^0.34.0",
"workbox-window": "^7.0.0",
"zx": "^7.2.1"
"vitest": "^0.34.6",
"workbox-window": "^7.3.0",
"zx": "^7.2.3"
}
}
+2643 -1804
View File
File diff suppressed because it is too large. Load diff
+168
View File
@@ -0,0 +1,168 @@
window.IpLookup = (function () {
'use strict';
const aton4 = (a) => {
a = a.split(/\./);
return (a[0] << 24 | a[1] << 16 | a[2] << 8 | a[3]) >>> 0
};
const aton6Start = (a) => {
if(a.includes('.')){
return aton4(a.split(':').pop())
}
a = a.split(/:/);
const l = a.length - 1;
var i, r = 0n;
if (l < 7) {
const omitStart = a.indexOf('');
if(omitStart < 4){
const omitted = 8 - a.length, omitEnd = omitStart + omitted;
for (i = 7; i >= omitStart; i--) {
a[i] = i > omitEnd ? a[i - omitted] : 0;
}
}
}
for (i = 0; i < 4; i++) {
if(a[i]) r += BigInt(parseInt(a[i], 16)) << BigInt(16 * (3 - i));
}
return r
};
const getUnderberFill = (num, len) => {
if(num.length > len) return num
return '_'.repeat(len - num.length) + num
};
const numberToDir = (num) => {
return getUnderberFill(num.toString(36), 2)
};
const TOP_URL = 'https://cdn.jsdelivr.net/npm/@iplookup/country-extra/';
const MAIN_RECORD_SIZE = 2 ;
const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));
const downloadArrayBuffer = async(url, retry = 3) => {
return fetch(url, {cache: 'no-cache'}).then(async (res) => {
if(!res.ok) {
if(res.status === 404) return null
if(retry) {
await sleep(100 * (4-retry) * (4-retry));
return downloadArrayBuffer(url, retry - 1)
}
return null
}
return res.arrayBuffer()
})
};
const downloadIdx = downloadArrayBuffer;
const Idx = {}, Url = {4: TOP_URL, 6: TOP_URL};
const Preload = {
4: downloadIdx(TOP_URL + '4.idx').then(buf => {
if(!buf){
// console.log('ipv6 file cannot download')
return
}
return Idx[4] = new Uint32Array(buf)
}),
6: downloadIdx(TOP_URL + '4.idx').then(buf => {
if(!buf){
// console.log('ipv6 file cannot download')
return
}
return Idx[6] = new BigUint64Array(buf)
})
};
var ip_lookup = async (ipString) => {
var ip, version, isv4 = true;
if(ipString.includes(':')) {
ip = aton6Start(ipString);
version = ip.constructor === BigInt ? 6 : 4;
if(version === 6) isv4 = false;
} else {
ip = aton4(ipString);
version = 4;
}
const ipIndexes = Idx[version] || (await Preload[version]);
if(!ipIndexes) {
// console.log('Cannot download idx file')
return null
}
if(!(ip >= ipIndexes[0])) return null
var fline = 0, cline = ipIndexes.length-1, line;
for(;;){
line = (fline + cline) >> 1;
if(ip < ipIndexes[line]){
if(cline - fline < 2) return null
cline = line - 1;
} else {
if(fline === line) {
if(cline > line && ip >= ipIndexes[cline]){
line = cline;
}
break;
}
fline = line;
}
}
const fileName = numberToDir(line);
const dataBuffer = await downloadArrayBuffer(Url[version] + version + '/' + fileName);
if(!dataBuffer) {
// console.log('Cannot download data file')
return null
}
const ipSize = (version - 2) * 2;
const recordSize = MAIN_RECORD_SIZE + ipSize * 2;
const recordCount = dataBuffer.byteLength / recordSize;
const startList = isv4 ? new Uint32Array(dataBuffer.slice(0, 4 * recordCount)) : new BigUint64Array(dataBuffer.slice(0, 8 * recordCount));
fline = 0, cline = recordCount - 1;
for(;;){
line = fline + cline >> 1;
if(ip < startList[line]){
if(cline - fline < 2) return null
cline = line - 1;
} else {
if(fline === line) {
if(cline > line && ip >= startList[cline]){
line = cline;
}
break;
}
fline = line;
}
}
const endIp = isv4 ? new Uint32Array( dataBuffer.slice((recordCount+line)*ipSize , (recordCount+line+1)*ipSize))[0]
: new BigUint64Array(dataBuffer.slice((recordCount+line)*ipSize , (recordCount+line+1)*ipSize))[0];
if(ip >= startList[line] && ip <= endIp){
{
const ccCode = new Uint16Array(dataBuffer.slice(recordCount*ipSize*2+line*MAIN_RECORD_SIZE, recordCount*ipSize*2+(line+1)*MAIN_RECORD_SIZE))[0];
return {country: String.fromCharCode(ccCode&255, ccCode>>8)}
}
}
return null
};
/*! countries-list v3.1.1 by Annexare | MIT */
var a={AD:{name:"Andorra",native:"Andorra",phone:[376],continent:"EU",capital:"Andorra la Vella",currency:["EUR"],languages:["ca"]},AE:{name:"United Arab Emirates",native:"\u062F\u0648\u0644\u0629 \u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629",phone:[971],continent:"AS",capital:"Abu Dhabi",currency:["AED"],languages:["ar"]},AF:{name:"Afghanistan",native:"\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646",phone:[93],continent:"AS",capital:"Kabul",currency:["AFN"],languages:["ps","uz","tk"]},AG:{name:"Antigua and Barbuda",native:"Antigua and Barbuda",phone:[1268],continent:"NA",capital:"Saint John's",currency:["XCD"],languages:["en"]},AI:{name:"Anguilla",native:"Anguilla",phone:[1264],continent:"NA",capital:"The Valley",currency:["XCD"],languages:["en"]},AL:{name:"Albania",native:"Shqip\xEBria",phone:[355],continent:"EU",capital:"Tirana",currency:["ALL"],languages:["sq"]},AM:{name:"Armenia",native:"\u0540\u0561\u0575\u0561\u057D\u057F\u0561\u0576",phone:[374],continent:"AS",capital:"Yerevan",currency:["AMD"],languages:["hy","ru"]},AO:{name:"Angola",native:"Angola",phone:[244],continent:"AF",capital:"Luanda",currency:["AOA"],languages:["pt"]},AQ:{name:"Antarctica",native:"Antarctica",phone:[672],continent:"AN",capital:"",currency:[],languages:[]},AR:{name:"Argentina",native:"Argentina",phone:[54],continent:"SA",capital:"Buenos Aires",currency:["ARS"],languages:["es","gn"]},AS:{name:"American Samoa",native:"American Samoa",phone:[1684],continent:"OC",capital:"Pago Pago",currency:["USD"],languages:["en","sm"]},AT:{name:"Austria",native:"\xD6sterreich",phone:[43],continent:"EU",capital:"Vienna",currency:["EUR"],languages:["de"]},AU:{name:"Australia",native:"Australia",phone:[61],continent:"OC",capital:"Canberra",currency:["AUD"],languages:["en"]},AW:{name:"Aruba",native:"Aruba",phone:[297],continent:"NA",capital:"Oranjestad",currency:["AWG"],languages:["nl","pa"]},AX:{name:"Aland",native:"\xC5land",phone:[358],continent:"EU",capital:"Mariehamn",currency:["EUR"],languages:["sv"],partOf:"FI"},AZ:{name:"Azerbaijan",native:"Az\u0259rbaycan",phone:[994],continent:"AS",continents:["AS","EU"],capital:"Baku",currency:["AZN"],languages:["az"]},BA:{name:"Bosnia and Herzegovina",native:"Bosna i Hercegovina",phone:[387],continent:"EU",capital:"Sarajevo",currency:["BAM"],languages:["bs","hr","sr"]},BB:{name:"Barbados",native:"Barbados",phone:[1246],continent:"NA",capital:"Bridgetown",currency:["BBD"],languages:["en"]},BD:{name:"Bangladesh",native:"Bangladesh",phone:[880],continent:"AS",capital:"Dhaka",currency:["BDT"],languages:["bn"]},BE:{name:"Belgium",native:"Belgi\xEB",phone:[32],continent:"EU",capital:"Brussels",currency:["EUR"],languages:["nl","fr","de"]},BF:{name:"Burkina Faso",native:"Burkina Faso",phone:[226],continent:"AF",capital:"Ouagadougou",currency:["XOF"],languages:["fr","ff"]},BG:{name:"Bulgaria",native:"\u0411\u044A\u043B\u0433\u0430\u0440\u0438\u044F",phone:[359],continent:"EU",capital:"Sofia",currency:["BGN"],languages:["bg"]},BH:{name:"Bahrain",native:"\u200F\u0627\u0644\u0628\u062D\u0631\u064A\u0646",phone:[973],continent:"AS",capital:"Manama",currency:["BHD"],languages:["ar"]},BI:{name:"Burundi",native:"Burundi",phone:[257],continent:"AF",capital:"Bujumbura",currency:["BIF"],languages:["fr","rn"]},BJ:{name:"Benin",native:"B\xE9nin",phone:[229],continent:"AF",capital:"Porto-Novo",currency:["XOF"],languages:["fr"]},BL:{name:"Saint Barthelemy",native:"Saint-Barth\xE9lemy",phone:[590],continent:"NA",capital:"Gustavia",currency:["EUR"],languages:["fr"]},BM:{name:"Bermuda",native:"Bermuda",phone:[1441],continent:"NA",capital:"Hamilton",currency:["BMD"],languages:["en"]},BN:{name:"Brunei",native:"Negara Brunei Darussalam",phone:[673],continent:"AS",capital:"Bandar Seri Begawan",currency:["BND"],languages:["ms"]},BO:{name:"Bolivia",native:"Bolivia",phone:[591],continent:"SA",capital:"Sucre",currency:["BOB","BOV"],languages:["es","ay","qu"]},BQ:{name:"Bonaire",native:"Bonaire",phone:[5997],continent:"NA",capital:"Kralendijk",currency:["USD"],languages:["nl"]},BR:{name:"Brazil",native:"Brasil",phone:[55],continent:"SA",capital:"Bras\xEDlia",currency:["BRL"],languages:["pt"]},BS:{name:"Bahamas",native:"Bahamas",phone:[1242],continent:"NA",capital:"Nassau",currency:["BSD"],languages:["en"]},BT:{name:"Bhutan",native:"\u02BCbrug-yul",phone:[975],continent:"AS",capital:"Thimphu",currency:["BTN","INR"],languages:["dz"]},BV:{name:"Bouvet Island",native:"Bouvet\xF8ya",phone:[47],continent:"AN",capital:"",currency:["NOK"],languages:["no","nb","nn"]},BW:{name:"Botswana",native:"Botswana",phone:[267],continent:"AF",capital:"Gaborone",currency:["BWP"],languages:["en","tn"]},BY:{name:"Belarus",native:"\u0411\u0435\u043B\u0430\u0440\u0443\u0301\u0441\u044C",phone:[375],continent:"EU",capital:"Minsk",currency:["BYN"],languages:["be","ru"]},BZ:{name:"Belize",native:"Belize",phone:[501],continent:"NA",capital:"Belmopan",currency:["BZD"Line truncated
var browserExtra = async(ip) => {
const geodata = await ip_lookup(ip);
if(geodata && a[geodata.country]){
const h = a[geodata.country];
geodata.country_name = h.name;
geodata.country_native = h.native;
geodata.continent = h.continent;
geodata.capital = h.capital;
geodata.phone = h.phone;
geodata.currency = h.currency;
geodata.languages = h.languages;
}
return geodata
};
return browserExtra;
})();
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

+14 -19
View File
@@ -1,29 +1,30 @@
import { mkdir, readFile, writeFile } from 'fs/promises';
import { dirname, join } from 'path';
import { fileURLToPath } from 'url';
import { mkdir, readFile, writeFile } from 'node:fs/promises';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
const currentDirname = dirname(fileURLToPath(import.meta.url));
const toolsDir = join(currentDirname, '..', 'src', 'tools');
// eslint-disable-next-line no-undef
const toolName = process.argv[2];
if (!toolName) {
throw new Error('Please specify a toolname.');
}
const toolNameCamelCase = toolName.replace(/-./g, (x) => x[1].toUpperCase());
const toolCategory = process.argv[3] || 'Default';
const toolNameTitleCase = toolName[0].toUpperCase() + toolName.slice(1).replace(/-/g, ' ');
const toolDir = join(toolsDir, toolName);
await mkdir(toolDir);
console.log(`Directory created: ${toolDir}`);
const createToolFile = async (name, content) => {
async function createToolFile(name, content) {
const filePath = join(toolDir, name);
await writeFile(filePath, content.trim());
console.log(`File created: ${filePath}`);
};
}
createToolFile(
`${toolName}.vue`,
@@ -44,7 +45,7 @@ createToolFile(
);
createToolFile(
`index.ts`,
'index.ts',
`
import { ArrowsShuffle } from '@vicons/tabler';
import { defineTool } from '../tool';
@@ -53,15 +54,16 @@ export const tool = defineTool({
name: '${toolNameTitleCase}',
path: '/${toolName}',
description: '',
keywords: ['${toolName.split('-').join("', '")}'],
keywords: ['${toolName.split('-').join('\', \'')}'],
component: () => import('./${toolName}.vue'),
icon: ArrowsShuffle,
createdAt: new Date('${new Date().toISOString().split('T')[0]}'),
category: '${toolCategory}',
});
`,
);
createToolFile(`${toolName}.service.ts`, ``);
createToolFile(`${toolName}.service.ts`, '');
createToolFile(
`${toolName}.service.test.ts`,
`
@@ -92,13 +94,6 @@ test.describe('Tool - ${toolNameTitleCase}', () => {
});
});
`,
);
const toolsIndex = join(toolsDir, 'index.ts');
const indexContent = await readFile(toolsIndex, { encoding: 'utf-8' }).then((r) => r.split('\n'));
indexContent.splice(3, 0, `import { tool as ${toolNameCamelCase} } from './${toolName}';`);
writeFile(toolsIndex, indexContent.join('\n'));
console.log(`Added import in: ${toolsIndex}`);
);
+35 -1
View File
@@ -29,10 +29,33 @@ function toggleCategoryCollapse({ name }: { name: string }) {
collapsedCategories.value[name] = !collapsedCategories.value[name];
}
/**
* areAllCollapsed (new)
* --------------------------------------------------------------------------
* A computed property that checks if all categories are collapsed.
* - If even one category is expanded (false), this becomes false.
* - If no categories are found or all are collapsed (true), it becomes true.
*/
const areAllCollapsed = computed(() => {
return toolsByCategory.value.every(({ name }) => collapsedCategories.value[name] !== false);
});
/**
* toggleAllCategories (new)
* --------------------------------------------------------------------------
* If all categories are collapsed, expand them all; otherwise, collapse them all.
*/
function toggleAllCategories() {
const nextState = !areAllCollapsed.value;
toolsByCategory.value.forEach(({ name }) => {
collapsedCategories.value[name] = nextState;
});
};
const menuOptions = computed(() =>
toolsByCategory.value.map(({ name, components }) => ({
name,
isCollapsed: collapsedCategories.value[name],
isCollapsed: collapsedCategories.value[name] === undefined ? true : collapsedCategories.value[name], // default to collapsed if not set
tools: components.map(tool => ({
label: makeLabel(tool),
icon: makeIcon(tool),
@@ -45,6 +68,17 @@ const themeVars = useThemeVars();
</script>
<template>
<!--
A button at the top to expand or collapse all categories at once.
- Uses areAllCollapsed to determine the label ("Expand All" vs. "Collapse All").
- Calls toggleAllCategories() on click.
-->
<div class="top-controls" ml-6px>
<c-button @click="toggleAllCategories">
{{ areAllCollapsed ? 'Expand All Tools' : 'Collapse All Tools' }}
</c-button>
</div>
<div v-for="{ name, tools, isCollapsed } of menuOptions" :key="name">
<div ml-6px mt-12px flex cursor-pointer items-center op-60 @click="toggleCategoryCollapse({ name })">
<span :class="{ 'rotate-0': isCollapsed, 'rotate-90': !isCollapsed }" text-16px lh-1 op-50 transition-transform>
+5 -3
View File
@@ -1,5 +1,5 @@
import { type MaybeRef, get } from '@vueuse/core';
import Fuse from 'fuse.js';
import Fuse, { type IFuseOptions } from 'fuse.js';
import { computed } from 'vue';
export { useFuzzySearch };
@@ -8,10 +8,12 @@ function useFuzzySearch<Data>({
search,
data,
options = {},
limit = -1,
}: {
search: MaybeRef<string>
data: Data[]
options?: Fuse.IFuseOptions<Data> & { filterEmpty?: boolean }
options?: IFuseOptions<Data> & { filterEmpty?: boolean }
limit?: number
}) {
const fuse = new Fuse(data, options);
const filterEmpty = options.filterEmpty ?? true;
@@ -23,7 +25,7 @@ function useFuzzySearch<Data>({
return data;
}
return fuse.search(query).map(({ item }) => item);
return fuse.search(query, { limit }).map(({ item }) => item);
});
return { searchResult };
+1 -18
View File
@@ -2,7 +2,7 @@
import { NIcon, useThemeVars } from 'naive-ui';
import { RouterLink } from 'vue-router';
import { Heart, Home2, Menu2 } from '@vicons/tabler';
import { Home2, Menu2 } from '@vicons/tabler';
import { storeToRefs } from 'pinia';
import HeroGradient from '../assets/hero-gradient.svg?component';
@@ -12,7 +12,6 @@ import { useStyleStore } from '@/stores/style.store';
import { config } from '@/config';
import type { ToolCategory } from '@/tools/tools.types';
import { useToolStore } from '@/tools/tools.store';
import { useTracker } from '@/modules/tracker/tracker.services';
import CollapsibleToolMenu from '@/components/CollapsibleToolMenu.vue';
const themeVars = useThemeVars();
@@ -20,7 +19,6 @@ const styleStore = useStyleStore();
const version = config.app.version;
const commitSha = config.app.lastCommitSha.slice(0, 7);
const { tracker } = useTracker();
const { t } = useI18n();
const toolStore = useToolStore();
@@ -119,21 +117,6 @@ const tools = computed<ToolCategory[]>(() => [
<div>
<NavbarButtons v-if="!styleStore.isSmallScreen" />
</div>
<c-tooltip position="bottom" :tooltip="$t('home.support')">
<c-button
round
href="https://www.buymeacoffee.com/cthmsst"
rel="noopener"
target="_blank"
class="support-button"
:bordered="false"
@click="() => tracker.trackEvent({ eventName: 'Support button clicked' })"
>
{{ $t('home.buyMeACoffee') }}
<NIcon v-if="!styleStore.isSmallScreen" :component="Heart" ml-2 />
</c-button>
</c-tooltip>
</div>
<slot />
</template>
+2 -2
View File
@@ -92,13 +92,13 @@ const themeVars = useThemeVars();
overflow-x: auto;
::v-deep(& > *) {
flex: 0 1 600px;
flex: 0 1 1200px;
min-width:0;
}
}
.tool-layout {
max-width: 600px;
max-width: 1200px;
margin: 0 auto;
box-sizing: border-box;
@@ -30,7 +30,7 @@ const promptValidation = useValidation({
</script>
<template>
<div style="max-width: 600px;">
<div>
<c-card title="Prompt and options" mb-2>
<c-input-text
v-model:value="prompt"
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./ai-prompt-splitter.vue'),
icon: Prompt,
createdAt: new Date('2024-07-14'),
category: 'Text',
});
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./angle-converter.vue'),
icon: Angle,
createdAt: new Date('2024-08-15'),
category: 'Physics',
});
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./ansible-vault-crypt-decrypt.vue'),
icon: LockSquare,
createdAt: new Date('2024-02-25'),
category: 'Crypto',
});
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./api-tester.vue'),
icon: World,
createdAt: new Date('2024-05-11'),
category: 'Development',
});
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./area-converter.vue'),
icon: SquaresDiagonal,
createdAt: new Date('2024-08-15'),
category: 'Physics',
});
@@ -11,11 +11,11 @@ const output = ref('');
const errored = ref(false);
const processing = ref(false);
figlet.defaults({ fontPath: '//unpkg.com/figlet@1.6.0/fonts/' });
figlet.defaults({ fontPath: '//unpkg.com/figlet@1.8.0/fonts' });
const languagesOptions = languages.map(lang => ({ value: lang.id, label: lang.name }));
figlet.defaults({ fontPath: '//unpkg.com/figlet@1.6.0/fonts/' });
figlet.defaults({ fontPath: '//unpkg.com/figlet@1.8.0/fonts' });
watchEffect(async () => {
const inputValue = input.value;
@@ -53,7 +53,7 @@ const fonts = ['1Row', '3-D', '3D Diagonal', '3D-ASCII', '3x5', '4Max', '5 Line
</script>
<template>
<c-card style="max-width: 600px;">
<c-card>
<c-input-text
v-model:value="input"
label="Your text:"
+1
View File
@@ -10,4 +10,5 @@ export const tool = defineTool({
icon: Artboard,
createdAt: new Date('2024-03-03'),
npmPackages: ['figlet'],
category: 'Text',
});
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./aspect-ratio-calculator.vue'),
icon: AspectRatio,
createdAt: new Date('2024-08-14'),
category: 'Measurement',
});
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./barcode-generator.vue'),
icon: Barcode,
createdAt: new Date('2024-04-20'),
category: 'Barcodes',
});
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./barcode-reader.vue'),
icon: Barcode,
createdAt: new Date('2024-04-20'),
category: 'Barcodes',
});
+1
View File
@@ -10,4 +10,5 @@ export const tool = defineTool({
component: () => import('./base64-file-converter.vue'),
icon: FileDigit,
npmPackages: ['js-base64'],
category: 'Converters',
});
@@ -11,4 +11,5 @@ export const tool = defineTool({
icon: FileDigit,
redirectFrom: ['/file-to-base64', '/base64-converter'],
npmPackages: ['js-base64'],
category: 'Converters',
});
+1
View File
@@ -19,4 +19,5 @@ export const tool = defineTool({
],
component: () => import('./basic-auth-generator.vue'),
icon: PasswordRound,
category: 'Network',
});
+1
View File
@@ -10,4 +10,5 @@ export const tool = defineTool({
component: () => import('./bcrypt.vue'),
icon: LockSquare,
npmPackages: ['bcryptjs'],
category: 'Crypto',
});
+1
View File
@@ -10,4 +10,5 @@ export const tool = defineTool({
component: () => import('./benchmark-builder.vue'),
icon: SpeedFilled,
createdAt: new Date('2023-04-05'),
category: 'Measurement',
});
+1
View File
@@ -10,4 +10,5 @@ export const tool = defineTool({
component: () => import('./bip39-generator.vue'),
icon: AlignJustified,
npmPackages: ['@it-tools/bip39'],
category: 'Generators',
});
+1 -1
View File
@@ -14,7 +14,7 @@ const parsedBounce = computed(() => {
</script>
<template>
<div style="max-width: 600px;">
<div>
<c-card title="Input" mb-2>
<c-input-text
v-model:value="emailContent"
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./bounce-parser.vue'),
icon: Mailbox,
createdAt: new Date('2024-08-15'),
category: 'Forensic',
});
+1
View File
@@ -10,4 +10,5 @@ export const tool = defineTool({
component: () => import('./camera-recorder.vue'),
icon: Camera,
createdAt: new Date('2023-05-15'),
category: 'Images',
});
+80
View File
@@ -0,0 +1,80 @@
<script setup lang="ts">
import cards from '@younestouati/playing-cards-standard-deck';
import { exhaustiveUniqueRandom } from 'unique-random';
import { computedRefreshable } from '@/composable/computedRefreshable';
import { useCopy } from '@/composable/copy';
import { useQueryParamOrStorage } from '@/composable/queryParams';
const cardKeys = [...Object.keys(cards).filter(k => k !== 'joker'), 'joker', 'joker'];
type CardNames = keyof typeof cards;
const numberOfCards = useQueryParamOrStorage({ name: 'cards', storageName: 'card-picker:n', defaultValue: 5 });
const numberOfPacks = useQueryParamOrStorage({ name: 'packs', storageName: 'card-picker:p', defaultValue: 1 });
const useJokers = useQueryParamOrStorage({ name: 'jokers', storageName: 'card-picker:j', defaultValue: true });
const [cardPicked, refreshCardPicked] = computedRefreshable(() => {
let cardNumbers: number[] = [];
for (let pack = 0; pack < numberOfPacks.value; pack++) {
cardNumbers = [...cardNumbers, ...Array.from({ length: useJokers.value ? 54 : 52 }, (_, num) => num)];
}
const random = exhaustiveUniqueRandom(0, cardNumbers.length - 1);
return Array.from({ length: numberOfCards.value }, () => cardKeys[cardNumbers[random()]]);
});
const maxCards = computed(() => (useJokers.value ? 54 : 52) * numberOfPacks.value);
const suitNames = {
c: 'clubs (♣)',
d: 'diamonds (♦)',
h: 'hearts (♥)',
s: 'spades (♠)',
};
const numberNames = {
1: 'Ace',
11: 'Jack',
12: 'Queen',
13: 'King',
};
function translateName(cardId: string) {
const [, number, suit] = /(\d+)([cdhs])/.exec(cardId) || [];
if (!number && !suit) {
return cardId;
}
return `${numberNames[number as never] || number} of ${suitNames[suit as never] || suit}`;
}
const cardPickedString = computed(() => cardPicked.value.map(translateName).join(', '));
const { copy } = useCopy({ source: cardPickedString, text: 'Cards Picked copied to the clipboard' });
</script>
<template>
<c-card>
<n-space justify="space-around" mb-1>
<img v-for="(card, index) in cardPicked" :key="index" style="width:90px" mr-1 :src="`data:image/svg+xml;base64,${cards[card as CardNames]}`">
</n-space>
<div mb-2>
<textarea-copyable :value="cardPickedString" readonly mb-1 />
</div>
<div flex justify-center gap-3>
<n-form-item label="Number of cards:" label-placement="left">
<n-input-number v-model:value="numberOfCards" min="1" :max="maxCards" placeholder="Number of cards to pick" />
</n-form-item>
<n-form-item label="Number of packs:" label-placement="left">
<n-input-number v-model:value="numberOfPacks" min="1" placeholder="Number of card packs to pick in" />
</n-form-item>
</div>
<div mb-4 flex justify-center>
<n-checkbox v-model:checked="useJokers">
Use Jokers
</n-checkbox>
</div>
<div flex justify-center gap-3>
<c-button @click="copy()">
Copy deck
</c-button>
<c-button @click="refreshCardPicked">
Refresh deck
</c-button>
</div>
</c-card>
</template>
+13
View File
@@ -0,0 +1,13 @@
import { PlayCard } from '@vicons/tabler';
import { defineTool } from '../tool';
export const tool = defineTool({
name: 'Card Picker',
path: '/card-picker',
description: 'Generate a deck of playing cards',
keywords: ['card', 'deck', 'picker'],
component: () => import('./card-picker.vue'),
icon: PlayCard,
createdAt: new Date('2025-02-09'),
category: 'Gaming',
});
+51 -22
View File
@@ -4,78 +4,97 @@ import {
capitalCase,
constantCase,
dotCase,
headerCase,
kebabCase,
noCase,
paramCase,
pascalCase,
pathCase,
sentenceCase,
snakeCase,
trainCase,
} from 'change-case';
import InputCopyable from '../../components/InputCopyable.vue';
import { useQueryParamOrStorage } from '@/composable/queryParams';
import { useValidation } from '@/composable/validation';
const baseConfig = {
stripRegexp: /[^A-Za-zÀ-ÖØ-öø-ÿ]+/gi,
};
const cleaningRegex = useQueryParamOrStorage({ name: 'clean', storageName: 'case-conv:cl', defaultValue: '[^\\w\\d\\s]' });
const cleaningRegexValidation = useValidation({
source: cleaningRegex,
rules: [
{
message: 'Invalid cleaning regex: {0}',
validator: value => new RegExp(value),
getErrorMessage: (value) => {
const _ = new RegExp(value);
return '';
},
},
],
});
const input = ref('lorem ipsum dolor sit amet');
const inputCleaned = computed(() => {
if (!cleaningRegexValidation.isValid) {
return input.value;
}
return input.value.replace(new RegExp(cleaningRegex.value, 'g'), '');
});
const formats = computed(() => [
{
label: 'Lowercase:',
value: input.value.toLocaleLowerCase(),
value: inputCleaned.value.toLocaleLowerCase(),
},
{
label: 'Uppercase:',
value: input.value.toLocaleUpperCase(),
value: inputCleaned.value.toLocaleUpperCase(),
},
{
label: 'Camelcase:',
value: camelCase(input.value, baseConfig),
value: camelCase(inputCleaned.value),
},
{
label: 'Capitalcase:',
value: capitalCase(input.value, baseConfig),
value: capitalCase(inputCleaned.value),
},
{
label: 'Constantcase:',
value: constantCase(input.value, baseConfig),
value: constantCase(inputCleaned.value),
},
{
label: 'Dotcase:',
value: dotCase(input.value, baseConfig),
value: dotCase(inputCleaned.value),
},
{
label: 'Headercase:',
value: headerCase(input.value, baseConfig),
label: 'Kebab/paramcase:',
value: kebabCase(inputCleaned.value),
},
{
label: 'Nocase:',
value: noCase(input.value, baseConfig),
value: noCase(inputCleaned.value),
},
{
label: 'Paramcase:',
value: paramCase(input.value, baseConfig),
label: 'Train/headercase:',
value: trainCase(inputCleaned.value),
},
{
label: 'Pascalcase:',
value: pascalCase(input.value, baseConfig),
value: pascalCase(inputCleaned.value),
},
{
label: 'Pathcase:',
value: pathCase(input.value, baseConfig),
value: pathCase(inputCleaned.value),
},
{
label: 'Sentencecase:',
value: sentenceCase(input.value, baseConfig),
value: sentenceCase(inputCleaned.value),
},
{
label: 'Snakecase:',
value: snakeCase(input.value, baseConfig),
value: snakeCase(inputCleaned.value),
},
{
label: 'Mockingcase:',
value: input.value
value: inputCleaned.value
.split('')
.map((char, index) => (index % 2 === 0 ? char.toUpperCase() : char.toLowerCase()))
.join(''),
@@ -84,7 +103,7 @@ const formats = computed(() => [
const inputLabelAlignmentConfig = {
labelPosition: 'left',
labelWidth: '120px',
labelWidth: '125px',
labelAlign: 'right',
};
</script>
@@ -97,6 +116,16 @@ const inputLabelAlignmentConfig = {
placeholder="Your string..."
raw-text
v-bind="inputLabelAlignmentConfig"
mb-1
/>
<c-input-text
v-model:value="cleaningRegex"
label="Cleaning regex:"
placeholder="Your cleaning regex..."
raw-text
v-bind="inputLabelAlignmentConfig"
mb-1
/>
<div my-16px divider />
+1
View File
@@ -24,4 +24,5 @@ export const tool = defineTool({
component: () => import('./case-converter.vue'),
icon: LetterCaseToggle,
npmPackages: ['change-case'],
category: 'Text',
});
@@ -1,4 +1,5 @@
import type {
AlgorithmHashType,
Certificate,
Fingerprint,
Key,
@@ -101,7 +102,7 @@ export function getPrivateKeyLabelValues(privateKey: PrivateKey) {
] as LabelValue[];
}
export function getCertificateLabelValues(cert: Certificate) {
export function getCertificateLabelValues(cert: Certificate, forgeCertificate: forge.pki.Certificate | null) {
return [
{
label: 'Type:',
@@ -161,7 +162,7 @@ export function getCertificateLabelValues(cert: Certificate) {
value: cert.purposes?.join(', '),
},
{
label: 'Extensions:',
label: 'Extensions (parsed):',
value: JSON.stringify(cert.getExtensions().map(ext => ({
oid: (<any>ext).oid,
name: (<any>ext).name || (<any>oids)[(<any>ext).oid],
@@ -171,15 +172,29 @@ export function getCertificateLabelValues(cert: Certificate) {
multiline: true,
},
{
label: 'Fingerprint (sha256):',
value: onErrorReturnErrorMessage(() => cert.fingerprint('sha256')),
multiline: true,
},
{
label: 'Fingerprint (sha512):',
value: onErrorReturnErrorMessage(() => cert.fingerprint('sha512')),
label: 'Extensions (raw):',
value: JSON.stringify(forgeCertificate?.extensions.map(ext => ({
id: (<any>ext).id,
name: (<any>ext).id || (<any>oids)[(<any>ext).id],
...ext,
})), null, 2),
multiline: true,
},
...['sha1', 'sha256', 'sha512'].flatMap(algorithm =>
[
{
label: `Fingerprint (${algorithm}):`,
value: onErrorReturnErrorMessage(() => cert.fingerprint(algorithm as AlgorithmHashType)),
multiline: true,
},
{
label: `Fingerprint HEX (${algorithm}):`,
value: onErrorReturnErrorMessage(() => cert.fingerprint(algorithm as AlgorithmHashType).toString('hex')),
multiline: true,
},
],
),
{
label: 'Certificate (pem):',
value: onErrorReturnErrorMessage(() => cert.toString('pem')),
@@ -254,7 +269,7 @@ export async function getPGPPrivateKeyLabelValuesAsync(pgpPrivateKey: openpgp.Ke
] as LabelValue[];
}
export function getCSRLabelValues(csr: forge.pki.Certificate) {
export function getCSRLabelValues(csr: forge.pki.CertificateSigningRequest) {
return [
{
label: 'Type:',
@@ -265,18 +280,14 @@ export function getCSRLabelValues(csr: forge.pki.Certificate) {
value: csr.subject?.attributes?.map(a => JSON.stringify(a, null, 2)).join('\n'),
multiline: true,
},
{
label: 'Issuer:',
value: csr.issuer?.toString(),
multiline: true,
},
{
label: 'Validity:',
value: JSON.stringify(csr.validity, null, 2),
},
// {
// label: 'Request Info:',
// value: JSON.stringify(csr.certificationRequestInfo, null, 2),
// multiline: true,
// },
{
label: 'Signature:',
value: csr.signature,
value: csr.signature?.toString('hex'),
},
{
label: 'Signature Oid:',
@@ -290,23 +301,19 @@ export function getCSRLabelValues(csr: forge.pki.Certificate) {
label: 'Signing info:',
value: JSON.stringify(csr.siginfo, null, 2),
},
{
label: 'Serial:',
value: csr.serialNumber?.toString(),
},
{
label: 'Extensions:',
value: JSON.stringify(csr.extensions, null, 2),
value: JSON.stringify(csr.attributes, null, 2),
multiline: true,
},
{
label: 'Public Key:',
value: onErrorReturnErrorMessage(() => forge.pki.publicKeyToPem(csr.publicKey)),
value: onErrorReturnErrorMessage(() => forge.pki.publicKeyToPem(csr.publicKey as never)),
multiline: true,
},
{
label: 'Public Key Fingerprint:',
value: onErrorReturnErrorMessage(() => forge.pki.getPublicKeyFingerprint(csr.publicKey)?.toHex()),
value: onErrorReturnErrorMessage(() => forge.pki.getPublicKeyFingerprint(csr.publicKey as never)?.toHex()),
multiline: true,
},
] as LabelValue[];
@@ -1,5 +1,5 @@
/* eslint-disable no-restricted-globals */
import { describe, expect, it } from 'vitest';
import { getKeyOrCertificateInfosAsync } from './certificate-key-parser.service';
const encryptedPrivateKey = /* NOSONAR */ `-----BEGIN ENCRYPTED PRIVATE KEY-----
MIIFHzBJBgkqhkiG9w0BBQ0wPDAbBgkqhkiG9w0BBQwwDgQILjmiBkdY16UCAggA
@@ -188,7 +188,13 @@ c6:b9:73:b8:68:49:33:ad:27:51:bb:6c:16:e7:9c:da:dd:e3:92:15
},
];
describe('certificate-key-parser', () => {
describe('certificate-key-parser', async () => {
const textEncoding = await import('text-encoding-utf-8');
global.TextEncoder = textEncoding.TextEncoder as never;
global.TextDecoder = textEncoding.TextDecoder as never;
const { getKeyOrCertificateInfosAsync } = await import('./certificate-key-parser.service');
for (const format of formatsData) {
const { input, pass, type, title } = format;
it(`Parse '${title ?? type}' format with right type (${type})`, async () => {
@@ -77,13 +77,24 @@ export async function getKeyOrCertificateInfosAsync(keyOrCertificateValue: strin
certificateX509DER = Base64.fromUint8Array(cert.toBuffer('x509'));
}
catch {}
let forgeCertificate: forge.pki.Certificate | null = null;
try {
forgeCertificate = forge.pki.certificateFromPem(inputKeyOrCertificateValue?.toString(), false, false);
}
catch {}
if (!forgeCertificate) {
try {
forgeCertificate = forge.pki.certificateFromAsn1(inputKeyOrCertificateValue as never, false);
}
catch {}
}
return { values: getCertificateLabelValues(cert), certificateX509DER };
return { values: getCertificateLabelValues(cert, forgeCertificate), certificateX509DER };
}
const csr = canParse(inputKeyOrCertificateValue, (value) => {
return forge.pki.certificationRequestFromPem(value.toString(), false, false);
}) as forge.pki.Certificate;
}) as forge.pki.CertificateSigningRequest;
if (csr) {
return { values: getCSRLabelValues(csr) };
}
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./certificate-key-parser.vue'),
icon: FileCertificate,
createdAt: new Date('2024-02-22'),
category: 'Crypto',
});
+23 -21
View File
@@ -86,23 +86,23 @@ const umask = computed(() => computeUmaskRepresentation({ permissions: permissio
<template>
<div>
<c-input-text
v-model:value="octalPermissionsInput"
placeholder="Put your octal permissions here..."
label="Copy your octal permissions"
:validation="octalPermissionsInputValidation"
mb-2
/>
<n-space justify="center">
<c-input-text
v-model:value="octalPermissionsInput"
placeholder="Put your octal permissions here..."
label="Copy your octal permissions"
:validation="octalPermissionsInputValidation"
mb-2
/>
<n-divider />
<c-input-text
v-model:value="symbolicPermissionsInput"
placeholder="Put your symbolic permissions here..."
label="Copy your symbolic permissions"
:validation="symbolicPermissionsInputValidation"
mb-2
/>
<c-input-text
v-model:value="symbolicPermissionsInput"
placeholder="Put your symbolic permissions here..."
label="Copy your symbolic permissions"
:validation="symbolicPermissionsInputValidation"
mb-2
/>
</n-space>
<n-divider />
@@ -148,18 +148,20 @@ const umask = computed(() => computeUmaskRepresentation({ permissions: permissio
</tbody>
</n-table>
<div class="octal-result">
<div class="octal-result" mb-1>
{{ octal }}
</div>
<div class="octal-result">
<div class="octal-result" mb-1>
{{ symbolic }}
</div>
<InputCopyable :value="`chmod ${octal} path`" readonly />
<c-card title="Chmod command" mb-1>
<InputCopyable label-position="left" :value="`chmod ${octal} path`" readonly />
</c-card>
<c-card title="Umask">
<InputCopyable :value="umask.octal" readonly />
<InputCopyable :value="umask.symbolic" readonly />
<InputCopyable label="Octal:" label-position="left" label-width="100px" :value="umask.octal" readonly />
<InputCopyable label="Symbolic:" label-position="left" label-width="100px" :value="umask.symbolic" readonly />
</c-card>
</div>
</template>
+1
View File
@@ -20,4 +20,5 @@ export const tool = defineTool({
],
component: () => import('./chmod-calculator.vue'),
icon: FileInvoice,
category: 'Network',
});
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
keywords: ['chronometer', 'time', 'lap', 'duration', 'measure', 'pause', 'resume', 'stopwatch'],
component: () => import('./chronometer.vue'),
icon: TimerOutlined,
category: 'Datetime',
});
+1
View File
@@ -10,4 +10,5 @@ export const tool = defineTool({
redirectFrom: ['/ip-in-range'],
icon: UnfoldMoreOutlined,
createdAt: new Date('2025-01-12'),
category: 'Network',
});
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./code-highlighter.vue'),
icon: Code,
createdAt: new Date('2024-08-15'),
category: 'Development',
});
+46
View File
@@ -0,0 +1,46 @@
<script setup lang="ts">
import { computedRefreshable } from '@/composable/computedRefreshable';
import { randIntFromInterval } from '@/utils/random';
const [coinFlip, refreshCoinFlip] = computedRefreshable(() => ({
coin: randIntFromInterval(0, 10) % 2 === 0 ? 'Heads' : 'Tails',
dt: Date.now(),
}));
</script>
<template>
<div>
<Transition name="bounce" mode="out-in">
<div :key="coinFlip.dt" flex items-center justify-center>
<div flex items-center justify-center rounded-full outline style="width: 5em; height: 5em">
{{ coinFlip.coin }}
</div>
</div>
</Transition>
<div mt-4 flex justify-center>
<c-button @click="refreshCoinFlip">
Re flip
</c-button>
</div>
</div>
</template>
<style scoped>
.bounce-enter-active {
animation: bounce-in 0.5s;
}
.bounce-leave-active {
animation: bounce-in 0.5s reverse;
}
@keyframes bounce-in {
0% {
transform: scale(0);
}
50% {
transform: scale(1.25);
}
100% {
transform: scale(1);
}
}
</style>
+13
View File
@@ -0,0 +1,13 @@
import { Coin } from '@vicons/tabler';
import { defineTool } from '../tool';
export const tool = defineTool({
name: 'Coin Flipper',
path: '/coin-flipper',
description: 'Flip a coin',
keywords: ['coin', 'flipper'],
component: () => import('./coin-flipper.vue'),
icon: Coin,
createdAt: new Date('2025-02-09'),
category: 'Gaming',
});
@@ -0,0 +1,63 @@
<script setup lang="ts">
import { contrastRatio, passesWCAG } from 'wcag-contrast-utils';
import { useQueryParam } from '@/composable/queryParams';
const forecolor = useQueryParam({ name: 'fg', defaultValue: '#000' });
const backcolor = useQueryParam({ name: 'bg', defaultValue: '#fff' });
const result = computed(() => {
try {
const constrastValue = contrastRatio(forecolor.value, backcolor.value);
const wcagLevel = passesWCAG(constrastValue);
return {
constrastValue,
wcagLevel,
error: '',
};
}
catch (e: any) {
return {
constrastValue: -1,
wcagLevel: '',
error: e.toString(),
};
}
});
</script>
<template>
<div max-w-600px>
<n-form-item
label="Forecolor:"
label-placement="left"
mb-1
>
<n-color-picker
v-model:value="forecolor"
:modes="['hex']"
:show-alpha="false"
/>
</n-form-item>
<n-form-item
label="Backcolor:"
label-placement="left"
mb-1
>
<n-color-picker
v-model:value="backcolor"
:modes="['hex']"
:show-alpha="false"
/>
</n-form-item>
<n-divider />
<c-alert v-if="result.error">
{{ result.error }}
</c-alert>
<input-copyable v-if="!result.error" readonly label="Constrast:" label-width="100px" label-position="left" :value="result.constrastValue" mb-2 />
<input-copyable v-if="!result.error" readonly label="Level:" label-width="100px" label-position="left" :value="result.wcagLevel" />
</div>
</template>
+13
View File
@@ -0,0 +1,13 @@
import { ColorSwatch } from '@vicons/tabler';
import { defineTool } from '../tool';
export const tool = defineTool({
name: 'Color Contrast Checker',
path: '/color-contrast-checker',
description: 'Check the WCAG constrast level between two colors',
keywords: ['color', 'contrast', 'checker', 'wcag'],
component: () => import('./color-contrast-checker.vue'),
icon: ColorSwatch,
createdAt: new Date('2025-03-09'),
category: 'Web',
});
+1
View File
@@ -11,4 +11,5 @@ export const tool = defineTool({
icon: Palette,
redirectFrom: ['/color-picker-converter'],
npmPackages: ['colord'],
category: 'Web',
});
+1 -1
View File
@@ -84,7 +84,7 @@ watch(
</script>
<template>
<div style="max-width: 600px">
<div>
<c-card title="Pick a color" mb-2>
<n-color-picker :value="wheelColor" :show-alpha="false" />
<div
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./color-wheel.vue'),
icon: ColorPicker,
createdAt: new Date('2024-08-15'),
category: 'Web',
});
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./common-regex-memo.vue'),
icon: FileText,
createdAt: new Date('2024-05-11'),
category: 'Cheatsheets',
});
+1
View File
@@ -21,4 +21,5 @@ export const tool = defineTool({
component: () => import('./crc-calculator.vue'),
icon: EyeOff,
createdAt: new Date('2024-05-11'),
category: 'Crypto',
});
@@ -33,6 +33,7 @@ describe('crontab-generator', () => {
it('should return false for all invalid formats', () => {
expect(isCronValid('aert')).toBe(false);
expect(isCronValid('40 *')).toBe(false);
expect(isCronValid('* * * *')).toBe(false);
});
});
@@ -1,4 +1,5 @@
import { parseExpression } from 'cron-parser';
import cronstrue from 'cronstrue';
import EventCronParser from 'event-cron-parser';
export type CronType = 'standard' | 'aws';
@@ -32,6 +33,7 @@ export function isCronValid(cronExpression: string, cronType: CronType | 'any' =
export function getCronType(cronExpression: string) {
try {
parseExpression(cronExpression);
cronstrue.toString(cronExpression, { throwExceptionOnParseError: true });
return 'standard';
}
catch (_) {
+1
View File
@@ -25,4 +25,5 @@ export const tool = defineTool({
component: () => import('./crontab-generator.vue'),
icon: Alarm,
npmPackages: ['cronstrue'],
category: 'Network',
});
@@ -1,22 +1,7 @@
import { pki } from 'node-forge';
import workerScript from 'node-forge/dist/prime.worker.min?url';
import { generateRSAPairs, getSubjectAlternativeNames } from '@/utils/crypto';
export { generateCSR };
function generateRSAPairs({ bits = 2048 }) {
return new Promise<pki.rsa.KeyPair>((resolve, reject) =>
pki.rsa.generateKeyPair({ bits, workerScript }, (err, keyPair) => {
if (err) {
reject(err);
return;
}
resolve(keyPair);
}),
);
}
async function generateCSR(config: {
export async function generateCSR(config: {
bits?: number
password?: string
commonName?: string
@@ -25,6 +10,7 @@ async function generateCSR(config: {
state?: string
organizationName?: string
organizationalUnit?: string
subjectAlternativeNames?: string
contactEmail?: string
} = {}): Promise<{
publicKeyPem: string
@@ -59,6 +45,18 @@ async function generateCSR(config: {
value: config.contactEmail,
}].filter(attr => attr.value !== null && attr.value?.trim() !== ''));
const extensions = [];
const sanExtension = getSubjectAlternativeNames(config.subjectAlternativeNames);
if (sanExtension) {
extensions.push(sanExtension);
}
if (extensions.length) {
csr.setAttributes([{
name: 'extensionRequest',
extensions,
}]);
}
// sign certification request
csr.sign(privateKey);
+18 -3
View File
@@ -23,6 +23,7 @@ const city = ref('Paris');
const state = ref('FR');
const country = ref('France');
const contactEmail = ref('');
const subjectAlternativeNames = ref('');
const emptyCSR = { csrPem: '', privateKeyPem: '', publicKeyPem: '' };
const [certs, refreshCerts] = computedRefreshableAsync(
@@ -39,6 +40,7 @@ const [certs, refreshCerts] = computedRefreshableAsync(
state: state.value,
organizationName: organizationName.value,
organizationalUnit: organizationalUnit.value,
subjectAlternativeNames: subjectAlternativeNames.value,
contactEmail: contactEmail.value,
});
},
@@ -134,6 +136,19 @@ const [certs, refreshCerts] = computedRefreshableAsync(
</n-form-item>
</div>
<div>
<n-form-item
label="Subject Alternative Names:"
label-placement="top"
>
<n-input
v-model:value="subjectAlternativeNames"
placeholder="DNS Names, emails, IP, URI..."
type="textarea"
/>
</n-form-item>
</div>
<div>
<n-form-item
label="Private Key passphrase:"
@@ -159,17 +174,17 @@ const [certs, refreshCerts] = computedRefreshableAsync(
<div v-if="commonNameValidation.isValid">
<div>
<h3>Certificate Signing Request</h3>
<TextareaCopyable :value="certs.csrPem" />
<TextareaCopyable :value="certs.csrPem" :download-file-name="`${organizationName}.csr`" />
</div>
<div>
<h3>Public key</h3>
<TextareaCopyable :value="certs.publicKeyPem" :word-wrap="true" />
<TextareaCopyable :value="certs.publicKeyPem" word-wrap :download-file-name="`${organizationName}.pem`" />
</div>
<div>
<h3>Private key</h3>
<TextareaCopyable :value="certs.privateKeyPem" />
<TextareaCopyable :value="certs.privateKeyPem" :download-file-name="`${organizationName}.key`" />
</div>
</div>
</div>
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./csr-generator.vue'),
icon: ArrowsShuffle,
createdAt: new Date('2024-02-25'),
category: 'Crypto',
});
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./css-prettifier.vue'),
icon: BrandCss3,
createdAt: new Date('2024-03-15'),
category: 'Web',
});
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./css-selectors-memo.vue'),
icon: BrandCss3,
createdAt: new Date('2024-08-15'),
category: 'Cheatsheets',
});
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./css-xpath-converter.vue'),
icon: Braces,
createdAt: new Date('2024-08-15'),
category: 'Web',
});
+1
View File
@@ -10,4 +10,5 @@ export const tool = defineTool({
component: () => import('./csv-to-json.vue'),
icon: ArrowsShuffle,
createdAt: new Date('2024-04-12'),
category: 'JSON',
});
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./curl-converter.vue'),
icon: ExternalLink,
createdAt: new Date('2024-04-20'),
category: 'Development',
});
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./currency-converter.vue'),
icon: Currency,
createdAt: new Date('2024-08-15'),
category: 'Data',
});
@@ -13,4 +13,5 @@ export const tool = defineTool({
component: () => import('./data-storage-unit-converter.vue'),
icon: ArrowsLeftRight,
createdAt: new Date('2024-08-15'),
category: 'Converters',
});
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./data-transfer-rate-converter.vue'),
icon: TransferIn,
createdAt: new Date('2024-08-15'),
category: 'Network',
});
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./date-duration-calculator.vue'),
icon: Calendar,
createdAt: new Date('2024-08-15'),
category: 'Datetime',
});
@@ -1,6 +1,8 @@
import { describe, expect, test } from 'vitest';
import {
dateToExcelFormat,
dateToLDAPTimestamp,
dateToWin32FileTime,
excelFormatToDate,
fromJSDate,
fromTimestamp,
@@ -8,6 +10,7 @@ import {
isISO8601DateTimeString,
isISO9075DateString,
isJSDate,
isLDAPTimestamp,
isMongoObjectId,
isRFC3339DateString,
isRFC7231DateString,
@@ -15,7 +18,10 @@ import {
isTimestampMicroSeconds,
isUTCDateString,
isUnixTimestamp,
isWin32FileTime,
lDAPTimestampToDate,
toJSDate,
win32FileTimeToUnix,
} from './date-time-converter.models';
describe('date-time-converter models', () => {
@@ -107,6 +113,29 @@ describe('date-time-converter models', () => {
});
});
describe('isWin32FileTime', () => {
test('should return true for valid Win32 file time', () => {
expect(isWin32FileTime('131461446367662144')).toBe(true);
});
test('should return false for invalid Win32 file time', () => {
expect(isWin32FileTime('92233720368547758071')).toBe(false); // too big
expect(isWin32FileTime('foo')).toBe(false);
expect(isWin32FileTime('')).toBe(false);
});
});
describe('isLDAPTimestamp', () => {
test('should return true for valid LDAP timestamps', () => {
expect(isLDAPTimestamp('20250309122345Z')).toBe(true);
});
test('should return false for invalid LDAP timestamps', () => {
expect(isLDAPTimestamp('foo')).toBe(false);
expect(isLDAPTimestamp('')).toBe(false);
});
});
describe('isTimestamp', () => {
test('should return true for valid Unix timestamps in milliseconds', () => {
expect(isTimestamp('1649792026123')).toBe(true);
@@ -254,3 +283,52 @@ describe('date-time-converter models', () => {
});
});
});
describe('win32FileTimeToUnix', () => {
test('should correctly convert Win32 FILETIME to UNIX timestamp', () => {
const fileTime = '132271200000000000';
const expectedDate = new Date(Date.UTC(2020, 1, 25, 16, 0, 0));
expect(win32FileTimeToUnix(fileTime)).toEqual(expectedDate);
});
test('should handle zero FILETIME', () => {
expect(win32FileTimeToUnix('0')).toEqual(new Date(1601, 0, 1, 0, 0, 0));
});
});
describe('dateToWin32FileTime', () => {
test('should correctly convert Date to Win32 FILETIME', () => {
const date = new Date(Date.UTC(2020, 1, 25, 16, 0, 0));
const expectedFileTime = '132271200000000000';
expect(dateToWin32FileTime(date)).toBe(expectedFileTime);
});
test('should handle epoch (1970-01-01)', () => {
const date = new Date(0);
const expectedFileTime = '116444736000000000';
expect(dateToWin32FileTime(date)).toBe(expectedFileTime);
});
});
describe('lDAPTimestampToDate', () => {
test('should correctly parse LDAP timestamp', () => {
const ldapTimestamp = '20240101120013Z'; // January 1, 2024, 12:00:13 UTC
expect(lDAPTimestampToDate(ldapTimestamp)).toEqual(new Date(Date.UTC(2024, 0, 1, 12, 0, 13)));
});
test('should return current date on invalid input', () => {
expect(lDAPTimestampToDate('invalid')).toBeInstanceOf(Date);
});
});
describe('dateToLDAPTimestamp', () => {
test('should correctly convert Date to LDAP timestamp', () => {
const date = new Date(Date.UTC(2024, 0, 1, 12, 0, 13));
expect(dateToLDAPTimestamp(date)).toBe('20240101120013Z');
});
test('should correctly pad single-digit values', () => {
const date = new Date(Date.UTC(2024, 4, 9, 4, 5, 6)); // May 9, 2024, 04:05:06 UTC
expect(dateToLDAPTimestamp(date)).toBe('20240509040506Z');
});
});
@@ -1,5 +1,6 @@
import _ from 'lodash';
import { addMilliseconds } from 'date-fns';
import Long from 'long';
export {
isISO8601DateTimeString,
@@ -18,6 +19,12 @@ export {
isJSDate,
fromJSDate,
toJSDate,
isLDAPTimestamp,
isWin32FileTime,
win32FileTimeToUnix,
dateToWin32FileTime,
lDAPTimestampToDate,
dateToLDAPTimestamp,
};
const ISO8601_REGEX
@@ -34,6 +41,8 @@ const EXCEL_FORMAT_REGEX = /^-?\d+(\.\d+)?$/;
const JS_DATE_REGEX = /^new\s+Date\(\s*(?:(\d+)\s*,\s*)(?:(\d|11)\s*,\s*(?:(\d+)\s*,\s*(?:(\d+)\s*,\s*(?:(\d+)\s*,\s*(?:(\d+)\s*,\s*)?)?)?)?)?(\d+)\)\s*;?$/;
const LDAP_TIMESTAMP_REGEX = /^([0-9]{4})(0[0-9]|1[012])([012][0-9]|3[01])([01][0-9]|2[0123])([0-5][0-9])([0-5][0-9])Z$/;
function createRegexMatcher(regex: RegExp) {
return (date?: string) => !_.isNil(date) && regex.test(date);
}
@@ -47,6 +56,8 @@ const isTimestamp = createRegexMatcher(/^([0-9]{1,13}|[0-9]{16})$/);
const isTimestampMilliSeconds = createRegexMatcher(/^[0-9]{1,13}$/);
const isTimestampMicroSeconds = createRegexMatcher(/^[0-9]{16}$/);
const isMongoObjectId = createRegexMatcher(/^[0-9a-fA-F]{24}$/);
const isLDAPTimestamp = createRegexMatcher(LDAP_TIMESTAMP_REGEX);
const isWin32FileTime = createRegexMatcher(/^[0-9]{18}$/);
const isJSDate = createRegexMatcher(JS_DATE_REGEX);
function fromJSDate(date: string): Date {
@@ -89,3 +100,43 @@ function fromTimestamp(timestamp: string, type: 'auto' | 'milliseconds' | 'micro
}
return addMilliseconds(new Date(0), milliSeconds);
}
function win32FileTimeToUnix(ft: string) {
const ulong = Long.fromString(ft, true, 10).div(10000);
let epochBase = ulong.sub(11644473600000);
if (epochBase.greaterThan(ulong)) {
epochBase = epochBase.toSigned();
}
return new Date(epochBase.toNumber());
}
function dateToWin32FileTime(date: Date) {
const timestamp = +date;
const long = Long
.fromNumber(timestamp, timestamp >= 0)
.add(11644473600000)
.mul(10000);
return long.toString(10);
}
function lDAPTimestampToDate(ldapTimestamp: string) {
const [, yy, mm, dd, hh, nn, ss] = LDAP_TIMESTAMP_REGEX.exec(ldapTimestamp) || [];
if (!yy || !mm) {
return new Date();
}
return new Date(
Number.parseInt(yy, 10),
Number.parseInt(mm, 10) - 1,
Number.parseInt(dd, 10),
Number.parseInt(hh, 10),
Number.parseInt(nn, 10),
Number.parseInt(ss, 10));
}
function dateToLDAPTimestamp(date: Date) {
const pad2 = (n: number) => n.toString().padStart(2, '0');
return `${date.getUTCFullYear()}${pad2(date.getUTCMonth() + 1)}${pad2(date.getUTCDate())}${pad2(date.getUTCHours())}${pad2(date.getUTCMinutes())}${pad2(date.getUTCSeconds())}Z`;
}
@@ -15,6 +15,8 @@ import { UTCDate } from '@date-fns/utc';
import type { DateFormat, ToDateMapper } from './date-time-converter.types';
import {
dateToExcelFormat,
dateToLDAPTimestamp,
dateToWin32FileTime,
excelFormatToDate,
fromJSDate,
fromTimestamp,
@@ -22,13 +24,17 @@ import {
isISO8601DateTimeString,
isISO9075DateString,
isJSDate,
isLDAPTimestamp,
isMongoObjectId,
isRFC3339DateString,
isRFC7231DateString,
isTimestamp,
isUTCDateString,
isUnixTimestamp,
isWin32FileTime,
lDAPTimestampToDate,
toJSDate,
win32FileTimeToUnix,
} from './date-time-converter.models';
import { withDefaultOnError } from '@/utils/defaults';
import { useValidation } from '@/composable/validation';
@@ -110,6 +116,18 @@ const formats: DateFormat[] = [
toDate: date => fromJSDate(date),
formatMatcher: isJSDate,
},
{
name: 'LDAP YMD Timestamp',
fromDate: date => dateToLDAPTimestamp(date),
toDate: date => lDAPTimestampToDate(date),
formatMatcher: isLDAPTimestamp,
},
{
name: 'Win32 FileTime/LDAP 18 digits Timestamp',
fromDate: date => dateToWin32FileTime(date),
toDate: date => win32FileTimeToUnix(date),
formatMatcher: isWin32FileTime,
},
];
const formatIndex = ref(6);
+2 -1
View File
@@ -6,8 +6,9 @@ export const tool = defineTool({
name: translate('tools.date-converter.title'),
path: '/date-converter',
description: translate('tools.date-converter.description'),
keywords: ['date', 'time', 'converter', 'iso', 'utc', 'timezone', 'year', 'month', 'day', 'minute', 'seconde'],
keywords: ['date', 'time', 'converter', 'iso', 'utc', 'unix', 'epoch', 'timezone', 'year', 'month', 'day', 'minute', 'seconde', 'filetime', 'ldap', 'win32'],
component: () => import('./date-time-converter.vue'),
icon: Calendar,
npmPackages: ['date-fns'],
category: 'Datetime',
});
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./days-calculator.vue'),
icon: Calendar,
createdAt: new Date('2024-08-15'),
category: 'Datetime',
});
+1
View File
@@ -21,4 +21,5 @@ export const tool = defineTool({
],
component: () => import('./device-information.vue'),
icon: DeviceDesktop,
category: 'Web',
});
+66
View File
@@ -0,0 +1,66 @@
<script setup lang="ts">
import { DiceRoll } from '@dice-roller/rpg-dice-roller';
import { computedRefreshable } from '@/composable/computedRefreshable';
import { useCopy } from '@/composable/copy';
import { useQueryParamOrStorage } from '@/composable/queryParams';
const dicesNotations = useQueryParamOrStorage({ name: 'dices', storageName: 'dice-roll:dices', defaultValue: '3d6' });
const [diceRollResult, refreshDiceRollResult] = computedRefreshable(() => {
try {
return {
error: '',
roll: new DiceRoll(dicesNotations.value),
};
}
catch (e: any) {
return {
error: e.toString(),
roll: null,
};
}
});
const diceRollString = computed(() => diceRollResult.value.roll?.output || '');
const { copy } = useCopy({ source: diceRollString, text: 'Dice Roll copied to the clipboard' });
</script>
<template>
<c-card>
<c-input-text
v-model:value="dicesNotations"
label="Dice Roll Notations:" label-position="left"
placeholder="Dice configuration"
mb-2
/>
<n-p mb-2>
For more information about Dice Notation, see <n-a href="https://dice-roller.github.io/documentation/guide/notation/" target="_blank">
here
</n-a>
</n-p>
<c-alert v-if="diceRollResult.error" mb-2>
{{ diceRollResult.error }}
</c-alert>
<c-card v-if="!diceRollResult.error" title="Roll Result" mb-2>
<input-copyable :value="diceRollResult.roll?.output" readonly mb-1 />
<input-copyable :value="diceRollResult.roll?.total" label="Total" readonly placeholder="Dice Roll total:" label-position="left" mb-1 />
</c-card>
<div mb-2 flex justify-center gap-3>
<c-button @click="copy()">
Copy roll result
</c-button>
<c-button @click="refreshDiceRollResult">
Refresh roll
</c-button>
</div>
<c-card v-if="!diceRollResult.error" title="Dice Notation Stats" mb-2>
<input-copyable :value="diceRollResult.roll?.minTotal" readonly label="Min Total:" label-position="left" mb-1 />
<input-copyable :value="diceRollResult.roll?.maxTotal" readonly label="Max Total:" label-position="left" mb-1 />
<input-copyable :value="diceRollResult.roll?.averageTotal" readonly label="Avg Total:" label-position="left" mb-1 />
</c-card>
</c-card>
</template>
+13
View File
@@ -0,0 +1,13 @@
import { Dice } from '@vicons/tabler';
import { defineTool } from '../tool';
export const tool = defineTool({
name: 'Dice Roller',
path: '/dice-roller',
description: 'RPG Dice Roller using Dice Notation',
keywords: ['dice', 'rng', 'rpg', 'roller'],
component: () => import('./dice-roller.vue'),
icon: Dice,
createdAt: new Date('2025-02-09'),
category: 'Gaming',
});
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./dns-queries.vue'),
icon: World,
createdAt: new Date('2024-08-15'),
category: 'Network',
});
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./docker-compose-converter.vue'),
icon: BrandDocker,
createdAt: new Date('2024-01-04'),
category: 'Docker',
});
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./docker-compose-to-docker-run-converter.vue'),
icon: BrandDocker,
createdAt: new Date('2024-01-03'),
category: 'Docker',
});
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./docker-compose-to-kubernetes.vue'),
icon: BrandDocker,
createdAt: new Date('2024-02-18'),
category: 'Docker',
});
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./docker-compose-validator.vue'),
icon: BrandDocker,
createdAt: new Date('2024-01-25'),
category: 'Docker',
});
@@ -9,4 +9,5 @@ export const tool = defineTool({
keywords: ['docker', 'run', 'compose', 'yaml', 'yml', 'convert', 'deamon'],
component: () => import('./docker-run-to-docker-compose-converter.vue'),
icon: BrandDocker,
category: 'Docker',
});
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./docker-run-to-kubernetes.vue'),
icon: BrandDocker,
createdAt: new Date('2024-02-18'),
category: 'Docker',
});
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./duration-calculator.vue'),
icon: CalendarTime,
createdAt: new Date('2024-08-15'),
category: 'Datetime',
});
@@ -39,7 +39,7 @@ const [certs, refreshCerts] = computedRefreshableAsync(
</script>
<template>
<div max-w-600px>
<div>
<n-space mb-1>
<c-select
v-model:value="format"
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./ecdsa-key-pair-generator.vue'),
icon: Certificate,
createdAt: new Date('2024-04-20'),
category: 'Crypto',
});
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./ed25519-key-pair-generator.vue'),
icon: Certificate,
createdAt: new Date('2024-02-14'),
category: 'Crypto',
});
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./email-normalizer.vue'),
icon: Mail,
createdAt: new Date('2024-08-15'),
category: 'Converters',
});
+1 -1
View File
@@ -46,7 +46,7 @@ function onUpload(file: File) {
</script>
<template>
<div style="max-width: 600px;">
<div>
<c-card title="Input" mb-2>
<n-radio-group v-model:value="inputType" name="radiogroup" mb-2 flex justify-center>
<n-space>
+1
View File
@@ -9,4 +9,5 @@ export const tool = defineTool({
component: () => import('./email-parser.vue'),
icon: Mail,
createdAt: new Date('2024-08-15'),
category: 'Forensic',
});
+6 -2
View File
@@ -24,6 +24,7 @@ const emojisGroups: { emojiInfos: EmojiInfo[]; group: string }[] = _
.map((emojiInfos, group) => ({ group, emojiInfos }))
.value();
const limit = ref(100);
const searchQuery = useDebouncedRef('', 500);
const { searchResult } = useFuzzySearch({
@@ -35,21 +36,24 @@ const { searchResult } = useFuzzySearch({
useExtendedSearch: true,
isCaseSensitive: false,
},
limit: limit.value,
});
</script>
<template>
<div mx-auto max-w-2400px important:flex-1>
<div flex items-center gap-3>
<div mx-auto max-w-600px flex justify-center gap-3>
<c-input-text
v-model:value="searchQuery"
placeholder="Search emojis (e.g. 'smile')..."
mx-auto max-w-600px
>
<template #prefix>
<icon-mdi-search mr-6px color-black op-70 dark:color-white />
</template>
</c-input-text>
<n-form-item label="Max results:" label-placement="left">
<n-input-number v-model:value="limit" :min="1" />
</n-form-item>
</div>
<div v-if="searchQuery.trim().length > 0">
Loaded 100 of 393 files, more files were not shown because too many files have changed in this diff. Show more