Compare commits

..
51 changed files with 1614 additions and 1698 deletions

No files matched your search

+6
View File
@@ -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
View File
@@ -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.
-130
View File
@@ -204,9 +204,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 +213,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 +505,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 +537,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 +552,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 +561,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 +570,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 +669,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 +711,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 +756,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 +834,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 +842,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 +889,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 +901,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 +940,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 +1157,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 +2442,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 +2460,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 +2673,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 +2874,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 +3017,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 +3368,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 +3394,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 +3401,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 +3942,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 +3968,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 +4123,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 +4147,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 +4335,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 +4469,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 +6030,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 +6071,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 +6732,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
+1213 -1213
View File
File diff suppressed because it is too large. Load diff
+5 -1
View File
@@ -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": {
@@ -319,7 +320,7 @@
"unplugin-auto-import": "^0.16.4",
"utf8": "^3.0.0",
"uuid": "^11.1.0",
"vanilla-jsoneditor": "^0.23.8",
"vanilla-jsoneditor": "^3.0.0",
"vue": "^3.3.4",
"vue-color-wheel": "^0.1.1",
"vue-i18n": "^11.1.9",
@@ -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",
+84 -198
View File
@@ -849,8 +849,8 @@ importers:
specifier: ^11.1.0
version: 11.1.0
vanilla-jsoneditor:
specifier: ^0.23.8
version: 0.23.8
specifier: ^3.0.0
version: 3.7.0
vue:
specifier: ^3.3.4
version: 3.3.4
@@ -1077,9 +1077,18 @@ importers:
'@vue/tsconfig':
specifier: ^0.4.0
version: 0.4.0
axios:
specifier: ^1.12.2
version: 1.12.2
commander:
specifier: ^14.0.1
version: 14.0.1
consola:
specifier: ^3.0.2
version: 3.4.0
dotenv:
specifier: ^17.2.3
version: 17.2.3
eslint:
specifier: ^8.47.0
version: 8.47.0
@@ -1163,17 +1172,20 @@ packages:
'@antfu/eslint-config-basic@0.41.0':
resolution: {integrity: sha512-zcwFv+nEV/NroeeVWriNdnIGd9soOLRG8wIiVz4VVJ0BjONrqQR56HLG/gDxH/1GUYBnQCEcVxGUmegce08cnw==}
deprecated: Deprecated, please migrate to @antfu/eslint-config with the flat config
peerDependencies:
eslint: '>=7.4.0'
'@antfu/eslint-config-ts@0.41.0':
resolution: {integrity: sha512-ng3GYpJGZgrxGwBVda/MgUpveH3LbEqdPCFi1+S5e62W4kf8rmEVbhc0I8w7/aKN0uNqir5SInYg8gob2maDAQ==}
deprecated: Deprecated, please migrate to @antfu/eslint-config with the flat config
peerDependencies:
eslint: '>=7.4.0'
typescript: '>=3.9'
'@antfu/eslint-config-vue@0.41.0':
resolution: {integrity: sha512-iJiEGRUgRmT3mQCmGl0hTMwq/ShXRjRPjpgsDcphKJyEF06ZIR/4gxHn+utQRLT2hD39DQN8gk0ZbpV3gWtf/g==}
deprecated: Deprecated, please migrate to @antfu/eslint-config with the flat config
peerDependencies:
eslint: '>=7.4.0'
@@ -2397,6 +2409,7 @@ packages:
'@humanwhocodes/config-array@0.11.10':
resolution: {integrity: sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==}
engines: {node: '>=10.10.0'}
deprecated: Use @eslint/config-array instead
'@humanwhocodes/module-importer@1.0.1':
resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}
@@ -2404,6 +2417,7 @@ packages:
'@humanwhocodes/object-schema@1.2.1':
resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==}
deprecated: Use @eslint/object-schema instead
'@iconify-json/mdi@1.2.3':
resolution: {integrity: sha512-O3cLwbDOK7NNDf2ihaQOH5F9JglnulNDFV7WprU2dSoZu3h3cWH//h74uQAB87brHmvFVxIOkuBX2sZSzYhScg==}
@@ -4765,10 +4779,6 @@ packages:
engines: {node: '>=0.4.0'}
hasBin: true
adler-32@1.3.1:
resolution: {integrity: sha512-ynZ4w/nUUv5rrsR8UUGoe1VC9hZj6V5hU9Qw1HlMDJGEJw5S7TfTErWTjMys6M7vr0YWcPqs3qAr4ss0nDfP+A==}
engines: {node: '>=0.8'}
agent-base@6.0.2:
resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==}
engines: {node: '>= 6.0.0'}
@@ -4970,6 +4980,9 @@ packages:
resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}
engines: {node: '>= 0.4'}
axios@1.12.2:
resolution: {integrity: sha512-vMJzPewAlRyOgxV2dU0Cuz2O8zzzx9VYtbJOaBgXFeLc4IV/Eg50n4LowmehOOR61S8ZMpc2K5Sa7g6A4jfkUw==}
axobject-query@4.1.0:
resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==}
engines: {node: '>= 0.4'}
@@ -5206,10 +5219,6 @@ packages:
centra@2.7.0:
resolution: {integrity: sha512-PbFMgMSrmgx6uxCdm57RUos9Tc3fclMvhLSATYN39XsDV29B89zZ3KA89jmY0vwSGazyU+uerqwa6t+KaodPcg==}
cfb@1.2.2:
resolution: {integrity: sha512-KfdUZsSOw19/ObEWasvBP/Ac4reZvAGauZhs6S/gqNhXhI7cKwvlH7ulj+dOEYnca4bm4SGo8C1bTAQvnTjgQA==}
engines: {node: '>=0.8'}
chai@4.5.0:
resolution: {integrity: sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==}
engines: {node: '>=4'}
@@ -5350,9 +5359,6 @@ packages:
resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==}
engines: {node: '>=6'}
code-red@1.0.4:
resolution: {integrity: sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==}
codemirror-wrapped-line-indent@1.0.8:
resolution: {integrity: sha512-5UwuHCz4oAZuvot1DbfFxSxJacTESdNGa/KpJD7HfpVpDAJdgB1vV9OG4b4pkJqPWuOfIpFLTQEKS85kTpV+XA==}
peerDependencies:
@@ -5363,10 +5369,6 @@ packages:
codemirror@6.0.1:
resolution: {integrity: sha512-J8j+nZ+CdWmIeFIGXEFbFPtpiYacFMDR8GlHK3IyHQJMCaVRfGx9NT+Hxivv1ckLWPvNdZqndbr/7lVhrf/Svg==}
codepage@1.15.0:
resolution: {integrity: sha512-3g6NUTPd/YtuuGrhMnOMRjFc+LJw/bnMp3+0r/Wcz3IXUuCosKRJvMphm5+Q+bvTVGcJJuRvVLuYba+WojaFaA==}
engines: {node: '>=0.8'}
collection-utils@1.0.1:
resolution: {integrity: sha512-LA2YTIlR7biSpXkKYwwuzGjwL5rjWEZVOSnvdUc7gObvWe4WkjxOpfrdhoP7Hs09YWDVfg0Mal9BpAqLfVEzQg==}
@@ -5419,6 +5421,10 @@ packages:
resolution: {integrity: sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==}
engines: {node: '>=18'}
commander@14.0.1:
resolution: {integrity: sha512-2JkV3gUZUVrbNA+1sjBOYLsMZ5cEEl8GTFP2a4AVz5hvasAMCQ1D2l2le/cX+pV4N6ZU17zjUahLpIXRrnWL8A==}
engines: {node: '>=20'}
commander@2.20.3:
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
@@ -5453,7 +5459,7 @@ packages:
resolution: {integrity: sha512-XUPZdktweMFFMk7oLFOOFZeuZ4U0jY/MpisUmRkHImybn9PvixceiKGVMMwSL19P9Mr5Ty1A7bmG2lFWn5UWTA==}
concat-map@0.0.1:
resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=}
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
confbox@0.1.8:
resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==}
@@ -5535,11 +5541,6 @@ packages:
country-code-lookup@0.1.3:
resolution: {integrity: sha512-gLu+AQKHUnkSQNTxShKgi/4tYd0vEEait3JMrLNZgYlmIZ9DJLkHUjzXE9qcs7dy3xY/kUx2/nOxZ0Z3D9JE+A==}
crc-32@1.2.2:
resolution: {integrity: sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==}
engines: {node: '>=0.8'}
hasBin: true
crc@4.3.2:
resolution: {integrity: sha512-uGDHf4KLLh2zsHa8D8hIQ1H/HtFQhyHrc0uhHBcoKGol/Xnb+MPYfUMw7cvON6ze/GUESTudKayDcJC5HnJv1A==}
engines: {node: '>=12'}
@@ -6145,6 +6146,10 @@ packages:
resolution: {integrity: sha512-xHF8EP4XH/Ba9fvAF2LDd5O3IITVolerVV6xvkxoM8zlGEiCUrggpAnHyOoKJKCrhvPcGATFAUwIujj7bRG5UA==}
hasBin: true
dotenv@17.2.3:
resolution: {integrity: sha512-JVUnt+DUIzu87TABbhPmNfVdBDt18BLOWjMUFJMSi/Qqg7NTYtabbvSNJGOJ7afbRuv9D/lngizHtP7QyLQ+9w==}
engines: {node: '>=12'}
dotignore@0.1.2:
resolution: {integrity: sha512-UGGGWfSauusaVJC+8fgV+NVvBXkCTmVv7sk6nojDZZvuOUNGUy0Zk4UpHQD6EDjS0jpBwcACvH4eofvyzBcRDw==}
hasBin: true
@@ -6282,10 +6287,6 @@ packages:
resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==}
engines: {node: '>= 0.4'}
es-set-tostringtag@2.0.2:
resolution: {integrity: sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==}
engines: {node: '>= 0.4'}
es-set-tostringtag@2.1.0:
resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==}
engines: {node: '>= 0.4'}
@@ -6405,6 +6406,7 @@ packages:
eslint-plugin-i@2.28.0-2:
resolution: {integrity: sha512-z48kG4qmE4TmiLcxbmvxMT5ycwvPkXaWW0XpU1L768uZaTbiDbxsHMEdV24JHlOR1xDsPpKW39BfP/pRdYIwFA==}
engines: {node: '>=12'}
deprecated: Please migrate to the brand new `eslint-plugin-import-x` instead
peerDependencies:
eslint: ^7.2.0 || ^8
@@ -6430,6 +6432,7 @@ packages:
eslint-plugin-markdown@3.0.1:
resolution: {integrity: sha512-8rqoc148DWdGdmYF6WSQFT3uQ6PO7zXYgeBpHAOAakX/zpq+NvFYbDA/H7PYzHajwtmaOzAwfxyl++x0g1/N9A==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
deprecated: Please use @eslint/markdown instead
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
@@ -6500,6 +6503,7 @@ packages:
eslint@8.47.0:
resolution: {integrity: sha512-spUQWrdPt+pRVP1TTJLmfRNJJHHZryFmptzcafwSvHsceV81djHOdnEeDmkdotZyLNjDhrOasNK8nikkoG1O8Q==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options.
hasBin: true
esm-env@1.2.2:
@@ -6548,9 +6552,6 @@ packages:
estree-walker@2.0.2:
resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}
estree-walker@3.0.3:
resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}
esutils@2.0.3:
resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}
engines: {node: '>=0.10.0'}
@@ -6776,14 +6777,14 @@ packages:
resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==}
engines: {node: '>= 6'}
form-data@4.0.4:
resolution: {integrity: sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==}
engines: {node: '>= 6'}
formdata-polyfill@4.0.10:
resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==}
engines: {node: '>=12.20.0'}
frac@1.1.2:
resolution: {integrity: sha512-w/XBfkibaTl3YDqASwfDUqkna4Z2p9cFSr1aHDt0WoMTECnRfBOv2WArlZILlqgWlmdIlALXGpM2AOhEk5W3IA==}
engines: {node: '>=0.8'}
fraction.js@4.3.7:
resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==}
@@ -6887,10 +6888,6 @@ packages:
get-func-name@2.0.2:
resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==}
get-intrinsic@1.2.7:
resolution: {integrity: sha512-VW6Pxhsrk0KAOqs3WEd0klDiF/+V7gQOpAvY1jVU/LHmaD/kQO4523aiJuikX/QAKYiW6x8Jh+RJej1almdtCA==}
engines: {node: '>= 0.4'}
get-intrinsic@1.3.0:
resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}
engines: {node: '>= 0.4'}
@@ -7023,9 +7020,6 @@ packages:
resolution: {integrity: sha512-eWv1ds/zAlz+M1ioHsyKJomfY7jbDDPpwSkv14KQj89bycx1nvK5/2Cj/T9g7kzJcX5Bc7Yv22FjfBZS/jl94A==}
engines: {node: '>= 10.13.0'}
gopd@1.0.1:
resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==}
gopd@1.2.0:
resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}
engines: {node: '>= 0.4'}
@@ -8245,6 +8239,7 @@ packages:
mailsplit@5.4.2:
resolution: {integrity: sha512-4cczG/3Iu3pyl8JgQ76dKkisurZTmxMrA4dj/e8d2jKYcFTZ7MxOzg1gTioTDMPuFXwTrVuN/gxhkrO7wLg7qA==}
deprecated: This package has been renamed to @zone-eu/mailsplit. Please update your dependencies.
make-dir@2.1.0:
resolution: {integrity: sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==}
@@ -8616,6 +8611,7 @@ packages:
node-domexception@1.0.0:
resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==}
engines: {node: '>=10.5.0'}
deprecated: Use your platform's native DOMException instead
node-fetch-native@1.6.4:
resolution: {integrity: sha512-IhOigYzAKHd244OC0JIMIUrjzctirCmPkaIfhDeGcEETWof5zKYUW7e7MYvChGWh/4CJeXEgsRyGzuF334rOOQ==}
@@ -8785,6 +8781,7 @@ packages:
openpgp@6.2.0:
resolution: {integrity: sha512-zKbgazxMeGrTqUEWicKufbdcjv2E0om3YVxw+I3hRykp8ODp+yQOJIDqIr1UXJjP8vR2fky3bNQwYoQXyFkYMA==}
engines: {node: '>= 18.0.0'}
deprecated: This version has a bug affecting zlib compression if manually enabled as part of encryption or signing (see https://github.com/openpgpjs/openpgpjs/pull/1894). Please update to v6.2.2 or later.
optimist@0.3.7:
resolution: {integrity: sha512-TCx0dXQzVtSCg2OgY/bO9hjM9cV4XYx09TVK+s3+FhkjT6LovsLe+pPMzpWf+6yXK/hUizs2gUoTw3jHM0VaTQ==}
@@ -9005,9 +9002,6 @@ packages:
perfect-debounce@1.0.0:
resolution: {integrity: sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==}
periscopic@3.1.0:
resolution: {integrity: sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==}
phin@2.9.3:
resolution: {integrity: sha512-CzFr90qM24ju5f88quFC/6qohjC144rehe5n6DH900lgXmUe86+xCKc10ev56gRKC4/BkHUoG4uSiQgBiIXwDA==}
deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
@@ -9015,6 +9009,7 @@ packages:
phin@3.7.1:
resolution: {integrity: sha512-GEazpTWwTZaEQ9RhL7Nyz0WwqilbqgLahDM3D0hxWwmVDI52nXEybHqiN6/elwpkJBhcuj+WbBu+QfT0uhPGfQ==}
engines: {node: '>= 8'}
deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
php-parser@3.2.2:
resolution: {integrity: sha512-voj3rzCJmEbwHwH3QteON28wA6K+JbcaJEofyUZkUXmcViiXofjbSbcE5PtqtjX6nstnnAEYCFoRq0mkjP5/cg==}
@@ -9292,6 +9287,9 @@ packages:
protocol-buffers-schema@2.2.0:
resolution: {integrity: sha512-RgyxCE5wHb22ALgI7pq56FFCccLJlluxVXHvoYelIb/dkyJ/s8b8cdR6eCEwWtRcBswpPuM5b/MpqamCBeMPsQ==}
proxy-from-env@1.1.0:
resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==}
prr@1.0.1:
resolution: {integrity: sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==}
@@ -9595,6 +9593,7 @@ packages:
rimraf@3.0.2:
resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==}
deprecated: Rimraf versions prior to v4 are no longer supported
hasBin: true
rimraf@5.0.10:
@@ -9883,6 +9882,7 @@ packages:
sourcemap-codec@1.4.8:
resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==}
deprecated: Please use @jridgewell/sourcemap-codec instead
space-separated-tokens@2.0.2:
resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==}
@@ -9925,10 +9925,6 @@ packages:
resolution: {integrity: sha512-bZydXEXhaNDQBr8xYHC3a8thwcaMuTBp0CkKGjwGYDsIB26tnlWeWPwJtSQ0TEwiJcz9iJJON5mFPkx7XroHcg==}
hasBin: true
ssf@0.11.2:
resolution: {integrity: sha512-+idbmIXoYET47hH+d7dfm2epdOMUDjqcB4648sTZ+t2JwoyBFL/insLfB/racrDmsKB3diwsDA696pZMieAC5g==}
engines: {node: '>=0.8'}
sshpk@1.18.0:
resolution: {integrity: sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==}
engines: {node: '>=0.10.0'}
@@ -10108,10 +10104,6 @@ packages:
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
engines: {node: '>= 0.4'}
svelte@4.2.19:
resolution: {integrity: sha512-IY1rnGr6izd10B0A8LqsBfmlT5OILVuZ7XsI0vdGPEvuonFV7NYEUK4dAkm9Zg2q0Um92kYjTpS1CAP3Nh/KWw==}
engines: {node: '>=16'}
svelte@5.36.10:
resolution: {integrity: sha512-hAjYQweQHM8VH5YEEf2+k9hGyMnd+oVHXoSA/eG607vViRk9qQO1g+Dvr29+yMuYQNScpOzHX3qcnC7LrcTGCQ==}
engines: {node: '>=18'}
@@ -10124,6 +10116,7 @@ packages:
svg2png-wasm@1.4.1:
resolution: {integrity: sha512-ZFy1NtwZVAsslaTQoI+/QqX2sg0vjmgJ/jGAuLZZvYcRlndI54hLPiwLC9JzXlFBerfxN5JiS7kpEUG0mrXS3Q==}
deprecated: svg2png-wasm is no longer supported. Please use the resvg-js package instead.
svgo@3.3.2:
resolution: {integrity: sha512-OoohrmuUlBs8B8o6MB2Aevn+pRIH9zDALSR+6hhqVfa6fRwG/Qw9VUMSMW9VNg2CFc/MTIfabtdOVl9ODIJjpw==}
@@ -10814,9 +10807,6 @@ packages:
resolution: {integrity: sha512-aeVK81SIuT6aMJfNo9Vte8Dw0/FZINGBV8BfCraGtqVxIeLAEhJyoWs8SmvRVmXfGss2PmmOwZCuBPbZR+IYWg==}
engines: {node: '>= 10.13.0'}
vanilla-jsoneditor@0.23.8:
resolution: {integrity: sha512-ly5wmhnICxYhLunBVKbe0jEkPLjDeEGWPV1Lpt7HzzsPCFOmpIs05Go2XgXErmID2nWRp2s5DkT2hBVE4B+rmA==}
vanilla-jsoneditor@3.7.0:
resolution: {integrity: sha512-Rvm3/22T7IFj5qvnDAvPiW1RLwjJMEgxQC+6J4eoVe2/gDB/tbz1Wb6GbnNuh/42ybO6IdTQK9dXkgqMkWcqZQ==}
@@ -11217,18 +11207,10 @@ packages:
engines: {node: '>=8'}
hasBin: true
wmf@1.0.2:
resolution: {integrity: sha512-/p9K7bEh0Dj6WbXg4JG0xvLQmIadrner1bi45VMJTfnbVHsc7yIajZyoSoK60/dtVBs12Fm6WkUI5/3WAVsNMw==}
engines: {node: '>=0.8'}
word-wrap@1.2.5:
resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==}
engines: {node: '>=0.10.0'}
word@0.3.0:
resolution: {integrity: sha512-OELeY0Q61OXpdUfTp+oweA/vtLVg5VDOXh+3he3PNzLGG/y0oylSOC1xRVj0+l4vQ3tj/bB1HVHv1ocXkQceFA==}
engines: {node: '>=0.8'}
wordwrap@0.0.3:
resolution: {integrity: sha512-1tMA907+V4QmxV7dbRvb4/8MaRALK6q9Abid3ndMYnbyo8piisCmeONVqVSXqQA3KaP4SLt5b7ud6E2sqP8TFw==}
engines: {node: '>=0.4.0'}
@@ -11318,11 +11300,6 @@ packages:
xhr@2.6.0:
resolution: {integrity: sha512-/eCGLb5rxjx5e3mF1A7s+pLlR6CGyqWN91fv1JgER5mVWg1MZmlhBvy9kjcsOdRk8RrIujotWyJamfyrp+WIcA==}
xlsx@0.18.5:
resolution: {integrity: sha512-dmg3LCjBPHZnQp5/F/+nnTa+miPJxUXB6vtk42YjBBKayDNagxGEeIdWApkYPOf3Z3pm3k62Knjzp7lMeTEtFQ==}
engines: {node: '>=0.8'}
hasBin: true
xlsx@https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz:
resolution: {tarball: https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz}
version: 0.20.2
@@ -13877,7 +13854,7 @@ snapshots:
'@jridgewell/gen-mapping@0.3.3':
dependencies:
'@jridgewell/set-array': 1.1.2
'@jridgewell/sourcemap-codec': 1.4.15
'@jridgewell/sourcemap-codec': 1.5.0
'@jridgewell/trace-mapping': 0.3.18
'@jridgewell/gen-mapping@0.3.8':
@@ -14494,9 +14471,9 @@ snapshots:
magic-string: 0.25.9
string.prototype.matchall: 4.0.12
'@sveltejs/acorn-typescript@1.0.5(acorn@8.14.1)':
'@sveltejs/acorn-typescript@1.0.5(acorn@8.15.0)':
dependencies:
acorn: 8.14.1
acorn: 8.15.0
'@svgdotjs/svg.js@3.2.4': {}
@@ -15982,8 +15959,6 @@ snapshots:
acorn@8.15.0: {}
adler-32@1.3.1: {}
agent-base@6.0.2:
dependencies:
debug: 4.4.0
@@ -16080,7 +16055,7 @@ snapshots:
define-properties: 1.2.1
es-abstract: 1.23.9
es-object-atoms: 1.1.1
get-intrinsic: 1.2.7
get-intrinsic: 1.3.0
is-string: 1.0.7
array-slice@1.1.0: {}
@@ -16187,6 +16162,14 @@ snapshots:
dependencies:
possible-typed-array-names: 1.0.0
axios@1.12.2:
dependencies:
follow-redirects: 1.15.9
form-data: 4.0.4
proxy-from-env: 1.1.0
transitivePeerDependencies:
- debug
axobject-query@4.1.0: {}
b4a@1.6.7: {}
@@ -16446,11 +16429,6 @@ snapshots:
transitivePeerDependencies:
- debug
cfb@1.2.2:
dependencies:
adler-32: 1.3.1
crc-32: 1.2.2
chai@4.5.0:
dependencies:
assertion-error: 1.1.0
@@ -16560,6 +16538,7 @@ snapshots:
chokidar@4.0.3:
dependencies:
readdirp: 4.1.1
optional: true
chownr@1.1.4: {}
@@ -16622,14 +16601,6 @@ snapshots:
clsx@2.1.1: {}
code-red@1.0.4:
dependencies:
'@jridgewell/sourcemap-codec': 1.5.0
'@types/estree': 1.0.6
acorn: 8.14.1
estree-walker: 3.0.3
periscopic: 3.1.0
codemirror-wrapped-line-indent@1.0.8(@codemirror/language@6.10.8)(@codemirror/state@6.5.1)(@codemirror/view@6.36.2):
dependencies:
'@codemirror/language': 6.10.8
@@ -16646,8 +16617,6 @@ snapshots:
'@codemirror/state': 6.5.1
'@codemirror/view': 6.36.2
codepage@1.15.0: {}
collection-utils@1.0.1: {}
color-convert@1.9.3:
@@ -16690,6 +16659,8 @@ snapshots:
commander@13.1.0: {}
commander@14.0.1: {}
commander@2.20.3: {}
commander@6.2.1: {}
@@ -16793,8 +16764,6 @@ snapshots:
country-code-lookup@0.1.3: {}
crc-32@1.2.2: {}
crc@4.3.2(buffer@6.0.3):
optionalDependencies:
buffer: 6.0.3
@@ -17459,6 +17428,8 @@ snapshots:
commander: 6.2.1
glob: 7.2.3
dotenv@17.2.3: {}
dotignore@0.1.2:
dependencies:
minimatch: 3.1.2
@@ -17584,7 +17555,7 @@ snapshots:
arraybuffer.prototype.slice: 1.0.2
available-typed-arrays: 1.0.7
call-bind: 1.0.8
es-set-tostringtag: 2.0.2
es-set-tostringtag: 2.1.0
es-to-primitive: 1.2.1
function.prototype.name: 1.1.6
get-intrinsic: 1.3.0
@@ -17686,12 +17657,6 @@ snapshots:
dependencies:
es-errors: 1.3.0
es-set-tostringtag@2.0.2:
dependencies:
get-intrinsic: 1.3.0
has-tostringtag: 1.0.2
hasown: 2.0.2
es-set-tostringtag@2.1.0:
dependencies:
es-errors: 1.3.0
@@ -18056,10 +18021,6 @@ snapshots:
estree-walker@2.0.2: {}
estree-walker@3.0.3:
dependencies:
'@types/estree': 1.0.6
esutils@2.0.3: {}
event-cron-parser@1.0.35:
@@ -18303,12 +18264,18 @@ snapshots:
combined-stream: 1.0.8
mime-types: 2.1.35
form-data@4.0.4:
dependencies:
asynckit: 0.4.0
combined-stream: 1.0.8
es-set-tostringtag: 2.1.0
hasown: 2.0.2
mime-types: 2.1.35
formdata-polyfill@4.0.10:
dependencies:
fetch-blob: 3.2.0
frac@1.1.2: {}
fraction.js@4.3.7: {}
fraction.js@5.2.1: {}
@@ -18407,19 +18374,6 @@ snapshots:
get-func-name@2.0.2: {}
get-intrinsic@1.2.7:
dependencies:
call-bind-apply-helpers: 1.0.2
es-define-property: 1.0.1
es-errors: 1.3.0
es-object-atoms: 1.1.1
function-bind: 1.1.2
get-proto: 1.0.1
gopd: 1.2.0
has-symbols: 1.1.0
hasown: 2.0.2
math-intrinsics: 1.1.0
get-intrinsic@1.3.0:
dependencies:
call-bind-apply-helpers: 1.0.2
@@ -18596,10 +18550,6 @@ snapshots:
dependencies:
sparkles: 2.1.0
gopd@1.0.1:
dependencies:
get-intrinsic: 1.3.0
gopd@1.2.0: {}
graceful-fs@4.2.11: {}
@@ -18884,7 +18834,8 @@ snapshots:
immutable-json-patch@6.0.1: {}
immutable@5.0.3: {}
immutable@5.0.3:
optional: true
import-fresh@3.3.0:
dependencies:
@@ -19129,7 +19080,7 @@ snapshots:
is-reference@3.0.3:
dependencies:
'@types/estree': 1.0.6
'@types/estree': 1.0.8
is-regex@1.1.4:
dependencies:
@@ -20375,7 +20326,7 @@ snapshots:
define-properties: 1.2.1
es-abstract: 1.23.9
es-object-atoms: 1.1.1
gopd: 1.0.1
gopd: 1.2.0
safe-array-concat: 1.1.3
object.pick@1.3.0:
@@ -20684,12 +20635,6 @@ snapshots:
perfect-debounce@1.0.0: {}
periscopic@3.1.0:
dependencies:
'@types/estree': 1.0.6
estree-walker: 3.0.3
is-reference: 3.0.3
phin@2.9.3: {}
phin@3.7.1:
@@ -21022,6 +20967,8 @@ snapshots:
protocol-buffers-schema@2.2.0: {}
proxy-from-env@1.1.0: {}
prr@1.0.1:
optional: true
@@ -21228,7 +21175,8 @@ snapshots:
dependencies:
picomatch: 2.3.1
readdirp@4.1.1: {}
readdirp@4.1.1:
optional: true
rechoir@0.8.0:
dependencies:
@@ -21471,6 +21419,7 @@ snapshots:
source-map-js: 1.2.1
optionalDependencies:
'@parcel/watcher': 2.5.1
optional: true
sax@1.2.4: {}
@@ -21762,10 +21711,6 @@ snapshots:
argparse: 2.0.1
nearley: 2.20.1
ssf@0.11.2:
dependencies:
frac: 1.1.2
sshpk@1.18.0:
dependencies:
asn1: 0.2.6
@@ -22000,30 +21945,13 @@ snapshots:
supports-preserve-symlinks-flag@1.0.0: {}
svelte@4.2.19:
dependencies:
'@ampproject/remapping': 2.3.0
'@jridgewell/sourcemap-codec': 1.5.0
'@jridgewell/trace-mapping': 0.3.25
'@types/estree': 1.0.6
acorn: 8.14.0
aria-query: 5.3.2
axobject-query: 4.1.0
code-red: 1.0.4
css-tree: 2.3.1
estree-walker: 3.0.3
is-reference: 3.0.3
locate-character: 3.0.0
magic-string: 0.30.17
periscopic: 3.1.0
svelte@5.36.10:
dependencies:
'@ampproject/remapping': 2.3.0
'@jridgewell/sourcemap-codec': 1.5.0
'@sveltejs/acorn-typescript': 1.0.5(acorn@8.14.1)
'@types/estree': 1.0.6
acorn: 8.14.1
'@sveltejs/acorn-typescript': 1.0.5(acorn@8.15.0)
'@types/estree': 1.0.8
acorn: 8.15.0
aria-query: 5.3.2
axobject-query: 4.1.0
clsx: 2.1.1
@@ -22802,34 +22730,6 @@ snapshots:
value-or-function@4.0.0: {}
vanilla-jsoneditor@0.23.8:
dependencies:
'@codemirror/autocomplete': 6.18.4
'@codemirror/commands': 6.8.0
'@codemirror/lang-json': 6.0.1
'@codemirror/language': 6.10.8
'@codemirror/lint': 6.8.4
'@codemirror/search': 6.5.8
'@codemirror/state': 6.5.1
'@codemirror/view': 6.36.2
'@fortawesome/free-regular-svg-icons': 6.7.2
'@fortawesome/free-solid-svg-icons': 6.7.2
'@lezer/highlight': 1.2.1
'@replit/codemirror-indentation-markers': 6.5.3(@codemirror/language@6.10.8)(@codemirror/state@6.5.1)(@codemirror/view@6.36.2)
ajv: 8.17.1
codemirror-wrapped-line-indent: 1.0.8(@codemirror/language@6.10.8)(@codemirror/state@6.5.1)(@codemirror/view@6.36.2)
diff-sequences: 29.6.3
immutable-json-patch: 6.0.1
jmespath: 0.16.0
json-source-map: 0.6.1
jsonrepair: 3.13.0
lodash-es: 4.17.21
memoize-one: 6.0.0
natural-compare-lite: 1.4.0
sass: 1.83.4
svelte: 4.2.19
vanilla-picker: 2.12.3
vanilla-jsoneditor@3.7.0:
dependencies:
'@codemirror/autocomplete': 6.18.4
@@ -23363,12 +23263,8 @@ snapshots:
siginfo: 2.0.0
stackback: 0.0.2
wmf@1.0.2: {}
word-wrap@1.2.5: {}
word@0.3.0: {}
wordwrap@0.0.3: {}
wordwrap@1.0.0: {}
@@ -23526,7 +23422,7 @@ snapshots:
tippy.js: 6.3.7
ua-parser-js: 1.0.40
viewerjs: 1.11.7
xlsx: 0.18.5
xlsx: https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz
xss: 1.0.15
transitivePeerDependencies:
- bufferutil
@@ -23540,16 +23436,6 @@ snapshots:
parse-headers: 2.0.5
xtend: 4.0.2
xlsx@0.18.5:
dependencies:
adler-32: 1.3.1
cfb: 1.2.2
codepage: 1.15.0
crc-32: 1.2.2
ssf: 0.11.2
wmf: 1.0.2
word: 0.3.0
xlsx@https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz: {}
xml-formatter@3.6.6:
+16 -3
View File
@@ -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;
}
}
+116
View File
@@ -0,0 +1,116 @@
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();
async function translateText(text, targetLang) {
const response = await axios.post(TRANSLATE_ENDPOINT, null, {
params: {
q: text,
target: targetLang,
key: GOOGLE_TRANSLATE_API_KEY,
},
});
return response.data.data.translations[0].translatedText;
}
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 = flattenYaml(targetYaml);
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);
+15 -1
View File
@@ -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>
@@ -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) }"
/>
+3 -3
View File
@@ -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"
/>
+2 -2
View File
@@ -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
View File
@@ -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"
+3 -3
View File
@@ -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"
+3 -3
View File
@@ -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"
+3 -3
View File
@@ -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"
+3 -3
View File
@@ -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"
+3 -3
View File
@@ -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"
+3 -3
View File
@@ -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"
+3 -3
View File
@@ -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"
+3 -3
View File
@@ -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>
+3 -3
View File
@@ -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
/>
@@ -1,4 +1,5 @@
<script setup lang="ts">
/* NO EXTRACT SCRIPT */
const allowedDomains = ref<string[]>([]);
const allowedIPv4s = ref<string[]>([]);
const allowedIPv6s = ref<string[]>([]);
+2 -2
View File
@@ -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>
+3 -3
View File
@@ -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"
+3 -3
View File
@@ -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"
+1 -35
View File
@@ -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"
/>
+3 -3
View File
@@ -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"
+3 -3
View File
@@ -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"
+3 -3
View File
@@ -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"