mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-26 07:33:21 +03:00
Compare commits
186
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f52df1197 | ||
|
|
75637340a2 | ||
|
|
01928b3ad9 | ||
|
|
fb99fb24c7 | ||
|
|
8a89a78830 | ||
|
|
3ba3b222ad | ||
|
|
7516aae2c1 | ||
|
|
aab0e2eb18 | ||
|
|
c1d962c9b9 | ||
|
|
c30d598d77 | ||
|
|
3f8d2db9b9 | ||
|
|
20251116c3 | ||
|
|
a7776baa1a | ||
|
|
f6411f862c | ||
|
|
2c2643b14c | ||
|
|
087860c472 | ||
|
|
de2de50769 | ||
|
|
37164f3ced | ||
|
|
6c4f64b662 | ||
|
|
9425d3419b | ||
|
|
fdb39a80cb | ||
|
|
50ffafc9dc | ||
|
|
83a9fe564d | ||
|
|
4119b049cf | ||
|
|
330b18d945 | ||
|
|
b853dfa0d4 | ||
|
|
6914e3e325 | ||
|
|
545d7f01c4 | ||
|
|
92a0dda3e7 | ||
|
|
ca64d2a018 | ||
|
|
825d90c22b | ||
|
|
fc9c0abe70 | ||
|
|
cb3d366080 | ||
|
|
a47e25a360 | ||
|
|
282acba77e | ||
|
|
c02b358dcc | ||
|
|
23b853415f | ||
|
|
116ee92eab | ||
|
|
4fabdf9cf5 | ||
|
|
3275c7041e | ||
|
|
1236082735 | ||
|
|
bfb4a45d9c | ||
|
|
3ad698544c | ||
|
|
76551387d7 | ||
|
|
46a1b9b163 | ||
|
|
8f160bb241 | ||
|
|
4b1ca280e4 | ||
|
|
71700b92c6 | ||
|
|
608ee95753 | ||
|
|
abc0d11b09 | ||
|
|
5a6c3fb9e2 | ||
|
|
c0e57eafc7 | ||
|
|
13b8f041be | ||
|
|
b4255a3e32 | ||
|
|
61d2beae2f | ||
|
|
44a21380ab | ||
|
|
b5b3aa02c0 | ||
|
|
91f554845a | ||
|
|
b94a25c963 | ||
|
|
1234dca5ff | ||
|
|
fc36499963 | ||
|
|
39c47a0a5a | ||
|
|
72169aaf8d | ||
|
|
e4b2869aa7 | ||
|
|
34373f1a3f | ||
|
|
c2f5b6477c | ||
|
|
14dd110bfe | ||
|
|
6682517544 | ||
|
|
e1d05b11a4 | ||
|
|
2ee02742e7 | ||
|
|
5f8aea2d09 | ||
|
|
454b347fac | ||
|
|
3240a257bc | ||
|
|
3d3850f76c | ||
|
|
201e17b00d | ||
|
|
bd7e018e23 | ||
|
|
900c4c9266 | ||
|
|
dd87f353aa | ||
|
|
e942fe4f04 | ||
|
|
81bc96515b | ||
|
|
dbb56a4db6 | ||
|
|
6b1825f568 | ||
|
|
6a8d1d30f3 | ||
|
|
50bd3ed699 | ||
|
|
0716afba0a | ||
|
|
9f08fe6886 | ||
|
|
9f70133188 | ||
|
|
dfe13de18b | ||
|
|
c031d57f41 | ||
|
|
2b06b5b64c | ||
|
|
d450f3b38c | ||
|
|
d2e32ace21 | ||
|
|
01beb24ce7 | ||
|
|
cf3defed07 | ||
|
|
083b5e1834 | ||
|
|
6cb4958013 | ||
|
|
1b15214a1d | ||
|
|
241dd6f9fb | ||
|
|
e2f6a8299c | ||
|
|
8ee06eeedb | ||
|
|
71b60fc961 | ||
|
|
9f5792d2b4 | ||
|
|
1127fbd260 | ||
|
|
40901c976d | ||
|
|
dacb5ec378 | ||
|
|
f5f2938817 | ||
|
|
4dc9dcfe91 | ||
|
|
03e6e208ec | ||
|
|
1f314da094 | ||
|
|
ca3c3a6b91 | ||
|
|
ab7f046386 | ||
|
|
a0beb74601 | ||
|
|
58b3bd4404 | ||
|
|
d554f2961a | ||
|
|
d175e60ce9 | ||
|
|
100563cc70 | ||
|
|
63065a59e5 | ||
|
|
686c9fb08b | ||
|
|
c63e10a135 | ||
|
|
1d737a0bc3 | ||
|
|
603140a25d | ||
|
|
e20b284fba | ||
|
|
acc5ab5f13 | ||
|
|
de9f44e09e | ||
|
|
87c7609bc8 | ||
|
|
6706c682d5 | ||
|
|
438bb09dda | ||
|
|
a3b75a60e7 | ||
|
|
ae0ef63a03 | ||
|
|
8ad6157f7e | ||
|
|
72f541c7a3 | ||
|
|
75670a71ab | ||
|
|
11e2ac8130 | ||
|
|
e36bc459a9 | ||
|
|
0325b11746 | ||
|
|
0462c17fc1 | ||
|
|
6cbfa60e89 | ||
|
|
99393d2683 | ||
|
|
b612eed948 | ||
|
|
3ccbd85342 | ||
|
|
a26f2a2cf9 | ||
|
|
0bb259c734 | ||
|
|
b434ad7246 | ||
|
|
1202011926 | ||
|
|
babff364d6 | ||
|
|
cfe5b4fece | ||
|
|
504aff98d0 | ||
|
|
a4576e040c | ||
|
|
9cb58fccf3 | ||
|
|
521d0bf638 | ||
|
|
1d02e32486 | ||
|
|
d28f275168 | ||
|
|
eafc6f87fc | ||
|
|
5bdbaa920e | ||
|
|
aabbfca763 | ||
|
|
be9d659763 | ||
|
|
96ad3ebba0 | ||
|
|
c46e65fe3c | ||
|
|
79e0db7ef6 | ||
|
|
b0c43e2bdb | ||
|
|
ad312d788f | ||
|
|
a8c6ebc81b | ||
|
|
0d4267e356 | ||
|
|
e5d842571b | ||
|
|
2be6d4d412 | ||
|
|
05d25dac5a | ||
|
|
e811a5b654 | ||
|
|
7824f48383 | ||
|
|
e9dbf1fb0e | ||
|
|
3ffb8052d6 | ||
|
|
1a2e152e16 | ||
|
|
4ea4420b35 | ||
|
|
7527853897 | ||
|
|
a9d6b86198 | ||
|
|
cca32baf0f | ||
|
|
207b2ab54d | ||
|
|
7fd60b0356 | ||
|
|
3b921e64ed | ||
|
|
d625f622ca | ||
|
|
700cc2a196 | ||
|
|
c53a8cb773 | ||
|
|
ea0a99ef20 | ||
|
|
241dd13c17 | ||
|
|
9f5f7d80de | ||
|
|
5e3648e141 | ||
|
|
a78201bffd |
No files matched your search
@@ -20,7 +20,7 @@ jobs:
|
||||
pnpm --version
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
node-version: 22
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: Docker nightly release
|
||||
|
||||
env:
|
||||
VITE_VERCEL_ENV: production
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
@@ -37,7 +40,7 @@ jobs:
|
||||
pnpm --version
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
node-version: 22
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: Build and Push Docker Image (baseurl-it-tools)
|
||||
|
||||
env:
|
||||
VITE_VERCEL_ENV: production
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@@ -19,7 +22,7 @@ jobs:
|
||||
pnpm --version
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
node-version: 22
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: Build and Push Docker Image (latest)
|
||||
|
||||
env:
|
||||
VITE_VERCEL_ENV: production
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@@ -19,7 +22,7 @@ jobs:
|
||||
pnpm --version
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
node-version: 22
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
|
||||
@@ -23,7 +23,7 @@ jobs:
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
node-version: 22
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Get Playwright version
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: Deploy static content to Pages
|
||||
|
||||
env:
|
||||
VITE_VERCEL_ENV: production
|
||||
|
||||
on:
|
||||
# Runs on pushes targeting the default branch
|
||||
push:
|
||||
@@ -34,13 +37,13 @@ jobs:
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
node-version: 22
|
||||
|
||||
- uses: pnpm/action-setup@v2
|
||||
name: Install pnpm
|
||||
id: pnpm-install
|
||||
with:
|
||||
version: 8
|
||||
version: 9
|
||||
run_install: true
|
||||
|
||||
- name: Build
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: Release new versions
|
||||
|
||||
env:
|
||||
VITE_VERCEL_ENV: production
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
@@ -45,8 +48,10 @@ jobs:
|
||||
push: true
|
||||
tags: |
|
||||
sharevb/it-tools:baseurl-it-tools
|
||||
sharevb/it-tools:stable-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:stable-baseurl-it-tools
|
||||
ghcr.io/sharevb/it-tools:${{ env.RELEASE_VERSION}}-baseurl-it-tools
|
||||
|
||||
- name: Build and push
|
||||
@@ -58,8 +63,10 @@ jobs:
|
||||
push: true
|
||||
tags: |
|
||||
sharevb/it-tools:latest
|
||||
sharevb/it-tools:stable
|
||||
sharevb/it-tools:${{ env.RELEASE_VERSION}}
|
||||
ghcr.io/sharevb/it-tools:latest
|
||||
ghcr.io/sharevb/it-tools:stable
|
||||
ghcr.io/sharevb/it-tools:${{ env.RELEASE_VERSION}}
|
||||
|
||||
github-release:
|
||||
@@ -81,7 +88,7 @@ jobs:
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
node-version: 22
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
@@ -114,10 +121,12 @@ jobs:
|
||||
|
||||
- Docker Hub Registry
|
||||
- `sharevb/it-tools:latest`
|
||||
- `sharevb/it-tools:stable`
|
||||
- `sharevb/it-tools:${{ env.RELEASE_VERSION}}`
|
||||
|
||||
- GitHub Container Registry
|
||||
- `ghcr.io/sharevb/it-tools:latest`
|
||||
- `ghcr.io/sharevb/it-tools:stable`
|
||||
- `ghcr.io/sharevb/it-tools:${{ env.RELEASE_VERSION}}`
|
||||
|
||||
## Changelog
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
name: Vercel Preview Deployment
|
||||
env:
|
||||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
||||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
||||
VITE_VERCEL_ENV: preview
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- chore/all-my-stuffs
|
||||
pull_request:
|
||||
jobs:
|
||||
Deploy-Preview:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install Vercel CLI
|
||||
run: npm install --global vercel@latest
|
||||
- name: Pull Vercel Environment Information
|
||||
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
|
||||
- name: Build Project Artifacts
|
||||
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
|
||||
- name: Deploy Project Artifacts to Vercel
|
||||
run: vercel deploy --prebuilt --archive=tgz --token=${{ secrets.VERCEL_TOKEN }}
|
||||
@@ -0,0 +1,22 @@
|
||||
name: Vercel Production Deployment
|
||||
env:
|
||||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
||||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
||||
VITE_VERCEL_ENV: production
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- chore/all-my-stuffs
|
||||
jobs:
|
||||
Deploy-Production:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install Vercel CLI
|
||||
run: npm install --global vercel@latest
|
||||
- name: Pull Vercel Environment Information
|
||||
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
|
||||
- name: Build Project Artifacts
|
||||
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
|
||||
- name: Deploy Project Artifacts to Vercel
|
||||
run: vercel deploy --prebuilt --archive=tgz --prod --token=${{ secrets.VERCEL_TOKEN }}
|
||||
+2
-1
@@ -34,4 +34,5 @@ coverage
|
||||
# Webkit with playwright creates a salt file
|
||||
salt
|
||||
# WSL can create Zone.Identifier
|
||||
*:Zone.Identifier
|
||||
*:Zone.Identifier
|
||||
.vercel
|
||||
+259
@@ -2,6 +2,265 @@
|
||||
|
||||
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.10.19
|
||||
|
||||
### Features
|
||||
- **Script**: add a translation script for missing translations (a7776ba)
|
||||
|
||||
### Bug fixes
|
||||
- **Scripts**: remove target languages unused + keep line break (8a89a78)
|
||||
- **Scripts**: translate only if missing + handle ' (7516aae)
|
||||
- **Scripts**: extract string, avoid if has already t() + /* NO EXTRACT SCRIPT */ (c30d598)
|
||||
- **i18n**: wrong input-label,... text extractions (2025111)
|
||||
- **Tools Filtering**: filter tools everywhere (2c2643b)
|
||||
- **JSON Diff**: display removed original text (de2de50)
|
||||
|
||||
### Chores
|
||||
- update some deps (01928b3)
|
||||
- optimize unit test memory use (fb99fb2)
|
||||
- add script:translate-missing (3f8d2db)
|
||||
- add a stable tag on release (f6411f8)
|
||||
- add buymeacoffee (087860c)
|
||||
|
||||
### Other
|
||||
- Update fr.yml fix few punctuations (#201) (c1d962c)
|
||||
|
||||
### I18n
|
||||
- auto translatte missing + add da, it, nl, tr, kr (3ba3b22)
|
||||
|
||||
### Merge branch 'chore/all-my-stuffs' of https
|
||||
- //github.com/sharevb/it-tools into chore/all-my-stuffs (aab0e2e)
|
||||
|
||||
## Version 2025.10.12
|
||||
|
||||
### Features
|
||||
- extract strings of new tools (9425d34)
|
||||
- **Citation Generator**: Add Vancouver Style (fdb39a8)
|
||||
- **new tool**: Database Connection String Generator (83a9fe5)
|
||||
- **new tool**: Niceware Bytes Passphrase Converter (4119b04)
|
||||
- **List Converter**: filter item regexps (330b18d)
|
||||
- **new tool**: Credit Card Checker and Info (6914e3e)
|
||||
- **new tool**: Random Credit Card Number Generator (545d7f0)
|
||||
- **IBAN Validator**: allow multiple IBANs (92a0dda)
|
||||
- **new tool**: Diceware Password Generator (ca64d2a)
|
||||
- **new tool**: IANA Whois Checker (825d90c)
|
||||
- unit test for JSON.parseBigInt (fc9c0ab)
|
||||
- **new tool**: dBm mW Converter (cb3d366)
|
||||
- **new tool**: GTIN Validator (282acba)
|
||||
- **new tool**: Keyboard Layouts Converter (c02b358)
|
||||
- **About page**: import/export favorites (3ad6985)
|
||||
|
||||
### Bug fixes
|
||||
- **Github Page**: pnpm 9 (50ffafc)
|
||||
- **IBAN Validator**: update placeholder regarding multiline input (b853dfa)
|
||||
- **Text To Unicode**: fix python \U padded to 8 for high ucods (a47e25a)
|
||||
- **JSON Bigint parser**: better handle large numbers in strings (116ee92)
|
||||
- **iso-3166-searcher**: timezones separator (3275c70)
|
||||
- **issues**: fix textarea always grows (#194) (bfb4a45)
|
||||
- **Energy Computer**: label and fixed precision (7655138)
|
||||
- **Text Translator**: filter available languages (46a1b9b)
|
||||
- **QR Code Generator**: Fixed an issue where the text input provided to the terminal QR code wasn't trimming leading/trailing spaces and newlines from the string (#189) (4b1ca28)
|
||||
- **QR Code Generator**: bring back multiline (71700b9)
|
||||
- **Docker**: remove CSP header (608ee95)
|
||||
|
||||
### Continuous integration
|
||||
- **Docker**: fix VITE_VERCEL_ENV to production (8f160bb)
|
||||
|
||||
### Chores
|
||||
- **Release**: remove commit hash from version (23b8534)
|
||||
- contribute section (1236082)
|
||||
|
||||
### Other
|
||||
- Spelling error (#183) (abc0d11)
|
||||
|
||||
### Merge branch 'chore/all-my-stuffs' of https
|
||||
- //github.com/sharevb/it-tools into chore/all-my-stuffs (4fabdf9)
|
||||
|
||||
## Version 2025.08.31-13b8f041
|
||||
|
||||
### Features
|
||||
- **new tool**: add image color inversion tool (#179) (b94a25c)
|
||||
|
||||
### Bug fixes
|
||||
- **Extract Text from HTML**: display conversion errors (13b8f04)
|
||||
- **Docker Compose Cheatsheet**: new syntax (61d2bea)
|
||||
- **Extract Text From HTML**: use html-to-text for better result (91f5548)
|
||||
|
||||
### Chores
|
||||
- **deps**: update node.js to v22 (#182) (b5b3aa0)
|
||||
- **preview workflow**: fix for running on pull requests (1234dca)
|
||||
- fix env.VITE_VERCEL_ENV for prod (39c47a0)
|
||||
|
||||
### Other
|
||||
- - Fixed an issue where the center of the wheel was misaligned compared to the fortune wheel (#177) (fc36499)
|
||||
|
||||
### I18n
|
||||
- add fr translation (b4255a3)
|
||||
|
||||
### Merge branch 'chore/all-my-stuffs' of https
|
||||
- //github.com/sharevb/it-tools into chore/all-my-stuffs (44a2138)
|
||||
|
||||
## Version 2025.08.24-34373f1a
|
||||
|
||||
### Features
|
||||
- fix typescript issue and translate all remaining tools (14dd110)
|
||||
- **About**: rewrite and list all tools (6682517)
|
||||
- **new tool**: DNSBL Checker (e1d05b1)
|
||||
- **Yaml Prettifier**: add a JSON Schema Validator (2ee0274)
|
||||
- **JSON Prettifier/Linter**: add a JSON Schema Validator (5f8aea2)
|
||||
- **new tool**: Which Day Calculator (454b347)
|
||||
- **new tool**: Random Numbers Generator (3240a25)
|
||||
- **new tool**: Favicon Generator (3d3850f)
|
||||
- **new tool**: Image Comparer (201e17b)
|
||||
- **new tool**: Pack files for AI (Repomix) (bd7e018)
|
||||
- **new tool**: Resistor Data Calculator (900c4c9)
|
||||
- **new tool**: Docker Inspect to Docker Run (e942fe4)
|
||||
- **new tool**: Apache Logrotate Generator (81bc965)
|
||||
- **new tool**: RAID Reliability Calculator/MTTDL (dbb56a4)
|
||||
- **new tool**: Font Comparer (6a8d1d3)
|
||||
- **new tool**: Unicode to GSM7 (and SMS info) (50bd3ed)
|
||||
- **new tool**: GPT Token Encoder/Decoder (dfe13de)
|
||||
- **GPT Token Estimator**: expose all models of tiktoken (and remove price thus) (c031d57)
|
||||
- **new tool**: Charset Detector/Decoder (2b06b5b)
|
||||
- **new tool**: Markdown to DOCX (d2e32ac)
|
||||
- **new tool**: Text Translator (01beb24)
|
||||
- **SSL Certificate Converter**: allow converting crt... with multiple certificate (cf3defe)
|
||||
- **new tool**: Env Variables Converter (083b5e1)
|
||||
- **new tool**: Wireguard Config Generator (241dd6f)
|
||||
- **JSON Escaper**: option Wrap in quotes (e2f6a82)
|
||||
- **new tools**: Zpool/OpenZFS calculator and cheatsheet (8ee06ee)
|
||||
- **new tool**: SQL Parameters Generator (71b60fc)
|
||||
- **new tool**: Social Link Sharer (9f5792d)
|
||||
- **new tool**: Middle Endian Converter (1127fbd)
|
||||
- **new tool**: zxcvbn Password Strength (40901c9)
|
||||
- **new tool**: JSON to Data (dacb5ec)
|
||||
- **CSV to Data**: add xlsx format (f5f2938)
|
||||
- **new tool**: TOML Linter (4dc9dcf)
|
||||
- **new tool**: XML Linter (03e6e20)
|
||||
- **YAML Viewer**: add lint keyword (1f314da)
|
||||
- **new tool**: Markdown Table Prettifier (ab7f046)
|
||||
- tools default params and default language at runtime and more url parameters (63065a5)
|
||||
- **new tool**: Mailto Generator (686c9fb)
|
||||
- **new tool**: Django Secret Key generator (603140a)
|
||||
- **new tools**: Docker Compose/file/Swarm Cheatsheet (e20b284)
|
||||
- **new tool**: Sed Command Generator + Cheatsheet (a3b75a6)
|
||||
|
||||
### Bug fixes
|
||||
- optimize Docker build (slow on arm64) (34373f1)
|
||||
- **Text Tranlator**: enhance UI and fix for arm64 (dd87f35)
|
||||
- **Vercel**: Vercel deployment 404 (9f08fe6)
|
||||
- **JSON to TOML**: e2e tests (6cb4958)
|
||||
- add BASE_URL to useScriptTag (1b15214)
|
||||
- **TOML tools**: replace iarna_toml-esm by smol-toml (ca3c3a6)
|
||||
- **deps**: update tiptap monorepo to v2.26.1 (#144) (d554f29)
|
||||
- **Unit Tests**: disable getITToolsSetting (d175e60)
|
||||
- **SEO**: ensure title and description in all <meta> (100563c)
|
||||
- **My IP**: resolve country by IPv4 first (c63e10a)
|
||||
- **Sed Cheatsheet**: naming and table formatting (1d737a0)
|
||||
- **Percentage Calculator**: e2e test failing (de9f44e)
|
||||
- **Docker/Pomodoro Timer**: allow Google Fonts for CSP + fix translation call (87c7609)
|
||||
- **Cron Generator**: fix disappearing UI (6706c68)
|
||||
- **Docker**: allow image upload (connect-src CSP) in nginx config (438bb09)
|
||||
- tool loading indicator after 350ms only (ae0ef63)
|
||||
- **Data Faker**: insert method names + handle options (8ad6157)
|
||||
- **Input Number**: handle dot and comma (and other format) (72f541c)
|
||||
- **QRCode Decoder**: limit to image/* and leave empty if no qr code to decode (75670a7)
|
||||
|
||||
### Chores
|
||||
- cleaning sponsors and buymeacoffee (c2f5b64)
|
||||
- **Translator**: fix typescript stange error (6b1825f)
|
||||
- **Build**: fix maximumFileSizeToCacheInBytes to 25MB (0716afb)
|
||||
- add --archive=tgz to vercel deploy (for rate limiting) (a0beb74)
|
||||
- **config**: migrate config renovate.json (#150) (58b3bd4)
|
||||
- replace Vercel deploiement in Vercel by GitHub Action (acc5ab5)
|
||||
|
||||
### Fixup! feat
|
||||
- **new tool**: Env Variables Converter (9f70133)
|
||||
- **new tool**: Env Variables Converter (d450f3b)
|
||||
|
||||
## Version 2025.08.06-0325b117
|
||||
|
||||
### Features
|
||||
- **i18n**: add Chinese translation (#163) (6cbfa60)
|
||||
|
||||
### Other
|
||||
- - Added a loading background color for light and dark theme (#166) (0325b11)
|
||||
- QR code generator UI improvements (#165) (0462c17)
|
||||
|
||||
## Version 2025.07.20-3ccbd853
|
||||
|
||||
### Features
|
||||
- prepare new tools for translation (cfe5b4f)
|
||||
- translation scripts enhancements (a4576e0)
|
||||
- **new tool**: Levenshtein Distance Calculator (9cb58fc)
|
||||
- **new tools**: YAML/JSON Flattener/Unflattener (521d0bf)
|
||||
- **new tools**: YAML/JSON Merger (1d02e32)
|
||||
- **new tools**: Docker Run/Compose to Quadlets (d28f275)
|
||||
- **Git Memo**: add git pull (c46e65f)
|
||||
- **XPath Tester**: handle namespaces (b0c43e2)
|
||||
- **new tool**: Swagger UI Tester (e5d8425)
|
||||
- **yaml-to-json**: add nestify options (e9dbf1f)
|
||||
- **i18n**: extract some more (1a2e152)
|
||||
- **i18n**: extract some more (7527853)
|
||||
- **i18n**: extract all tools name and description (a9d6b86)
|
||||
- add script to extract tools name and description (cca32ba)
|
||||
- **HTML Editor**: add raw html editor (d625f62)
|
||||
- **new tool**: Citation Generator (APA/MLA) (700cc2a)
|
||||
- **new tool**: JSON Query (lang) (c53a8cb)
|
||||
- **JQ Tester**: add some keywords and move to JSON category (ea0a99e)
|
||||
- **new tool**: ANSI Escape Tester (241dd13)
|
||||
- **new tool**: HTML Minifier (9f5f7d8)
|
||||
- **HTML Editor**: option to minify output (5e3648e)
|
||||
- **Watermarker**: add options for repeated tile spacing and single watermark positioning (a78201b)
|
||||
- **new tool**: Image Watermarker (e00b78b)
|
||||
- **Unicode Search**: improve unicode search loading speed (#97) (f868b97)
|
||||
- **Folder Structure**: Add backwards converter for Folder Structure Page (#105) (9186038)
|
||||
|
||||
### Bug fixes
|
||||
- use t for translate in tools name/description (3ccbd85)
|
||||
- **Regex Tester**: remove shadow root on unmount (a26f2a2)
|
||||
- **iCal Merger**: fix name and desc + regenerate UIDs (0bb259c)
|
||||
- remove stub @types + update podletjs + use @xterm/xterm (504aff9)
|
||||
- **nginx.conf**: allow image-src to blob and http(s) (eafc6f8)
|
||||
- **deps**: update dependency @iplookup/country-extra to v1.0.20250717 (#115) (5bdbaa9)
|
||||
- allow connect-src any https: and http: (79e0db7)
|
||||
- JSON stringify/parse BigInt (ad312d7)
|
||||
- read yaml with intAsBigInt (0d4267e)
|
||||
- **HTML Editor**: remove <p> from <li> (2be6d4d)
|
||||
- **IPv4 Address Converter**: error handling (05d25da)
|
||||
|
||||
### Chores
|
||||
- update deps (b434ad7)
|
||||
- update playwright (1202011)
|
||||
- update deps (babff36)
|
||||
- force base url / for latest and default build (91564e0)
|
||||
- fix github issue template typo (5904fa7)
|
||||
|
||||
### Other
|
||||
- Additions for responsive sidebar pull request (#131) (aabbfca)
|
||||
- add yunohost install option (#133) (96ad3eb)
|
||||
- Feat/translate all content (#121) (a8c6ebc)
|
||||
- Made sidebar responsive (#130) (e811a5b)
|
||||
- Updated Irish translation (#127) (7824f48)
|
||||
- feat(i18n) Added Irish/Gaeilge translation (#124) (4ea4420)
|
||||
- Squashed commit of the following: (207b2ab)
|
||||
|
||||
### Fix
|
||||
- Massive website slowdown after visiting the Unicode Search page (#132) (be9d659)
|
||||
|
||||
### Merge branch 'chore/all-my-stuffs' of https
|
||||
- //github.com/sharevb/it-tools into chore/all-my-stuffs (3ffb805)
|
||||
|
||||
### Feature
|
||||
- Improve menu bar animation smoothness (#109) (7fd60b0)
|
||||
|
||||
### New tool
|
||||
- CLI Command Editor (#108) (3b921e6)
|
||||
|
||||
### Doc
|
||||
- add info for authentication (a12c43b)
|
||||
- add info about ipv6, cyberpanel, https, PWA, dev under WSL2 (de76ee5)
|
||||
|
||||
## Version 2025.06.15-20a26514
|
||||
|
||||
### Features
|
||||
|
||||
+3
-1
@@ -1,5 +1,5 @@
|
||||
# build stage
|
||||
FROM node:lts-alpine AS build-stage
|
||||
FROM --platform=$BUILDPLATFORM node:lts-alpine AS build-stage
|
||||
# Set environment variables for non-interactive npm installs
|
||||
ENV NPM_CONFIG_LOGLEVEL warn
|
||||
ENV CI true
|
||||
@@ -13,10 +13,12 @@ RUN npm install -g pnpm && pnpm i --frozen-lockfile
|
||||
COPY . .
|
||||
ARG BASE_URL
|
||||
ENV BASE_URL=${BASE_URL}
|
||||
ENV VITE_VERCEL_ENV production
|
||||
RUN pnpm build
|
||||
|
||||
# production stage
|
||||
FROM nginxinc/nginx-unprivileged:stable-alpine AS production-stage
|
||||
ENV VITE_VERCEL_ENV production
|
||||
ARG BASE_URL
|
||||
ENV BASE_URL=${BASE_URL}
|
||||
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||
|
||||
@@ -4,6 +4,12 @@ Since *Docker base image* is now `nginx-unpriviledged`, docker image now listen
|
||||
|
||||
Docker image listen to IPv6, so it needs to be enabled: https://serverfault.com/questions/1147296/how-to-enable-ipv6-on-ubuntu-20-04. Alternatively, you can mount your own `nginx.conf` own using docker option `-v "./nginx.conf:/etc/nginx/conf.d/nginx.conf"` (with `listen [::]:8080;` removed)
|
||||
|
||||
## PR Welcome
|
||||
|
||||
Especially for UI improvements and translation. And for anything else.
|
||||
|
||||
Want to support this fork of IT Tools: [Buy me a coffee](https://www.buymeacoffee.com/sharevb)
|
||||
|
||||
## HTTPS is recommanded
|
||||
|
||||
Some tools like PGP encryption rely on WebCrypto API that is only available in HTTPS/SSL. Also, if you want to use PWA, HTTPS is required.
|
||||
@@ -75,6 +81,54 @@ Category matches on category (English) names ; Tools matches on tools path/url.
|
||||
|
||||
See (docker-tools-filter-and-home-content)[https://github.com/sharevb/it-tools]
|
||||
|
||||
## Setting default tools parameters / default UI language at runtime
|
||||
|
||||
You can set default tools parameters by mounting a `tools-setting.json` in `/usr/share/nginx/html`.
|
||||
|
||||
It is a two level json, first level for `tool name`, second level for `parameter name`:
|
||||
```json
|
||||
{
|
||||
"regex-tester": {
|
||||
"multi": true,
|
||||
"regex": "some regex",
|
||||
"global": false
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
You can find `tool name` and `parameter name` in the tools source code `src/tools` subfolder :
|
||||
- for pattern like `const global = useQueryParamOrStorage({ storageName: 'regex-tester:g', name: 'global', defaultValue: true });`:
|
||||
```json
|
||||
{
|
||||
"regex-tester": {
|
||||
"global": false
|
||||
}
|
||||
}
|
||||
```
|
||||
- for pattern like `const value = useQueryParam({ tool: 'barcode-gen', name: 'text', defaultValue: '123456789' });`:
|
||||
```json
|
||||
{
|
||||
"barcode-gen": {
|
||||
"text": "4356"
|
||||
}
|
||||
}
|
||||
```
|
||||
- for pattern like `const width = useITStorage('ascii-text-drawer:width', 80);`:
|
||||
```json
|
||||
{
|
||||
"ascii-text-drawer": {
|
||||
"width": 80
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
To define default UI language, add a `default_locale` key to json:
|
||||
```json
|
||||
{
|
||||
"default_locale": "fr"
|
||||
}
|
||||
```
|
||||
|
||||
## To build using a custom default language:
|
||||
|
||||
```
|
||||
@@ -131,54 +185,6 @@ Assuming you're already hosting it-tools behind a reverse proxy, you can configu
|
||||
|
||||
(thanks @jogerj)
|
||||
|
||||
## Installation methods
|
||||
|
||||
Local installation required installing first: `python3 make g++`
|
||||
|
||||
| Docker Image | Local Installation |
|
||||
|-----------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|
|
||||
| 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 |
|
||||
|
||||
<picture>
|
||||
<source srcset="./.github/logo-dark.png" media="(prefers-color-scheme: light)">
|
||||
<source srcset="./.github/logo-white.png" media="(prefers-color-scheme: dark)">
|
||||
<img src="./.github/logo-dark.png" alt="logo">
|
||||
</picture>
|
||||
|
||||
<details>
|
||||
|
||||
Useful tools for developer and people working in IT. [Have a look !](https://sharevb-it-tools.vercel.app).
|
||||
|
||||
## Functionalities and roadmap
|
||||
|
||||
Please check the [issues](https://github.com/sharevb/it-tools/issues) to see if some feature listed to be implemented.
|
||||
|
||||
You have an idea of a tool? Submit a [feature request](https://github.com/sharevb/it-tools/issues/new/choose)!
|
||||
|
||||
## Self host
|
||||
|
||||
Self host solutions for your homelab
|
||||
|
||||
**From docker hub:**
|
||||
|
||||
```sh
|
||||
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:8080 ghcr.io/corentinth/it-tools:latest
|
||||
```
|
||||
|
||||
**Other solutions:**
|
||||
|
||||
- [Cloudron](https://www.cloudron.io/store/tech.ittools.cloudron.html)
|
||||
- [Tipi](https://www.runtipi.io/docs/apps-available)
|
||||
- [Unraid](https://unraid.net/community/apps?q=it-tools)
|
||||
|
||||
## Contribute
|
||||
|
||||
### Recommended IDE Setup
|
||||
@@ -254,6 +260,56 @@ pnpm run script:create:tool my-tool-name
|
||||
|
||||
It will create a directory in `src/tools` with the correct files, and a the import in `src/tools/index.ts`. You will just need to add the imported tool in the proper category and develop the tool.
|
||||
|
||||
## Installation methods
|
||||
|
||||
Local installation required installing first: `python3 make g++`
|
||||
|
||||
| Docker Image | Local Installation |
|
||||
|-----------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|
|
||||
| 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 |
|
||||
|
||||
<picture>
|
||||
<source srcset="./.github/logo-dark.png" media="(prefers-color-scheme: light)">
|
||||
<source srcset="./.github/logo-white.png" media="(prefers-color-scheme: dark)">
|
||||
<img src="./.github/logo-dark.png" alt="logo">
|
||||
</picture>
|
||||
|
||||
<details>
|
||||
|
||||
Useful tools for developer and people working in IT. [Have a look !](https://sharevb-it-tools.vercel.app).
|
||||
|
||||
## Functionalities and roadmap
|
||||
|
||||
Please check the [issues](https://github.com/sharevb/it-tools/issues) to see if some feature listed to be implemented.
|
||||
|
||||
You have an idea of a tool? Submit a [feature request](https://github.com/sharevb/it-tools/issues/new/choose)!
|
||||
|
||||
## Self host
|
||||
|
||||
Self host solutions for your homelab
|
||||
|
||||
**From docker hub:**
|
||||
|
||||
```sh
|
||||
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:8080 ghcr.io/corentinth/it-tools:latest
|
||||
```
|
||||
|
||||
**Other solutions:**
|
||||
|
||||
- [Cloudron](https://www.cloudron.io/store/tech.ittools.cloudron.html)
|
||||
- [Tipi](https://www.runtipi.io/docs/apps-available)
|
||||
- [Unraid](https://unraid.net/community/apps?q=it-tools)
|
||||
- [YunoHost](https://apps.yunohost.org/app/it-tools)
|
||||
|
||||
|
||||
## Contributors
|
||||
|
||||
Big thanks to all the people who have already contributed!
|
||||
@@ -275,4 +331,4 @@ Contributor graph is generated using [contrib.rocks](https://contrib.rocks/previ
|
||||
|
||||
This project is under the [GNU GPLv3](LICENSE).
|
||||
|
||||
</details>
|
||||
</details>
|
||||
Vendored
+67
-2
@@ -17,6 +17,7 @@ declare module '@vue/runtime-core' {
|
||||
AlarmSoundToggle: typeof import('./src/tools/pomodoro-timer/app/components/AlarmSoundToggle.vue')['default']
|
||||
AngleConverter: typeof import('./src/tools/angle-converter/angle-converter.vue')['default']
|
||||
AnsibleVaultCryptDecrypt: typeof import('./src/tools/ansible-vault-crypt-decrypt/ansible-vault-crypt-decrypt.vue')['default']
|
||||
AnsiEscapeTester: typeof import('./src/tools/ansi-escape-tester/ansi-escape-tester.vue')['default']
|
||||
ApiTester: typeof import('./src/tools/api-tester/api-tester.vue')['default']
|
||||
App: typeof import('./src/App.vue')['default']
|
||||
AppColorPicker: typeof import('./src/tools/pomodoro-timer/app/components/AppColorPicker.vue')['default']
|
||||
@@ -55,14 +56,17 @@ declare module '@vue/runtime-core' {
|
||||
CertificateKeyParser: typeof import('./src/tools/certificate-key-parser/certificate-key-parser.vue')['default']
|
||||
CFileUpload: typeof import('./src/ui/c-file-upload/c-file-upload.vue')['default']
|
||||
'CFileUpload.demo': typeof import('./src/ui/c-file-upload/c-file-upload.demo.vue')['default']
|
||||
CharsetDetector: typeof import('./src/tools/charset-detector/charset-detector.vue')['default']
|
||||
ChmodCalculator: typeof import('./src/tools/chmod-calculator/chmod-calculator.vue')['default']
|
||||
Chronometer: typeof import('./src/tools/chronometer/chronometer.vue')['default']
|
||||
CidrInCidr: typeof import('./src/tools/cidr-in-cidr/cidr-in-cidr.vue')['default']
|
||||
CInputText: typeof import('./src/ui/c-input-text/c-input-text.vue')['default']
|
||||
'CInputText.demo': typeof import('./src/ui/c-input-text/c-input-text.demo.vue')['default']
|
||||
CitationGenerator: typeof import('./src/tools/citation-generator/citation-generator.vue')['default']
|
||||
CKeyValueList: typeof import('./src/ui/c-key-value-list/c-key-value-list.vue')['default']
|
||||
CKeyValueListItem: typeof import('./src/ui/c-key-value-list/c-key-value-list-item.vue')['default']
|
||||
CLabel: typeof import('./src/ui/c-label/c-label.vue')['default']
|
||||
CliCommandEditor: typeof import('./src/tools/cli-command-editor/cli-command-editor.vue')['default']
|
||||
CLink: typeof import('./src/ui/c-link/c-link.vue')['default']
|
||||
'CLink.demo': typeof import('./src/ui/c-link/c-link.demo.vue')['default']
|
||||
CMarkdown: typeof import('./src/ui/c-markdown/c-markdown.vue')['default']
|
||||
@@ -119,18 +123,29 @@ declare module '@vue/runtime-core' {
|
||||
DiceRoller: typeof import('./src/tools/dice-roller/dice-roller.vue')['default']
|
||||
DiffViewer: typeof import('./src/tools/json-diff/diff-viewer/diff-viewer.vue')['default']
|
||||
DistinctWords: typeof import('./src/tools/distinct-words/distinct-words.vue')['default']
|
||||
DjangoSecretGenerator: typeof import('./src/tools/django-secret-generator/django-secret-generator.vue')['default']
|
||||
DkimDnsGenerator: typeof import('./src/tools/dkim-dns-generator/dkim-dns-generator.vue')['default']
|
||||
DmarcDnsGenerator: typeof import('./src/tools/dmarc-dns-generator/dmarc-dns-generator.vue')['default']
|
||||
DmarcReportAnalyzer: typeof import('./src/tools/dmarc-report-analyzer/dmarc-report-analyzer.vue')['default']
|
||||
DnsblChecker: typeof import('./src/tools/dnsbl-checker/dnsbl-checker.vue')['default']
|
||||
DnsQueries: typeof import('./src/tools/dns-queries/dns-queries.vue')['default']
|
||||
Docker: typeof import('./src/tools/docker-memo/docker.md')['default']
|
||||
DockerCompose: typeof import('./src/tools/docker-compose-memo/docker-compose.md')['default']
|
||||
DockerComposeConverter: typeof import('./src/tools/docker-compose-converter/docker-compose-converter.vue')['default']
|
||||
DockerComposeMemo: typeof import('./src/tools/docker-compose-memo/docker-compose-memo.vue')['default']
|
||||
DockerComposeToDockerRunConverter: typeof import('./src/tools/docker-compose-to-docker-run-converter/docker-compose-to-docker-run-converter.vue')['default']
|
||||
DockerComposeToKubernetes: typeof import('./src/tools/docker-compose-to-kubernetes/docker-compose-to-kubernetes.vue')['default']
|
||||
DockerComposeToQuadlets: typeof import('./src/tools/docker-compose-to-quadlets/docker-compose-to-quadlets.vue')['default']
|
||||
DockerComposeValidator: typeof import('./src/tools/docker-compose-validator/docker-compose-validator.vue')['default']
|
||||
Dockerfile: typeof import('./src/tools/dockerfile-memo/dockerfile.md')['default']
|
||||
DockerfileMemo: typeof import('./src/tools/dockerfile-memo/dockerfile-memo.vue')['default']
|
||||
DockerInspectToDockerRun: typeof import('./src/tools/docker-inspect-to-docker-run/docker-inspect-to-docker-run.vue')['default']
|
||||
DockerMemo: typeof import('./src/tools/docker-memo/docker-memo.vue')['default']
|
||||
DockerRunToDockerComposeConverter: typeof import('./src/tools/docker-run-to-docker-compose-converter/docker-run-to-docker-compose-converter.vue')['default']
|
||||
DockerRunToKubernetes: typeof import('./src/tools/docker-run-to-kubernetes/docker-run-to-kubernetes.vue')['default']
|
||||
DockerRunToQuadlets: typeof import('./src/tools/docker-run-to-quadlets/docker-run-to-quadlets.vue')['default']
|
||||
DockerSwarm: typeof import('./src/tools/docker-swarm-memo/docker-swarm.md')['default']
|
||||
DockerSwarmMemo: typeof import('./src/tools/docker-swarm-memo/docker-swarm-memo.vue')['default']
|
||||
DuplicateLineFinder: typeof import('./src/tools/duplicate-line-finder/duplicate-line-finder.vue')['default']
|
||||
DurationCalculator: typeof import('./src/tools/duration-calculator/duration-calculator.vue')['default']
|
||||
DynamicValues: typeof import('./src/tools/benchmark-builder/dynamic-values.vue')['default']
|
||||
@@ -145,9 +160,11 @@ declare module '@vue/runtime-core' {
|
||||
Encryption: typeof import('./src/tools/encryption/encryption.vue')['default']
|
||||
EnergyComputer: typeof import('./src/tools/energy-computer/energy-computer.vue')['default']
|
||||
EnergyConverter: typeof import('./src/tools/energy-converter/energy-converter.vue')['default']
|
||||
EnvVariablesConverter: typeof import('./src/tools/env-variables-converter/env-variables-converter.vue')['default']
|
||||
EtaCalculator: typeof import('./src/tools/eta-calculator/eta-calculator.vue')['default']
|
||||
ExcelToData: typeof import('./src/tools/excel-to-data/excel-to-data.vue')['default']
|
||||
ExtractTextFromHtml: typeof import('./src/tools/extract-text-from-html/extract-text-from-html.vue')['default']
|
||||
FaviconGenerator: typeof import('./src/tools/favicon-generator/favicon-generator.vue')['default']
|
||||
FavoriteButton: typeof import('./src/components/FavoriteButton.vue')['default']
|
||||
FileHasher: typeof import('./src/tools/file-hasher/file-hasher.vue')['default']
|
||||
FileType: typeof import('./src/tools/file-type/file-type.vue')['default']
|
||||
@@ -155,6 +172,8 @@ declare module '@vue/runtime-core' {
|
||||
FirewalldGenerator: typeof import('./src/tools/firewalld-generator/firewalld-generator.vue')['default']
|
||||
FloatingPointNumberConverter: typeof import('./src/tools/floating-point-number-converter/floating-point-number-converter.vue')['default']
|
||||
FolderStructureDiagram: typeof import('./src/tools/folder-structure-diagram/folder-structure-diagram.vue')['default']
|
||||
FontCompare: typeof import('./src/tools/font-compare/font-compare.vue')['default']
|
||||
FontControls: typeof import('./src/tools/font-compare/font-controls.vue')['default']
|
||||
Footer: typeof import('./src/tools/pomodoro-timer/app/components/Footer.vue')['default']
|
||||
ForceConverter: typeof import('./src/tools/force-converter/force-converter.vue')['default']
|
||||
FormatTransformer: typeof import('./src/components/FormatTransformer.vue')['default']
|
||||
@@ -165,6 +184,7 @@ declare module '@vue/runtime-core' {
|
||||
'GitMemo.content': typeof import('./src/tools/git-memo/git-memo.content.md')['default']
|
||||
'GitSem.memo': typeof import('./src/tools/git-semantic-commit-memo/git-sem.memo.md')['default']
|
||||
GitSemanticCommitMemo: typeof import('./src/tools/git-semantic-commit-memo/git-semantic-commit-memo.vue')['default']
|
||||
GptTokenEncoder: typeof import('./src/tools/gpt-token-encoder/gpt-token-encoder.vue')['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']
|
||||
@@ -180,6 +200,7 @@ declare module '@vue/runtime-core' {
|
||||
HtaccessGenerator: typeof import('./src/tools/htaccess-generator/htaccess-generator.vue')['default']
|
||||
HtmlCleaner: typeof import('./src/tools/html-cleaner/html-cleaner.vue')['default']
|
||||
HtmlEntities: typeof import('./src/tools/html-entities/html-entities.vue')['default']
|
||||
HtmlMinifier: typeof import('./src/tools/html-minifier/html-minifier.vue')['default']
|
||||
HtmlPrettifier: typeof import('./src/tools/html-prettifier/html-prettifier.vue')['default']
|
||||
HtmlToMarkdown: typeof import('./src/tools/html-to-markdown/html-to-markdown.vue')['default']
|
||||
HtmlWysiwygEditor: typeof import('./src/tools/html-wysiwyg-editor/html-wysiwyg-editor.vue')['default']
|
||||
@@ -192,10 +213,12 @@ declare module '@vue/runtime-core' {
|
||||
IcoConverter: typeof import('./src/tools/ico-converter/ico-converter.vue')['default']
|
||||
'IconMdi:brushVariant': typeof import('~icons/mdi/brush-variant')['default']
|
||||
'IconMdi:kettleSteamOutline': typeof import('~icons/mdi/kettle-steam-outline')['default']
|
||||
IconMdiCheck: typeof import('~icons/mdi/check')['default']
|
||||
IconMdiChevronDown: typeof import('~icons/mdi/chevron-down')['default']
|
||||
IconMdiChevronRight: typeof import('~icons/mdi/chevron-right')['default']
|
||||
IconMdiClose: typeof import('~icons/mdi/close')['default']
|
||||
IconMdiContentCopy: typeof import('~icons/mdi/content-copy')['default']
|
||||
IconMdiDownload: typeof import('~icons/mdi/download')['default']
|
||||
IconMdiEye: typeof import('~icons/mdi/eye')['default']
|
||||
IconMdiEyeOff: typeof import('~icons/mdi/eye-off')['default']
|
||||
IconMdiHeart: typeof import('~icons/mdi/heart')['default']
|
||||
@@ -204,6 +227,8 @@ declare module '@vue/runtime-core' {
|
||||
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']
|
||||
ImageColorInverter: typeof import('./src/tools/image-color-inverter/image-color-inverter.vue')['default']
|
||||
ImageComparer: typeof import('./src/tools/image-comparer/image-comparer.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']
|
||||
@@ -233,15 +258,19 @@ declare module '@vue/runtime-core' {
|
||||
JsonDiff: typeof import('./src/tools/json-diff/json-diff.vue')['default']
|
||||
JsonEditor: typeof import('./src/tools/json-editor/json-editor.vue')['default']
|
||||
JsonEscaper: typeof import('./src/tools/json-escaper/json-escaper.vue')['default']
|
||||
JsonFlattenNestify: typeof import('./src/tools/json-flatten-nestify/json-flatten-nestify.vue')['default']
|
||||
JsonLinter: typeof import('./src/tools/json-linter/json-linter.vue')['default']
|
||||
JsonMerger: typeof import('./src/tools/json-merger/json-merger.vue')['default']
|
||||
JsonMinify: typeof import('./src/tools/json-minify/json-minify.vue')['default']
|
||||
Jsonpath: typeof import('./src/tools/jsonpath-memo/jsonpath.md')['default']
|
||||
JsonpathMemo: typeof import('./src/tools/jsonpath-memo/jsonpath-memo.vue')['default']
|
||||
JsonQuery: typeof import('./src/tools/json-query/json-query.vue')['default']
|
||||
JsonSizeAnalyzer: typeof import('./src/tools/json-size-analyzer/json-size-analyzer.vue')['default']
|
||||
JsonSortMaster: typeof import('./src/tools/json-sort-master/json-sort-master.vue')['default']
|
||||
JsonStringConverter: typeof import('./src/tools/json-string-converter/json-string-converter.vue')['default']
|
||||
JsonToCsharp: typeof import('./src/tools/json-to-csharp/json-to-csharp.vue')['default']
|
||||
JsonToCsv: typeof import('./src/tools/json-to-csv/json-to-csv.vue')['default']
|
||||
JsonToData: typeof import('./src/tools/json-to-data/json-to-data.vue')['default']
|
||||
JsonToGo: typeof import('./src/tools/json-to-go/json-to-go.vue')['default']
|
||||
JsonToJava: typeof import('./src/tools/json-to-java/json-to-java.vue')['default']
|
||||
JsonToJavascript: typeof import('./src/tools/json-to-javascript/json-to-javascript.vue')['default']
|
||||
@@ -266,18 +295,23 @@ declare module '@vue/runtime-core' {
|
||||
'K8sMemo.content': typeof import('./src/tools/k8s-memo/k8s-memo.content.md')['default']
|
||||
KeycodeInfo: typeof import('./src/tools/keycode-info/keycode-info.vue')['default']
|
||||
LengthConverter: typeof import('./src/tools/length-converter/length-converter.vue')['default']
|
||||
LevenshteinCalculator: typeof import('./src/tools/levenshtein-calculator/levenshtein-calculator.vue')['default']
|
||||
ListComparer: typeof import('./src/tools/list-comparer/list-comparer.vue')['default']
|
||||
ListConverter: typeof import('./src/tools/list-converter/list-converter.vue')['default']
|
||||
LocaleSelector: typeof import('./src/modules/i18n/components/locale-selector.vue')['default']
|
||||
LogrotateGenerator: typeof import('./src/tools/logrotate-generator/logrotate-generator.vue')['default']
|
||||
LoremIpsumGenerator: typeof import('./src/tools/lorem-ipsum-generator/lorem-ipsum-generator.vue')['default']
|
||||
LuhnValidator: typeof import('./src/tools/luhn-validator/luhn-validator.vue')['default']
|
||||
MacAddressConverter: typeof import('./src/tools/mac-address-converter/mac-address-converter.vue')['default']
|
||||
MacAddressGenerator: typeof import('./src/tools/mac-address-generator/mac-address-generator.vue')['default']
|
||||
MacAddressLookup: typeof import('./src/tools/mac-address-lookup/mac-address-lookup.vue')['default']
|
||||
MailtoGenerator: typeof import('./src/tools/mailto-generator/mailto-generator.vue')['default']
|
||||
ManyUnitsConverter: typeof import('./src/tools/many-units-converter/many-units-converter.vue')['default']
|
||||
MarkdownCheatsheet: typeof import('./src/tools/markdown-cheatsheet/markdown-cheatsheet.vue')['default']
|
||||
MarkdownEditor: typeof import('./src/tools/markdown-editor/markdown-editor.vue')['default']
|
||||
MarkdownTablePrettifier: typeof import('./src/tools/markdown-table-prettifier/markdown-table-prettifier.vue')['default']
|
||||
MarkdownTocGenerator: typeof import('./src/tools/markdown-toc-generator/markdown-toc-generator.vue')['default']
|
||||
MarkdownToDocx: typeof import('./src/tools/markdown-to-docx/markdown-to-docx.vue')['default']
|
||||
MarkdownToHtml: typeof import('./src/tools/markdown-to-html/markdown-to-html.vue')['default']
|
||||
MassConverter: typeof import('./src/tools/mass-converter/mass-converter.vue')['default']
|
||||
MathEvaluator: typeof import('./src/tools/math-evaluator/math-evaluator.vue')['default']
|
||||
@@ -287,44 +321,55 @@ declare module '@vue/runtime-core' {
|
||||
MenuBar: typeof import('./src/tools/html-wysiwyg-editor/editor/menu-bar.vue')['default']
|
||||
MenuBarItem: typeof import('./src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue')['default']
|
||||
MenuIconItem: typeof import('./src/components/MenuIconItem.vue')['default']
|
||||
MenuItemTooltip: typeof import('./src/components/MenuItemTooltip.vue')['default']
|
||||
MenuLayout: typeof import('./src/components/MenuLayout.vue')['default']
|
||||
MermaidExporter: typeof import('./src/tools/mermaid-exporter/mermaid-exporter.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']
|
||||
MiddleEndianConverter: typeof import('./src/tools/middle-endian-converter/middle-endian-converter.vue')['default']
|
||||
MimeConverter: typeof import('./src/tools/mime-converter/mime-converter.vue')['default']
|
||||
MimeTypes: typeof import('./src/tools/mime-types/mime-types.vue')['default']
|
||||
ModeIconBar: typeof import('./src/tools/pomodoro-timer/app/components/ModeIconBar.vue')['default']
|
||||
MongoObjectidConverter: typeof import('./src/tools/mongo-objectid-converter/mongo-objectid-converter.vue')['default']
|
||||
MorseConverter: typeof import('./src/tools/morse-converter/morse-converter.vue')['default']
|
||||
MttdlCalculator: typeof import('./src/tools/mttdl-calculator/mttdl-calculator.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']
|
||||
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']
|
||||
NColorPicker: typeof import('naive-ui')['NColorPicker']
|
||||
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
|
||||
NDivider: typeof import('naive-ui')['NDivider']
|
||||
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']
|
||||
NginxMemo: typeof import('./src/tools/nginx-memo/nginx-memo.vue')['default']
|
||||
'NginxMemo.content': typeof import('./src/tools/nginx-memo/nginx-memo.content.md')['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']
|
||||
NInputNumber: typeof import('naive-ui')['NInputNumber']
|
||||
NImage: typeof import('naive-ui')['NImage']
|
||||
NInputNumberI18n: typeof import('./src/ui/n-input-number-i18n/n-input-number-i18n.vue')['default']
|
||||
'NInputNumberI18n.demo': typeof import('./src/ui/n-input-number-i18n/n-input-number-i18n.demo.vue')['default']
|
||||
NLayout: typeof import('naive-ui')['NLayout']
|
||||
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
|
||||
NMenu: typeof import('naive-ui')['NMenu']
|
||||
NScrollbar: typeof import('naive-ui')['NScrollbar']
|
||||
NTable: typeof import('naive-ui')['NTable']
|
||||
NTooltip: typeof import('naive-ui')['NTooltip']
|
||||
NumberInput: typeof import('./src/tools/pomodoro-timer/app/components/NumberInput.vue')['default']
|
||||
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']
|
||||
PackFilesForAi: typeof import('./src/tools/pack-files-for-ai/pack-files-for-ai.vue')['default']
|
||||
ParquetsReader: typeof import('./src/tools/parquets-reader/parquets-reader.vue')['default']
|
||||
PasetoEncryption: typeof import('./src/tools/paseto-encryption/paseto-encryption.vue')['default']
|
||||
PasetoSigning: typeof import('./src/tools/paseto-signing/paseto-signing.vue')['default']
|
||||
@@ -361,6 +406,7 @@ declare module '@vue/runtime-core' {
|
||||
QrContactInfoGenerator: typeof import('./src/tools/qr-contact-info-generator/qr-contact-info-generator.vue')['default']
|
||||
QuoteConverter: typeof import('./src/tools/quote-converter/quote-converter.vue')['default']
|
||||
RaidCalculator: typeof import('./src/tools/raid-calculator/raid-calculator.vue')['default']
|
||||
RandomNumbersGenerator: typeof import('./src/tools/random-numbers-generator/random-numbers-generator.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']
|
||||
'RegexMemo.content': typeof import('./src/tools/regex-memo/regex-memo.content.md')['default']
|
||||
@@ -368,6 +414,7 @@ declare module '@vue/runtime-core' {
|
||||
RemoveExif: typeof import('./src/tools/remove-exif/remove-exif.vue')['default']
|
||||
RemPxConverter: typeof import('./src/tools/rem-px-converter/rem-px-converter.vue')['default']
|
||||
ResetDropup: typeof import('./src/tools/pomodoro-timer/app/components/ResetDropup.vue')['default']
|
||||
ResistorCalculator: typeof import('./src/tools/resistor-calculator/resistor-calculator.vue')['default']
|
||||
ResultRow: typeof import('./src/tools/ipv4-range-expander/result-row.vue')['default']
|
||||
RmbNumbers: typeof import('./src/tools/rmb-numbers/rmb-numbers.vue')['default']
|
||||
RomanNumeralConverter: typeof import('./src/tools/roman-numeral-converter/roman-numeral-converter.vue')['default']
|
||||
@@ -379,6 +426,9 @@ declare module '@vue/runtime-core' {
|
||||
RsyncGenerator: typeof import('./src/tools/rsync-generator/rsync-generator.vue')['default']
|
||||
RuneConverter: typeof import('./src/tools/rune-converter/rune-converter.vue')['default']
|
||||
SafelinkDecoder: typeof import('./src/tools/safelink-decoder/safelink-decoder.vue')['default']
|
||||
Sed: typeof import('./src/tools/sed-memo/sed.md')['default']
|
||||
SedCommandGenerator: typeof import('./src/tools/sed-command-generator/sed-command-generator.vue')['default']
|
||||
SedMemo: typeof import('./src/tools/sed-memo/sed-memo.vue')['default']
|
||||
SensitiveDataMasker: typeof import('./src/tools/sensitive-data-masker/sensitive-data-masker.vue')['default']
|
||||
Settings: typeof import('./src/tools/pomodoro-timer/app/views/Settings.vue')['default']
|
||||
SharepointDecoder: typeof import('./src/tools/sharepoint-decoder/sharepoint-decoder.vue')['default']
|
||||
@@ -388,17 +438,20 @@ declare module '@vue/runtime-core' {
|
||||
SmartRawConverter: typeof import('./src/tools/smart-raw-converter/smart-raw-converter.vue')['default']
|
||||
SmartTextReplacer: typeof import('./src/tools/smart-text-replacer/smart-text-replacer.vue')['default']
|
||||
SnowflakeIdExtractor: typeof import('./src/tools/snowflake-id-extractor/snowflake-id-extractor.vue')['default']
|
||||
SocialLinkSharer: typeof import('./src/tools/social-link-sharer/social-link-sharer.vue')['default']
|
||||
SoftwareLicenceCompatibility: typeof import('./src/tools/software-licence-compatibility/software-licence-compatibility.vue')['default']
|
||||
SpanCopyable: typeof import('./src/components/SpanCopyable.vue')['default']
|
||||
SpfDnsGenerator: typeof import('./src/tools/spf-dns-generator/spf-dns-generator.vue')['default']
|
||||
SplashScreen: typeof import('./src/tools/pomodoro-timer/app/views/SplashScreen.vue')['default']
|
||||
SqlMinifier: typeof import('./src/tools/sql-minifier/sql-minifier.vue')['default']
|
||||
SqlParameters: typeof import('./src/tools/sql-parameters/sql-parameters.vue')['default']
|
||||
SqlPrettify: typeof import('./src/tools/sql-prettify/sql-prettify.vue')['default']
|
||||
SslCertConverter: typeof import('./src/tools/ssl-cert-converter/ssl-cert-converter.vue')['default']
|
||||
StacktracePrettier: typeof import('./src/tools/stacktrace-prettier/stacktrace-prettier.vue')['default']
|
||||
StringEscaper: typeof import('./src/tools/string-escaper/string-escaper.vue')['default']
|
||||
StringObfuscator: typeof import('./src/tools/string-obfuscator/string-obfuscator.vue')['default']
|
||||
SvgPlaceholderGenerator: typeof import('./src/tools/svg-placeholder-generator/svg-placeholder-generator.vue')['default']
|
||||
SwaggerUiTester: typeof import('./src/tools/swagger-ui-tester/swagger-ui-tester.vue')['default']
|
||||
TcpdumpGenerator: typeof import('./src/tools/tcpdump-generator/tcpdump-generator.vue')['default']
|
||||
TemperatureConverter: typeof import('./src/tools/temperature-converter/temperature-converter.vue')['default']
|
||||
TextareaCopyable: typeof import('./src/components/TextareaCopyable.vue')['default']
|
||||
@@ -412,17 +465,20 @@ declare module '@vue/runtime-core' {
|
||||
TimezoneConverter: typeof import('./src/tools/timezone-converter/timezone-converter.vue')['default']
|
||||
TokenDisplay: typeof import('./src/tools/otp-code-generator-and-validator/token-display.vue')['default']
|
||||
'TokenGenerator.tool': typeof import('./src/tools/token-generator/token-generator.tool.vue')['default']
|
||||
TomlLinter: typeof import('./src/tools/toml-linter/toml-linter.vue')['default']
|
||||
TomlToJson: typeof import('./src/tools/toml-to-json/toml-to-json.vue')['default']
|
||||
TomlToYaml: typeof import('./src/tools/toml-to-yaml/toml-to-yaml.vue')['default']
|
||||
'Tool.layout': typeof import('./src/layouts/tool.layout.vue')['default']
|
||||
ToolCard: typeof import('./src/components/ToolCard.vue')['default']
|
||||
TorrentToMagnet: typeof import('./src/tools/torrent-to-magnet/torrent-to-magnet.vue')['default']
|
||||
TraefikComposeMaker: typeof import('./src/tools/traefik-compose-maker/traefik-compose-maker.vue')['default']
|
||||
Translator: typeof import('./src/tools/translator/translator.vue')['default']
|
||||
TtlCalculator: typeof import('./src/tools/ttl-calculator/ttl-calculator.vue')['default']
|
||||
UlidGenerator: typeof import('./src/tools/ulid-generator/ulid-generator.vue')['default']
|
||||
UnicodeCharactersToJavaEntities: typeof import('./src/tools/unicode-characters-to-java-entities-converter/unicode-characters-to-java-entities.vue')['default']
|
||||
UnicodeFormatter: typeof import('./src/tools/unicode-formatter/unicode-formatter.vue')['default']
|
||||
UnicodeSearch: typeof import('./src/tools/unicode-search/unicode-search.vue')['default']
|
||||
UnicodeToGsm7: typeof import('./src/tools/unicode-to-gsm7/unicode-to-gsm7.vue')['default']
|
||||
UnitsConverter: typeof import('./src/components/UnitsConverter.vue')['default']
|
||||
UrlCleaner: typeof import('./src/tools/url-cleaner/url-cleaner.vue')['default']
|
||||
UrlEncoder: typeof import('./src/tools/url-encoder/url-encoder.vue')['default']
|
||||
@@ -441,18 +497,27 @@ declare module '@vue/runtime-core' {
|
||||
Watermarker: typeof import('./src/tools/watermarker/watermarker.vue')['default']
|
||||
WebsocketTester: typeof import('./src/tools/websocket-tester/websocket-tester.vue')['default']
|
||||
WeekNumberConverter: typeof import('./src/tools/week-number-converter/week-number-converter.vue')['default']
|
||||
WhichDay: typeof import('./src/tools/which-day/which-day.vue')['default']
|
||||
WifiQrCodeGenerator: typeof import('./src/tools/wifi-qr-code-generator/wifi-qr-code-generator.vue')['default']
|
||||
WireguardConfigGenerator: typeof import('./src/tools/wireguard-config-generator/wireguard-config-generator.vue')['default']
|
||||
WpaPskGenerator: typeof import('./src/tools/wpa-psk-generator/wpa-psk-generator.vue')['default']
|
||||
X509CertificateGenerator: typeof import('./src/tools/x509-certificate-generator/x509-certificate-generator.vue')['default']
|
||||
XmlFormatter: typeof import('./src/tools/xml-formatter/xml-formatter.vue')['default']
|
||||
XmlLinter: typeof import('./src/tools/xml-linter/xml-linter.vue')['default']
|
||||
XmlToJson: typeof import('./src/tools/xml-to-json/xml-to-json.vue')['default']
|
||||
Xpath: typeof import('./src/tools/xpath-memo/xpath.md')['default']
|
||||
XpathMemo: typeof import('./src/tools/xpath-memo/xpath-memo.vue')['default']
|
||||
XpathTester: typeof import('./src/tools/xpath-tester/xpath-tester.vue')['default']
|
||||
XsltTester: typeof import('./src/tools/xslt-tester/xslt-tester.vue')['default']
|
||||
XVrSpamcauseDecoder: typeof import('./src/tools/x-vr-spamcause-decoder/x-vr-spamcause-decoder.vue')['default']
|
||||
YamlFlattenNestify: typeof import('./src/tools/yaml-flatten-nestify/yaml-flatten-nestify.vue')['default']
|
||||
YamlMerger: typeof import('./src/tools/yaml-merger/yaml-merger.vue')['default']
|
||||
YamlToJson: typeof import('./src/tools/yaml-to-json-converter/yaml-to-json.vue')['default']
|
||||
YamlToToml: typeof import('./src/tools/yaml-to-toml/yaml-to-toml.vue')['default']
|
||||
YamlViewer: typeof import('./src/tools/yaml-viewer/yaml-viewer.vue')['default']
|
||||
'Zpool.content': typeof import('./src/tools/zpool-memo/zpool.content.md')['default']
|
||||
ZpoolCalculator: typeof import('./src/tools/zpool-calculator/zpool-calculator.vue')['default']
|
||||
ZpoolMemo: typeof import('./src/tools/zpool-memo/zpool-memo.vue')['default']
|
||||
ZxcvbnPasswordStrength: typeof import('./src/tools/zxcvbn-password-strength/zxcvbn-password-strength.vue')['default']
|
||||
}
|
||||
}
|
||||
-19
@@ -5,15 +5,6 @@
|
||||
<link rel="icon" href="favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>IT Tools - Handy online tools for developers</title>
|
||||
<meta itemprop="name" content="IT Tools - Handy online tools for developers" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT."
|
||||
/>
|
||||
<meta
|
||||
itemprop="description"
|
||||
content="Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT."
|
||||
/>
|
||||
<link rel="author" href="humans.txt" />
|
||||
<link rel="canonical" href="https://sharevb-it-tools.vercel.app" />
|
||||
|
||||
@@ -26,22 +17,12 @@
|
||||
|
||||
<meta property="og:url" content="https://sharevb-it-tools.vercel.app/" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="IT Tools - Handy online tools for developers" />
|
||||
<meta
|
||||
property="og:description"
|
||||
content="Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT."
|
||||
/>
|
||||
<meta property="og:image" content="https://sharevb-it-tools.vercel.app/banner.png?v=2" />
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:site" content="@ittoolsdottech" />
|
||||
<meta name="twitter:creator" content="@cthmsst" />
|
||||
|
||||
<meta name="twitter:title" content="IT Tools - Handy online tools for developers" />
|
||||
<meta
|
||||
name="twitter:description"
|
||||
content="Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT."
|
||||
/>
|
||||
<meta name="twitter:image" content="https://sharevb-it-tools.vercel.app/banner.png?v=2" />
|
||||
<meta name="twitter:image:alt" content="IT Tools - Handy online tools for developers" />
|
||||
</head>
|
||||
|
||||
+6657
-188
File diff suppressed because it is too large.
Load diff
+7068
File diff suppressed because it is too large.
Load diff
+6986
-191
File diff suppressed because it is too large.
Load diff
+6332
-517
File diff suppressed because it is too large.
Load diff
+7193
-50
File diff suppressed because it is too large.
Load diff
+7356
-45
File diff suppressed because it is too large.
Load diff
+7169
File diff suppressed because it is too large.
Load diff
+7211
File diff suppressed because it is too large.
Load diff
+6728
File diff suppressed because it is too large.
Load diff
+7140
File diff suppressed because it is too large.
Load diff
+6846
-177
File diff suppressed because it is too large.
Load diff
+7066
-42
File diff suppressed because it is too large.
Load diff
+7114
-57
File diff suppressed because it is too large.
Load diff
+6342
-406
File diff suppressed because it is too large.
Load diff
+7127
File diff suppressed because it is too large.
Load diff
+6299
-396
File diff suppressed because it is too large.
Load diff
+6820
-158
File diff suppressed because it is too large.
Load diff
+6643
-309
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -11,7 +11,7 @@ server {
|
||||
add_header X-Permitted-Cross-Domain-Policies none;
|
||||
add_header Cross-Origin-Resource-Policy same-site;
|
||||
add_header Cross-Origin-Opener-Policy same-origin;
|
||||
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self'; font-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self';";
|
||||
#add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' http: https: blob:; style-src 'self' 'unsafe-inline' https: http:; img-src 'self' data: blob: https: http:; connect-src data: blob: https: http:; font-src 'self' https: http:; object-src 'none'; base-uri 'self'; form-action 'self';";
|
||||
location / {
|
||||
rewrite ^/it-tools/(.*) /$1 break;
|
||||
try_files $uri $uri/ /index.html;
|
||||
|
||||
+133
-81
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "it-tools",
|
||||
"type": "module",
|
||||
"version": "2025.6.15-20a26514",
|
||||
"version": "2025.10.19",
|
||||
"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)",
|
||||
@@ -26,39 +26,46 @@
|
||||
"build": "vue-tsc --noEmit && . ./set_node_mem.sh && vite build",
|
||||
"preview": "vite preview --port 5050",
|
||||
"test": "TZ=UTC npm run test:unit",
|
||||
"test:unit": "TZ=UTC vitest --environment jsdom",
|
||||
"test:e2e": "TZ=UTC playwright test",
|
||||
"test:unit": "TZ=UTC . ./set_node_mem.sh && vitest --environment jsdom",
|
||||
"test:e2e": "TZ=UTC . ./set_node_mem.sh && playwright test",
|
||||
"test:e2e:dev": "TZ=UTC BASE_URL=http://localhost:5173 NO_WEB_SERVER=true playwright test",
|
||||
"coverage": "vitest run --coverage",
|
||||
"typecheck": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
|
||||
"lint": "eslint src --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore",
|
||||
"script:create:tool": "node scripts/create-tool.mjs",
|
||||
"script:create:ui": "hygen generator ui-component",
|
||||
"release": "node ./scripts/release.mjs"
|
||||
"release": "node ./scripts/release.mjs",
|
||||
"script:extract:desc": "node ./scripts/extract-tools-desc.mjs",
|
||||
"script:extract:strings": "node ./scripts/extract-tools-strings.mjs",
|
||||
"script:translate-missing": "node ./scripts/translate-missings.mjs -e ./locales/en.yml -t ./locales/*.yml",
|
||||
"vue-i18n-extract": "vue-i18n-extract report --vueFiles 'src/**/*.?(ts|vue)' --languageFiles 'locales/*.yml'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@chenfengyuan/vue-barcode": "^2.0.2",
|
||||
"@date-fns/utc": "^1.2.0",
|
||||
"@date-fns/utc": "^2.0.0",
|
||||
"@dice-roller/rpg-dice-roller": "^5.5.1",
|
||||
"@faker-js/faker": "^9.7.0",
|
||||
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
||||
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
||||
"@fortawesome/vue-fontawesome": "^3.0.8",
|
||||
"@github/paste-markdown": "^1.5.3",
|
||||
"@guolao/vue-monaco-editor": "^1.5.4",
|
||||
"@guolao/vue-monaco-editor": "^1.5.5",
|
||||
"@guyplusplus/turndown-plugin-gfm": "^1.0.7",
|
||||
"@huggingface/transformers": "3.0.0-alpha.14",
|
||||
"@huggingface/transformers": "3.7.2",
|
||||
"@iplookup/country-extra": "^1.0.20250317",
|
||||
"@it-tools/bip39": "^0.0.4",
|
||||
"@it-tools/oggen": "^1.3.0",
|
||||
"@jsonquerylang/jsonquery": "^5.0.4",
|
||||
"@kenjiuno/decompressrtf": "^0.1.4",
|
||||
"@kenjiuno/msgreader": "^1.22.0",
|
||||
"@langfreak/convert-layout": "^0.11.2",
|
||||
"@mdit/plugin-align": "^0.16.0",
|
||||
"@noble/ciphers": "^1.2.1",
|
||||
"@regexper/render": "^1.0.0",
|
||||
"@sindresorhus/slugify": "^2.2.1",
|
||||
"@skeepit/unicode-to-gsm7": "^1.0.0",
|
||||
"@tabler/icons-vue": "^3.20.0",
|
||||
"@tiptap/core": "2.9.1",
|
||||
"@tiptap/core": "2.26.1",
|
||||
"@tiptap/extension-color": "^2.11.5",
|
||||
"@tiptap/extension-gapcursor": "^2.11.5",
|
||||
"@tiptap/extension-highlight": "^2.11.5",
|
||||
@@ -67,22 +74,30 @@
|
||||
"@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",
|
||||
"@tiptap/pm": "2.26.1",
|
||||
"@tiptap/starter-kit": "2.26.1",
|
||||
"@tiptap/vue-3": "2.26.1",
|
||||
"@types/haversine": "^1.1.8",
|
||||
"@types/moment": "^2.13.0",
|
||||
"@unicode/unicode-15.1.0": "^1.6.5",
|
||||
"@types/html-to-text": "^9.0.4",
|
||||
"@types/swagger-ui-dist": "^3.30.6",
|
||||
"@unicode/unicode-15.1.0": "^1.6.6",
|
||||
"@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",
|
||||
"@xterm/xterm": "^5.5.0",
|
||||
"@younestouati/playing-cards-standard-deck": "^6.0.1",
|
||||
"@zxcvbn-ts/core": "^3.0.4",
|
||||
"@zxcvbn-ts/language-common": "^3.0.4",
|
||||
"@zxcvbn-ts/language-en": "^3.0.2",
|
||||
"@zxing/library": "^0.21.3",
|
||||
"a11y-color-contrast": "^0.2.0",
|
||||
"aircodes": "^1.3.16",
|
||||
"ajv": "^8.17.1",
|
||||
"ajv-errors": "^3.0.0",
|
||||
"ansi-styles": "^6.2.1",
|
||||
"ansible-vault": "^1.3.0",
|
||||
"apache-md5": "^1.1.8",
|
||||
"arr-diff": "^4.0.0",
|
||||
@@ -92,36 +107,47 @@
|
||||
"bwip-js": "^4.5.1",
|
||||
"byte-data": "^19.0.1",
|
||||
"change-case": "^5.4.4",
|
||||
"chardet": "^2.1.0",
|
||||
"chatgpt-prompt-splitter": "^1.0.5",
|
||||
"chinesegen": "^0.3.3",
|
||||
"cidr-tools": "^11.0.2",
|
||||
"cidr-tools": "^11.0.3",
|
||||
"citation-formatter": "^1.0.1",
|
||||
"colord": "^2.9.3",
|
||||
"composerize": "^1.7.2",
|
||||
"composeverter": "^1.7.4",
|
||||
"composerize": "^1.7.5",
|
||||
"composeverter": "^1.7.5",
|
||||
"convert": "^5.7.0",
|
||||
"countries-and-timezones": "^3.7.2",
|
||||
"countries-db": "^1.2.0",
|
||||
"country-code-lookup": "^0.1.3",
|
||||
"crc": "^4.3.2",
|
||||
"creditcard": "^0.1.3",
|
||||
"creditcard-generator": "^0.0.7",
|
||||
"cron-parser": "^4.9.0",
|
||||
"cron-validator": "^1.3.1",
|
||||
"cronstrue": "^2.54.0",
|
||||
"cronstrue": "^3.0.0",
|
||||
"cross-spawn": "^7.0.6",
|
||||
"crypto-js": "^4.2.0",
|
||||
"csstoxpath": "^2.0.0",
|
||||
"curlconverter": "^4.12.0",
|
||||
"currency-codes-ts": "^3.0.0",
|
||||
"currency-exchanger-js": "^1.0.4",
|
||||
"damerau-levenshtein": "^1.0.8",
|
||||
"data-guardian": "^1.1.3",
|
||||
"date-fns": "^2.30.0",
|
||||
"date-fns": "^4.0.0",
|
||||
"date-holidays": "^3.23.21",
|
||||
"decomposerize": "^1.4.4",
|
||||
"detect-csv": "^1.1.0",
|
||||
"diceware-generator": "^3.0.1",
|
||||
"diceware-wordlist-en": "^1.0.0",
|
||||
"diceware-wordlist-en-eff": "^1.0.1",
|
||||
"diceware-wordlist-jp": "^1.0.1",
|
||||
"diceware-wordlist-sp": "^1.0.0",
|
||||
"diceware-wordlist-swe": "^1.0.1",
|
||||
"dmarc-report-parser": "^0.1.5",
|
||||
"dns-query": "^0.11.2",
|
||||
"docker2kube": "^0.0.14",
|
||||
"dom-to-image-more": "^3.5.0",
|
||||
"dompurify": "^3.2.4",
|
||||
"dompurify": "^3.2.6",
|
||||
"duration-fns": "^3.0.2",
|
||||
"email-bounce-parser-browser": "^1.1.0",
|
||||
"email-normalizer": "^1.0.0",
|
||||
@@ -130,97 +156,108 @@
|
||||
"exif-be-gone": "^1.5.1",
|
||||
"exifreader": "^4.26.1",
|
||||
"fanger": "^0.3.1",
|
||||
"fast-xml-parser": "^5.2.5",
|
||||
"fast_array_intersect": "^1.1.0",
|
||||
"fflate": "^0.8.2",
|
||||
"figlet": "^1.8.0",
|
||||
"figlet": "^1.8.2",
|
||||
"figue": "^1.2.0",
|
||||
"file-type": "^20.1.0",
|
||||
"flatten-anything": "^4.0.1",
|
||||
"flexsearch": "^0.8.167",
|
||||
"file-type": "^21.0.0",
|
||||
"flatten-anything": "^4.0.2",
|
||||
"flexsearch": "^0.8.205",
|
||||
"fuse.js": "^7.1.0",
|
||||
"generate-schema": "^2.6.0",
|
||||
"get-timezone-offset": "^1.0.5",
|
||||
"gpt-tokens": "^1.3.14",
|
||||
"gtin-validator": "^1.0.0",
|
||||
"hash-wasm": "^4.12.0",
|
||||
"haversine": "^1.1.1",
|
||||
"heic-convert": "^2.1.0",
|
||||
"hex-array": "^1.0.0",
|
||||
"highlight.js": "^11.11.1",
|
||||
"html-to-text": "^9.0.5",
|
||||
"htmlfy": "^1.0.0",
|
||||
"hyparquet": "^1.9.0",
|
||||
"hyparquet-compressors": "^1.0.0",
|
||||
"iarna-toml-esm": "^3.0.5",
|
||||
"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",
|
||||
"ical.js": "^2.2.0",
|
||||
"iconv-lite": "^0.7.0",
|
||||
"image-compare-viewer": "^1.6.2",
|
||||
"image-in-browser": "^3.2.3",
|
||||
"image-to-ascii-art": "^0.0.4",
|
||||
"ip-address": "^9.0.5",
|
||||
"ip-bigint": "^8.2.0",
|
||||
"ip-address": "^10.0.0",
|
||||
"ip-bigint": "^8.2.1",
|
||||
"ip-cidr": "^4.0.2",
|
||||
"ip-matching": "^2.1.2",
|
||||
"ip-regex": "^5.0.0",
|
||||
"is-cidr": "^5.1.0",
|
||||
"is-cidr": "^6.0.1",
|
||||
"is-ip": "^5.0.1",
|
||||
"isbn3": "^1.2.7",
|
||||
"isbn3": "^1.2.12",
|
||||
"iso-639-1": "^3.1.5",
|
||||
"javastack.js": "^1.0.3",
|
||||
"jks-js": "^1.1.4",
|
||||
"jose": "^5.9.6",
|
||||
"jose": "^5.10.0",
|
||||
"jpeg-quality-estimator": "^1.0.1",
|
||||
"jq-wasm": "^1.0.0",
|
||||
"jq-wasm": "^1.0.1",
|
||||
"js-base64": "^3.7.7",
|
||||
"js-beautify": "^1.15.2",
|
||||
"jsbarcode": "^3.11.6",
|
||||
"js-beautify": "^1.15.4",
|
||||
"js-tiktoken": "^1.0.21",
|
||||
"jsbarcode": "^3.12.1",
|
||||
"json-analyzer": "^1.2.2",
|
||||
"json-editor-vue": "^0.16.0",
|
||||
"json-to-ts": "^1.7.0",
|
||||
"json-editor-vue": "^0.18.1",
|
||||
"json-to-ts": "^2.1.0",
|
||||
"json5": "^2.2.3",
|
||||
"jsonar-mod": "^1.9.0",
|
||||
"jsonlint-mod": "^1.7.6",
|
||||
"jsonpath": "^1.1.1",
|
||||
"jsonrepair": "^3.12.0",
|
||||
"jsonrepair": "^3.13.0",
|
||||
"jsonschema": "^1.5.0",
|
||||
"jsonschema-protobuf": "^1.0.2",
|
||||
"jsstack.js": "^2.0.0",
|
||||
"jsvat-next": "^3.0.4",
|
||||
"jszip": "^3.10.1",
|
||||
"jwt-decode": "^4.0.0",
|
||||
"korean-unpacker": "^1.0.3",
|
||||
"libmime": "^5.3.6",
|
||||
"libphonenumber-js": "^1.11.19",
|
||||
"libmime": "^5.3.7",
|
||||
"libphonenumber-js": "^1.12.10",
|
||||
"lodash": "^4.17.21",
|
||||
"lodash.defaultsdeep": "^4.6.1",
|
||||
"lodash.flattendeep": "^4.4.0",
|
||||
"lodash.last": "^3.0.0",
|
||||
"lodash.mergewith": "^4.6.2",
|
||||
"long": "^5.3.1",
|
||||
"lorem-ipsum-japanese": "^1.0.1",
|
||||
"luhn-js": "^1.1.2",
|
||||
"luxon": "^3.5.0",
|
||||
"markdown-docx": "^1.2.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",
|
||||
"markdown-table-prettify": "^3.6.0",
|
||||
"marked": "^10.0.0",
|
||||
"mathjs": "^14.2.1",
|
||||
"mathjs": "^15.0.0",
|
||||
"md-editor-v3": "^4.21.3",
|
||||
"memorystream": "^0.3.1",
|
||||
"mermaid": "^11.6.0",
|
||||
"mime-types": "^2.1.35",
|
||||
"merge-anything": "^6.0.6",
|
||||
"mermaid": "^11.9.0",
|
||||
"mime-types": "^3.0.1",
|
||||
"mitex-wasm": "^0.2.5",
|
||||
"moment": "^2.30.1",
|
||||
"monaco-editor": "^0.43.0",
|
||||
"monaco-editor": "^0.54.0",
|
||||
"morsee": "^1.0.10",
|
||||
"naive-ui": "^2.35.0",
|
||||
"nanoid": "^5.0.9",
|
||||
"nanoid-dictionary": "^4.3.0",
|
||||
"nestify-anything": "^3.0.3",
|
||||
"nanoid": "^5.1.6",
|
||||
"nanoid-dictionary": "^5.0.0",
|
||||
"nestify-anything": "^4.0.1",
|
||||
"netmask": "^2.0.2",
|
||||
"netstack.js": "^2.1.1",
|
||||
"netstack.js": "^2.1.2",
|
||||
"nginx-config-formatter": "^1.4.5",
|
||||
"niceware": "^4.0.0",
|
||||
"node-forge": "^1.3.1",
|
||||
"openpgp": "^6.1.1",
|
||||
"oui-data": "^1.1.281",
|
||||
"openai-chat-tokens": "^0.2.8",
|
||||
"openpgp": "^6.2.0",
|
||||
"oui-data": "^1.1.391",
|
||||
"parse-duration": "^2.1.2",
|
||||
"parse-torrent": "^11.0.18",
|
||||
"paseto-ts": "^2.0.5",
|
||||
@@ -229,8 +266,9 @@
|
||||
"pdfjs-dist": "^4.8.69",
|
||||
"pinia": "^2.0.34",
|
||||
"plausible-tracker": "^0.3.9",
|
||||
"port-numbers": "^8.0.22",
|
||||
"postal-mime": "^2.4.3",
|
||||
"podletjs": "^1.0.2",
|
||||
"port-numbers": "^8.0.28",
|
||||
"postal-mime": "^2.4.4",
|
||||
"potrace": "^2.1.8",
|
||||
"pp-qr-code": "^0.6.4",
|
||||
"pretty-ms": "^9.2.0",
|
||||
@@ -241,25 +279,31 @@
|
||||
"qrcode": "^1.5.4",
|
||||
"qrcode-parser": "^2.1.3",
|
||||
"qrcode-terminal-nooctal": "^0.12.1",
|
||||
"qrcode-vue3": "^1.7.1",
|
||||
"quicktype-core": "^23.1.3",
|
||||
"randexp": "^0.5.3",
|
||||
"regex": "^4.4.0",
|
||||
"regex": "^6.0.1",
|
||||
"rekcod": "^3.0.0",
|
||||
"resistor-data": "^1.1.1",
|
||||
"riimut": "^0.9.1",
|
||||
"roboto-base64": "^0.1.2",
|
||||
"rtf-stream-parser": "^3.8.0",
|
||||
"safe-license-list": "^0.1.2",
|
||||
"sandybox": "^1.1.2",
|
||||
"sanitize-html": "^2.14.0",
|
||||
"shiki": "1.22.2",
|
||||
"silly-password-generator": "^1.0.28",
|
||||
"shiki": "1.29.2",
|
||||
"silly-password-generator": "^1.0.29",
|
||||
"slashes": "^3.0.12",
|
||||
"spdx-satisfies": "^5.0.1",
|
||||
"sql-formatter": "^15.5.1",
|
||||
"smol-toml": "^1.4.2",
|
||||
"sms-segments-calculator": "^1.2.0",
|
||||
"spdx-satisfies": "^6.0.0",
|
||||
"sql-formatter": "^15.6.6",
|
||||
"sshpk": "^1.18.0",
|
||||
"staveless-futhark": "^0.6.1",
|
||||
"stringify-object": "^5.0.0",
|
||||
"stringify-object": "^6.0.0",
|
||||
"svg2png-wasm": "^1.4.1",
|
||||
"svgo": "^3.3.2",
|
||||
"swagger-ui-dist": "^5.27.0",
|
||||
"tesseract.js": "^5.1.1",
|
||||
"text-encoding-utf-8": "^1.0.2",
|
||||
"tick-time": "^1.0.1",
|
||||
@@ -267,19 +311,19 @@
|
||||
"to-double-quotes": "^4.0.0",
|
||||
"to-single-quotes": "^4.0.0",
|
||||
"turndown": "^7.2.0",
|
||||
"ua-parser-js": "^2.0.1",
|
||||
"ulid": "^2.3.0",
|
||||
"ua-parser-js": "^2.0.4",
|
||||
"ulid": "^3.0.1",
|
||||
"unicode-emoji-json": "^0.8.0",
|
||||
"unique-random": "^4.0.0",
|
||||
"unixcrypt-browser": "^2.0.4",
|
||||
"unpdf": "^1.0.5",
|
||||
"unpdf": "^1.1.0",
|
||||
"unplugin-auto-import": "^0.16.4",
|
||||
"utf8": "^3.0.0",
|
||||
"uuid": "^11.0.5",
|
||||
"vanilla-jsoneditor": "^0.23.8",
|
||||
"uuid": "^13.0.0",
|
||||
"vanilla-jsoneditor": "^3.10.0",
|
||||
"vue": "^3.3.4",
|
||||
"vue-color-wheel": "^0.1.1",
|
||||
"vue-i18n": "^9.14.3",
|
||||
"vue-i18n": "^11.1.9",
|
||||
"vue-loading-overlay": "^6.0",
|
||||
"vue-markdown-render": "^2.2.1",
|
||||
"vue-mathjax-next": "^0.0.6",
|
||||
@@ -294,26 +338,26 @@
|
||||
"webcrypto-liner-shim": "^1.4.8",
|
||||
"webp-converter-browser": "^1.0.4",
|
||||
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz",
|
||||
"xml-formatter": "^3.6.4",
|
||||
"xml-formatter": "^3.6.6",
|
||||
"xml-js": "^1.6.11",
|
||||
"xpath": "^0.0.34",
|
||||
"xpath-to-css": "^1.2.0",
|
||||
"xslt-processor": "^3.3.1",
|
||||
"yaml": "^2.7.0"
|
||||
"yaml": "^2.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "^0.41.0",
|
||||
"@iconify-json/mdi": "^1.1.50",
|
||||
"@intlify/unplugin-vue-i18n": "^0.13.0",
|
||||
"@playwright/test": "^1.50.1",
|
||||
"@intlify/unplugin-vue-i18n": "^6.0.8",
|
||||
"@playwright/test": "^1.54.1",
|
||||
"@rushstack/eslint-patch": "^1.2.0",
|
||||
"@tsconfig/node18": "^18.2.0",
|
||||
"@types/arr-diff": "^4.0.3",
|
||||
"@types/bcryptjs": "^2.4.6",
|
||||
"@types/big.js": "^6.2.2",
|
||||
"@types/crypto-js": "^4.2.2",
|
||||
"@types/dompurify": "^3.2.0",
|
||||
"@types/emscripten": "^1.40.0",
|
||||
"@types/damerau-levenshtein": "^1.0.2",
|
||||
"@types/emscripten": "^1.40.1",
|
||||
"@types/figlet": "^1.7.0",
|
||||
"@types/har-format": "^1.2.16",
|
||||
"@types/hex-array": "^1.0.2",
|
||||
@@ -321,39 +365,43 @@
|
||||
"@types/jsdom": "^21.1.7",
|
||||
"@types/jsonpath": "^0.2.4",
|
||||
"@types/libmime": "^5.0.3",
|
||||
"@types/lodash": "^4.14.192",
|
||||
"@types/lodash": "^4.17.20",
|
||||
"@types/lodash.defaultsdeep": "^4.6.9",
|
||||
"@types/lodash.flattendeep": "^4.4.9",
|
||||
"@types/lodash.last": "^3.0.9",
|
||||
"@types/lodash.mergewith": "^4.6.9",
|
||||
"@types/luxon": "^3.4.2",
|
||||
"@types/markdown-it": "^13.0.9",
|
||||
"@types/memorystream": "^0.3.4",
|
||||
"@types/mime-types": "^2.1.4",
|
||||
"@types/mime-types": "^3.0.1",
|
||||
"@types/morsee": "^1.0.2",
|
||||
"@types/nanoid-dictionary": "^4.2.3",
|
||||
"@types/netmask": "^2.0.5",
|
||||
"@types/node": "^18.19.75",
|
||||
"@types/node-forge": "^1.3.11",
|
||||
"@types/node": "^22.18.11",
|
||||
"@types/node-forge": "^1.3.14",
|
||||
"@types/potrace": "^2.1.5",
|
||||
"@types/punycode": "^2.1.4",
|
||||
"@types/qrcode": "^1.5.5",
|
||||
"@types/sanitize-html": "^2.13.0",
|
||||
"@types/spdx-satisfies": "^0.1.2",
|
||||
"@types/spdx-satisfies": "^6.0.0",
|
||||
"@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.39",
|
||||
"@types/utf8": "^3.0.3",
|
||||
"@types/uuid": "^9.0.8",
|
||||
"@types/uuid": "^10.0.0",
|
||||
"@unocss/eslint-config": "^0.57.1",
|
||||
"@vitejs/plugin-vue": "^4.3.2",
|
||||
"@vitejs/plugin-vue": "^4.3.4",
|
||||
"@vitejs/plugin-vue-jsx": "^3.0.2",
|
||||
"@vue/compiler-sfc": "^3.2.47",
|
||||
"@vue/runtime-dom": "^3.3.4",
|
||||
"@vue/test-utils": "^2.3.2",
|
||||
"@vue/tsconfig": "^0.4.0",
|
||||
"axios": "^1.12.2",
|
||||
"commander": "^14.0.1",
|
||||
"consola": "^3.0.2",
|
||||
"dotenv": "^17.2.3",
|
||||
"eslint": "^8.47.0",
|
||||
"hygen": "^6.2.11",
|
||||
"jsdom": "^22.0.0",
|
||||
@@ -365,20 +413,24 @@
|
||||
"unocss-preset-scrollbar": "^0.2.1",
|
||||
"unplugin-icons": "^0.17.0",
|
||||
"unplugin-vue-components": "^0.25.0",
|
||||
"unplugin-vue-markdown": "^29.1.0",
|
||||
"vite": "^4.4.9",
|
||||
"vite-plugin-node-polyfills": "^0.23.0",
|
||||
"vite-plugin-pwa": "^1.0.0",
|
||||
"vite-plugin-pwa": "^1.1.0",
|
||||
"vite-plugin-splash-screen": "^0.2.0",
|
||||
"vite-plugin-vue-markdown": "^0.23.5",
|
||||
"vite-plugin-wasm": "^3.4.1",
|
||||
"vite-svg-loader": "^4.0.0",
|
||||
"vitest": "^0.34.6",
|
||||
"vue-i18n-extract": "^2.0.7",
|
||||
"workbox-window": "^7.3.0",
|
||||
"zx": "^7.2.3"
|
||||
"zx": "^7.2.4"
|
||||
},
|
||||
"pnpm": {
|
||||
"overrides": {
|
||||
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"
|
||||
}
|
||||
},
|
||||
"scarfSettings": {
|
||||
"enabled": false
|
||||
}
|
||||
}
|
||||
Generated
+15116
-11056
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -1,4 +1,4 @@
|
||||
/* TEAM */
|
||||
Developer: Corentin Thomasset
|
||||
Site: https://github.com/sharevb
|
||||
Twitter: @cthmsst
|
||||
Twitter: @sharevb
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
File diff suppressed because it is too large.
Load diff
Vendored
+4233
File diff suppressed because it is too large.
Load diff
+1
-3
@@ -1,6 +1,4 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"config:base"
|
||||
]
|
||||
"extends": ["config:recommended"]
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import yaml from 'yaml';
|
||||
|
||||
const toolsDir = 'src/tools';
|
||||
const localesFile = 'locales/en.yml';
|
||||
|
||||
// Load existing locales file or initialize an empty object
|
||||
let localesData = {};
|
||||
if (fs.existsSync(localesFile)) {
|
||||
localesData = yaml.parse(fs.readFileSync(localesFile, 'utf-8')) || {};
|
||||
}
|
||||
|
||||
function processFile(filePath) {
|
||||
const parentDir = path.basename(path.dirname(filePath)); // Get parent directory name
|
||||
const originalContent = fs.readFileSync(filePath, 'utf-8');
|
||||
|
||||
// Extract existing name and description values
|
||||
const nameMatch = originalContent.match(/name: '(.*?)'/);
|
||||
const descriptionMatch = originalContent.match(/description: '(.*?)'/);
|
||||
|
||||
if (!nameMatch || !descriptionMatch) {
|
||||
console.warn(`Skipping ${filePath}: Unable to extract name or description.`);
|
||||
return;
|
||||
}
|
||||
|
||||
const nameValue = nameMatch[1];
|
||||
const descriptionValue = descriptionMatch[1];
|
||||
|
||||
// Modify name and description to use the translate function
|
||||
const transformedContent = originalContent
|
||||
.replace(/name: '((?:[^']+|(?<=\\)')+)'/, `name: t('tools.${parentDir}.title')`)
|
||||
.replace(/description: '((?:[^']+|(?<=\\)')+)'/, `description: t('tools.${parentDir}.description')`);
|
||||
|
||||
fs.writeFileSync(filePath, `import { translate as t } from '@/plugins/i18n.plugin';\n${transformedContent}`, 'utf-8');
|
||||
console.log(`Transformed: ${filePath}`);
|
||||
|
||||
// Update locales file with extracted name and description
|
||||
if (!localesData.tools) {
|
||||
localesData.tools = {};
|
||||
}
|
||||
localesData.tools[parentDir] = {
|
||||
...localesData.tools[parentDir],
|
||||
title: nameValue,
|
||||
description: descriptionValue,
|
||||
};
|
||||
}
|
||||
|
||||
function iterateFolder(folderPath) {
|
||||
const items = fs.readdirSync(folderPath);
|
||||
|
||||
items.forEach((item) => {
|
||||
const itemPath = path.join(folderPath, item);
|
||||
const stat = fs.statSync(itemPath);
|
||||
|
||||
if (stat.isDirectory()) {
|
||||
iterateFolder(itemPath);
|
||||
}
|
||||
else if (item === 'index.ts') {
|
||||
processFile(itemPath);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Run transformations
|
||||
iterateFolder(toolsDir);
|
||||
|
||||
// Write back the updated locales file
|
||||
fs.writeFileSync(localesFile, yaml.stringify(localesData), 'utf-8');
|
||||
console.log('Locales file updated!');
|
||||
console.log('Transformation completed!');
|
||||
@@ -0,0 +1,149 @@
|
||||
import fs from 'node:fs';
|
||||
import path, { basename } from 'node:path';
|
||||
import process from 'node:process';
|
||||
import yaml from 'yaml';
|
||||
|
||||
const toolsDir = 'src/tools';
|
||||
const localesFile = 'locales/en.yml';
|
||||
|
||||
// Load existing locales file or initialize an empty object
|
||||
let localesData = {};
|
||||
if (fs.existsSync(localesFile)) {
|
||||
localesData = yaml.parse(fs.readFileSync(localesFile, 'utf-8')) || {};
|
||||
}
|
||||
|
||||
// Function to process Vue components in a directory
|
||||
function processVueComponents(toolDir, toolName) {
|
||||
fs.readdirSync(toolDir)
|
||||
.filter(file => file.endsWith('.vue'))
|
||||
.forEach(file => processVueComponent(path.join(toolDir, file), toolName));
|
||||
}
|
||||
|
||||
// Function to process a Vue component file
|
||||
function processVueComponent(filePath, toolName) {
|
||||
console.log(`Processing ${filePath} in ${toolName}`);
|
||||
|
||||
let content = fs.readFileSync(filePath, 'utf8');
|
||||
const origContent = content;
|
||||
|
||||
// Update locales file with extracted name and description
|
||||
if (!localesData.tools) {
|
||||
localesData.tools = {};
|
||||
}
|
||||
if (!localesData.tools[toolName]) {
|
||||
localesData.tools[toolName] = {};
|
||||
}
|
||||
|
||||
// Regex to find label or placeholder attributes
|
||||
let regex = /\b(label|text|message):\s*'((?:[^']|\\')+)'/g;
|
||||
content = content.replace(regex, (match, attr, text) => {
|
||||
if (!text?.trim()) {
|
||||
return match;
|
||||
}
|
||||
const key = (attr + '-' + text.replace(/[\p{P}\p{S}\s]+/gu, '-').replace(/^-+|-+$/g, '').replace(/-+/g, '-')).toLowerCase();
|
||||
if (!localesData.tools[toolName].texts) {
|
||||
localesData.tools[toolName].texts = {};
|
||||
}
|
||||
localesData.tools[toolName].texts[key] = text;
|
||||
return `${attr}: t('tools.${toolName}.texts.${key}')`;
|
||||
});
|
||||
|
||||
if (content.includes("/* NO EXTRACT SCRIPT */")) {
|
||||
console.log(`Marked to not extract: ${filePath}`);
|
||||
return;
|
||||
}
|
||||
|
||||
const hasAlreayI18n = filePath.endsWith('.vue')
|
||||
? content.includes("const { t } = useI18n();")
|
||||
: content.includes("import { translate as t } from '@/plugins/i18n.plugin';");
|
||||
if (hasAlreayI18n) {
|
||||
console.log(`Already extracted: ${filePath}`);
|
||||
return;
|
||||
}
|
||||
|
||||
if (filePath.endsWith('.vue')) {
|
||||
// Regex to find label or placeholder attributes
|
||||
regex = /(?<!:)((?:[a-z]+-)?(?:label|placeholder|title))="([^"]+)"/g;
|
||||
content = content.replace(regex, (match, attr, text) => {
|
||||
if (!text?.trim()) {
|
||||
return match;
|
||||
}
|
||||
const key = (attr + '-' + text.replace(/[\p{P}\p{S}\s]+/gu, '-').replace(/^-+|-+$/g, '').replace(/-+/g, '-')).toLowerCase();
|
||||
if (!localesData.tools[toolName].texts) {
|
||||
localesData.tools[toolName].texts = {};
|
||||
}
|
||||
localesData.tools[toolName].texts[key] = text;
|
||||
return `:${attr}="t('tools.${toolName}.texts.${key}')"`;
|
||||
});
|
||||
|
||||
// Regex to find text inside HTML tags
|
||||
const textInsideTagsRegex = /(?<!=)\>(?:\n\s*)?([^\<\>\n]+)(?:\n\s*)?\</g;
|
||||
content = content.replace(textInsideTagsRegex, (match, text) => {
|
||||
if (!text?.trim()) {
|
||||
return match;
|
||||
}
|
||||
if (text.match(/[\}\{\|\[\<\>\]]/)) {
|
||||
return match;
|
||||
}
|
||||
const key = ('tag-' + text.trim().replace(/[\p{P}\p{S}\s]+/gu, '-').replace(/^-+|-+$/g, '').replace(/-+/g, '-')).toLowerCase();
|
||||
if (!localesData.tools[toolName].texts) {
|
||||
localesData.tools[toolName].texts = {};
|
||||
}
|
||||
localesData.tools[toolName].texts[key] = text.trim();
|
||||
return `>{{ t('tools.${toolName}.texts.${key}') }}<`;
|
||||
});
|
||||
}
|
||||
|
||||
if (origContent === content) {
|
||||
console.log(`Nothing to extract in ${filePath}`);
|
||||
return;
|
||||
}
|
||||
|
||||
if (filePath.endsWith('.vue')) {
|
||||
// Ensure the useI18n import exists
|
||||
if (!hasAlreayI18n) {
|
||||
content = content.replace(/\<script setup( lang="ts")?\>/, "<script setup lang=\"ts\">\nimport { useI18n } from 'vue-i18n';\nconst { t } = useI18n();");
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Ensure the useI18n import exists
|
||||
if (!hasAlreayI18n) {
|
||||
content = 'import { translate as t } from "@/plugins/i18n.plugin";\n' + content;
|
||||
}
|
||||
}
|
||||
fs.writeFileSync(filePath, content, 'utf8');
|
||||
console.log(`Processed: ${filePath}`);
|
||||
}
|
||||
|
||||
const localFileOrDir = process.argv[2];
|
||||
if (localFileOrDir) {
|
||||
if (fs.statSync(localFileOrDir).isDirectory()) {
|
||||
fs.readdirSync(localFileOrDir)
|
||||
.filter((fileName) => {
|
||||
const filePath = path.join(localFileOrDir, fileName);
|
||||
return fs.statSync(filePath).isFile();
|
||||
})
|
||||
.forEach((fileName) => {
|
||||
const filePath = path.join(localFileOrDir, fileName);
|
||||
processVueComponent(filePath, process.argv[3] || basename(localFileOrDir));
|
||||
});
|
||||
} else {
|
||||
processVueComponent(localFileOrDir, process.argv[3] || basename(localFileOrDir));
|
||||
}
|
||||
} else {
|
||||
fs.readdirSync(toolsDir)
|
||||
.filter((toolName) => {
|
||||
const toolPath = path.join(toolsDir, toolName);
|
||||
return fs.statSync(toolPath).isDirectory();
|
||||
})
|
||||
.forEach((toolName) => {
|
||||
const toolPath = path.join(toolsDir, toolName);
|
||||
console.log(`Processing tool: ${toolName}`);
|
||||
processVueComponents(toolPath, toolName);
|
||||
});
|
||||
}
|
||||
|
||||
// Write back the updated locales file
|
||||
fs.writeFileSync(localesFile, yaml.stringify(localesData), 'utf-8');
|
||||
console.log('Locales file updated!');
|
||||
console.log('Transformation completed!');
|
||||
+1
-2
@@ -8,10 +8,9 @@ $.verbose = false;
|
||||
const isDryRun = argv['dry-run'] ?? false;
|
||||
|
||||
const now = new Date();
|
||||
const currentShortSha = (await $`git rev-parse --short HEAD`).stdout.trim();
|
||||
|
||||
const calver = now.toISOString().slice(0, 10).replace(/-/g, '.');
|
||||
const version = `${calver}-${currentShortSha}`;
|
||||
const version = `${calver}`;
|
||||
|
||||
const { stdout: rawCommits } = await $`git log --pretty=oneline $(git describe --tags --abbrev=0)..HEAD`;
|
||||
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
import { promises as fs } from "fs";
|
||||
import path from 'node:path';
|
||||
import yaml from 'yaml';
|
||||
import dotenv from 'dotenv';
|
||||
import axios from 'axios';
|
||||
import { Command } from 'commander';
|
||||
|
||||
dotenv.config();
|
||||
|
||||
const program = new Command();
|
||||
const GOOGLE_TRANSLATE_API_KEY = process.env.GOOGLE_TRANSLATE_API_KEY;
|
||||
const TRANSLATE_ENDPOINT = 'https://translation.googleapis.com/language/translate/v2';
|
||||
|
||||
if (!GOOGLE_TRANSLATE_API_KEY) {
|
||||
console.error('❌ Missing GOOGLE_TRANSLATE_API_KEY environment variable');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
program
|
||||
.name('translate-yaml')
|
||||
.description('Sync and translate YAML files using Google Translate')
|
||||
.requiredOption('-e, --english <file>', 'English YAML file')
|
||||
.requiredOption('-t, --targets <files...>', 'Target language YAML files')
|
||||
.option('--dry-run', 'Count characters to translate without sending API requests')
|
||||
.parse(process.argv);
|
||||
|
||||
const options = program.opts();
|
||||
|
||||
function removeUnusedKeys(targetFlat, englishFlat) {
|
||||
const cleaned = {};
|
||||
for (const key of Object.keys(targetFlat)) {
|
||||
if (englishFlat[key] !== undefined) {
|
||||
cleaned[key] = targetFlat[key];
|
||||
} else {
|
||||
console.log(`Removed unused key: ${key}`);
|
||||
}
|
||||
}
|
||||
return cleaned;
|
||||
}
|
||||
|
||||
async function translateText(text, targetLang) {
|
||||
const response = await axios.post(TRANSLATE_ENDPOINT, null, {
|
||||
params: {
|
||||
q: text,
|
||||
target: targetLang,
|
||||
key: GOOGLE_TRANSLATE_API_KEY,
|
||||
format: 'text',
|
||||
},
|
||||
});
|
||||
return response.data.data.translations[0].translatedText
|
||||
.replace(/\{'/, '{\'').replace(/'\}/, '}\'');
|
||||
}
|
||||
|
||||
function flattenYaml(obj, prefix = '') {
|
||||
const result = {};
|
||||
for (const [key, value] of Object.entries(obj)) {
|
||||
const fullKey = prefix ? `${prefix}.${key}` : key;
|
||||
if (typeof value === 'object' && value !== null) {
|
||||
Object.assign(result, flattenYaml(value, fullKey));
|
||||
} else {
|
||||
result[fullKey] = String(value);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
function unflattenYaml(flat) {
|
||||
const result = {};
|
||||
for (const [key, value] of Object.entries(flat)) {
|
||||
const keys = key.split('.');
|
||||
let current = result;
|
||||
keys.forEach((k, i) => {
|
||||
if (i === keys.length - 1) {
|
||||
current[k] = value;
|
||||
} else {
|
||||
current[k] = current[k] || {};
|
||||
current = current[k];
|
||||
}
|
||||
});
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
async function syncTranslations(englishFile, targetFiles, dryRun = false) {
|
||||
const englishYaml = yaml.parse(await fs.readFile(englishFile, 'utf8'));
|
||||
const englishFlat = flattenYaml(englishYaml);
|
||||
|
||||
let totalChars = 0;
|
||||
|
||||
for (const file of targetFiles) {
|
||||
const langCode = path.basename(file, '.yml');
|
||||
if (langCode === 'en') {
|
||||
continue;
|
||||
}
|
||||
const targetYaml = yaml.parse(await fs.readFile(file, 'utf8')) || {};
|
||||
const targetFlat = removeUnusedKeys(flattenYaml(targetYaml), englishFlat);
|
||||
|
||||
const updatedFlat = { ...targetFlat };
|
||||
let langCharCount = 0;
|
||||
|
||||
for (const [key, englishText] of Object.entries(englishFlat)) {
|
||||
const needsTranslation = !targetFlat[key];
|
||||
if (needsTranslation) {
|
||||
if (dryRun) {
|
||||
langCharCount += englishText.length;
|
||||
} else {
|
||||
const translated = await translateText(englishText, langCode);
|
||||
updatedFlat[key] = translated;
|
||||
console.log(`Translated [${key}] to ${langCode}: ${translated}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (dryRun) {
|
||||
console.log(`Dry run for ${langCode}: ${langCharCount} characters to translate.`);
|
||||
totalChars += langCharCount;
|
||||
} else {
|
||||
const updatedYaml = unflattenYaml(updatedFlat);
|
||||
await fs.writeFile(file, yaml.stringify(updatedYaml), 'utf8');
|
||||
}
|
||||
}
|
||||
|
||||
if (dryRun) {
|
||||
console.log(`Total characters across all languages: ${totalChars}`);
|
||||
}
|
||||
}
|
||||
|
||||
syncTranslations(options.english, options.targets, options.dryRun)
|
||||
.then(() => console.log(options.dryRun ? 'Dry run complete.' : 'Translation sync complete.'))
|
||||
.catch(console.error);
|
||||
+30
-7
@@ -1,9 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
import { RouterView, useRoute } from 'vue-router';
|
||||
import { NGlobalStyle, NMessageProvider, NNotificationProvider, darkTheme } from 'naive-ui';
|
||||
import { get } from '@vueuse/core';
|
||||
import { darkThemeOverrides, lightThemeOverrides } from './themes';
|
||||
import { layouts } from './layouts';
|
||||
import { useStyleStore } from './stores/style.store';
|
||||
import { useAppTheme } from './ui/theme/themes';
|
||||
import { getITToolsSetting } from './composable/queryParams';
|
||||
|
||||
const route = useRoute();
|
||||
const layout = computed(() => route?.meta?.layout ?? layouts.base);
|
||||
@@ -14,6 +17,23 @@ const themeOverrides = computed(() => (styleStore.isDarkTheme ? darkThemeOverrid
|
||||
|
||||
const { locale } = useI18n();
|
||||
|
||||
const colorPalette = useAppTheme();
|
||||
|
||||
// Create CSS custom properties for the color palette
|
||||
const cssVars = computed(() => ({
|
||||
'--loading-background-color': colorPalette.value.loading_background,
|
||||
}));
|
||||
|
||||
// Apply CSS variables to the document root
|
||||
watchEffect(() => {
|
||||
const root = document.documentElement;
|
||||
Object.entries(cssVars.value).forEach(([key, value]) => {
|
||||
root.style.setProperty(key, value);
|
||||
});
|
||||
});
|
||||
|
||||
locale.value = get(getITToolsSetting('default_locale', locale.value));
|
||||
|
||||
syncRef(
|
||||
locale,
|
||||
useStorage('locale', locale),
|
||||
@@ -25,9 +45,11 @@ syncRef(
|
||||
<NGlobalStyle />
|
||||
<NMessageProvider placement="bottom">
|
||||
<NNotificationProvider placement="bottom-right">
|
||||
<component :is="layout">
|
||||
<RouterView />
|
||||
</component>
|
||||
<div>
|
||||
<component :is="layout">
|
||||
<RouterView />
|
||||
</component>
|
||||
</div>
|
||||
</NNotificationProvider>
|
||||
</NMessageProvider>
|
||||
</n-config-provider>
|
||||
@@ -51,15 +73,16 @@ html {
|
||||
}
|
||||
|
||||
body .vld-container {
|
||||
position:absolute;
|
||||
left:0;
|
||||
top:0;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background-color: #101014;
|
||||
background-color: var(--loading-background-color);
|
||||
z-index: 9999;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
body .vld-container .vl-overlay.vl-active {
|
||||
margin-top: 15%;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 275">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 275" preserveAspectRatio="none">
|
||||
<defs>
|
||||
<linearGradient id="small-hero-gradient-1" x1="13.74" y1="183.7" x2="303.96" y2="45.59" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" stop-color="#25636c"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 921 B |
@@ -1,15 +1,16 @@
|
||||
<script setup lang="ts">
|
||||
import { useStorage } from '@vueuse/core';
|
||||
import { useThemeVars } from 'naive-ui';
|
||||
import { RouterLink, useRoute } from 'vue-router';
|
||||
import { useRoute } from 'vue-router';
|
||||
import MenuIconItem from './MenuIconItem.vue';
|
||||
import MenuItemWithTooltip from './MenuItemTooltip.vue';
|
||||
import type { Tool, ToolCategory } from '@/tools/tools.types';
|
||||
|
||||
const props = withDefaults(defineProps<{ toolsByCategory?: ToolCategory[] }>(), { toolsByCategory: () => [] });
|
||||
const { toolsByCategory } = toRefs(props);
|
||||
const route = useRoute();
|
||||
|
||||
const makeLabel = (tool: Tool) => () => h(RouterLink, { to: tool.path }, { default: () => tool.name });
|
||||
const makeLabel = (tool: Tool) => () => h(MenuItemWithTooltip, { tool });
|
||||
const makeIcon = (tool: Tool) => () => h(MenuIconItem, { tool });
|
||||
|
||||
const collapsedCategories = useStorage<Record<string, boolean>>(
|
||||
@@ -25,14 +26,26 @@ const collapsedCategories = useStorage<Record<string, boolean>>(
|
||||
},
|
||||
);
|
||||
|
||||
// Initialize default values for all categories
|
||||
watchEffect(() => {
|
||||
toolsByCategory.value.forEach(({ name }) => {
|
||||
if (!(name in collapsedCategories.value)) {
|
||||
collapsedCategories.value[name] = true;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
const isToggling = ref(false);
|
||||
|
||||
function toggleCategoryCollapse({ name }: { name: string }) {
|
||||
collapsedCategories.value[name] = !collapsedCategories.value[name];
|
||||
const currentState = collapsedCategories.value[name];
|
||||
collapsedCategories.value[name] = !currentState;
|
||||
}
|
||||
|
||||
const areAllCollapsed = computed(() => {
|
||||
return toolsByCategory.value.every(({ name }) => collapsedCategories.value[name] !== false);
|
||||
return toolsByCategory.value.every(({ name }) =>
|
||||
collapsedCategories.value[name] !== false,
|
||||
);
|
||||
});
|
||||
|
||||
async function toggleAllCategories() {
|
||||
@@ -55,10 +68,22 @@ async function toggleAllCategories() {
|
||||
isToggling.value = false;
|
||||
}
|
||||
|
||||
// Function to calculate animation duration based on number of items
|
||||
function getAnimationDuration(itemCount: number): number {
|
||||
const baseDuration = 325;
|
||||
const baseItemCount = 10;
|
||||
const durationIncrement = 5;
|
||||
|
||||
const additionalDuration = (itemCount - baseItemCount) * durationIncrement;
|
||||
|
||||
return Math.max(baseDuration + additionalDuration, baseDuration);
|
||||
}
|
||||
|
||||
const menuOptions = computed(() =>
|
||||
toolsByCategory.value.map(({ name, components }) => ({
|
||||
name,
|
||||
isCollapsed: collapsedCategories.value[name] === undefined ? true : collapsedCategories.value[name],
|
||||
isCollapsed: collapsedCategories.value[name],
|
||||
animationDuration: getAnimationDuration(components.length),
|
||||
tools: components.map(tool => ({
|
||||
label: makeLabel(tool),
|
||||
icon: makeIcon(tool),
|
||||
@@ -71,7 +96,7 @@ const themeVars = useThemeVars();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="top-controls" ml-6px>
|
||||
<div class="top-controls" mb-12px ml-12px>
|
||||
<c-button :disabled="isToggling" @click="toggleAllCategories">
|
||||
<span v-if="isToggling">
|
||||
{{ areAllCollapsed ? 'Expanding...' : 'Collapsing...' }}
|
||||
@@ -82,8 +107,12 @@ const themeVars = useThemeVars();
|
||||
</c-button>
|
||||
</div>
|
||||
|
||||
<div v-for="{ name, tools, isCollapsed } of menuOptions" :key="name" class="category-container">
|
||||
<div ml-6px mt-12px flex cursor-pointer items-center op-60 @click="toggleCategoryCollapse({ name })">
|
||||
<div v-for="{ name, tools, isCollapsed, animationDuration } of menuOptions" :key="name" class="category-container">
|
||||
<button
|
||||
class="category-button"
|
||||
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>
|
||||
<icon-mdi-chevron-right />
|
||||
</span>
|
||||
@@ -91,9 +120,13 @@ const themeVars = useThemeVars();
|
||||
<span ml-8px text-13px>
|
||||
{{ name }}
|
||||
</span>
|
||||
</div>
|
||||
</button>
|
||||
|
||||
<div class="menu-container" :class="{ collapsed: isCollapsed }">
|
||||
<div
|
||||
class="menu-container"
|
||||
:class="{ collapsed: isCollapsed }"
|
||||
:style="{ '--animation-duration': `${animationDuration}ms` }"
|
||||
>
|
||||
<div class="menu-wrapper">
|
||||
<div class="toggle-bar" @click="toggleCategoryCollapse({ name })" />
|
||||
|
||||
@@ -112,35 +145,34 @@ const themeVars = useThemeVars();
|
||||
</template>
|
||||
|
||||
<style scoped lang="less">
|
||||
.category-button {
|
||||
border: none;
|
||||
background: transparent;
|
||||
padding: 6px;
|
||||
width: 100%;
|
||||
color: v-bind('themeVars.textColor1');
|
||||
text-align: left;
|
||||
user-select: none;
|
||||
|
||||
&:hover {
|
||||
background-color: v-bind('themeVars.buttonColor2Hover');
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
.category-container {
|
||||
.menu-container {
|
||||
overflow: hidden;
|
||||
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
|
||||
&:not(.collapsed) {
|
||||
max-height: 1000px;
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
display: grid;
|
||||
grid-template-rows: 1fr;
|
||||
transition: grid-template-rows var(--animation-duration, 350ms) ease-in-out;
|
||||
|
||||
&.collapsed {
|
||||
max-height: 0;
|
||||
opacity: 0;
|
||||
transform: translateY(-10px);
|
||||
grid-template-rows: 0fr;
|
||||
}
|
||||
|
||||
.menu-wrapper {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
|
||||
|
||||
.menu-container:not(.collapsed) & {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.menu-container.collapsed & {
|
||||
transform: translateY(-20px);
|
||||
}
|
||||
overflow: hidden;
|
||||
|
||||
.menu {
|
||||
flex: 1;
|
||||
@@ -149,6 +181,7 @@ const themeVars = useThemeVars();
|
||||
::v-deep(.n-menu-item-content::before) {
|
||||
left: 0;
|
||||
right: 13px;
|
||||
transition: none !important; // Disables hover transition effect to instantly show hover state
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import { Base64 } from 'js-base64';
|
||||
import type { UseValidationRule } from '@/composable/validation';
|
||||
import CInputText from '@/ui/c-input-text/c-input-text.vue';
|
||||
import { useDownloadFileFromBase64 } from '@/composable/downloadBase64';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
@@ -21,13 +22,13 @@ const props = withDefaults(
|
||||
{
|
||||
transformer: _.identity,
|
||||
inputValidationRules: () => [],
|
||||
inputLabel: 'Input',
|
||||
inputLabel: t('formatTransformer.input'),
|
||||
inputDefault: '',
|
||||
inputPlaceholder: 'Input...',
|
||||
outputLabel: 'Output',
|
||||
inputPlaceholder: t('formatTransformer.input-placeholder'),
|
||||
outputLabel: t('formatTransformer.output'),
|
||||
outputLanguage: '',
|
||||
downloadFileName: '',
|
||||
downloadButtonText: 'Download',
|
||||
downloadButtonText: t('formatTransformer.download'),
|
||||
rows: 15,
|
||||
},
|
||||
);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { useVModel } from '@vueuse/core';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
const props = defineProps<{
|
||||
value: string
|
||||
@@ -13,7 +14,7 @@ const emit = defineEmits(['update:value']);
|
||||
|
||||
const value = useVModel(props, 'value', emit);
|
||||
const { copy, isJustCopied } = useCopy({ source: value, createToast: false });
|
||||
const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : 'Copy to clipboard');
|
||||
const tooltipText = computed(() => isJustCopied.value ? t('inputCopyable.copied') : t('inputCopyable.copy'));
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
<script setup lang="ts">
|
||||
import { RouterLink } from 'vue-router';
|
||||
import { nextTick, onMounted, onUnmounted, ref } from 'vue';
|
||||
import type { Tool } from '@/tools/tools.types';
|
||||
|
||||
defineProps<{
|
||||
tool: Tool
|
||||
}>();
|
||||
|
||||
const textRef = ref<HTMLElement>();
|
||||
const showTooltip = ref(false);
|
||||
let resizeTimeout: ReturnType<typeof setTimeout> | null = null;
|
||||
|
||||
async function checkTruncation() {
|
||||
await nextTick();
|
||||
if (textRef.value) {
|
||||
const text = textRef.value.textContent || '';
|
||||
const computedStyle = window.getComputedStyle(textRef.value);
|
||||
|
||||
// Create canvas context for precise text measurement
|
||||
const canvas = document.createElement('canvas');
|
||||
const context = canvas.getContext('2d')!;
|
||||
context.font = `${computedStyle.fontWeight} ${computedStyle.fontSize} ${computedStyle.fontFamily}`;
|
||||
|
||||
const textWidth = context.measureText(text).width;
|
||||
|
||||
// Calculate precise container width by accounting for padding
|
||||
const containerWidth = textRef.value.clientWidth
|
||||
- Number.parseFloat(computedStyle.paddingLeft)
|
||||
- Number.parseFloat(computedStyle.paddingRight);
|
||||
|
||||
showTooltip.value = textWidth > containerWidth;
|
||||
}
|
||||
}
|
||||
|
||||
function debouncedCheckTruncation() {
|
||||
if (resizeTimeout) {
|
||||
clearTimeout(resizeTimeout);
|
||||
}
|
||||
// Prevent the truncation check from running too frequently when the window is resized
|
||||
resizeTimeout = setTimeout(checkTruncation, 500);
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
checkTruncation();
|
||||
window.addEventListener('resize', debouncedCheckTruncation);
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
if (resizeTimeout) {
|
||||
clearTimeout(resizeTimeout);
|
||||
}
|
||||
window.removeEventListener('resize', debouncedCheckTruncation);
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<n-tooltip
|
||||
placement="right"
|
||||
:delay="500"
|
||||
:show-arrow="true"
|
||||
:disabled="!showTooltip"
|
||||
>
|
||||
<template #trigger>
|
||||
<RouterLink :to="tool.path" class="menu-link">
|
||||
<span
|
||||
ref="textRef"
|
||||
class="menu-text"
|
||||
@mouseenter="checkTruncation"
|
||||
>
|
||||
{{ tool.name }}
|
||||
</span>
|
||||
</RouterLink>
|
||||
</template>
|
||||
{{ tool.name }}
|
||||
</n-tooltip>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.menu-link {
|
||||
display: block;
|
||||
width: 100%;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.menu-text {
|
||||
display: block;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>
|
||||
@@ -4,6 +4,35 @@ import { useStyleStore } from '@/stores/style.store';
|
||||
const styleStore = useStyleStore();
|
||||
const { isMenuCollapsed, isSmallScreen } = toRefs(styleStore);
|
||||
const siderPosition = computed(() => (isSmallScreen.value ? 'absolute' : 'static'));
|
||||
|
||||
// Reactive window width
|
||||
const windowWidth = ref(window.innerWidth);
|
||||
|
||||
// Update window width on resize
|
||||
function updateWindowWidth() {
|
||||
windowWidth.value = window.innerWidth;
|
||||
}
|
||||
|
||||
// Add resize listener
|
||||
onMounted(() => {
|
||||
window.addEventListener('resize', updateWindowWidth);
|
||||
});
|
||||
|
||||
// Clean up listener
|
||||
onUnmounted(() => {
|
||||
window.removeEventListener('resize', updateWindowWidth);
|
||||
});
|
||||
|
||||
// Calculate the actual width to ensure minimum width is respected
|
||||
const siderWidth = computed(() => {
|
||||
if (isMenuCollapsed.value) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Use 12.5% of window width, but ensure it's at least 240px
|
||||
const tenPercent = windowWidth.value * 0.125;
|
||||
return Math.max(240, tenPercent);
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -12,7 +41,7 @@ const siderPosition = computed(() => (isSmallScreen.value ? 'absolute' : 'static
|
||||
bordered
|
||||
collapse-mode="width"
|
||||
:collapsed-width="0"
|
||||
:width="240"
|
||||
:width="siderWidth"
|
||||
:collapsed="isMenuCollapsed"
|
||||
:show-trigger="false"
|
||||
:native-scrollbar="false"
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
<script setup lang="ts">
|
||||
import { useCopy } from '@/composable/copy';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
const props = withDefaults(defineProps<{ value?: string }>(), { value: '' });
|
||||
const { value } = toRefs(props);
|
||||
|
||||
const initialText = 'Copy to clipboard';
|
||||
const initialText = t('spanCopyable.copy');
|
||||
|
||||
const { copy, isJustCopied } = useCopy({ source: value, createToast: false });
|
||||
const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : initialText);
|
||||
const tooltipText = computed(() => isJustCopied.value ? t('spanCopyable.copied') : initialText);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -20,6 +20,7 @@ import protobufHljs from 'highlight.js/lib/languages/protobuf';
|
||||
import { Base64 } from 'js-base64';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
import { useDownloadFileFromBase64 } from '@/composable/downloadBase64';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
@@ -38,9 +39,9 @@ const props = withDefaults(
|
||||
followHeightOf: null,
|
||||
language: 'txt',
|
||||
copyPlacement: 'top-right',
|
||||
copyMessage: 'Copy to clipboard',
|
||||
copyMessage: t('textareaCopyable.copy'),
|
||||
downloadFileName: '',
|
||||
downloadButtonText: 'Download',
|
||||
downloadButtonText: t('textareaCopyable.download'),
|
||||
scrollable: false,
|
||||
maxHeight: '400px',
|
||||
},
|
||||
@@ -51,6 +52,7 @@ hljs.registerLanguage('html', xmlHljs);
|
||||
hljs.registerLanguage('xml', xmlHljs);
|
||||
hljs.registerLanguage('yaml', yamlHljs);
|
||||
hljs.registerLanguage('toml', iniHljs);
|
||||
hljs.registerLanguage('ini', iniHljs);
|
||||
hljs.registerLanguage('ts', tsHljs);
|
||||
hljs.registerLanguage('typescript', tsHljs);
|
||||
hljs.registerLanguage('bash', bashHljs);
|
||||
@@ -78,7 +80,7 @@ watch(value, () => {
|
||||
}, { flush: 'post' });
|
||||
|
||||
const { copy, isJustCopied } = useCopy({ source: value, createToast: false });
|
||||
const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : copyMessage.value);
|
||||
const tooltipText = computed(() => isJustCopied.value ? t('textareaCopyable.copied') : copyMessage.value);
|
||||
|
||||
const valueBase64 = computed(() => Base64.encode(value.value));
|
||||
const { download } = useDownloadFileFromBase64(
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { type MaybeRef, get } from '@vueuse/core';
|
||||
import { computed, ref, watch } from 'vue';
|
||||
import { computed, ref } from 'vue';
|
||||
import FlexSearch from 'flexsearch';
|
||||
|
||||
// Define key types to match Fuse.js format
|
||||
@@ -109,49 +109,34 @@ export function useFlexSearch<Data extends Record<string, any>>({
|
||||
dataMap.value.set(itemKey, item);
|
||||
});
|
||||
|
||||
// Batch add to indices - parallel processing with chunking
|
||||
await Promise.all(
|
||||
indices.map(async ({ key, index }) => {
|
||||
// Filter items that have values for this key upfront
|
||||
const itemsForThisKey = itemData
|
||||
.map(({ itemKey, values }) => ({ itemKey, value: values.get(key) }))
|
||||
.filter(({ value }) => value);
|
||||
// Process indices sequentially to avoid event loop flooding
|
||||
for (const { key, index } of indices) {
|
||||
// Filter items that have values for this key upfront
|
||||
const itemsForThisKey = itemData
|
||||
.map(({ itemKey, values }) => ({ itemKey, value: values.get(key) }))
|
||||
.filter(({ value }) => value);
|
||||
|
||||
// Process in chunks to avoid blocking the main thread
|
||||
const chunkSize = 1000; // Adjust based on your data size
|
||||
const chunks = [];
|
||||
for (let i = 0; i < itemsForThisKey.length; i += chunkSize) {
|
||||
chunks.push(itemsForThisKey.slice(i, i + chunkSize));
|
||||
}
|
||||
const chunkSize = 5000;
|
||||
|
||||
// Process each chunk asynchronously
|
||||
for (const chunk of chunks) {
|
||||
await new Promise<void>((resolve) => {
|
||||
// Use setTimeout to yield control back to the browser
|
||||
setTimeout(() => {
|
||||
chunk.forEach(({ itemKey, value }) => {
|
||||
index.add(itemKey, value!);
|
||||
});
|
||||
resolve();
|
||||
}, 0);
|
||||
for (let i = 0; i < itemsForThisKey.length; i += chunkSize) {
|
||||
const chunk = itemsForThisKey.slice(i, i + chunkSize);
|
||||
|
||||
// Use requestAnimationFrame for better performance
|
||||
await new Promise<void>((resolve) => {
|
||||
requestAnimationFrame(() => {
|
||||
chunk.forEach(({ itemKey, value }) => {
|
||||
index.add(itemKey, value!);
|
||||
});
|
||||
resolve();
|
||||
});
|
||||
}
|
||||
}),
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Initialize on creation
|
||||
initializeIndices();
|
||||
|
||||
// Watch for data changes (deep watch for array content)
|
||||
watch(
|
||||
() => data,
|
||||
() => {
|
||||
initializeIndices();
|
||||
},
|
||||
{ immediate: true, deep: true },
|
||||
);
|
||||
|
||||
// Function to search across all indices with weight consideration
|
||||
const searchAllIndices = (query: string, searchLimit: number) => {
|
||||
if (!query) {
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { useRouteQuery } from '@vueuse/router';
|
||||
import { computed } from 'vue';
|
||||
import { useStorage } from '@vueuse/core';
|
||||
import { type MaybeRef, computed } from 'vue';
|
||||
import { type RemovableRef, type StorageLike, type UseStorageOptions, get, useStorage } from '@vueuse/core';
|
||||
import { getCurrentInstance } from 'vue';
|
||||
|
||||
export { useQueryParam, useQueryParamOrStorage };
|
||||
export { useQueryParam, useQueryParamOrStorage, useITStorage, getITToolsSetting };
|
||||
|
||||
const transformers = {
|
||||
number: {
|
||||
@@ -25,11 +26,12 @@ const transformers = {
|
||||
},
|
||||
};
|
||||
|
||||
function useQueryParam<T>({ name, defaultValue }: { name: string; defaultValue: T }) {
|
||||
function useQueryParam<T>({ tool, name, defaultValue }: { tool: string; name: string; defaultValue: T }): RemovableRef<T> {
|
||||
const type = typeof defaultValue;
|
||||
const transformer = transformers[type as keyof typeof transformers] ?? transformers.string;
|
||||
const defaultValueOrSetting = getITToolsSetting(`${tool}:${name}`, defaultValue);
|
||||
|
||||
const proxy = useRouteQuery(name, transformer.toQuery(defaultValue as never));
|
||||
const proxy = useRouteQuery(name, transformer.toQuery(defaultValueOrSetting as never));
|
||||
|
||||
return computed<T>({
|
||||
get() {
|
||||
@@ -45,11 +47,13 @@ function useQueryParamOrStorage<T>({ name, storageName, defaultValue }: { name:
|
||||
const type = typeof defaultValue;
|
||||
const transformer = transformers[type as keyof typeof transformers] ?? transformers.string;
|
||||
|
||||
const storageRef = useStorage(storageName, defaultValue);
|
||||
const proxyDefaultValue = transformer.toQuery(defaultValue as never);
|
||||
const defaultValueOrSetting = getITToolsSetting(`${storageName.split(':')[0]}:${name}`, defaultValue);
|
||||
|
||||
const storageRef = useStorage(storageName, defaultValueOrSetting);
|
||||
const proxyDefaultValue = transformer.toQuery(defaultValueOrSetting as never);
|
||||
const proxy = useRouteQuery(name, proxyDefaultValue);
|
||||
|
||||
const r = ref(defaultValue);
|
||||
const r = isRef(defaultValueOrSetting) ? defaultValueOrSetting as Ref<T> : ref(get(defaultValueOrSetting));
|
||||
|
||||
watch(r,
|
||||
(value) => {
|
||||
@@ -64,3 +68,31 @@ function useQueryParamOrStorage<T>({ name, storageName, defaultValue }: { name:
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
function useITStorage<T>(key: string, defaults: MaybeRef<T>, storage?: StorageLike, options?: UseStorageOptions<T>): RemovableRef<T> {
|
||||
const defaultValueOrSetting = getITToolsSetting(key, defaults);
|
||||
return useStorage<T>(key, defaultValueOrSetting, storage, options);
|
||||
}
|
||||
|
||||
function getITToolsSetting<T>(key: string, defaultValue: MaybeRef<T>) {
|
||||
const itToolsSettings = useITToolsSettings();
|
||||
if (!itToolsSettings) {
|
||||
return defaultValue;
|
||||
}
|
||||
if (key.includes(':')) {
|
||||
const [tool, subkey] = key.split(':');
|
||||
return (itToolsSettings[tool] || {})[subkey] as T ?? defaultValue;
|
||||
}
|
||||
else {
|
||||
return (itToolsSettings)[key] as T ?? defaultValue;
|
||||
}
|
||||
}
|
||||
|
||||
let itToolsSettings: Record<string, Record<string, any> | any>;
|
||||
function useITToolsSettings(): Record<string, Record<string, any>> {
|
||||
if (!itToolsSettings) {
|
||||
const vm = getCurrentInstance();
|
||||
itToolsSettings = vm?.appContext.config.globalProperties.$itToolsSettings as Record<string, Record<string, any>>;
|
||||
}
|
||||
return itToolsSettings;
|
||||
}
|
||||
+31
-13
@@ -1,18 +1,16 @@
|
||||
<script lang="ts" setup>
|
||||
import { Coffee, Home2, Menu2 } from '@vicons/tabler';
|
||||
import { NIcon, useThemeVars } from 'naive-ui';
|
||||
|
||||
import { RouterLink } from 'vue-router';
|
||||
import { Home2, Menu2 } from '@vicons/tabler';
|
||||
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { RouterLink } from 'vue-router';
|
||||
import HeroGradient from '../assets/hero-gradient.svg?component';
|
||||
import MenuLayout from '../components/MenuLayout.vue';
|
||||
import NavbarButtons from '../components/NavbarButtons.vue';
|
||||
import { useStyleStore } from '@/stores/style.store';
|
||||
import { config } from '@/config';
|
||||
import type { ToolCategory } from '@/tools/tools.types';
|
||||
import { useToolStore } from '@/tools/tools.store';
|
||||
import CollapsibleToolMenu from '@/components/CollapsibleToolMenu.vue';
|
||||
import { config } from '@/config';
|
||||
import { useStyleStore } from '@/stores/style.store';
|
||||
import { useToolStore } from '@/tools/tools.store';
|
||||
import type { ToolCategory } from '@/tools/tools.types';
|
||||
|
||||
const themeVars = useThemeVars();
|
||||
const styleStore = useStyleStore();
|
||||
@@ -117,6 +115,20 @@ 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/sharevb"
|
||||
rel="noopener"
|
||||
target="_blank"
|
||||
class="support-button"
|
||||
:bordered="false"
|
||||
>
|
||||
<span v-if="!styleStore.isSmallScreen" mr-2>{{ $t('home.buyMeACoffee') }}</span>
|
||||
<NIcon :component="Coffee" />
|
||||
</c-button>
|
||||
</c-tooltip>
|
||||
</div>
|
||||
<slot />
|
||||
</template>
|
||||
@@ -156,20 +168,26 @@ const tools = computed<ToolCategory[]>(() => [
|
||||
}
|
||||
|
||||
.sider-content {
|
||||
padding-top: 160px;
|
||||
padding-top: 20px;
|
||||
padding-bottom: 200px;
|
||||
}
|
||||
|
||||
.hero-wrapper {
|
||||
position: absolute;
|
||||
display: block;
|
||||
position: sticky;
|
||||
display: flex;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 10;
|
||||
height: 150px;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
|
||||
.gradient {
|
||||
margin-top: -65px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.text-wrapper {
|
||||
|
||||
@@ -14,10 +14,34 @@ const route = useRoute();
|
||||
const head = computed<HeadObject>(() => ({
|
||||
title: `${route.meta.name} - IT Tools`,
|
||||
meta: [
|
||||
{
|
||||
itemprop: 'name',
|
||||
content: `${route.meta.name} - IT Tools`,
|
||||
},
|
||||
{
|
||||
property: 'og:title',
|
||||
content: `${route.meta.name} - IT Tools`,
|
||||
},
|
||||
{
|
||||
property: 'twitter:title',
|
||||
content: `${route.meta.name} - IT Tools`,
|
||||
},
|
||||
{
|
||||
name: 'description',
|
||||
content: route.meta?.description as string,
|
||||
},
|
||||
{
|
||||
itemprop: 'description',
|
||||
content: route.meta?.description as string,
|
||||
},
|
||||
{
|
||||
property: 'og:description',
|
||||
content: route.meta?.description as string,
|
||||
},
|
||||
{
|
||||
property: 'twitter:description',
|
||||
content: route.meta?.description as string,
|
||||
},
|
||||
{
|
||||
name: 'keywords',
|
||||
content: ((route.meta.keywords ?? []) as string[]).join(','),
|
||||
@@ -44,7 +68,7 @@ const toolFooter = computed<string>(() => {
|
||||
packageName,
|
||||
packageName.includes('://') ? packageName : `https://www.npmjs.com/package/${packageName}`),
|
||||
);
|
||||
return ((npmPackages.length > 0 ? `Made with ${npmPackages.join(', ')}\n` : '') + footer).trim();
|
||||
return ((npmPackages.length > 0 ? t('tools.tool.layout.text.made-with-npmpackages-join-n', [npmPackages.join(', ')]) : '') + footer).trim();
|
||||
});
|
||||
const themeVars = useThemeVars();
|
||||
</script>
|
||||
|
||||
+17
@@ -9,6 +9,7 @@ import { registerSW } from 'virtual:pwa-register';
|
||||
import shadow from 'vue-shadow-dom';
|
||||
import { hideSplashScreen } from 'vite-plugin-splash-screen/runtime';
|
||||
import { plausible } from './plugins/plausible.plugin';
|
||||
import '@/utils/json5-bigint';
|
||||
|
||||
import 'virtual:uno.css';
|
||||
|
||||
@@ -20,12 +21,28 @@ import { i18nPlugin } from './plugins/i18n.plugin';
|
||||
|
||||
import store from './tools/pomodoro-timer/app/store';
|
||||
|
||||
// eslint-disable-next-line no-extend-native
|
||||
BigInt.prototype.toJSON = function () {
|
||||
return JSON.rawJSON ? JSON.rawJSON(this.toString()) : this.toString();
|
||||
};
|
||||
|
||||
library.add(fas);
|
||||
|
||||
registerSW();
|
||||
|
||||
const app = createApp(App);
|
||||
|
||||
const base = import.meta.env.BASE_URL ?? '/';
|
||||
let toolsSettings: Record<string, Record<string, any> | any> = {};
|
||||
try {
|
||||
const remoteSettingsResponse = await fetch(`${base}tools-settings.json`);
|
||||
if (remoteSettingsResponse.ok) {
|
||||
toolsSettings = (await remoteSettingsResponse.json()) as Record<string, Record<string, any> | any>;
|
||||
}
|
||||
}
|
||||
catch {}
|
||||
app.config.globalProperties.$itToolsSettings = toolsSettings;
|
||||
|
||||
app.use(LoadingPlugin);
|
||||
app.use(createPinia());
|
||||
app.use(createHead());
|
||||
|
||||
@@ -125,7 +125,7 @@ function activateOption(option: PaletteOption) {
|
||||
</c-button>
|
||||
|
||||
<c-modal v-model:open="isModalOpen" class="palette-modal" overflow-y-auto shadow-xl important:max-w-650px pretty-scrollbar important:pa-12px @keydown="handleKeydown">
|
||||
<c-input-text ref="inputRef" v-model:value="searchPrompt" raw-text placeholder="Type to search a tool or a command..." autofocus clearable />
|
||||
<c-input-text ref="inputRef" v-model:value="searchPrompt" raw-text :placeholder="$t('search.placeholder')" autofocus clearable />
|
||||
|
||||
<div v-for="(options, category) in filteredSearchResult" :key="category">
|
||||
<div ml-3 mt-3 text-sm font-bold text-primary op-60>
|
||||
|
||||
@@ -1,16 +1,22 @@
|
||||
<script setup lang="ts">
|
||||
const { availableLocales, locale } = useI18n();
|
||||
const { availableLocales, locale, t } = useI18n();
|
||||
|
||||
const localesLong: Record<string, string> = {
|
||||
en: 'English',
|
||||
de: 'Deutsch',
|
||||
da: 'Dansk',
|
||||
es: 'Español',
|
||||
fr: 'Français',
|
||||
ga: 'Gaeilge',
|
||||
it: 'Italiano',
|
||||
nl: 'Nederlands',
|
||||
no: 'Norwegian',
|
||||
pl: 'Polski',
|
||||
pt: 'Português',
|
||||
ru: 'Русский',
|
||||
tr: 'Türkçe',
|
||||
uk: 'Українська',
|
||||
ko: '한국인',
|
||||
zh: '中文',
|
||||
vi: 'Tiếng Việt',
|
||||
ar: 'عربي',
|
||||
@@ -28,7 +34,7 @@ const localeOptions = computed(() =>
|
||||
<c-select
|
||||
v-model:value="locale"
|
||||
:options="localeOptions"
|
||||
placeholder="Select a language"
|
||||
:placeholder="t('locale-selector.select-a-language')"
|
||||
w-100px
|
||||
/>
|
||||
</template>
|
||||
+112
-2
@@ -1,9 +1,119 @@
|
||||
<script setup lang="ts">
|
||||
import _ from 'lodash';
|
||||
import { useHead } from '@vueuse/head';
|
||||
import { useMessage } from 'naive-ui';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { useToolStore } from '@/tools/tools.store';
|
||||
|
||||
useHead({ title: 'About - IT Tools' });
|
||||
const { t } = useI18n();
|
||||
|
||||
const toolStore = useToolStore();
|
||||
|
||||
const desc = 'Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT.';
|
||||
const title = 'About - IT Tools';
|
||||
useHead({
|
||||
title,
|
||||
meta: [
|
||||
{
|
||||
itemprop: 'name',
|
||||
content: title,
|
||||
},
|
||||
{
|
||||
property: 'og:title',
|
||||
content: title,
|
||||
},
|
||||
{
|
||||
property: 'twitter:title',
|
||||
content: title,
|
||||
},
|
||||
{
|
||||
name: 'description',
|
||||
content: desc,
|
||||
},
|
||||
{
|
||||
itemprop: 'description',
|
||||
content: desc,
|
||||
},
|
||||
{
|
||||
property: 'og:description',
|
||||
content: desc,
|
||||
},
|
||||
{
|
||||
property: 'twitter:description',
|
||||
content: desc,
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
const orderedTools = computed(() => _.orderBy(toolStore.tools, ['category', 'name'], ['asc', 'asc']));
|
||||
const { favoriteToolsName } = storeToRefs(toolStore);
|
||||
|
||||
const message = useMessage();
|
||||
const importFavoritesJson = ref('');
|
||||
function importFavorites() {
|
||||
try {
|
||||
favoriteToolsName.value = JSON.parse(importFavoritesJson.value);
|
||||
message.success(t('about.favorites-imported-successfully'));
|
||||
}
|
||||
catch (e: any) {
|
||||
message.error(t('about.error-importing-favorites-e', [e]));
|
||||
}
|
||||
}
|
||||
const favoritesJson = computed(() => JSON.stringify(favoriteToolsName.value));
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-markdown :markdown="$t('about.content')" mx-auto mt-50px max-w-600px />
|
||||
<c-markdown :markdown="$t('about.content-fork')" mx-auto mt-50px />
|
||||
|
||||
<n-card :title="$t('about.import-favorites')" mx-auto mt-50px>
|
||||
<c-input-text
|
||||
v-model:value="importFavoritesJson"
|
||||
:placeholder="$t('about.put-your-favorites-json-array-here')"
|
||||
multiline
|
||||
monospace
|
||||
mb-2
|
||||
/>
|
||||
<c-button @click="importFavorites">
|
||||
{{ $t('about.import-button') }}
|
||||
</c-button>
|
||||
</n-card>
|
||||
|
||||
<n-card :title="$t('about.export-favorites')" mx-auto mt-50px>
|
||||
<textarea-copyable
|
||||
v-model:value="favoritesJson"
|
||||
/>
|
||||
</n-card>
|
||||
|
||||
<n-card :title="$t('about.alltools-title', { toolsCount: toolStore.tools.length })" mx-auto mt-50px>
|
||||
<n-table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
{{ $t('about.tools.category') }}
|
||||
</th>
|
||||
<th>
|
||||
{{ $t('about.tools.name') }}
|
||||
</th>
|
||||
<th>
|
||||
{{ $t('about.tools.desc') }}
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(tool, ix) in orderedTools" :key="ix">
|
||||
<td>
|
||||
{{ tool.category }}
|
||||
</td>
|
||||
<td>
|
||||
<router-link :to="tool.path" class="decoration-none" target="_blank">
|
||||
{{ tool.name }}
|
||||
</router-link>
|
||||
</td>
|
||||
<td>
|
||||
{{ tool.description }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</n-table>
|
||||
</n-card>
|
||||
</template>
|
||||
+36
-9
@@ -22,8 +22,42 @@ const homeCustomMarkdown = computedAsync(async () => {
|
||||
});
|
||||
|
||||
const toolStore = useToolStore();
|
||||
const desc = 'Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT.';
|
||||
const title = 'IT Tools - Handy online tools for developers';
|
||||
|
||||
useHead({ title: 'IT Tools - Handy online tools for developers' });
|
||||
useHead({
|
||||
title,
|
||||
meta: [
|
||||
{
|
||||
itemprop: 'name',
|
||||
content: title,
|
||||
},
|
||||
{
|
||||
property: 'og:title',
|
||||
content: title,
|
||||
},
|
||||
{
|
||||
property: 'twitter:title',
|
||||
content: title,
|
||||
},
|
||||
{
|
||||
name: 'description',
|
||||
content: desc,
|
||||
},
|
||||
{
|
||||
itemprop: 'description',
|
||||
content: desc,
|
||||
},
|
||||
{
|
||||
property: 'og:description',
|
||||
content: desc,
|
||||
},
|
||||
{
|
||||
property: 'twitter:description',
|
||||
content: desc,
|
||||
},
|
||||
],
|
||||
});
|
||||
const { t } = useI18n();
|
||||
|
||||
const favoriteTools = computed(() => toolStore.favoriteTools);
|
||||
@@ -129,13 +163,6 @@ onUnmounted(() => {
|
||||
Sponsor
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="my-5px flex items-baseline gap-4 text-balance text-lg text-black dark:text-white">
|
||||
Generate PDFs from HTML with Renderize API
|
||||
</div>
|
||||
<div class="text-neutral-500 dark:text-neutral-400">
|
||||
Automate your document generation with our fast, developer-friendly API. Start with a free forever plan.
|
||||
</div>
|
||||
</c-card>
|
||||
</a>
|
||||
</div>
|
||||
@@ -187,7 +214,7 @@ onUnmounted(() => {
|
||||
<!-- Loading indicator when more tools are coming -->
|
||||
<div v-if="visibleToolsCount < toolStore.tools.length" mt-6 text-center>
|
||||
<div text-14px op-70>
|
||||
Loading more tools... ({{ visibleTools.length }}/{{ toolStore.tools.length }})
|
||||
{{ t('home.loading-more-tools') }} <span>({{ visibleTools.length }}/{{ toolStore.tools.length }})</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -15,7 +15,7 @@ export const i18nPlugin: Plugin = {
|
||||
},
|
||||
};
|
||||
|
||||
export const translate = function (localeKey: string) {
|
||||
export const translate = function (localeKey: string, list: unknown[] = []) {
|
||||
const hasKey = i18n.global.te(localeKey, get(i18n.global.locale));
|
||||
return hasKey ? i18n.global.t(localeKey) : localeKey;
|
||||
return hasKey ? i18n.global.t(localeKey, list) : localeKey;
|
||||
};
|
||||
+12
-5
@@ -6,9 +6,9 @@ import NotFound from './pages/404.page.vue';
|
||||
import { tools } from './tools';
|
||||
import { config } from './config';
|
||||
import { routes as demoRoutes } from './ui/demo/demo.routes';
|
||||
import { useAppTheme } from './ui/theme/themes';
|
||||
|
||||
const $loading = useLoading();
|
||||
|
||||
const toolsRoutes = tools.map(({ path, name, component, ...config }) => ({
|
||||
path,
|
||||
name,
|
||||
@@ -42,18 +42,25 @@ const router = createRouter({
|
||||
});
|
||||
|
||||
let loader: ActiveLoader | null = null;
|
||||
let loaderTimeoutId: NodeJS.Timeout | null = null;
|
||||
|
||||
router.beforeEach((to, from) => {
|
||||
// Only show loading for actual route changes, not just query param changes
|
||||
if (to.path !== from.path) {
|
||||
loader = $loading?.show({
|
||||
color: '#fff',
|
||||
backgroundColor: '#292929',
|
||||
});
|
||||
const theme = useAppTheme();
|
||||
loaderTimeoutId = setTimeout(() => {
|
||||
loader = $loading?.show({
|
||||
color: theme.value.primary.color,
|
||||
});
|
||||
}, 350);
|
||||
}
|
||||
});
|
||||
|
||||
router.afterEach(() => {
|
||||
if (loaderTimeoutId) {
|
||||
clearTimeout(loaderTimeoutId);
|
||||
loaderTimeoutId = null;
|
||||
}
|
||||
if (loader) {
|
||||
loader.hide();
|
||||
loader = null;
|
||||
|
||||
Vendored
+17
-5
@@ -10,11 +10,6 @@ declare module '*.md' {
|
||||
export default Component;
|
||||
}
|
||||
|
||||
declare module 'iarna-toml-esm' {
|
||||
export const parse: (toml: string) => any;
|
||||
export const stringify: (obj: any) => string;
|
||||
}
|
||||
|
||||
declare module 'emojilib' {
|
||||
const lib: Record<string, string[]>;
|
||||
export default lib;
|
||||
@@ -43,3 +38,20 @@ declare module 'pdf-signature-reader' {
|
||||
declare module 'vite-plugin-splash-screen/runtime' {
|
||||
export function hideSplashScreen();
|
||||
}
|
||||
|
||||
interface BigInt {
|
||||
toJSON: () => string;
|
||||
}
|
||||
|
||||
interface JSON {
|
||||
parseBigInt: (jsonStr: string, options?: { minDigits?: number; fallbackToString?: boolean; }) => any;
|
||||
rawJSON(value: string): any;
|
||||
}
|
||||
|
||||
interface Navigator {
|
||||
gpu?: any;
|
||||
}
|
||||
|
||||
interface FontFaceSet {
|
||||
add(fontFace: FontFace)
|
||||
}
|
||||
@@ -1,13 +1,14 @@
|
||||
import { useDark, useMediaQuery, useStorage, useToggle } from '@vueuse/core';
|
||||
import { useDark, useMediaQuery, useToggle } from '@vueuse/core';
|
||||
import { defineStore } from 'pinia';
|
||||
import { type Ref, watch } from 'vue';
|
||||
import { useITStorage } from '@/composable/queryParams';
|
||||
|
||||
export const useStyleStore = defineStore('style', {
|
||||
state: () => {
|
||||
const isDarkTheme = useDark();
|
||||
const toggleDark = useToggle(isDarkTheme);
|
||||
const isSmallScreen = useMediaQuery('(max-width: 700px)');
|
||||
const isMenuCollapsed = useStorage('isMenuCollapsed', isSmallScreen.value) as Ref<boolean>;
|
||||
const isMenuCollapsed = useITStorage('isMenuCollapsed', isSmallScreen.value) as Ref<boolean>;
|
||||
|
||||
watch(isSmallScreen, v => (isMenuCollapsed.value = v));
|
||||
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import mappingData from './ad-mapping.json';
|
||||
import { useFlexSearch } from '@/composable/flexSearch';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const data = mappingData;
|
||||
const search = ref('');
|
||||
|
||||
@@ -20,7 +23,7 @@ const { searchResult } = useFlexSearch({
|
||||
<div flex items-center gap-3>
|
||||
<c-input-text
|
||||
v-model:value="search"
|
||||
placeholder="Search Active Directory LDAP mapping"
|
||||
:placeholder="t('tools.ad-ldap-searcher.texts.placeholder-search-active-directory-ldap-mapping')"
|
||||
mx-auto max-w-600px
|
||||
>
|
||||
<template #prefix>
|
||||
@@ -35,19 +38,19 @@ const { searchResult } = useFlexSearch({
|
||||
|
||||
mt-4 text-center text-20px font-bold
|
||||
>
|
||||
No results
|
||||
{{ t('tools.ad-ldap-searcher.texts.tag-no-results') }}
|
||||
</div>
|
||||
|
||||
<div v-else>
|
||||
<div mt-4 text-20px font-bold>
|
||||
Search result
|
||||
{{ t('tools.ad-ldap-searcher.texts.tag-search-result') }}
|
||||
</div>
|
||||
|
||||
<n-table>
|
||||
<thead>
|
||||
<th>TAB</th>
|
||||
<th>Active Directory Field</th>
|
||||
<th>LDAP Attribute</th>
|
||||
<th>{{ t('tools.ad-ldap-searcher.texts.tag-tab') }}</th>
|
||||
<th>{{ t('tools.ad-ldap-searcher.texts.tag-active-directory-field') }}</th>
|
||||
<th>{{ t('tools.ad-ldap-searcher.texts.tag-ldap-attribute') }}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(result, ix) in searchResult" :key="ix">
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { Folder } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: translate('tools.ad-ldap-searcher.title'),
|
||||
name: t('tools.ad-ldap-searcher.title'),
|
||||
path: '/ad-ldap-searcher',
|
||||
description: translate('tools.ad-ldap-searcher.description'),
|
||||
description: t('tools.ad-ldap-searcher.description'),
|
||||
keywords: ['active', 'directory', 'ad', 'ldap', 'prop', 'searcher'],
|
||||
component: () => import('./ad-ldap-searcher.vue'),
|
||||
icon: Folder,
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useScriptTag } from '@vueuse/core';
|
||||
import ageWasmUrl from '/age-wasm/age.wasm?url';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
generateX25519Identity: () => {
|
||||
@@ -34,7 +37,9 @@ declare class Go {
|
||||
run(instance: WebAssembly.Instance): Promise<void>;
|
||||
}
|
||||
|
||||
const { load: loadGo } = useScriptTag('/age-wasm/wasm_exec.js', undefined, { type: 'module', manual: true });
|
||||
const base = import.meta.env.BASE_URL ?? '/';
|
||||
|
||||
const { load: loadGo } = useScriptTag(`${base}age-wasm/wasm_exec.js`, undefined, { type: 'module', manual: true });
|
||||
|
||||
await loadGo();
|
||||
|
||||
@@ -164,42 +169,42 @@ function onDecryptFilesUploaded(uploadedFiles: File[]) {
|
||||
<template>
|
||||
<n-tabs type="card">
|
||||
<!-- Generate Keys -->
|
||||
<n-tab-pane name="keys" tab="Generate Keys">
|
||||
<n-card title="Private Key" mb-1>
|
||||
<textarea-copyable v-model:value="privKey" rows="3" multiline placeholder="Your private key will be generated here." />
|
||||
<n-tab-pane name="keys" :tab="t('tools.age-crypto.text.generate-keys')">
|
||||
<n-card :title="t('tools.age-crypto.texts.title-private-key')" mb-1>
|
||||
<textarea-copyable v-model:value="privKey" rows="3" multiline :placeholder="t('tools.age-crypto.texts.placeholder-your-private-key-will-be-generated-here')" />
|
||||
</n-card>
|
||||
<n-card title="Public Key" mb-1>
|
||||
<textarea-copyable v-model:value="pubKey" rows="3" multiline placeholder="Your public key will be generated here." />
|
||||
<n-card :title="t('tools.age-crypto.texts.title-public-key')" mb-1>
|
||||
<textarea-copyable v-model:value="pubKey" rows="3" multiline :placeholder="t('tools.age-crypto.texts.placeholder-your-public-key-will-be-generated-here')" />
|
||||
</n-card>
|
||||
<n-button type="primary" @click="generateKeys">
|
||||
Generate Keys
|
||||
{{ t('tools.age-crypto.texts.tag-generate-keys') }}
|
||||
</n-button>
|
||||
</n-tab-pane>
|
||||
|
||||
<!-- Encrypt Text -->
|
||||
<n-tab-pane name="encrypt" tab="Encrypt">
|
||||
<n-card title="Public Keys" mb-1>
|
||||
<n-input v-model:value="recipients" type="textarea" placeholder="Recipient key or keys one per line" required />
|
||||
<n-tab-pane name="encrypt" :tab="t('tools.age-crypto.text.encrypt')">
|
||||
<n-card :title="t('tools.age-crypto.texts.title-public-keys')" mb-1>
|
||||
<n-input v-model:value="recipients" type="textarea" :placeholder="t('tools.age-crypto.texts.placeholder-recipient-key-or-keys-one-per-line')" required />
|
||||
</n-card>
|
||||
<n-card title="Message" mb-1>
|
||||
<n-input v-model:value="message" type="textarea" placeholder="Message to encrypt" required />
|
||||
<n-card :title="t('tools.age-crypto.texts.title-message')" mb-1>
|
||||
<n-input v-model:value="message" type="textarea" :placeholder="t('tools.age-crypto.texts.placeholder-message-to-encrypt')" required />
|
||||
</n-card>
|
||||
<n-card title="Output" mb-1>
|
||||
<textarea-copyable v-model:value="encryptedOutput" rows="3" multiline placeholder="Encrypted output will be generated here." />
|
||||
<n-card :title="t('tools.age-crypto.texts.title-output')" mb-1>
|
||||
<textarea-copyable v-model:value="encryptedOutput" rows="3" multiline :placeholder="t('tools.age-crypto.texts.placeholder-encrypted-output-will-be-generated-here')" />
|
||||
</n-card>
|
||||
<n-button type="primary" @click="encrypt">
|
||||
Encrypt
|
||||
{{ t('tools.age-crypto.texts.tag-encrypt') }}
|
||||
</n-button>
|
||||
</n-tab-pane>
|
||||
|
||||
<!-- Encrypt Binary -->
|
||||
<n-tab-pane name="encryptBinary" tab="Encrypt Binary">
|
||||
<n-card title="Public Keys" mb-1>
|
||||
<n-input v-model:value="recipientsBinary" type="textarea" placeholder="Recipient key or keys one per line" required />
|
||||
<n-tab-pane name="encryptBinary" :tab="t('tools.age-crypto.text.encrypt-binary')">
|
||||
<n-card :title="t('tools.age-crypto.texts.title-public-keys')" mb-1>
|
||||
<n-input v-model:value="recipientsBinary" type="textarea" :placeholder="t('tools.age-crypto.texts.placeholder-recipient-key-or-keys-one-per-line')" required />
|
||||
</n-card>
|
||||
<n-card title="Files" mb-1>
|
||||
<n-card :title="t('tools.age-crypto.texts.title-files')" mb-1>
|
||||
<c-file-upload
|
||||
title="Drag and drop files here, or click to select some files"
|
||||
:title="t('tools.age-crypto.texts.title-drag-and-drop-files-here-or-click-to-select-some-files')"
|
||||
multiple
|
||||
@files-upload="onEncryptFilesUploaded"
|
||||
/>
|
||||
@@ -209,38 +214,38 @@ function onDecryptFilesUploaded(uploadedFiles: File[]) {
|
||||
</li>
|
||||
</ul>
|
||||
</n-card>
|
||||
<n-card title="Output" mb-1>
|
||||
<p>The encrypted files will be downloaded.</p>
|
||||
<n-card :title="t('tools.age-crypto.texts.title-output')" mb-1>
|
||||
<p>{{ t('tools.age-crypto.texts.tag-the-encrypted-files-will-be-downloaded') }}</p>
|
||||
</n-card>
|
||||
<n-button type="primary" @click="encryptBinary">
|
||||
Encrypt Binary
|
||||
{{ t('tools.age-crypto.texts.tag-encrypt-binary') }}
|
||||
</n-button>
|
||||
</n-tab-pane>
|
||||
|
||||
<!-- Decrypt Text -->
|
||||
<n-tab-pane name="decrypt" tab="Decrypt">
|
||||
<n-card title="Private Keys" mb-1>
|
||||
<n-input v-model:value="identities" type="textarea" placeholder="Identity key or keys one per line" required />
|
||||
<n-tab-pane name="decrypt" :tab="t('tools.age-crypto.text.decrypt')">
|
||||
<n-card :title="t('tools.age-crypto.texts.title-private-keys')" mb-1>
|
||||
<n-input v-model:value="identities" type="textarea" :placeholder="t('tools.age-crypto.texts.placeholder-identity-key-or-keys-one-per-line')" required />
|
||||
</n-card>
|
||||
<n-card title="Encrypted Text" mb-1>
|
||||
<n-input v-model:value="encryptedText" type="textarea" placeholder="Paste here encrypted text" required />
|
||||
<n-card :title="t('tools.age-crypto.texts.title-encrypted-text')" mb-1>
|
||||
<n-input v-model:value="encryptedText" type="textarea" :placeholder="t('tools.age-crypto.texts.placeholder-paste-here-encrypted-text')" required />
|
||||
</n-card>
|
||||
<n-card title="Output" mb-1>
|
||||
<textarea-copyable v-model:value="decryptedOutput" rows="3" multiline placeholder="Decrypted output will be generated here." />
|
||||
<n-card :title="t('tools.age-crypto.texts.title-output')" mb-1>
|
||||
<textarea-copyable v-model:value="decryptedOutput" rows="3" multiline :placeholder="t('tools.age-crypto.texts.placeholder-decrypted-output-will-be-generated-here')" />
|
||||
</n-card>
|
||||
<n-button type="primary" @click="decrypt">
|
||||
Decrypt
|
||||
{{ t('tools.age-crypto.texts.tag-decrypt') }}
|
||||
</n-button>
|
||||
</n-tab-pane>
|
||||
|
||||
<!-- Decrypt Binary -->
|
||||
<n-tab-pane name="decryptBinary" tab="Decrypt Binary">
|
||||
<n-card title="Private Keys" mb-1>
|
||||
<n-input v-model:value="identitiesBinary" type="textarea" placeholder="Identity key or keys one per line" required />
|
||||
<n-tab-pane name="decryptBinary" :tab="t('tools.age-crypto.text.decrypt-binary')">
|
||||
<n-card :title="t('tools.age-crypto.texts.title-private-keys')" mb-1>
|
||||
<n-input v-model:value="identitiesBinary" type="textarea" :placeholder="t('tools.age-crypto.texts.placeholder-identity-key-or-keys-one-per-line')" required />
|
||||
</n-card>
|
||||
<n-card title="Encrypted Files" mb-1>
|
||||
<n-card :title="t('tools.age-crypto.texts.title-encrypted-files')" mb-1>
|
||||
<c-file-upload
|
||||
title="Drag and drop files here, or click to select some files"
|
||||
:title="t('tools.age-crypto.texts.title-drag-and-drop-files-here-or-click-to-select-some-files')"
|
||||
multiple
|
||||
@files-upload="onDecryptFilesUploaded"
|
||||
/>
|
||||
@@ -250,11 +255,11 @@ function onDecryptFilesUploaded(uploadedFiles: File[]) {
|
||||
</li>
|
||||
</ul>
|
||||
</n-card>
|
||||
<n-card title="Output" mb-1>
|
||||
<p>The decrypted files will be downloaded.</p>
|
||||
<n-card :title="t('tools.age-crypto.texts.title-output')" mb-1>
|
||||
<p>{{ t('tools.age-crypto.texts.tag-the-decrypted-files-will-be-downloaded') }}</p>
|
||||
</n-card>
|
||||
<n-button type="primary" @click="decryptBinary">
|
||||
Decrypt Binary
|
||||
{{ t('tools.age-crypto.texts.tag-decrypt-binary') }}
|
||||
</n-button>
|
||||
</n-tab-pane>
|
||||
</n-tabs>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import { EyeOff } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'AGE Cryptography',
|
||||
name: t('tools.age-crypto.title'),
|
||||
path: '/age-crypto',
|
||||
description: 'Provides a simple and easy-to-use open-source Age tool for generating keys, encrypting, and decrypting messages.',
|
||||
description: t('tools.age-crypto.description'),
|
||||
keywords: ['age'],
|
||||
component: () => import('./age-crypto.vue'),
|
||||
icon: EyeOff,
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import promptSplitter from 'chatgpt-prompt-splitter';
|
||||
import { useValidation } from '@/composable/validation';
|
||||
import { useQueryParam } from '@/composable/queryParams';
|
||||
|
||||
const prompt = ref('');
|
||||
const splitLength = ref(1024);
|
||||
const { t } = useI18n();
|
||||
|
||||
const prompt = useQueryParam({ tool: 'ai-prompt-split', name: 'prompt', defaultValue: '' });
|
||||
const splitLength = useQueryParam({ tool: 'ai-prompt-split', name: 'split', defaultValue: 1024 });
|
||||
|
||||
const splittedPrompts = computed(() => {
|
||||
try {
|
||||
@@ -23,7 +27,7 @@ const promptValidation = useValidation({
|
||||
rules: [
|
||||
{
|
||||
validator: v => v !== '',
|
||||
message: 'Prompt must not be empty',
|
||||
message: t('tools.ai-prompt-splitter.texts.message-prompt-must-not-be-empty'),
|
||||
},
|
||||
],
|
||||
});
|
||||
@@ -31,22 +35,22 @@ const promptValidation = useValidation({
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-card title="Prompt and options" mb-2>
|
||||
<c-card :title="t('tools.ai-prompt-splitter.texts.title-prompt-and-options')" mb-2>
|
||||
<c-input-text
|
||||
v-model:value="prompt"
|
||||
label="Full Prompt"
|
||||
:label="t('tools.ai-prompt-splitter.texts.label-full-prompt')"
|
||||
multiline
|
||||
placeholder="Put your full prompt here..."
|
||||
:placeholder="t('tools.ai-prompt-splitter.texts.placeholder-put-your-full-prompt-here')"
|
||||
rows="10"
|
||||
:validation="promptValidation"
|
||||
mb-2
|
||||
/>
|
||||
<n-form-item label="Character length for each chunk">
|
||||
<n-input-number v-model:value="splitLength" :min="1" />
|
||||
<n-form-item :label="t('tools.ai-prompt-splitter.texts.label-character-length-for-each-chunk')">
|
||||
<n-input-number-i18n v-model:value="splitLength" :min="1" />
|
||||
</n-form-item>
|
||||
</c-card>
|
||||
|
||||
<c-card title="Divided prompts">
|
||||
<c-card :title="t('tools.ai-prompt-splitter.texts.title-divided-prompts')">
|
||||
<div v-for="(splittedPrompt, index) in splittedPrompts" :key="index">
|
||||
<TextareaCopyable :value="splittedPrompt" />
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { Prompt } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: translate('tools.ai-prompt-splitter.title'),
|
||||
name: t('tools.ai-prompt-splitter.title'),
|
||||
path: '/ai-prompt-splitter',
|
||||
description: translate('tools.ai-prompt-splitter.description'),
|
||||
description: t('tools.ai-prompt-splitter.description'),
|
||||
keywords: ['ai', 'chatgpt', 'gpt', 'prompt', 'splitter'],
|
||||
component: () => import('./ai-prompt-splitter.vue'),
|
||||
icon: Prompt,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { Angle } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: translate('tools.angle-converter.title'),
|
||||
name: t('tools.angle-converter.title'),
|
||||
path: '/angle-converter',
|
||||
description: translate('tools.angle-converter.description'),
|
||||
description: t('tools.angle-converter.description'),
|
||||
keywords: ['angle', 'converter'],
|
||||
component: () => import('./angle-converter.vue'),
|
||||
icon: Angle,
|
||||
|
||||
@@ -0,0 +1,163 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { onMounted, ref } from 'vue';
|
||||
import {
|
||||
NButton, NCheckbox, NCheckboxGroup, NInput,
|
||||
} from 'naive-ui';
|
||||
import { Terminal } from '@xterm/xterm';
|
||||
import '@xterm/xterm/css/xterm.css';
|
||||
import styles from 'ansi-styles';
|
||||
import type { CSPair } from 'ansi-styles';
|
||||
import { useQueryParam, useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const terminalContainer = ref<HTMLElement | null>(null);
|
||||
|
||||
const decoratedText = useQueryParamOrStorage({ name: 'text', storageName: 'ansi:t', defaultValue: 'Sample text' });
|
||||
const foregroundColor = useQueryParamOrStorage({ name: 'fg', storageName: 'ansi:fg', defaultValue: '' });
|
||||
const backgroundColor = useQueryParamOrStorage({ name: 'bg', storageName: 'ansi:bg', defaultValue: '' });
|
||||
const fontStyles = useQueryParamOrStorage({ name: 'styles', storageName: 'ansi:st', defaultValue: [] });
|
||||
const colorMode = useQueryParamOrStorage({ name: 'mode', storageName: 'ansi:m', defaultValue: '256' });
|
||||
|
||||
const outputEscapeSequence = computed(() => {
|
||||
let openSeq = '';
|
||||
let closeSeq = '';
|
||||
|
||||
if (foregroundColor.value) {
|
||||
if (colorMode.value === 'basic') {
|
||||
openSeq += styles.color.ansi(styles.hexToAnsi(foregroundColor.value));
|
||||
}
|
||||
else if (colorMode.value === '256') {
|
||||
openSeq += styles.color.ansi256(styles.hexToAnsi256(foregroundColor.value));
|
||||
}
|
||||
else {
|
||||
openSeq += styles.color.ansi16m(...styles.hexToRgb(foregroundColor.value));
|
||||
}
|
||||
closeSeq = styles.color.close + closeSeq;
|
||||
}
|
||||
if (backgroundColor.value) {
|
||||
if (colorMode.value === 'basic') {
|
||||
openSeq += styles.bgColor.ansi(styles.hexToAnsi(backgroundColor.value));
|
||||
}
|
||||
else if (colorMode.value === '256') {
|
||||
openSeq += styles.bgColor.ansi256(styles.hexToAnsi256(backgroundColor.value));
|
||||
}
|
||||
else {
|
||||
openSeq += styles.bgColor.ansi16m(...styles.hexToRgb(backgroundColor.value));
|
||||
}
|
||||
closeSeq = styles.bgColor.close + closeSeq;
|
||||
}
|
||||
|
||||
fontStyles.value.forEach((style) => {
|
||||
if (styles.modifier[style]) {
|
||||
openSeq += (styles.modifier[style] as CSPair).open;
|
||||
closeSeq = (styles.modifier[style] as CSPair).close + closeSeq;
|
||||
}
|
||||
});
|
||||
|
||||
return `${openSeq}${decoratedText.value}${closeSeq}`;
|
||||
});
|
||||
|
||||
let term: Terminal;
|
||||
function writeTermAndScrollBottom(text: string) {
|
||||
if (!term) {
|
||||
return;
|
||||
}
|
||||
term.writeln(text);
|
||||
term.scrollToBottom();
|
||||
}
|
||||
onMounted(() => {
|
||||
term = new Terminal({
|
||||
rows: 5,
|
||||
});
|
||||
term.open(terminalContainer.value!);
|
||||
writeTermAndScrollBottom(outputEscapeSequence.value);
|
||||
});
|
||||
|
||||
watch(outputEscapeSequence, seq => writeTermAndScrollBottom(seq), { immediate: true });
|
||||
|
||||
const escapeSequenceToTest = useQueryParam({ tool: 'ansi', name: 'seq', defaultValue: '' });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<NSpace justify="center">
|
||||
<n-form-item :label="t('tools.ansi-escape-tester.texts.label-mode')" label-placement="left">
|
||||
<n-radio-group v-model:value="colorMode">
|
||||
<n-radio value="basic">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-basic') }}
|
||||
</n-radio>
|
||||
<n-radio value="256">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-256-color') }}
|
||||
</n-radio>
|
||||
<n-radio value="truecolor">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-truecolor') }}
|
||||
</n-radio>
|
||||
</n-radio-group>
|
||||
</n-form-item>
|
||||
</NSpace>
|
||||
|
||||
<n-form-item :label="t('tools.ansi-escape-tester.texts.label-foreground')" label-placement="left" mb-1>
|
||||
<n-color-picker v-model:value="foregroundColor" :modes="['hex']" :show-alpha="false" :actions="['clear']" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.ansi-escape-tester.texts.label-background')" label-placement="left" mb-1>
|
||||
<n-color-picker v-model:value="backgroundColor" :modes="['hex']" :show-alpha="false" :actions="['clear']" />
|
||||
</n-form-item>
|
||||
|
||||
<NSpace justify="center" mb-1>
|
||||
<n-form-item :label="t('tools.ansi-escape-tester.texts.label-styles')" label-placement="left">
|
||||
<NCheckboxGroup v-model:value="fontStyles">
|
||||
<NCheckbox value="bold">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-bold') }}
|
||||
</NCheckbox>
|
||||
<NCheckbox value="italic">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-italic') }}
|
||||
</NCheckbox>
|
||||
<NCheckbox value="underline">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-underline') }}
|
||||
</NCheckbox>
|
||||
<NCheckbox value="overline">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-overline') }}
|
||||
</NCheckbox>
|
||||
<NCheckbox value="inverse">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-inverse') }}
|
||||
</NCheckbox>
|
||||
<NCheckbox value="dim">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-dim') }}
|
||||
</NCheckbox>
|
||||
<NCheckbox value="strikethrough">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-strikethrough') }}
|
||||
</NCheckbox>
|
||||
</NCheckboxGroup>
|
||||
</n-form-item>
|
||||
</NSpace>
|
||||
|
||||
<n-form-item :label="t('tools.ansi-escape-tester.texts.label-decorated-text')" label-placement="left" mb-1>
|
||||
<NInput v-model:value="decoratedText" :placeholder="t('tools.ansi-escape-tester.texts.placeholder-enter-text')" />
|
||||
</n-form-item>
|
||||
|
||||
<c-card :title="t('tools.ansi-escape-tester.texts.title-output-ansi-escape-sequence')">
|
||||
<input-copyable v-model:value="outputEscapeSequence" readonly />
|
||||
</c-card>
|
||||
<c-card :title="t('tools.ansi-escape-tester.texts.title-terminal-preview')">
|
||||
<n-form-item label-placement="left" :label="t('tools.ansi-escape-tester.texts.label-custom-ansi-sequence')">
|
||||
<NInput v-model:value="escapeSequenceToTest" :placeholder="t('tools.ansi-escape-tester.texts.placeholder-enter-ansi-escape-sequence')" />
|
||||
<NButton type="primary" ml-1 @click="term?.writeln(escapeSequenceToTest)">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-test') }}
|
||||
</NButton>
|
||||
<NButton type="primary" ml-1 @click="term?.clear()">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-clear') }}
|
||||
</NButton>
|
||||
</n-form-item>
|
||||
<div ref="terminalContainer" class="terminal" />
|
||||
</c-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.terminal {
|
||||
height: 6em;
|
||||
background-color: black;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,14 @@
|
||||
import { Terminal2 } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.ansi-escape-tester.title'),
|
||||
path: '/ansi-escape-tester',
|
||||
description: t('tools.ansi-escape-tester.description'),
|
||||
keywords: ['ansi', 'escape', 'tester'],
|
||||
component: () => import('./ansi-escape-tester.vue'),
|
||||
icon: Terminal2,
|
||||
createdAt: new Date('2025-07-06'),
|
||||
category: 'Development',
|
||||
});
|
||||
@@ -1,7 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { Vault } from 'ansible-vault';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const decryptedInput = ref('');
|
||||
const encryptPassword = ref('');
|
||||
const encryptId = ref('');
|
||||
@@ -34,11 +37,11 @@ const decryptedOutput = computedAsync(
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-card title="Encrypt Ansible Vault Secret">
|
||||
<c-card :title="t('tools.ansible-vault-crypt-decrypt.texts.title-encrypt-ansible-vault-secret')">
|
||||
<c-input-text
|
||||
v-model:value="decryptedInput"
|
||||
placeholder="Put your string to encrypt..."
|
||||
label="String to encrypt"
|
||||
:placeholder="t('tools.ansible-vault-crypt-decrypt.texts.placeholder-put-your-string-to-encrypt')"
|
||||
:label="t('tools.ansible-vault-crypt-decrypt.texts.label-string-to-encrypt')"
|
||||
raw-text
|
||||
mb-5
|
||||
/>
|
||||
@@ -46,15 +49,15 @@ const decryptedOutput = computedAsync(
|
||||
<n-space>
|
||||
<c-input-text
|
||||
v-model:value="encryptPassword"
|
||||
placeholder="Encryption password"
|
||||
label="Encryption password"
|
||||
:placeholder="t('tools.ansible-vault-crypt-decrypt.texts.placeholder-encryption-password')"
|
||||
:label="t('tools.ansible-vault-crypt-decrypt.texts.label-encryption-password')"
|
||||
raw-text
|
||||
mb-5
|
||||
/>
|
||||
<c-input-text
|
||||
v-model:value="encryptId"
|
||||
placeholder="Encryption Id"
|
||||
label="Encryption Id"
|
||||
:placeholder="t('tools.ansible-vault-crypt-decrypt.texts.placeholder-encryption-id')"
|
||||
:label="t('tools.ansible-vault-crypt-decrypt.texts.label-encryption-id')"
|
||||
raw-text
|
||||
mb-5
|
||||
/>
|
||||
@@ -63,7 +66,7 @@ const decryptedOutput = computedAsync(
|
||||
<n-divider />
|
||||
|
||||
<TextareaCopyable
|
||||
label="Encrypted string"
|
||||
:label="t('tools.ansible-vault-crypt-decrypt.texts.label-encrypted-string')"
|
||||
:value="cryptedOutput"
|
||||
multiline
|
||||
readonly
|
||||
@@ -72,19 +75,19 @@ const decryptedOutput = computedAsync(
|
||||
/>
|
||||
</c-card>
|
||||
|
||||
<c-card title="Decrypt Ansible Vault Secret">
|
||||
<c-card :title="t('tools.ansible-vault-crypt-decrypt.texts.title-decrypt-ansible-vault-secret')">
|
||||
<c-input-text
|
||||
v-model:value="cryptedInput"
|
||||
placeholder="Put your encrypted string here..."
|
||||
label="String to decrypt"
|
||||
:placeholder="t('tools.ansible-vault-crypt-decrypt.texts.placeholder-put-your-encrypted-string-here')"
|
||||
:label="t('tools.ansible-vault-crypt-decrypt.texts.label-string-to-decrypt')"
|
||||
raw-text multiline mb-5
|
||||
rows="5"
|
||||
/>
|
||||
|
||||
<c-input-text
|
||||
v-model:value="decryptPassword"
|
||||
placeholder="Decryption password"
|
||||
label="Decryption password"
|
||||
:placeholder="t('tools.ansible-vault-crypt-decrypt.texts.placeholder-decryption-password')"
|
||||
:label="t('tools.ansible-vault-crypt-decrypt.texts.label-decryption-password')"
|
||||
raw-text
|
||||
mb-5
|
||||
/>
|
||||
@@ -92,7 +95,7 @@ const decryptedOutput = computedAsync(
|
||||
<n-divider />
|
||||
|
||||
<TextareaCopyable
|
||||
label="Decrypted string"
|
||||
:label="t('tools.ansible-vault-crypt-decrypt.texts.label-decrypted-string')"
|
||||
:value="decryptedOutput"
|
||||
multiline
|
||||
readonly
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { LockSquare } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: translate('tools.ansible-vault-crypt-decrypt.title'),
|
||||
name: t('tools.ansible-vault-crypt-decrypt.title'),
|
||||
path: '/ansible-vault-crypt-decrypt',
|
||||
description: translate('tools.ansible-vault-crypt-decrypt.description'),
|
||||
description: t('tools.ansible-vault-crypt-decrypt.description'),
|
||||
keywords: ['ansible', 'vault', 'crypt', 'decrypt'],
|
||||
component: () => import('./ansible-vault-crypt-decrypt.vue'),
|
||||
icon: LockSquare,
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
interface KeyValuePair {
|
||||
key: string
|
||||
value?: string
|
||||
@@ -72,50 +75,50 @@ function emptyKeyPair() {
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-card title="API Calling">
|
||||
<c-card :title="t('tools.api-tester.texts.title-api-calling')">
|
||||
<c-input-text
|
||||
v-model:value="baseUrl"
|
||||
label="Base API Url"
|
||||
placeholder="Base API Url"
|
||||
:label="t('tools.api-tester.texts.label-base-api-url')"
|
||||
:placeholder="t('tools.api-tester.texts.placeholder-base-api-url')"
|
||||
mb-2
|
||||
/>
|
||||
|
||||
<c-select
|
||||
v-model:value="method"
|
||||
label="HTTP Method:"
|
||||
:label="t('tools.api-tester.texts.label-http-method')"
|
||||
:options="['GET', 'POST', 'PUT', 'DELETE', 'PATCH']"
|
||||
mb-2
|
||||
/>
|
||||
|
||||
<c-card title="Headers" mb-2>
|
||||
<c-card :title="t('tools.api-tester.texts.title-headers')" mb-2>
|
||||
<n-dynamic-input v-model:value="headers" :on-create="emptyKeyPair">
|
||||
<template #create-button-default>
|
||||
Add a new HTTP Header
|
||||
{{ t('tools.api-tester.texts.tag-add-a-new-http-header') }}
|
||||
</template>
|
||||
<template #default="{ value }">
|
||||
<div v-if="value" w-100 flex justify-center gap-2>
|
||||
<c-input-text v-model:value="value.key" placeholder="Header Name" type="text" />
|
||||
<c-input-text v-model:value="value.value" placeholder="Value" type="text" />
|
||||
<c-input-text v-model:value="value.key" :placeholder="t('tools.api-tester.texts.placeholder-header-name')" type="text" />
|
||||
<c-input-text v-model:value="value.value" :placeholder="t('tools.api-tester.texts.placeholder-value')" type="text" />
|
||||
</div>
|
||||
</template>
|
||||
</n-dynamic-input>
|
||||
<c-select
|
||||
v-model:value="contentType"
|
||||
label="Content-Type:"
|
||||
:label="t('tools.api-tester.texts.label-content-type')"
|
||||
:options="['application/json', 'text/plain']"
|
||||
mt-2
|
||||
/>
|
||||
</c-card>
|
||||
|
||||
<c-card title="Query Parameters" mb-2>
|
||||
<c-card :title="t('tools.api-tester.texts.title-query-parameters')" mb-2>
|
||||
<n-dynamic-input v-model:value="queryParams" :on-create="emptyKeyPair">
|
||||
<template #create-button-default>
|
||||
Add a new Query Parameter
|
||||
{{ t('tools.api-tester.texts.tag-add-a-new-query-parameter') }}
|
||||
</template>
|
||||
<template #default="{ value }">
|
||||
<div v-if="value" w-100 flex justify-center gap-2>
|
||||
<c-input-text v-model:value="value.key" placeholder="Param Name" type="text" />
|
||||
<c-input-text v-model:value="value.value" placeholder="Value" type="text" />
|
||||
<c-input-text v-model:value="value.key" :placeholder="t('tools.api-tester.texts.placeholder-param-name')" type="text" />
|
||||
<c-input-text v-model:value="value.value" :placeholder="t('tools.api-tester.texts.placeholder-value')" type="text" />
|
||||
</div>
|
||||
</template>
|
||||
</n-dynamic-input>
|
||||
@@ -123,20 +126,20 @@ function emptyKeyPair() {
|
||||
<c-input-text
|
||||
v-if="method !== 'GET' && method !== 'HEAD'"
|
||||
v-model:value="body"
|
||||
label="Body"
|
||||
placeholder="HTTP Query body"
|
||||
:label="t('tools.api-tester.texts.label-body')"
|
||||
:placeholder="t('tools.api-tester.texts.placeholder-http-query-body')"
|
||||
multiline
|
||||
monospace
|
||||
mb-2
|
||||
/>
|
||||
|
||||
<n-checkbox v-model:checked="noCORS">
|
||||
No CORS
|
||||
{{ t('tools.api-tester.texts.tag-no-cors') }}
|
||||
</n-checkbox>
|
||||
|
||||
<div mt-5 flex justify-center>
|
||||
<c-button secondary @click="callAPI">
|
||||
Call API
|
||||
{{ t('tools.api-tester.texts.tag-call-api') }}
|
||||
</c-button>
|
||||
</div>
|
||||
</c-card>
|
||||
@@ -144,11 +147,11 @@ function emptyKeyPair() {
|
||||
v-if="inprogress"
|
||||
size="small"
|
||||
/>
|
||||
<c-alert v-if="!inprogress && apiCallResult && apiCallResult.code !== 200" type="error" mt-12 title="Error while calling API">
|
||||
<c-alert v-if="!inprogress && apiCallResult && apiCallResult.code !== 200" type="error" mt-12 :title="t('tools.api-tester.texts.title-error-while-calling-api')">
|
||||
<p><strong>Status code = {{ apiCallResult.code }}</strong></p>
|
||||
<TextareaCopyable :value="apiCallResult.error" copy-placement="none" />
|
||||
</c-alert>
|
||||
<c-card v-if="!inprogress && apiCallResult && apiCallResult.code === 200" mt-12 title="API Call result">
|
||||
<c-card v-if="!inprogress && apiCallResult && apiCallResult.code === 200" mt-12 :title="t('tools.api-tester.texts.title-api-call-result')">
|
||||
<TextareaCopyable :value="apiCallResult.result" word-wrap />
|
||||
</c-card>
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { World } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: translate('tools.api-tester.title'),
|
||||
name: t('tools.api-tester.title'),
|
||||
path: '/api-tester',
|
||||
description: translate('tools.api-tester.description'),
|
||||
description: t('tools.api-tester.description'),
|
||||
keywords: ['api', 'http', 'call', 'tester'],
|
||||
component: () => import('./api-tester.vue'),
|
||||
icon: World,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { SquaresDiagonal } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: translate('tools.area-converter.title'),
|
||||
name: t('tools.area-converter.title'),
|
||||
path: '/area-converter',
|
||||
description: translate('tools.area-converter.description'),
|
||||
description: t('tools.area-converter.description'),
|
||||
keywords: ['area', 'converter'],
|
||||
component: () => import('./area-converter.vue'),
|
||||
icon: SquaresDiagonal,
|
||||
|
||||
@@ -2,14 +2,16 @@
|
||||
import figlet from 'figlet';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
import { languages, printToLanguage } from '@/utils/ascii-lang-utils';
|
||||
import { useITStorage } from '@/composable/queryParams';
|
||||
|
||||
const input = ref('Ascii ART');
|
||||
const language = useStorage('ascii-text-drawer:language', 'raw');
|
||||
const font = useStorage('ascii-text-drawer:font', 'Standard');
|
||||
const width = useStorage('ascii-text-drawer:width', 80);
|
||||
const language = useITStorage('ascii-text-drawer:language', 'raw');
|
||||
const font = useITStorage('ascii-text-drawer:font', 'Standard');
|
||||
const width = useITStorage('ascii-text-drawer:width', 80);
|
||||
const output = ref('');
|
||||
const errored = ref(false);
|
||||
const processing = ref(false);
|
||||
const { t } = useI18n();
|
||||
|
||||
const base = import.meta.env.BASE_URL ?? '/';
|
||||
|
||||
@@ -56,8 +58,8 @@ const fonts = ['1Row', '3-D', '3D Diagonal', '3D-ASCII', '3x5', '4Max', '5 Line
|
||||
<c-card>
|
||||
<c-input-text
|
||||
v-model:value="input"
|
||||
label="Your text:"
|
||||
placeholder="Your text to draw"
|
||||
:label="t('tools.ascii-text-drawer.text')"
|
||||
:placeholder="t('tools.ascii-text-drawer.placeholder')"
|
||||
raw-text
|
||||
multiline
|
||||
rows="4"
|
||||
@@ -71,15 +73,15 @@ const fonts = ['1Row', '3-D', '3D Diagonal', '3D-ASCII', '3x5', '4Max', '5 Line
|
||||
<c-select
|
||||
v-model:value="font"
|
||||
label-position="top"
|
||||
label="Font:"
|
||||
:label="t('tools.ascii-text-drawer.font')"
|
||||
:options="fonts"
|
||||
searchable="true"
|
||||
placeholder="Select font to use"
|
||||
:placeholder="t('tools.ascii-text-drawer.texts.placeholder-select-font-to-use')"
|
||||
/>
|
||||
</n-gi>
|
||||
<n-gi span="2">
|
||||
<n-form-item label="Width:" label-placement="top" label-width="100" :show-feedback="false">
|
||||
<n-input-number v-model:value="width" min="0" max="10000" w-full placeholder="Width of the text" />
|
||||
<n-form-item :label="t('tools.ascii-text-drawer.width')" label-placement="top" label-width="100" :show-feedback="false">
|
||||
<n-input-number-i18n v-model:value="width" min="0" max="10000" w-full :placeholder="t('tools.ascii-text-drawer.texts.placeholder-width-of-the-text')" />
|
||||
</n-form-item>
|
||||
</n-gi>
|
||||
</n-grid>
|
||||
@@ -88,14 +90,14 @@ const fonts = ['1Row', '3-D', '3D Diagonal', '3D-ASCII', '3x5', '4Max', '5 Line
|
||||
|
||||
<div v-if="processing" flex items-center justify-center>
|
||||
<n-spin size="medium" />
|
||||
<span class="ml-2">Loading font...</span>
|
||||
<span class="ml-2">{{ t('tools.ascii-text-drawer.loading') }}</span>
|
||||
</div>
|
||||
|
||||
<c-alert v-if="errored" mt-1 text-center type="error">
|
||||
Current settings resulted in error.
|
||||
{{ t('tools.ascii-text-drawer.error') }}
|
||||
</c-alert>
|
||||
|
||||
<n-form-item v-if="!processing && !errored" label="Ascii Art text:">
|
||||
<n-form-item v-if="!processing && !errored" :label="t('tools.ascii-text-drawer.output')">
|
||||
<TextareaCopyable
|
||||
:value="output"
|
||||
mb-1 mt-1
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { Artboard } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: translate('tools.ascii-text-drawer.title'),
|
||||
name: t('tools.ascii-text-drawer.title'),
|
||||
path: '/ascii-text-drawer',
|
||||
description: translate('tools.ascii-text-drawer.description'),
|
||||
description: t('tools.ascii-text-drawer.description'),
|
||||
keywords: ['ascii', 'asciiart', 'text', 'drawer'],
|
||||
component: () => import('./ascii-text-drawer.vue'),
|
||||
icon: Artboard,
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
<!-- AspectRatioCalculator.vue -->
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { ref } from 'vue';
|
||||
import { NButton, NInputNumber, NRadio, NRadioGroup, NSpace } from 'naive-ui';
|
||||
import { NButton, NRadio, NRadioGroup, NSpace } from 'naive-ui';
|
||||
import {
|
||||
calculateAspectRatio,
|
||||
calculateDimensions,
|
||||
} from './aspect-ratio-calculator.service';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const width = ref<number | null>(null);
|
||||
const height = ref<number | null>(null);
|
||||
const r1 = ref<number | null>(null);
|
||||
@@ -72,47 +75,47 @@ function clearRatio() {
|
||||
<NSpace vertical :size="24">
|
||||
<NRadioGroup v-model:value="mode">
|
||||
<NRadio value="ratio">
|
||||
Calculate Aspect Ratio
|
||||
{{ t('tools.aspect-ratio-calculator.texts.tag-calculate-aspect-ratio') }}
|
||||
</NRadio>
|
||||
<NRadio value="dimensions">
|
||||
Calculate Dimensions
|
||||
{{ t('tools.aspect-ratio-calculator.texts.tag-calculate-dimensions') }}
|
||||
</NRadio>
|
||||
</NRadioGroup>
|
||||
|
||||
<div class="input-group">
|
||||
<div class="input-pair">
|
||||
<label>Pixels width</label>
|
||||
<NInputNumber v-model:value="width" placeholder="Pixels width" :min="1" />
|
||||
<label>{{ t('tools.aspect-ratio-calculator.texts.tag-pixels-width') }}</label>
|
||||
<n-input-number-i18n v-model:value="width" :placeholder="t('tools.aspect-ratio-calculator.texts.placeholder-pixels-width')" :min="1" />
|
||||
</div>
|
||||
<div class="input-pair">
|
||||
<label>Pixels height</label>
|
||||
<NInputNumber v-model:value="height" placeholder="Pixels height" :min="1" />
|
||||
<label>{{ t('tools.aspect-ratio-calculator.texts.tag-pixels-height') }}</label>
|
||||
<n-input-number-i18n v-model:value="height" :placeholder="t('tools.aspect-ratio-calculator.texts.placeholder-pixels-height')" :min="1" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="input-group">
|
||||
<div class="input-pair">
|
||||
<label>Ratio width</label>
|
||||
<NInputNumber v-model:value="r1" placeholder="Ratio width" :min="1" />
|
||||
<label>{{ t('tools.aspect-ratio-calculator.texts.tag-ratio-width') }}</label>
|
||||
<n-input-number-i18n v-model:value="r1" :placeholder="t('tools.aspect-ratio-calculator.texts.placeholder-ratio-width')" :min="1" />
|
||||
</div>
|
||||
<div class="separator">
|
||||
:
|
||||
{{ t('tools.aspect-ratio-calculator.texts.tag-') }}
|
||||
</div>
|
||||
<div class="input-pair">
|
||||
<label>Ratio height</label>
|
||||
<NInputNumber v-model:value="r2" placeholder="Ratio height" :min="1" />
|
||||
<label>{{ t('tools.aspect-ratio-calculator.texts.tag-ratio-height') }}</label>
|
||||
<n-input-number-i18n v-model:value="r2" :placeholder="t('tools.aspect-ratio-calculator.texts.placeholder-ratio-height')" :min="1" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="button-container">
|
||||
<NButton type="primary" @click="calculateResult">
|
||||
Calculate
|
||||
{{ t('tools.aspect-ratio-calculator.texts.tag-calculate') }}
|
||||
</NButton>
|
||||
<NButton v-if="mode === 'ratio'" @click="clearRatio">
|
||||
Clear Ratio
|
||||
{{ t('tools.aspect-ratio-calculator.texts.tag-clear-ratio') }}
|
||||
</NButton>
|
||||
<NButton @click="clearAll">
|
||||
Clear All
|
||||
{{ t('tools.aspect-ratio-calculator.texts.tag-clear-all') }}
|
||||
</NButton>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { AspectRatio } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: translate('tools.aspect-ratio-calculator.title'),
|
||||
name: t('tools.aspect-ratio-calculator.title'),
|
||||
path: '/aspect-ratio-calculator',
|
||||
description: translate('tools.aspect-ratio-calculator.description'),
|
||||
description: t('tools.aspect-ratio-calculator.description'),
|
||||
keywords: ['aspect', 'ratio', 'calculator'],
|
||||
component: () => import('./aspect-ratio-calculator.vue'),
|
||||
icon: AspectRatio,
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import bwipjs, { type RenderOptions } from 'bwip-js/browser';
|
||||
import { Base64 } from 'js-base64';
|
||||
import formats from './barcode.formats.json';
|
||||
import { useDownloadFileFromBase64 } from '@/composable/downloadBase64';
|
||||
import { useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
import { useQueryParam, useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const foreground = useQueryParamOrStorage({ name: 'fg', storageName: 'barcode-gen:fg', defaultValue: '#000000' });
|
||||
const background = useQueryParamOrStorage({ name: 'bg', storageName: 'barcode-gen:bg', defaultValue: '#FFFFFF' });
|
||||
@@ -12,7 +15,7 @@ const height = useQueryParamOrStorage({ name: 'height', storageName: 'barcode-ge
|
||||
const margin = useQueryParamOrStorage({ name: 'margin', storageName: 'barcode-gen:margin', defaultValue: 10 });
|
||||
const format = useQueryParamOrStorage({ name: 'format', storageName: 'barcode-gen:format', defaultValue: 'code128' });
|
||||
const displayValue = useQueryParamOrStorage({ name: 'display', storageName: 'barcode-gen:display', defaultValue: true });
|
||||
const value = ref('123456789');
|
||||
const value = useQueryParam({ tool: 'barcode-gen', name: 'text', defaultValue: '123456789' });
|
||||
const barcodeCanvas = ref<HTMLCanvasElement>();
|
||||
|
||||
const options = computed<RenderOptions>(() => ({
|
||||
@@ -67,17 +70,17 @@ const { download: downloadSVG } = useDownloadFileFromBase64({ source: barcodeSVG
|
||||
label-position="left"
|
||||
label-width="130px"
|
||||
label-align="right"
|
||||
label="Text:"
|
||||
:label="t('tools.barcode-generator.texts.label-text')"
|
||||
multiline
|
||||
rows="1"
|
||||
autosize
|
||||
placeholder="Your barcode..."
|
||||
:placeholder="t('tools.barcode-generator.texts.placeholder-your-barcode')"
|
||||
mb-6
|
||||
/>
|
||||
<n-form label-width="130" label-placement="left">
|
||||
<c-select
|
||||
v-model:value="format"
|
||||
label="Format:"
|
||||
:label="t('tools.barcode-generator.texts.label-format')"
|
||||
label-position="left"
|
||||
label-width="130px"
|
||||
label-align="right"
|
||||
@@ -86,22 +89,22 @@ const { download: downloadSVG } = useDownloadFileFromBase64({ source: barcodeSVG
|
||||
mb-4
|
||||
/>
|
||||
|
||||
<n-form-item label="Foreground color:">
|
||||
<n-form-item :label="t('tools.barcode-generator.texts.label-foreground-color')">
|
||||
<n-color-picker v-model:value="foreground" :modes="['hex']" :show-alpha="false" />
|
||||
</n-form-item>
|
||||
<n-form-item label="Background color:">
|
||||
<n-form-item :label="t('tools.barcode-generator.texts.label-background-color')">
|
||||
<n-color-picker v-model:value="background" :modes="['hex']" :show-alpha="false" />
|
||||
</n-form-item>
|
||||
<n-form-item label="Scale:">
|
||||
<n-input-number v-model:value="scale" :min="0" />
|
||||
<n-form-item :label="t('tools.barcode-generator.texts.label-scale')">
|
||||
<n-input-number-i18n v-model:value="scale" :min="0" />
|
||||
</n-form-item>
|
||||
<n-form-item label="Height (mm):">
|
||||
<n-input-number v-model:value="height" :min="0" />
|
||||
<n-form-item :label="t('tools.barcode-generator.texts.label-height-mm')">
|
||||
<n-input-number-i18n v-model:value="height" :min="0" />
|
||||
</n-form-item>
|
||||
<n-form-item label="Margin:">
|
||||
<n-input-number v-model:value="margin" :min="0" />
|
||||
<n-form-item :label="t('tools.barcode-generator.texts.label-margin')">
|
||||
<n-input-number-i18n v-model:value="margin" :min="0" />
|
||||
</n-form-item>
|
||||
<n-form-item label="Display text:">
|
||||
<n-form-item :label="t('tools.barcode-generator.texts.label-display-text')">
|
||||
<n-checkbox v-model:checked="displayValue" />
|
||||
</n-form-item>
|
||||
</n-form>
|
||||
@@ -114,10 +117,10 @@ const { download: downloadSVG } = useDownloadFileFromBase64({ source: barcodeSVG
|
||||
<canvas ref="barcodeCanvas" />
|
||||
<div flex justify-center>
|
||||
<c-button mr-2 @click="downloadPNG">
|
||||
Download PNG barcode
|
||||
{{ t('tools.barcode-generator.texts.tag-download-png-barcode') }}
|
||||
</c-button>
|
||||
<c-button @click="downloadSVG">
|
||||
Download SVG barcode
|
||||
{{ t('tools.barcode-generator.texts.tag-download-svg-barcode') }}
|
||||
</c-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { Barcode } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: translate('tools.barcode-generator.title'),
|
||||
name: t('tools.barcode-generator.title'),
|
||||
path: '/barcode-generator',
|
||||
description: translate('tools.barcode-generator.description'),
|
||||
description: t('tools.barcode-generator.description'),
|
||||
keywords: ['barcode', 'generator'],
|
||||
component: () => import('./barcode-generator.vue'),
|
||||
icon: Barcode,
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { BarcodeFormat, BrowserMultiFormatReader } from '@zxing/library';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const imageBase64 = ref('');
|
||||
const barCode = computedAsync(async () => {
|
||||
if (imageBase64.value === '') {
|
||||
@@ -38,7 +41,7 @@ async function onUpload(file: File) {
|
||||
<template>
|
||||
<div>
|
||||
<c-file-upload
|
||||
title="Drag and drop a BarCode here, or click to select a file"
|
||||
:title="t('tools.barcode-reader.texts.title-drag-and-drop-a-barcode-here-or-click-to-select-a-file')"
|
||||
:paste-image="true"
|
||||
mb-3
|
||||
@file-upload="onUpload"
|
||||
@@ -47,7 +50,7 @@ async function onUpload(file: File) {
|
||||
<div v-if="barCode?.text">
|
||||
<n-divider />
|
||||
|
||||
<h3>Decoded <span v-if="barCode?.format">({{ barCode?.format }})</span></h3>
|
||||
<h3>{{ t('tools.barcode-reader.texts.tag-decoded') }}<span v-if="barCode?.format">({{ barCode?.format }})</span></h3>
|
||||
<TextareaCopyable
|
||||
:value="barCode?.text"
|
||||
:word-wrap="true"
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { Barcode } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: translate('tools.barcode-reader.title'),
|
||||
name: t('tools.barcode-reader.title'),
|
||||
path: '/barcode-reader',
|
||||
description: translate('tools.barcode-reader.description'),
|
||||
description: t('tools.barcode-reader.description'),
|
||||
keywords: ['barcode', 'reader'],
|
||||
component: () => import('./barcode-reader.vue'),
|
||||
icon: Barcode,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useBase64 } from '@vueuse/core';
|
||||
import type { Ref } from 'vue';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
@@ -6,6 +7,8 @@ import { getExtensionFromMimeType, getMimeTypeFromBase64, previewImageFromBase64
|
||||
import { useValidation } from '@/composable/validation';
|
||||
import { isValidBase64 } from '@/utils/base64';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const fileName = ref('file');
|
||||
const fileExtension = ref('');
|
||||
const base64Input = ref('');
|
||||
@@ -19,7 +22,7 @@ const base64InputValidation = useValidation({
|
||||
source: base64Input,
|
||||
rules: [
|
||||
{
|
||||
message: 'Invalid base 64 string',
|
||||
message: t('tools.base64-file-converter.texts.message-invalid-base-64-string'),
|
||||
validator: value => isValidBase64(value.trim()),
|
||||
},
|
||||
],
|
||||
@@ -69,7 +72,7 @@ function downloadFile() {
|
||||
|
||||
const fileInput = ref() as Ref<File>;
|
||||
const { base64: fileBase64 } = useBase64(fileInput);
|
||||
const { copy: copyFileBase64 } = useCopy({ source: fileBase64, text: 'Base64 string copied to the clipboard' });
|
||||
const { copy: copyFileBase64 } = useCopy({ source: fileBase64, text: t('tools.base64-file-converter.texts.text-base64-string-copied-to-the-clipboard') });
|
||||
|
||||
async function onUpload(file: File) {
|
||||
if (file) {
|
||||
@@ -79,21 +82,21 @@ async function onUpload(file: File) {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-card title="Base64 to file">
|
||||
<c-card :title="t('tools.base64-file-converter.texts.title-base64-to-file')">
|
||||
<n-grid cols="3" x-gap="12">
|
||||
<n-gi span="2">
|
||||
<c-input-text
|
||||
v-model:value="fileName"
|
||||
label="File Name"
|
||||
placeholder="Download filename"
|
||||
:label="t('tools.base64-file-converter.texts.label-file-name')"
|
||||
:placeholder="t('tools.base64-file-converter.texts.placeholder-download-filename')"
|
||||
mb-2
|
||||
/>
|
||||
</n-gi>
|
||||
<n-gi>
|
||||
<c-input-text
|
||||
v-model:value="fileExtension"
|
||||
label="Extension"
|
||||
placeholder="Extension"
|
||||
:label="t('tools.base64-file-converter.texts.label-extension')"
|
||||
:placeholder="t('tools.base64-file-converter.texts.placeholder-extension')"
|
||||
mb-2
|
||||
/>
|
||||
</n-gi>
|
||||
@@ -101,7 +104,7 @@ async function onUpload(file: File) {
|
||||
<c-input-text
|
||||
v-model:value="base64Input"
|
||||
multiline
|
||||
placeholder="Put your base64 file string here..."
|
||||
:placeholder="t('tools.base64-file-converter.texts.placeholder-put-your-base64-file-string-here')"
|
||||
rows="5"
|
||||
:validation="base64InputValidation"
|
||||
mb-2
|
||||
@@ -113,21 +116,21 @@ async function onUpload(file: File) {
|
||||
|
||||
<div flex justify-center gap-3>
|
||||
<c-button :disabled="base64Input === '' || !base64InputValidation.isValid" @click="previewImage()">
|
||||
Preview image
|
||||
{{ t('tools.base64-file-converter.texts.tag-preview-image') }}
|
||||
</c-button>
|
||||
<c-button :disabled="base64Input === '' || !base64InputValidation.isValid" @click="downloadFile()">
|
||||
Download file
|
||||
{{ t('tools.base64-file-converter.texts.tag-download-file') }}
|
||||
</c-button>
|
||||
</div>
|
||||
</c-card>
|
||||
|
||||
<c-card title="File to base64">
|
||||
<c-file-upload title="Drag and drop a file here, or click to select a file" @file-upload="onUpload" />
|
||||
<c-input-text :value="fileBase64" multiline readonly placeholder="File in base64 will be here" rows="5" my-2 />
|
||||
<c-card :title="t('tools.base64-file-converter.texts.title-file-to-base64')">
|
||||
<c-file-upload :title="t('tools.base64-file-converter.texts.title-drag-and-drop-a-file-here-or-click-to-select-a-file')" @file-upload="onUpload" />
|
||||
<c-input-text :value="fileBase64" multiline readonly :placeholder="t('tools.base64-file-converter.texts.placeholder-file-in-base64-will-be-here')" rows="5" my-2 />
|
||||
|
||||
<div flex justify-center>
|
||||
<c-button @click="copyFileBase64()">
|
||||
Copy
|
||||
{{ t('tools.base64-file-converter.texts.tag-copy') }}
|
||||
</c-button>
|
||||
</div>
|
||||
</c-card>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { FileDigit } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: translate('tools.base64-file-converter.title'),
|
||||
name: t('tools.base64-file-converter.title'),
|
||||
path: '/base64-file-converter',
|
||||
description: translate('tools.base64-file-converter.description'),
|
||||
description: t('tools.base64-file-converter.description'),
|
||||
keywords: ['base64', 'converter', 'upload', 'image', 'file', 'conversion', 'web', 'data', 'format'],
|
||||
component: () => import('./base64-file-converter.vue'),
|
||||
icon: FileDigit,
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { Base64 } from 'js-base64';
|
||||
import hexArray from 'hex-array';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
import { isValidBase64 } from '@/utils/base64';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const textInput = ref('');
|
||||
const base64Output = computed(() => {
|
||||
try {
|
||||
@@ -13,7 +16,7 @@ const base64Output = computed(() => {
|
||||
return e.toString();
|
||||
}
|
||||
});
|
||||
const { copy: copyTextBase64 } = useCopy({ source: base64Output, text: 'Base64 Hex Array copied to the clipboard' });
|
||||
const { copy: copyTextBase64 } = useCopy({ source: base64Output, text: t('tools.base64-hex-converter.texts.text-base64-hex-array-copied-to-the-clipboard') });
|
||||
|
||||
const uppercase = ref(false);
|
||||
const grouping = ref(0);
|
||||
@@ -33,70 +36,70 @@ const textOutput = computed(() => {
|
||||
}
|
||||
},
|
||||
);
|
||||
const { copy: copyText } = useCopy({ source: textOutput, text: 'Hex Array copied to the clipboard' });
|
||||
const { copy: copyText } = useCopy({ source: textOutput, text: t('tools.base64-hex-converter.texts.text-hex-array-copied-to-the-clipboard') });
|
||||
const b64ValidationRules = [
|
||||
{
|
||||
message: 'Invalid base64 string',
|
||||
message: t('tools.base64-hex-converter.texts.message-invalid-base64-string'),
|
||||
validator: (value: string) => isValidBase64(value.trim()),
|
||||
},
|
||||
];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-card title="Hex Array to Base64">
|
||||
<c-card :title="t('tools.base64-hex-converter.texts.title-hex-array-to-base64')">
|
||||
<c-input-text
|
||||
v-model:value="textInput"
|
||||
multiline
|
||||
placeholder="Put your Hex Array here..."
|
||||
:placeholder="t('tools.base64-hex-converter.texts.placeholder-put-your-hex-array-here')"
|
||||
rows="5"
|
||||
label="Hex Array to encode"
|
||||
:label="t('tools.base64-hex-converter.texts.label-hex-array-to-encode')"
|
||||
raw-text
|
||||
mb-5
|
||||
/>
|
||||
|
||||
<c-input-text
|
||||
label="Base64 of Hex Array"
|
||||
:label="t('tools.base64-hex-converter.texts.label-base64-of-hex-array')"
|
||||
:value="base64Output"
|
||||
multiline
|
||||
readonly
|
||||
placeholder="The Base64 encoding of your Hex Array will be here"
|
||||
:placeholder="t('tools.base64-hex-converter.texts.placeholder-the-base64-encoding-of-your-hex-array-will-be-here')"
|
||||
rows="5"
|
||||
mb-5
|
||||
/>
|
||||
|
||||
<div flex justify-center>
|
||||
<c-button @click="copyTextBase64()">
|
||||
Copy Base64
|
||||
{{ t('tools.base64-hex-converter.texts.tag-copy-base64') }}
|
||||
</c-button>
|
||||
</div>
|
||||
</c-card>
|
||||
|
||||
<c-card title="Base64 to Hex Array">
|
||||
<c-card :title="t('tools.base64-hex-converter.texts.title-base64-to-hex-array')">
|
||||
<n-space align="baseline" justify="center" mb-1>
|
||||
<n-form-item label="Uppercase" label-placement="left">
|
||||
<n-form-item :label="t('tools.base64-hex-converter.texts.label-uppercase')" label-placement="left">
|
||||
<n-switch v-model:value="uppercase" />
|
||||
</n-form-item>
|
||||
<n-form-item label="Group by" label-placement="left">
|
||||
<n-input-number v-model:value="grouping" :min="0" style="width: 6em" mr-1 /> digits (0 = no grouping)
|
||||
<n-form-item :label="t('tools.base64-hex-converter.texts.label-group-by')" label-placement="left">
|
||||
<n-input-number-i18n v-model:value="grouping" :min="0" style="width: 6em" mr-1 />{{ t('tools.base64-hex-converter.texts.tag-digits-0-no-grouping') }}
|
||||
</n-form-item>
|
||||
<n-form-item label="Split as rows by" label-placement="left">
|
||||
<n-input-number v-model:value="rowlength" :min="0" style="width: 6em" mr-1 /> group of digits (0 = no rows)
|
||||
<n-form-item :label="t('tools.base64-hex-converter.texts.label-split-as-rows-by')" label-placement="left">
|
||||
<n-input-number-i18n v-model:value="rowlength" :min="0" style="width: 6em" mr-1 />{{ t('tools.base64-hex-converter.texts.tag-group-of-digits-0-no-rows') }}
|
||||
</n-form-item>
|
||||
</n-space>
|
||||
<c-input-text
|
||||
v-model:value="base64Input"
|
||||
multiline
|
||||
placeholder="Your Base64 Hex Array..."
|
||||
:placeholder="t('tools.base64-hex-converter.texts.placeholder-your-base64-hex-array')"
|
||||
rows="5"
|
||||
:validation-rules="b64ValidationRules"
|
||||
label="Base64 Hex Array to decode"
|
||||
:label="t('tools.base64-hex-converter.texts.label-base64-hex-array-to-decode')"
|
||||
mb-5
|
||||
/>
|
||||
|
||||
<c-input-text
|
||||
v-model:value="textOutput"
|
||||
label="Decoded Hex Array"
|
||||
placeholder="The decoded Hex Array will be here"
|
||||
:label="t('tools.base64-hex-converter.texts.label-decoded-hex-array')"
|
||||
:placeholder="t('tools.base64-hex-converter.texts.placeholder-the-decoded-hex-array-will-be-here')"
|
||||
multiline
|
||||
rows="5"
|
||||
readonly
|
||||
@@ -105,7 +108,7 @@ const b64ValidationRules = [
|
||||
|
||||
<div flex justify-center>
|
||||
<c-button @click="copyText()">
|
||||
Copy Decoded Hex Array
|
||||
{{ t('tools.base64-hex-converter.texts.tag-copy-decoded-hex-array') }}
|
||||
</c-button>
|
||||
</div>
|
||||
</c-card>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import { FileDigit } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Base64 Hex array encoder/decoder',
|
||||
name: t('tools.base64-hex-converter.title'),
|
||||
path: '/base64-hex-converter',
|
||||
description: 'Simply encode and decode Hex array into a their base64 representation.',
|
||||
description: t('tools.base64-hex-converter.description'),
|
||||
keywords: ['base64', 'converter', 'conversion', 'web', 'data', 'format', 'atob', 'btoa', 'hex'],
|
||||
component: () => import('./base64-hex-converter.vue'),
|
||||
icon: FileDigit,
|
||||
|
||||
@@ -1,23 +1,27 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
import { base64ToText, isValidBase64, textToBase64 } from '@/utils/base64';
|
||||
import { withDefaultOnError } from '@/utils/defaults';
|
||||
import { useITStorage, useQueryParam } from '@/composable/queryParams';
|
||||
|
||||
const encodeUrlSafe = useStorage('base64-string-converter--encode-url-safe', false);
|
||||
const decodeUrlSafe = useStorage('base64-string-converter--decode-url-safe', false);
|
||||
const { t } = useI18n();
|
||||
|
||||
const textInput = ref('');
|
||||
const encodeUrlSafe = useITStorage('base64-string-converter:encode-url-safe', false);
|
||||
const decodeUrlSafe = useITStorage('base64-string-converter:decode-url-safe', false);
|
||||
|
||||
const textInput = useQueryParam({ tool: 'base64-string-converter', name: 'text', defaultValue: '' });
|
||||
const base64Output = computed(() => textToBase64(textInput.value, { makeUrlSafe: encodeUrlSafe.value }));
|
||||
const { copy: copyTextBase64 } = useCopy({ source: base64Output, text: 'Base64 string copied to the clipboard' });
|
||||
const { copy: copyTextBase64 } = useCopy({ source: base64Output, text: t('tools.base64-string-converter.texts.text-base64-string-copied-to-the-clipboard') });
|
||||
|
||||
const base64Input = ref('');
|
||||
const base64Input = useQueryParam({ tool: 'base64-string-converter', name: 'base64', defaultValue: '' });
|
||||
const textOutput = computed(() =>
|
||||
withDefaultOnError(() => base64ToText(base64Input.value.trim(), { makeUrlSafe: decodeUrlSafe.value }), ''),
|
||||
);
|
||||
const { copy: copyText } = useCopy({ source: textOutput, text: 'String copied to the clipboard' });
|
||||
const { copy: copyText } = useCopy({ source: textOutput, text: t('tools.base64-string-converter.texts.text-string-copied-to-the-clipboard') });
|
||||
const b64ValidationRules = [
|
||||
{
|
||||
message: 'Invalid base64 string',
|
||||
message: t('tools.base64-string-converter.texts.message-invalid-base64-string'),
|
||||
validator: (value: string) => isValidBase64(value.trim(), { makeUrlSafe: decodeUrlSafe.value }),
|
||||
},
|
||||
];
|
||||
@@ -25,56 +29,56 @@ const b64ValidationWatch = [decodeUrlSafe];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-card title="String to base64">
|
||||
<n-form-item label="Encode URL safe" label-placement="left">
|
||||
<c-card :title="t('tools.base64-string-converter.texts.title-string-to-base64')">
|
||||
<n-form-item :label="t('tools.base64-string-converter.texts.label-encode-url-safe')" label-placement="left">
|
||||
<n-switch v-model:value="encodeUrlSafe" />
|
||||
</n-form-item>
|
||||
<c-input-text
|
||||
v-model:value="textInput"
|
||||
multiline
|
||||
placeholder="Put your string here..."
|
||||
:placeholder="t('tools.base64-string-converter.texts.placeholder-put-your-string-here')"
|
||||
rows="5"
|
||||
label="String to encode"
|
||||
:label="t('tools.base64-string-converter.texts.label-string-to-encode')"
|
||||
raw-text
|
||||
mb-5
|
||||
/>
|
||||
|
||||
<c-input-text
|
||||
label="Base64 of string"
|
||||
:label="t('tools.base64-string-converter.texts.label-base64-of-string')"
|
||||
:value="base64Output"
|
||||
multiline
|
||||
readonly
|
||||
placeholder="The base64 encoding of your string will be here"
|
||||
:placeholder="t('tools.base64-string-converter.texts.placeholder-the-base64-encoding-of-your-string-will-be-here')"
|
||||
rows="5"
|
||||
mb-5
|
||||
/>
|
||||
|
||||
<div flex justify-center>
|
||||
<c-button @click="copyTextBase64()">
|
||||
Copy base64
|
||||
{{ t('tools.base64-string-converter.texts.tag-copy-base64') }}
|
||||
</c-button>
|
||||
</div>
|
||||
</c-card>
|
||||
|
||||
<c-card title="Base64 to string">
|
||||
<n-form-item label="Decode URL safe" label-placement="left">
|
||||
<c-card :title="t('tools.base64-string-converter.texts.title-base64-to-string')">
|
||||
<n-form-item :label="t('tools.base64-string-converter.texts.label-decode-url-safe')" label-placement="left">
|
||||
<n-switch v-model:value="decodeUrlSafe" />
|
||||
</n-form-item>
|
||||
<c-input-text
|
||||
v-model:value="base64Input"
|
||||
multiline
|
||||
placeholder="Your base64 string..."
|
||||
:placeholder="t('tools.base64-string-converter.texts.placeholder-your-base64-string')"
|
||||
rows="5"
|
||||
:validation-rules="b64ValidationRules"
|
||||
:validation-watch="b64ValidationWatch"
|
||||
label="Base64 string to decode"
|
||||
:label="t('tools.base64-string-converter.texts.label-base64-string-to-decode')"
|
||||
mb-5
|
||||
/>
|
||||
|
||||
<c-input-text
|
||||
v-model:value="textOutput"
|
||||
label="Decoded string"
|
||||
placeholder="The decoded string will be here"
|
||||
:label="t('tools.base64-string-converter.texts.label-decoded-string')"
|
||||
:placeholder="t('tools.base64-string-converter.texts.placeholder-the-decoded-string-will-be-here')"
|
||||
multiline
|
||||
rows="5"
|
||||
readonly
|
||||
@@ -83,7 +87,7 @@ const b64ValidationWatch = [decodeUrlSafe];
|
||||
|
||||
<div flex justify-center>
|
||||
<c-button @click="copyText()">
|
||||
Copy decoded string
|
||||
{{ t('tools.base64-string-converter.texts.tag-copy-decoded-string') }}
|
||||
</c-button>
|
||||
</div>
|
||||
</c-card>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { FileDigit } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: translate('tools.base64-string-converter.title'),
|
||||
name: t('tools.base64-string-converter.title'),
|
||||
path: '/base64-string-converter',
|
||||
description: translate('tools.base64-string-converter.description'),
|
||||
description: t('tools.base64-string-converter.description'),
|
||||
keywords: ['base64', 'converter', 'conversion', 'web', 'data', 'format', 'atob', 'btoa'],
|
||||
component: () => import('./base64-string-converter.vue'),
|
||||
icon: FileDigit,
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import { Command } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Bash Cheatsheet',
|
||||
name: t('tools.bash-memo.title'),
|
||||
path: '/bash-memo',
|
||||
description: 'Bash common commands',
|
||||
description: t('tools.bash-memo.description'),
|
||||
keywords: ['bash', 'shell'],
|
||||
component: () => import('./bash-memo.vue'),
|
||||
icon: Command,
|
||||
|
||||
@@ -5,17 +5,25 @@ import { textToBase64 } from '@/utils/base64';
|
||||
const username = ref('');
|
||||
const password = ref('');
|
||||
const header = computed(() => `Authorization: Basic ${textToBase64(`${username.value}:${password.value}`)}`);
|
||||
const { t } = useI18n();
|
||||
|
||||
const { copy } = useCopy({ source: header, text: 'Header copied to the clipboard' });
|
||||
const { copy } = useCopy({ source: header, text: t('tools.basic-auth-generator.copied') });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-input-text v-model:value="username" label="Username" placeholder="Your username..." clearable raw-text mb-5 />
|
||||
<c-input-text
|
||||
v-model:value="username"
|
||||
:label="t('tools.basic-auth-generator.username')"
|
||||
:placeholder="t('tools.basic-auth-generator.yourusername')"
|
||||
clearable
|
||||
raw-text
|
||||
mb-5
|
||||
/>
|
||||
<c-input-text
|
||||
v-model:value="password"
|
||||
label="Password"
|
||||
placeholder="Your password..."
|
||||
:label="t('tools.basic-auth-generator.password')"
|
||||
:placeholder="t('tools.basic-auth-generator.yourpassword')"
|
||||
clearable
|
||||
raw-text
|
||||
mb-2
|
||||
@@ -23,7 +31,7 @@ const { copy } = useCopy({ source: header, text: 'Header copied to the clipboard
|
||||
/>
|
||||
|
||||
<c-card>
|
||||
<n-statistic label="Authorization header:" class="header">
|
||||
<n-statistic :label="t('tools.basic-auth-generator.texts.label-authorization-header')" class="header">
|
||||
<n-scrollbar x-scrollable style="max-width: 550px; margin-bottom: -10px; padding-bottom: 10px" trigger="none">
|
||||
{{ header }}
|
||||
</n-scrollbar>
|
||||
@@ -31,7 +39,7 @@ const { copy } = useCopy({ source: header, text: 'Header copied to the clipboard
|
||||
</c-card>
|
||||
<div mt-5 flex justify-center>
|
||||
<c-button @click="copy()">
|
||||
Copy header
|
||||
{{ t('tools.basic-auth-generator.button.copy') }}
|
||||
</c-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { PasswordRound } from '@vicons/material';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: translate('tools.basic-auth-generator.title'),
|
||||
name: t('tools.basic-auth-generator.title'),
|
||||
path: '/basic-auth-generator',
|
||||
description: translate('tools.basic-auth-generator.description'),
|
||||
description: t('tools.basic-auth-generator.description'),
|
||||
keywords: [
|
||||
'basic',
|
||||
'auth',
|
||||
|
||||
+16
-13
@@ -1,14 +1,17 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { compareSync, hashSync } from 'bcryptjs';
|
||||
import { useThemeVars } from 'naive-ui';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const themeVars = useThemeVars();
|
||||
|
||||
const input = ref('');
|
||||
const saltCount = ref(10);
|
||||
const hashed = computed(() => hashSync(input.value, saltCount.value || 10));
|
||||
const { copy } = useCopy({ source: hashed, text: 'Hashed string copied to the clipboard' });
|
||||
const { copy } = useCopy({ source: hashed, text: t('tools.bcrypt.texts.text-hashed-string-copied-to-the-clipboard') });
|
||||
|
||||
const compareString = ref('');
|
||||
const compareHash = ref('');
|
||||
@@ -16,39 +19,39 @@ const compareMatch = computed(() => compareSync(compareString.value, compareHash
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-card title="Hash">
|
||||
<c-card :title="t('tools.bcrypt.texts.title-hash')">
|
||||
<c-input-text
|
||||
v-model:value="input"
|
||||
placeholder="Your string to bcrypt..."
|
||||
:placeholder="t('tools.bcrypt.texts.placeholder-your-string-to-bcrypt')"
|
||||
raw-text
|
||||
label="Your string: "
|
||||
:label="t('tools.bcrypt.texts.label-your-string')"
|
||||
label-position="left"
|
||||
label-align="right"
|
||||
label-width="120px"
|
||||
mb-2
|
||||
/>
|
||||
<n-form-item label="Salt count: " label-placement="left" label-width="120">
|
||||
<n-input-number v-model:value="saltCount" placeholder="Salt rounds..." :max="100" :min="0" w-full />
|
||||
<n-form-item :label="t('tools.bcrypt.texts.label-salt-count')" label-placement="left" label-width="120">
|
||||
<n-input-number-i18n v-model:value="saltCount" :placeholder="t('tools.bcrypt.texts.placeholder-salt-rounds')" :max="100" :min="0" w-full />
|
||||
</n-form-item>
|
||||
|
||||
<c-input-text :value="hashed" readonly text-center />
|
||||
|
||||
<div mt-5 flex justify-center>
|
||||
<c-button @click="copy()">
|
||||
Copy hash
|
||||
{{ t('tools.bcrypt.texts.tag-copy-hash') }}
|
||||
</c-button>
|
||||
</div>
|
||||
</c-card>
|
||||
|
||||
<c-card title="Compare string with hash">
|
||||
<c-card :title="t('tools.bcrypt.texts.title-compare-string-with-hash')">
|
||||
<n-form label-width="120">
|
||||
<n-form-item label="Your string: " label-placement="left">
|
||||
<c-input-text v-model:value="compareString" placeholder="Your string to compare..." raw-text />
|
||||
<n-form-item :label="t('tools.bcrypt.texts.label-your-string')" label-placement="left">
|
||||
<c-input-text v-model:value="compareString" :placeholder="t('tools.bcrypt.texts.placeholder-your-string-to-compare')" raw-text />
|
||||
</n-form-item>
|
||||
<n-form-item label="Your hash: " label-placement="left">
|
||||
<c-input-text v-model:value="compareHash" placeholder="Your hash to compare..." raw-text />
|
||||
<n-form-item :label="t('tools.bcrypt.texts.label-your-hash')" label-placement="left">
|
||||
<c-input-text v-model:value="compareHash" :placeholder="t('tools.bcrypt.texts.placeholder-your-hash-to-compare')" raw-text />
|
||||
</n-form-item>
|
||||
<n-form-item label="Do they match ? " label-placement="left" :show-feedback="false">
|
||||
<n-form-item :label="t('tools.bcrypt.texts.label-do-they-match')" label-placement="left" :show-feedback="false">
|
||||
<div class="compare-result" :class="{ positive: compareMatch }">
|
||||
{{ compareMatch ? 'Yes' : 'No' }}
|
||||
</div>
|
||||
|
||||
Loaded 100 of 920 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user