mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-24 14:50:17 +03:00
Compare commits
17
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f52df1197 | ||
|
|
75637340a2 | ||
|
|
01928b3ad9 | ||
|
|
fb99fb24c7 | ||
|
|
8a89a78830 | ||
|
|
3ba3b222ad | ||
|
|
7516aae2c1 | ||
|
|
aab0e2eb18 | ||
|
|
c1d962c9b9 | ||
|
|
c30d598d77 | ||
|
|
3f8d2db9b9 | ||
|
|
20251116c3 | ||
|
|
a7776baa1a | ||
|
|
f6411f862c | ||
|
|
2c2643b14c | ||
|
|
087860c472 | ||
|
|
de2de50769 |
No files matched your search
@@ -48,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
|
||||
@@ -61,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:
|
||||
@@ -117,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
|
||||
|
||||
@@ -2,6 +2,35 @@
|
||||
|
||||
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
|
||||
|
||||
@@ -8,6 +8,8 @@ Docker image listen to IPv6, so it needs to be enabled: https://serverfault.com/
|
||||
|
||||
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.
|
||||
|
||||
+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
+3
-164
@@ -4,39 +4,6 @@
|
||||
maybe: Maybe the cache is doing tricky things, try force-refreshing?
|
||||
backHome: Back home
|
||||
about:
|
||||
content: >
|
||||
# About IT-Tools
|
||||
|
||||
This wonderful website, made with ❤ by [Corentin
|
||||
Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about) ,
|
||||
aggregates useful tools for developer and people working in IT. If you find
|
||||
it useful, please feel free to share it to people you think may find it
|
||||
useful too and don't forget to bookmark it in your shortcut bar!
|
||||
|
||||
IT Tools is open-source (under the GPL-3.0 license) and free, and will
|
||||
always be, but it costs me money to host and renew the domain name. If you
|
||||
want to support my work, and encourage me to add more tools, please consider
|
||||
supporting by [sponsoring me](https://www.buymeacoffee.com/sharevb).
|
||||
|
||||
## Technologies
|
||||
|
||||
IT Tools is made in Vue.js (Vue 3) with the the Naive UI component library
|
||||
and is hosted and continuously deployed by Vercel. Third-party open-source
|
||||
libraries are used in some tools, you may find the complete list in the
|
||||
[package.json](https://github.com/sharevb/it-tools/blob/main/package.json)
|
||||
file of the repository.
|
||||
|
||||
## Found a bug? A tool is missing?
|
||||
|
||||
If you need a tool that is currently not present here, and you think can be
|
||||
useful, you are welcome to submit a feature request in the [issues
|
||||
section](https://github.com/sharevb/it-tools/issues/new/choose) in the
|
||||
GitHub repository.
|
||||
|
||||
And if you found a bug, or something doesn't work as expected, please file a
|
||||
bug report in the [issues
|
||||
section](https://github.com/sharevb/it-tools/issues/new/choose) in the
|
||||
GitHub repository.
|
||||
alltools-title: All {toolsCount} Tools
|
||||
tools:
|
||||
name: Name
|
||||
@@ -53,7 +20,9 @@ about:
|
||||
shortcut bar!
|
||||
|
||||
IT Tools is open-source (under the GPL-3.0 license) and free, and will
|
||||
always be, but it costs me money to host and renew the domain name.
|
||||
always be. If you
|
||||
want to support my work on this fork, and encourage me to add more tools or functionalities, please consider
|
||||
supporting by [sponsoring me](https://www.buymeacoffee.com/sharevb).
|
||||
|
||||
## Technologies
|
||||
|
||||
@@ -204,9 +173,6 @@ tools:
|
||||
input-label-your-raw-json: Your raw JSON
|
||||
input-placeholder-paste-your-raw-json-here: Paste your raw JSON here...
|
||||
output-label-csv-version-of-your-json: CSV version of your JSON
|
||||
label-t-tools-json-to-csv-texts-input-label-your-raw-json: t('tools.json-to-csv.texts.input-label-your-raw-json')
|
||||
placeholder-t-tools-json-to-csv-texts-input-placeholder-paste-your-raw-json-here: t('tools.json-to-csv.texts.input-placeholder-paste-your-raw-json-here')
|
||||
label-t-tools-json-to-csv-texts-output-label-csv-version-of-your-json: t('tools.json-to-csv.texts.output-label-csv-version-of-your-json')
|
||||
csv-to-json:
|
||||
title: CSV to JSON
|
||||
description: Convert CSV to JSON with automatic header detection.
|
||||
@@ -216,9 +182,6 @@ tools:
|
||||
input-label-your-raw-csv: Your raw CSV
|
||||
input-placeholder-paste-your-raw-csv-here: Paste your raw CSV here...
|
||||
output-label-json-version-of-your-csv: JSON version of your CSV
|
||||
label-t-tools-csv-to-json-texts-input-label-your-raw-csv: t('tools.csv-to-json.texts.input-label-your-raw-csv')
|
||||
placeholder-t-tools-csv-to-json-texts-input-placeholder-paste-your-raw-csv-here: t('tools.csv-to-json.texts.input-placeholder-paste-your-raw-csv-here')
|
||||
label-t-tools-csv-to-json-texts-output-label-json-version-of-your-csv: t('tools.csv-to-json.texts.output-label-json-version-of-your-csv')
|
||||
camera-recorder:
|
||||
title: Camera recorder
|
||||
description: Take a picture or record a video from your webcam or camera.
|
||||
@@ -511,10 +474,6 @@ tools:
|
||||
input-label-your-input-data: Your input data
|
||||
input-placeholder-paste-your-input-data-here: Paste your input data here...
|
||||
output-label-your-transformed-data: Your transformed data
|
||||
label-t-tools-list-converter-texts-input-label-your-input-data: t('tools.list-converter.texts.input-label-your-input-data')
|
||||
placeholder-t-tools-list-converter-texts-input-placeholder-paste-your-input-data-here:
|
||||
t('tools.list-converter.texts.input-placeholder-paste-your-input-data-here')
|
||||
label-t-tools-list-converter-texts-output-label-your-transformed-data: t('tools.list-converter.texts.output-label-your-transformed-data')
|
||||
label-filter-item: Filter items by Regex
|
||||
placeholder-remove-item-filter-regex: Filter Regex
|
||||
placeholder-remove-item-not-filter-regex: Not Filter Regex
|
||||
@@ -547,9 +506,6 @@ tools:
|
||||
input-label-your-toml: Your TOML
|
||||
input-placeholder-paste-your-toml-here: Paste your TOML here...
|
||||
output-label-yaml-from-your-toml: YAML from your TOML
|
||||
label-t-tools-toml-to-yaml-texts-input-label-your-toml: t('tools.toml-to-yaml.texts.input-label-your-toml')
|
||||
placeholder-t-tools-toml-to-yaml-texts-input-placeholder-paste-your-toml-here: t('tools.toml-to-yaml.texts.input-placeholder-paste-your-toml-here')
|
||||
label-t-tools-toml-to-yaml-texts-output-label-yaml-from-your-toml: t('tools.toml-to-yaml.texts.output-label-yaml-from-your-toml')
|
||||
math-evaluator:
|
||||
title: Math evaluator
|
||||
description: A calculator for evaluating mathematical expressions. You can use
|
||||
@@ -565,10 +521,6 @@ tools:
|
||||
input-label-your-json: Your JSON
|
||||
input-placeholder-paste-your-json-here: Paste your JSON here...
|
||||
output-label-yaml-from-your-json: YAML from your JSON
|
||||
label-t-tools-json-to-yaml-converter-texts-input-label-your-json: t('tools.json-to-yaml-converter.texts.input-label-your-json')
|
||||
placeholder-t-tools-json-to-yaml-converter-texts-input-placeholder-paste-your-json-here:
|
||||
t('tools.json-to-yaml-converter.texts.input-placeholder-paste-your-json-here')
|
||||
label-t-tools-json-to-yaml-converter-texts-output-label-yaml-from-your-json: t('tools.json-to-yaml-converter.texts.output-label-yaml-from-your-json')
|
||||
json-to-javascript:
|
||||
title: JSON to JS converter
|
||||
description: Simply convert JSON to Javascript object with this live online converter.
|
||||
@@ -578,11 +530,6 @@ tools:
|
||||
input-label-your-json: Your JSON
|
||||
input-placeholder-paste-your-json-here: Paste your JSON here...
|
||||
output-label-javascript-object-from-your-json: JavaScript Object from your JSON
|
||||
label-t-tools-json-to-javascript-texts-input-label-your-json: t('tools.json-to-javascript.texts.input-label-your-json')
|
||||
placeholder-t-tools-json-to-javascript-texts-input-placeholder-paste-your-json-here:
|
||||
t('tools.json-to-javascript.texts.input-placeholder-paste-your-json-here')
|
||||
label-t-tools-json-to-javascript-texts-output-label-javascript-object-from-your-json:
|
||||
t('tools.json-to-javascript.texts.output-label-javascript-object-from-your-json')
|
||||
javascript-to-json:
|
||||
title: JS to JSON converter
|
||||
description: Simply convert Javascript object to JSON with this live online converter.
|
||||
@@ -592,11 +539,6 @@ tools:
|
||||
input-label-your-javascript-object: Your JavaScript Object
|
||||
input-placeholder-paste-your-js-object-here: Paste your JS Object here...
|
||||
output-label-json-from-your-javascript-object: JSON from your JavaScript Object
|
||||
label-t-tools-javascript-to-json-texts-input-label-your-javascript-object: t('tools.javascript-to-json.texts.input-label-your-javascript-object')
|
||||
placeholder-t-tools-javascript-to-json-texts-input-placeholder-paste-your-js-object-here:
|
||||
t('tools.javascript-to-json.texts.input-placeholder-paste-your-js-object-here')
|
||||
label-t-tools-javascript-to-json-texts-output-label-json-from-your-javascript-object:
|
||||
t('tools.javascript-to-json.texts.output-label-json-from-your-javascript-object')
|
||||
numeronym-generator:
|
||||
title: Numeronym generator
|
||||
description: A numeronym is a word where a number is used to form an
|
||||
@@ -696,9 +638,6 @@ tools:
|
||||
input-label-your-toml: Your TOML
|
||||
input-placeholder-paste-your-toml-here: Paste your TOML here...
|
||||
output-label-json-from-your-toml: JSON from your TOML
|
||||
label-t-tools-toml-to-json-texts-input-label-your-toml: t('tools.toml-to-json.texts.input-label-your-toml')
|
||||
placeholder-t-tools-toml-to-json-texts-input-placeholder-paste-your-toml-here: t('tools.toml-to-json.texts.input-placeholder-paste-your-toml-here')
|
||||
label-t-tools-toml-to-json-texts-output-label-json-from-your-toml: t('tools.toml-to-json.texts.output-label-json-from-your-toml')
|
||||
lorem-ipsum-generator:
|
||||
title: Lorem ipsum generator
|
||||
description: Lorem ipsum is a placeholder text commonly used to demonstrate the
|
||||
@@ -741,9 +680,6 @@ tools:
|
||||
output-label-formatted-xml-from-your-xml: Formatted XML from your XML
|
||||
tag-foo: foo
|
||||
tag-bar: bar
|
||||
label-t-tools-xml-formatter-texts-input-label-your-xml: t('tools.xml-formatter.texts.input-label-your-xml')
|
||||
placeholder-t-tools-xml-formatter-texts-input-placeholder-paste-your-xml-here: t('tools.xml-formatter.texts.input-placeholder-paste-your-xml-here')
|
||||
label-t-tools-xml-formatter-texts-output-label-formatted-xml-from-your-xml: t('tools.xml-formatter.texts.output-label-formatted-xml-from-your-xml')
|
||||
temperature-converter:
|
||||
title: Temperature converter
|
||||
description: Degrees temperature conversions for Kelvin, Celsius, Fahrenheit,
|
||||
@@ -789,9 +725,6 @@ tools:
|
||||
input-label-your-yaml: Your YAML
|
||||
input-placeholder-paste-your-yaml-here: Paste your YAML here...
|
||||
output-label-toml-from-your-yaml: TOML from your YAML
|
||||
label-t-tools-yaml-to-toml-texts-input-label-your-yaml: t('tools.yaml-to-toml.texts.input-label-your-yaml')
|
||||
placeholder-t-tools-yaml-to-toml-texts-input-placeholder-paste-your-yaml-here: t('tools.yaml-to-toml.texts.input-placeholder-paste-your-yaml-here')
|
||||
label-t-tools-yaml-to-toml-texts-output-label-toml-from-your-yaml: t('tools.yaml-to-toml.texts.output-label-toml-from-your-yaml')
|
||||
json-diff:
|
||||
title: JSON diff
|
||||
description: Compare two JSON objects and get the differences between them.
|
||||
@@ -870,9 +803,6 @@ tools:
|
||||
input-label-your-json: Your JSON
|
||||
input-placeholder-paste-your-json-here: Paste your JSON here...
|
||||
output-label-toml-from-your-json: TOML from your JSON
|
||||
label-t-tools-json-to-toml-texts-input-label-your-json: t('tools.json-to-toml.texts.input-label-your-json')
|
||||
placeholder-t-tools-json-to-toml-texts-input-placeholder-paste-your-json-here: t('tools.json-to-toml.texts.input-placeholder-paste-your-json-here')
|
||||
label-t-tools-json-to-toml-texts-output-label-toml-from-your-json: t('tools.json-to-toml.texts.output-label-toml-from-your-json')
|
||||
json-to-ts:
|
||||
title: JSON to TS
|
||||
description: Parse and convert JSON to TS.
|
||||
@@ -881,9 +811,6 @@ tools:
|
||||
input-label-your-json: Your JSON
|
||||
input-placeholder-paste-your-json-here: Paste your JSON here...
|
||||
output-label-ts-from-your-json: TS from your JSON
|
||||
label-t-tools-json-to-ts-texts-input-label-your-json: t('tools.json-to-ts.texts.input-label-your-json')
|
||||
placeholder-t-tools-json-to-ts-texts-input-placeholder-paste-your-json-here: t('tools.json-to-ts.texts.input-placeholder-paste-your-json-here')
|
||||
label-t-tools-json-to-ts-texts-output-label-ts-from-your-json: t('tools.json-to-ts.texts.output-label-ts-from-your-json')
|
||||
device-information:
|
||||
title: Device information
|
||||
description: Get information about your current device (screen size,
|
||||
@@ -931,9 +858,6 @@ tools:
|
||||
input-label-your-raw-json: Your raw JSON
|
||||
input-placeholder-paste-your-raw-json-here: Paste your raw JSON here...
|
||||
output-label-minified-version-of-your-json: Minified version of your JSON
|
||||
label-t-tools-json-minify-texts-input-label-your-raw-json: t('tools.json-minify.texts.input-label-your-raw-json')
|
||||
placeholder-t-tools-json-minify-texts-input-placeholder-paste-your-raw-json-here: t('tools.json-minify.texts.input-placeholder-paste-your-raw-json-here')
|
||||
label-t-tools-json-minify-texts-output-label-minified-version-of-your-json: t('tools.json-minify.texts.output-label-minified-version-of-your-json')
|
||||
json-string-converter:
|
||||
title: Json string converter
|
||||
description: Convert your text or JavaScript objects to JSON string format and
|
||||
@@ -946,11 +870,6 @@ tools:
|
||||
input-label-your-text-json-string: Your text / JSON string
|
||||
input-placeholder-paste-your-text-here: Paste your text here...
|
||||
output-label-json-string-conversion-of-your-input: JSON string conversion of your input
|
||||
label-t-tools-json-string-converter-texts-input-label-your-text-json-string: t('tools.json-string-converter.texts.input-label-your-text-json-string')
|
||||
placeholder-t-tools-json-string-converter-texts-input-placeholder-paste-your-text-here:
|
||||
t('tools.json-string-converter.texts.input-placeholder-paste-your-text-here')
|
||||
label-t-tools-json-string-converter-texts-output-label-json-string-conversion-of-your-input:
|
||||
t('tools.json-string-converter.texts.output-label-json-string-conversion-of-your-input')
|
||||
ulid-generator:
|
||||
title: ULID generator
|
||||
description: Generate random Universally Unique Lexicographically Sortable
|
||||
@@ -990,10 +909,6 @@ tools:
|
||||
input-placeholder-paste-your-yaml-here: Paste your yaml here...
|
||||
output-label-json-from-your-yaml: JSON from your YAML
|
||||
label-nestify-a-b-c-to-nested-objects: Nestify ('a.b.c' to nested objects)
|
||||
label-t-tools-yaml-to-json-converter-texts-input-label-your-yaml: t('tools.yaml-to-json-converter.texts.input-label-your-yaml')
|
||||
placeholder-t-tools-yaml-to-json-converter-texts-input-placeholder-paste-your-yaml-here:
|
||||
t('tools.yaml-to-json-converter.texts.input-placeholder-paste-your-yaml-here')
|
||||
label-t-tools-yaml-to-json-converter-texts-output-label-json-from-your-yaml: t('tools.yaml-to-json-converter.texts.output-label-json-from-your-yaml')
|
||||
uuid-generator:
|
||||
title: UUIDs generator
|
||||
description: A Universally Unique Identifier (UUID) is a 128-bit number used to
|
||||
@@ -1211,9 +1126,6 @@ tools:
|
||||
input-label-your-json: Your JSON
|
||||
input-placeholder-paste-your-json-here: Paste your JSON here...
|
||||
output-label-object-from-your-json: Object from your JSON
|
||||
label-t-tools-json-to-object-texts-input-label-your-json: t('tools.json-to-object.texts.input-label-your-json')
|
||||
placeholder-t-tools-json-to-object-texts-input-placeholder-paste-your-json-here: t('tools.json-to-object.texts.input-placeholder-paste-your-json-here')
|
||||
label-t-tools-json-to-object-texts-output-label-object-from-your-json: t('tools.json-to-object.texts.output-label-object-from-your-json')
|
||||
unicode-to-java-entities:
|
||||
title: Unicode Characters to Java Entities Converter
|
||||
description: Unicode Characters to Java Entities Converter and vice-versa
|
||||
@@ -2499,9 +2411,6 @@ tools:
|
||||
input-label-your-json: Your JSON
|
||||
input-placeholder-paste-your-json-here: Paste your JSON here...
|
||||
output-label-php-array-version: PHP Array version
|
||||
label-t-tools-json-to-php-array-texts-input-label-your-json: t('tools.json-to-php-array.texts.input-label-your-json')
|
||||
placeholder-t-tools-json-to-php-array-texts-input-placeholder-paste-your-json-here: t('tools.json-to-php-array.texts.input-placeholder-paste-your-json-here')
|
||||
label-t-tools-json-to-php-array-texts-output-label-php-array-version: t('tools.json-to-php-array.texts.output-label-php-array-version')
|
||||
json-to-schema:
|
||||
title: Json to Schema
|
||||
description: Convert JSON data to JSON Schema, MySQL DDL, Mongoose Schema,
|
||||
@@ -2520,9 +2429,6 @@ tools:
|
||||
input-label-your-json: Your JSON
|
||||
input-placeholder-paste-your-json-here: Paste your JSON here...
|
||||
output-label-your-schema: Your schema
|
||||
label-t-tools-json-to-schema-texts-input-label-your-json: t('tools.json-to-schema.texts.input-label-your-json')
|
||||
placeholder-t-tools-json-to-schema-texts-input-placeholder-paste-your-json-here: t('tools.json-to-schema.texts.input-placeholder-paste-your-json-here')
|
||||
label-t-tools-json-to-schema-texts-output-label-your-schema: t('tools.json-to-schema.texts.output-label-your-schema')
|
||||
jsonpath-memo:
|
||||
title: JSONPath Syntax Cheatsheet
|
||||
description: JSONPath Syntax Cheatsheet
|
||||
@@ -2736,10 +2642,6 @@ tools:
|
||||
input-label-your-nginx-config: Your Nginx config
|
||||
input-placeholder-paste-your-nginx-config-here: Paste your Nginx config here...
|
||||
output-label-prettified-nginx-config: Prettified Nginx config
|
||||
label-t-tools-nginx-formatter-texts-input-label-your-nginx-config: t('tools.nginx-formatter.texts.input-label-your-nginx-config')
|
||||
placeholder-t-tools-nginx-formatter-texts-input-placeholder-paste-your-nginx-config-here:
|
||||
t('tools.nginx-formatter.texts.input-placeholder-paste-your-nginx-config-here')
|
||||
label-t-tools-nginx-formatter-texts-output-label-prettified-nginx-config: t('tools.nginx-formatter.texts.output-label-prettified-nginx-config')
|
||||
ocr-image:
|
||||
title: OCRize image and PDF
|
||||
description: Perform OCR (Tesseract) on an image or PDF
|
||||
@@ -2941,10 +2843,6 @@ tools:
|
||||
input-label-your-php-array: Your PHP Array
|
||||
input-placeholder-paste-your-php-array-here: Paste your PHP Array here...
|
||||
output-label-json-version: JSON version
|
||||
label-t-tools-php-array-to-json-texts-input-label-your-php-array: t('tools.php-array-to-json.texts.input-label-your-php-array')
|
||||
placeholder-t-tools-php-array-to-json-texts-input-placeholder-paste-your-php-array-here:
|
||||
t('tools.php-array-to-json.texts.input-placeholder-paste-your-php-array-here')
|
||||
label-t-tools-php-array-to-json-texts-output-label-json-version: t('tools.php-array-to-json.texts.output-label-json-version')
|
||||
pin-code-generator:
|
||||
title: Pin Code Generator
|
||||
description: Generate Unique PIN (digits) codes
|
||||
@@ -3088,10 +2986,6 @@ tools:
|
||||
input-label-your-log-textual-data: "Your log/textual data:"
|
||||
input-placeholder-paste-your-log-textual-data-here: Paste your log/textual data here...
|
||||
output-label-cleaned-version: "Cleaned version:"
|
||||
label-t-tools-sensitive-data-masker-texts-input-label-your-log-textual-data: t('tools.sensitive-data-masker.texts.input-label-your-log-textual-data')
|
||||
placeholder-t-tools-sensitive-data-masker-texts-input-placeholder-paste-your-log-textual-data-here:
|
||||
t('tools.sensitive-data-masker.texts.input-placeholder-paste-your-log-textual-data-here')
|
||||
label-t-tools-sensitive-data-masker-texts-output-label-cleaned-version: t('tools.sensitive-data-masker.texts.output-label-cleaned-version')
|
||||
sla-calculator:
|
||||
title: SLA calculator
|
||||
description: Service Level Agreement Calcultator
|
||||
@@ -3443,11 +3337,6 @@ tools:
|
||||
generate the command with
|
||||
command: Command
|
||||
placeholder: Paste command here
|
||||
texts:
|
||||
label-t-tools-cli-command-editor-command: $t('tools.cli-command-editor.command')
|
||||
placeholder-t-tools-cli-command-editor-placeholder: $t('tools.cli-command-editor.placeholder')
|
||||
label-service-sanitizeoption-option: service.sanitizeOption(option)
|
||||
placeholder-service-sanitizeoption-option: service.sanitizeOption(option)
|
||||
safelink-decoder:
|
||||
title: Outlook Safelink decoder
|
||||
description: Decode Outlook SafeLink links
|
||||
@@ -3474,10 +3363,6 @@ tools:
|
||||
input-placeholder: Paste your JSON content here...
|
||||
output: Converted XML
|
||||
error: Provided JSON is not valid.
|
||||
texts:
|
||||
label-t-tools-json-to-xml-input: t('tools.json-to-xml.input')
|
||||
placeholder-t-tools-json-to-xml-input-placeholder: t('tools.json-to-xml.input-placeholder')
|
||||
label-t-tools-json-to-xml-output: t('tools.json-to-xml.output')
|
||||
xml-to-json:
|
||||
title: XML to JSON
|
||||
description: Convert XML to JSON
|
||||
@@ -3485,10 +3370,6 @@ tools:
|
||||
input-placeholder: Paste your XML content here...
|
||||
output: Converted JSON
|
||||
error: Provided XML is not valid.
|
||||
texts:
|
||||
label-t-tools-xml-to-json-input: t('tools.xml-to-json.input')
|
||||
placeholder-t-tools-xml-to-json-input-placeholder: t('tools.xml-to-json.input-placeholder')
|
||||
label-t-tools-xml-to-json-output: t('tools.xml-to-json.output')
|
||||
email-normalizer:
|
||||
title: Email normalizer
|
||||
description: Normalize email addresses to a standard format for easier
|
||||
@@ -4030,10 +3911,6 @@ tools:
|
||||
input-label-your-json: Your JSON
|
||||
input-placeholder-paste-your-json-here: Paste your JSON here...
|
||||
output-label-protobuf-version-of-your-json-objects: "ProtoBuf version of your JSON objects:"
|
||||
label-t-tools-json-to-protobuf-texts-input-label-your-json: t('tools.json-to-protobuf.texts.input-label-your-json')
|
||||
placeholder-t-tools-json-to-protobuf-texts-input-placeholder-paste-your-json-here: t('tools.json-to-protobuf.texts.input-placeholder-paste-your-json-here')
|
||||
label-t-tools-json-to-protobuf-texts-output-label-protobuf-version-of-your-json-objects:
|
||||
t('tools.json-to-protobuf.texts.output-label-protobuf-version-of-your-json-objects')
|
||||
json-to-python:
|
||||
title: Json to Python
|
||||
description: Convert JSON to Python classes
|
||||
@@ -4060,9 +3937,6 @@ tools:
|
||||
input-label-your-json: Your JSON
|
||||
input-placeholder-paste-your-json-here: Paste your JSON here...
|
||||
output-label-your-sql-ddl: Your SQL DDL
|
||||
label-t-tools-json-to-sql-ddl-texts-input-label-your-json: t('tools.json-to-sql-ddl.texts.input-label-your-json')
|
||||
placeholder-t-tools-json-to-sql-ddl-texts-input-placeholder-paste-your-json-here: t('tools.json-to-sql-ddl.texts.input-placeholder-paste-your-json-here')
|
||||
label-t-tools-json-to-sql-ddl-texts-output-label-your-sql-ddl: t('tools.json-to-sql-ddl.texts.output-label-your-sql-ddl')
|
||||
json-to-sql-insert:
|
||||
title: Json to SQL INSERT
|
||||
description: Convert JSON array to INSERT INTO
|
||||
@@ -4218,14 +4092,6 @@ tools:
|
||||
input-label-your-yaml-content: "Your YAML content:"
|
||||
input-placeholder-paste-your-yaml-content-here: Paste your YAML content here...
|
||||
output-label-properties-version: ".properties version:"
|
||||
label-t-tools-properties-converter-texts-input-label-your-properties-content: t('tools.properties-converter.texts.input-label-your-properties-content')
|
||||
placeholder-t-tools-properties-converter-texts-input-placeholder-paste-your-properties-content-here:
|
||||
t('tools.properties-converter.texts.input-placeholder-paste-your-properties-content-here')
|
||||
label-t-tools-properties-converter-texts-output-label-yaml-version: t('tools.properties-converter.texts.output-label-yaml-version')
|
||||
label-t-tools-properties-converter-texts-input-label-your-yaml-content: t('tools.properties-converter.texts.input-label-your-yaml-content')
|
||||
placeholder-t-tools-properties-converter-texts-input-placeholder-paste-your-yaml-content-here:
|
||||
t('tools.properties-converter.texts.input-placeholder-paste-your-yaml-content-here')
|
||||
label-t-tools-properties-converter-texts-output-label-properties-version: t('tools.properties-converter.texts.output-label-properties-version')
|
||||
punycode-converter:
|
||||
title: Punycode Converter
|
||||
description: Convert international unicode domain names or emails from/to ASCII
|
||||
@@ -4250,14 +4116,6 @@ tools:
|
||||
input-label-double-quoted-string: Double quoted string
|
||||
input-placeholder-paste-your-double-quoted-string-here: Paste your double quoted string here...
|
||||
output-label-single-quoted-string: Single quoted string
|
||||
label-t-tools-quote-converter-texts-input-label-single-quoted-string: t('tools.quote-converter.texts.input-label-single-quoted-string')
|
||||
placeholder-t-tools-quote-converter-texts-input-placeholder-paste-your-single-quoted-string-here:
|
||||
t('tools.quote-converter.texts.input-placeholder-paste-your-single-quoted-string-here')
|
||||
label-t-tools-quote-converter-texts-output-label-double-quoted-string: t('tools.quote-converter.texts.output-label-double-quoted-string')
|
||||
label-t-tools-quote-converter-texts-input-label-double-quoted-string: t('tools.quote-converter.texts.input-label-double-quoted-string')
|
||||
placeholder-t-tools-quote-converter-texts-input-placeholder-paste-your-double-quoted-string-here:
|
||||
t('tools.quote-converter.texts.input-placeholder-paste-your-double-quoted-string-here')
|
||||
label-t-tools-quote-converter-texts-output-label-single-quoted-string: t('tools.quote-converter.texts.output-label-single-quoted-string')
|
||||
rsync-generator:
|
||||
title: Rsync Generator
|
||||
description: Rsync command generator
|
||||
@@ -4446,10 +4304,6 @@ tools:
|
||||
input-label-your-raw-html: Your raw HTML
|
||||
input-placeholder-paste-your-raw-html-here: Paste your raw HTML here...
|
||||
output-label-text-from-your-html: Text from your HTML
|
||||
label-t-tools-extract-text-from-html-texts-input-label-your-raw-html: t('tools.extract-text-from-html.texts.input-label-your-raw-html')
|
||||
placeholder-t-tools-extract-text-from-html-texts-input-placeholder-paste-your-raw-html-here:
|
||||
t('tools.extract-text-from-html.texts.input-placeholder-paste-your-raw-html-here')
|
||||
label-t-tools-extract-text-from-html-texts-output-label-text-from-your-html: t('tools.extract-text-from-html.texts.output-label-text-from-your-html')
|
||||
title: Extract text from HTML
|
||||
description: 'Paste your HTML in the input form on the left and you will get
|
||||
text instantly. Occasionally, you may need to extract plain text from an
|
||||
@@ -4584,10 +4438,6 @@ tools:
|
||||
result: Result
|
||||
sucess: Success
|
||||
failure: Failure
|
||||
texts:
|
||||
label-t-tools-sip-auth-message: $t('tools.sip-auth.message')
|
||||
placeholder-t-tools-sip-auth-message-tips: $t('tools.sip-auth.message-tips')
|
||||
label-t-tools-sip-auth-result: $t('tools.sip-auth.result')
|
||||
text:
|
||||
not-found: Not Found
|
||||
sharepoint-decoder:
|
||||
@@ -6149,10 +5999,6 @@ tools:
|
||||
output-label-transformed-json: "Transformed JSON:"
|
||||
tag-flatten: Flatten
|
||||
tag-unflatten-nestify: Unflatten/Nestify
|
||||
label-t-tools-json-flatten-nestify-texts-input-label-your-json-content: t('tools.json-flatten-nestify.texts.input-label-your-json-content')
|
||||
placeholder-t-tools-json-flatten-nestify-texts-input-placeholder-paste-your-json-content-here:
|
||||
t('tools.json-flatten-nestify.texts.input-placeholder-paste-your-json-content-here')
|
||||
label-t-tools-json-flatten-nestify-texts-output-label-transformed-json: t('tools.json-flatten-nestify.texts.output-label-transformed-json')
|
||||
json-merger:
|
||||
title: JSON Merger
|
||||
description: Merge deeply two JSON content
|
||||
@@ -6194,10 +6040,6 @@ tools:
|
||||
output-label-transformed-yaml: "Transformed YAML:"
|
||||
tag-flatten: Flatten
|
||||
tag-unflatten-nestify: Unflatten/Nestify
|
||||
label-t-tools-yaml-flatten-nestify-texts-input-label-your-yaml-content: t('tools.yaml-flatten-nestify.texts.input-label-your-yaml-content')
|
||||
placeholder-t-tools-yaml-flatten-nestify-texts-input-placeholder-paste-your-yaml-content-here:
|
||||
t('tools.yaml-flatten-nestify.texts.input-placeholder-paste-your-yaml-content-here')
|
||||
label-t-tools-yaml-flatten-nestify-texts-output-label-transformed-yaml: t('tools.yaml-flatten-nestify.texts.output-label-transformed-yaml')
|
||||
yaml-merger:
|
||||
title: YAML Merger
|
||||
description: Merge deeply two YAML content
|
||||
@@ -6859,9 +6701,6 @@ tools:
|
||||
label-total-size: "Total size:"
|
||||
label-segments-count: "Segments count:"
|
||||
label-non-gsm-7-characters: "Non GSM-7 characters:"
|
||||
label-t-tools-unicode-to-gsm7-texts-input-label-your-text-to-encode-to-gsm-7: t('tools.unicode-to-gsm7.texts.input-label-your-text-to-encode-to-gsm-7')
|
||||
placeholder-t-tools-unicode-to-gsm7-texts-input-placeholder-put-your-text-here: t('tools.unicode-to-gsm7.texts.input-placeholder-put-your-text-here')
|
||||
label-t-tools-unicode-to-gsm7-texts-output-label-gsm-7-encoded-version: t('tools.unicode-to-gsm7.texts.output-label-gsm-7-encoded-version')
|
||||
which-day:
|
||||
title: Which Day?
|
||||
description: Given a day and month, and years range, list all day of week a
|
||||
|
||||
+7189
-52
File diff suppressed because it is too large.
Load diff
+1990
-2064
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
+2141
-1274
File diff suppressed because it is too large.
Load diff
+33
-29
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "it-tools",
|
||||
"type": "module",
|
||||
"version": "2025.10.12",
|
||||
"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": {
|
||||
@@ -173,13 +174,13 @@
|
||||
"hex-array": "^1.0.0",
|
||||
"highlight.js": "^11.11.1",
|
||||
"html-to-text": "^9.0.5",
|
||||
"htmlfy": "^0.8.1",
|
||||
"htmlfy": "^1.0.0",
|
||||
"hyparquet": "^1.9.0",
|
||||
"hyparquet-compressors": "^1.0.0",
|
||||
"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",
|
||||
@@ -188,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",
|
||||
@@ -196,14 +197,14 @@
|
||||
"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",
|
||||
@@ -235,20 +236,20 @@
|
||||
"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",
|
||||
@@ -281,7 +282,7 @@
|
||||
"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",
|
||||
@@ -295,11 +296,11 @@
|
||||
"slashes": "^3.0.12",
|
||||
"smol-toml": "^1.4.2",
|
||||
"sms-segments-calculator": "^1.2.0",
|
||||
"spdx-satisfies": "^5.0.1",
|
||||
"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",
|
||||
@@ -311,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",
|
||||
@@ -342,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",
|
||||
@@ -372,24 +373,24 @@
|
||||
"@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": "^22.0.0",
|
||||
"@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",
|
||||
@@ -397,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",
|
||||
@@ -412,14 +416,14 @@
|
||||
"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",
|
||||
"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
+395
-672
File diff suppressed because it is too large.
Load diff
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
@@ -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>
|
||||
|
||||
@@ -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: 'عربي',
|
||||
|
||||
@@ -21,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 }"
|
||||
/>
|
||||
@@ -34,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) }"
|
||||
/>
|
||||
|
||||
@@ -31,9 +31,9 @@ const rules: UseValidationRule<string>[] = [
|
||||
<n-checkbox v-model:checked="typedValues" />
|
||||
</n-form-item>
|
||||
<FormatTransformer
|
||||
:input-:label="t('tools.csv-to-json.texts.label-t-tools-csv-to-json-texts-input-label-your-raw-csv')"
|
||||
:input-:placeholder="t('tools.csv-to-json.texts.placeholder-t-tools-csv-to-json-texts-input-placeholder-paste-your-raw-csv-here')"
|
||||
:output-:label="t('tools.csv-to-json.texts.label-t-tools-csv-to-json-texts-output-label-json-version-of-your-csv')"
|
||||
:input-label="t('tools.csv-to-json.texts.input-label-your-raw-csv')"
|
||||
:input-placeholder="t('tools.csv-to-json.texts.input-placeholder-paste-your-raw-csv-here')"
|
||||
:output-label="t('tools.csv-to-json.texts.output-label-json-version-of-your-csv')"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
/>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -27,9 +27,9 @@ const rules: UseValidationRule<string>[] = [
|
||||
|
||||
<template>
|
||||
<format-transformer
|
||||
:input-:label="t('tools.extract-text-from-html.texts.label-t-tools-extract-text-from-html-texts-input-label-your-raw-html')"
|
||||
:input-:placeholder="t('tools.extract-text-from-html.texts.placeholder-t-tools-extract-text-from-html-texts-input-placeholder-paste-your-raw-html-here')"
|
||||
:output-:label="t('tools.extract-text-from-html.texts.label-t-tools-extract-text-from-html-texts-output-label-text-from-your-html')"
|
||||
:input-label="t('tools.extract-text-from-html.texts.input-label-your-raw-html')"
|
||||
:input-placeholder="t('tools.extract-text-from-html.texts.input-placeholder-paste-your-raw-html-here')"
|
||||
:output-label="t('tools.extract-text-from-html.texts.output-label-text-from-your-html')"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
/>
|
||||
|
||||
@@ -181,7 +181,7 @@ function onCreateIpRule() {
|
||||
</c-card>
|
||||
|
||||
<c-card :title="t('tools.htaccess-generator.texts.title-301-redirect-file-or-directory')" mb-1>
|
||||
<NDynamicInput v-model:value="formData.redirects" preset="pair" key-:placeholder="t('tools.htaccess-generator.texts.placeholder-old-path')" value-:placeholder="t('tools.htaccess-generator.texts.placeholder-new-path')" />
|
||||
<NDynamicInput v-model:value="formData.redirects" preset="pair" :key-placeholder="t('tools.htaccess-generator.texts.placeholder-old-path')" :value-placeholder="t('tools.htaccess-generator.texts.placeholder-new-path')" />
|
||||
</c-card>
|
||||
|
||||
<c-card :title="t('tools.htaccess-generator.texts.title-cache-settings')" mb-1>
|
||||
@@ -225,7 +225,7 @@ function onCreateIpRule() {
|
||||
</c-card>
|
||||
|
||||
<c-card :title="t('tools.htaccess-generator.texts.title-custom-error-pages')" mb-1>
|
||||
<NDynamicInput v-model:value="formData.errorPages" preset="pair" key-:placeholder="t('tools.htaccess-generator.texts.placeholder-error-code')" value-:placeholder="t('tools.htaccess-generator.texts.placeholder-file-path')" />
|
||||
<NDynamicInput v-model:value="formData.errorPages" preset="pair" :key-placeholder="t('tools.htaccess-generator.texts.placeholder-error-code')" :value-placeholder="t('tools.htaccess-generator.texts.placeholder-file-path')" />
|
||||
</c-card>
|
||||
|
||||
<c-card :title="t('tools.htaccess-generator.texts.title-block-or-allow-ip-addresses')" mb-1>
|
||||
|
||||
+37
-2
@@ -1,8 +1,43 @@
|
||||
import type { ToolCategory, ToolWithCategory } from './tools.types';
|
||||
import type { ToolCategory, ToolWithCategory, ToolsFilter } from './tools.types';
|
||||
|
||||
const modules = import.meta.glob<true, string, ToolWithCategory>('./*/index.ts', { eager: true, import: 'tool' });
|
||||
|
||||
export const toolsByCategory = Object.values(modules).reduce((la, moduleDef) => {
|
||||
const base = import.meta.env.BASE_URL ?? '/';
|
||||
let filterConfig: ToolsFilter = {};
|
||||
try {
|
||||
const remoteConfigResponse = await fetch(`${base}tools-filter.json`);
|
||||
if (remoteConfigResponse.ok) {
|
||||
filterConfig = (await remoteConfigResponse.json()) as ToolsFilter;
|
||||
}
|
||||
}
|
||||
catch {}
|
||||
|
||||
const makeRegExp = (regex: string | undefined) => regex ? new RegExp(regex, 'i') : null;
|
||||
const filters = {
|
||||
excludeCategoryFilterRegex: makeRegExp(filterConfig.excludeCategoryFilterRegex),
|
||||
includeCategoryFilterRegex: makeRegExp(filterConfig.includeCategoryFilterRegex),
|
||||
excludeToolsFilterRegex: makeRegExp(filterConfig.excludeToolsFilterRegex),
|
||||
includeToolsFilterRegex: makeRegExp(filterConfig.includeToolsFilterRegex),
|
||||
};
|
||||
|
||||
const filteredModules = Object.values(modules).filter((tool) => {
|
||||
const category = tool.category || 'Development';
|
||||
if (filters.includeToolsFilterRegex?.test(tool.path)) {
|
||||
return true;
|
||||
}
|
||||
if (filters.includeCategoryFilterRegex?.test(category)) {
|
||||
return true;
|
||||
}
|
||||
if (filters.excludeToolsFilterRegex?.test(tool.path)) {
|
||||
return false;
|
||||
}
|
||||
if (filters.excludeCategoryFilterRegex?.test(category)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
export const toolsByCategory = filteredModules.reduce((la, moduleDef) => {
|
||||
let found = la.find(l => l.name === moduleDef.category);
|
||||
if (!found) {
|
||||
found = {
|
||||
|
||||
@@ -37,9 +37,9 @@ const rules: UseValidationRule<string>[] = [
|
||||
</div>
|
||||
|
||||
<format-transformer
|
||||
:input-:label="t('tools.javascript-to-json.texts.label-t-tools-javascript-to-json-texts-input-label-your-javascript-object')"
|
||||
:input-:placeholder="t('tools.javascript-to-json.texts.placeholder-t-tools-javascript-to-json-texts-input-placeholder-paste-your-js-object-here')"
|
||||
:output-:label="t('tools.javascript-to-json.texts.label-t-tools-javascript-to-json-texts-output-label-json-from-your-javascript-object')"
|
||||
:input-label="t('tools.javascript-to-json.texts.input-label-your-javascript-object')"
|
||||
:input-placeholder="t('tools.javascript-to-json.texts.input-placeholder-paste-your-js-object-here')"
|
||||
:output-label="t('tools.javascript-to-json.texts.output-label-json-from-your-javascript-object')"
|
||||
output-language="json"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
|
||||
@@ -78,7 +78,7 @@ function ChildrenViewer({
|
||||
openTag: string
|
||||
closeTag: string
|
||||
}) {
|
||||
const { children, key, status, type } = diff;
|
||||
const { children, key, status, type, oldValue } = diff;
|
||||
|
||||
return (
|
||||
<li>
|
||||
@@ -90,9 +90,10 @@ function ChildrenViewer({
|
||||
</>
|
||||
)}
|
||||
|
||||
{openTag}
|
||||
{children.length === 0 && status === 'removed' && Value({ value: oldValue, status: 'removed' })}
|
||||
{children.length > 0 && openTag}
|
||||
{children.length > 0 && <ul>{children.map(diff => DiffViewer({ diff, showKeys: showChildrenKeys }))}</ul>}
|
||||
{`${closeTag},`}
|
||||
{children.length > 0 && `${closeTag},`}
|
||||
</div>
|
||||
</li>
|
||||
);
|
||||
|
||||
@@ -48,10 +48,10 @@ const rules: UseValidationRule<string>[] = [
|
||||
</NSpace>
|
||||
|
||||
<format-transformer
|
||||
:input-:label="t('tools.json-flatten-nestify.texts.label-t-tools-json-flatten-nestify-texts-input-label-your-json-content')"
|
||||
:input-label="t('tools.json-flatten-nestify.texts.input-label-your-json-content')"
|
||||
:input-default="defaultValue"
|
||||
:input-:placeholder="t('tools.json-flatten-nestify.texts.placeholder-t-tools-json-flatten-nestify-texts-input-placeholder-paste-your-json-content-here')"
|
||||
:output-:label="t('tools.json-flatten-nestify.texts.label-t-tools-json-flatten-nestify-texts-output-label-transformed-json')"
|
||||
:input-placeholder="t('tools.json-flatten-nestify.texts.input-placeholder-paste-your-json-content-here')"
|
||||
:output-label="t('tools.json-flatten-nestify.texts.output-label-transformed-json')"
|
||||
output-language="json"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
|
||||
@@ -19,10 +19,10 @@ const rules: UseValidationRule<string>[] = [
|
||||
|
||||
<template>
|
||||
<format-transformer
|
||||
:input-:label="t('tools.json-minify.texts.label-t-tools-json-minify-texts-input-label-your-raw-json')"
|
||||
:input-label="t('tools.json-minify.texts.input-label-your-raw-json')"
|
||||
:input-default="defaultValue"
|
||||
:input-:placeholder="t('tools.json-minify.texts.placeholder-t-tools-json-minify-texts-input-placeholder-paste-your-raw-json-here')"
|
||||
:output-:label="t('tools.json-minify.texts.label-t-tools-json-minify-texts-output-label-minified-version-of-your-json')"
|
||||
:input-placeholder="t('tools.json-minify.texts.input-placeholder-paste-your-raw-json-here')"
|
||||
:output-label="t('tools.json-minify.texts.output-label-minified-version-of-your-json')"
|
||||
output-language="json"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
|
||||
@@ -48,10 +48,10 @@ const dropdownOptions = computed(() => [
|
||||
</c-card>
|
||||
<div />
|
||||
<format-transformer
|
||||
:input-:label="t('tools.json-string-converter.texts.label-t-tools-json-string-converter-texts-input-label-your-text-json-string')"
|
||||
:input-label="t('tools.json-string-converter.texts.input-label-your-text-json-string')"
|
||||
:input-default="defaultValue"
|
||||
:input-:placeholder="t('tools.json-string-converter.texts.placeholder-t-tools-json-string-converter-texts-input-placeholder-paste-your-text-here')"
|
||||
:output-:label="t('tools.json-string-converter.texts.label-t-tools-json-string-converter-texts-output-label-json-string-conversion-of-your-input')"
|
||||
:input-placeholder="t('tools.json-string-converter.texts.input-placeholder-paste-your-text-here')"
|
||||
:output-label="t('tools.json-string-converter.texts.output-label-json-string-conversion-of-your-input')"
|
||||
output-language="string"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
|
||||
@@ -28,10 +28,10 @@ const rules: UseValidationRule<string>[] = [
|
||||
|
||||
<template>
|
||||
<format-transformer
|
||||
:input-:label="t('tools.json-to-csv.texts.label-t-tools-json-to-csv-texts-input-label-your-raw-json')"
|
||||
:input-label="t('tools.json-to-csv.texts.input-label-your-raw-json')"
|
||||
:input-default="defaultValue"
|
||||
:input-:placeholder="t('tools.json-to-csv.texts.placeholder-t-tools-json-to-csv-texts-input-placeholder-paste-your-raw-json-here')"
|
||||
:output-:label="t('tools.json-to-csv.texts.label-t-tools-json-to-csv-texts-output-label-csv-version-of-your-json')"
|
||||
:input-placeholder="t('tools.json-to-csv.texts.input-placeholder-paste-your-raw-json-here')"
|
||||
:output-label="t('tools.json-to-csv.texts.output-label-csv-version-of-your-json')"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
download-file-name="output.csv"
|
||||
|
||||
@@ -29,9 +29,9 @@ const rules: UseValidationRule<string>[] = [
|
||||
</div>
|
||||
|
||||
<format-transformer
|
||||
:input-:label="t('tools.json-to-javascript.texts.label-t-tools-json-to-javascript-texts-input-label-your-json')"
|
||||
:input-:placeholder="t('tools.json-to-javascript.texts.placeholder-t-tools-json-to-javascript-texts-input-placeholder-paste-your-json-here')"
|
||||
:output-:label="t('tools.json-to-javascript.texts.label-t-tools-json-to-javascript-texts-output-label-javascript-object-from-your-json')"
|
||||
:input-label="t('tools.json-to-javascript.texts.input-label-your-json')"
|
||||
:input-placeholder="t('tools.json-to-javascript.texts.input-placeholder-paste-your-json-here')"
|
||||
:output-label="t('tools.json-to-javascript.texts.output-label-javascript-object-from-your-json')"
|
||||
output-language="javascript"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
|
||||
@@ -25,9 +25,9 @@ const rules: UseValidationRule<string>[] = [
|
||||
|
||||
<template>
|
||||
<format-transformer
|
||||
:input-:label="t('tools.json-to-object.texts.label-t-tools-json-to-object-texts-input-label-your-json')"
|
||||
:input-:placeholder="t('tools.json-to-object.texts.placeholder-t-tools-json-to-object-texts-input-placeholder-paste-your-json-here')"
|
||||
:output-:label="t('tools.json-to-object.texts.label-t-tools-json-to-object-texts-output-label-object-from-your-json')"
|
||||
:input-label="t('tools.json-to-object.texts.input-label-your-json')"
|
||||
:input-placeholder="t('tools.json-to-object.texts.input-placeholder-paste-your-json-here')"
|
||||
:output-label="t('tools.json-to-object.texts.output-label-object-from-your-json')"
|
||||
output-language="js"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
|
||||
@@ -29,10 +29,10 @@ const rules: UseValidationRule<string>[] = [
|
||||
|
||||
<template>
|
||||
<format-transformer
|
||||
:input-:label="t('tools.json-to-php-array.texts.label-t-tools-json-to-php-array-texts-input-label-your-json')"
|
||||
:input-label="t('tools.json-to-php-array.texts.input-label-your-json')"
|
||||
:input-default="defaultValue"
|
||||
:input-:placeholder="t('tools.json-to-php-array.texts.placeholder-t-tools-json-to-php-array-texts-input-placeholder-paste-your-json-here')"
|
||||
:output-:label="t('tools.json-to-php-array.texts.label-t-tools-json-to-php-array-texts-output-label-php-array-version')"
|
||||
:input-placeholder="t('tools.json-to-php-array.texts.input-placeholder-paste-your-json-here')"
|
||||
:output-label="t('tools.json-to-php-array.texts.output-label-php-array-version')"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
/>
|
||||
|
||||
@@ -33,9 +33,9 @@ const rules: UseValidationRule<string>[] = [
|
||||
<c-input-text v-model:value="rootName" :label="t('tools.json-to-protobuf.texts.label-root-name')" label-placement="left" />
|
||||
|
||||
<FormatTransformer
|
||||
:input-:label="t('tools.json-to-protobuf.texts.label-t-tools-json-to-protobuf-texts-input-label-your-json')"
|
||||
:input-:placeholder="t('tools.json-to-protobuf.texts.placeholder-t-tools-json-to-protobuf-texts-input-placeholder-paste-your-json-here')"
|
||||
:output-:label="t('tools.json-to-protobuf.texts.label-t-tools-json-to-protobuf-texts-output-label-protobuf-version-of-your-json-objects')"
|
||||
:input-label="t('tools.json-to-protobuf.texts.input-label-your-json')"
|
||||
:input-placeholder="t('tools.json-to-protobuf.texts.input-placeholder-paste-your-json-here')"
|
||||
:output-label="t('tools.json-to-protobuf.texts.output-label-protobuf-version-of-your-json-objects')"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
output-language="protobuf"
|
||||
|
||||
@@ -78,9 +78,9 @@ const rules: UseValidationRule<string>[] = [
|
||||
<n-divider />
|
||||
|
||||
<format-transformer
|
||||
:input-:label="t('tools.json-to-schema.texts.label-t-tools-json-to-schema-texts-input-label-your-json')"
|
||||
:input-:placeholder="t('tools.json-to-schema.texts.placeholder-t-tools-json-to-schema-texts-input-placeholder-paste-your-json-here')"
|
||||
:output-:label="t('tools.json-to-schema.texts.label-t-tools-json-to-schema-texts-output-label-your-schema')"
|
||||
:input-label="t('tools.json-to-schema.texts.input-label-your-json')"
|
||||
:input-placeholder="t('tools.json-to-schema.texts.input-placeholder-paste-your-json-here')"
|
||||
:output-label="t('tools.json-to-schema.texts.output-label-your-schema')"
|
||||
:output-language="schemaLanguage"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
|
||||
@@ -35,9 +35,9 @@ const rules: UseValidationRule<string>[] = [
|
||||
<n-divider />
|
||||
|
||||
<format-transformer
|
||||
:input-:label="t('tools.json-to-sql-ddl.texts.label-t-tools-json-to-sql-ddl-texts-input-label-your-json')"
|
||||
:input-:placeholder="t('tools.json-to-sql-ddl.texts.placeholder-t-tools-json-to-sql-ddl-texts-input-placeholder-paste-your-json-here')"
|
||||
:output-:label="t('tools.json-to-sql-ddl.texts.label-t-tools-json-to-sql-ddl-texts-output-label-your-sql-ddl')"
|
||||
:input-label="t('tools.json-to-sql-ddl.texts.input-label-your-json')"
|
||||
:input-placeholder="t('tools.json-to-sql-ddl.texts.input-placeholder-paste-your-json-here')"
|
||||
:output-label="t('tools.json-to-sql-ddl.texts.output-label-your-sql-ddl')"
|
||||
output-language="sql"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
|
||||
@@ -22,9 +22,9 @@ const rules: UseValidationRule<string>[] = [
|
||||
|
||||
<template>
|
||||
<format-transformer
|
||||
:input-:label="t('tools.json-to-toml.texts.label-t-tools-json-to-toml-texts-input-label-your-json')"
|
||||
:input-:placeholder="t('tools.json-to-toml.texts.placeholder-t-tools-json-to-toml-texts-input-placeholder-paste-your-json-here')"
|
||||
:output-:label="t('tools.json-to-toml.texts.label-t-tools-json-to-toml-texts-output-label-toml-from-your-json')"
|
||||
:input-label="t('tools.json-to-toml.texts.input-label-your-json')"
|
||||
:input-placeholder="t('tools.json-to-toml.texts.input-placeholder-paste-your-json-here')"
|
||||
:output-label="t('tools.json-to-toml.texts.output-label-toml-from-your-json')"
|
||||
output-language="toml"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
|
||||
@@ -25,9 +25,9 @@ const rules: UseValidationRule<string>[] = [
|
||||
|
||||
<template>
|
||||
<format-transformer
|
||||
:input-:label="t('tools.json-to-ts.texts.label-t-tools-json-to-ts-texts-input-label-your-json')"
|
||||
:input-:placeholder="t('tools.json-to-ts.texts.placeholder-t-tools-json-to-ts-texts-input-placeholder-paste-your-json-here')"
|
||||
:output-:label="t('tools.json-to-ts.texts.label-t-tools-json-to-ts-texts-output-label-ts-from-your-json')"
|
||||
:input-label="t('tools.json-to-ts.texts.input-label-your-json')"
|
||||
:input-placeholder="t('tools.json-to-ts.texts.input-placeholder-paste-your-json-here')"
|
||||
:output-label="t('tools.json-to-ts.texts.output-label-ts-from-your-json')"
|
||||
output-language="ts"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
|
||||
@@ -22,10 +22,10 @@ const rules: UseValidationRule<string>[] = [
|
||||
|
||||
<template>
|
||||
<format-transformer
|
||||
:input-:label="t('tools.json-to-xml.texts.label-t-tools-json-to-xml-input')"
|
||||
:input-label="t('tools.json-to-xml.input')"
|
||||
:input-default="defaultValue"
|
||||
:input-:placeholder="t('tools.json-to-xml.texts.placeholder-t-tools-json-to-xml-input-placeholder')"
|
||||
:output-:label="t('tools.json-to-xml.texts.label-t-tools-json-to-xml-output')"
|
||||
:input-placeholder="t('tools.json-to-xml.input-placeholder')"
|
||||
:output-label="t('tools.json-to-xml.output')"
|
||||
output-language="xml"
|
||||
:transformer="transformer"
|
||||
:input-validation-rules="rules"
|
||||
|
||||
@@ -20,9 +20,9 @@ const rules: UseValidationRule<string>[] = [
|
||||
|
||||
<template>
|
||||
<format-transformer
|
||||
:input-:label="t('tools.json-to-yaml-converter.texts.label-t-tools-json-to-yaml-converter-texts-input-label-your-json')"
|
||||
:input-:placeholder="t('tools.json-to-yaml-converter.texts.placeholder-t-tools-json-to-yaml-converter-texts-input-placeholder-paste-your-json-here')"
|
||||
:output-:label="t('tools.json-to-yaml-converter.texts.label-t-tools-json-to-yaml-converter-texts-output-label-yaml-from-your-json')"
|
||||
:input-label="t('tools.json-to-yaml-converter.texts.input-label-your-json')"
|
||||
:input-placeholder="t('tools.json-to-yaml-converter.texts.input-placeholder-paste-your-json-here')"
|
||||
:output-label="t('tools.json-to-yaml-converter.texts.output-label-yaml-from-your-json')"
|
||||
output-language="yaml"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
|
||||
@@ -186,9 +186,9 @@ function transformer(value: string) {
|
||||
</div>
|
||||
</div>
|
||||
<format-transformer
|
||||
:input-:label="t('tools.list-converter.texts.label-t-tools-list-converter-texts-input-label-your-input-data')"
|
||||
:input-:placeholder="t('tools.list-converter.texts.placeholder-t-tools-list-converter-texts-input-placeholder-paste-your-input-data-here')"
|
||||
:output-:label="t('tools.list-converter.texts.label-t-tools-list-converter-texts-output-label-your-transformed-data')"
|
||||
:input-label="t('tools.list-converter.texts.input-label-your-input-data')"
|
||||
:input-placeholder="t('tools.list-converter.texts.input-placeholder-paste-your-input-data-here')"
|
||||
:output-label="t('tools.list-converter.texts.output-label-your-transformed-data')"
|
||||
:transformer="transformer"
|
||||
download-file-name="output.txt"
|
||||
/>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
/* NO EXTRACT SCRIPT */
|
||||
import { defineComponent, ref } from 'vue';
|
||||
import { downloadLinks } from './multi-link-downloader.service';
|
||||
|
||||
|
||||
@@ -44,10 +44,10 @@ const rules: UseValidationRule<string>[] = [
|
||||
|
||||
<template>
|
||||
<format-transformer
|
||||
:input-:label="t('tools.nginx-formatter.texts.label-t-tools-nginx-formatter-texts-input-label-your-nginx-config')"
|
||||
:input-label="t('tools.nginx-formatter.texts.input-label-your-nginx-config')"
|
||||
:input-default="defaultValue"
|
||||
:input-:placeholder="t('tools.nginx-formatter.texts.placeholder-t-tools-nginx-formatter-texts-input-placeholder-paste-your-nginx-config-here')"
|
||||
:output-:label="t('tools.nginx-formatter.texts.label-t-tools-nginx-formatter-texts-output-label-prettified-nginx-config')"
|
||||
:input-placeholder="t('tools.nginx-formatter.texts.input-placeholder-paste-your-nginx-config-here')"
|
||||
:output-label="t('tools.nginx-formatter.texts.output-label-prettified-nginx-config')"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
/>
|
||||
|
||||
@@ -31,10 +31,10 @@ const rules: UseValidationRule<string>[] = [
|
||||
|
||||
<template>
|
||||
<format-transformer
|
||||
:input-:label="t('tools.php-array-to-json.texts.label-t-tools-php-array-to-json-texts-input-label-your-php-array')"
|
||||
:input-label="t('tools.php-array-to-json.texts.input-label-your-php-array')"
|
||||
:input-default="defaultValue"
|
||||
:input-:placeholder="t('tools.php-array-to-json.texts.placeholder-t-tools-php-array-to-json-texts-input-placeholder-paste-your-php-array-here')"
|
||||
:output-:label="t('tools.php-array-to-json.texts.label-t-tools-php-array-to-json-texts-output-label-json-version')"
|
||||
:input-placeholder="t('tools.php-array-to-json.texts.input-placeholder-paste-your-php-array-here')"
|
||||
:output-label="t('tools.php-array-to-json.texts.output-label-json-version')"
|
||||
output-language="json"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
/* NO EXTRACT SCRIPT */
|
||||
import PomodoroApp from './app/PomodoroApp.vue';
|
||||
</script>
|
||||
|
||||
|
||||
@@ -44,20 +44,20 @@ function toProperties(value: string) {
|
||||
<template>
|
||||
<c-card :title="t('tools.properties-converter.texts.title-properties-to-yaml')">
|
||||
<format-transformer
|
||||
:input-:label="t('tools.properties-converter.texts.label-t-tools-properties-converter-texts-input-label-your-properties-content')"
|
||||
:input-label="t('tools.properties-converter.texts.input-label-your-properties-content')"
|
||||
:input-default="defaultPropertiesValue"
|
||||
:input-:placeholder="t('tools.properties-converter.texts.placeholder-t-tools-properties-converter-texts-input-placeholder-paste-your-properties-content-here')"
|
||||
:output-:label="t('tools.properties-converter.texts.label-t-tools-properties-converter-texts-output-label-yaml-version')"
|
||||
:input-placeholder="t('tools.properties-converter.texts.input-placeholder-paste-your-properties-content-here')"
|
||||
:output-label="t('tools.properties-converter.texts.output-label-yaml-version')"
|
||||
output-language="yaml"
|
||||
:transformer="fromProperties"
|
||||
/>
|
||||
</c-card>
|
||||
<c-card :title="t('tools.properties-converter.texts.title-yaml-to-properties')">
|
||||
<format-transformer
|
||||
:input-:label="t('tools.properties-converter.texts.label-t-tools-properties-converter-texts-input-label-your-yaml-content')"
|
||||
:input-label="t('tools.properties-converter.texts.input-label-your-yaml-content')"
|
||||
:input-default="defaultYamlValue"
|
||||
:input-:placeholder="t('tools.properties-converter.texts.placeholder-t-tools-properties-converter-texts-input-placeholder-paste-your-yaml-content-here')"
|
||||
:output-:label="t('tools.properties-converter.texts.label-t-tools-properties-converter-texts-output-label-properties-version')"
|
||||
:input-placeholder="t('tools.properties-converter.texts.input-placeholder-paste-your-yaml-content-here')"
|
||||
:output-label="t('tools.properties-converter.texts.output-label-properties-version')"
|
||||
output-language="ini"
|
||||
:transformer="toProperties"
|
||||
/>
|
||||
|
||||
@@ -10,18 +10,18 @@ const { t } = useI18n();
|
||||
<div>
|
||||
<c-card :title="t('tools.quote-converter.texts.title-single-quotes-to-double-quotes')" mb-2>
|
||||
<format-transformer
|
||||
:input-:label="t('tools.quote-converter.texts.label-t-tools-quote-converter-texts-input-label-single-quoted-string')"
|
||||
:input-:placeholder="t('tools.quote-converter.texts.placeholder-t-tools-quote-converter-texts-input-placeholder-paste-your-single-quoted-string-here')"
|
||||
:output-:label="t('tools.quote-converter.texts.label-t-tools-quote-converter-texts-output-label-double-quoted-string')"
|
||||
:input-label="t('tools.quote-converter.texts.input-label-single-quoted-string')"
|
||||
:input-placeholder="t('tools.quote-converter.texts.input-placeholder-paste-your-single-quoted-string-here')"
|
||||
:output-label="t('tools.quote-converter.texts.output-label-double-quoted-string')"
|
||||
:transformer="toDoubleQuotes"
|
||||
/>
|
||||
</c-card>
|
||||
|
||||
<c-card :title="t('tools.quote-converter.texts.title-double-quotes-to-single-quotes')">
|
||||
<format-transformer
|
||||
:input-:label="t('tools.quote-converter.texts.label-t-tools-quote-converter-texts-input-label-double-quoted-string')"
|
||||
:input-:placeholder="t('tools.quote-converter.texts.placeholder-t-tools-quote-converter-texts-input-placeholder-paste-your-double-quoted-string-here')"
|
||||
:output-:label="t('tools.quote-converter.texts.label-t-tools-quote-converter-texts-output-label-single-quoted-string')"
|
||||
:input-label="t('tools.quote-converter.texts.input-label-double-quoted-string')"
|
||||
:input-placeholder="t('tools.quote-converter.texts.input-placeholder-paste-your-double-quoted-string-here')"
|
||||
:output-label="t('tools.quote-converter.texts.output-label-single-quoted-string')"
|
||||
:transformer="toSingleQuotes"
|
||||
/>
|
||||
</c-card>
|
||||
|
||||
@@ -58,10 +58,10 @@ function transformer(value: string) {
|
||||
/>
|
||||
|
||||
<format-transformer
|
||||
:input-:label="t('tools.sensitive-data-masker.texts.label-t-tools-sensitive-data-masker-texts-input-label-your-log-textual-data')"
|
||||
:input-label="t('tools.sensitive-data-masker.texts.input-label-your-log-textual-data')"
|
||||
:input-default="defaultValue"
|
||||
:input-:placeholder="t('tools.sensitive-data-masker.texts.placeholder-t-tools-sensitive-data-masker-texts-input-placeholder-paste-your-log-textual-data-here')"
|
||||
:output-:label="t('tools.sensitive-data-masker.texts.label-t-tools-sensitive-data-masker-texts-output-label-cleaned-version')"
|
||||
:input-placeholder="t('tools.sensitive-data-masker.texts.input-placeholder-paste-your-log-textual-data-here')"
|
||||
:output-label="t('tools.sensitive-data-masker.texts.output-label-cleaned-version')"
|
||||
:transformer="transformer"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -29,9 +29,9 @@ function transformer(value: string) {
|
||||
:label="$t('tools.sip-auth.password')"
|
||||
/>
|
||||
<format-transformer
|
||||
:input-:label="t('tools.sip-auth.texts.label-t-tools-sip-auth-message')"
|
||||
:input-:placeholder="t('tools.sip-auth.texts.placeholder-t-tools-sip-auth-message-tips')"
|
||||
:output-:label="t('tools.sip-auth.texts.label-t-tools-sip-auth-result')"
|
||||
:input-label="t('tools.sip-auth.message')"
|
||||
:input-placeholder="t('tools.sip-auth.message-tips')"
|
||||
:output-label="t('tools.sip-auth.result')"
|
||||
:transformer="transformer"
|
||||
autosize
|
||||
/>
|
||||
|
||||
@@ -16,7 +16,7 @@ const firstLicence = ref('GPL-3.0');
|
||||
const secondLicence = ref('MIT');
|
||||
const compatibility = computed(() => {
|
||||
try {
|
||||
return satisfies(firstLicence.value.split(':')[0], secondLicence.value.split(':')[0]) ? 'ok' : 'nok';
|
||||
return satisfies(firstLicence.value.split(':')[0], [secondLicence.value.split(':')[0]]) ? 'ok' : 'nok';
|
||||
}
|
||||
catch (e: any) {
|
||||
return e.toString();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
/* NO EXTRACT SCRIPT */
|
||||
const allowedDomains = ref<string[]>([]);
|
||||
const allowedIPv4s = ref<string[]>([]);
|
||||
const allowedIPv6s = ref<string[]>([]);
|
||||
|
||||
@@ -41,8 +41,8 @@ function generateSQL() {
|
||||
:min="1"
|
||||
preset="pair"
|
||||
show-sort-button
|
||||
key-:placeholder="t('tools.sql-parameters.texts.placeholder-name-e-g-name-or-type')"
|
||||
value-:placeholder="t('tools.sql-parameters.texts.placeholder-value-e-g-alice-or-42-or-1-3')"
|
||||
:key-placeholder="t('tools.sql-parameters.texts.placeholder-name-e-g-name-or-type')"
|
||||
:value-placeholder="t('tools.sql-parameters.texts.placeholder-value-e-g-alice-or-42-or-1-3')"
|
||||
/>
|
||||
</n-card>
|
||||
|
||||
|
||||
@@ -19,9 +19,9 @@ const rules: UseValidationRule<string>[] = [
|
||||
|
||||
<template>
|
||||
<format-transformer
|
||||
:input-:label="t('tools.toml-to-json.texts.label-t-tools-toml-to-json-texts-input-label-your-toml')"
|
||||
:input-:placeholder="t('tools.toml-to-json.texts.placeholder-t-tools-toml-to-json-texts-input-placeholder-paste-your-toml-here')"
|
||||
:output-:label="t('tools.toml-to-json.texts.label-t-tools-toml-to-json-texts-output-label-json-from-your-toml')"
|
||||
:input-label="t('tools.toml-to-json.texts.input-label-your-toml')"
|
||||
:input-placeholder="t('tools.toml-to-json.texts.input-placeholder-paste-your-toml-here')"
|
||||
:output-label="t('tools.toml-to-json.texts.output-label-json-from-your-toml')"
|
||||
output-language="json"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
|
||||
@@ -20,9 +20,9 @@ const rules: UseValidationRule<string>[] = [
|
||||
|
||||
<template>
|
||||
<format-transformer
|
||||
:input-:label="t('tools.toml-to-yaml.texts.label-t-tools-toml-to-yaml-texts-input-label-your-toml')"
|
||||
:input-:placeholder="t('tools.toml-to-yaml.texts.placeholder-t-tools-toml-to-yaml-texts-input-placeholder-paste-your-toml-here')"
|
||||
:output-:label="t('tools.toml-to-yaml.texts.label-t-tools-toml-to-yaml-texts-output-label-yaml-from-your-toml')"
|
||||
:input-label="t('tools.toml-to-yaml.texts.input-label-your-toml')"
|
||||
:input-placeholder="t('tools.toml-to-yaml.texts.input-placeholder-paste-your-toml-here')"
|
||||
:output-label="t('tools.toml-to-yaml.texts.output-label-yaml-from-your-toml')"
|
||||
output-language="yaml"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
|
||||
@@ -2,49 +2,15 @@ import { type MaybeRef, get } from '@vueuse/core';
|
||||
import { defineStore } from 'pinia';
|
||||
import type { Ref } from 'vue';
|
||||
import _ from 'lodash';
|
||||
import type { Tool, ToolCategory, ToolWithCategory, ToolsFilter } from './tools.types';
|
||||
import type { Tool, ToolCategory, ToolWithCategory } from './tools.types';
|
||||
import { tools as allTools } from './index';
|
||||
import { useITStorage } from '@/composable/queryParams';
|
||||
|
||||
const base = import.meta.env.BASE_URL ?? '/';
|
||||
let filterConfig: ToolsFilter = {};
|
||||
try {
|
||||
const remoteConfigResponse = await fetch(`${base}tools-filter.json`);
|
||||
if (remoteConfigResponse.ok) {
|
||||
filterConfig = (await remoteConfigResponse.json()) as ToolsFilter;
|
||||
}
|
||||
}
|
||||
catch {}
|
||||
|
||||
export const useToolStore = defineStore('tools', () => {
|
||||
const favoriteToolsName = useITStorage('favoriteToolsName', []) as Ref<string[]>;
|
||||
const { t } = useI18n();
|
||||
|
||||
const makeRegExp = (regex: string | undefined) => regex ? new RegExp(regex, 'i') : null;
|
||||
const filters = {
|
||||
excludeCategoryFilterRegex: makeRegExp(filterConfig.excludeCategoryFilterRegex),
|
||||
includeCategoryFilterRegex: makeRegExp(filterConfig.includeCategoryFilterRegex),
|
||||
excludeToolsFilterRegex: makeRegExp(filterConfig.excludeToolsFilterRegex),
|
||||
includeToolsFilterRegex: makeRegExp(filterConfig.includeToolsFilterRegex),
|
||||
};
|
||||
|
||||
const tools = computed<ToolWithCategory[]>(() => allTools
|
||||
.filter((tool) => {
|
||||
const category = tool.category || 'Development';
|
||||
if (filters.includeToolsFilterRegex?.test(tool.path)) {
|
||||
return true;
|
||||
}
|
||||
if (filters.includeCategoryFilterRegex?.test(category)) {
|
||||
return true;
|
||||
}
|
||||
if (filters.excludeToolsFilterRegex?.test(tool.path)) {
|
||||
return false;
|
||||
}
|
||||
if (filters.excludeCategoryFilterRegex?.test(category)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
})
|
||||
.map((tool) => {
|
||||
const toolI18nKey = tool.path.replace(/\//g, '');
|
||||
const category = tool.category || 'Development';
|
||||
|
||||
@@ -25,9 +25,9 @@ function transformer(value: string) {
|
||||
|
||||
<template>
|
||||
<format-transformer
|
||||
:input-:label="t('tools.unicode-to-gsm7.texts.label-t-tools-unicode-to-gsm7-texts-input-label-your-text-to-encode-to-gsm-7')"
|
||||
:input-:placeholder="t('tools.unicode-to-gsm7.texts.placeholder-t-tools-unicode-to-gsm7-texts-input-placeholder-put-your-text-here')"
|
||||
:output-:label="t('tools.unicode-to-gsm7.texts.label-t-tools-unicode-to-gsm7-texts-output-label-gsm-7-encoded-version')"
|
||||
:input-label="t('tools.unicode-to-gsm7.texts.input-label-your-text-to-encode-to-gsm-7')"
|
||||
:input-placeholder="t('tools.unicode-to-gsm7.texts.input-placeholder-put-your-text-here')"
|
||||
:output-label="t('tools.unicode-to-gsm7.texts.output-label-gsm-7-encoded-version')"
|
||||
:transformer="transformer"
|
||||
/>
|
||||
|
||||
|
||||
@@ -39,9 +39,9 @@ const rules: UseValidationRule<string>[] = [
|
||||
</div>
|
||||
|
||||
<format-transformer
|
||||
:input-:label="t('tools.xml-formatter.texts.label-t-tools-xml-formatter-texts-input-label-your-xml')"
|
||||
:input-:placeholder="t('tools.xml-formatter.texts.placeholder-t-tools-xml-formatter-texts-input-placeholder-paste-your-xml-here')"
|
||||
:output-:label="t('tools.xml-formatter.texts.label-t-tools-xml-formatter-texts-output-label-formatted-xml-from-your-xml')"
|
||||
:input-label="t('tools.xml-formatter.texts.input-label-your-xml')"
|
||||
:input-placeholder="t('tools.xml-formatter.texts.input-placeholder-paste-your-xml-here')"
|
||||
:output-label="t('tools.xml-formatter.texts.output-label-formatted-xml-from-your-xml')"
|
||||
output-language="xml"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
|
||||
@@ -22,10 +22,10 @@ const rules: UseValidationRule<string>[] = [
|
||||
|
||||
<template>
|
||||
<format-transformer
|
||||
:input-:label="t('tools.xml-to-json.texts.label-t-tools-xml-to-json-input')"
|
||||
:input-label="t('tools.xml-to-json.input')"
|
||||
:input-default="defaultValue"
|
||||
:input-:placeholder="t('tools.xml-to-json.texts.placeholder-t-tools-xml-to-json-input-placeholder')"
|
||||
:output-:label="t('tools.xml-to-json.texts.label-t-tools-xml-to-json-output')"
|
||||
:input-placeholder="t('tools.xml-to-json.input-placeholder')"
|
||||
:output-label="t('tools.xml-to-json.output')"
|
||||
output-language="json"
|
||||
:transformer="transformer"
|
||||
:input-validation-rules="rules"
|
||||
|
||||
@@ -49,10 +49,10 @@ const rules: UseValidationRule<string>[] = [
|
||||
</NSpace>
|
||||
|
||||
<format-transformer
|
||||
:input-:label="t('tools.yaml-flatten-nestify.texts.label-t-tools-yaml-flatten-nestify-texts-input-label-your-yaml-content')"
|
||||
:input-label="t('tools.yaml-flatten-nestify.texts.input-label-your-yaml-content')"
|
||||
:input-default="defaultValue"
|
||||
:input-:placeholder="t('tools.yaml-flatten-nestify.texts.placeholder-t-tools-yaml-flatten-nestify-texts-input-placeholder-paste-your-yaml-content-here')"
|
||||
:output-:label="t('tools.yaml-flatten-nestify.texts.label-t-tools-yaml-flatten-nestify-texts-output-label-transformed-yaml')"
|
||||
:input-placeholder="t('tools.yaml-flatten-nestify.texts.input-placeholder-paste-your-yaml-content-here')"
|
||||
:output-label="t('tools.yaml-flatten-nestify.texts.output-label-transformed-yaml')"
|
||||
output-language="yaml"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
|
||||
@@ -41,9 +41,9 @@ const rules: UseValidationRule<string>[] = [
|
||||
</n-space>
|
||||
|
||||
<format-transformer
|
||||
:input-:label="t('tools.yaml-to-json-converter.texts.label-t-tools-yaml-to-json-converter-texts-input-label-your-yaml')"
|
||||
:input-:placeholder="t('tools.yaml-to-json-converter.texts.placeholder-t-tools-yaml-to-json-converter-texts-input-placeholder-paste-your-yaml-here')"
|
||||
:output-:label="t('tools.yaml-to-json-converter.texts.label-t-tools-yaml-to-json-converter-texts-output-label-json-from-your-yaml')"
|
||||
:input-label="t('tools.yaml-to-json-converter.texts.input-label-your-yaml')"
|
||||
:input-placeholder="t('tools.yaml-to-json-converter.texts.input-placeholder-paste-your-yaml-here')"
|
||||
:output-label="t('tools.yaml-to-json-converter.texts.output-label-json-from-your-yaml')"
|
||||
output-language="json"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
|
||||
@@ -21,9 +21,9 @@ const rules: UseValidationRule<string>[] = [
|
||||
|
||||
<template>
|
||||
<format-transformer
|
||||
:input-:label="t('tools.yaml-to-toml.texts.label-t-tools-yaml-to-toml-texts-input-label-your-yaml')"
|
||||
:input-:placeholder="t('tools.yaml-to-toml.texts.placeholder-t-tools-yaml-to-toml-texts-input-placeholder-paste-your-yaml-here')"
|
||||
:output-:label="t('tools.yaml-to-toml.texts.label-t-tools-yaml-to-toml-texts-output-label-toml-from-your-yaml')"
|
||||
:input-label="t('tools.yaml-to-toml.texts.input-label-your-yaml')"
|
||||
:input-placeholder="t('tools.yaml-to-toml.texts.input-placeholder-paste-your-yaml-here')"
|
||||
:output-label="t('tools.yaml-to-toml.texts.output-label-toml-from-your-yaml')"
|
||||
output-language="toml"
|
||||
:input-validation-rules="rules"
|
||||
:transformer="transformer"
|
||||
|
||||
Reference in new issue
Block a user