mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-29 16:40:29 +03:00
Compare commits
137
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 |
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
|
||||
+185
@@ -2,6 +2,191 @@
|
||||
|
||||
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
|
||||
|
||||
+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,55 +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)
|
||||
- [YunoHost](https://apps.yunohost.org/app/it-tools)
|
||||
|
||||
## Contribute
|
||||
|
||||
### Recommended IDE Setup
|
||||
@@ -255,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!
|
||||
|
||||
Vendored
+50
-10
@@ -56,6 +56,7 @@ 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']
|
||||
@@ -122,20 +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']
|
||||
@@ -150,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']
|
||||
@@ -160,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']
|
||||
@@ -170,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']
|
||||
@@ -198,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']
|
||||
@@ -210,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']
|
||||
@@ -251,6 +270,7 @@ declare module '@vue/runtime-core' {
|
||||
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']
|
||||
@@ -279,15 +299,19 @@ declare module '@vue/runtime-core' {
|
||||
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']
|
||||
@@ -302,44 +326,42 @@ declare module '@vue/runtime-core' {
|
||||
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']
|
||||
NAlert: typeof import('naive-ui')['NAlert']
|
||||
NanoidGenerator: typeof import('./src/tools/nanoid-generator/nanoid-generator.vue')['default']
|
||||
NanoMemo: typeof import('./src/tools/nano-memo/nano-memo.vue')['default']
|
||||
'NanoMemo.content': typeof import('./src/tools/nano-memo/nano-memo.content.md')['default']
|
||||
NavbarButtons: typeof import('./src/components/NavbarButtons.vue')['default']
|
||||
NButton: typeof import('naive-ui')['NButton']
|
||||
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']
|
||||
NDynamicTags: typeof import('naive-ui')['NDynamicTags']
|
||||
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']
|
||||
NInput: typeof import('naive-ui')['NInput']
|
||||
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']
|
||||
NRadio: typeof import('naive-ui')['NRadio']
|
||||
NRadioGroup: typeof import('naive-ui')['NRadioGroup']
|
||||
NScrollbar: typeof import('naive-ui')['NScrollbar']
|
||||
NSelect: typeof import('naive-ui')['NSelect']
|
||||
NSpace: typeof import('naive-ui')['NSpace']
|
||||
NTable: typeof import('naive-ui')['NTable']
|
||||
NTagGroup: typeof import('naive-ui')['NTagGroup']
|
||||
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']
|
||||
@@ -347,6 +369,7 @@ declare module '@vue/runtime-core' {
|
||||
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']
|
||||
@@ -383,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']
|
||||
@@ -390,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']
|
||||
@@ -401,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']
|
||||
@@ -410,11 +438,13 @@ 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']
|
||||
@@ -435,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']
|
||||
@@ -464,10 +497,13 @@ 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']
|
||||
@@ -479,5 +515,9 @@ declare module '@vue/runtime-core' {
|
||||
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
+6890
-215
File diff suppressed because it is too large.
Load diff
+2064
-1158
File diff suppressed because it is too large.
Load diff
+7189
-52
File diff suppressed because it is too large.
Load diff
+7351
-46
File diff suppressed because it is too large.
Load diff
+6136
-319
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
+6842
-179
File diff suppressed because it is too large.
Load diff
+7062
-44
File diff suppressed because it is too large.
Load diff
+7110
-59
File diff suppressed because it is too large.
Load diff
+6338
-405
File diff suppressed because it is too large.
Load diff
+7127
File diff suppressed because it is too large.
Load diff
+6294
-397
File diff suppressed because it is too large.
Load diff
+6815
-159
File diff suppressed because it is too large.
Load diff
+6643
-315
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: blob: https: http:; connect-src https: http:; 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;
|
||||
|
||||
+73
-37
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "it-tools",
|
||||
"type": "module",
|
||||
"version": "2025.7.20-3ccbd853",
|
||||
"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,8 +26,8 @@
|
||||
"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",
|
||||
@@ -37,6 +37,7 @@
|
||||
"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": {
|
||||
@@ -50,19 +51,21 @@
|
||||
"@github/paste-markdown": "^1.5.3",
|
||||
"@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",
|
||||
@@ -71,10 +74,11 @@
|
||||
"@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/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",
|
||||
@@ -85,9 +89,14 @@
|
||||
"@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",
|
||||
@@ -98,6 +107,7 @@
|
||||
"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.3",
|
||||
@@ -110,6 +120,8 @@
|
||||
"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": "^3.0.0",
|
||||
@@ -125,6 +137,12 @@
|
||||
"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",
|
||||
@@ -138,6 +156,7 @@
|
||||
"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.2",
|
||||
@@ -148,20 +167,21 @@
|
||||
"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",
|
||||
"htmlfy": "^0.8.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.2.0",
|
||||
"iconv-lite": "^0.6.3",
|
||||
"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": "^10.0.0",
|
||||
@@ -169,7 +189,7 @@
|
||||
"ip-cidr": "^4.0.2",
|
||||
"ip-matching": "^2.1.2",
|
||||
"ip-regex": "^5.0.0",
|
||||
"is-cidr": "^5.1.1",
|
||||
"is-cidr": "^6.0.1",
|
||||
"is-ip": "^5.0.1",
|
||||
"isbn3": "^1.2.12",
|
||||
"iso-639-1": "^3.1.5",
|
||||
@@ -177,18 +197,20 @@
|
||||
"jks-js": "^1.1.4",
|
||||
"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.4",
|
||||
"js-tiktoken": "^1.0.21",
|
||||
"jsbarcode": "^3.12.1",
|
||||
"json-analyzer": "^1.2.2",
|
||||
"json-editor-vue": "^0.18.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.13.0",
|
||||
"jsonschema": "^1.5.0",
|
||||
"jsonschema-protobuf": "^1.0.2",
|
||||
"jsstack.js": "^2.0.0",
|
||||
"jsvat-next": "^3.0.4",
|
||||
@@ -201,34 +223,39 @@
|
||||
"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.5.3",
|
||||
"mathjs": "^15.0.0",
|
||||
"md-editor-v3": "^4.21.3",
|
||||
"memorystream": "^0.3.1",
|
||||
"merge-anything": "^6.0.6",
|
||||
"mermaid": "^11.9.0",
|
||||
"mime-types": "^2.1.35",
|
||||
"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.1.5",
|
||||
"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.2",
|
||||
"nginx-config-formatter": "^1.4.5",
|
||||
"niceware": "^4.0.0",
|
||||
"node-forge": "^1.3.1",
|
||||
"openai-chat-tokens": "^0.2.8",
|
||||
"openpgp": "^6.2.0",
|
||||
"oui-data": "^1.1.391",
|
||||
"parse-duration": "^2.1.2",
|
||||
@@ -252,9 +279,12 @@
|
||||
"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",
|
||||
@@ -264,11 +294,13 @@
|
||||
"shiki": "1.29.2",
|
||||
"silly-password-generator": "^1.0.29",
|
||||
"slashes": "^3.0.12",
|
||||
"spdx-satisfies": "^5.0.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",
|
||||
@@ -280,15 +312,15 @@
|
||||
"to-single-quotes": "^4.0.0",
|
||||
"turndown": "^7.2.0",
|
||||
"ua-parser-js": "^2.0.4",
|
||||
"ulid": "^2.4.0",
|
||||
"ulid": "^3.0.1",
|
||||
"unicode-emoji-json": "^0.8.0",
|
||||
"unique-random": "^4.0.0",
|
||||
"unixcrypt-browser": "^2.0.4",
|
||||
"unpdf": "^1.1.0",
|
||||
"unplugin-auto-import": "^0.16.4",
|
||||
"utf8": "^3.0.0",
|
||||
"uuid": "^11.1.0",
|
||||
"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": "^11.1.9",
|
||||
@@ -311,7 +343,7 @@
|
||||
"xpath": "^0.0.34",
|
||||
"xpath-to-css": "^1.2.0",
|
||||
"xslt-processor": "^3.3.1",
|
||||
"yaml": "^2.8.0"
|
||||
"yaml": "^2.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "^0.41.0",
|
||||
@@ -337,27 +369,28 @@
|
||||
"@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.120",
|
||||
"@types/node-forge": "^1.3.13",
|
||||
"@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.4",
|
||||
"@vitejs/plugin-vue-jsx": "^3.0.2",
|
||||
@@ -365,7 +398,10 @@
|
||||
"@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",
|
||||
@@ -377,17 +413,17 @@
|
||||
"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.1",
|
||||
"vite-plugin-pwa": "^1.1.0",
|
||||
"vite-plugin-splash-screen": "^0.2.0",
|
||||
"unplugin-vue-markdown": "^29.1.0",
|
||||
"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": {
|
||||
|
||||
Generated
+14799
-11004
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"]
|
||||
}
|
||||
@@ -48,9 +48,22 @@ function processVueComponent(filePath, toolName) {
|
||||
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 = /(?<!:)((?:input-|output-)?(?:label|placeholder|title))="([^"]+)"/g;
|
||||
regex = /(?<!:)((?:[a-z]+-)?(?:label|placeholder|title))="([^"]+)"/g;
|
||||
content = content.replace(regex, (match, attr, text) => {
|
||||
if (!text?.trim()) {
|
||||
return match;
|
||||
@@ -88,13 +101,13 @@ function processVueComponent(filePath, toolName) {
|
||||
|
||||
if (filePath.endsWith('.vue')) {
|
||||
// Ensure the useI18n import exists
|
||||
if (!content.includes("const { t } = useI18n();")) {
|
||||
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 (!content.includes("import { translate as t } from '@/plugins/i18n.plugin';")) {
|
||||
if (!hasAlreayI18n) {
|
||||
content = 'import { translate as t } from "@/plugins/i18n.plugin";\n' + content;
|
||||
}
|
||||
}
|
||||
|
||||
+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,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;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import { Home2, Menu2 } from '@vicons/tabler';
|
||||
import { Coffee, Home2, Menu2 } from '@vicons/tabler';
|
||||
import { NIcon, useThemeVars } from 'naive-ui';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { RouterLink } from 'vue-router';
|
||||
@@ -115,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>
|
||||
|
||||
@@ -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(','),
|
||||
|
||||
+11
@@ -32,6 +32,17 @@ 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());
|
||||
|
||||
@@ -4,14 +4,19 @@ 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: 'عربي',
|
||||
|
||||
+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>
|
||||
+35
-8
@@ -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>
|
||||
|
||||
+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
+8
-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;
|
||||
@@ -52,3 +47,11 @@ 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));
|
||||
|
||||
|
||||
@@ -37,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();
|
||||
|
||||
|
||||
@@ -2,11 +2,12 @@
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import promptSplitter from 'chatgpt-prompt-splitter';
|
||||
import { useValidation } from '@/composable/validation';
|
||||
import { useQueryParam } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const prompt = ref('');
|
||||
const splitLength = ref(1024);
|
||||
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 {
|
||||
@@ -45,7 +46,7 @@ const promptValidation = useValidation({
|
||||
mb-2
|
||||
/>
|
||||
<n-form-item :label="t('tools.ai-prompt-splitter.texts.label-character-length-for-each-chunk')">
|
||||
<n-input-number v-model:value="splitLength" :min="1" />
|
||||
<n-input-number-i18n v-model:value="splitLength" :min="1" />
|
||||
</n-form-item>
|
||||
</c-card>
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import { Terminal } from '@xterm/xterm';
|
||||
import '@xterm/xterm/css/xterm.css';
|
||||
import styles from 'ansi-styles';
|
||||
import type { CSPair } from 'ansi-styles';
|
||||
import { useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
import { useQueryParam, useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
@@ -77,7 +77,7 @@ onMounted(() => {
|
||||
|
||||
watch(outputEscapeSequence, seq => writeTermAndScrollBottom(seq), { immediate: true });
|
||||
|
||||
const escapeSequenceToTest = ref('');
|
||||
const escapeSequenceToTest = useQueryParam({ tool: 'ansi', name: 'seq', defaultValue: '' });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -2,11 +2,12 @@
|
||||
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);
|
||||
@@ -80,7 +81,7 @@ const fonts = ['1Row', '3-D', '3D Diagonal', '3D-ASCII', '3x5', '4Max', '5 Line
|
||||
</n-gi>
|
||||
<n-gi span="2">
|
||||
<n-form-item :label="t('tools.ascii-text-drawer.width')" label-placement="top" label-width="100" :show-feedback="false">
|
||||
<n-input-number v-model:value="width" min="0" max="10000" w-full :placeholder="t('tools.ascii-text-drawer.texts.placeholder-width-of-the-text')" />
|
||||
<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>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<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,
|
||||
@@ -85,25 +85,25 @@ function clearRatio() {
|
||||
<div class="input-group">
|
||||
<div class="input-pair">
|
||||
<label>{{ t('tools.aspect-ratio-calculator.texts.tag-pixels-width') }}</label>
|
||||
<NInputNumber v-model:value="width" :placeholder="t('tools.aspect-ratio-calculator.texts.placeholder-pixels-width')" :min="1" />
|
||||
<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>{{ t('tools.aspect-ratio-calculator.texts.tag-pixels-height') }}</label>
|
||||
<NInputNumber v-model:value="height" :placeholder="t('tools.aspect-ratio-calculator.texts.placeholder-pixels-height')" :min="1" />
|
||||
<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>{{ t('tools.aspect-ratio-calculator.texts.tag-ratio-width') }}</label>
|
||||
<NInputNumber v-model:value="r1" :placeholder="t('tools.aspect-ratio-calculator.texts.placeholder-ratio-width')" :min="1" />
|
||||
<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>{{ t('tools.aspect-ratio-calculator.texts.tag-ratio-height') }}</label>
|
||||
<NInputNumber v-model:value="r2" :placeholder="t('tools.aspect-ratio-calculator.texts.placeholder-ratio-height')" :min="1" />
|
||||
<n-input-number-i18n v-model:value="r2" :placeholder="t('tools.aspect-ratio-calculator.texts.placeholder-ratio-height')" :min="1" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ 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();
|
||||
|
||||
@@ -15,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>(() => ({
|
||||
@@ -96,13 +96,13 @@ const { download: downloadSVG } = useDownloadFileFromBase64({ source: barcodeSVG
|
||||
<n-color-picker v-model:value="background" :modes="['hex']" :show-alpha="false" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.barcode-generator.texts.label-scale')">
|
||||
<n-input-number v-model:value="scale" :min="0" />
|
||||
<n-input-number-i18n v-model:value="scale" :min="0" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.barcode-generator.texts.label-height-mm')">
|
||||
<n-input-number v-model:value="height" :min="0" />
|
||||
<n-input-number-i18n v-model:value="height" :min="0" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.barcode-generator.texts.label-margin')">
|
||||
<n-input-number v-model:value="margin" :min="0" />
|
||||
<n-input-number-i18n v-model:value="margin" :min="0" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.barcode-generator.texts.label-display-text')">
|
||||
<n-checkbox v-model:checked="displayValue" />
|
||||
|
||||
@@ -80,10 +80,10 @@ const b64ValidationRules = [
|
||||
<n-switch v-model:value="uppercase" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.base64-hex-converter.texts.label-group-by')" label-placement="left">
|
||||
<n-input-number v-model:value="grouping" :min="0" style="width: 6em" mr-1 />{{ t('tools.base64-hex-converter.texts.tag-digits-0-no-grouping') }}
|
||||
<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="t('tools.base64-hex-converter.texts.label-split-as-rows-by')" label-placement="left">
|
||||
<n-input-number 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-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
|
||||
|
||||
@@ -3,17 +3,18 @@ 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 { t } = useI18n();
|
||||
|
||||
const encodeUrlSafe = useStorage('base64-string-converter--encode-url-safe', false);
|
||||
const decodeUrlSafe = useStorage('base64-string-converter--decode-url-safe', false);
|
||||
const encodeUrlSafe = useITStorage('base64-string-converter:encode-url-safe', false);
|
||||
const decodeUrlSafe = useITStorage('base64-string-converter:decode-url-safe', false);
|
||||
|
||||
const textInput = ref('');
|
||||
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: 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 }), ''),
|
||||
);
|
||||
|
||||
@@ -31,7 +31,7 @@ const compareMatch = computed(() => compareSync(compareString.value, compareHash
|
||||
mb-2
|
||||
/>
|
||||
<n-form-item :label="t('tools.bcrypt.texts.label-salt-count')" label-placement="left" label-width="120">
|
||||
<n-input-number v-model:value="saltCount" :placeholder="t('tools.bcrypt.texts.placeholder-salt-rounds')" :max="100" :min="0" w-full />
|
||||
<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 />
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { Plus, Trash } from '@vicons/tabler';
|
||||
import { useStorage } from '@vueuse/core';
|
||||
import _ from 'lodash';
|
||||
|
||||
import { arrayToMarkdownTable, computeAverage, computeVariance } from './benchmark-builder.models';
|
||||
import DynamicValues from './dynamic-values.vue';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
import { useITStorage } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const suites = useStorage('benchmark-builder:suites', [
|
||||
const suites = useITStorage('benchmark-builder:suites', [
|
||||
{ title: 'Suite 1', data: [5, 10] },
|
||||
{ title: 'Suite 2', data: [8, 12] },
|
||||
]);
|
||||
|
||||
const unit = useStorage('benchmark-builder:unit', '');
|
||||
const unit = useITStorage('benchmark-builder:unit', '');
|
||||
|
||||
const round = (v: number) => Math.round(v * 1000) / 1000;
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ import { useCopy } from '@/composable/copy';
|
||||
import { useValidation } from '@/composable/validation';
|
||||
import { isNotThrowing } from '@/utils/boolean';
|
||||
import { withDefaultOnError } from '@/utils/defaults';
|
||||
import { useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
@@ -40,7 +41,8 @@ const languages = {
|
||||
const entropy = ref(generateEntropy());
|
||||
const passphraseInput = ref('');
|
||||
|
||||
const language = ref<keyof typeof languages>('English');
|
||||
const language = useQueryParamOrStorage<keyof typeof languages>({ name: 'lang', storageName: 'bip39-gen:l', defaultValue: 'English' });
|
||||
|
||||
const passphrase = computed({
|
||||
get() {
|
||||
return withDefaultOnError(() => entropyToMnemonic(entropy.value, languages[language.value]), passphraseInput.value);
|
||||
|
||||
@@ -55,10 +55,10 @@ const bmiCategory = computed(() => {
|
||||
<c-select v-model:value="units" :label="t('tools.bmi-calculator.texts.label-select-units')" :options="options" mb-2 label-position="left" />
|
||||
<n-space justify="space-evenly">
|
||||
<n-form-item :label="`Weight (${(units === 'metric' ? 'kg' : 'lbs')}):`" label-placement="left" mb-2>
|
||||
<n-input-number v-model:value="weight" :placeholder="t('tools.bmi-calculator.texts.placeholder-enter-weight')" />
|
||||
<n-input-number-i18n v-model:value="weight" :placeholder="t('tools.bmi-calculator.texts.placeholder-enter-weight')" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="`Height (${(units === 'metric' ? 'm' : 'in')}):`" label-placement="left" mb-2>
|
||||
<n-input-number v-model:value="height" :placeholder="t('tools.bmi-calculator.texts.placeholder-enter-height')" />
|
||||
<n-input-number-i18n v-model:value="height" :placeholder="t('tools.bmi-calculator.texts.placeholder-enter-height')" />
|
||||
</n-form-item>
|
||||
</n-space>
|
||||
<c-card v-if="bmi" :title="t('tools.bmi-calculator.texts.title-result')">
|
||||
|
||||
@@ -60,10 +60,10 @@ const { copy } = useCopy({ source: cardPickedString, text: t('tools.card-picker.
|
||||
</div>
|
||||
<div flex justify-center gap-3>
|
||||
<n-form-item :label="t('tools.card-picker.texts.label-number-of-cards')" label-placement="left">
|
||||
<n-input-number v-model:value="numberOfCards" min="1" :max="maxCards" :placeholder="t('tools.card-picker.texts.placeholder-number-of-cards-to-pick')" />
|
||||
<n-input-number-i18n v-model:value="numberOfCards" min="1" :max="maxCards" :placeholder="t('tools.card-picker.texts.placeholder-number-of-cards-to-pick')" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.card-picker.texts.label-number-of-packs')" label-placement="left">
|
||||
<n-input-number v-model:value="numberOfPacks" min="1" :placeholder="t('tools.card-picker.texts.placeholder-number-of-card-packs-to-pick-in')" />
|
||||
<n-input-number-i18n v-model:value="numberOfPacks" min="1" :placeholder="t('tools.card-picker.texts.placeholder-number-of-card-packs-to-pick-in')" />
|
||||
</n-form-item>
|
||||
</div>
|
||||
<div mb-4 flex justify-center>
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
trainCase,
|
||||
} from 'change-case';
|
||||
import InputCopyable from '../../components/InputCopyable.vue';
|
||||
import { useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
import { useQueryParam, useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
import { useValidation } from '@/composable/validation';
|
||||
|
||||
const { t } = useI18n();
|
||||
@@ -34,7 +34,7 @@ const cleaningRegexValidation = useValidation({
|
||||
],
|
||||
});
|
||||
|
||||
const input = ref('lorem ipsum dolor sit amet');
|
||||
const input = useQueryParam({ tool: 'case-conv', name: 'text', defaultValue: 'lorem ipsum dolor sit amet' });
|
||||
const inputCleaned = computed(() => {
|
||||
if (!cleaningRegexValidation.isValid) {
|
||||
return input.value;
|
||||
|
||||
@@ -0,0 +1,151 @@
|
||||
<script setup lang="ts">
|
||||
import { Buffer } from 'node:buffer';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import chardet from 'chardet';
|
||||
import iconv from 'iconv-lite';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const inputType = ref<'file' | 'content'>('file');
|
||||
const fileContent = ref('');
|
||||
const fileInput = ref() as Ref<File | null>;
|
||||
const error = ref('');
|
||||
const contentDecoded = ref('');
|
||||
|
||||
async function getUInt8ArrayFromInputs() {
|
||||
const fileContentValue = fileContent.value;
|
||||
const file = fileInput.value;
|
||||
if (inputType.value === 'file' && file) {
|
||||
return new Uint8Array(await file.arrayBuffer());
|
||||
}
|
||||
else if (inputType.value === 'content' && fileContentValue) {
|
||||
const uint8Array = new Uint8Array(fileContentValue.length);
|
||||
for (let i = 0; i < fileContentValue.length; i++) {
|
||||
uint8Array[i] = fileContentValue.charCodeAt(i);
|
||||
}
|
||||
return uint8Array;
|
||||
}
|
||||
else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
const encodings = computedAsync(async () => {
|
||||
error.value = '';
|
||||
try {
|
||||
const buffer = await getUInt8ArrayFromInputs();
|
||||
if (buffer === null) {
|
||||
return null;
|
||||
}
|
||||
return chardet.analyse(buffer);
|
||||
}
|
||||
catch (e: any) {
|
||||
error.value = e.toString();
|
||||
return null;
|
||||
}
|
||||
});
|
||||
|
||||
async function generateEncodedOutput(encoding: string) {
|
||||
error.value = '';
|
||||
contentDecoded.value = '';
|
||||
try {
|
||||
const buffer = await getUInt8ArrayFromInputs();
|
||||
if (buffer === null) {
|
||||
return;
|
||||
}
|
||||
contentDecoded.value = iconv.decode(Buffer.from(buffer), encoding);
|
||||
}
|
||||
catch (e: any) {
|
||||
return e.toString();
|
||||
}
|
||||
}
|
||||
|
||||
function onUpload(file: File) {
|
||||
if (file) {
|
||||
fileInput.value = file;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<c-card :title="t('tools.charset-detector.texts.title-input')" mb-2>
|
||||
<n-radio-group v-model:value="inputType" name="radiogroup" mb-2 flex justify-center>
|
||||
<n-space>
|
||||
<n-radio
|
||||
value="file"
|
||||
:label="t('tools.charset-detector.texts.label-file')"
|
||||
/>
|
||||
<n-radio
|
||||
value="content"
|
||||
:label="t('tools.charset-detector.texts.label-content')"
|
||||
/>
|
||||
</n-space>
|
||||
</n-radio-group>
|
||||
|
||||
<c-file-upload
|
||||
v-if="inputType === 'file'"
|
||||
:title="t('tools.charset-detector.texts.title-drag-and-drop-txt-file-here-or-click-to-select-a-file')"
|
||||
@file-upload="onUpload"
|
||||
/>
|
||||
|
||||
<c-input-text
|
||||
v-if="inputType === 'content'"
|
||||
v-model:value="fileContent"
|
||||
:label="t('tools.charset-detector.texts.label-file-content')"
|
||||
multiline
|
||||
:placeholder="t('tools.charset-detector.texts.placeholder-put-your-text-content-here')"
|
||||
rows="15"
|
||||
mb-2
|
||||
/>
|
||||
</c-card>
|
||||
|
||||
<c-alert v-if="error">
|
||||
{{ error }}
|
||||
</c-alert>
|
||||
|
||||
<c-card v-if="!error && encodings" :title="t('tools.charset-detector.texts.title-possible-encodings')">
|
||||
<n-table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">
|
||||
{{ t('tools.charset-detector.texts.tag-confidence') }}
|
||||
</th>
|
||||
<th scope="col">
|
||||
{{ t('tools.charset-detector.texts.tag-name') }}
|
||||
</th>
|
||||
<th scope="col">
|
||||
{{ t('tools.charset-detector.texts.tag-lang') }}
|
||||
</th>
|
||||
<th />
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr
|
||||
v-for="(enc, index) in encodings || []"
|
||||
:key="index"
|
||||
>
|
||||
<td>
|
||||
{{ enc.confidence }}
|
||||
</td>
|
||||
<td>
|
||||
{{ enc.name }}
|
||||
</td>
|
||||
<td>
|
||||
{{ enc.lang }}
|
||||
</td>
|
||||
<td>
|
||||
<n-button @click="generateEncodedOutput(enc.name.toLocaleLowerCase())">
|
||||
{{ t('tools.charset-detector.texts.tag-decode') }}
|
||||
</n-button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</n-table>
|
||||
|
||||
<n-card v-if="contentDecoded" :title="t('tools.charset-detector.texts.title-decoded-text')" mb-1>
|
||||
<textarea-copyable :value="contentDecoded" />
|
||||
</n-card>
|
||||
</c-card>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,14 @@
|
||||
import { FileText } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.charset-detector.title'),
|
||||
path: '/charset-detector',
|
||||
description: t('tools.charset-detector.description'),
|
||||
keywords: ['charset', 'ascii', 'iso', 'utf8', 'unicode', 'encoding', 'decode', 'text', 'detector'],
|
||||
component: () => import('./charset-detector.vue'),
|
||||
icon: FileText,
|
||||
createdAt: new Date('2025-03-09'),
|
||||
category: 'Forensic',
|
||||
});
|
||||
@@ -1,17 +1,17 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useStorage } from '@vueuse/core';
|
||||
import { Check as CheckIcon, LetterX as CrossIcon } from '@vicons/tabler';
|
||||
import { getMatch } from 'ip-matching';
|
||||
import { cidrInCidr } from './cidr-in-cidr.service';
|
||||
import { withDefaultOnError } from '@/utils/defaults';
|
||||
import { isNotThrowing } from '@/utils/boolean';
|
||||
import SpanCopyable from '@/components/SpanCopyable.vue';
|
||||
import { useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const baseRange = useStorage('cidr-in-cidr:range', '192.168.0.1/24'); // NOSONAR
|
||||
const ipOrRangeToTest = useStorage('cidr-in-cidr:ip', '192.168.0.1'); // NOSONAR
|
||||
const baseRange = useQueryParamOrStorage({ name: 'range', storageName: 'cidr-in-cidr:range', defaultValue: '192.168.0.1/24' }); // NOSONAR
|
||||
const ipOrRangeToTest = useQueryParamOrStorage({ name: 'ip', storageName: 'cidr-in-cidr:ip', defaultValue: '192.168.0.1' }); // NOSONAR
|
||||
|
||||
const matchResult = computed(() => withDefaultOnError(
|
||||
() => cidrInCidr({ baseRange: baseRange.value, ipOrRangeToTest: ipOrRangeToTest.value }),
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
import { formatVancouverCitation } from './citation-generator.service'; // adjust path as needed
|
||||
|
||||
describe('formatVancouverCitation', () => {
|
||||
it('formats a single author with initials', () => {
|
||||
const entry = {
|
||||
authors: [{ first: 'John', last: 'Doe' }],
|
||||
year: '2021',
|
||||
title: 'Sample Title',
|
||||
publisher: 'Publisher',
|
||||
url: 'https://example.com',
|
||||
};
|
||||
expect(formatVancouverCitation(entry))
|
||||
.toBe('Doe J. Sample Title. Publisher; 2021. Available from: https://example.com');
|
||||
});
|
||||
|
||||
it('formats multiple authors correctly', () => {
|
||||
const entry = {
|
||||
authors: [
|
||||
{ first: 'John', last: 'Doe' },
|
||||
{ first: 'Jane', last: 'Smith' },
|
||||
],
|
||||
year: '2020',
|
||||
title: 'Multi Author Work',
|
||||
publisher: 'TechPress',
|
||||
};
|
||||
expect(formatVancouverCitation(entry))
|
||||
.toBe('Doe J, Smith J. Multi Author Work. TechPress; 2020.');
|
||||
});
|
||||
|
||||
it('uses et al. when more than 6 authors', () => {
|
||||
const entry = {
|
||||
authors: [
|
||||
{ first: 'A', last: 'One' },
|
||||
{ first: 'B', last: 'Two' },
|
||||
{ first: 'C', last: 'Three' },
|
||||
{ first: 'D', last: 'Four' },
|
||||
{ first: 'E', last: 'Five' },
|
||||
{ first: 'F', last: 'Six' },
|
||||
{ first: 'G', last: 'Seven' },
|
||||
],
|
||||
year: '2019',
|
||||
title: 'Big Team Paper',
|
||||
publisher: 'SciencePub',
|
||||
};
|
||||
expect(formatVancouverCitation(entry))
|
||||
.toBe('One A, Two B, Three C, Four D, Five E, Six F, et al. Big Team Paper. SciencePub; 2019.');
|
||||
});
|
||||
|
||||
it('handles multiple initials in first name', () => {
|
||||
const entry = {
|
||||
authors: [{ first: 'John Michael', last: 'Doe' }],
|
||||
title: 'Initials Test',
|
||||
};
|
||||
expect(formatVancouverCitation(entry))
|
||||
.toBe('Doe JM. Initials Test.');
|
||||
});
|
||||
|
||||
it('falls back to Anonymous if no authors', () => {
|
||||
const entry = {
|
||||
title: 'No Author Work',
|
||||
year: '2022',
|
||||
};
|
||||
expect(formatVancouverCitation(entry))
|
||||
.toBe('Anonymous. No Author Work. 2022.');
|
||||
});
|
||||
|
||||
it('handles missing title gracefully', () => {
|
||||
const entry = {
|
||||
authors: [{ first: 'Jane', last: 'Smith' }],
|
||||
year: '2023',
|
||||
};
|
||||
expect(formatVancouverCitation(entry))
|
||||
.toBe('Smith J. [No title]. 2023.');
|
||||
});
|
||||
|
||||
it('handles missing publisher and year', () => {
|
||||
const entry = {
|
||||
authors: [{ first: 'Jane', last: 'Smith' }],
|
||||
title: 'Untimed Work',
|
||||
};
|
||||
expect(formatVancouverCitation(entry))
|
||||
.toBe('Smith J. Untimed Work.');
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,47 @@
|
||||
interface Author { first?: string; last?: string }
|
||||
interface CitationInput {
|
||||
authors?: Author[]
|
||||
year?: string
|
||||
title?: string
|
||||
publisher?: string
|
||||
url?: string
|
||||
}
|
||||
|
||||
export function formatVancouverCitation(entry: CitationInput): string {
|
||||
const formatAuthor = (author: Author): string => {
|
||||
if (!author.last) {
|
||||
return '';
|
||||
}
|
||||
const initials = (author.first || '')
|
||||
.split(/\s+/)
|
||||
.map(name => name.charAt(0).toUpperCase())
|
||||
.join('');
|
||||
return `${author.last} ${initials}`;
|
||||
};
|
||||
|
||||
const authors = Array.isArray(entry.authors) ? entry.authors.map(formatAuthor).filter(Boolean) : [];
|
||||
let authorStr = 'Anonymous';
|
||||
if (authors.length > 0) {
|
||||
authorStr = authors.length > 6
|
||||
? `${authors.slice(0, 6).join(', ')}, et al`
|
||||
: authors.join(', ');
|
||||
}
|
||||
|
||||
const title = entry.title?.trim() || '[No title]';
|
||||
const publisher = entry.publisher?.trim();
|
||||
const year = entry.year?.trim();
|
||||
const url = entry.url?.trim();
|
||||
|
||||
let citation = `${authorStr}. ${title}.`;
|
||||
if (publisher) {
|
||||
citation += ` ${publisher};`;
|
||||
}
|
||||
if (year) {
|
||||
citation += ` ${year}.`;
|
||||
}
|
||||
if (url) {
|
||||
citation += ` Available from: ${url}`;
|
||||
}
|
||||
|
||||
return citation;
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { ref } from 'vue';
|
||||
import { APA, MLA } from 'citation-formatter';
|
||||
import { formatVancouverCitation } from './citation-generator.service';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
@@ -25,14 +26,21 @@ const formattedCitation = computed(() => {
|
||||
|| !citationData.value.year
|
||||
|| !authors.length
|
||||
) { return '### Please fill Title, Publisher, Year and authors'; }
|
||||
|
||||
const citationInData = {
|
||||
authors,
|
||||
title: citationData.value.title,
|
||||
publisher: citationData.value.publisher,
|
||||
year: citationData.value.year.toString(),
|
||||
url: citationData.value.url,
|
||||
};
|
||||
|
||||
if (style.value === 'vancouver') {
|
||||
return formatVancouverCitation(citationInData);
|
||||
}
|
||||
return (style.value === 'apa' ? APA : MLA)([
|
||||
{
|
||||
authors,
|
||||
title: citationData.value.title,
|
||||
publisher: citationData.value.publisher,
|
||||
year: citationData.value.year,
|
||||
url: citationData.value.url,
|
||||
}]);
|
||||
citationInData,
|
||||
]);
|
||||
}
|
||||
catch (e: any) {
|
||||
return e.toString();
|
||||
@@ -59,7 +67,7 @@ const formattedCitation = computed(() => {
|
||||
</n-form-item>
|
||||
|
||||
<n-form-item :label="t('tools.citation-generator.texts.label-publication-year')">
|
||||
<n-input-number v-model:value="citationData.year" :min="0" :status="citationData.year ? 'success' : 'error'" />
|
||||
<n-input-number-i18n v-model:value="citationData.year" :min="0" :status="citationData.year ? 'success' : 'error'" />
|
||||
</n-form-item>
|
||||
|
||||
<n-form-item :label="t('tools.citation-generator.texts.label-url-optional')">
|
||||
@@ -72,6 +80,7 @@ const formattedCitation = computed(() => {
|
||||
:options="[
|
||||
{ label: t('tools.citation-generator.texts.label-apa'), value: 'apa' },
|
||||
{ label: t('tools.citation-generator.texts.label-mla'), value: 'mla' },
|
||||
{ label: t('tools.citation-generator.texts.label-vancouver'), value: 'vancouver' },
|
||||
]"
|
||||
/>
|
||||
</n-form-item>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import * as service from './cli-command-editor.service';
|
||||
import { useQueryParam } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const inputCommand = ref('');
|
||||
const inputCommand = useQueryParam({ tool: 'cli-cmd-editor', name: 'cmd', defaultValue: '' });
|
||||
const options = computed(() => service.extractOptions(inputCommand.value));
|
||||
const optionsObject = computed(() => service.buildOptionsObject(options.value));
|
||||
const optionsInput = ref<{ [k: string]: string }>(optionsObject.value);
|
||||
@@ -20,9 +21,9 @@ const command = ref('');
|
||||
label-position="left"
|
||||
label-width="130px"
|
||||
:label="$t('tools.cli-command-editor.command')"
|
||||
:aria-:label="t('tools.cli-command-editor.texts.label-t-tools-cli-command-editor-command')"
|
||||
:aria-label="t('tools.cli-command-editor.command')"
|
||||
:placeholder="$t('tools.cli-command-editor.placeholder')"
|
||||
:aria-:placeholder="t('tools.cli-command-editor.texts.placeholder-t-tools-cli-command-editor-placeholder')"
|
||||
:aria-placeholder="t('tools.cli-command-editor.placeholder')"
|
||||
raw-text
|
||||
@update:value="() => { command = inputCommand }"
|
||||
/>
|
||||
@@ -33,9 +34,9 @@ const command = ref('');
|
||||
label-width="130px"
|
||||
label-align="left"
|
||||
:label="service.sanitizeOption(option)"
|
||||
:aria-:label="t('tools.cli-command-editor.texts.label-service-sanitizeoption-option')"
|
||||
:aria-label="service.sanitizeOption(option)"
|
||||
:placeholder="service.sanitizeOption(option)"
|
||||
:aria-:placeholder="t('tools.cli-command-editor.texts.placeholder-service-sanitizeoption-option')"
|
||||
:aria-placeholder="service.sanitizeOption(option)"
|
||||
mt-6
|
||||
@update:value="() => { command = service.buildEditedCommand(optionsInput, optionsObject, inputCommand) }"
|
||||
/>
|
||||
|
||||
@@ -5,8 +5,8 @@ import { useQueryParam } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const forecolor = useQueryParam({ name: 'fg', defaultValue: '#000' });
|
||||
const backcolor = useQueryParam({ name: 'bg', defaultValue: '#fff' });
|
||||
const forecolor = useQueryParam({ tool: 'color-constrast-checker', name: 'fg', defaultValue: '#000' });
|
||||
const backcolor = useQueryParam({ tool: 'color-constrast-checker', name: 'bg', defaultValue: '#fff' });
|
||||
|
||||
const levels = [
|
||||
{ score: 3, text: t('tools.color-contrast-checker.texts.text-very-poor'), bg: '#fbd0da', fg: '#5f071c', stars: 1 },
|
||||
|
||||
@@ -130,12 +130,12 @@ function updateColorValue(value: Colord | undefined, omitLabel?: string) {
|
||||
<c-card :title="t('tools.color-converter.texts.title-transformations')">
|
||||
<n-form-item :label="t('tools.color-converter.texts.label-saturation')" label-placement="left">
|
||||
<n-slider v-model:value="saturation" :step="1" :min="-100" :max="100" mr-2 />
|
||||
<n-input-number v-model:value="saturation" size="small" />
|
||||
<n-input-number-i18n v-model:value="saturation" size="small" />
|
||||
</n-form-item>
|
||||
|
||||
<n-form-item :label="t('tools.color-converter.texts.label-brightness')" label-placement="left">
|
||||
<n-slider v-model:value="brightness" :step="1" :min="-100" :max="100" mr-2 />
|
||||
<n-input-number v-model:value="brightness" size="small" />
|
||||
<n-input-number-i18n v-model:value="brightness" size="small" />
|
||||
</n-form-item>
|
||||
|
||||
<n-space>
|
||||
|
||||
@@ -7,12 +7,14 @@ import { computed, ref, watch } from 'vue';
|
||||
import { useDebounce } from '@vueuse/core';
|
||||
import type { Harmony, HarmonyType } from 'vue-color-wheel';
|
||||
import { VueColorWheel } from 'vue-color-wheel';
|
||||
import { useQueryParam } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
extend([a11yPlugin]);
|
||||
|
||||
const wheelColor = useDebounce(ref('#40ffff')); // { hue: 0, saturation: 0.68, value: 1 }
|
||||
const inputColor = useQueryParam({ tool: 'color-wheel', name: 'col', defaultValue: '#40ffff' });
|
||||
const wheelColor = useDebounce(inputColor); // { hue: 0, saturation: 0.68, value: 1 }
|
||||
const colors = ref<Array<Harmony>>([]);
|
||||
const currentType = ref<HarmonyType>('analogous');
|
||||
const isColorReadable = ref(false);
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useQueryParam } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const cookieHeader = useQueryParam({ name: 'cookies', defaultValue: '' });
|
||||
const cookieHeader = useQueryParam({ tool: 'cookies-parser', name: 'cookies', defaultValue: '' });
|
||||
|
||||
const parsedCookies = computed(() => {
|
||||
return (cookieHeader.value || '').replace(/^Cookie:\s*/, '').split('; ').map((cookie) => {
|
||||
|
||||
@@ -22,10 +22,10 @@ function getCountDownHref(c: CountDown) {
|
||||
return parsedUrl.toString();
|
||||
}
|
||||
|
||||
const days = useQueryParam({ name: 'd', defaultValue: 0 });
|
||||
const hours = useQueryParam({ name: 'h', defaultValue: 0 });
|
||||
const minutes = useQueryParam({ name: 'm', defaultValue: 0 });
|
||||
const seconds = useQueryParam({ name: 's', defaultValue: 0 });
|
||||
const days = useQueryParam({ tool: 'countdown', name: 'd', defaultValue: 0 });
|
||||
const hours = useQueryParam({ tool: 'countdown', name: 'h', defaultValue: 0 });
|
||||
const minutes = useQueryParam({ tool: 'countdown', name: 'm', defaultValue: 0 });
|
||||
const seconds = useQueryParam({ tool: 'countdown', name: 's', defaultValue: 0 });
|
||||
const history = useStorage<CountDown[]>('countdown:hst', []);
|
||||
|
||||
const status = ref<'stopped' | 'ended' | 'running'>('stopped');
|
||||
@@ -101,26 +101,26 @@ const isEnded = computed(() => status.value === 'ended');
|
||||
<div max-w-600px>
|
||||
<c-card :disabled="status !== 'stopped'" :title="t('tools.countdown.texts.title-countdown-time')" mb-4>
|
||||
<div mb-4 flex justify-center gap-2>
|
||||
<n-input-number v-model:value="days" :min="0">
|
||||
<n-input-number-i18n v-model:value="days" :min="0">
|
||||
<template #suffix>
|
||||
{{ t('tools.countdown.texts.tag-days') }}
|
||||
</template>
|
||||
</n-input-number>
|
||||
<n-input-number v-model:value="hours" :min="0">
|
||||
</n-input-number-i18n>
|
||||
<n-input-number-i18n v-model:value="hours" :min="0">
|
||||
<template #suffix>
|
||||
{{ t('tools.countdown.texts.tag-hours') }}
|
||||
</template>
|
||||
</n-input-number>
|
||||
<n-input-number v-model:value="minutes" :min="0">
|
||||
</n-input-number-i18n>
|
||||
<n-input-number-i18n v-model:value="minutes" :min="0">
|
||||
<template #suffix>
|
||||
{{ t('tools.countdown.texts.tag-minutes') }}
|
||||
</template>
|
||||
</n-input-number>
|
||||
<n-input-number v-model:value="seconds" :min="0">
|
||||
</n-input-number-i18n>
|
||||
<n-input-number-i18n v-model:value="seconds" :min="0">
|
||||
<template #suffix>
|
||||
{{ t('tools.countdown.texts.tag-seconds') }}
|
||||
</template>
|
||||
</n-input-number>
|
||||
</n-input-number-i18n>
|
||||
</div>
|
||||
|
||||
<div flex justify-center>
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { parse } from 'creditcard';
|
||||
import { useQueryParam } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const cardNumber = useQueryParam({ tool: 'credit-card-validator', name: 'number', defaultValue: '' });
|
||||
const parsed = computed(() => {
|
||||
if (!cardNumber.value) {
|
||||
return null;
|
||||
}
|
||||
return parse(cardNumber.value);
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<c-input-text
|
||||
v-model:value="cardNumber"
|
||||
:label="t('tools.credit-card-checker.texts.label-credit-card-number')"
|
||||
label-position="left"
|
||||
:placeholder="t('tools.credit-card-checker.texts.placeholder-e-g-4111-1111-1111-1111')"
|
||||
mb-2
|
||||
/>
|
||||
|
||||
<n-alert v-if="parsed && !parsed.validates" type="error">
|
||||
{{ t('tools.credit-card-checker.texts.tag-invlid-credit-card-number') }}
|
||||
</n-alert>
|
||||
<n-card v-if="parsed && parsed.validates" :title="t('tools.credit-card-checker.texts.title-credit-card-number-info')">
|
||||
<input-copyable :label="t('tools.credit-card-checker.texts.label-formatted')" label-position="left" label-width="150px" mb-1 :value="parsed.formatted" />
|
||||
<input-copyable :label="t('tools.credit-card-checker.texts.label-pan-truncated')" label-position="left" label-width="150px" mb-1 :value="parsed.truncate" />
|
||||
<input-copyable :label="t('tools.credit-card-checker.texts.label-scheme')" label-position="left" label-width="150px" mb-1 :value="parsed.scheme || 'Unknown'" />
|
||||
<input-copyable :label="t('tools.credit-card-checker.texts.label-major-industry-identifier')" mb-1 :value="parsed.mii" />
|
||||
<input-copyable :label="t('tools.credit-card-checker.texts.label-issuer-identifier-number')" mb-1 :value="parsed.iin" />
|
||||
<input-copyable :label="t('tools.credit-card-checker.texts.label-cvv-length')" label-position="left" label-width="150px" mb-1 :value="parsed.cvv" />
|
||||
</n-card>
|
||||
</div>
|
||||
</template>
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
declare module 'creditcard' {
|
||||
export function parse(creditCardNumber: string): {
|
||||
formatted: string
|
||||
truncate: string
|
||||
scheme: string
|
||||
mii: string
|
||||
iin: string
|
||||
validates: boolean
|
||||
cvv: number
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import { CreditCard } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.credit-card-checker.title'),
|
||||
path: '/credit-card-checker',
|
||||
description: t('tools.credit-card-checker.description'),
|
||||
keywords: ['credit', 'card', 'checker'],
|
||||
component: () => import('./credit-card-checker.vue'),
|
||||
icon: CreditCard,
|
||||
createdAt: new Date('2025-10-03'),
|
||||
category: 'Data',
|
||||
});
|
||||
@@ -0,0 +1,48 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { GenCC, Schemes } from 'creditcard-generator';
|
||||
import { useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const schemes = Object.keys(Schemes);
|
||||
|
||||
const selectedScheme = useQueryParamOrStorage({ name: 'type', storageName: 'credit-card-gen:t', defaultValue: 'VISA' });
|
||||
const count = useQueryParamOrStorage({ name: 'count', storageName: 'credit-card-gen:c', defaultValue: 5 });
|
||||
|
||||
const cards = ref('');
|
||||
|
||||
function generateCards() {
|
||||
cards.value = GenCC(selectedScheme.value, count.value).join('\n');
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<c-select
|
||||
v-model:value="selectedScheme"
|
||||
:options="schemes"
|
||||
:label="t('tools.credit-card-generator.texts.label-credit-card-scheme')"
|
||||
label-position="left"
|
||||
:placeholder="t('tools.credit-card-generator.texts.placeholder-select-scheme')"
|
||||
mb-1
|
||||
/>
|
||||
<n-form-item :label="t('tools.credit-card-generator.texts.label-number-of-credit-card-to-generate')" label-placement="left">
|
||||
<n-input-number
|
||||
v-model:value="count"
|
||||
:min="1"
|
||||
:max="50"
|
||||
:placeholder="t('tools.credit-card-generator.texts.placeholder-number-of-cards')"
|
||||
/>
|
||||
</n-form-item>
|
||||
<n-space justify="center">
|
||||
<n-button type="primary" mb-3 @click="generateCards">
|
||||
{{ t('tools.credit-card-generator.texts.tag-generate-random-credit-card-numbers') }}
|
||||
</n-button>
|
||||
</n-space>
|
||||
|
||||
<c-card v-if="cards" :title="t('tools.credit-card-generator.texts.title-generated-credit-card-numbers')">
|
||||
<textarea-copyable :value="cards" />
|
||||
</c-card>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,4 @@
|
||||
declare module 'creditcard-generator' {
|
||||
export const Schemes: Record<string, string>;
|
||||
export function GenCC(scheme: string, count: number): string[];
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import { CreditCard } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.credit-card-generator.title'),
|
||||
path: '/credit-card-generator',
|
||||
description: t('tools.credit-card-generator.description'),
|
||||
keywords: ['credit', 'card', 'generator'],
|
||||
component: () => import('./credit-card-generator.vue'),
|
||||
icon: CreditCard,
|
||||
createdAt: new Date('2025-10-03'),
|
||||
category: 'Data',
|
||||
});
|
||||
@@ -8,8 +8,8 @@ import { useQueryParam } from '@/composable/queryParams';
|
||||
const { t } = useI18n();
|
||||
|
||||
const allDays = '0,1,2,3,4,5,6';
|
||||
const alarmAt = useQueryParam({ name: 'at', defaultValue: '17:30:00' });
|
||||
const alarmDays = useQueryParam({ name: 'days', defaultValue: allDays });
|
||||
const alarmAt = useQueryParam({ tool: 'cronalarm', name: 'at', defaultValue: '17:30:00' });
|
||||
const alarmDays = useQueryParam({ tool: 'cronalarm', name: 'days', defaultValue: allDays });
|
||||
const history = useStorage<{ days: string; at: string }[]>('cronalarm:hst', []);
|
||||
|
||||
function getTimeHref(at: string, days: string) {
|
||||
|
||||
@@ -5,13 +5,13 @@ import ctz from 'countries-and-timezones';
|
||||
import getTimezoneOffset from 'get-timezone-offset';
|
||||
import { type CronType, getLastExecutionTimes, isCronValid } from './crontab-generator.service';
|
||||
import { useStyleStore } from '@/stores/style.store';
|
||||
import { useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
import { useQueryParam, useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const styleStore = useStyleStore();
|
||||
|
||||
const cron = ref('40 * * * *');
|
||||
const cron = useQueryParam({ tool: 'crontab-gen', name: 'expr', defaultValue: '40 * * * *' });
|
||||
const cronstrueConfig = reactive({
|
||||
verbose: true,
|
||||
dayOfWeekStartIndexZero: true,
|
||||
@@ -169,7 +169,12 @@ const getHelpers = computed(() => {
|
||||
|
||||
const cronString = computed(() => {
|
||||
if (isCronValid(cron.value)) {
|
||||
return cronstrue.toString(cron.value, cronstrueConfig);
|
||||
try {
|
||||
return cronstrue.toString(cron.value, cronstrueConfig);
|
||||
}
|
||||
catch (e: any) {
|
||||
return e.toString();
|
||||
}
|
||||
}
|
||||
return ' ';
|
||||
});
|
||||
|
||||
@@ -5,10 +5,11 @@ import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
import { withDefaultOnErrorAsync } from '@/utils/defaults';
|
||||
import { computedRefreshableAsync } from '@/composable/computedRefreshable';
|
||||
import { useValidation } from '@/composable/validation';
|
||||
import { useQueryParam } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const commonName = ref('test.com');
|
||||
const commonName = useQueryParam({ tool: 'csr-gen', name: 'cn', defaultValue: 'test.com' });
|
||||
const commonNameValidation = useValidation({
|
||||
source: commonName,
|
||||
rules: [
|
||||
@@ -19,13 +20,13 @@ const commonNameValidation = useValidation({
|
||||
],
|
||||
});
|
||||
|
||||
const organizationName = ref('Test');
|
||||
const organizationalUnit = ref('');
|
||||
const organizationName = useQueryParam({ tool: 'csr-gen', name: 'org', defaultValue: 'Test' });
|
||||
const organizationalUnit = useQueryParam({ tool: 'csr-gen', name: 'ou', defaultValue: '' });
|
||||
const password = ref('');
|
||||
const city = ref('Paris');
|
||||
const state = ref('FR');
|
||||
const country = ref('France');
|
||||
const contactEmail = ref('');
|
||||
const city = useQueryParam({ tool: 'csr-gen', name: 'city', defaultValue: 'Paris' });
|
||||
const state = useQueryParam({ tool: 'csr-gen', name: 'state', defaultValue: 'FR' });
|
||||
const country = useQueryParam({ tool: 'csr-gen', name: 'country', defaultValue: 'France' });
|
||||
const contactEmail = useQueryParam({ tool: 'csr-gen', name: 'email', defaultValue: '' });
|
||||
const subjectAlternativeNames = ref('');
|
||||
const emptyCSR = { csrPem: '', privateKeyPem: '', publicKeyPem: '' };
|
||||
|
||||
|
||||
@@ -3,10 +3,11 @@ import { useI18n } from 'vue-i18n';
|
||||
import xPathToCss from 'xpath-to-css';
|
||||
import cssToXpath from 'csstoxpath';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
import { useQueryParam } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const cssInput = ref('');
|
||||
const cssInput = useQueryParam({ tool: 'css-xpath-conv', name: 'css', defaultValue: '' });
|
||||
const xpathOutput = computed(
|
||||
() => {
|
||||
try {
|
||||
@@ -18,7 +19,7 @@ const xpathOutput = computed(
|
||||
},
|
||||
);
|
||||
|
||||
const xpathInput = ref('');
|
||||
const xpathInput = useQueryParam({ tool: 'css-xpath-conv', name: 'xpath', defaultValue: '' });
|
||||
const cssOutput = computed(
|
||||
() => {
|
||||
try {
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
<script lang="ts" setup>
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import * as XLSX from 'xlsx';
|
||||
|
||||
import { convertCsvToArray } from '../csv-to-json/csv-to-json.service';
|
||||
import { objectArrayToData } from '@/utils/objectarray.export';
|
||||
import type { ExportFormat } from '@/utils/objectarray.export';
|
||||
import { useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
@@ -13,8 +15,8 @@ const fileInput = ref() as Ref<File | null>;
|
||||
const error = ref('');
|
||||
|
||||
const convertedData = ref<string>('');
|
||||
const selectedFormat = ref<string>('json');
|
||||
const tableName = ref<string>('TableName');
|
||||
const selectedFormat = useQueryParamOrStorage({ name: 'fmt', storageName: 'csv-to-data:fmt', defaultValue: 'json' });
|
||||
const tableName = useQueryParamOrStorage({ name: 'table', storageName: 'csv-to-data:tbl', defaultValue: 'TableName' });
|
||||
const nestify = ref(false);
|
||||
const typedValues = ref(false);
|
||||
|
||||
@@ -27,6 +29,7 @@ const formats = [
|
||||
{ label: t('tools.csv-to-data.texts.label-csv-tab'), value: 'tsv' },
|
||||
{ label: t('tools.csv-to-data.texts.label-markdown'), value: 'markdown' },
|
||||
{ label: t('tools.csv-to-data.texts.label-xml'), value: 'xml' },
|
||||
{ label: t('tools.csv-to-data.texts.label-xlsx'), value: 'xlsx' },
|
||||
];
|
||||
|
||||
async function handleFileUpload(file: File) {
|
||||
@@ -56,16 +59,32 @@ async function convertFile() {
|
||||
}
|
||||
|
||||
const data = convertCsvToArray(csvContentValue, typedValues.value);
|
||||
convertedData.value = objectArrayToData(data, selectedFormat.value as ExportFormat, {
|
||||
tableName: tableName.value,
|
||||
nestify: nestify.value,
|
||||
});
|
||||
const outFormat = selectedFormat.value;
|
||||
if (outFormat === 'xlsx') {
|
||||
convertedData.value = '';
|
||||
downloadXLSX(data, tableName.value);
|
||||
}
|
||||
else {
|
||||
convertedData.value = objectArrayToData(data, outFormat as ExportFormat, {
|
||||
tableName: tableName.value,
|
||||
nestify: nestify.value,
|
||||
});
|
||||
}
|
||||
}
|
||||
catch (e: any) {
|
||||
error.value = e.toString();
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
function downloadXLSX<T extends Record<string, any>>(data: T[], fileName: string = 'data') {
|
||||
const worksheet = XLSX.utils.json_to_sheet(data);
|
||||
|
||||
const workbook = XLSX.utils.book_new();
|
||||
XLSX.utils.book_append_sheet(workbook, worksheet, fileName);
|
||||
|
||||
XLSX.writeFile(workbook, `${fileName}.xlsx`);
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -16,6 +16,7 @@ import {
|
||||
toWgetWarn,
|
||||
} from 'curlconverter';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
import { useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
@@ -85,7 +86,7 @@ const translate = {
|
||||
'wget': [toWget, toWgetWarn],
|
||||
};
|
||||
|
||||
const language = ref('python');
|
||||
const language = useQueryParamOrStorage({ name: 'lang', storageName: 'curl-conv:l', defaultValue: 'python' });
|
||||
const curl = ref('curl --data "hello=world" example.com');
|
||||
const inlang = computed(() => {
|
||||
try {
|
||||
|
||||
@@ -105,11 +105,11 @@ const jsonBodyValidation = useValidation({
|
||||
</c-card>
|
||||
|
||||
<c-card v-else :title="t('tools.curl-generator.texts.title-form-entries')" mb-2>
|
||||
<NDynamicInput v-model:value="formData" preset="pair" key-:placeholder="t('tools.curl-generator.texts.placeholder-key')" value-:placeholder="t('tools.curl-generator.texts.placeholder-value')" />
|
||||
<NDynamicInput v-model:value="formData" preset="pair" :key-placeholder="t('tools.curl-generator.texts.placeholder-key')" :value-placeholder="t('tools.curl-generator.texts.placeholder-value')" />
|
||||
</c-card>
|
||||
|
||||
<c-card :title="t('tools.curl-generator.texts.title-http-headers')" mb-2>
|
||||
<NDynamicInput v-model:value="headers" preset="pair" key-:placeholder="t('tools.curl-generator.texts.placeholder-header')" value-:placeholder="t('tools.curl-generator.texts.placeholder-value')" />
|
||||
<NDynamicInput v-model:value="headers" preset="pair" :key-placeholder="t('tools.curl-generator.texts.placeholder-header')" :value-placeholder="t('tools.curl-generator.texts.placeholder-value')" />
|
||||
</c-card>
|
||||
|
||||
<c-card :title="t('tools.curl-generator.texts.title-options')" mb-2>
|
||||
|
||||
@@ -3,14 +3,14 @@ import { useI18n } from 'vue-i18n';
|
||||
import { code, countries, country } from 'currency-codes-ts';
|
||||
import converter from 'currency-exchanger-js';
|
||||
import moneysData from './moneys.json';
|
||||
import { useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
import { useQueryParam, useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const allCurrencies = Object.entries(moneysData).map(([k, v]) => ({ value: k, label: v || k }));
|
||||
const otherCurrencies = useQueryParamOrStorage<{ name: string }[]>({ name: 'to', storageName: 'currency-conv:others', defaultValue: [{ name: 'usd' }] });
|
||||
const currentCurrency = useQueryParamOrStorage<string>({ name: 'from', storageName: 'currency-conv:cur', defaultValue: 'eur' });
|
||||
const amount = ref(1);
|
||||
const amount = useQueryParam({ tool: 'currency-conv', name: 'amount', defaultValue: 1 });
|
||||
const currentDatetime = ref(Date.now());
|
||||
|
||||
const convertedCurrencies = computedAsync<Record<string, number>>(async () => {
|
||||
@@ -47,7 +47,7 @@ const currencyToCountriesOutput = computed(() => code(currencyToCountriesInput.v
|
||||
mb-2
|
||||
/>
|
||||
<n-form-item :label="t('tools.currency-converter.texts.label-amount')" label-placement="left" mb-2>
|
||||
<n-input-number v-model:value="amount" :min="0" />
|
||||
<n-input-number-i18n v-model:value="amount" :min="0" />
|
||||
</n-form-item>
|
||||
|
||||
<n-form-item :label="t('tools.currency-converter.texts.label-for-date')" label-placement="left" mb-2>
|
||||
|
||||
@@ -28,7 +28,7 @@ const generatedData = ref<string>('');
|
||||
const itemCount = useQueryParamOrStorage({ name: 'count', storageName: 'faker:c', defaultValue: 1 });
|
||||
const error = ref('');
|
||||
const selectedFormat = useQueryParamOrStorage({ name: 'fmt', storageName: 'faker:f', defaultValue: 'json' });
|
||||
const tableName = ref<string>('TableName');
|
||||
const tableName = useQueryParamOrStorage({ name: 'table', storageName: 'faker:t', defaultValue: 'TableName' });
|
||||
const nestify = ref(false);
|
||||
|
||||
const allLocales = Object.keys(allFakers);
|
||||
@@ -49,7 +49,7 @@ const formats = [
|
||||
// Extract all faker methods dynamically
|
||||
const fakerMethods = computed(() => {
|
||||
const methods: string[] = [];
|
||||
const fakerObj = (faker as Record<string, any>);
|
||||
const fakerObj = (faker.value as Record<string, any>);
|
||||
Object.keys(fakerObj).forEach((category) => {
|
||||
if (typeof fakerObj[category] === 'object') {
|
||||
Object.keys(fakerObj[category]).forEach((method) => {
|
||||
@@ -65,12 +65,35 @@ const selectedMethod = ref<string>('');
|
||||
|
||||
function resolveFakerValue(value: string) {
|
||||
try {
|
||||
return value.startsWith('faker.')
|
||||
? value.split('.').slice(1).reduce((acc: any, prop: string) => acc[prop], faker.value)()
|
||||
: value;
|
||||
if (value.startsWith('faker.')) {
|
||||
const [, funcName, args] = /^([^\(]+)(?:\((.+)\))?$/.exec(value) || [];
|
||||
|
||||
let argsArray: any[] = [];
|
||||
if (args?.trim()) {
|
||||
try {
|
||||
argsArray = JSON5.parse(`[${args}]`);
|
||||
}
|
||||
catch {
|
||||
try {
|
||||
argsArray = [JSON5.parse(`{${args}}`).options];
|
||||
}
|
||||
catch {
|
||||
throw new Error(`Unable to parse faker function options: ${args}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const fakerFunc = funcName.split('.').slice(1).reduce((acc: any, prop: string) => acc[prop], faker.value) as CallableFunction;
|
||||
if (fakerFunc === null) {
|
||||
throw new Error(`Cannot find faker function: ${funcName}`);
|
||||
}
|
||||
|
||||
return fakerFunc(...argsArray);
|
||||
}
|
||||
return value; // raw value
|
||||
}
|
||||
catch {
|
||||
return value; // Fallback for invalid faker function names
|
||||
catch (e: any) {
|
||||
return e.toString(); // in case, of error, emit error as value
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,7 +152,7 @@ const rules: UseValidationRule<string>[] = [
|
||||
|
||||
<n-space mb-1>
|
||||
<NFormItem :label="t('tools.data-faker.texts.label-number-of-objects-to-generate')" label-placement="left">
|
||||
<NInputNumber v-model:value="itemCount" :min="1" :placeholder="t('tools.data-faker.texts.placeholder-number-of-objects-to-generate')" />
|
||||
<n-input-number-i18n v-model:value="itemCount" :min="1" :placeholder="t('tools.data-faker.texts.placeholder-number-of-objects-to-generate')" />
|
||||
</NFormItem>
|
||||
<n-form-item :label="t('tools.data-faker.texts.label-nestify-handle-nested-objects')" label-placement="left">
|
||||
<n-checkbox v-model:checked="nestify" />
|
||||
|
||||
@@ -85,7 +85,7 @@ const convertedValue = computed(() => {
|
||||
/>
|
||||
|
||||
<n-form-item :label="t('tools.data-storage-unit-converter.texts.label-precision')" label-placement="left">
|
||||
<n-input-number v-model:value="output.precision" style="width:100px" :placeholder="t('tools.data-storage-unit-converter.texts.placeholder-precision')" :max="10" :min="0" />
|
||||
<n-input-number-i18n v-model:value="output.precision" style="width:100px" :placeholder="t('tools.data-storage-unit-converter.texts.placeholder-precision')" :max="10" :min="0" />
|
||||
</n-form-item>
|
||||
|
||||
<n-checkbox v-model:checked="output.appendUnit">
|
||||
|
||||
@@ -194,9 +194,9 @@ const amountTransferableOutput = computed(() => {
|
||||
</n-form-item>
|
||||
|
||||
<n-form-item :label="t('tools.data-transfer-rate-converter.texts.label-duration-h-m-s')" label-placement="left">
|
||||
<n-input-number v-model:value="transferSpeedRateInput.hours" mr-1 :placeholder="t('tools.data-transfer-rate-converter.texts.placeholder-hours')" :min="0" w-full />
|
||||
<n-input-number v-model:value="transferSpeedRateInput.minutes" mr-1 :placeholder="t('tools.data-transfer-rate-converter.texts.placeholder-minutes')" :min="0" w-full />
|
||||
<n-input-number v-model:value="transferSpeedRateInput.seconds" mr-1 :placeholder="t('tools.data-transfer-rate-converter.texts.placeholder-seconds')" :min="0" w-full />
|
||||
<n-input-number-i18n v-model:value="transferSpeedRateInput.hours" mr-1 :placeholder="t('tools.data-transfer-rate-converter.texts.placeholder-hours')" :min="0" w-full />
|
||||
<n-input-number-i18n v-model:value="transferSpeedRateInput.minutes" mr-1 :placeholder="t('tools.data-transfer-rate-converter.texts.placeholder-minutes')" :min="0" w-full />
|
||||
<n-input-number-i18n v-model:value="transferSpeedRateInput.seconds" mr-1 :placeholder="t('tools.data-transfer-rate-converter.texts.placeholder-seconds')" :min="0" w-full />
|
||||
</n-form-item>
|
||||
|
||||
<n-divider />
|
||||
@@ -228,9 +228,9 @@ const amountTransferableOutput = computed(() => {
|
||||
</n-form-item>
|
||||
|
||||
<n-form-item :label="t('tools.data-transfer-rate-converter.texts.label-duration-h-m-s')" label-placement="left">
|
||||
<n-input-number v-model:value="amountTransferableInput.hours" mr-1 :placeholder="t('tools.data-transfer-rate-converter.texts.placeholder-hours')" :min="0" w-full />
|
||||
<n-input-number v-model:value="amountTransferableInput.minutes" mr-1 :placeholder="t('tools.data-transfer-rate-converter.texts.placeholder-minutes')" :min="0" w-full />
|
||||
<n-input-number v-model:value="amountTransferableInput.seconds" mr-1 :placeholder="t('tools.data-transfer-rate-converter.texts.placeholder-seconds')" :min="0" w-full />
|
||||
<n-input-number-i18n v-model:value="amountTransferableInput.hours" mr-1 :placeholder="t('tools.data-transfer-rate-converter.texts.placeholder-hours')" :min="0" w-full />
|
||||
<n-input-number-i18n v-model:value="amountTransferableInput.minutes" mr-1 :placeholder="t('tools.data-transfer-rate-converter.texts.placeholder-minutes')" :min="0" w-full />
|
||||
<n-input-number-i18n v-model:value="amountTransferableInput.seconds" mr-1 :placeholder="t('tools.data-transfer-rate-converter.texts.placeholder-seconds')" :min="0" w-full />
|
||||
</n-form-item>
|
||||
|
||||
<n-divider />
|
||||
|
||||
@@ -0,0 +1,200 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const dbType = useQueryParamOrStorage({ name: 'type', storageName: 'conn-string-builder:t', defaultValue: 'postgres' });
|
||||
const dbOptions = [
|
||||
{ label: t('tools.database-connection-string-builder.texts.label-mysql'), value: 'mysql' },
|
||||
{ label: t('tools.database-connection-string-builder.texts.label-postgresql'), value: 'postgres' },
|
||||
{ label: t('tools.database-connection-string-builder.texts.label-sql-server'), value: 'sqlserver' },
|
||||
{ label: t('tools.database-connection-string-builder.texts.label-sqlite'), value: 'sqlite' },
|
||||
{ label: t('tools.database-connection-string-builder.texts.label-mongodb'), value: 'mongodb' },
|
||||
];
|
||||
|
||||
const formatOptions = [
|
||||
{ label: t('tools.database-connection-string-builder.texts.label-uri-scheme'), value: 'uri' },
|
||||
{ label: t('tools.database-connection-string-builder.texts.label-keyword-value-pairs'), value: 'kvp' },
|
||||
];
|
||||
|
||||
const authOptions: Record<string, { label: string; value: string }[]> = {
|
||||
mysql: [{ label: t('tools.database-connection-string-builder.texts.label-username-password'), value: 'basic' }],
|
||||
postgres: [
|
||||
{ label: t('tools.database-connection-string-builder.texts.label-username-password'), value: 'basic' },
|
||||
{ label: t('tools.database-connection-string-builder.texts.label-peer'), value: 'peer' },
|
||||
{ label: t('tools.database-connection-string-builder.texts.label-gssapi-sspi'), value: 'gssapi' },
|
||||
],
|
||||
sqlserver: [
|
||||
{ label: t('tools.database-connection-string-builder.texts.label-username-password'), value: 'basic' },
|
||||
{ label: t('tools.database-connection-string-builder.texts.label-windows-integrated'), value: 'windows' },
|
||||
],
|
||||
sqlite: [],
|
||||
mongodb: [
|
||||
{ label: t('tools.database-connection-string-builder.texts.label-username-password-scram'), value: 'basic' },
|
||||
{ label: t('tools.database-connection-string-builder.texts.label-x-509-certificate'), value: 'x509' },
|
||||
],
|
||||
};
|
||||
|
||||
const form = ref({
|
||||
host: '',
|
||||
port: undefined,
|
||||
username: '',
|
||||
password: '',
|
||||
database: '',
|
||||
filePath: '',
|
||||
ssl: false,
|
||||
timeout: undefined,
|
||||
extra: '',
|
||||
authType: 'basic',
|
||||
format: 'uri',
|
||||
});
|
||||
|
||||
const defaultPorts: Record<string, number> = {
|
||||
mysql: 3306,
|
||||
postgres: 5432,
|
||||
sqlserver: 1433,
|
||||
mongodb: 27017,
|
||||
// sqlite has no port
|
||||
};
|
||||
|
||||
function getPort(db: string, port?: number) {
|
||||
if (port && port > 0) {
|
||||
return port;
|
||||
}
|
||||
return defaultPorts[db] || undefined;
|
||||
}
|
||||
|
||||
const connectionString = computed(() => {
|
||||
const { host, port, username, password, database, filePath, ssl, timeout, extra, authType, format } = form.value;
|
||||
|
||||
const effectivePort = getPort(dbType.value, port);
|
||||
|
||||
const sslParam = ssl ? (format === 'uri' ? 'ssl=true' : 'Encrypt=true;') : '';
|
||||
const timeoutParam = timeout ? (format === 'uri' ? `connectTimeout=${timeout}` : `Connection Timeout=${timeout};`) : '';
|
||||
const extras = format === 'uri'
|
||||
? [sslParam, timeoutParam, extra].filter(Boolean).join('&')
|
||||
: [sslParam, timeoutParam, extra].filter(Boolean).join('');
|
||||
|
||||
const suffix = format === 'uri' && extras ? `?${extras}` : '';
|
||||
|
||||
switch (dbType.value) {
|
||||
case 'mysql':
|
||||
return format === 'uri'
|
||||
? `mysql://${username}:${password}@${host}:${effectivePort}/${database}${suffix}`
|
||||
: `Server=${host};Port=${effectivePort};Database=${database};User Id=${username};Password=${password};${extras}`;
|
||||
case 'postgres':
|
||||
if (authType === 'peer') {
|
||||
return format === 'uri'
|
||||
? `postgresql://${host}/${database}${suffix}`
|
||||
: `Host=${host};Database=${database};Integrated Security=true;${extras}`;
|
||||
}
|
||||
if (authType === 'gssapi') {
|
||||
return format === 'uri'
|
||||
? `postgresql://${host}:${effectivePort}/${database}?auth=gssapi${suffix}`
|
||||
: `Host=${host};Port=${effectivePort};Database=${database};Integrated Security=SSPI;${extras}`;
|
||||
}
|
||||
return format === 'uri'
|
||||
? `postgresql://${username}:${password}@${host}:${effectivePort}/${database}${suffix}`
|
||||
: `Host=${host};Port=${effectivePort};Database=${database};User Id=${username};Password=${password};${extras}`;
|
||||
case 'sqlserver':
|
||||
if (authType === 'windows') {
|
||||
return format === 'uri'
|
||||
? `mssql://${host}:${effectivePort};database=${database};trusted_connection=true${suffix}`
|
||||
: `Server=${host},${effectivePort};Database=${database};Trusted_Connection=True;${extras}`;
|
||||
}
|
||||
return format === 'uri'
|
||||
? `mssql://${username}:${password}@${host}:${effectivePort}/${database}${suffix}`
|
||||
: `Server=${host},${effectivePort};Database=${database};User Id=${username};Password=${password};${extras}`;
|
||||
case 'sqlite':
|
||||
return format === 'uri'
|
||||
? `sqlite://${filePath}${suffix}`
|
||||
: `Data Source=${filePath};${extras}`;
|
||||
case 'mongodb':
|
||||
if (authType === 'x509') {
|
||||
return format === 'uri'
|
||||
? `mongodb://@${host}:${effectivePort}/${database}?authMechanism=MONGODB-X509${suffix}`
|
||||
: `Server=${host}:${effectivePort};Database=${database};AuthMechanism=MONGODB-X509;${extras}`;
|
||||
}
|
||||
return format === 'uri'
|
||||
? `mongodb://${username}:${password}@${host}:${effectivePort}/${database}${suffix}`
|
||||
: `Server=${host}:${effectivePort};Database=${database};User Id=${username};Password=${password};${extras}`;
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<n-card :title="t('tools.database-connection-string-builder.texts.title-database-connection-string-generator')" style="max-width: 750px; margin: auto;">
|
||||
<c-select
|
||||
v-model:value="dbType"
|
||||
:options="dbOptions"
|
||||
:placeholder="t('tools.database-connection-string-builder.texts.placeholder-select-a-database')"
|
||||
:label="t('tools.database-connection-string-builder.texts.label-database-type')"
|
||||
label-position="left"
|
||||
mb-2
|
||||
/>
|
||||
|
||||
<c-select
|
||||
v-model:value="form.format"
|
||||
:options="formatOptions"
|
||||
:placeholder="t('tools.database-connection-string-builder.texts.placeholder-select-format')"
|
||||
:label="t('tools.database-connection-string-builder.texts.label-connection-string-format')"
|
||||
label-position="left"
|
||||
mb-2
|
||||
/>
|
||||
|
||||
<n-divider>{{ t('tools.database-connection-string-builder.texts.tag-options') }}</n-divider>
|
||||
|
||||
<n-form :model="form" label-placement="left" label-width="140">
|
||||
<n-form-item v-if="authOptions[dbType]?.length" :label="t('tools.database-connection-string-builder.texts.label-authentication-type')">
|
||||
<n-select
|
||||
v-model:value="form.authType"
|
||||
:options="authOptions[dbType]"
|
||||
:placeholder="t('tools.database-connection-string-builder.texts.placeholder-select-authentication')"
|
||||
/>
|
||||
</n-form-item>
|
||||
|
||||
<template v-if="dbType !== 'sqlite' && form.authType !== 'peer' && form.authType !== 'windows' && form.authType !== 'x509'">
|
||||
<n-form-item :label="t('tools.database-connection-string-builder.texts.label-host')">
|
||||
<n-input v-model:value="form.host" :placeholder="t('tools.database-connection-string-builder.texts.placeholder-e-g-localhost')" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.database-connection-string-builder.texts.label-port')">
|
||||
<n-input-number v-model:value="form.port" :min="1" :max="65535" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.database-connection-string-builder.texts.label-username')">
|
||||
<n-input v-model:value="form.username" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.database-connection-string-builder.texts.label-password')">
|
||||
<n-input v-model:value="form.password" type="password" />
|
||||
</n-form-item>
|
||||
</template>
|
||||
|
||||
<n-form-item :label="t('tools.database-connection-string-builder.texts.label-database')">
|
||||
<n-input v-model:value="form.database" :placeholder="t('tools.database-connection-string-builder.texts.placeholder-e-g-mydb')" />
|
||||
</n-form-item>
|
||||
|
||||
<n-form-item v-if="dbType === 'sqlite'" :label="t('tools.database-connection-string-builder.texts.label-file-path')">
|
||||
<n-input v-model:value="form.filePath" :placeholder="t('tools.database-connection-string-builder.texts.placeholder-path-to-sqlite-db')" />
|
||||
</n-form-item>
|
||||
|
||||
<details mb-3>
|
||||
<summary>{{ t('tools.database-connection-string-builder.texts.tag-advanced-options') }}</summary>
|
||||
<n-form-item :label="t('tools.database-connection-string-builder.texts.label-ssl-enabled')">
|
||||
<n-switch v-model:value="form.ssl" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.database-connection-string-builder.texts.label-timeout-s')">
|
||||
<n-input-number v-model:value="form.timeout" :min="0" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.database-connection-string-builder.texts.label-extra-params')">
|
||||
<n-input v-model:value="form.extra" :placeholder="t('tools.database-connection-string-builder.texts.placeholder-e-g-charset-utf8-applicationname-myapp')" />
|
||||
</n-form-item>
|
||||
</details>
|
||||
</n-form>
|
||||
|
||||
<c-card :title="t('tools.database-connection-string-builder.texts.title-generate-connection-string')">
|
||||
<textarea-copyable :value="connectionString" />
|
||||
</c-card>
|
||||
</n-card>
|
||||
</template>
|
||||
Loaded 100 of 391 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user