mirror of
https://github.com/sharevb/it-tools.git
synced 2026-12-02 01:34:49 +03:00
Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c9ad77fb0 | ||
|
|
229814a4b9 | ||
|
|
89cda92d46 | ||
|
|
722cd7fa53 | ||
|
|
9311b39612 | ||
|
|
f7700cede1 | ||
|
|
b6ef5d50dc | ||
|
|
f78b85ea14 | ||
|
|
f3d5ab8262 |
No files matched your search
@@ -39,7 +39,6 @@
|
||||
"h": true,
|
||||
"ignorableWatch": true,
|
||||
"inject": true,
|
||||
"injectLocal": true,
|
||||
"isDefined": true,
|
||||
"isProxy": true,
|
||||
"isReactive": true,
|
||||
@@ -69,7 +68,6 @@
|
||||
"onUpdated": true,
|
||||
"pausableWatch": true,
|
||||
"provide": true,
|
||||
"provideLocal": true,
|
||||
"reactify": true,
|
||||
"reactifyObject": true,
|
||||
"reactive": true,
|
||||
@@ -98,7 +96,6 @@
|
||||
"toReactive": true,
|
||||
"toRef": true,
|
||||
"toRefs": true,
|
||||
"toValue": true,
|
||||
"triggerRef": true,
|
||||
"tryOnBeforeMount": true,
|
||||
"tryOnBeforeUnmount": true,
|
||||
@@ -133,7 +130,6 @@
|
||||
"useBrowserLocation": true,
|
||||
"useCached": true,
|
||||
"useClipboard": true,
|
||||
"useClipboardItems": true,
|
||||
"useCloned": true,
|
||||
"useColorMode": true,
|
||||
"useConfirmDialog": true,
|
||||
@@ -289,6 +285,10 @@
|
||||
"watchThrottled": true,
|
||||
"watchTriggerable": true,
|
||||
"watchWithFilter": true,
|
||||
"whenever": true
|
||||
"whenever": true,
|
||||
"toValue": true,
|
||||
"injectLocal": true,
|
||||
"provideLocal": true,
|
||||
"useClipboardItems": true
|
||||
}
|
||||
}
|
||||
@@ -33,7 +33,7 @@ body:
|
||||
- type: textarea
|
||||
id: alternative
|
||||
attributes:
|
||||
label: Is there example of this tool in the wild?
|
||||
label: Is their example of this tool in the wild?
|
||||
description: Provide link to already existing tool (like websites, apps, cli, ...) or npm packages that could be used or provide inspiration for the feature.
|
||||
|
||||
- type: textarea
|
||||
|
||||
@@ -11,7 +11,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
||||
- run: |
|
||||
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
|
||||
npm install -g corepack@latest
|
||||
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
@@ -55,7 +55,7 @@ jobs:
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v3
|
||||
uses: github/codeql-action/autobuild@v2
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
@@ -69,4 +69,4 @@ jobs:
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v3
|
||||
uses: github/codeql-action/analyze@v2
|
||||
@@ -12,7 +12,7 @@ jobs:
|
||||
outputs:
|
||||
should_run: ${{ steps.should_run.outputs.should_run }}
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
||||
- name: print latest_commit
|
||||
run: echo ${{ github.sha }}
|
||||
|
||||
@@ -28,7 +28,7 @@ jobs:
|
||||
if: ${{ needs.check_date.outputs.should_run != 'false' }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
||||
- run: |
|
||||
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
|
||||
npm install -g corepack@latest
|
||||
@@ -60,7 +60,7 @@ jobs:
|
||||
steps:
|
||||
# Checkout the repository
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
|
||||
@@ -1,80 +0,0 @@
|
||||
name: Build and Push Docker Image (latest)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- chore/all-my-stuffs
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: |
|
||||
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
|
||||
npm install -g corepack@latest
|
||||
echo "After : corepack version => $(corepack --version)"
|
||||
corepack enable
|
||||
pnpm --version
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm i
|
||||
|
||||
- name: Run linters
|
||||
run: pnpm lint
|
||||
|
||||
- name: Run unit tests
|
||||
run: pnpm test
|
||||
|
||||
- name: Build the app
|
||||
run: pnpm build
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- ci
|
||||
steps:
|
||||
# Checkout the repository
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
build-args: |
|
||||
"BASE_URL=/"
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: |
|
||||
sharevb/it-tools:latest
|
||||
ghcr.io/${{ github.repository_owner }}/it-tools:latest
|
||||
|
||||
# Optionally log out
|
||||
- name: Log out from GitHub Container Registry
|
||||
run: docker logout ghcr.io
|
||||
+13
-2
@@ -1,4 +1,4 @@
|
||||
name: Build and Push Docker Image (baseurl-it-tools)
|
||||
name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -41,7 +41,7 @@ jobs:
|
||||
steps:
|
||||
# Checkout the repository
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
@@ -75,6 +75,17 @@ jobs:
|
||||
sharevb/it-tools:baseurl-it-tools
|
||||
ghcr.io/sharevb/it-tools:baseurl-it-tools
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: |
|
||||
sharevb/it-tools:latest
|
||||
ghcr.io/${{ github.repository_owner }}/it-tools:latest
|
||||
|
||||
# Optionally log out
|
||||
- name: Log out from GitHub Container Registry
|
||||
run: docker logout ghcr.io
|
||||
@@ -12,7 +12,7 @@ jobs:
|
||||
matrix:
|
||||
shard: [1/3, 2/3, 3/3]
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
||||
|
||||
- run: |
|
||||
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
run: pnpm build
|
||||
|
||||
- name: Restore Playwright browsers from cache
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.cache/ms-playwright
|
||||
key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }}-${{ hashFiles('**/playwright.config.ts') }}
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
name: Deploy static content to Pages
|
||||
|
||||
on:
|
||||
# Runs on pushes targeting the default branch
|
||||
push:
|
||||
branches: ["chore/all-my-stuffs"]
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
||||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
||||
concurrency:
|
||||
group: "pages"
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
# Single deploy job since we're just deploying
|
||||
deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- uses: pnpm/action-setup@v2
|
||||
name: Install pnpm
|
||||
id: pnpm-install
|
||||
with:
|
||||
version: 8
|
||||
run_install: true
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
BASE_URL="/it-tools/" pnpm build
|
||||
cp dist/index.html dist/404.html
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v5
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: './dist'
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
@@ -8,12 +8,15 @@ on:
|
||||
jobs:
|
||||
docker-release:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
architecture: [amd64,arm64]
|
||||
steps:
|
||||
- name: Get release version
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
@@ -41,7 +44,7 @@ jobs:
|
||||
file: ./Dockerfile
|
||||
build-args: |
|
||||
"BASE_URL=/it-tools/"
|
||||
platforms: linux/amd64,linux/arm64
|
||||
platforms: linux/${{ matrix.architecture }}
|
||||
push: true
|
||||
tags: |
|
||||
sharevb/it-tools:baseurl-it-tools
|
||||
@@ -70,7 +73,7 @@ jobs:
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
||||
|
||||
- run: |
|
||||
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
|
||||
|
||||
-200
@@ -2,206 +2,6 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||
|
||||
## Version 2025.07.20-3ccbd853
|
||||
|
||||
### Features
|
||||
- prepare new tools for translation (cfe5b4f)
|
||||
- translation scripts enhancements (a4576e0)
|
||||
- **new tool**: Levenshtein Distance Calculator (9cb58fc)
|
||||
- **new tools**: YAML/JSON Flattener/Unflattener (521d0bf)
|
||||
- **new tools**: YAML/JSON Merger (1d02e32)
|
||||
- **new tools**: Docker Run/Compose to Quadlets (d28f275)
|
||||
- **Git Memo**: add git pull (c46e65f)
|
||||
- **XPath Tester**: handle namespaces (b0c43e2)
|
||||
- **new tool**: Swagger UI Tester (e5d8425)
|
||||
- **yaml-to-json**: add nestify options (e9dbf1f)
|
||||
- **i18n**: extract some more (1a2e152)
|
||||
- **i18n**: extract some more (7527853)
|
||||
- **i18n**: extract all tools name and description (a9d6b86)
|
||||
- add script to extract tools name and description (cca32ba)
|
||||
- **HTML Editor**: add raw html editor (d625f62)
|
||||
- **new tool**: Citation Generator (APA/MLA) (700cc2a)
|
||||
- **new tool**: JSON Query (lang) (c53a8cb)
|
||||
- **JQ Tester**: add some keywords and move to JSON category (ea0a99e)
|
||||
- **new tool**: ANSI Escape Tester (241dd13)
|
||||
- **new tool**: HTML Minifier (9f5f7d8)
|
||||
- **HTML Editor**: option to minify output (5e3648e)
|
||||
- **Watermarker**: add options for repeated tile spacing and single watermark positioning (a78201b)
|
||||
- **new tool**: Image Watermarker (e00b78b)
|
||||
- **Unicode Search**: improve unicode search loading speed (#97) (f868b97)
|
||||
- **Folder Structure**: Add backwards converter for Folder Structure Page (#105) (9186038)
|
||||
|
||||
### Bug fixes
|
||||
- use t for translate in tools name/description (3ccbd85)
|
||||
- **Regex Tester**: remove shadow root on unmount (a26f2a2)
|
||||
- **iCal Merger**: fix name and desc + regenerate UIDs (0bb259c)
|
||||
- remove stub @types + update podletjs + use @xterm/xterm (504aff9)
|
||||
- **nginx.conf**: allow image-src to blob and http(s) (eafc6f8)
|
||||
- **deps**: update dependency @iplookup/country-extra to v1.0.20250717 (#115) (5bdbaa9)
|
||||
- allow connect-src any https: and http: (79e0db7)
|
||||
- JSON stringify/parse BigInt (ad312d7)
|
||||
- read yaml with intAsBigInt (0d4267e)
|
||||
- **HTML Editor**: remove <p> from <li> (2be6d4d)
|
||||
- **IPv4 Address Converter**: error handling (05d25da)
|
||||
|
||||
### Chores
|
||||
- update deps (b434ad7)
|
||||
- update playwright (1202011)
|
||||
- update deps (babff36)
|
||||
- force base url / for latest and default build (91564e0)
|
||||
- fix github issue template typo (5904fa7)
|
||||
|
||||
### Other
|
||||
- Additions for responsive sidebar pull request (#131) (aabbfca)
|
||||
- add yunohost install option (#133) (96ad3eb)
|
||||
- Feat/translate all content (#121) (a8c6ebc)
|
||||
- Made sidebar responsive (#130) (e811a5b)
|
||||
- Updated Irish translation (#127) (7824f48)
|
||||
- feat(i18n) Added Irish/Gaeilge translation (#124) (4ea4420)
|
||||
- Squashed commit of the following: (207b2ab)
|
||||
|
||||
### Fix
|
||||
- Massive website slowdown after visiting the Unicode Search page (#132) (be9d659)
|
||||
|
||||
### Merge branch 'chore/all-my-stuffs' of https
|
||||
- //github.com/sharevb/it-tools into chore/all-my-stuffs (3ffb805)
|
||||
|
||||
### Feature
|
||||
- Improve menu bar animation smoothness (#109) (7fd60b0)
|
||||
|
||||
### New tool
|
||||
- CLI Command Editor (#108) (3b921e6)
|
||||
|
||||
### Doc
|
||||
- add info for authentication (a12c43b)
|
||||
- add info about ipv6, cyberpanel, https, PWA, dev under WSL2 (de76ee5)
|
||||
|
||||
## Version 2025.06.15-20a26514
|
||||
|
||||
### Features
|
||||
- **Date-Time Converter**: add .Net Ticks (20a2651)
|
||||
- **NGINX**: Add some commonly used security headers (#94) (0048f48)
|
||||
- **new tool**: PDF Text Extractor (3947973)
|
||||
- **new tool**: Age Crypto (8decf33)
|
||||
- **Htpasswd Generator**: add md5, apr1, sha256 and sha512 (4313ce9)
|
||||
- **new tool**: Nginx Memo (7d6753f)
|
||||
- **new tool**: Vim Memo (bed46c6)
|
||||
- **new tool**: Kubernetes Memo (f1d6a16)
|
||||
- **new tool**: Linux Bash Memo (19d3179)
|
||||
- **new tool**: Cron/Weekdays Time Alarm (c9b448c)
|
||||
- **Time Alarm**: fullscreen mode (f90a69c)
|
||||
- **Countdown**: fullscreen mode (80a2fb7)
|
||||
- **Certificate Key Parser**: display public and private keys (pem) (b489f3a)
|
||||
- **new tool**: Traefik Compose Maker (7a48c2f)
|
||||
- **new tool**: Data Faker (dd5ca6f)
|
||||
- **new tool**: Firewalld Generator (eaa8b5b)
|
||||
- **new tool**: HTAccess Generator (00053c3)
|
||||
- add KiB/kB explanations (6762677)
|
||||
- **new tool**: String Escaper (58e2fb3)
|
||||
- **new tool**: Quote Converter (91f565f)
|
||||
- **new tool**: JSON to Protobuf (937ddc6)
|
||||
- **new tool**: Distinct Words Counter (2593df0)
|
||||
- **new tool**: JSON to Typescript (9c925ac)
|
||||
- **new tool**: SQL Minifier (2da9832)
|
||||
- **JS to Object**: handle backquotes (4751417)
|
||||
- **new tool**: JSON to SQL INSERT (e073f3b)
|
||||
- **new tool**: CSV to JSON, YAML, SQL INSERT, Markdown, CSV, XML (93532ce)
|
||||
- **Excel to Data**: handle nestify, XML and Sheet Selection (b982fa5)
|
||||
- **new tool**: Cookies Parser (41d24a5)
|
||||
- **new tool**: Git Semantic Commits Cheatsheet (ca12661)
|
||||
- **PDF Tools**: display command args (1829733)
|
||||
- **JSON to Go**: use quicktype (7931c9b)
|
||||
- **new tool**: JSON to PHP Code (40d90b9)
|
||||
- **new tool**: JSON to Python (bcf93f3)
|
||||
- **new tool**: Curl Command Generator (f4d4de8)
|
||||
- **new tool**: Pdf Extractor (2160e7a)
|
||||
- **new tool**: Pdf Concatener (2c12e1e)
|
||||
- **Rune Converter**: add StavelessFuthark (8efe340)
|
||||
- **new tool**: Paseto/PASERK Encrypt/Decrypt/Sign/Verify and Generator (2037d14)
|
||||
- **new tool**: Excel to Data (e99d7b4)
|
||||
- **new tool**: Iptables Command Generator (35e91b3)
|
||||
- **new tool**: TCP Dump Generator (af6ccec)
|
||||
- **new tool**: JSON to SQL CREATE TABLE/DDL (06e4f84)
|
||||
- **new tool**: Rsync Command Line Generator (f01d56c)
|
||||
- **new tool**: /etc/fstab Generator (faaeeb2)
|
||||
- **new tool**: BMI Calculator (2464f1f)
|
||||
- **new tool**: Properties from/to YAML (ec865b7)
|
||||
- **new tools**: DNS generator (SPF Record, DKIM Record, DMARC Record, BIMI Record ) (53aa948)
|
||||
|
||||
### Bug fixes
|
||||
- favorites contextmenu disable (a93a99b)
|
||||
- linting (56da33f)
|
||||
- **Favorites**: add a delay for dragging to allow touch to access tools (4537cc6)
|
||||
- add loading progress on tool load (db0aff3)
|
||||
- add a splash screen (ac3648c)
|
||||
- **Favorites**: add a delay for dragging to allow touch to access tools (bc8524d)
|
||||
- **Fortune wheel**: added description (64ef495)
|
||||
- add GitHub Page deployment and update README (0c29c19)
|
||||
- optimize monaco-editor loading (locally) (eb40104)
|
||||
- **Textarea Copyable**: better copy button placement (ca47590)
|
||||
- file upload, preview for images only (09d56f5)
|
||||
- Certificate Key Parser and PGP (884a447)
|
||||
- **README**: use latest version for GitHub Pages publish actions (a997446)
|
||||
- **Certificate/Key Parser**: handle multiple PEM certificate in one file (4885459)
|
||||
- **deps**: update dependency jq-wasm to v1 (#24) (386b4fd)
|
||||
- **Docker building**: image overwrite bug (4c600f0)
|
||||
- **Folder Structure Diagram**: use monaco editor (665db9b)
|
||||
- **Cookies Parser**: handle multuple = (368d088)
|
||||
- **Docker Cheatsheet**: typo <> in code blocks (3b21a6b)
|
||||
- checkbox bindings (77e7667)
|
||||
- **Paste as Mardown**: ref errors (6cb20b7)
|
||||
- **Text Diff**: height responsive (6eccfc1)
|
||||
- **README**: typoe in "custom default language" (68c56e4)
|
||||
- **Paseto Tools**: renaming (02e40dc)
|
||||
- **Docker**: baseurl-it-tools, fix rewrite for Traefik (0e9c33d)
|
||||
|
||||
### Refactoring
|
||||
- **Excel to Data**: service + unit tests (ece2770)
|
||||
|
||||
### Chores
|
||||
- try fix vercel build (8e9d921)
|
||||
- fix pgp for vercel (a768d22)
|
||||
- github page deploy and contributors to README (cfcc21d)
|
||||
- fix lint (da8c5df)
|
||||
- fix and optimize build (d4447df)
|
||||
- **deps**: update actions/checkout digest to 11bd719 (#8) (e2a6580)
|
||||
- **deps**: update actions/cache action to v4 (#20) (9eb888f)
|
||||
- **deps**: update actions/checkout action to v4 (#21) (648ef7b)
|
||||
- update codeql version (3a11b59)
|
||||
- github release split and matrix optimization (dae5fe6)
|
||||
- optimize onnxruntime-node (99f4f83)
|
||||
- optimize build and disable preload (8de0535)
|
||||
- update composerize (134a5e8)
|
||||
|
||||
### Other
|
||||
- Added loading delay (#92) (be25e17)
|
||||
- Improve fortune wheel performance (#91) (1e405c3)
|
||||
- Fix broken text fonts (#95) (203f207)
|
||||
- Merge branch 'feat/loading-indicators' into chore/all-my-stuffs (bf395a1)
|
||||
- Convert last items to flex search (#87) (6f1b17f)
|
||||
- Improve image resizer features (#90) (e14fd2f)
|
||||
- Improve hompage performance (#85) (fd76914)
|
||||
- Improve http status codes performance (#86) (b77c57e)
|
||||
- Improve emoji picker performance (#84) (3ed3f90)
|
||||
- Improve IES Lighting guidelines performance (#83) (02df1bc)
|
||||
- Improved iso 3166 searcher page performance (#79) (226081d)
|
||||
- Improved performance on the Unicode Search page (#75) (2355232)
|
||||
- Add all mainpage card translate templates (en.yml) + add ru & ua translations on mainpage card (#62) (3e1b05f)
|
||||
- Add arabic translation (#61) (5a990ae)
|
||||
- Update pt.yml (#59) (4cc875f)
|
||||
- Adding full Ukrainian & Russian translation (#60) (7ed2e41)
|
||||
|
||||
### Documentation
|
||||
- add info about HTTPS using DNS Challenge (78fdceb)
|
||||
|
||||
### Typo
|
||||
- **Fortune Wheel**: maje restart button cleared (spin!) (0098645)
|
||||
|
||||
### Fixup! feat
|
||||
- **new tool**: JSON to Python (3564ccf)
|
||||
- **new tool**: JSON to PHP Code (4089c62)
|
||||
- **new tool**: Properties from/to YAML (520d2cd)
|
||||
|
||||
## Version 2025.04.21-70194069
|
||||
|
||||
### Features
|
||||
|
||||
@@ -2,22 +2,7 @@
|
||||
|
||||
Since *Docker base image* is now `nginx-unpriviledged`, docker image now listen to **8080** and no more 80. So you need to update your port mapping, ie from `8080:80` to `8080:8080`.
|
||||
|
||||
Docker image listen to IPv6, so it needs to be enabled: https://serverfault.com/questions/1147296/how-to-enable-ipv6-on-ubuntu-20-04. Alternatively, you can mount your own `nginx.conf` own using docker option `-v "./nginx.conf:/etc/nginx/conf.d/nginx.conf"` (with `listen [::]:8080;` removed)
|
||||
|
||||
## 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.
|
||||
|
||||
So even on internal installations, you can enable HTTPS using Let's Encrypt using DNS Challenge
|
||||
|
||||
Some docs about DNS Challenge:
|
||||
- https://medium.com/@life-is-short-so-enjoy-it/homelab-nginx-proxy-manager-setup-ssl-certificate-with-domain-name-in-cloudflare-dns-732af64ddc0b
|
||||
- https://doc.traefik.io/traefik/user-guides/docker-compose/acme-dns/
|
||||
- https://medium.com/@svenvanginkel/traefik-letsencrypt-dns01-challenge-with-ovhcloud-52f2a2c6d08a
|
||||
|
||||
Related doc for CyberPanel: https://community.cyberpanel.net/t/reverse-proxy-traffic-to-docker-container-on-cyberpanel/30644
|
||||
|
||||
### Check out these change here: <https://sharevb-it-tools.vercel.app/> or <https://sharevb.github.io/it-tools/>
|
||||
### Check out these change here: <https://sharevb-it-tools.vercel.app/>
|
||||
|
||||
You can use my image in your docker-compose file if you want an update to date version of it-tools (with my PR and some of others) until the main branch has been updated.
|
||||
|
||||
@@ -25,16 +10,6 @@ You can use my image in your docker-compose file if you want an update to date v
|
||||
|
||||
(Thanks to [gitmotion](https://github.com/gitmotion/it-tools) for this model of README fork)
|
||||
|
||||
## Contributors
|
||||
|
||||
Big thanks to all the people who have already contributed!
|
||||
|
||||
[](https://github.com/sharevb/it-tools/graphs/contributors)
|
||||
|
||||
## Development under Windows
|
||||
|
||||
Use of WSL2 is recommanded to develop using VSCode on Windows. Direct development is tricky (because of some dependencies)
|
||||
|
||||
## Added features
|
||||
|
||||
Almost [all tools PR of it-tools](https://github.com/sharevb/it-tools/pulls).
|
||||
@@ -120,16 +95,72 @@ Then navigate to http://localhost:8080/it-tools/
|
||||
## To build for GitHub Pages:
|
||||
|
||||
1. Enable GitHub Pages build and deployment option in your fork, under **Settings** > **Pages** and select **GitHub Actions** as the source
|
||||
2. Add the following GitHub action to your repo: https://github.com/sharevb/it-tools/.github/workflows/sharevb-github-pages-publish.yml
|
||||
2. Add the following GitHub action to your repo:
|
||||
|
||||
## To add authentication
|
||||
.github/workflows/deploy-pages.yaml
|
||||
```yaml
|
||||
name: Deploy static content to Pages
|
||||
|
||||
Assuming you're already hosting it-tools behind a reverse proxy, you can configure forward-auth and enforce authentication from the reverse proxy
|
||||
on:
|
||||
# Runs on pushes targeting the default branch
|
||||
push:
|
||||
branches: ["main"]
|
||||
|
||||
* [Official guides](https://docs.goauthentik.io/docs/add-secure-apps/providers/proxy/server_nginx) with nginx. Guides with other reverse proxy setups are available
|
||||
* [Step-by-step setup guide with nginx-proxy-manager](https://geekscircuit.com/set-up-authentik-sso-with-nginx-proxy-manager/)
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
(thanks @jogerj)
|
||||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
||||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
||||
concurrency:
|
||||
group: "pages"
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
# Single deploy job since we're just deploying
|
||||
deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- uses: pnpm/action-setup@v2
|
||||
name: Install pnpm
|
||||
id: pnpm-install
|
||||
with:
|
||||
version: 8
|
||||
run_install: true
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
BASE_URL="/it-tools/" pnpm build
|
||||
cp dist/index.html dist/404.html
|
||||
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v3
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
with:
|
||||
path: './dist'
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v2
|
||||
```
|
||||
|
||||
## Installation methods
|
||||
|
||||
@@ -178,7 +209,6 @@ docker run -d --name it-tools --restart unless-stopped -p 8080:8080 ghcr.io/core
|
||||
- [Cloudron](https://www.cloudron.io/store/tech.ittools.cloudron.html)
|
||||
- [Tipi](https://www.runtipi.io/docs/apps-available)
|
||||
- [Unraid](https://unraid.net/community/apps?q=it-tools)
|
||||
- [YunoHost](https://apps.yunohost.org/app/it-tools)
|
||||
|
||||
## Contribute
|
||||
|
||||
@@ -276,4 +306,4 @@ Contributor graph is generated using [contrib.rocks](https://contrib.rocks/previ
|
||||
|
||||
This project is under the [GNU GPLv3](LICENSE).
|
||||
|
||||
</details>
|
||||
</details>
|
||||
Vendored
+12
-42
@@ -12,12 +12,10 @@ declare module '@vue/runtime-core' {
|
||||
'404.page': typeof import('./src/pages/404.page.vue')['default']
|
||||
About: typeof import('./src/pages/About.vue')['default']
|
||||
AdLdapSearcher: typeof import('./src/tools/ad-ldap-searcher/ad-ldap-searcher.vue')['default']
|
||||
AgeCrypto: typeof import('./src/tools/age-crypto/age-crypto.vue')['default']
|
||||
AiPromptSplitter: typeof import('./src/tools/ai-prompt-splitter/ai-prompt-splitter.vue')['default']
|
||||
AlarmSoundToggle: typeof import('./src/tools/pomodoro-timer/app/components/AlarmSoundToggle.vue')['default']
|
||||
AngleConverter: typeof import('./src/tools/angle-converter/angle-converter.vue')['default']
|
||||
AnsibleVaultCryptDecrypt: typeof import('./src/tools/ansible-vault-crypt-decrypt/ansible-vault-crypt-decrypt.vue')['default']
|
||||
AnsiEscapeTester: typeof import('./src/tools/ansi-escape-tester/ansi-escape-tester.vue')['default']
|
||||
ApiTester: typeof import('./src/tools/api-tester/api-tester.vue')['default']
|
||||
App: typeof import('./src/App.vue')['default']
|
||||
AppColorPicker: typeof import('./src/tools/pomodoro-timer/app/components/AppColorPicker.vue')['default']
|
||||
@@ -30,8 +28,6 @@ declare module '@vue/runtime-core' {
|
||||
Base64FileConverter: typeof import('./src/tools/base64-file-converter/base64-file-converter.vue')['default']
|
||||
Base64HexConverter: typeof import('./src/tools/base64-hex-converter/base64-hex-converter.vue')['default']
|
||||
Base64StringConverter: typeof import('./src/tools/base64-string-converter/base64-string-converter.vue')['default']
|
||||
BashMemo: typeof import('./src/tools/bash-memo/bash-memo.vue')['default']
|
||||
'BashMemo.content': typeof import('./src/tools/bash-memo/bash-memo.content.md')['default']
|
||||
BasicAuthGenerator: typeof import('./src/tools/basic-auth-generator/basic-auth-generator.vue')['default']
|
||||
Bcrypt: typeof import('./src/tools/bcrypt/bcrypt.vue')['default']
|
||||
BenchmarkBuilder: typeof import('./src/tools/benchmark-builder/benchmark-builder.vue')['default']
|
||||
@@ -61,11 +57,9 @@ declare module '@vue/runtime-core' {
|
||||
CidrInCidr: typeof import('./src/tools/cidr-in-cidr/cidr-in-cidr.vue')['default']
|
||||
CInputText: typeof import('./src/ui/c-input-text/c-input-text.vue')['default']
|
||||
'CInputText.demo': typeof import('./src/ui/c-input-text/c-input-text.demo.vue')['default']
|
||||
CitationGenerator: typeof import('./src/tools/citation-generator/citation-generator.vue')['default']
|
||||
CKeyValueList: typeof import('./src/ui/c-key-value-list/c-key-value-list.vue')['default']
|
||||
CKeyValueListItem: typeof import('./src/ui/c-key-value-list/c-key-value-list-item.vue')['default']
|
||||
CLabel: typeof import('./src/ui/c-label/c-label.vue')['default']
|
||||
CliCommandEditor: typeof import('./src/tools/cli-command-editor/cli-command-editor.vue')['default']
|
||||
CLink: typeof import('./src/ui/c-link/c-link.vue')['default']
|
||||
'CLink.demo': typeof import('./src/ui/c-link/c-link.demo.vue')['default']
|
||||
CMarkdown: typeof import('./src/ui/c-markdown/c-markdown.vue')['default']
|
||||
@@ -86,11 +80,9 @@ declare module '@vue/runtime-core' {
|
||||
CommandPaletteOption: typeof import('./src/modules/command-palette/components/command-palette-option.vue')['default']
|
||||
CommonRegex: typeof import('./src/tools/common-regex-memo/common-regex.md')['default']
|
||||
CommonRegexMemo: typeof import('./src/tools/common-regex-memo/common-regex-memo.vue')['default']
|
||||
CookiesParser: typeof import('./src/tools/cookies-parser/cookies-parser.vue')['default']
|
||||
Countdown: typeof import('./src/tools/countdown/countdown.vue')['default']
|
||||
Counter: typeof import('./src/tools/pomodoro-timer/app/components/Counter.vue')['default']
|
||||
CrcCalculator: typeof import('./src/tools/crc-calculator/crc-calculator.vue')['default']
|
||||
CronAlarm: typeof import('./src/tools/cron-alarm/cron-alarm.vue')['default']
|
||||
CrontabGenerator: typeof import('./src/tools/crontab-generator/crontab-generator.vue')['default']
|
||||
CSelect: typeof import('./src/ui/c-select/c-select.vue')['default']
|
||||
'CSelect.demo': typeof import('./src/ui/c-select/c-select.demo.vue')['default']
|
||||
@@ -99,7 +91,6 @@ declare module '@vue/runtime-core' {
|
||||
CssSelectors: typeof import('./src/tools/css-selectors-memo/css-selectors.md')['default']
|
||||
CssSelectorsMemo: typeof import('./src/tools/css-selectors-memo/css-selectors-memo.vue')['default']
|
||||
CssXpathConverter: typeof import('./src/tools/css-xpath-converter/css-xpath-converter.vue')['default']
|
||||
CsvToData: typeof import('./src/tools/csv-to-data/csv-to-data.vue')['default']
|
||||
CsvToJson: typeof import('./src/tools/csv-to-json/csv-to-json.vue')['default']
|
||||
CTable: typeof import('./src/ui/c-table/c-table.vue')['default']
|
||||
'CTable.demo': typeof import('./src/ui/c-table/c-table.demo.vue')['default']
|
||||
@@ -110,7 +101,6 @@ declare module '@vue/runtime-core' {
|
||||
CurlConverter: typeof import('./src/tools/curl-converter/curl-converter.vue')['default']
|
||||
CurlGenerator: typeof import('./src/tools/curl-generator/curl-generator.vue')['default']
|
||||
CurrencyConverter: typeof import('./src/tools/currency-converter/currency-converter.vue')['default']
|
||||
DataFaker: typeof import('./src/tools/data-faker/data-faker.vue')['default']
|
||||
DataStorageUnitConverter: typeof import('./src/tools/data-storage-unit-converter/data-storage-unit-converter.vue')['default']
|
||||
DataTransferRateConverter: typeof import('./src/tools/data-transfer-rate-converter/data-transfer-rate-converter.vue')['default']
|
||||
DateDurationCalculator: typeof import('./src/tools/date-duration-calculator/date-duration-calculator.vue')['default']
|
||||
@@ -121,21 +111,20 @@ declare module '@vue/runtime-core' {
|
||||
DeviceInformation: typeof import('./src/tools/device-information/device-information.vue')['default']
|
||||
DiceRoller: typeof import('./src/tools/dice-roller/dice-roller.vue')['default']
|
||||
DiffViewer: typeof import('./src/tools/json-diff/diff-viewer/diff-viewer.vue')['default']
|
||||
DistinctWords: typeof import('./src/tools/distinct-words/distinct-words.vue')['default']
|
||||
DkimDnsGenerator: typeof import('./src/tools/dkim-dns-generator/dkim-dns-generator.vue')['default']
|
||||
'Dmarc-Generator': typeof import('./src/tools/dmarc-dns-generator/dmarc--generator.vue')['default']
|
||||
DmarcDnsGenerator: typeof import('./src/tools/dmarc-dns-generator/dmarc-dns-generator.vue')['default']
|
||||
DmarcGenerator: typeof import('./src/tools/dmarc-dns-generator/dmarc-generator.vue')['default']
|
||||
DmarcReportAnalyzer: typeof import('./src/tools/dmarc-report-analyzer/dmarc-report-analyzer.vue')['default']
|
||||
DnsQueries: typeof import('./src/tools/dns-queries/dns-queries.vue')['default']
|
||||
Docker: typeof import('./src/tools/docker-memo/docker.md')['default']
|
||||
DockerComposeConverter: typeof import('./src/tools/docker-compose-converter/docker-compose-converter.vue')['default']
|
||||
DockerComposeToDockerRunConverter: typeof import('./src/tools/docker-compose-to-docker-run-converter/docker-compose-to-docker-run-converter.vue')['default']
|
||||
DockerComposeToKubernetes: typeof import('./src/tools/docker-compose-to-kubernetes/docker-compose-to-kubernetes.vue')['default']
|
||||
DockerComposeToQuadlets: typeof import('./src/tools/docker-compose-to-quadlets/docker-compose-to-quadlets.vue')['default']
|
||||
DockerComposeValidator: typeof import('./src/tools/docker-compose-validator/docker-compose-validator.vue')['default']
|
||||
DockerMemo: typeof import('./src/tools/docker-memo/docker-memo.vue')['default']
|
||||
DockerRunToDockerComposeConverter: typeof import('./src/tools/docker-run-to-docker-compose-converter/docker-run-to-docker-compose-converter.vue')['default']
|
||||
DockerRunToKubernetes: typeof import('./src/tools/docker-run-to-kubernetes/docker-run-to-kubernetes.vue')['default']
|
||||
DockerRunToQuadlets: typeof import('./src/tools/docker-run-to-quadlets/docker-run-to-quadlets.vue')['default']
|
||||
DuplicateLineFinder: typeof import('./src/tools/duplicate-line-finder/duplicate-line-finder.vue')['default']
|
||||
DurationCalculator: typeof import('./src/tools/duration-calculator/duration-calculator.vue')['default']
|
||||
DynamicValues: typeof import('./src/tools/benchmark-builder/dynamic-values.vue')['default']
|
||||
@@ -168,8 +157,6 @@ declare module '@vue/runtime-core' {
|
||||
GeoDistanceCalculator: typeof import('./src/tools/geo-distance-calculator/geo-distance-calculator.vue')['default']
|
||||
GitMemo: typeof import('./src/tools/git-memo/git-memo.vue')['default']
|
||||
'GitMemo.content': typeof import('./src/tools/git-memo/git-memo.content.md')['default']
|
||||
'GitSem.memo': typeof import('./src/tools/git-semantic-commit-memo/git-sem.memo.md')['default']
|
||||
GitSemanticCommitMemo: typeof import('./src/tools/git-semantic-commit-memo/git-semantic-commit-memo.vue')['default']
|
||||
GptTokenEstimator: typeof import('./src/tools/gpt-token-estimator/gpt-token-estimator.vue')['default']
|
||||
GzipConverter: typeof import('./src/tools/gzip-converter/gzip-converter.vue')['default']
|
||||
HarSanitizer: typeof import('./src/tools/har-sanitizer/har-sanitizer.vue')['default']
|
||||
@@ -185,7 +172,6 @@ declare module '@vue/runtime-core' {
|
||||
HtaccessGenerator: typeof import('./src/tools/htaccess-generator/htaccess-generator.vue')['default']
|
||||
HtmlCleaner: typeof import('./src/tools/html-cleaner/html-cleaner.vue')['default']
|
||||
HtmlEntities: typeof import('./src/tools/html-entities/html-entities.vue')['default']
|
||||
HtmlMinifier: typeof import('./src/tools/html-minifier/html-minifier.vue')['default']
|
||||
HtmlPrettifier: typeof import('./src/tools/html-prettifier/html-prettifier.vue')['default']
|
||||
HtmlToMarkdown: typeof import('./src/tools/html-to-markdown/html-to-markdown.vue')['default']
|
||||
HtmlWysiwygEditor: typeof import('./src/tools/html-wysiwyg-editor/html-wysiwyg-editor.vue')['default']
|
||||
@@ -239,13 +225,10 @@ declare module '@vue/runtime-core' {
|
||||
JsonDiff: typeof import('./src/tools/json-diff/json-diff.vue')['default']
|
||||
JsonEditor: typeof import('./src/tools/json-editor/json-editor.vue')['default']
|
||||
JsonEscaper: typeof import('./src/tools/json-escaper/json-escaper.vue')['default']
|
||||
JsonFlattenNestify: typeof import('./src/tools/json-flatten-nestify/json-flatten-nestify.vue')['default']
|
||||
JsonLinter: typeof import('./src/tools/json-linter/json-linter.vue')['default']
|
||||
JsonMerger: typeof import('./src/tools/json-merger/json-merger.vue')['default']
|
||||
JsonMinify: typeof import('./src/tools/json-minify/json-minify.vue')['default']
|
||||
Jsonpath: typeof import('./src/tools/jsonpath-memo/jsonpath.md')['default']
|
||||
JsonpathMemo: typeof import('./src/tools/jsonpath-memo/jsonpath-memo.vue')['default']
|
||||
JsonQuery: typeof import('./src/tools/json-query/json-query.vue')['default']
|
||||
JsonSizeAnalyzer: typeof import('./src/tools/json-size-analyzer/json-size-analyzer.vue')['default']
|
||||
JsonSortMaster: typeof import('./src/tools/json-sort-master/json-sort-master.vue')['default']
|
||||
JsonStringConverter: typeof import('./src/tools/json-string-converter/json-string-converter.vue')['default']
|
||||
@@ -257,25 +240,19 @@ declare module '@vue/runtime-core' {
|
||||
JsonToObject: typeof import('./src/tools/json-to-object/json-to-object.vue')['default']
|
||||
JsonToPhp: typeof import('./src/tools/json-to-php/json-to-php.vue')['default']
|
||||
JsonToPhpArray: typeof import('./src/tools/json-to-php-array/json-to-php-array.vue')['default']
|
||||
JsonToProtobuf: typeof import('./src/tools/json-to-protobuf/json-to-protobuf.vue')['default']
|
||||
JsonToPython: typeof import('./src/tools/json-to-python/json-to-python.vue')['default']
|
||||
JsonToSchema: typeof import('./src/tools/json-to-schema/json-to-schema.vue')['default']
|
||||
JsonToSqlDdl: typeof import('./src/tools/json-to-sql-ddl/json-to-sql-ddl.vue')['default']
|
||||
JsonToSqlInsert: typeof import('./src/tools/json-to-sql-insert/json-to-sql-insert.vue')['default']
|
||||
JsonToToml: typeof import('./src/tools/json-to-toml/json-to-toml.vue')['default']
|
||||
JsonToTs: typeof import('./src/tools/json-to-ts/json-to-ts.vue')['default']
|
||||
JsonToTypescript: typeof import('./src/tools/json-to-typescript/json-to-typescript.vue')['default']
|
||||
JsonToXml: typeof import('./src/tools/json-to-xml/json-to-xml.vue')['default']
|
||||
JsonToYaml: typeof import('./src/tools/json-to-yaml-converter/json-to-yaml.vue')['default']
|
||||
JsonViewer: typeof import('./src/tools/json-viewer/json-viewer.vue')['default']
|
||||
JsUnobfuscator: typeof import('./src/tools/js-unobfuscator/js-unobfuscator.vue')['default']
|
||||
JwtGenerator: typeof import('./src/tools/jwt-generator/jwt-generator.vue')['default']
|
||||
JwtParser: typeof import('./src/tools/jwt-parser/jwt-parser.vue')['default']
|
||||
K8sMemo: typeof import('./src/tools/k8s-memo/k8s-memo.vue')['default']
|
||||
'K8sMemo.content': typeof import('./src/tools/k8s-memo/k8s-memo.content.md')['default']
|
||||
KeycodeInfo: typeof import('./src/tools/keycode-info/keycode-info.vue')['default']
|
||||
LengthConverter: typeof import('./src/tools/length-converter/length-converter.vue')['default']
|
||||
LevenshteinCalculator: typeof import('./src/tools/levenshtein-calculator/levenshtein-calculator.vue')['default']
|
||||
ListComparer: typeof import('./src/tools/list-comparer/list-comparer.vue')['default']
|
||||
ListConverter: typeof import('./src/tools/list-converter/list-converter.vue')['default']
|
||||
LocaleSelector: typeof import('./src/modules/i18n/components/locale-selector.vue')['default']
|
||||
@@ -297,7 +274,6 @@ declare module '@vue/runtime-core' {
|
||||
MenuBar: typeof import('./src/tools/html-wysiwyg-editor/editor/menu-bar.vue')['default']
|
||||
MenuBarItem: typeof import('./src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue')['default']
|
||||
MenuIconItem: typeof import('./src/components/MenuIconItem.vue')['default']
|
||||
MenuItemTooltip: typeof import('./src/components/MenuItemTooltip.vue')['default']
|
||||
MenuLayout: typeof import('./src/components/MenuLayout.vue')['default']
|
||||
MermaidExporter: typeof import('./src/tools/mermaid-exporter/mermaid-exporter.vue')['default']
|
||||
MetaTagGenerator: typeof import('./src/tools/meta-tag-generator/meta-tag-generator.vue')['default']
|
||||
@@ -309,37 +285,39 @@ declare module '@vue/runtime-core' {
|
||||
MorseConverter: typeof import('./src/tools/morse-converter/morse-converter.vue')['default']
|
||||
MultiLinkDownloader: typeof import('./src/tools/multi-link-downloader/multi-link-downloader.vue')['default']
|
||||
MyIp: typeof import('./src/tools/my-ip/my-ip.vue')['default']
|
||||
NAlert: typeof import('naive-ui')['NAlert']
|
||||
NanoidGenerator: typeof import('./src/tools/nanoid-generator/nanoid-generator.vue')['default']
|
||||
NanoMemo: typeof import('./src/tools/nano-memo/nano-memo.vue')['default']
|
||||
'NanoMemo.content': typeof import('./src/tools/nano-memo/nano-memo.content.md')['default']
|
||||
NavbarButtons: typeof import('./src/components/NavbarButtons.vue')['default']
|
||||
NButton: typeof import('naive-ui')['NButton']
|
||||
NCard: typeof import('naive-ui')['NCard']
|
||||
NCheckbox: typeof import('naive-ui')['NCheckbox']
|
||||
NCheckboxGroup: typeof import('naive-ui')['NCheckboxGroup']
|
||||
NCode: typeof import('naive-ui')['NCode']
|
||||
NColorPicker: typeof import('naive-ui')['NColorPicker']
|
||||
NCollapseTransition: typeof import('naive-ui')['NCollapseTransition']
|
||||
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
|
||||
NDivider: typeof import('naive-ui')['NDivider']
|
||||
NDynamicTags: typeof import('naive-ui')['NDynamicTags']
|
||||
NEllipsis: typeof import('naive-ui')['NEllipsis']
|
||||
NForm: typeof import('naive-ui')['NForm']
|
||||
NFormItem: typeof import('naive-ui')['NFormItem']
|
||||
NginxFormatter: typeof import('./src/tools/nginx-formatter/nginx-formatter.vue')['default']
|
||||
NginxMemo: typeof import('./src/tools/nginx-memo/nginx-memo.vue')['default']
|
||||
'NginxMemo.content': typeof import('./src/tools/nginx-memo/nginx-memo.content.md')['default']
|
||||
NH1: typeof import('naive-ui')['NH1']
|
||||
NH3: typeof import('naive-ui')['NH3']
|
||||
NIcon: typeof import('naive-ui')['NIcon']
|
||||
NInput: typeof import('naive-ui')['NInput']
|
||||
NInputNumber: typeof import('naive-ui')['NInputNumber']
|
||||
NLayout: typeof import('naive-ui')['NLayout']
|
||||
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
|
||||
NMenu: typeof import('naive-ui')['NMenu']
|
||||
NP: typeof import('naive-ui')['NP']
|
||||
NRadio: typeof import('naive-ui')['NRadio']
|
||||
NRadioGroup: typeof import('naive-ui')['NRadioGroup']
|
||||
NScrollbar: typeof import('naive-ui')['NScrollbar']
|
||||
NSelect: typeof import('naive-ui')['NSelect']
|
||||
NSpace: typeof import('naive-ui')['NSpace']
|
||||
NTable: typeof import('naive-ui')['NTable']
|
||||
NTagGroup: typeof import('naive-ui')['NTagGroup']
|
||||
NSwitch: typeof import('naive-ui')['NSwitch']
|
||||
NText: typeof import('naive-ui')['NText']
|
||||
NTooltip: typeof import('naive-ui')['NTooltip']
|
||||
NumberInput: typeof import('./src/tools/pomodoro-timer/app/components/NumberInput.vue')['default']
|
||||
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
|
||||
@@ -359,7 +337,6 @@ declare module '@vue/runtime-core' {
|
||||
PdfLinearize: typeof import('./src/tools/pdf-linearize/pdf-linearize.vue')['default']
|
||||
PdfSignatureChecker: typeof import('./src/tools/pdf-signature-checker/pdf-signature-checker.vue')['default']
|
||||
PdfSignatureDetails: typeof import('./src/tools/pdf-signature-checker/components/pdf-signature-details.vue')['default']
|
||||
PdfTextExtractor: typeof import('./src/tools/pdf-text-extractor/pdf-text-extractor.vue')['default']
|
||||
PdfUnlock: typeof import('./src/tools/pdf-unlock/pdf-unlock.vue')['default']
|
||||
PercentageCalculator: typeof import('./src/tools/percentage-calculator/percentage-calculator.vue')['default']
|
||||
PgpEncryption: typeof import('./src/tools/pgp-encryption/pgp-encryption.vue')['default']
|
||||
@@ -377,11 +354,11 @@ declare module '@vue/runtime-core' {
|
||||
PressureConverter: typeof import('./src/tools/pressure-converter/pressure-converter.vue')['default']
|
||||
ProgressBar: typeof import('./src/tools/pomodoro-timer/app/components/ProgressBar.vue')['default']
|
||||
PropertiesConverter: typeof import('./src/tools/properties-converter/properties-converter.vue')['default']
|
||||
PropertiesToYaml: typeof import('./src/tools/properties-to-yaml/properties-to-yaml.vue')['default']
|
||||
PunycodeConverter: typeof import('./src/tools/punycode-converter/punycode-converter.vue')['default']
|
||||
QrCodeDecoder: typeof import('./src/tools/qr-code-decoder/qr-code-decoder.vue')['default']
|
||||
QrCodeGenerator: typeof import('./src/tools/qr-code-generator/qr-code-generator.vue')['default']
|
||||
QrContactInfoGenerator: typeof import('./src/tools/qr-contact-info-generator/qr-contact-info-generator.vue')['default']
|
||||
QuoteConverter: typeof import('./src/tools/quote-converter/quote-converter.vue')['default']
|
||||
RaidCalculator: typeof import('./src/tools/raid-calculator/raid-calculator.vue')['default']
|
||||
RandomPortGenerator: typeof import('./src/tools/random-port-generator/random-port-generator.vue')['default']
|
||||
RegexMemo: typeof import('./src/tools/regex-memo/regex-memo.vue')['default']
|
||||
@@ -413,15 +390,13 @@ declare module '@vue/runtime-core' {
|
||||
SoftwareLicenceCompatibility: typeof import('./src/tools/software-licence-compatibility/software-licence-compatibility.vue')['default']
|
||||
SpanCopyable: typeof import('./src/components/SpanCopyable.vue')['default']
|
||||
SpfDnsGenerator: typeof import('./src/tools/spf-dns-generator/spf-dns-generator.vue')['default']
|
||||
SpfGenerator: typeof import('./src/tools/spf-dns-generator/spf-generator.vue')['default']
|
||||
SplashScreen: typeof import('./src/tools/pomodoro-timer/app/views/SplashScreen.vue')['default']
|
||||
SqlMinifier: typeof import('./src/tools/sql-minifier/sql-minifier.vue')['default']
|
||||
SqlPrettify: typeof import('./src/tools/sql-prettify/sql-prettify.vue')['default']
|
||||
SslCertConverter: typeof import('./src/tools/ssl-cert-converter/ssl-cert-converter.vue')['default']
|
||||
StacktracePrettier: typeof import('./src/tools/stacktrace-prettier/stacktrace-prettier.vue')['default']
|
||||
StringEscaper: typeof import('./src/tools/string-escaper/string-escaper.vue')['default']
|
||||
StringObfuscator: typeof import('./src/tools/string-obfuscator/string-obfuscator.vue')['default']
|
||||
SvgPlaceholderGenerator: typeof import('./src/tools/svg-placeholder-generator/svg-placeholder-generator.vue')['default']
|
||||
SwaggerUiTester: typeof import('./src/tools/swagger-ui-tester/swagger-ui-tester.vue')['default']
|
||||
TcpdumpGenerator: typeof import('./src/tools/tcpdump-generator/tcpdump-generator.vue')['default']
|
||||
TemperatureConverter: typeof import('./src/tools/temperature-converter/temperature-converter.vue')['default']
|
||||
TextareaCopyable: typeof import('./src/components/TextareaCopyable.vue')['default']
|
||||
@@ -458,10 +433,7 @@ declare module '@vue/runtime-core' {
|
||||
UuidConverter: typeof import('./src/tools/uuid-converter/uuid-converter.vue')['default']
|
||||
UuidGenerator: typeof import('./src/tools/uuid-generator/uuid-generator.vue')['default']
|
||||
VatValidator: typeof import('./src/tools/vat-validator/vat-validator.vue')['default']
|
||||
VimMemo: typeof import('./src/tools/vim-memo/vim-memo.vue')['default']
|
||||
'VimMemo.content': typeof import('./src/tools/vim-memo/vim-memo.content.md')['default']
|
||||
VolumeConverter: typeof import('./src/tools/volume-converter/volume-converter.vue')['default']
|
||||
Watermarker: typeof import('./src/tools/watermarker/watermarker.vue')['default']
|
||||
WebsocketTester: typeof import('./src/tools/websocket-tester/websocket-tester.vue')['default']
|
||||
WeekNumberConverter: typeof import('./src/tools/week-number-converter/week-number-converter.vue')['default']
|
||||
WifiQrCodeGenerator: typeof import('./src/tools/wifi-qr-code-generator/wifi-qr-code-generator.vue')['default']
|
||||
@@ -474,8 +446,6 @@ declare module '@vue/runtime-core' {
|
||||
XpathTester: typeof import('./src/tools/xpath-tester/xpath-tester.vue')['default']
|
||||
XsltTester: typeof import('./src/tools/xslt-tester/xslt-tester.vue')['default']
|
||||
XVrSpamcauseDecoder: typeof import('./src/tools/x-vr-spamcause-decoder/x-vr-spamcause-decoder.vue')['default']
|
||||
YamlFlattenNestify: typeof import('./src/tools/yaml-flatten-nestify/yaml-flatten-nestify.vue')['default']
|
||||
YamlMerger: typeof import('./src/tools/yaml-merger/yaml-merger.vue')['default']
|
||||
YamlToJson: typeof import('./src/tools/yaml-to-json-converter/yaml-to-json.vue')['default']
|
||||
YamlToToml: typeof import('./src/tools/yaml-to-toml/yaml-to-toml.vue')['default']
|
||||
YamlViewer: typeof import('./src/tools/yaml-viewer/yaml-viewer.vue')['default']
|
||||
|
||||
+8
-128
@@ -1,9 +1,16 @@
|
||||
'404':
|
||||
notFound: 404 Nicht gefunden
|
||||
sorry: Entschuldigung, diese Seite scheint nicht zu existieren
|
||||
maybe: >-
|
||||
Vielleicht macht der Cache etwas Seltsames. Mit einem erzwungenen Neuladen
|
||||
versuchen?
|
||||
backHome: Zurück zur Startseite
|
||||
home:
|
||||
categories:
|
||||
newestTools: Neueste Tools
|
||||
favoriteTools: Deine Lieblingstools
|
||||
allTools: Alle Tools
|
||||
favoritesDndToolTip: Drag and Drop, um Favoriten neu zu ordnen
|
||||
favoritesDndToolTip: 'Ziehen und Ablegen, um Favoriten neu zu ordnen'
|
||||
subtitle: Praktische Tools für Entwickler
|
||||
toggleMenu: Menü umschalten
|
||||
home: Startseite
|
||||
@@ -65,13 +72,6 @@ about:
|
||||
funktioniert, melde bitte einen Fehler im
|
||||
[Issues-Bereich](https://github.com/sharevb/it-tools/issues/new/choose)
|
||||
im GitHub-Repository.
|
||||
404:
|
||||
notFound: 404 Nicht gefunden
|
||||
sorry: Entschuldigung, diese Seite scheint nicht zu existieren
|
||||
maybe: >-
|
||||
Vielleicht macht der Cache etwas Seltsames. Mit einem erzwungenen Neuladen
|
||||
versuchen?
|
||||
backHome: Zurück zur Startseite
|
||||
favoriteButton:
|
||||
remove: Aus Favoriten entfernen
|
||||
add: Zu Favoriten hinzufügen
|
||||
@@ -79,20 +79,6 @@ toolCard:
|
||||
new: Neu
|
||||
search:
|
||||
label: Suche
|
||||
placeholder: Tippe, um ein Tool oder einen Befehl zu suchen...
|
||||
textareaCopyable:
|
||||
copy: In die Zwischenablage kopieren
|
||||
copied: Kopiert!
|
||||
spanCopyable:
|
||||
copy: In die Zwischenablage kopieren
|
||||
copied: Kopiert!
|
||||
inputCopyable:
|
||||
copy: In die Zwischenablage kopieren
|
||||
copied: Kopiert!
|
||||
formatTransformer:
|
||||
input: Eingabe
|
||||
input-placeholder: Eingabe...
|
||||
output: Ausgabe
|
||||
tools:
|
||||
categories:
|
||||
favorite-tools: Deine Lieblingstools
|
||||
@@ -116,10 +102,6 @@ tools:
|
||||
description: >-
|
||||
Überwache die Dauer einer Sache. Im Grunde ein Chronometer mit einfachen
|
||||
Chronometerfunktionen.
|
||||
button:
|
||||
start: Start
|
||||
stop: Stopp
|
||||
reset: Zurücksetzen
|
||||
token-generator:
|
||||
title: Token-Generator
|
||||
description: >-
|
||||
@@ -319,13 +301,6 @@ tools:
|
||||
description: >-
|
||||
Generiere und downloade QR-Codes für eine URL oder einfach einen Text und
|
||||
passe die Hintergrund- und Vordergrundfarben an.
|
||||
text: 'Text:'
|
||||
placeholder: Dein Link oder Text...
|
||||
foreground-color: 'Vordergrundfarbe:'
|
||||
background-color: 'Hintergrundfarbe:'
|
||||
error-resistance: 'Fehlerresistenz:'
|
||||
button:
|
||||
download: QR-Code herunterladen
|
||||
wifi-qrcode-generator:
|
||||
title: WLAN-QR-Code-Generator
|
||||
description: >-
|
||||
@@ -454,11 +429,6 @@ tools:
|
||||
description: >-
|
||||
Informationen zu einem Text erhalten, wie die Anzahl der Zeichen, die
|
||||
Anzahl der Wörter, die Größe usw.
|
||||
characters: Anzahl Zeichen
|
||||
words: Anzahl Wörter
|
||||
lines: Anzahl Zeilen
|
||||
bytes: Bytegröße
|
||||
placeholder: Dein Text...
|
||||
text-to-nato-alphabet:
|
||||
title: Text zu NATO-Alphabet
|
||||
description: >-
|
||||
@@ -469,13 +439,6 @@ tools:
|
||||
description: >-
|
||||
Generiere einen Base64-Basic-Auth-Header aus einem Benutzernamen und einem
|
||||
Passwort.
|
||||
button:
|
||||
copy: Header kopieren
|
||||
copied: Header in die Zwischenablage kopiert
|
||||
password: Passwort
|
||||
username: Benutzername
|
||||
yourpassword: Dein Passwort...
|
||||
yourusername: Dein Benutzername...
|
||||
text-to-unicode:
|
||||
title: Text zu Unicode
|
||||
description: Parse und konvertiere Text in Unicode und umgekehrt.
|
||||
@@ -500,86 +463,3 @@ tools:
|
||||
text-to-binary:
|
||||
title: Text zu ASCII-Binär
|
||||
description: Konvertiere Text in seine ASCII-Binärrepräsentation und umgekehrt.
|
||||
|
||||
cli-command-editor:
|
||||
title: CLI-Befehlseditor
|
||||
description: Wandeln Sie CLI-Befehle mit Optionen in eine leicht bearbeitbare Form um und generieren Sie den Befehl mit Eingabewerten.
|
||||
command: Befehl
|
||||
placeholder: Befehl hier einfügen
|
||||
safelink-decoder:
|
||||
title: Outlook Safelink-Decoder
|
||||
description: Outlook Safelinks decodieren
|
||||
input: 'Eingabe einer Outlook Safelink-URL:'
|
||||
input-placeholder: Deine eingegebene Outlook Safelink-URL...
|
||||
output: 'Ausgabe der decodierten URL:'
|
||||
ascii-text-drawer:
|
||||
title: ASCII-Art-Text-Generator
|
||||
description: ASCII-Art-Text mit vielen Schriftarten und Stilen erstellen.
|
||||
text: 'Dein Text:'
|
||||
placeholder: Dein zu zeichnender Text
|
||||
font: 'Schriftart:'
|
||||
width: 'Breite:'
|
||||
loading: Schriftart wird geladen...
|
||||
error: Die aktuellen Einstellungen führten zu einem Fehler.
|
||||
output: 'ASCII-Art-Text:'
|
||||
json-to-xml:
|
||||
title: JSON zu XML
|
||||
description: JSON in XML konvertieren
|
||||
input: Dein JSON-Inhalt
|
||||
input-placeholder: Füge hier deinen JSON-Inhalt ein...
|
||||
output: Konvertiertes XML
|
||||
error: Bereitgestelltes JSON ist ungültig.
|
||||
xml-to-json:
|
||||
title: XML zu JSON
|
||||
description: XML in JSON konvertieren
|
||||
input: Dein XML-Inhalt
|
||||
input-placeholder: Füge hier deinen XML-Inhalt ein...
|
||||
output: Konvertiertes JSON
|
||||
error: Bereitgestelltes XML ist ungültig.
|
||||
email-normalizer:
|
||||
title: E-Mail-Normalisierung
|
||||
description: >-
|
||||
Vereinheitlichen von E-Mail-Adressen auf ein Standardformat für einen
|
||||
einfacheren Vergleich. Nützlich für Deduplizierung und Datenbereinigung.
|
||||
input: 'Unbearbeitete E-Mails zur Normalisierung:'
|
||||
input-placeholder: Gib hier deine E-Mails ein (eine pro Zeile)...
|
||||
output: 'Normalisierte E-Mails:'
|
||||
output-placeholder: Hier werden normalisierte E-Mails angezeigt...
|
||||
button:
|
||||
clear: E-Mails leeren
|
||||
copy: Kopiere normalisierte E-Mails
|
||||
copied: Normalisierte E-Mails in die Zwischenablage kopiert
|
||||
markdown-to-html:
|
||||
title: Markdown zu HTML
|
||||
description: Markdown in HTML konvertieren und (als PDF) ausdrucken
|
||||
markdown: 'Dein zu konvertierender Markdown-Inhalt:'
|
||||
markdownInput: Dein Markdown-Inhalt...
|
||||
html: 'HTML-Ausgabe:'
|
||||
button:
|
||||
print: Als PDF drucken
|
||||
regex-memo:
|
||||
title: Regex-Spickzettel
|
||||
description: Spickzettel für Javascript Regex/Regulärer Ausdruck
|
||||
regex-tester:
|
||||
title: Regex-Tester
|
||||
description: Teste deine regulären Ausdrücke mit Beispieltext.
|
||||
regex: Regex
|
||||
regex-input: 'Regex zum Testen:'
|
||||
regex-input-placeholder: Eingabe des zu testenden regulären Ausdrucks
|
||||
link: Siehe Spickzettel für reguläre Ausdrücke
|
||||
text-input: 'Zu prüfender Text:'
|
||||
text-input-placeholder: Eingabe des zu prüfenden Texts
|
||||
matches: Treffer
|
||||
text-index: Index im Text
|
||||
value: Wert
|
||||
captures: Erfassungen
|
||||
groups: Gruppen
|
||||
sample: Beispiel für passenden Text
|
||||
diagram: Regex-Diagramm
|
||||
global: Globale Suche.
|
||||
ignoreCase: Suche ohne Berücksichtigung der Groß-/Kleinschreibung.
|
||||
multiline: Ermöglicht die Übereinstimmung von ^ und $ neben Zeilenumbruchzeichen.
|
||||
dotAll: Lässt . als Treffer für Zeilenumbruchzeichen zu.
|
||||
unicode: Unicode; behandelt ein Muster als eine Folge von Unicode-Codepunkten.
|
||||
unicodeSets: Ein Upgrade zum u-Modus mit mehr Unicode-Funktionen.
|
||||
no-match: Kein Treffer
|
||||
+252
-5876
File diff suppressed because it is too large.
Load diff
@@ -78,9 +78,3 @@ tools:
|
||||
csv-to-json:
|
||||
title: CSV a JSON
|
||||
description: Convierte CSV a JSON con detección automática de cabeceras.
|
||||
|
||||
cli-command-editor:
|
||||
title: editor de comandos CLI
|
||||
description: Convierta comandos CLI con opciones en un formato fácilmente editable y genere el comando resultante con valores de entrada.
|
||||
command: Dominio
|
||||
placeholder: Pegar comando aquí
|
||||
+1
-7
@@ -87,10 +87,4 @@ tools:
|
||||
|
||||
json-sort-master:
|
||||
title: Maître de tri JSON
|
||||
description: Triez votre JSON par clés et valeurs.
|
||||
|
||||
cli-command-editor:
|
||||
title: Éditeur de commandes CLI
|
||||
description: Convertissez les commandes CLI avec des options dans un format facilement modifiable et générez la commande résultante avec des valeurs d'entrée.
|
||||
command: Commande
|
||||
placeholder: Coller la commande ici
|
||||
description: Triez votre JSON par clés et valeurs.
|
||||
-1352
File diff suppressed because it is too large.
Load diff
@@ -392,9 +392,3 @@ tools:
|
||||
text-to-binary:
|
||||
title: Tekst til ASCII binært
|
||||
description: Konverter tekst til sin ASCII binære representasjon og visa-versa.
|
||||
|
||||
cli-command-editor:
|
||||
title: CLI kommando editor
|
||||
description: Konverter CLI-kommandoer med alternativer til et enkelt redigerbart format og generer den resulterende kommandoen med inndataverdier.
|
||||
command: Kommando
|
||||
placeholder: Lim inn kommando her
|
||||
@@ -85,9 +85,3 @@ tools:
|
||||
description: Odtwórz i wizualizuj dźwięk z Twojego mikrofonu, z dodaną jedną sekundą opóźnienia
|
||||
start-button-text: Odtwarzaj mikrofonu
|
||||
stop-button-text: Zatrzymaj odtwarzanie mikrofonu
|
||||
|
||||
cli-command-editor:
|
||||
title: Edytor poleceń CLI
|
||||
description: Konwertuj polecenia CLI z opcjami do postaci, którą można łatwo edytować, i generuj wynikowe polecenia z wartościami wejściowymi.
|
||||
command: Rozkaz
|
||||
placeholder: Wklej tutaj polecenie
|
||||
@@ -78,9 +78,3 @@ tools:
|
||||
json-sort-master:
|
||||
title: 'Mestre de classificação JSON'
|
||||
description: 'Ordene seu JSON por chaves e valores.'
|
||||
|
||||
cli-command-editor:
|
||||
title: Editor de comando CLI
|
||||
description: Converta comandos CLI com opções em um formato facilmente editável e gere o comando resultante com valores de entrada.
|
||||
command: Comando
|
||||
placeholder: Cole o comando aqui
|
||||
+3
-799
@@ -37,13 +37,13 @@ about:
|
||||
|
||||
## Технологии
|
||||
|
||||
IT Tools выполнен на Vue.js (Vue 3) с использованием библиотеки компонентов Naive UI и развертывается с помощью Vercel. В некоторых инструментах используются сторонние открытые библиотеки, полный список которых вы можете найти в файле [package.json](https://github.com/sharevb/it-tools/blob/main/package.json) репозитория.
|
||||
IT Tools выполнен на Vue.js (Vue 3) с использованием библиотеки компонентов Naive UI и развертывается с помощью Vercel. В некоторых инструментах используются сторонние открытые библиотеки, полный список которых вы можете найти в файле [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) репозитория.
|
||||
|
||||
## Нашли баг? Отсутствует инструмент?
|
||||
|
||||
Если вам нужен инструмент, которого пока нет здесь, и вы считаете, что он может быть полезным, вы можете подать запрос на добавление функции в [разделе проблем](https://github.com/sharevb/it-tools/issues/new/choose) в репозитории GitHub.
|
||||
Если вам нужен инструмент, которого пока нет здесь, и вы считаете, что он может быть полезным, вы можете подать запрос на добавление функции в [разделе проблем](https://github.com/CorentinTh/it-tools/issues/new/choose) в репозитории GitHub.
|
||||
|
||||
А если вы нашли баг или что-то не работает, как ожидалось, пожалуйста, подайте отчет о баге в [разделе проблем](https://github.com/sharevb/it-tools/issues/new/choose) в репозитории GitHub.
|
||||
А если вы нашли баг или что-то не работает, как ожидалось, пожалуйста, подайте отчет о баге в [разделе проблем](https://github.com/CorentinTh/it-tools/issues/new/choose) в репозитории GitHub.
|
||||
|
||||
404:
|
||||
notFound: '404 Страница не найдена'
|
||||
@@ -391,799 +391,3 @@ tools:
|
||||
text-to-binary:
|
||||
title: Текст в двоичный ASCII
|
||||
description: Конвертируйте текст в его двоичное представление ASCII и наоборот.
|
||||
|
||||
csv-to-json:
|
||||
title: CSV в JSON
|
||||
description: Преобразуйте CSV в JSON с автоматическим обнаружением заголовков.
|
||||
|
||||
json-to-javascript:
|
||||
title: JSON в JS
|
||||
description: Просто конвертируйте JSON в объект JavaScript с помощью этого онлайн-конвертера.
|
||||
|
||||
javascript-to-json:
|
||||
title: JS в JSON
|
||||
description: Просто конвертируйте объект JavaScript в JSON с помощью этого онлайн-конвертера.
|
||||
|
||||
mic-tester:
|
||||
title: Тестер микрофона
|
||||
description: Воспроизводите и визуализируйте звук с вашего микрофона с добавленной задержкой в одну секунду.
|
||||
start-button-text: Начать воспроизведение микрофона
|
||||
stop-button-text: Остановить воспроизведение микрофона
|
||||
|
||||
qr-contact-info-generator:
|
||||
title: Генератор QR-кодов для контактов
|
||||
description: Генерируйте и загружайте QR-коды для контактной информации (vCard) и настраивайте цвета фона и переднего плана.
|
||||
|
||||
json-sort-master:
|
||||
title: Мастер сортировки JSON
|
||||
description: Сортируйте ваш JSON по ключам и значениям.
|
||||
|
||||
json-string-converter:
|
||||
title: Конвертер строк JSON
|
||||
description: Преобразуйте ваш текст или объекты JavaScript в строковый формат JSON и наоборот.
|
||||
|
||||
floating-point-converter:
|
||||
title: Конвертер чисел с плавающей точкой
|
||||
description: Преобразуйте десятичное число в двоичное число с плавающей точкой IEEE 754 или наоборот.
|
||||
|
||||
nanoid-generator:
|
||||
title: Генератор NanoID
|
||||
description: Генерируйте случайные, уникальные и удобные для URL идентификаторы для ваших приложений.
|
||||
uppercase: Заглавные буквы
|
||||
lowercase: Строчные буквы
|
||||
numbers: Числа
|
||||
symbols: Символы
|
||||
excludeLookalikes: Исключить похожие символы
|
||||
length: Длина
|
||||
quantity: Количество
|
||||
copied: NanoID скопирован в буфер обмена
|
||||
button:
|
||||
copy: Копировать
|
||||
refresh: Обновить
|
||||
|
||||
image-resizer:
|
||||
title: Изменение размера изображения
|
||||
description: Изменяйте ширину и высоту изображения, предварительно просматривайте и загружайте его в нужном формате.
|
||||
|
||||
multi-link-downloader:
|
||||
title: Множественный загрузчик ссылок
|
||||
description: Асинхронно загружайте файлы по нескольким ссылкам в zip-архив, а одиночные ссылки загружайте напрямую. (Требуется подключение к интернету)
|
||||
|
||||
unicode-to-java-entities:
|
||||
title: Конвертер символов Unicode в Java-сущности
|
||||
description: Конвертируйте символы Unicode в Java-сущности и наоборот.
|
||||
|
||||
sip-auth:
|
||||
password: SIP пароль
|
||||
password-tips: Введите пароль...
|
||||
message: SIP сообщение
|
||||
message-tips: Вставьте ваше SIP сообщение сюда...
|
||||
result: Результат
|
||||
sucess: Успех
|
||||
failure: Ошибка
|
||||
|
||||
uuid-converter:
|
||||
title: Конвертер UUID
|
||||
description: Конвертируйте UUID с дефисами и без них в другие общие SQL нотации и обратно.
|
||||
|
||||
uuid: UUID
|
||||
uuidhexupper: HEX нотация (заглавные)
|
||||
uuidhexlower: HEX нотация (строчные)
|
||||
uuidversion: RFC версия
|
||||
input:
|
||||
label: Ваш ввод
|
||||
placeholder: Ваш UUID с/без дефисов
|
||||
|
||||
ad-ldap-searcher:
|
||||
title: Поиск свойств ActiveDirectory LDAP
|
||||
description: Поиск в сопоставлении свойств LDAP и интерфейса ActiveDirectory
|
||||
|
||||
ai-prompt-splitter:
|
||||
title: Разделитель подсказок ИИ
|
||||
description: Разделите длинный документ на несколько подсказок для чата (например, ChatGPT)
|
||||
|
||||
angle-converter:
|
||||
title: Конвертер углов
|
||||
description: Конвертируйте значения между единицами измерения углов
|
||||
|
||||
ansible-vault-crypt-decrypt:
|
||||
title: Шифрование/дешифрование Ansible Vault
|
||||
description: Шифруйте и дешифруйте секреты Ansible Vault
|
||||
|
||||
api-tester:
|
||||
title: Тестер API
|
||||
description: HTTP API тестер
|
||||
|
||||
area-converter:
|
||||
title: Конвертер единиц площади
|
||||
description: Конвертируйте значения между единицами измерения площади
|
||||
|
||||
ascii-text-drawer:
|
||||
title: Рисователь ASCII текста
|
||||
description: Создавайте ASCII-арт текст с различными шрифтами и стилями
|
||||
|
||||
aspect-ratio-calculator:
|
||||
title: Калькулятор соотношения сторон
|
||||
description: Используйте этот калькулятор для проверки размеров при изменении размера изображений
|
||||
|
||||
barcode-generator:
|
||||
title: Генератор штрих-кодов
|
||||
description: Генератор штрих-кодов
|
||||
|
||||
barcode-reader:
|
||||
title: Чтение штрих-кодов
|
||||
description: Чтение штрих-кодов
|
||||
|
||||
base64-hex-converter:
|
||||
title: Конвертер Base64 Hex массива
|
||||
description: Просто кодируйте и декодируйте Hex массив в его представление Base64
|
||||
|
||||
bounce-parser:
|
||||
title: Парсер возвратов электронной почты
|
||||
description: Разбирайте SMTP возвраты электронной почты
|
||||
|
||||
card-picker:
|
||||
title: Выбор карт
|
||||
description: Генерируйте колоду игральных карт
|
||||
|
||||
certificate-key-parser:
|
||||
title: Парсер сертификатов/ключей
|
||||
description: Разбирайте ключи и сертификаты
|
||||
|
||||
cidr-in-cidr:
|
||||
title: IPv4-6/IPRange/CIDR в IPRange/CIDR/IPMask
|
||||
description: Укажите, находится ли данный IPv4-6/диапазон/CIDR/маска в диапазоне подсети
|
||||
|
||||
code-highlighter:
|
||||
title: Подсветка кода/скриптов
|
||||
description: Подсвечивайте фрагменты программного кода
|
||||
|
||||
coin-flipper:
|
||||
title: Монетка
|
||||
description: Подбросьте монетку
|
||||
|
||||
color-contrast-checker:
|
||||
title: Проверка контраста цветов
|
||||
description: Проверьте уровень контраста WCAG между двумя цветами
|
||||
|
||||
color-wheel:
|
||||
title: Цветовой круг
|
||||
description: Выберите цветовую палитру/тему, используя круг и режим
|
||||
|
||||
common-regex-memo:
|
||||
title: Шпаргалка по регулярным выражениям
|
||||
description: Шпаргалка по общим шаблонам регулярных выражений
|
||||
|
||||
countdown:
|
||||
title: Таймер обратного отсчета
|
||||
description: Таймер обратного отсчета с сигналом по истечении времени
|
||||
|
||||
crc-calculator:
|
||||
title: Калькулятор CRC
|
||||
description: Вычисляйте CRC текста или файла (CRC1, CRC8, CRC16, CRC32 и другие)
|
||||
|
||||
csr-generator:
|
||||
title: Генератор CSR
|
||||
description: Генератор запросов на подпись сертификата (PEM формат)
|
||||
|
||||
css-prettifier:
|
||||
title: Форматирование CSS
|
||||
description: Форматируйте CSS-код
|
||||
|
||||
css-selectors-memo:
|
||||
title: Шпаргалка по CSS-селекторам
|
||||
description: Шпаргалка по синтаксису CSS-селекторов
|
||||
|
||||
css-xpath-converter:
|
||||
title: Конвертер CSS XPath
|
||||
description: Конвертируйте CSS-селекторы в XPath-выражения и обратно
|
||||
|
||||
curl-converter:
|
||||
title: Конвертер Curl
|
||||
description: Генерируйте версии команд curl для популярных языков программирования
|
||||
|
||||
currency-converter:
|
||||
title: Конвертер валют
|
||||
description: Конвертируйте значения валют с использованием https://github.com/fawazahmed0/exchange-api
|
||||
|
||||
data-storage-unit-converter:
|
||||
title: Конвертер единиц хранения данных
|
||||
description: Конвертируйте единицы хранения или передачи данных (байты, килобайты, мегабайты и т.д.)
|
||||
|
||||
data-transfer-rate-converter:
|
||||
title: Калькулятор скорости передачи данных
|
||||
description: Рассчитывайте время передачи данных, скорость и объем данных
|
||||
|
||||
date-duration-calculator:
|
||||
title: Калькулятор дат и длительности
|
||||
description: Добавляйте или вычитайте длительности из конкретной даты
|
||||
|
||||
days-calculator:
|
||||
title: Калькулятор дней
|
||||
description: Рассчитывайте интервал дней, праздники, разницу, рабочее время
|
||||
|
||||
dice-roller:
|
||||
title: Бросок кубика
|
||||
description: Бросайте кубики для RPG, используя нотацию кубиков
|
||||
|
||||
dmarc-report-analyzer:
|
||||
title: Анализатор отчетов DMARC
|
||||
description: Читайте и отображайте XML-отчеты DMARC
|
||||
|
||||
dns-queries:
|
||||
title: DNS-запросы
|
||||
description: Выполняйте DNS-запросы (через HTTPS)
|
||||
|
||||
docker-compose-converter:
|
||||
title: Конвертер Docker Compose
|
||||
description: Конвертируйте файлы Docker Compose между версиями V1, 2.x, 3.x или CommonSpec
|
||||
|
||||
docker-compose-to-docker-run-converter:
|
||||
title: Конвертер Docker Compose в Docker run
|
||||
description: Преобразуйте файлы Docker Compose в команды docker run!
|
||||
|
||||
docker-compose-to-kubernetes:
|
||||
title: Docker Compose в Kubernetes
|
||||
description: Преобразуйте Docker Compose в манифесты Kubernetes
|
||||
|
||||
docker-compose-validator:
|
||||
title: Валидатор Docker Compose
|
||||
description: Проверяйте файлы Docker Compose на соответствие схеме CommonSpec
|
||||
|
||||
docker-memo:
|
||||
title: Шпаргалка Docker
|
||||
description: Шпаргалка по командам Docker
|
||||
|
||||
docker-run-to-kubernetes:
|
||||
title: Docker run в Kubernetes
|
||||
description: Преобразуйте команды docker run в манифесты Kubernetes
|
||||
|
||||
duplicate-line-finder:
|
||||
title: Поиск дублированных строк
|
||||
description: Найдите и перечислите дублированные строки
|
||||
|
||||
duration-calculator:
|
||||
title: Калькулятор длительности
|
||||
description: Рассчитывайте и анализируйте длительности
|
||||
|
||||
ecdsa-key-pair-generator:
|
||||
title: Генератор ключей ECDSA
|
||||
description: Генерируйте новые случайные приватные и публичные ключи ECDSA (с паролем или без)
|
||||
|
||||
ed25519-key-pair-generator:
|
||||
title: Генератор ключей Ed25519
|
||||
description: Генерируйте новые случайные приватные и публичные ключи Ed25519 (с паролем или без)
|
||||
|
||||
email-normalizer:
|
||||
title: Нормализатор email
|
||||
description: Нормализуйте email-адреса для упрощения сравнения. Полезно для удаления дубликатов и очистки данных
|
||||
|
||||
email-parser:
|
||||
title: Парсер email
|
||||
description: Разбирайте и извлекайте информацию из сырого содержимого email
|
||||
|
||||
energy-computer:
|
||||
title: Калькулятор потребления энергии
|
||||
description: Рассчитывайте потребление энергии и расходы
|
||||
|
||||
energy-converter:
|
||||
title: Конвертер единиц энергии
|
||||
description: Конвертируйте значения между единицами энергии
|
||||
|
||||
file-hasher:
|
||||
title: Хеширование файлов
|
||||
description: Вычисляйте хеш файлов
|
||||
|
||||
file-type:
|
||||
title: Определение типа файла
|
||||
description: Определяйте тип файла
|
||||
|
||||
folder-structure-diagram:
|
||||
title: Диаграмма структуры папок
|
||||
description: Утилита для генерации ASCII-диаграмм структуры папок
|
||||
|
||||
force-converter:
|
||||
title: Конвертер единиц силы
|
||||
description: Конвертируйте значения между единицами силы
|
||||
|
||||
geo-distance-calculator:
|
||||
title: Калькулятор географического расстояния
|
||||
description: Рассчитывайте расстояние между двумя географическими точками (и отображайте информацию о текущем местоположении пользователя)
|
||||
|
||||
gpt-token-estimator:
|
||||
title: Оценщик токенов GPT
|
||||
description: Оценщик токенов OpenAI GPT
|
||||
|
||||
gzip-converter:
|
||||
title: Конвертер GZip/Deflate
|
||||
description: Конвертируйте текст в/из формата gzip/deflate
|
||||
|
||||
har-sanitizer:
|
||||
title: Санитайзер HAR
|
||||
description: Очистка файлов HAR
|
||||
|
||||
hdd-calculator:
|
||||
title: Калькулятор HDD
|
||||
description: Производители устройств хранения данных указывают емкость в десятичной форме (например, GB), в то время как операционные системы используют двоичную форму (GiB). Этот инструмент конвертирует емкость из десятичной формы в различные двоичные формы.
|
||||
|
||||
heic-converter:
|
||||
title: Конвертер HEIC
|
||||
description: Конвертируйте HEIC в JPEG или PNG
|
||||
|
||||
hex-converter:
|
||||
title: Конвертер Hex
|
||||
description: Кодируйте и декодируйте Hex буферы в числа (биты, порядок байтов, знак или плавающая точка) и структуры
|
||||
|
||||
hex-file-converter:
|
||||
title: Конвертер Hex файлов
|
||||
description: Конвертируйте между файлами и их шестнадцатеричным представлением
|
||||
|
||||
html-cleaner:
|
||||
title: Очистка HTML
|
||||
description: Очистите HTML-код
|
||||
|
||||
html-prettifier:
|
||||
title: Форматирование HTML
|
||||
description: Форматируйте HTML-код
|
||||
|
||||
html-to-markdown:
|
||||
title: HTML в Markdown
|
||||
description: Конвертируйте HTML (например, из буфера обмена) в Markdown
|
||||
|
||||
htpasswd-generator:
|
||||
title: Генератор Htpasswd/Htaccess
|
||||
description: Генератор пользователей/паролей для htpasswd/htaccess
|
||||
|
||||
ical-generator:
|
||||
title: Генератор ICAL
|
||||
description: Генерируйте ICAL/ICS файлы из информации о событиях
|
||||
|
||||
ical-merger:
|
||||
title: Объединитель iCal
|
||||
description: Объединяйте несколько iCal файлов в один
|
||||
|
||||
ical-parser:
|
||||
title: Парсер ICAL файлов
|
||||
description: Разбирайте ICAL/ICS файлы для отображения событий
|
||||
|
||||
ico-converter:
|
||||
title: Конвертер ICO/PNG
|
||||
description: Конвертируйте из PNG/JPEG в ICO и обратно
|
||||
|
||||
ies-lighting-guidelines:
|
||||
title: Рекомендации по освещению IES
|
||||
description: Поиск в рекомендациях по освещению Illuminating Engineering Society (IES)
|
||||
|
||||
illuminance-converter:
|
||||
title: Конвертер освещенности
|
||||
description: Конвертируйте единицы освещенности (люксы, фут-канделы, ноксы, фотоны, пламя)
|
||||
|
||||
image-converter:
|
||||
title: Конвертер форматов изображений
|
||||
description: Конвертируйте изображения из одного формата в другой
|
||||
|
||||
image-exif-reader:
|
||||
title: Чтение EXIF/метаданных изображений
|
||||
description: Читайте EXIF, IPTC, XMP, GPS и другие метаданные, качество JPEG и другую информацию из файлов изображений
|
||||
|
||||
image-to-ascii-art:
|
||||
title: Изображение в ASCII-арт
|
||||
description: Генератор ASCII-арта из изображений
|
||||
|
||||
image-to-css:
|
||||
title: Изображение в CSS
|
||||
description: Конвертируйте изображение в CSS (url, фон и т.д.)
|
||||
|
||||
integers-to-ip:
|
||||
title: Целые числа в IPv4/IPv6
|
||||
description: Конвертируйте целые числа в IP-адреса
|
||||
|
||||
ip-cidr-to-range:
|
||||
title: IPv4/6 CIDR в диапазон IP
|
||||
description: Рассчитывайте диапазон IP из CIDR (IPv4/6)
|
||||
|
||||
ip-geo-location:
|
||||
title: Геолокация IP
|
||||
description: Получайте информацию о местоположении IPv4/6 адреса или домена
|
||||
|
||||
ip-include-exclude:
|
||||
title: Исключение подсетей IP
|
||||
description: Исключайте запрещенные диапазоны/маски/CIDR из разрешенных диапазонов/масок/CIDR
|
||||
|
||||
ip-range-to-cidr:
|
||||
title: Диапазон IPv4/6 в CIDR
|
||||
description: Рассчитывайте CIDR из диапазона IP (IPv4/6)
|
||||
|
||||
ipv6-address-converter:
|
||||
title: Конвертер IPv6 адресов
|
||||
description: Конвертируйте IP-адреса в десятичное, двоичное, шестнадцатеричное представление и получайте информацию
|
||||
|
||||
ipv6-subnet-calculator:
|
||||
title: Калькулятор подсетей IPv6
|
||||
description: Разбирайте ваши блоки CIDR IPv6 и получайте всю необходимую информацию о вашей подсети
|
||||
|
||||
isbn-validator-and-parser:
|
||||
title: Валидатор и парсер ISBN
|
||||
description: Разбирайте, проверяйте, форматируйте и получайте информацию об ISBN
|
||||
|
||||
iso-3166-searcher:
|
||||
title: Поиск кодов стран ISO 3166
|
||||
description: Поиск кодов стран (ISO 3166) и информации о них
|
||||
|
||||
javascript-prettifier:
|
||||
title: Форматирование JavaScript
|
||||
description: Форматируйте JavaScript-код
|
||||
|
||||
jq-memo:
|
||||
title: Шпаргалка JQ
|
||||
description: Шпаргалка по командам JQ
|
||||
|
||||
jq-tester:
|
||||
title: Тестер JQ/JSONPath
|
||||
description: Тестируйте выражения JQ/JSONPath на JSON-контенте
|
||||
|
||||
js-unobfuscator:
|
||||
title: Деобфускатор JavaScript
|
||||
description: Инструмент для обратной разработки JavaScript. Деобфусцирует, деминифицирует и распаковывает код, чтобы максимально приблизить его к исходному.
|
||||
|
||||
json-editor:
|
||||
title: Редактор JSON
|
||||
description: Редактируйте содержимое JSON
|
||||
|
||||
json-escaper:
|
||||
title: Экранирование/разэкранирование JSON
|
||||
description: Экранируйте и разэкранируйте строки JSON
|
||||
|
||||
json-linter:
|
||||
title: Линтер JSON
|
||||
description: Проверяйте и линтуйте содержимое JSON
|
||||
|
||||
json-size-analyzer:
|
||||
title: Анализатор размера JSON
|
||||
description: Измеряйте относительный вес узлов JSON
|
||||
|
||||
json-to-csharp:
|
||||
title: JSON в C#
|
||||
description: Конвертируйте данные JSON в определение типа C#
|
||||
|
||||
json-to-go:
|
||||
title: JSON в Go
|
||||
description: Конвертируйте JSON в структуру Go
|
||||
|
||||
json-to-java:
|
||||
title: JSON в Java
|
||||
description: Конвертируйте JSON в сущности Java
|
||||
|
||||
json-to-php-array:
|
||||
title: JSON в PHP-массив
|
||||
description: Конвертируйте JSON в PHP-массив
|
||||
|
||||
json-to-schema:
|
||||
title: JSON в схему
|
||||
description: Конвертируйте данные JSON в JSON Schema, MySQL DDL, Mongoose Schema, Google BigQuery Schema или ClickHouse Table Schema
|
||||
|
||||
json-to-xml:
|
||||
title: JSON в XML
|
||||
description: Конвертируйте JSON в XML
|
||||
|
||||
jsonpath-memo:
|
||||
title: Шпаргалка по JSONPath
|
||||
description: Шпаргалка по синтаксису JSONPath
|
||||
|
||||
jwt-generator:
|
||||
title: Генератор JWT
|
||||
description: Генератор и редактор токенов JWT
|
||||
|
||||
length-converter:
|
||||
title: Конвертер единиц длины
|
||||
description: Конвертируйте значения между единицами длины
|
||||
|
||||
list-comparer:
|
||||
title: Сравнение списков
|
||||
description: Сравнивайте элементы двух списков
|
||||
|
||||
luhn-validator:
|
||||
title: Валидатор алгоритма Луна
|
||||
description: Проверяйте и генерируйте ключи для идентификаторов, валидируемых алгоритмом Луна
|
||||
|
||||
mac-address-converter:
|
||||
title: Конвертер MAC-адресов
|
||||
description: Изменяйте формат MAC-адреса и выбирайте между различными форматами (EUI-48, EUI-64, IPv6)
|
||||
|
||||
many-units-converter:
|
||||
title: Конвертер различных единиц
|
||||
description: Конвертируйте все виды единиц измерения
|
||||
|
||||
markdown-cheatsheet:
|
||||
title: Шпаргалка по Markdown
|
||||
description: Шпаргалка по Markdown
|
||||
|
||||
markdown-editor:
|
||||
title: Редактор Markdown
|
||||
description: Простой редактор Markdown
|
||||
|
||||
markdown-to-html:
|
||||
title: Markdown в HTML
|
||||
description: Конвертируйте Markdown в HTML и позволяйте печатать (в PDF)
|
||||
|
||||
markdown-toc-generator:
|
||||
title: Генератор оглавления Markdown
|
||||
description: Генерируйте оглавление из файла/содержимого Markdown
|
||||
|
||||
mass-converter:
|
||||
title: Конвертер единиц массы
|
||||
description: Конвертируйте значения между единицами массы
|
||||
|
||||
math-formats-converter:
|
||||
title: Конвертер математических форматов
|
||||
description: Конвертируйте математические выражения между форматами
|
||||
|
||||
math-ocr:
|
||||
title: Математический OCR
|
||||
description: Конвертируйте изображения формул в Latex
|
||||
|
||||
mermaid-exporter:
|
||||
title: Экспортер Mermaid
|
||||
description: Конвертируйте Markdown (Mermaid) в изображение и экспортируйте в PNG, JPG и SVG
|
||||
|
||||
mime-converter:
|
||||
title: Конвертер MIME-кодировки
|
||||
description: Конвертируйте из/в MIME-кодировку (Mail Subject)
|
||||
|
||||
mongo-objectid-converter:
|
||||
title: Конвертер MongoDB ObjectId
|
||||
description: Конвертируйте между MongoDB ObjectId и внутренней временной меткой
|
||||
|
||||
morse-converter:
|
||||
title: Конвертер азбуки Морзе
|
||||
description: Кодируйте/декодируйте в азбуку Морзе
|
||||
|
||||
my-ip:
|
||||
title: Мой IP-адрес
|
||||
description: Узнайте ваш клиентский IP-адрес (IPv4/6) с использованием https://www.ipify.org/
|
||||
|
||||
nano-memo:
|
||||
title: Шпаргалка Nano
|
||||
description: Шпаргалка по редактору Nano
|
||||
|
||||
nginx-formatter:
|
||||
title: Форматирование Nginx
|
||||
description: Форматируйте/украшайте конфигурационные файлы Nginx
|
||||
|
||||
ocr-image:
|
||||
title: OCR изображений и PDF
|
||||
description: Выполняйте OCR (Tesseract) на изображениях или PDF
|
||||
|
||||
option43-generator:
|
||||
title: Генератор Option43
|
||||
description: Генерируйте конфигурацию DHCP Option43 для WiFi
|
||||
|
||||
outlook-parser:
|
||||
title: Парсер Outlook MSG
|
||||
description: Разбирайте файлы Outlook MSG
|
||||
|
||||
parquets-reader:
|
||||
title: Чтение файлов Parquet
|
||||
description: Читайте файлы Parquet как массивы объектов JSON
|
||||
|
||||
passphrase-generator:
|
||||
title: Генератор паролей
|
||||
description: Генерируйте случайные запоминаемые пароли
|
||||
|
||||
paste-as-markdown:
|
||||
title: Вставить как Markdown
|
||||
description: Вставляйте ячейки/таблицы и ссылки из содержимого буфера обмена как Markdown
|
||||
|
||||
pdf-encrypt:
|
||||
title: Шифрование PDF
|
||||
description: Шифруйте и добавляйте защиту к PDF-файлу
|
||||
|
||||
pdf-linearize:
|
||||
title: Линеаризация PDF/FastWeb
|
||||
description: Создайте линеаризованную версию PDF (преобразуйте в FastWeb)
|
||||
|
||||
pdf-unlock:
|
||||
title: Расшифровка и разблокировка PDF
|
||||
description: Расшифруйте PDF и снимите ограничения (удалите разрешения безопасности)
|
||||
|
||||
pgp-encryption:
|
||||
title: Шифрование PGP
|
||||
description: Шифруйте и дешифруйте текст с использованием PGP-ключей
|
||||
|
||||
pgp-key-pair-generator:
|
||||
title: Генератор PGP-ключей
|
||||
description: Генерируйте новые случайные приватные и публичные PGP-ключи (с паролем или без)
|
||||
|
||||
php-array-to-json:
|
||||
title: PHP-массив в JSON
|
||||
description: Конвертируйте PHP-массив в JSON
|
||||
|
||||
pin-code-generator:
|
||||
title: Генератор PIN-кодов
|
||||
description: Генерируйте уникальные PIN-коды (цифры)
|
||||
|
||||
pomodoro-timer:
|
||||
title: Таймер Pomodoro
|
||||
description: Базовый таймер Pomodoro
|
||||
|
||||
port-numbers:
|
||||
title: Номера портов
|
||||
description: Найдите назначенное использование заданного порта и протокола
|
||||
|
||||
potrace:
|
||||
title: Изображение в SVG (potrace)
|
||||
description: Преобразуйте растровое изображение в векторный SVG
|
||||
|
||||
power-converter:
|
||||
title: Конвертер мощности
|
||||
description: Конвертируйте значения между единицами мощности
|
||||
|
||||
pressure-converter:
|
||||
title: Конвертер давления
|
||||
description: Конвертируйте значения между единицами давления
|
||||
|
||||
properties-to-yaml:
|
||||
title: Properties в YAML
|
||||
description: Конвертируйте содержимое Java .properties в YAML
|
||||
|
||||
raid-calculator:
|
||||
title: Калькулятор RAID
|
||||
description: Рассчитывайте емкость хранилища, отказоустойчивость и эффективность пространства массива на основе количества дисков, их размера и типа RAID
|
||||
|
||||
regex-memo:
|
||||
title: Шпаргалка по регулярным выражениям
|
||||
description: Шпаргалка по регулярным выражениям/регулярным выражениям JavaScript
|
||||
|
||||
regex-tester:
|
||||
title: Тестер регулярных выражений
|
||||
description: Тестируйте свои регулярные выражения с примером текста
|
||||
|
||||
rem-px-converter:
|
||||
title: Конвертер REM в пиксели
|
||||
description: Конвертируйте px в rem и наоборот
|
||||
|
||||
remove-exif:
|
||||
title: Удаление EXIF
|
||||
description: Удаляйте EXIF из JPEG-файлов
|
||||
|
||||
rmb-numbers:
|
||||
title: Конвертер RMB в прописной формат
|
||||
description: Инструмент преобразования чисел RMB/Юаней в прописной формат
|
||||
|
||||
rsa-ecdsa-signing:
|
||||
title: Подпись и проверка RSA/DSA/ECDSA
|
||||
description: Подписывайте данные и проверяйте подпись с использованием ключей RSA/DSA/ECDSA
|
||||
|
||||
rsa-encryption:
|
||||
title: Шифрование RSA
|
||||
description: Шифруйте и дешифруйте текст с использованием RSA-ключей
|
||||
|
||||
rune-converter:
|
||||
title: Конвертер рун
|
||||
description: Конвертируйте текст в руны и наоборот
|
||||
|
||||
safelink-decoder:
|
||||
title: Декодер Safelink
|
||||
description: Декодируйте ссылки SafeLink из Outlook
|
||||
|
||||
sensitive-data-masker:
|
||||
title: Маскирование конфиденциальных данных
|
||||
description: Удаляйте конфиденциальные данные из текстового содержимого (например, журналов)
|
||||
|
||||
sharepoint-decoder:
|
||||
title: Декодер ссылок SharePoint
|
||||
description: Декодируйте ссылки sharepoint.com в "обычные" ссылки SharePoint
|
||||
|
||||
sla-calculator:
|
||||
title: Калькулятор SLA
|
||||
description: Калькулятор соглашений об уровне обслуживания (SLA)
|
||||
|
||||
smart-raw-converter:
|
||||
title: Конвертер SMART Raw
|
||||
description: Преобразуйте значения SMART Raw в читаемый формат
|
||||
|
||||
smart-text-replacer:
|
||||
title: Умный заменитель текста
|
||||
description: Ищите и заменяйте слова в одном или нескольких вхождениях, как в блокноте Windows. Также позволяет управлять разрывами строк и разделением текста
|
||||
|
||||
snowflake-id-extractor:
|
||||
title: Извлечение ID Snowflake
|
||||
description: Извлекайте временную метку, ID машины и номер последовательности из ID Snowflake
|
||||
|
||||
software-licence-compatibility:
|
||||
title: Совместимость лицензий ПО
|
||||
description: Проверка совместимости лицензий программного обеспечения и информация о них
|
||||
|
||||
ssl-cert-converter:
|
||||
title: Конвертер SSL-сертификатов
|
||||
description: Конвертируйте SSL-сертификаты из различных форматов
|
||||
|
||||
stacktrace-prettier:
|
||||
title: Преобразователь трассировки стека
|
||||
description: Подсвечивайте трассировки стека .Net и JS
|
||||
|
||||
timezone-converter:
|
||||
title: Конвертер часовых поясов
|
||||
description: Конвертируйте дату и время из одного часового пояса в другие и получайте информацию о часовых поясах и странах
|
||||
|
||||
torrent-to-magnet:
|
||||
title: Конвертер Torrent в Magnet
|
||||
description: Преобразуйте торрент-файл в Magnet-ссылку
|
||||
|
||||
ttl-calculator:
|
||||
title: Калькулятор TTL
|
||||
description: Конвертируйте TTL в время
|
||||
|
||||
unicode-formatter:
|
||||
title: Форматировщик Unicode
|
||||
description: Форматируйте текст с использованием шрифтов Unicode
|
||||
|
||||
unicode-search:
|
||||
title: Поиск Unicode
|
||||
description: Поиск символов Unicode
|
||||
|
||||
url-cleaner:
|
||||
title: Очиститель URL
|
||||
description: Удаляйте параметры трекеров рекламы, UTM, Facebook и других провайдеров рекламы из URL
|
||||
|
||||
url-fanger:
|
||||
title: URL Fanger
|
||||
description: Дефангуйте/рефангуйте URL или адрес электронной почты
|
||||
|
||||
url-text-fragment-maker:
|
||||
title: Создатель текстовых фрагментов URL
|
||||
description: Создавайте URL, которые позволяют ссылаться непосредственно на определенную часть текста в веб-документе
|
||||
|
||||
utm-url-generator:
|
||||
title: Генератор UTM URL
|
||||
description: Генерируйте URL с параметрами utm_
|
||||
|
||||
vat-validator:
|
||||
title: Валидатор номеров НДС
|
||||
description: Проверяйте номера НДС
|
||||
|
||||
volume-converter:
|
||||
title: Конвертер объема
|
||||
description: Конвертируйте значения между единицами объема
|
||||
|
||||
websocket-tester:
|
||||
title: Тестер WebSocket
|
||||
description: Тестируйте соединения WebSocket
|
||||
|
||||
week-number-converter:
|
||||
title: Конвертер номеров недель
|
||||
description: Конвертируйте между ISO-номером недели, номером недели в месяце и датой
|
||||
|
||||
wpa-psk-generator:
|
||||
title: Генератор WPA PSK
|
||||
description: Генератор предварительно общего ключа WPA для преобразования пароля WPA и SSID в 256-битный предварительно общий ("сырой") ключ
|
||||
|
||||
x-vr-spamcause-decoder:
|
||||
title: Декодер X-VR-SpamCause
|
||||
description: Декодируйте заголовок X-VR-SPAMCAUSE в письмах OVH
|
||||
|
||||
x509-certificate-generator:
|
||||
title: Генератор сертификатов X509
|
||||
description: Генерируйте самоподписанный SSL/x509 сертификат
|
||||
|
||||
xml-to-json:
|
||||
title: XML в JSON
|
||||
description: Конвертируйте XML в JSON
|
||||
|
||||
xpath-memo:
|
||||
title: Шпаргалка по XPath
|
||||
description: Шпаргалка по синтаксису XPath
|
||||
|
||||
xpath-tester:
|
||||
title: Тестер XPath
|
||||
description: Тестируйте выражения XPath на содержимом XML
|
||||
|
||||
xslt-tester:
|
||||
title: Тестер XSLT
|
||||
description: Тестируйте преобразование XML с использованием XSLT-стилей
|
||||
|
||||
cli-command-editor:
|
||||
title: редактор команд CLI
|
||||
description: Преобразуйте команды CLI с параметрами в легко редактируемую форму и сгенерируйте результирующую команду с входными значениями.
|
||||
command: Команда
|
||||
placeholder: Вставьте команду сюда
|
||||
+3
-805
@@ -37,13 +37,13 @@ about:
|
||||
|
||||
## Технології
|
||||
|
||||
IT Tools виконаний на Vue.js (Vue 3) з використанням бібліотеки компонентів Naive UI і розгортаний за допомогою Vercel. У деяких інструментах використовуються сторонні відкриті бібліотеки, повний список яких ви можете знайти в файлі [package.json](https://github.com/sharevb/it-tools/blob/main/package.json) репозиторію.
|
||||
IT Tools виконаний на Vue.js (Vue 3) з використанням бібліотеки компонентів Naive UI і розгортаний за допомогою Vercel. У деяких інструментах використовуються сторонні відкриті бібліотеки, повний список яких ви можете знайти в файлі [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) репозиторію.
|
||||
|
||||
## Знайшли баг? Відсутній інструмент?
|
||||
|
||||
Якщо вам потрібен інструмент, якого наразі немає тут, і ви вважаєте, що він може бути корисним, ви можете подати запит на додавання функції в [розділі проблем](https://github.com/sharevb/it-tools/issues/new/choose) у репозиторії GitHub.
|
||||
Якщо вам потрібен інструмент, якого наразі немає тут, і ви вважаєте, що він може бути корисним, ви можете подати запит на додавання функції в [розділі проблем](https://github.com/CorentinTh/it-tools/issues/new/choose) у репозиторії GitHub.
|
||||
|
||||
А якщо ви знайшли баг або щось не працює, як очікувалося, будь ласка, подайте звіт про баг в [розділі проблем](https://github.com/sharevb/it-tools/issues/new/choose) у репозиторії GitHub.
|
||||
А якщо ви знайшли баг або щось не працює, як очікувалося, будь ласка, подайте звіт про баг в [розділі проблем](https://github.com/CorentinTh/it-tools/issues/new/choose) у репозиторії GitHub.
|
||||
|
||||
404:
|
||||
notFound: '404 Сторінка не знайдена'
|
||||
@@ -151,9 +151,6 @@ tools:
|
||||
encryption:
|
||||
title: Шифрування / дешифрування тексту
|
||||
description: Шифруйте відкритий текст і дешифруйте зашифрований текст за допомогою криптоалгоритмів, таких як AES, TripleDES, Rabbit або RC4.
|
||||
defaultErrorMessage: Не вдалося зашифрувати ваш текст
|
||||
title-encrypt: Зашифрувати
|
||||
title-decrypt: Розшифрувати
|
||||
|
||||
random-port-generator:
|
||||
title: Генератор випадкових портів
|
||||
@@ -394,802 +391,3 @@ tools:
|
||||
text-to-binary:
|
||||
title: Текст у двійковий ASCII
|
||||
description: Конвертуйте текст у його двійкове представлення ASCII та навпаки.
|
||||
|
||||
csv-to-json:
|
||||
title: CSV в JSON
|
||||
description: Перетворіть CSV на JSON із автоматичним виявленням заголовків.
|
||||
|
||||
json-to-javascript:
|
||||
title: JSON в JS
|
||||
description: Просто конвертуйте JSON в об'єкт Javascript за допомогою цього онлайн-конвертера.
|
||||
|
||||
javascript-to-json:
|
||||
title: JS в JSON
|
||||
description: Просто конвертуйте об'єкт Javascript у JSON за допомогою цього онлайн-конвертера.
|
||||
|
||||
mic-tester:
|
||||
title: Тестер мікрофона
|
||||
description: Відтворюйте та візуалізуйте звук із вашого мікрофона з доданою затримкою в одну секунду.
|
||||
start-button-text: Почати відтворення мікрофона
|
||||
stop-button-text: Зупинити відтворення мікрофона
|
||||
|
||||
qr-contact-info-generator:
|
||||
title: Генератор QR-кодів для контактної інформації
|
||||
description: Генеруйте та завантажуйте QR-коди для контактної інформації (vCard) та налаштовуйте кольори фону та переднього плану.
|
||||
|
||||
json-sort-master:
|
||||
title: Майстер сортування JSON
|
||||
description: Сортуйте ваш JSON за ключами та значеннями.
|
||||
|
||||
json-string-converter:
|
||||
title: Конвертер JSON рядків
|
||||
description: Конвертуйте ваш текст або об'єкти JavaScript у формат JSON-рядка та навпаки.
|
||||
|
||||
floating-point-converter:
|
||||
title: Конвертер чисел з плаваючою комою
|
||||
description: Конвертуйте десяткове число у двійкове число з плаваючою комою IEEE 754 або навпаки.
|
||||
|
||||
nanoid-generator:
|
||||
title: Генератор NanoID
|
||||
description: Генеруйте випадкові, унікальні та зручні для URL ідентифікатори для ваших застосунків.
|
||||
uppercase: Великі літери
|
||||
lowercase: Малі літери
|
||||
numbers: Числа
|
||||
symbols: Символи
|
||||
excludeLookalikes: Виключити схожі символи
|
||||
length: Довжина
|
||||
quantity: Кількість
|
||||
copied: NanoID скопійовано в буфер обміну
|
||||
button:
|
||||
copy: Копіювати
|
||||
refresh: Оновити
|
||||
|
||||
image-resizer:
|
||||
title: Зміна розміру зображення
|
||||
description: Змініть ширину та висоту файлу зображення, перегляньте та завантажте його у бажаному форматі.
|
||||
|
||||
json-to-object:
|
||||
title: JSON в об'єкт
|
||||
description: Парсинг та конвертація JSON в об'єкт.
|
||||
|
||||
multi-link-downloader:
|
||||
title: Завантажувач за кількома посиланнями
|
||||
description: Асинхронно завантажуйте за кількома посиланнями у zip-файл, тоді як одне посилання завантажується безпосередньо. (Потрібне підключення до Інтернету)
|
||||
|
||||
unicode-to-java-entities:
|
||||
title: Конвертер символів Unicode у Java сутності
|
||||
description: Конвертуйте символи Unicode у Java сутності та навпаки.
|
||||
|
||||
sip-auth:
|
||||
password: SIP пароль
|
||||
password-tips: Введіть пароль...
|
||||
message: SIP повідомлення
|
||||
message-tips: Вставте ваше SIP повідомлення тут...
|
||||
result: Результат
|
||||
sucess: Успіх
|
||||
failure: Помилка
|
||||
|
||||
uuid-converter:
|
||||
title: Конвертер UUID
|
||||
description: Конвертуйте UUID з дефісами та без у інші поширені SQL нотації та назад.
|
||||
uuid: UUID
|
||||
uuidhexupper: HEX нотація (великі літери)
|
||||
uuidhexlower: HEX нотація (малі літери)
|
||||
uuidversion: RFC версія
|
||||
input:
|
||||
label: Ваш ввід
|
||||
placeholder: Ваш UUID з/без дефісів
|
||||
|
||||
ad-ldap-searcher:
|
||||
title: Пошук властивостей ActiveDirectory LDAP
|
||||
description: Пошук у відповідності властивостей LDAP та інтерфейсу ActiveDirectory
|
||||
|
||||
ai-prompt-splitter:
|
||||
title: Розділювач AI підказок
|
||||
description: Розділіть довгий документ на кілька підказок для чату (наприклад, ChatGPT)
|
||||
|
||||
angle-converter:
|
||||
title: Конвертер одиниць кутів
|
||||
description: Конвертуйте значення між одиницями кутів
|
||||
|
||||
ansible-vault-crypt-decrypt:
|
||||
title: Шифрування/дешифрування Ansible Vault
|
||||
description: Шифруйте та дешифруйте секрети Ansible Vault
|
||||
|
||||
api-tester:
|
||||
title: Тестер API
|
||||
description: HTTP API тестер
|
||||
|
||||
area-converter:
|
||||
title: Конвертер одиниць площі
|
||||
description: Конвертуйте значення між одиницями площі
|
||||
|
||||
ascii-text-drawer:
|
||||
title: ASCII текстовий малювальник
|
||||
description: Створюйте ASCII арт текст із багатьма шрифтами та стилями
|
||||
|
||||
aspect-ratio-calculator:
|
||||
title: Калькулятор співвідношення сторін
|
||||
description: Використовуйте цей калькулятор для перевірки розмірів під час зміни розміру зображень
|
||||
|
||||
barcode-generator:
|
||||
title: Генератор штрих-кодів
|
||||
description: Генератор штрих-кодів
|
||||
|
||||
barcode-reader:
|
||||
title: Зчитувач штрих-кодів
|
||||
description: Зчитувач штрих-кодів
|
||||
|
||||
base64-hex-converter:
|
||||
title: Конвертер Base64 Hex масивів
|
||||
description: Просто кодуйте та декодуйте Hex масиви у їх представлення Base64
|
||||
|
||||
bounce-parser:
|
||||
title: Парсер відмов пошти
|
||||
description: Аналізуйте SMTP відмови електронної пошти
|
||||
|
||||
card-picker:
|
||||
title: Вибір карт
|
||||
description: Генеруйте колоду гральних карт
|
||||
|
||||
certificate-key-parser:
|
||||
title: Парсер сертифікатів/ключів
|
||||
description: Аналізуйте ключі та сертифікати
|
||||
|
||||
cidr-in-cidr:
|
||||
title: IPv4-6/IPRange/CIDR у IPRange/CIDR/IPMask
|
||||
description: Визначте, чи знаходиться IPv4-6/діапазон/CIDR/маска у підмережі
|
||||
|
||||
code-highlighter:
|
||||
title: Підсвічувач коду/скриптів
|
||||
description: Підсвічуйте фрагменти програмного коду
|
||||
|
||||
coin-flipper:
|
||||
title: Монетний кидок
|
||||
description: Кидайте монету
|
||||
|
||||
color-contrast-checker:
|
||||
title: Перевірка контрастності кольорів
|
||||
description: Перевірте рівень контрастності WCAG між двома кольорами
|
||||
|
||||
color-wheel:
|
||||
title: Колесо кольорів
|
||||
description: Виберіть палітру/тему кольорів за допомогою колеса та режиму
|
||||
|
||||
common-regex-memo:
|
||||
title: Шпаргалка загальних регулярних виразів
|
||||
description: Шпаргалка для загальних шаблонів регулярних виразів
|
||||
|
||||
countdown:
|
||||
title: Зворотний відлік
|
||||
description: Зворотний відлік і сигналізація після закінчення часу
|
||||
|
||||
crc-calculator:
|
||||
title: Калькулятор CRC
|
||||
description: Обчислюйте CRC тексту або файлу (CRC1, CRC8, CRC16, CRC32 тощо)
|
||||
|
||||
csr-generator:
|
||||
title: Генератор CSR
|
||||
description: Генеруйте запити на підпис сертифікатів (PEM формат)
|
||||
|
||||
css-prettifier:
|
||||
title: Форматувач CSS
|
||||
description: Форматування CSS
|
||||
|
||||
css-selectors-memo:
|
||||
title: Шпаргалка CSS селекторів
|
||||
description: Шпаргалка синтаксису CSS селекторів
|
||||
|
||||
css-xpath-converter:
|
||||
title: Конвертер CSS XPath
|
||||
description: Конвертуйте CSS селектори у/з XPath виразів
|
||||
|
||||
curl-converter:
|
||||
title: Конвертер Curl
|
||||
description: Генеруйте версії команд curl для поширених мов програмування
|
||||
|
||||
currency-converter:
|
||||
title: Конвертер валют
|
||||
description: Конвертуйте значення валют за допомогою https://github.com/fawazahmed0/exchange-api
|
||||
|
||||
data-storage-unit-converter:
|
||||
title: Конвертер одиниць зберігання даних
|
||||
description: Конвертуйте одиниці зберігання або передачі даних (байти, біти, кілобайти тощо)
|
||||
|
||||
data-transfer-rate-converter:
|
||||
title: Калькулятор швидкості передачі даних
|
||||
description: Обчислюйте час передачі даних, швидкість і обсяг даних
|
||||
|
||||
date-duration-calculator:
|
||||
title: Калькулятор дати+тривалості
|
||||
description: Додавайте/віднімайте тривалості від конкретної дати
|
||||
|
||||
days-calculator:
|
||||
title: Калькулятор днів
|
||||
description: Обчислюйте інтервали днів, свята, різницю, робочий час
|
||||
|
||||
dice-roller:
|
||||
title: Кидок кубика
|
||||
description: Кидок кубика для RPG з використанням нотації кубиків
|
||||
|
||||
dmarc-report-analyzer:
|
||||
title: Аналізатор звітів DMARC
|
||||
description: Читайте та відображайте DMARC XML звіти
|
||||
|
||||
dns-queries:
|
||||
title: DNS запити
|
||||
description: Виконуйте DNS запити (через HTTPS)
|
||||
|
||||
docker-compose-converter:
|
||||
title: Конвертер формату Docker Compose
|
||||
description: Конвертуйте файл Docker Compose між V1, 2.x, 3.x або CommonSpec і розширюйте синтаксис портів/томів
|
||||
|
||||
docker-compose-to-docker-run-converter:
|
||||
title: Конвертер Docker Compose у Docker run
|
||||
description: Перетворюйте файл Docker Compose у команди docker run!
|
||||
|
||||
docker-compose-to-kubernetes:
|
||||
title: Docker Compose у Kubernetes
|
||||
description: Перетворюйте Docker Compose у маніфести Kubernetes
|
||||
|
||||
docker-compose-validator:
|
||||
title: Валідатор Docker Compose
|
||||
description: Перевіряйте файли Docker Compose на відповідність схемі CommonSpec
|
||||
|
||||
docker-memo:
|
||||
title: Шпаргалка Docker
|
||||
description: Шпаргалка команд Docker
|
||||
|
||||
docker-run-to-kubernetes:
|
||||
title: Docker run у Kubernetes
|
||||
description: Перетворюйте команди Docker run у маніфести Kubernetes
|
||||
|
||||
duplicate-line-finder:
|
||||
title: Пошук дублікатів рядків
|
||||
description: Знаходьте та перелічуйте дубльовані рядки
|
||||
|
||||
duration-calculator:
|
||||
title: Калькулятор тривалості
|
||||
description: Обчислюйте/розбирайте тривалості
|
||||
|
||||
ecdsa-key-pair-generator:
|
||||
title: Генератор ключів ECDSA
|
||||
description: Генеруйте нові випадкові приватні та публічні ключі ECDSA (з паролем або без)
|
||||
|
||||
ed25519-key-pair-generator:
|
||||
title: Генератор ключів Ed25519
|
||||
description: Генеруйте нові випадкові приватні та публічні ключі Ed25519 (з паролем або без)
|
||||
|
||||
email-normalizer:
|
||||
title: Нормалізатор електронної пошти
|
||||
description: Нормалізуйте адреси електронної пошти до стандартного формату для полегшення порівняння. Корисно для видалення дублікатів і очищення даних.
|
||||
|
||||
email-parser:
|
||||
title: Парсер електронної пошти
|
||||
description: Розбирайте та витягуйте інформацію з сирого вмісту електронної пошти
|
||||
|
||||
energy-computer:
|
||||
title: Обчислювач енергії
|
||||
description: Обчислюйте споживання енергії та витрати
|
||||
|
||||
energy-converter:
|
||||
title: Конвертер одиниць енергії
|
||||
description: Конвертуйте значення між одиницями енергії
|
||||
|
||||
file-hasher:
|
||||
title: Хешування файлів
|
||||
description: Обчислюйте хеш файлів
|
||||
|
||||
file-type:
|
||||
title: Визначення типу файлу
|
||||
description: Визначайте тип файлу
|
||||
|
||||
folder-structure-diagram:
|
||||
title: Діаграма структури папок
|
||||
description: Утиліта для створення діаграм структури папок у вигляді ASCII
|
||||
|
||||
force-converter:
|
||||
title: Конвертер одиниць сили
|
||||
description: Конвертуйте значення між одиницями сили
|
||||
|
||||
geo-distance-calculator:
|
||||
title: Калькулятор гео-дистанції
|
||||
description: Обчислюйте відстань між двома геолокаціями (і відображайте інформацію про поточну локацію користувача)
|
||||
|
||||
gpt-token-estimator:
|
||||
title: Оцінювач токенів GPT
|
||||
description: Оцінювач токенів OpenAI GPT
|
||||
|
||||
gzip-converter:
|
||||
title: Конвертер GZip/Deflate
|
||||
description: Конвертуйте текст у/з gzip/deflate
|
||||
|
||||
har-sanitizer:
|
||||
title: Санітизатор HAR
|
||||
description: Санітизуйте файли HAR
|
||||
|
||||
hdd-calculator:
|
||||
title: Калькулятор HDD
|
||||
description: Перетворюйте ємність пристроїв зберігання даних між десятковими та двійковими форматами
|
||||
|
||||
heic-converter:
|
||||
title: Конвертер HEIC
|
||||
description: Конвертуйте HEIC у JPEG або PNG
|
||||
|
||||
hex-converter:
|
||||
title: Конвертер Hex
|
||||
description: Кодуйте та декодуйте Hex буфери у числа (біти, порядок байтів, знак або плаваюча точка) та структури
|
||||
|
||||
hex-file-converter:
|
||||
title: Конвертер файлів HEX
|
||||
description: Конвертуйте між файлами та їх шістнадцятковим представленням
|
||||
|
||||
html-cleaner:
|
||||
title: Очищувач HTML
|
||||
description: Очищуйте HTML
|
||||
|
||||
html-prettifier:
|
||||
title: Форматувач HTML
|
||||
description: Форматуйте HTML код
|
||||
|
||||
html-to-markdown:
|
||||
title: HTML у Markdown
|
||||
description: Конвертуйте HTML (наприклад, зі вставки з буфера обміну) у Markdown
|
||||
|
||||
htpasswd-generator:
|
||||
title: Генератор Htpasswd/Htaccess
|
||||
description: Генеруйте користувача/пароль для htpasswd/htaccess
|
||||
|
||||
ical-generator:
|
||||
title: Генератор ICAL
|
||||
description: Генеруйте ICAL/ICS файл з інформації про події
|
||||
|
||||
ical-merger:
|
||||
title: Об'єднувач iCal
|
||||
description: Об'єднуйте кілька iCal файлів в один
|
||||
|
||||
ical-parser:
|
||||
title: Парсер ICAL файлів
|
||||
description: Парсинг ICAL/ICS файлів для відображення подій
|
||||
|
||||
ico-converter:
|
||||
title: Конвертер ICO/PNG
|
||||
description: Конвертуйте між PNG/JPEG та ICO
|
||||
|
||||
ies-lighting-guidelines:
|
||||
title: Рекомендації IES з освітлення
|
||||
description: Шукайте рекомендації з освітлення від Illuminating Engineering Society (IES)
|
||||
|
||||
illuminance-converter:
|
||||
title: Конвертер освітленості
|
||||
description: Конвертуйте одиниці освітленості (Люкс, Фут-Кандели, Нокс, Фот, Полум'я)
|
||||
|
||||
image-converter:
|
||||
title: Конвертер зображень
|
||||
description: Конвертуйте зображення з одного формату в інший
|
||||
|
||||
image-exif-reader:
|
||||
title: Читач EXIF/метаданих зображень
|
||||
description: Читайте EXIF, IPTC, XMP, GPS та інші метадані, якість JPEG та іншу інформацію з файлів зображень
|
||||
|
||||
image-to-ascii-art:
|
||||
title: Зображення у ASCII арт
|
||||
description: Генеруйте ASCII арт із зображень
|
||||
|
||||
image-to-css:
|
||||
title: Зображення у CSS
|
||||
description: Конвертуйте зображення у CSS (url, фон тощо)
|
||||
|
||||
integers-to-ip:
|
||||
title: Цілі числа у IPv4/IPv6
|
||||
description: Конвертуйте цілі числа у IP
|
||||
|
||||
ip-cidr-to-range:
|
||||
title: CIDR IPv4/6 у діапазон IP
|
||||
description: Обчислюйте діапазон IP з CIDR (IPv4/6)
|
||||
|
||||
ip-geo-location:
|
||||
title: Геолокація IP
|
||||
description: Отримуйте інформацію про місцезнаходження IPv4/6 адреси або домену
|
||||
|
||||
ip-include-exclude:
|
||||
title: Калькулятор виключення підмереж IP
|
||||
description: Віднімайте заборонені діапазони/маски/CIDR IP з дозволених
|
||||
|
||||
ip-range-to-cidr:
|
||||
title: Діапазон IPv4/6 у CIDR
|
||||
description: Обчислюйте CIDR з діапазону IP (IPv4/6)
|
||||
|
||||
ipv6-address-converter:
|
||||
title: Конвертер IPv6 адрес
|
||||
description: Конвертуйте IP-адресу у десяткове, двійкове, шістнадцяткове представлення та отримуйте інформацію
|
||||
|
||||
ipv6-subnet-calculator:
|
||||
title: Калькулятор підмереж IPv6
|
||||
description: Парсинг ваших блоків CIDR IPv6 та отримання всієї необхідної інформації про вашу підмережу
|
||||
|
||||
isbn-validator-and-parser:
|
||||
title: Валідатор та парсер ISBN
|
||||
description: Парсинг, валідація, форматування та отримання інформації про ISBN
|
||||
|
||||
iso-3166-searcher:
|
||||
title: Пошук кодів країн ISO 3166
|
||||
description: Пошук кодів країн (ISO 3166) та інформації про них
|
||||
|
||||
javascript-prettifier:
|
||||
title: Форматувач Javascript
|
||||
description: Форматування та прикрашання коду Javascript
|
||||
|
||||
jq-memo:
|
||||
title: Шпаргалка Jq
|
||||
description: Шпаргалка команд JQ
|
||||
|
||||
jq-tester:
|
||||
title: Тестер Jq/JSONPath
|
||||
description: Тестуйте вирази jq/JSONPath на JSON контенті
|
||||
|
||||
js-unobfuscator:
|
||||
title: Деобфускатор/Розпаковувач Javascript
|
||||
description: Інструмент для зворотної розробки Javascript. Деобфускує, розмінімізує, транспілює та розпаковує код, щоб максимально наблизити його до оригінального джерела.
|
||||
|
||||
json-editor:
|
||||
title: Редактор JSON
|
||||
description: Редагуйте JSON контент
|
||||
|
||||
json-escaper:
|
||||
title: Екранування/Розекранування JSON
|
||||
description: Екрануйте та розекрануйте JSON рядки
|
||||
|
||||
json-linter:
|
||||
title: Лінтер JSON
|
||||
description: Перевіряйте та лінтуйте JSON контент
|
||||
|
||||
json-size-analyzer:
|
||||
title: Аналізатор розміру JSON
|
||||
description: Вимірюйте відносну вагу вузлів JSON
|
||||
|
||||
json-to-csharp:
|
||||
title: JSON в C#
|
||||
description: Конвертуйте JSON дані у визначення типу C#
|
||||
|
||||
json-to-go:
|
||||
title: JSON в Go
|
||||
description: Конвертуйте JSON у структуру Go
|
||||
|
||||
json-to-java:
|
||||
title: JSON у Java
|
||||
description: Конвертуйте JSON у сутності Java
|
||||
|
||||
json-to-php-array:
|
||||
title: JSON у PHP-масив
|
||||
description: Конвертуйте JSON у PHP-масив
|
||||
|
||||
json-to-schema:
|
||||
title: JSON у схему
|
||||
description: Конвертуйте JSON дані у JSON Schema, MySQL DDL, Mongoose Schema, Google BigQuery Schema або ClickHouse Table Schema
|
||||
|
||||
json-to-xml:
|
||||
title: JSON у XML
|
||||
description: Конвертуйте JSON у XML
|
||||
|
||||
jsonpath-memo:
|
||||
title: Шпаргалка JSONPath
|
||||
description: Шпаргалка синтаксису JSONPath
|
||||
|
||||
jwt-generator:
|
||||
title: Генератор JWT
|
||||
description: Генератор та редактор JWT токенів
|
||||
|
||||
length-converter:
|
||||
title: Конвертер одиниць довжини
|
||||
description: Конвертуйте значення між одиницями довжини
|
||||
|
||||
list-comparer:
|
||||
title: Порівнювач списків
|
||||
description: Порівнюйте елементи двох списків
|
||||
|
||||
luhn-validator:
|
||||
title: Валідатор Luhn
|
||||
description: Перевіряйте та генеруйте ключі для ідентифікаторів, що перевіряються алгоритмом Luhn
|
||||
|
||||
mac-address-converter:
|
||||
title: Конвертер MAC-адрес
|
||||
description: Змінюйте формат MAC-адреси та вибирайте між різними форматами (EUI-48, EUI-64, IPv6)
|
||||
|
||||
many-units-converter:
|
||||
title: Конвертер багатьох одиниць
|
||||
description: Конвертуйте всі види одиниць
|
||||
|
||||
markdown-cheatsheet:
|
||||
title: Шпаргалка Markdown
|
||||
description: Шпаргалка Markdown
|
||||
|
||||
markdown-editor:
|
||||
title: Редактор Markdown
|
||||
description: Простий редактор Markdown
|
||||
|
||||
markdown-to-html:
|
||||
title: Markdown у HTML
|
||||
description: Конвертуйте Markdown у HTML та дозволяйте друк (у PDF)
|
||||
|
||||
markdown-toc-generator:
|
||||
title: Генератор змісту Markdown
|
||||
description: Генеруйте зміст із файлу/контенту Markdown
|
||||
|
||||
mass-converter:
|
||||
title: Конвертер одиниць маси
|
||||
description: Конвертуйте значення між одиницями маси
|
||||
|
||||
math-formats-converter:
|
||||
title: Конвертер математичних форматів
|
||||
description: Конвертуйте математичні вирази між форматами
|
||||
|
||||
math-ocr:
|
||||
title: Math OCR
|
||||
description: Конвертуйте зображення математичних формул у Latex
|
||||
|
||||
mermaid-exporter:
|
||||
title: Експортер Mermaid
|
||||
description: Конвертуйте Markdown (Mermaid) у зображення та експортуйте у PNG, JPG та SVG
|
||||
|
||||
mime-converter:
|
||||
title: Конвертер MIME кодування
|
||||
description: Конвертуйте з/у формат MIME Encoded-Word (Mail Subject)
|
||||
|
||||
mongo-objectid-converter:
|
||||
title: Конвертер MongoDB ObjectId
|
||||
description: Конвертуйте між MongoDB ObjectId та внутрішнім timestamp
|
||||
|
||||
morse-converter:
|
||||
title: Конвертер коду Морзе
|
||||
description: Кодуйте/Декодуйте у код Морзе
|
||||
|
||||
my-ip:
|
||||
title: Моя IP-адреса
|
||||
description: Отримуйте вашу клієнтську IP-адресу (IPv4/6) за допомогою https://www.ipify.org/
|
||||
|
||||
nano-memo:
|
||||
title: Шпаргалка Nano
|
||||
description: Шпаргалка редактора Nano
|
||||
|
||||
nginx-formatter:
|
||||
title: Форматувач Nginx
|
||||
description: Форматування/прикрасування конфігураційних файлів Nginx
|
||||
|
||||
ocr-image:
|
||||
title: OCR зображень та PDF
|
||||
description: Виконуйте OCR (Tesseract) на зображеннях або PDF
|
||||
|
||||
option43-generator:
|
||||
title: Генератор Option43
|
||||
description: Генеруйте конфігурацію DHCP Option43 для WiFi
|
||||
|
||||
outlook-parser:
|
||||
title: Парсер Outlook MSG
|
||||
description: Парсинг файлів Outlook MSG
|
||||
|
||||
parquets-reader:
|
||||
title: Читач файлів Parquet
|
||||
description: Читайте файли Parquet як масиви JSON об'єктів
|
||||
|
||||
passphrase-generator:
|
||||
title: Генератор паролів
|
||||
description: Генеруйте випадкові запам'ятовувані паролі
|
||||
|
||||
paste-as-markdown:
|
||||
title: Вставка як Markdown
|
||||
description: Вставляйте клітинки/таблиці та посилання з буфера обміну у форматі Markdown
|
||||
|
||||
pdf-encrypt:
|
||||
title: Шифрування PDF
|
||||
description: Шифруйте та додавайте захист до PDF файлу
|
||||
|
||||
pdf-linearize:
|
||||
title: Лінеаризація PDF/Швидкий веб
|
||||
description: Створюйте лінеаризовану версію PDF (перетворення у FastWeb)
|
||||
|
||||
pdf-unlock:
|
||||
title: Розблокування PDF
|
||||
description: Розшифровуйте PDF та знімайте обмеження безпеки
|
||||
|
||||
pgp-encryption:
|
||||
title: PGP шифрування
|
||||
description: Шифруйте та дешифруйте текст за допомогою PGP ключів
|
||||
|
||||
pgp-key-pair-generator:
|
||||
title: Генератор PGP ключів
|
||||
description: Генеруйте нові випадкові приватні та публічні PGP ключі (з паролем або без)
|
||||
|
||||
php-array-to-json:
|
||||
title: PHP-масив у JSON
|
||||
description: Конвертуйте PHP-масив у JSON
|
||||
|
||||
pin-code-generator:
|
||||
title: Генератор PIN-кодів
|
||||
description: Генеруйте унікальні PIN-коди (цифри)
|
||||
|
||||
pomodoro-timer:
|
||||
title: Таймер Pomodoro
|
||||
description: Базовий таймер Pomodoro
|
||||
|
||||
port-numbers:
|
||||
title: Номери портів
|
||||
description: Шукайте призначене використання для заданого порту та протоколу
|
||||
|
||||
potrace:
|
||||
title: Зображення у SVG (potrace)
|
||||
description: Конвертуйте растрове зображення у векторний SVG
|
||||
|
||||
power-converter:
|
||||
title: Конвертер одиниць потужності
|
||||
description: Конвертуйте значення між одиницями потужності
|
||||
|
||||
pressure-converter:
|
||||
title: Конвертер одиниць тиску
|
||||
description: Конвертуйте значення між одиницями тиску
|
||||
|
||||
properties-to-yaml:
|
||||
title: Properties у YAML
|
||||
description: Конвертуйте вміст Java .properties у YAML
|
||||
|
||||
raid-calculator:
|
||||
title: Калькулятор RAID
|
||||
description: Обчислюйте ємність зберігання, відмовостійкість та ефективність простору масиву на основі кількості дисків, розміру та типу RAID
|
||||
|
||||
regex-memo:
|
||||
title: Шпаргалка Regex
|
||||
description: Шпаргалка регулярних виразів Javascript
|
||||
|
||||
regex-tester:
|
||||
title: Тестер Regex
|
||||
description: Тестуйте свої регулярні вирази на прикладному тексті
|
||||
|
||||
rem-px-converter:
|
||||
title: Конвертер REM у пікселі
|
||||
description: Конвертуйте px у rem та навпаки
|
||||
|
||||
remove-exif:
|
||||
title: Видалення EXIF
|
||||
description: Видаляйте EXIF з JPEG файлів
|
||||
|
||||
rmb-numbers:
|
||||
title: Конвертер чисел RMB
|
||||
description: Інструмент конвертації чисел RMB/Юаня у пропис
|
||||
|
||||
rsa-ecdsa-signing:
|
||||
title: RSA/DSA/ECDSA підпис та перевірка
|
||||
description: Підписуйте дані та перевіряйте підпис за допомогою ключів RSA/DSA/ECDSA
|
||||
|
||||
rsa-encryption:
|
||||
title: RSA шифрування
|
||||
description: Шифруйте та дешифруйте текст за допомогою ключів RSA
|
||||
|
||||
rune-converter:
|
||||
title: Конвертер рун
|
||||
description: Конвертуйте текст у руни та навпаки
|
||||
|
||||
safelink-decoder:
|
||||
title: Декодер Safelink Outlook
|
||||
description: Декодуйте посилання SafeLink з Outlook
|
||||
|
||||
sensitive-data-masker:
|
||||
title: Маскування конфіденційних даних
|
||||
description: Очищуйте конфіденційні дані з текстового контенту (наприклад, логів)
|
||||
|
||||
sharepoint-decoder:
|
||||
title: Декодер посилань Sharepoint
|
||||
description: Декодуйте посилання sharepoint.com у "звичайні" посилання Sharepoint
|
||||
|
||||
sla-calculator:
|
||||
title: Калькулятор SLA
|
||||
description: Калькулятор угоди про рівень обслуговування (Service Level Agreement)
|
||||
|
||||
smart-raw-converter:
|
||||
title: Конвертер SMART Raw
|
||||
description: Конвертуйте значення SMART Raw у зручний для читання формат
|
||||
|
||||
smart-text-replacer:
|
||||
title: Розумний замінник тексту
|
||||
description: Шукайте та замінюйте слова в одному або кількох випадках, як у блокноті Windows. Також дозволяє керувати розривами рядків та розбиттям тексту
|
||||
|
||||
snowflake-id-extractor:
|
||||
title: Екстрактор Snowflake ID
|
||||
description: Витягуйте timestamp, ID машини та номер послідовності з Snowflake ID
|
||||
|
||||
software-licence-compatibility:
|
||||
title: Сумісність ліцензій програмного забезпечення
|
||||
description: Перевірка сумісності ліцензій програмного забезпечення та інформація
|
||||
|
||||
ssl-cert-converter:
|
||||
title: Конвертер SSL сертифікатів
|
||||
description: Конвертуйте SSL сертифікати між різними форматами
|
||||
|
||||
stacktrace-prettier:
|
||||
title: Форматувач стек-трас
|
||||
description: Підсвічуйте стек-траси .Net та JS
|
||||
|
||||
timezone-converter:
|
||||
title: Конвертер часових поясів
|
||||
description: Конвертуйте дату-час з одного часового поясу в інші та отримуйте інформацію про часові пояси та країни
|
||||
|
||||
torrent-to-magnet:
|
||||
title: Torrent у Magnet
|
||||
description: Конвертуйте torrent файл у Magnet URL
|
||||
|
||||
ttl-calculator:
|
||||
title: Калькулятор TTL
|
||||
description: Конвертуйте TTL у час
|
||||
|
||||
unicode-formatter:
|
||||
title: Форматувач Unicode
|
||||
description: Форматуйте текст за допомогою шрифтів Unicode
|
||||
|
||||
unicode-search:
|
||||
title: Пошук Unicode
|
||||
description: Шукайте у символах Unicode
|
||||
|
||||
url-cleaner:
|
||||
title: Очищувач URL
|
||||
description: Очищуйте URL від трекерів реклами, UTM, Facebook та інших параметрів провайдерів реклами
|
||||
|
||||
url-fanger:
|
||||
title: Дефангер URL
|
||||
description: Дефангуйте/Рефангуйте URL або email-адресу
|
||||
|
||||
url-text-fragment-maker:
|
||||
title: Генератор текстових фрагментів URL
|
||||
description: Створюйте URL, які дозволяють посилатися безпосередньо на певну частину тексту у веб-документі
|
||||
|
||||
utm-url-generator:
|
||||
title: Генератор UTM URL
|
||||
description: Генеруйте URL з параметрами utm_
|
||||
|
||||
vat-validator:
|
||||
title: Валідатор номерів ПДВ
|
||||
description: Перевіряйте номери ПДВ
|
||||
|
||||
volume-converter:
|
||||
title: Конвертер одиниць об'єму
|
||||
description: Конвертуйте значення між одиницями об'єму
|
||||
|
||||
websocket-tester:
|
||||
title: Тестер WebSocket
|
||||
description: Тестуйте WebSocket з'єднання
|
||||
|
||||
week-number-converter:
|
||||
title: Конвертер номерів тижнів
|
||||
description: Конвертуйте між ISO номером тижня, номером тижня у місяці та датою
|
||||
|
||||
wpa-psk-generator:
|
||||
title: Генератор WPA PSK
|
||||
description: Генеруйте WPA Pre-shared Key з пароля WPA та SSID
|
||||
|
||||
x-vr-spamcause-decoder:
|
||||
title: Декодер X-VR-SpamCause
|
||||
description: Декодуйте заголовок X-VR-SPAMCAUSE у листах OVH
|
||||
|
||||
x509-certificate-generator:
|
||||
title: Генератор X509 сертифікатів
|
||||
description: Генеруйте самопідписані SSL/x509 сертифікати
|
||||
|
||||
xml-to-json:
|
||||
title: XML у JSON
|
||||
description: Конвертуйте XML у JSON
|
||||
|
||||
xpath-memo:
|
||||
title: Шпаргалка XPath
|
||||
description: Шпаргалка синтаксису XPath
|
||||
|
||||
xpath-tester:
|
||||
title: Тестер XPath
|
||||
description: Тестуйте вирази XPath на XML контенті
|
||||
|
||||
xslt-tester:
|
||||
title: Тестер XSLT
|
||||
description: Тестуйте трансформацію XML за допомогою XSLT стилів
|
||||
|
||||
cli-command-editor:
|
||||
title: Редактор команд CLI
|
||||
description: Перетворіть команди CLI з опціями у форму, яку легко редагувати, та згенеруйте результуючу команду з вхідними значеннями.
|
||||
command: Команда
|
||||
placeholder: Вставте команду сюди
|
||||
+1
-7
@@ -393,10 +393,4 @@ tools:
|
||||
|
||||
unicode-to-java-entities:
|
||||
title: Chuyển đổi ký tự Unicode sang thực thể Java
|
||||
description: Chuyển đổi ký tự Unicode sang thực thể Java và ngược lại
|
||||
|
||||
cli-command-editor:
|
||||
title: Trình soạn thảo lệnh CLI
|
||||
description: Chuyển đổi các lệnh CLI có tùy chọn thành dạng dễ chỉnh sửa và tạo lệnh kết quả với các giá trị đầu vào.
|
||||
command: Yêu cầu
|
||||
placeholder: Dán lệnh vào đây
|
||||
description: Chuyển đổi ký tự Unicode sang thực thể Java và ngược lại
|
||||
@@ -414,9 +414,3 @@ tools:
|
||||
result: 检测结果
|
||||
sucess: 成功
|
||||
failure: 失败
|
||||
|
||||
cli-command-editor:
|
||||
title: CLI 命令编辑器
|
||||
description: 将带有选项的 CLI 命令转换为易于编辑的形式,并生成带有输入值的结果命令。
|
||||
command: 命令
|
||||
placeholder: 将命令粘贴到此处
|
||||
@@ -5,13 +5,6 @@ server {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
add_header X-Frame-Options SAMEORIGIN;
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
add_header Referrer-Policy strict-origin-when-cross-origin;
|
||||
add_header X-Permitted-Cross-Domain-Policies none;
|
||||
add_header Cross-Origin-Resource-Policy same-site;
|
||||
add_header Cross-Origin-Opener-Policy same-origin;
|
||||
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https: http:; connect-src https: http:; font-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self';";
|
||||
location / {
|
||||
rewrite ^/it-tools/(.*) /$1 break;
|
||||
try_files $uri $uri/ /index.html;
|
||||
|
||||
+60
-82
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "it-tools",
|
||||
"type": "module",
|
||||
"version": "2025.7.20-3ccbd853",
|
||||
"version": "2025.4.21-70194069",
|
||||
"packageManager": "pnpm@9.11.0",
|
||||
"description": "Collection of handy online tools for developers, with great UX. ",
|
||||
"author": "Corentin Th <corentin.thomasset74+it-tools@gmail.com> (https://corentin.tech)",
|
||||
@@ -34,27 +34,23 @@
|
||||
"lint": "eslint src --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore",
|
||||
"script:create:tool": "node scripts/create-tool.mjs",
|
||||
"script:create:ui": "hygen generator ui-component",
|
||||
"release": "node ./scripts/release.mjs",
|
||||
"script:extract:desc": "node ./scripts/extract-tools-desc.mjs",
|
||||
"script:extract:strings": "node ./scripts/extract-tools-strings.mjs",
|
||||
"vue-i18n-extract": "vue-i18n-extract report --vueFiles 'src/**/*.?(ts|vue)' --languageFiles 'locales/*.yml'"
|
||||
"release": "node ./scripts/release.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@chenfengyuan/vue-barcode": "^2.0.2",
|
||||
"@date-fns/utc": "^2.0.0",
|
||||
"@date-fns/utc": "^1.2.0",
|
||||
"@dice-roller/rpg-dice-roller": "^5.5.1",
|
||||
"@faker-js/faker": "^9.7.0",
|
||||
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
||||
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
||||
"@fortawesome/vue-fontawesome": "^3.0.8",
|
||||
"@github/paste-markdown": "^1.5.3",
|
||||
"@guolao/vue-monaco-editor": "^1.5.5",
|
||||
"@guolao/vue-monaco-editor": "^1.5.4",
|
||||
"@guyplusplus/turndown-plugin-gfm": "^1.0.7",
|
||||
"@huggingface/transformers": "3.0.0-alpha.14",
|
||||
"@iplookup/country-extra": "^1.0.20250317",
|
||||
"@it-tools/bip39": "^0.0.4",
|
||||
"@it-tools/oggen": "^1.3.0",
|
||||
"@jsonquerylang/jsonquery": "^5.0.4",
|
||||
"@kenjiuno/decompressrtf": "^0.1.4",
|
||||
"@kenjiuno/msgreader": "^1.22.0",
|
||||
"@mdit/plugin-align": "^0.16.0",
|
||||
@@ -75,20 +71,18 @@
|
||||
"@tiptap/starter-kit": "2.9.1",
|
||||
"@tiptap/vue-3": "2.9.1",
|
||||
"@types/haversine": "^1.1.8",
|
||||
"@types/swagger-ui-dist": "^3.30.6",
|
||||
"@unicode/unicode-15.1.0": "^1.6.6",
|
||||
"@types/moment": "^2.13.0",
|
||||
"@unicode/unicode-15.1.0": "^1.6.5",
|
||||
"@vicons/material": "^0.12.0",
|
||||
"@vicons/tabler": "^0.12.0",
|
||||
"@vueuse/core": "^10.11.1",
|
||||
"@vueuse/head": "^1.0.0",
|
||||
"@vueuse/router": "^10.0.0",
|
||||
"@xmldom/xmldom": "^0.8.10",
|
||||
"@xterm/xterm": "^5.5.0",
|
||||
"@younestouati/playing-cards-standard-deck": "^6.0.1",
|
||||
"@zxing/library": "^0.21.3",
|
||||
"a11y-color-contrast": "^0.2.0",
|
||||
"aircodes": "^1.3.16",
|
||||
"ansi-styles": "^6.2.1",
|
||||
"ansible-vault": "^1.3.0",
|
||||
"apache-md5": "^1.1.8",
|
||||
"arr-diff": "^4.0.0",
|
||||
@@ -100,11 +94,10 @@
|
||||
"change-case": "^5.4.4",
|
||||
"chatgpt-prompt-splitter": "^1.0.5",
|
||||
"chinesegen": "^0.3.3",
|
||||
"cidr-tools": "^11.0.3",
|
||||
"citation-formatter": "^1.0.1",
|
||||
"cidr-tools": "^11.0.2",
|
||||
"colord": "^2.9.3",
|
||||
"composerize": "^1.7.5",
|
||||
"composeverter": "^1.7.5",
|
||||
"composerize": "^1.7.2",
|
||||
"composeverter": "^1.7.4",
|
||||
"convert": "^5.7.0",
|
||||
"countries-and-timezones": "^3.7.2",
|
||||
"countries-db": "^1.2.0",
|
||||
@@ -112,16 +105,15 @@
|
||||
"crc": "^4.3.2",
|
||||
"cron-parser": "^4.9.0",
|
||||
"cron-validator": "^1.3.1",
|
||||
"cronstrue": "^3.0.0",
|
||||
"cronstrue": "^2.54.0",
|
||||
"cross-spawn": "^7.0.6",
|
||||
"crypto-js": "^4.2.0",
|
||||
"csstoxpath": "^2.0.0",
|
||||
"curlconverter": "^4.12.0",
|
||||
"currency-codes-ts": "^3.0.0",
|
||||
"currency-exchanger-js": "^1.0.4",
|
||||
"damerau-levenshtein": "^1.0.8",
|
||||
"data-guardian": "^1.1.3",
|
||||
"date-fns": "^4.0.0",
|
||||
"date-fns": "^2.30.0",
|
||||
"date-holidays": "^3.23.21",
|
||||
"decomposerize": "^1.4.4",
|
||||
"detect-csv": "^1.1.0",
|
||||
@@ -129,22 +121,21 @@
|
||||
"dns-query": "^0.11.2",
|
||||
"docker2kube": "^0.0.14",
|
||||
"dom-to-image-more": "^3.5.0",
|
||||
"dompurify": "^3.2.6",
|
||||
"dompurify": "^3.2.4",
|
||||
"duration-fns": "^3.0.2",
|
||||
"email-bounce-parser-browser": "^1.1.0",
|
||||
"email-normalizer": "^1.0.0",
|
||||
"emojilib": "^4.0.2",
|
||||
"emojilib": "^4.0.1",
|
||||
"event-cron-parser": "^1.0.35",
|
||||
"exif-be-gone": "^1.5.1",
|
||||
"exifreader": "^4.26.1",
|
||||
"fanger": "^0.3.1",
|
||||
"fast_array_intersect": "^1.1.0",
|
||||
"fflate": "^0.8.2",
|
||||
"figlet": "^1.8.2",
|
||||
"figlet": "^1.8.0",
|
||||
"figue": "^1.2.0",
|
||||
"file-type": "^21.0.0",
|
||||
"flatten-anything": "^4.0.2",
|
||||
"flexsearch": "^0.8.205",
|
||||
"file-type": "^20.1.0",
|
||||
"flatten-anything": "^4.0.1",
|
||||
"fuse.js": "^7.1.0",
|
||||
"generate-schema": "^2.6.0",
|
||||
"get-timezone-offset": "^1.0.5",
|
||||
@@ -154,49 +145,48 @@
|
||||
"heic-convert": "^2.1.0",
|
||||
"hex-array": "^1.0.0",
|
||||
"highlight.js": "^11.11.1",
|
||||
"htmlfy": "^0.8.1",
|
||||
"hyparquet": "^1.9.0",
|
||||
"hyparquet-compressors": "^1.0.0",
|
||||
"iarna-toml-esm": "^3.0.5",
|
||||
"ibantools": "^4.5.1",
|
||||
"ical-generator": "^8.1.1",
|
||||
"ical.js": "^2.2.0",
|
||||
"ical.js": "^2.1.0",
|
||||
"iconv-lite": "^0.6.3",
|
||||
"image-in-browser": "^3.2.3",
|
||||
"image-in-browser": "^3.2.1",
|
||||
"image-to-ascii-art": "^0.0.4",
|
||||
"ip-address": "^10.0.0",
|
||||
"ip-bigint": "^8.2.1",
|
||||
"ip-address": "^9.0.5",
|
||||
"ip-bigint": "^8.2.0",
|
||||
"ip-cidr": "^4.0.2",
|
||||
"ip-matching": "^2.1.2",
|
||||
"ip-regex": "^5.0.0",
|
||||
"is-cidr": "^5.1.1",
|
||||
"is-cidr": "^5.1.0",
|
||||
"is-ip": "^5.0.1",
|
||||
"isbn3": "^1.2.12",
|
||||
"isbn3": "^1.2.7",
|
||||
"iso-639-1": "^3.1.5",
|
||||
"javastack.js": "^1.0.3",
|
||||
"jks-js": "^1.1.4",
|
||||
"jose": "^5.10.0",
|
||||
"jose": "^5.9.6",
|
||||
"jpeg-quality-estimator": "^1.0.1",
|
||||
"jq-wasm": "^1.0.0",
|
||||
"jq-wasm": "^0.0.9",
|
||||
"js-base64": "^3.7.7",
|
||||
"js-beautify": "^1.15.4",
|
||||
"jsbarcode": "^3.12.1",
|
||||
"js-beautify": "^1.15.2",
|
||||
"jsbarcode": "^3.11.6",
|
||||
"json-analyzer": "^1.2.2",
|
||||
"json-editor-vue": "^0.18.0",
|
||||
"json-editor-vue": "^0.16.0",
|
||||
"json-to-ts": "^1.7.0",
|
||||
"json5": "^2.2.3",
|
||||
"jsonar-mod": "^1.9.0",
|
||||
"jsonlint-mod": "^1.7.6",
|
||||
"jsonpath": "^1.1.1",
|
||||
"jsonrepair": "^3.13.0",
|
||||
"jsonrepair": "^3.12.0",
|
||||
"jsonschema-protobuf": "^1.0.2",
|
||||
"jsstack.js": "^2.0.0",
|
||||
"jsvat-next": "^3.0.4",
|
||||
"jszip": "^3.10.1",
|
||||
"jwt-decode": "^4.0.0",
|
||||
"korean-unpacker": "^1.0.3",
|
||||
"libmime": "^5.3.7",
|
||||
"libphonenumber-js": "^1.12.10",
|
||||
"libmime": "^5.3.6",
|
||||
"libphonenumber-js": "^1.11.19",
|
||||
"lodash": "^4.17.21",
|
||||
"lodash.defaultsdeep": "^4.6.1",
|
||||
"lodash.flattendeep": "^4.4.0",
|
||||
@@ -211,26 +201,25 @@
|
||||
"markdown-it-sub": "^2.0.0",
|
||||
"markdown-it-sup": "^2.0.0",
|
||||
"marked": "^10.0.0",
|
||||
"mathjs": "^14.5.3",
|
||||
"mathjs": "^14.2.1",
|
||||
"md-editor-v3": "^4.21.3",
|
||||
"memorystream": "^0.3.1",
|
||||
"merge-anything": "^6.0.6",
|
||||
"mermaid": "^11.9.0",
|
||||
"mermaid": "^11.6.0",
|
||||
"mime-types": "^2.1.35",
|
||||
"mitex-wasm": "^0.2.5",
|
||||
"moment": "^2.30.1",
|
||||
"monaco-editor": "^0.43.0",
|
||||
"morsee": "^1.0.10",
|
||||
"naive-ui": "^2.35.0",
|
||||
"nanoid": "^5.1.5",
|
||||
"nanoid": "^5.0.9",
|
||||
"nanoid-dictionary": "^4.3.0",
|
||||
"nestify-anything": "^3.0.3",
|
||||
"netmask": "^2.0.2",
|
||||
"netstack.js": "^2.1.2",
|
||||
"netstack.js": "^2.1.1",
|
||||
"nginx-config-formatter": "^1.4.5",
|
||||
"node-forge": "^1.3.1",
|
||||
"openpgp": "^6.2.0",
|
||||
"oui-data": "^1.1.391",
|
||||
"openpgp": "^6.1.0",
|
||||
"oui-data": "^1.1.281",
|
||||
"parse-duration": "^2.1.2",
|
||||
"parse-torrent": "^11.0.18",
|
||||
"paseto-ts": "^2.0.5",
|
||||
@@ -239,9 +228,8 @@
|
||||
"pdfjs-dist": "^4.8.69",
|
||||
"pinia": "^2.0.34",
|
||||
"plausible-tracker": "^0.3.9",
|
||||
"podletjs": "^1.0.2",
|
||||
"port-numbers": "^8.0.28",
|
||||
"postal-mime": "^2.4.4",
|
||||
"port-numbers": "^8.0.22",
|
||||
"postal-mime": "^2.4.3",
|
||||
"potrace": "^2.1.8",
|
||||
"pp-qr-code": "^0.6.4",
|
||||
"pretty-ms": "^9.2.0",
|
||||
@@ -261,71 +249,66 @@
|
||||
"safe-license-list": "^0.1.2",
|
||||
"sandybox": "^1.1.2",
|
||||
"sanitize-html": "^2.14.0",
|
||||
"shiki": "1.29.2",
|
||||
"silly-password-generator": "^1.0.29",
|
||||
"shiki": "1.22.2",
|
||||
"silly-password-generator": "^1.0.28",
|
||||
"slashes": "^3.0.12",
|
||||
"spdx-satisfies": "^5.0.1",
|
||||
"sql-formatter": "^15.6.6",
|
||||
"sql-formatter": "^15.5.1",
|
||||
"sshpk": "^1.18.0",
|
||||
"staveless-futhark": "^0.6.1",
|
||||
"stringify-object": "^5.0.0",
|
||||
"svg2png-wasm": "^1.4.1",
|
||||
"svgo": "^3.3.2",
|
||||
"swagger-ui-dist": "^5.27.0",
|
||||
"tesseract.js": "^5.1.1",
|
||||
"text-encoding-utf-8": "^1.0.2",
|
||||
"tick-time": "^1.0.1",
|
||||
"tidy-url": "^1.18.3",
|
||||
"to-double-quotes": "^4.0.0",
|
||||
"to-single-quotes": "^4.0.0",
|
||||
"turndown": "^7.2.0",
|
||||
"ua-parser-js": "^2.0.4",
|
||||
"ulid": "^2.4.0",
|
||||
"unicode-emoji-json": "^0.8.0",
|
||||
"ua-parser-js": "^2.0.1",
|
||||
"ulid": "^2.3.0",
|
||||
"unicode-emoji-json": "^0.4.0",
|
||||
"unique-random": "^4.0.0",
|
||||
"unixcrypt-browser": "^2.0.4",
|
||||
"unpdf": "^1.1.0",
|
||||
"unplugin-auto-import": "^0.16.4",
|
||||
"utf8": "^3.0.0",
|
||||
"uuid": "^11.1.0",
|
||||
"uuid": "^11.0.5",
|
||||
"vanilla-jsoneditor": "^0.23.8",
|
||||
"vue": "^3.3.4",
|
||||
"vue-color-wheel": "^0.1.1",
|
||||
"vue-i18n": "^11.1.9",
|
||||
"vue-loading-overlay": "^6.0",
|
||||
"vue-i18n": "^9.14.3",
|
||||
"vue-markdown-render": "^2.2.1",
|
||||
"vue-mathjax-next": "^0.0.6",
|
||||
"vue-router": "^4.1.6",
|
||||
"vue-shadow-dom": "^4.2.0",
|
||||
"vue-tsc": "^1.8.1",
|
||||
"vue3-flip-countdown": "^0.1.6",
|
||||
"vue3-fortune-wheel": "^2.0.5",
|
||||
"vuedraggable": "^4.1.0",
|
||||
"vuex": "^4.1.0",
|
||||
"w-websocket-client": "^1.0.29",
|
||||
"webcrack": "^2.15.0",
|
||||
"webcrypto-liner-shim": "^1.4.8",
|
||||
"webp-converter-browser": "^1.0.4",
|
||||
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz",
|
||||
"xml-formatter": "^3.6.6",
|
||||
"xml-formatter": "^3.6.4",
|
||||
"xml-js": "^1.6.11",
|
||||
"xpath": "^0.0.34",
|
||||
"xpath-to-css": "^1.2.0",
|
||||
"xslt-processor": "^3.3.1",
|
||||
"yaml": "^2.8.0"
|
||||
"yaml": "^2.7.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "^0.41.0",
|
||||
"@iconify-json/mdi": "^1.1.50",
|
||||
"@intlify/unplugin-vue-i18n": "^6.0.8",
|
||||
"@playwright/test": "^1.54.1",
|
||||
"@intlify/unplugin-vue-i18n": "^0.13.0",
|
||||
"@playwright/test": "^1.50.1",
|
||||
"@rushstack/eslint-patch": "^1.2.0",
|
||||
"@tsconfig/node18": "^18.2.0",
|
||||
"@types/arr-diff": "^4.0.3",
|
||||
"@types/bcryptjs": "^2.4.6",
|
||||
"@types/big.js": "^6.2.2",
|
||||
"@types/crypto-js": "^4.2.2",
|
||||
"@types/damerau-levenshtein": "^1.0.2",
|
||||
"@types/emscripten": "^1.40.1",
|
||||
"@types/dompurify": "^3.2.0",
|
||||
"@types/emscripten": "^1.40.0",
|
||||
"@types/figlet": "^1.7.0",
|
||||
"@types/har-format": "^1.2.16",
|
||||
"@types/hex-array": "^1.0.2",
|
||||
@@ -333,7 +316,7 @@
|
||||
"@types/jsdom": "^21.1.7",
|
||||
"@types/jsonpath": "^0.2.4",
|
||||
"@types/libmime": "^5.0.3",
|
||||
"@types/lodash": "^4.17.20",
|
||||
"@types/lodash": "^4.14.192",
|
||||
"@types/lodash.defaultsdeep": "^4.6.9",
|
||||
"@types/lodash.flattendeep": "^4.4.9",
|
||||
"@types/lodash.last": "^3.0.9",
|
||||
@@ -344,8 +327,8 @@
|
||||
"@types/morsee": "^1.0.2",
|
||||
"@types/nanoid-dictionary": "^4.2.3",
|
||||
"@types/netmask": "^2.0.5",
|
||||
"@types/node": "^18.19.120",
|
||||
"@types/node-forge": "^1.3.13",
|
||||
"@types/node": "^18.19.75",
|
||||
"@types/node-forge": "^1.3.11",
|
||||
"@types/potrace": "^2.1.5",
|
||||
"@types/punycode": "^2.1.4",
|
||||
"@types/qrcode": "^1.5.5",
|
||||
@@ -359,7 +342,7 @@
|
||||
"@types/utf8": "^3.0.3",
|
||||
"@types/uuid": "^9.0.8",
|
||||
"@unocss/eslint-config": "^0.57.1",
|
||||
"@vitejs/plugin-vue": "^4.3.4",
|
||||
"@vitejs/plugin-vue": "^4.3.2",
|
||||
"@vitejs/plugin-vue-jsx": "^3.0.2",
|
||||
"@vue/compiler-sfc": "^3.2.47",
|
||||
"@vue/runtime-dom": "^3.3.4",
|
||||
@@ -378,14 +361,12 @@
|
||||
"unplugin-icons": "^0.17.0",
|
||||
"unplugin-vue-components": "^0.25.0",
|
||||
"vite": "^4.4.9",
|
||||
"vite-plugin-node-polyfills": "^0.23.0",
|
||||
"vite-plugin-pwa": "^1.0.1",
|
||||
"vite-plugin-splash-screen": "^0.2.0",
|
||||
"unplugin-vue-markdown": "^29.1.0",
|
||||
"vite-plugin-node-polyfills": "^0.22.0",
|
||||
"vite-plugin-pwa": "^1.0.0",
|
||||
"vite-plugin-vue-markdown": "^0.23.5",
|
||||
"vite-plugin-wasm": "^3.4.1",
|
||||
"vite-svg-loader": "^4.0.0",
|
||||
"vitest": "^0.34.6",
|
||||
"vue-i18n-extract": "^2.0.7",
|
||||
"workbox-window": "^7.3.0",
|
||||
"zx": "^7.2.3"
|
||||
},
|
||||
@@ -393,8 +374,5 @@
|
||||
"overrides": {
|
||||
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"
|
||||
}
|
||||
},
|
||||
"scarfSettings": {
|
||||
"enabled": false
|
||||
}
|
||||
}
|
||||
Generated
+809
-1133
File diff suppressed because it is too large.
Load diff
Binary file not shown.
@@ -1,575 +0,0 @@
|
||||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
"use strict";
|
||||
|
||||
(() => {
|
||||
const enosys = () => {
|
||||
const err = new Error("not implemented");
|
||||
err.code = "ENOSYS";
|
||||
return err;
|
||||
};
|
||||
|
||||
if (!globalThis.fs) {
|
||||
let outputBuf = "";
|
||||
globalThis.fs = {
|
||||
constants: { O_WRONLY: -1, O_RDWR: -1, O_CREAT: -1, O_TRUNC: -1, O_APPEND: -1, O_EXCL: -1, O_DIRECTORY: -1 }, // unused
|
||||
writeSync(fd, buf) {
|
||||
outputBuf += decoder.decode(buf);
|
||||
const nl = outputBuf.lastIndexOf("\n");
|
||||
if (nl != -1) {
|
||||
console.log(outputBuf.substring(0, nl));
|
||||
outputBuf = outputBuf.substring(nl + 1);
|
||||
}
|
||||
return buf.length;
|
||||
},
|
||||
write(fd, buf, offset, length, position, callback) {
|
||||
if (offset !== 0 || length !== buf.length || position !== null) {
|
||||
callback(enosys());
|
||||
return;
|
||||
}
|
||||
const n = this.writeSync(fd, buf);
|
||||
callback(null, n);
|
||||
},
|
||||
chmod(path, mode, callback) { callback(enosys()); },
|
||||
chown(path, uid, gid, callback) { callback(enosys()); },
|
||||
close(fd, callback) { callback(enosys()); },
|
||||
fchmod(fd, mode, callback) { callback(enosys()); },
|
||||
fchown(fd, uid, gid, callback) { callback(enosys()); },
|
||||
fstat(fd, callback) { callback(enosys()); },
|
||||
fsync(fd, callback) { callback(null); },
|
||||
ftruncate(fd, length, callback) { callback(enosys()); },
|
||||
lchown(path, uid, gid, callback) { callback(enosys()); },
|
||||
link(path, link, callback) { callback(enosys()); },
|
||||
lstat(path, callback) { callback(enosys()); },
|
||||
mkdir(path, perm, callback) { callback(enosys()); },
|
||||
open(path, flags, mode, callback) { callback(enosys()); },
|
||||
read(fd, buffer, offset, length, position, callback) { callback(enosys()); },
|
||||
readdir(path, callback) { callback(enosys()); },
|
||||
readlink(path, callback) { callback(enosys()); },
|
||||
rename(from, to, callback) { callback(enosys()); },
|
||||
rmdir(path, callback) { callback(enosys()); },
|
||||
stat(path, callback) { callback(enosys()); },
|
||||
symlink(path, link, callback) { callback(enosys()); },
|
||||
truncate(path, length, callback) { callback(enosys()); },
|
||||
unlink(path, callback) { callback(enosys()); },
|
||||
utimes(path, atime, mtime, callback) { callback(enosys()); },
|
||||
};
|
||||
}
|
||||
|
||||
if (!globalThis.process) {
|
||||
globalThis.process = {
|
||||
getuid() { return -1; },
|
||||
getgid() { return -1; },
|
||||
geteuid() { return -1; },
|
||||
getegid() { return -1; },
|
||||
getgroups() { throw enosys(); },
|
||||
pid: -1,
|
||||
ppid: -1,
|
||||
umask() { throw enosys(); },
|
||||
cwd() { throw enosys(); },
|
||||
chdir() { throw enosys(); },
|
||||
}
|
||||
}
|
||||
|
||||
if (!globalThis.path) {
|
||||
globalThis.path = {
|
||||
resolve(...pathSegments) {
|
||||
return pathSegments.join("/");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!globalThis.crypto) {
|
||||
throw new Error("globalThis.crypto is not available, polyfill required (crypto.getRandomValues only)");
|
||||
}
|
||||
|
||||
if (!globalThis.performance) {
|
||||
throw new Error("globalThis.performance is not available, polyfill required (performance.now only)");
|
||||
}
|
||||
|
||||
if (!globalThis.TextEncoder) {
|
||||
throw new Error("globalThis.TextEncoder is not available, polyfill required");
|
||||
}
|
||||
|
||||
if (!globalThis.TextDecoder) {
|
||||
throw new Error("globalThis.TextDecoder is not available, polyfill required");
|
||||
}
|
||||
|
||||
const encoder = new TextEncoder("utf-8");
|
||||
const decoder = new TextDecoder("utf-8");
|
||||
|
||||
globalThis.Go = class {
|
||||
constructor() {
|
||||
this.argv = ["js"];
|
||||
this.env = {};
|
||||
this.exit = (code) => {
|
||||
if (code !== 0) {
|
||||
console.warn("exit code:", code);
|
||||
}
|
||||
};
|
||||
this._exitPromise = new Promise((resolve) => {
|
||||
this._resolveExitPromise = resolve;
|
||||
});
|
||||
this._pendingEvent = null;
|
||||
this._scheduledTimeouts = new Map();
|
||||
this._nextCallbackTimeoutID = 1;
|
||||
|
||||
const setInt64 = (addr, v) => {
|
||||
this.mem.setUint32(addr + 0, v, true);
|
||||
this.mem.setUint32(addr + 4, Math.floor(v / 4294967296), true);
|
||||
}
|
||||
|
||||
const setInt32 = (addr, v) => {
|
||||
this.mem.setUint32(addr + 0, v, true);
|
||||
}
|
||||
|
||||
const getInt64 = (addr) => {
|
||||
const low = this.mem.getUint32(addr + 0, true);
|
||||
const high = this.mem.getInt32(addr + 4, true);
|
||||
return low + high * 4294967296;
|
||||
}
|
||||
|
||||
const loadValue = (addr) => {
|
||||
const f = this.mem.getFloat64(addr, true);
|
||||
if (f === 0) {
|
||||
return undefined;
|
||||
}
|
||||
if (!isNaN(f)) {
|
||||
return f;
|
||||
}
|
||||
|
||||
const id = this.mem.getUint32(addr, true);
|
||||
return this._values[id];
|
||||
}
|
||||
|
||||
const storeValue = (addr, v) => {
|
||||
const nanHead = 0x7FF80000;
|
||||
|
||||
if (typeof v === "number" && v !== 0) {
|
||||
if (isNaN(v)) {
|
||||
this.mem.setUint32(addr + 4, nanHead, true);
|
||||
this.mem.setUint32(addr, 0, true);
|
||||
return;
|
||||
}
|
||||
this.mem.setFloat64(addr, v, true);
|
||||
return;
|
||||
}
|
||||
|
||||
if (v === undefined) {
|
||||
this.mem.setFloat64(addr, 0, true);
|
||||
return;
|
||||
}
|
||||
|
||||
let id = this._ids.get(v);
|
||||
if (id === undefined) {
|
||||
id = this._idPool.pop();
|
||||
if (id === undefined) {
|
||||
id = this._values.length;
|
||||
}
|
||||
this._values[id] = v;
|
||||
this._goRefCounts[id] = 0;
|
||||
this._ids.set(v, id);
|
||||
}
|
||||
this._goRefCounts[id]++;
|
||||
let typeFlag = 0;
|
||||
switch (typeof v) {
|
||||
case "object":
|
||||
if (v !== null) {
|
||||
typeFlag = 1;
|
||||
}
|
||||
break;
|
||||
case "string":
|
||||
typeFlag = 2;
|
||||
break;
|
||||
case "symbol":
|
||||
typeFlag = 3;
|
||||
break;
|
||||
case "function":
|
||||
typeFlag = 4;
|
||||
break;
|
||||
}
|
||||
this.mem.setUint32(addr + 4, nanHead | typeFlag, true);
|
||||
this.mem.setUint32(addr, id, true);
|
||||
}
|
||||
|
||||
const loadSlice = (addr) => {
|
||||
const array = getInt64(addr + 0);
|
||||
const len = getInt64(addr + 8);
|
||||
return new Uint8Array(this._inst.exports.mem.buffer, array, len);
|
||||
}
|
||||
|
||||
const loadSliceOfValues = (addr) => {
|
||||
const array = getInt64(addr + 0);
|
||||
const len = getInt64(addr + 8);
|
||||
const a = new Array(len);
|
||||
for (let i = 0; i < len; i++) {
|
||||
a[i] = loadValue(array + i * 8);
|
||||
}
|
||||
return a;
|
||||
}
|
||||
|
||||
const loadString = (addr) => {
|
||||
const saddr = getInt64(addr + 0);
|
||||
const len = getInt64(addr + 8);
|
||||
return decoder.decode(new DataView(this._inst.exports.mem.buffer, saddr, len));
|
||||
}
|
||||
|
||||
const testCallExport = (a, b) => {
|
||||
this._inst.exports.testExport0();
|
||||
return this._inst.exports.testExport(a, b);
|
||||
}
|
||||
|
||||
const timeOrigin = Date.now() - performance.now();
|
||||
this.importObject = {
|
||||
_gotest: {
|
||||
add: (a, b) => a + b,
|
||||
callExport: testCallExport,
|
||||
},
|
||||
gojs: {
|
||||
// Go's SP does not change as long as no Go code is running. Some operations (e.g. calls, getters and setters)
|
||||
// may synchronously trigger a Go event handler. This makes Go code get executed in the middle of the imported
|
||||
// function. A goroutine can switch to a new stack if the current stack is too small (see morestack function).
|
||||
// This changes the SP, thus we have to update the SP used by the imported function.
|
||||
|
||||
// func wasmExit(code int32)
|
||||
"runtime.wasmExit": (sp) => {
|
||||
sp >>>= 0;
|
||||
const code = this.mem.getInt32(sp + 8, true);
|
||||
this.exited = true;
|
||||
delete this._inst;
|
||||
delete this._values;
|
||||
delete this._goRefCounts;
|
||||
delete this._ids;
|
||||
delete this._idPool;
|
||||
this.exit(code);
|
||||
},
|
||||
|
||||
// func wasmWrite(fd uintptr, p unsafe.Pointer, n int32)
|
||||
"runtime.wasmWrite": (sp) => {
|
||||
sp >>>= 0;
|
||||
const fd = getInt64(sp + 8);
|
||||
const p = getInt64(sp + 16);
|
||||
const n = this.mem.getInt32(sp + 24, true);
|
||||
fs.writeSync(fd, new Uint8Array(this._inst.exports.mem.buffer, p, n));
|
||||
},
|
||||
|
||||
// func resetMemoryDataView()
|
||||
"runtime.resetMemoryDataView": (sp) => {
|
||||
sp >>>= 0;
|
||||
this.mem = new DataView(this._inst.exports.mem.buffer);
|
||||
},
|
||||
|
||||
// func nanotime1() int64
|
||||
"runtime.nanotime1": (sp) => {
|
||||
sp >>>= 0;
|
||||
setInt64(sp + 8, (timeOrigin + performance.now()) * 1000000);
|
||||
},
|
||||
|
||||
// func walltime() (sec int64, nsec int32)
|
||||
"runtime.walltime": (sp) => {
|
||||
sp >>>= 0;
|
||||
const msec = (new Date).getTime();
|
||||
setInt64(sp + 8, msec / 1000);
|
||||
this.mem.setInt32(sp + 16, (msec % 1000) * 1000000, true);
|
||||
},
|
||||
|
||||
// func scheduleTimeoutEvent(delay int64) int32
|
||||
"runtime.scheduleTimeoutEvent": (sp) => {
|
||||
sp >>>= 0;
|
||||
const id = this._nextCallbackTimeoutID;
|
||||
this._nextCallbackTimeoutID++;
|
||||
this._scheduledTimeouts.set(id, setTimeout(
|
||||
() => {
|
||||
this._resume();
|
||||
while (this._scheduledTimeouts.has(id)) {
|
||||
// for some reason Go failed to register the timeout event, log and try again
|
||||
// (temporary workaround for https://github.com/golang/go/issues/28975)
|
||||
console.warn("scheduleTimeoutEvent: missed timeout event");
|
||||
this._resume();
|
||||
}
|
||||
},
|
||||
getInt64(sp + 8),
|
||||
));
|
||||
this.mem.setInt32(sp + 16, id, true);
|
||||
},
|
||||
|
||||
// func clearTimeoutEvent(id int32)
|
||||
"runtime.clearTimeoutEvent": (sp) => {
|
||||
sp >>>= 0;
|
||||
const id = this.mem.getInt32(sp + 8, true);
|
||||
clearTimeout(this._scheduledTimeouts.get(id));
|
||||
this._scheduledTimeouts.delete(id);
|
||||
},
|
||||
|
||||
// func getRandomData(r []byte)
|
||||
"runtime.getRandomData": (sp) => {
|
||||
sp >>>= 0;
|
||||
crypto.getRandomValues(loadSlice(sp + 8));
|
||||
},
|
||||
|
||||
// func finalizeRef(v ref)
|
||||
"syscall/js.finalizeRef": (sp) => {
|
||||
sp >>>= 0;
|
||||
const id = this.mem.getUint32(sp + 8, true);
|
||||
this._goRefCounts[id]--;
|
||||
if (this._goRefCounts[id] === 0) {
|
||||
const v = this._values[id];
|
||||
this._values[id] = null;
|
||||
this._ids.delete(v);
|
||||
this._idPool.push(id);
|
||||
}
|
||||
},
|
||||
|
||||
// func stringVal(value string) ref
|
||||
"syscall/js.stringVal": (sp) => {
|
||||
sp >>>= 0;
|
||||
storeValue(sp + 24, loadString(sp + 8));
|
||||
},
|
||||
|
||||
// func valueGet(v ref, p string) ref
|
||||
"syscall/js.valueGet": (sp) => {
|
||||
sp >>>= 0;
|
||||
const result = Reflect.get(loadValue(sp + 8), loadString(sp + 16));
|
||||
sp = this._inst.exports.getsp() >>> 0; // see comment above
|
||||
storeValue(sp + 32, result);
|
||||
},
|
||||
|
||||
// func valueSet(v ref, p string, x ref)
|
||||
"syscall/js.valueSet": (sp) => {
|
||||
sp >>>= 0;
|
||||
Reflect.set(loadValue(sp + 8), loadString(sp + 16), loadValue(sp + 32));
|
||||
},
|
||||
|
||||
// func valueDelete(v ref, p string)
|
||||
"syscall/js.valueDelete": (sp) => {
|
||||
sp >>>= 0;
|
||||
Reflect.deleteProperty(loadValue(sp + 8), loadString(sp + 16));
|
||||
},
|
||||
|
||||
// func valueIndex(v ref, i int) ref
|
||||
"syscall/js.valueIndex": (sp) => {
|
||||
sp >>>= 0;
|
||||
storeValue(sp + 24, Reflect.get(loadValue(sp + 8), getInt64(sp + 16)));
|
||||
},
|
||||
|
||||
// valueSetIndex(v ref, i int, x ref)
|
||||
"syscall/js.valueSetIndex": (sp) => {
|
||||
sp >>>= 0;
|
||||
Reflect.set(loadValue(sp + 8), getInt64(sp + 16), loadValue(sp + 24));
|
||||
},
|
||||
|
||||
// func valueCall(v ref, m string, args []ref) (ref, bool)
|
||||
"syscall/js.valueCall": (sp) => {
|
||||
sp >>>= 0;
|
||||
try {
|
||||
const v = loadValue(sp + 8);
|
||||
const m = Reflect.get(v, loadString(sp + 16));
|
||||
const args = loadSliceOfValues(sp + 32);
|
||||
const result = Reflect.apply(m, v, args);
|
||||
sp = this._inst.exports.getsp() >>> 0; // see comment above
|
||||
storeValue(sp + 56, result);
|
||||
this.mem.setUint8(sp + 64, 1);
|
||||
} catch (err) {
|
||||
sp = this._inst.exports.getsp() >>> 0; // see comment above
|
||||
storeValue(sp + 56, err);
|
||||
this.mem.setUint8(sp + 64, 0);
|
||||
}
|
||||
},
|
||||
|
||||
// func valueInvoke(v ref, args []ref) (ref, bool)
|
||||
"syscall/js.valueInvoke": (sp) => {
|
||||
sp >>>= 0;
|
||||
try {
|
||||
const v = loadValue(sp + 8);
|
||||
const args = loadSliceOfValues(sp + 16);
|
||||
const result = Reflect.apply(v, undefined, args);
|
||||
sp = this._inst.exports.getsp() >>> 0; // see comment above
|
||||
storeValue(sp + 40, result);
|
||||
this.mem.setUint8(sp + 48, 1);
|
||||
} catch (err) {
|
||||
sp = this._inst.exports.getsp() >>> 0; // see comment above
|
||||
storeValue(sp + 40, err);
|
||||
this.mem.setUint8(sp + 48, 0);
|
||||
}
|
||||
},
|
||||
|
||||
// func valueNew(v ref, args []ref) (ref, bool)
|
||||
"syscall/js.valueNew": (sp) => {
|
||||
sp >>>= 0;
|
||||
try {
|
||||
const v = loadValue(sp + 8);
|
||||
const args = loadSliceOfValues(sp + 16);
|
||||
const result = Reflect.construct(v, args);
|
||||
sp = this._inst.exports.getsp() >>> 0; // see comment above
|
||||
storeValue(sp + 40, result);
|
||||
this.mem.setUint8(sp + 48, 1);
|
||||
} catch (err) {
|
||||
sp = this._inst.exports.getsp() >>> 0; // see comment above
|
||||
storeValue(sp + 40, err);
|
||||
this.mem.setUint8(sp + 48, 0);
|
||||
}
|
||||
},
|
||||
|
||||
// func valueLength(v ref) int
|
||||
"syscall/js.valueLength": (sp) => {
|
||||
sp >>>= 0;
|
||||
setInt64(sp + 16, parseInt(loadValue(sp + 8).length));
|
||||
},
|
||||
|
||||
// valuePrepareString(v ref) (ref, int)
|
||||
"syscall/js.valuePrepareString": (sp) => {
|
||||
sp >>>= 0;
|
||||
const str = encoder.encode(String(loadValue(sp + 8)));
|
||||
storeValue(sp + 16, str);
|
||||
setInt64(sp + 24, str.length);
|
||||
},
|
||||
|
||||
// valueLoadString(v ref, b []byte)
|
||||
"syscall/js.valueLoadString": (sp) => {
|
||||
sp >>>= 0;
|
||||
const str = loadValue(sp + 8);
|
||||
loadSlice(sp + 16).set(str);
|
||||
},
|
||||
|
||||
// func valueInstanceOf(v ref, t ref) bool
|
||||
"syscall/js.valueInstanceOf": (sp) => {
|
||||
sp >>>= 0;
|
||||
this.mem.setUint8(sp + 24, (loadValue(sp + 8) instanceof loadValue(sp + 16)) ? 1 : 0);
|
||||
},
|
||||
|
||||
// func copyBytesToGo(dst []byte, src ref) (int, bool)
|
||||
"syscall/js.copyBytesToGo": (sp) => {
|
||||
sp >>>= 0;
|
||||
const dst = loadSlice(sp + 8);
|
||||
const src = loadValue(sp + 32);
|
||||
if (!(src instanceof Uint8Array || src instanceof Uint8ClampedArray)) {
|
||||
this.mem.setUint8(sp + 48, 0);
|
||||
return;
|
||||
}
|
||||
const toCopy = src.subarray(0, dst.length);
|
||||
dst.set(toCopy);
|
||||
setInt64(sp + 40, toCopy.length);
|
||||
this.mem.setUint8(sp + 48, 1);
|
||||
},
|
||||
|
||||
// func copyBytesToJS(dst ref, src []byte) (int, bool)
|
||||
"syscall/js.copyBytesToJS": (sp) => {
|
||||
sp >>>= 0;
|
||||
const dst = loadValue(sp + 8);
|
||||
const src = loadSlice(sp + 16);
|
||||
if (!(dst instanceof Uint8Array || dst instanceof Uint8ClampedArray)) {
|
||||
this.mem.setUint8(sp + 48, 0);
|
||||
return;
|
||||
}
|
||||
const toCopy = src.subarray(0, dst.length);
|
||||
dst.set(toCopy);
|
||||
setInt64(sp + 40, toCopy.length);
|
||||
this.mem.setUint8(sp + 48, 1);
|
||||
},
|
||||
|
||||
"debug": (value) => {
|
||||
console.log(value);
|
||||
},
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
async run(instance) {
|
||||
if (!(instance instanceof WebAssembly.Instance)) {
|
||||
throw new Error("Go.run: WebAssembly.Instance expected");
|
||||
}
|
||||
this._inst = instance;
|
||||
this.mem = new DataView(this._inst.exports.mem.buffer);
|
||||
this._values = [ // JS values that Go currently has references to, indexed by reference id
|
||||
NaN,
|
||||
0,
|
||||
null,
|
||||
true,
|
||||
false,
|
||||
globalThis,
|
||||
this,
|
||||
];
|
||||
this._goRefCounts = new Array(this._values.length).fill(Infinity); // number of references that Go has to a JS value, indexed by reference id
|
||||
this._ids = new Map([ // mapping from JS values to reference ids
|
||||
[0, 1],
|
||||
[null, 2],
|
||||
[true, 3],
|
||||
[false, 4],
|
||||
[globalThis, 5],
|
||||
[this, 6],
|
||||
]);
|
||||
this._idPool = []; // unused ids that have been garbage collected
|
||||
this.exited = false; // whether the Go program has exited
|
||||
|
||||
// Pass command line arguments and environment variables to WebAssembly by writing them to the linear memory.
|
||||
let offset = 4096;
|
||||
|
||||
const strPtr = (str) => {
|
||||
const ptr = offset;
|
||||
const bytes = encoder.encode(str + "\0");
|
||||
new Uint8Array(this.mem.buffer, offset, bytes.length).set(bytes);
|
||||
offset += bytes.length;
|
||||
if (offset % 8 !== 0) {
|
||||
offset += 8 - (offset % 8);
|
||||
}
|
||||
return ptr;
|
||||
};
|
||||
|
||||
const argc = this.argv.length;
|
||||
|
||||
const argvPtrs = [];
|
||||
this.argv.forEach((arg) => {
|
||||
argvPtrs.push(strPtr(arg));
|
||||
});
|
||||
argvPtrs.push(0);
|
||||
|
||||
const keys = Object.keys(this.env).sort();
|
||||
keys.forEach((key) => {
|
||||
argvPtrs.push(strPtr(`${key}=${this.env[key]}`));
|
||||
});
|
||||
argvPtrs.push(0);
|
||||
|
||||
const argv = offset;
|
||||
argvPtrs.forEach((ptr) => {
|
||||
this.mem.setUint32(offset, ptr, true);
|
||||
this.mem.setUint32(offset + 4, 0, true);
|
||||
offset += 8;
|
||||
});
|
||||
|
||||
// The linker guarantees global data starts from at least wasmMinDataAddr.
|
||||
// Keep in sync with cmd/link/internal/ld/data.go:wasmMinDataAddr.
|
||||
const wasmMinDataAddr = 4096 + 8192;
|
||||
if (offset >= wasmMinDataAddr) {
|
||||
throw new Error("total length of command line and environment variables exceeds limit");
|
||||
}
|
||||
|
||||
this._inst.exports.run(argc, argv);
|
||||
if (this.exited) {
|
||||
this._resolveExitPromise();
|
||||
}
|
||||
await this._exitPromise;
|
||||
}
|
||||
|
||||
_resume() {
|
||||
if (this.exited) {
|
||||
throw new Error("Go program has already exited");
|
||||
}
|
||||
this._inst.exports.resume();
|
||||
if (this.exited) {
|
||||
this._resolveExitPromise();
|
||||
}
|
||||
}
|
||||
|
||||
_makeFuncWrapper(id) {
|
||||
const go = this;
|
||||
return function () {
|
||||
const event = { id: id, this: this, args: arguments };
|
||||
go._pendingEvent = event;
|
||||
go._resume();
|
||||
return event.result;
|
||||
};
|
||||
}
|
||||
}
|
||||
})();
|
||||
-117
@@ -1,117 +0,0 @@
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
|
||||
<path fill="#18A058" opacity="1.000000" stroke="none" d="
|
||||
M285.000000,513.000000
|
||||
C266.979095,513.000000 248.958206,513.000000 230.615494,512.644287
|
||||
C229.968979,511.921387 229.716232,511.382812 229.309113,511.211853
|
||||
C218.396698,506.628937 213.003540,498.729675 212.999954,487.251953
|
||||
C212.998291,481.919189 213.069885,476.585052 212.971207,471.254089
|
||||
C212.900787,467.449951 212.103973,464.263245 207.588333,462.976166
|
||||
C197.812027,460.189667 188.161697,456.964111 178.432053,454.009644
|
||||
C174.416306,452.790222 174.210861,451.195892 177.154800,448.277527
|
||||
C193.368622,432.204376 209.452194,415.999878 225.643829,399.904205
|
||||
C228.649826,396.916077 231.776611,394.111877 236.750610,395.911224
|
||||
C239.017761,396.731354 241.623001,397.033478 244.047836,396.930908
|
||||
C256.271179,396.413727 268.584656,396.448700 280.683228,394.878082
|
||||
C308.709534,391.239777 332.460785,378.020538 353.019287,359.258087
|
||||
C368.025909,345.562500 379.164703,328.894348 387.080200,310.008087
|
||||
C397.514709,285.111481 400.190918,259.095978 395.580444,233.039902
|
||||
C388.452637,192.756897 367.372803,160.549133 332.674225,138.356888
|
||||
C306.592529,121.675720 277.948334,114.135246 246.629364,116.773010
|
||||
C233.331314,117.893005 220.561539,120.401459 208.240204,125.109039
|
||||
C174.324066,138.067276 148.734146,160.636047 132.096924,192.952316
|
||||
C124.606049,207.502655 119.021263,222.883041 118.082573,239.389465
|
||||
C117.436966,250.742188 118.060280,262.162384 117.890938,273.549103
|
||||
C117.818344,278.430389 120.050224,283.121490 114.951683,287.920319
|
||||
C98.213287,303.674896 82.262794,320.266083 65.978798,336.504974
|
||||
C64.893883,337.586884 63.552643,338.411804 61.379997,340.090973
|
||||
C57.091328,326.843109 53.126518,314.595673 48.724842,300.998749
|
||||
C40.811443,300.998749 32.375408,301.257568 23.963419,300.918945
|
||||
C16.905138,300.634827 11.062209,297.534576 6.861771,291.627380
|
||||
C5.004858,289.015961 2.959697,286.538361 1.000002,284.000000
|
||||
C1.000000,266.312439 1.000000,248.624878 1.351752,230.620483
|
||||
C2.110438,229.819885 2.644665,229.396179 2.905443,228.843460
|
||||
C7.729964,218.617569 14.869195,212.362228 27.081358,212.855576
|
||||
C34.470955,213.154099 41.917923,212.032501 49.503120,211.538284
|
||||
C49.930244,210.460617 50.472652,209.275940 50.876099,208.045715
|
||||
C54.957413,195.600723 58.443336,182.920807 63.269257,170.772751
|
||||
C66.875496,161.694946 72.310219,153.353683 76.643616,144.543213
|
||||
C77.268799,143.272110 76.875984,140.710388 75.940704,139.598450
|
||||
C71.893585,134.786926 67.613625,130.147751 63.154736,125.710793
|
||||
C52.409088,115.017990 53.175587,99.068611 63.065083,88.529762
|
||||
C71.609055,79.424789 80.590767,70.722450 89.546265,62.014179
|
||||
C97.946587,53.845749 111.478111,52.299988 120.879387,59.132851
|
||||
C127.269226,63.776997 132.789154,69.641991 138.549271,75.117599
|
||||
C141.096039,77.538582 143.340576,78.395378 146.041687,75.498436
|
||||
C146.691711,74.801285 147.627441,74.343666 148.483658,73.869568
|
||||
C167.675156,63.242867 187.640701,54.595615 209.176758,49.855827
|
||||
C210.299286,49.608776 211.774704,47.775528 211.871597,46.582169
|
||||
C212.446533,39.500645 212.726669,32.392342 212.984604,25.288631
|
||||
C213.331390,15.737711 217.675217,8.711089 225.940353,3.966579
|
||||
C227.134415,3.281146 227.988556,2.003553 229.000000,0.999998
|
||||
C247.687561,1.000000 266.375122,1.000000 285.359344,1.336950
|
||||
C286.272583,2.180966 286.854462,2.738805 287.510956,3.187436
|
||||
C296.266235,9.170486 302.408325,16.622066 302.020691,28.003832
|
||||
C301.833649,33.495098 302.148804,39.003735 301.951874,44.494297
|
||||
C301.831512,47.849655 302.857178,49.239353 306.377594,50.148369
|
||||
C327.956940,55.720463 348.893555,62.973309 367.444214,75.796150
|
||||
C370.798370,78.114670 373.444916,77.062447 375.978302,74.521271
|
||||
C379.859924,70.627731 383.743927,66.736534 387.640076,62.857548
|
||||
C398.375732,52.169086 414.620026,52.131424 425.267944,62.769962
|
||||
C434.172485,71.666710 443.086761,80.553810 451.964233,89.477501
|
||||
C459.245544,96.796661 461.926941,109.059235 456.393982,117.669823
|
||||
C451.364594,125.496826 444.546387,132.213898 438.206146,139.135773
|
||||
C436.225037,141.298630 436.083069,142.749924 437.540405,145.062164
|
||||
C439.908752,148.819778 442.059357,152.717621 444.228027,156.597549
|
||||
C453.361237,172.937195 459.384766,190.456528 464.092468,208.502213
|
||||
C464.453613,209.886566 466.388580,211.706345 467.741180,211.842621
|
||||
C474.318298,212.505280 480.963654,213.134338 487.552246,212.891495
|
||||
C497.872620,212.511093 504.715637,217.453522 509.969666,225.663666
|
||||
C510.616699,226.674789 511.972595,227.232300 513.000000,228.000000
|
||||
C513.000000,246.687561 513.000000,265.375122 512.662354,284.359100
|
||||
C511.733185,285.415466 511.016571,286.108582 510.569366,286.945587
|
||||
C505.407562,296.606781 497.500641,301.249237 486.426849,301.091187
|
||||
C479.178955,300.987701 471.918579,301.757996 464.467834,302.147156
|
||||
C459.001740,326.397308 450.286987,349.124634 436.827209,369.930664
|
||||
C436.250122,370.822754 437.111023,373.336243 438.068176,374.414185
|
||||
C443.129181,380.114044 448.515259,385.523651 453.638641,391.169983
|
||||
C461.341797,399.659515 460.459839,415.641815 452.969604,423.440735
|
||||
C444.318268,432.448608 435.314056,441.116486 426.531677,449.999786
|
||||
C413.941711,462.734406 397.257568,460.938751 386.910645,449.494751
|
||||
C383.240326,445.435242 379.091583,441.804901 375.117126,438.025024
|
||||
C372.746674,435.770630 370.486420,435.932892 367.662201,437.755432
|
||||
C355.187897,445.805359 341.869110,452.212799 327.777374,456.885681
|
||||
C319.284332,459.701996 310.640045,462.062256 301.998688,464.646912
|
||||
C301.998688,471.018707 302.134674,477.013062 301.970062,482.999146
|
||||
C301.639496,495.017059 298.419830,505.484009 286.312378,510.981781
|
||||
C285.696442,511.261444 285.429443,512.309631 285.000000,513.000000
|
||||
z"/>
|
||||
<path fill="#1E1E1E" opacity="1.000000" stroke="none" d="
|
||||
M1.000004,456.468628
|
||||
C1.822166,454.797089 2.628374,453.582886 3.469247,452.393158
|
||||
C6.999179,447.398895 9.930220,441.810699 14.169559,437.514587
|
||||
C60.265923,390.800812 106.535835,344.257965 152.881363,297.791077
|
||||
C156.198288,294.465485 156.603577,291.568451 155.325211,287.178467
|
||||
C141.467667,239.591599 161.330902,188.747421 204.424301,164.305359
|
||||
C220.242783,155.333313 237.368484,150.577866 255.422409,150.416046
|
||||
C264.268372,150.336792 273.314178,151.927124 281.942780,154.074677
|
||||
C290.435120,156.188293 293.762177,166.385971 289.236664,173.953033
|
||||
C287.802948,176.350311 285.872772,178.503738 283.921600,180.529770
|
||||
C272.487274,192.402817 260.909668,204.138321 249.516190,216.050156
|
||||
C238.393982,227.678391 238.816269,247.758820 249.284225,259.941101
|
||||
C264.351624,277.476074 288.225739,275.449402 301.992401,260.722168
|
||||
C312.778595,249.183380 324.529144,238.540146 335.951752,227.604050
|
||||
C345.195679,218.753845 358.541260,222.312363 361.014587,234.815887
|
||||
C365.302612,256.493622 363.763580,277.758209 354.910248,298.393768
|
||||
C345.507751,320.309265 330.715363,337.234406 310.032440,348.956696
|
||||
C283.600494,363.937286 255.641647,366.796692 226.573334,358.503540
|
||||
C222.005630,357.200348 219.181458,358.174500 216.019226,361.360992
|
||||
C184.680542,392.939728 153.300262,424.477997 121.775734,455.871094
|
||||
C106.087929,471.493469 90.260460,486.987579 74.092552,502.108154
|
||||
C69.576103,506.332062 63.622486,509.019257 58.164070,512.705688
|
||||
C49.645767,513.000000 41.291534,513.000000 32.304932,512.705200
|
||||
C30.146564,511.452087 28.703566,510.314148 27.081211,509.564240
|
||||
C15.867707,504.380951 8.051239,496.012604 3.304708,484.657959
|
||||
C2.756540,483.346649 1.778662,482.214966 1.000009,481.000000
|
||||
C1.000000,472.979095 1.000000,464.958191 1.000004,456.468628
|
||||
z"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 7.6 KiB |
@@ -1,71 +0,0 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import yaml from 'yaml';
|
||||
|
||||
const toolsDir = 'src/tools';
|
||||
const localesFile = 'locales/en.yml';
|
||||
|
||||
// Load existing locales file or initialize an empty object
|
||||
let localesData = {};
|
||||
if (fs.existsSync(localesFile)) {
|
||||
localesData = yaml.parse(fs.readFileSync(localesFile, 'utf-8')) || {};
|
||||
}
|
||||
|
||||
function processFile(filePath) {
|
||||
const parentDir = path.basename(path.dirname(filePath)); // Get parent directory name
|
||||
const originalContent = fs.readFileSync(filePath, 'utf-8');
|
||||
|
||||
// Extract existing name and description values
|
||||
const nameMatch = originalContent.match(/name: '(.*?)'/);
|
||||
const descriptionMatch = originalContent.match(/description: '(.*?)'/);
|
||||
|
||||
if (!nameMatch || !descriptionMatch) {
|
||||
console.warn(`Skipping ${filePath}: Unable to extract name or description.`);
|
||||
return;
|
||||
}
|
||||
|
||||
const nameValue = nameMatch[1];
|
||||
const descriptionValue = descriptionMatch[1];
|
||||
|
||||
// Modify name and description to use the translate function
|
||||
const transformedContent = originalContent
|
||||
.replace(/name: '((?:[^']+|(?<=\\)')+)'/, `name: t('tools.${parentDir}.title')`)
|
||||
.replace(/description: '((?:[^']+|(?<=\\)')+)'/, `description: t('tools.${parentDir}.description')`);
|
||||
|
||||
fs.writeFileSync(filePath, `import { translate as t } from '@/plugins/i18n.plugin';\n${transformedContent}`, 'utf-8');
|
||||
console.log(`Transformed: ${filePath}`);
|
||||
|
||||
// Update locales file with extracted name and description
|
||||
if (!localesData.tools) {
|
||||
localesData.tools = {};
|
||||
}
|
||||
localesData.tools[parentDir] = {
|
||||
...localesData.tools[parentDir],
|
||||
title: nameValue,
|
||||
description: descriptionValue,
|
||||
};
|
||||
}
|
||||
|
||||
function iterateFolder(folderPath) {
|
||||
const items = fs.readdirSync(folderPath);
|
||||
|
||||
items.forEach((item) => {
|
||||
const itemPath = path.join(folderPath, item);
|
||||
const stat = fs.statSync(itemPath);
|
||||
|
||||
if (stat.isDirectory()) {
|
||||
iterateFolder(itemPath);
|
||||
}
|
||||
else if (item === 'index.ts') {
|
||||
processFile(itemPath);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Run transformations
|
||||
iterateFolder(toolsDir);
|
||||
|
||||
// Write back the updated locales file
|
||||
fs.writeFileSync(localesFile, yaml.stringify(localesData), 'utf-8');
|
||||
console.log('Locales file updated!');
|
||||
console.log('Transformation completed!');
|
||||
@@ -1,136 +0,0 @@
|
||||
import fs from 'node:fs';
|
||||
import path, { basename } from 'node:path';
|
||||
import process from 'node:process';
|
||||
import yaml from 'yaml';
|
||||
|
||||
const toolsDir = 'src/tools';
|
||||
const localesFile = 'locales/en.yml';
|
||||
|
||||
// Load existing locales file or initialize an empty object
|
||||
let localesData = {};
|
||||
if (fs.existsSync(localesFile)) {
|
||||
localesData = yaml.parse(fs.readFileSync(localesFile, 'utf-8')) || {};
|
||||
}
|
||||
|
||||
// Function to process Vue components in a directory
|
||||
function processVueComponents(toolDir, toolName) {
|
||||
fs.readdirSync(toolDir)
|
||||
.filter(file => file.endsWith('.vue'))
|
||||
.forEach(file => processVueComponent(path.join(toolDir, file), toolName));
|
||||
}
|
||||
|
||||
// Function to process a Vue component file
|
||||
function processVueComponent(filePath, toolName) {
|
||||
console.log(`Processing ${filePath} in ${toolName}`);
|
||||
|
||||
let content = fs.readFileSync(filePath, 'utf8');
|
||||
const origContent = content;
|
||||
|
||||
// Update locales file with extracted name and description
|
||||
if (!localesData.tools) {
|
||||
localesData.tools = {};
|
||||
}
|
||||
if (!localesData.tools[toolName]) {
|
||||
localesData.tools[toolName] = {};
|
||||
}
|
||||
|
||||
// Regex to find label or placeholder attributes
|
||||
let regex = /\b(label|text|message):\s*'((?:[^']|\\')+)'/g;
|
||||
content = content.replace(regex, (match, attr, text) => {
|
||||
if (!text?.trim()) {
|
||||
return match;
|
||||
}
|
||||
const key = (attr + '-' + text.replace(/[\p{P}\p{S}\s]+/gu, '-').replace(/^-+|-+$/g, '').replace(/-+/g, '-')).toLowerCase();
|
||||
if (!localesData.tools[toolName].texts) {
|
||||
localesData.tools[toolName].texts = {};
|
||||
}
|
||||
localesData.tools[toolName].texts[key] = text;
|
||||
return `${attr}: t('tools.${toolName}.texts.${key}')`;
|
||||
});
|
||||
|
||||
if (filePath.endsWith('.vue')) {
|
||||
// Regex to find label or placeholder attributes
|
||||
regex = /(?<!:)((?:input-|output-)?(?:label|placeholder|title))="([^"]+)"/g;
|
||||
content = content.replace(regex, (match, attr, text) => {
|
||||
if (!text?.trim()) {
|
||||
return match;
|
||||
}
|
||||
const key = (attr + '-' + text.replace(/[\p{P}\p{S}\s]+/gu, '-').replace(/^-+|-+$/g, '').replace(/-+/g, '-')).toLowerCase();
|
||||
if (!localesData.tools[toolName].texts) {
|
||||
localesData.tools[toolName].texts = {};
|
||||
}
|
||||
localesData.tools[toolName].texts[key] = text;
|
||||
return `:${attr}="t('tools.${toolName}.texts.${key}')"`;
|
||||
});
|
||||
|
||||
// Regex to find text inside HTML tags
|
||||
const textInsideTagsRegex = /(?<!=)\>(?:\n\s*)?([^\<\>\n]+)(?:\n\s*)?\</g;
|
||||
content = content.replace(textInsideTagsRegex, (match, text) => {
|
||||
if (!text?.trim()) {
|
||||
return match;
|
||||
}
|
||||
if (text.match(/[\}\{\|\[\<\>\]]/)) {
|
||||
return match;
|
||||
}
|
||||
const key = ('tag-' + text.trim().replace(/[\p{P}\p{S}\s]+/gu, '-').replace(/^-+|-+$/g, '').replace(/-+/g, '-')).toLowerCase();
|
||||
if (!localesData.tools[toolName].texts) {
|
||||
localesData.tools[toolName].texts = {};
|
||||
}
|
||||
localesData.tools[toolName].texts[key] = text.trim();
|
||||
return `>{{ t('tools.${toolName}.texts.${key}') }}<`;
|
||||
});
|
||||
}
|
||||
|
||||
if (origContent === content) {
|
||||
console.log(`Nothing to extract in ${filePath}`);
|
||||
return;
|
||||
}
|
||||
|
||||
if (filePath.endsWith('.vue')) {
|
||||
// Ensure the useI18n import exists
|
||||
if (!content.includes("const { t } = useI18n();")) {
|
||||
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';")) {
|
||||
content = 'import { translate as t } from "@/plugins/i18n.plugin";\n' + content;
|
||||
}
|
||||
}
|
||||
fs.writeFileSync(filePath, content, 'utf8');
|
||||
console.log(`Processed: ${filePath}`);
|
||||
}
|
||||
|
||||
const localFileOrDir = process.argv[2];
|
||||
if (localFileOrDir) {
|
||||
if (fs.statSync(localFileOrDir).isDirectory()) {
|
||||
fs.readdirSync(localFileOrDir)
|
||||
.filter((fileName) => {
|
||||
const filePath = path.join(localFileOrDir, fileName);
|
||||
return fs.statSync(filePath).isFile();
|
||||
})
|
||||
.forEach((fileName) => {
|
||||
const filePath = path.join(localFileOrDir, fileName);
|
||||
processVueComponent(filePath, process.argv[3] || basename(localFileOrDir));
|
||||
});
|
||||
} else {
|
||||
processVueComponent(localFileOrDir, process.argv[3] || basename(localFileOrDir));
|
||||
}
|
||||
} else {
|
||||
fs.readdirSync(toolsDir)
|
||||
.filter((toolName) => {
|
||||
const toolPath = path.join(toolsDir, toolName);
|
||||
return fs.statSync(toolPath).isDirectory();
|
||||
})
|
||||
.forEach((toolName) => {
|
||||
const toolPath = path.join(toolsDir, toolName);
|
||||
console.log(`Processing tool: ${toolName}`);
|
||||
processVueComponents(toolPath, toolName);
|
||||
});
|
||||
}
|
||||
|
||||
// Write back the updated locales file
|
||||
fs.writeFileSync(localesFile, yaml.stringify(localesData), 'utf-8');
|
||||
console.log('Locales file updated!');
|
||||
console.log('Transformation completed!');
|
||||
-14
@@ -49,18 +49,4 @@ html {
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body .vld-container {
|
||||
position:absolute;
|
||||
left:0;
|
||||
top:0;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background-color: #101014;
|
||||
z-index: 9999;
|
||||
text-align: center;
|
||||
}
|
||||
body .vld-container .vl-overlay.vl-active {
|
||||
margin-top: 15%;
|
||||
}
|
||||
</style>
|
||||
@@ -1,4 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 275" preserveAspectRatio="none">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 275">
|
||||
<defs>
|
||||
<linearGradient id="small-hero-gradient-1" x1="13.74" y1="183.7" x2="303.96" y2="45.59" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" stop-color="#25636c"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 921 B After Width: | Height: | Size: 894 B |
@@ -1,16 +1,15 @@
|
||||
<script setup lang="ts">
|
||||
import { useStorage } from '@vueuse/core';
|
||||
import { useThemeVars } from 'naive-ui';
|
||||
import { useRoute } from 'vue-router';
|
||||
import { RouterLink, useRoute } from 'vue-router';
|
||||
import MenuIconItem from './MenuIconItem.vue';
|
||||
import MenuItemWithTooltip from './MenuItemTooltip.vue';
|
||||
import type { Tool, ToolCategory } from '@/tools/tools.types';
|
||||
|
||||
const props = withDefaults(defineProps<{ toolsByCategory?: ToolCategory[] }>(), { toolsByCategory: () => [] });
|
||||
const { toolsByCategory } = toRefs(props);
|
||||
const route = useRoute();
|
||||
|
||||
const makeLabel = (tool: Tool) => () => h(MenuItemWithTooltip, { tool });
|
||||
const makeLabel = (tool: Tool) => () => h(RouterLink, { to: tool.path }, { default: () => tool.name });
|
||||
const makeIcon = (tool: Tool) => () => h(MenuIconItem, { tool });
|
||||
|
||||
const collapsedCategories = useStorage<Record<string, boolean>>(
|
||||
@@ -26,64 +25,37 @@ const collapsedCategories = useStorage<Record<string, boolean>>(
|
||||
},
|
||||
);
|
||||
|
||||
// Initialize default values for all categories
|
||||
watchEffect(() => {
|
||||
toolsByCategory.value.forEach(({ name }) => {
|
||||
if (!(name in collapsedCategories.value)) {
|
||||
collapsedCategories.value[name] = true;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
const isToggling = ref(false);
|
||||
|
||||
function toggleCategoryCollapse({ name }: { name: string }) {
|
||||
const currentState = collapsedCategories.value[name];
|
||||
collapsedCategories.value[name] = !currentState;
|
||||
collapsedCategories.value[name] = !collapsedCategories.value[name];
|
||||
}
|
||||
|
||||
/**
|
||||
* areAllCollapsed (new)
|
||||
* --------------------------------------------------------------------------
|
||||
* A computed property that checks if all categories are collapsed.
|
||||
* - If even one category is expanded (false), this becomes false.
|
||||
* - If no categories are found or all are collapsed (true), it becomes true.
|
||||
*/
|
||||
const areAllCollapsed = computed(() => {
|
||||
return toolsByCategory.value.every(({ name }) =>
|
||||
collapsedCategories.value[name] !== false,
|
||||
);
|
||||
return toolsByCategory.value.every(({ name }) => collapsedCategories.value[name] !== false);
|
||||
});
|
||||
|
||||
async function toggleAllCategories() {
|
||||
if (isToggling.value) {
|
||||
return;
|
||||
}
|
||||
|
||||
isToggling.value = true;
|
||||
|
||||
const shouldCollapse = !areAllCollapsed.value;
|
||||
const updates: Record<string, boolean> = {};
|
||||
|
||||
/**
|
||||
* toggleAllCategories (new)
|
||||
* --------------------------------------------------------------------------
|
||||
* If all categories are collapsed, expand them all; otherwise, collapse them all.
|
||||
*/
|
||||
function toggleAllCategories() {
|
||||
const nextState = !areAllCollapsed.value;
|
||||
toolsByCategory.value.forEach(({ name }) => {
|
||||
updates[name] = shouldCollapse;
|
||||
collapsedCategories.value[name] = nextState;
|
||||
});
|
||||
|
||||
Object.assign(collapsedCategories.value, updates);
|
||||
|
||||
await nextTick();
|
||||
isToggling.value = false;
|
||||
}
|
||||
|
||||
// Function to calculate animation duration based on number of items
|
||||
function getAnimationDuration(itemCount: number): number {
|
||||
const baseDuration = 325;
|
||||
const baseItemCount = 10;
|
||||
const durationIncrement = 5;
|
||||
|
||||
const additionalDuration = (itemCount - baseItemCount) * durationIncrement;
|
||||
|
||||
return Math.max(baseDuration + additionalDuration, baseDuration);
|
||||
}
|
||||
};
|
||||
|
||||
const menuOptions = computed(() =>
|
||||
toolsByCategory.value.map(({ name, components }) => ({
|
||||
name,
|
||||
isCollapsed: collapsedCategories.value[name],
|
||||
animationDuration: getAnimationDuration(components.length),
|
||||
isCollapsed: collapsedCategories.value[name] === undefined ? true : collapsedCategories.value[name], // default to collapsed if not set
|
||||
tools: components.map(tool => ({
|
||||
label: makeLabel(tool),
|
||||
icon: makeIcon(tool),
|
||||
@@ -96,23 +68,19 @@ const themeVars = useThemeVars();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="top-controls" mb-12px ml-12px>
|
||||
<c-button :disabled="isToggling" @click="toggleAllCategories">
|
||||
<span v-if="isToggling">
|
||||
{{ areAllCollapsed ? 'Expanding...' : 'Collapsing...' }}
|
||||
</span>
|
||||
<span v-else>
|
||||
{{ areAllCollapsed ? 'Expand All Tools' : 'Collapse All Tools' }}
|
||||
</span>
|
||||
<!--
|
||||
A button at the top to expand or collapse all categories at once.
|
||||
- Uses areAllCollapsed to determine the label ("Expand All" vs. "Collapse All").
|
||||
- Calls toggleAllCategories() on click.
|
||||
-->
|
||||
<div class="top-controls" ml-6px>
|
||||
<c-button @click="toggleAllCategories">
|
||||
{{ areAllCollapsed ? 'Expand All Tools' : 'Collapse All Tools' }}
|
||||
</c-button>
|
||||
</div>
|
||||
|
||||
<div v-for="{ name, tools, isCollapsed, animationDuration } of menuOptions" :key="name" class="category-container">
|
||||
<button
|
||||
class="category-button"
|
||||
flex cursor-pointer items-center op-60
|
||||
@click="toggleCategoryCollapse({ name })"
|
||||
>
|
||||
<div v-for="{ name, tools, isCollapsed } of menuOptions" :key="name">
|
||||
<div ml-6px mt-12px flex cursor-pointer items-center op-60 @click="toggleCategoryCollapse({ name })">
|
||||
<span :class="{ 'rotate-0': isCollapsed, 'rotate-90': !isCollapsed }" text-16px lh-1 op-50 transition-transform>
|
||||
<icon-mdi-chevron-right />
|
||||
</span>
|
||||
@@ -120,13 +88,9 @@ const themeVars = useThemeVars();
|
||||
<span ml-8px text-13px>
|
||||
{{ name }}
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="menu-container"
|
||||
:class="{ collapsed: isCollapsed }"
|
||||
:style="{ '--animation-duration': `${animationDuration}ms` }"
|
||||
>
|
||||
<n-collapse-transition :show="!isCollapsed">
|
||||
<div class="menu-wrapper">
|
||||
<div class="toggle-bar" @click="toggleCategoryCollapse({ name })" />
|
||||
|
||||
@@ -140,73 +104,44 @@ const themeVars = useThemeVars();
|
||||
:default-expand-all="true"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</n-collapse-transition>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped lang="less">
|
||||
.category-button {
|
||||
border: none;
|
||||
background: transparent;
|
||||
padding: 6px;
|
||||
width: 100%;
|
||||
color: v-bind('themeVars.textColor1');
|
||||
text-align: left;
|
||||
user-select: none;
|
||||
.menu-wrapper {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
.menu {
|
||||
flex: 1;
|
||||
margin-bottom: 5px;
|
||||
|
||||
&:hover {
|
||||
background-color: v-bind('themeVars.buttonColor2Hover');
|
||||
opacity: 0.8;
|
||||
::v-deep(.n-menu-item-content::before) {
|
||||
left: 0;
|
||||
right: 13px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.category-container {
|
||||
.menu-container {
|
||||
display: grid;
|
||||
grid-template-rows: 1fr;
|
||||
transition: grid-template-rows var(--animation-duration, 350ms) ease-in-out;
|
||||
|
||||
&.collapsed {
|
||||
grid-template-rows: 0fr;
|
||||
.toggle-bar {
|
||||
width: 24px;
|
||||
opacity: 0.1;
|
||||
transition: opacity ease 0.2s;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
|
||||
&::before {
|
||||
width: 2px;
|
||||
height: 100%;
|
||||
content: ' ';
|
||||
background-color: v-bind('themeVars.textColor3');
|
||||
border-radius: 2px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 14px;
|
||||
}
|
||||
|
||||
.menu-wrapper {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
|
||||
.menu {
|
||||
flex: 1;
|
||||
margin-bottom: 5px;
|
||||
|
||||
::v-deep(.n-menu-item-content::before) {
|
||||
left: 0;
|
||||
right: 13px;
|
||||
transition: none !important; // Disables hover transition effect to instantly show hover state
|
||||
}
|
||||
}
|
||||
|
||||
.toggle-bar {
|
||||
width: 24px;
|
||||
opacity: 0.1;
|
||||
transition: opacity ease 0.2s;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
|
||||
&::before {
|
||||
width: 2px;
|
||||
height: 100%;
|
||||
content: ' ';
|
||||
background-color: v-bind('themeVars.textColor3');
|
||||
border-radius: 2px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 14px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
&:hover {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ import { Base64 } from 'js-base64';
|
||||
import type { UseValidationRule } from '@/composable/validation';
|
||||
import CInputText from '@/ui/c-input-text/c-input-text.vue';
|
||||
import { useDownloadFileFromBase64 } from '@/composable/downloadBase64';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
@@ -22,13 +21,13 @@ const props = withDefaults(
|
||||
{
|
||||
transformer: _.identity,
|
||||
inputValidationRules: () => [],
|
||||
inputLabel: t('formatTransformer.input'),
|
||||
inputLabel: 'Input',
|
||||
inputDefault: '',
|
||||
inputPlaceholder: t('formatTransformer.input-placeholder'),
|
||||
outputLabel: t('formatTransformer.output'),
|
||||
inputPlaceholder: 'Input...',
|
||||
outputLabel: 'Output',
|
||||
outputLanguage: '',
|
||||
downloadFileName: '',
|
||||
downloadButtonText: t('formatTransformer.download'),
|
||||
downloadButtonText: 'Download',
|
||||
rows: 15,
|
||||
},
|
||||
);
|
||||
|
||||
@@ -1,20 +1,18 @@
|
||||
<script setup lang="ts">
|
||||
import { useVModel } from '@vueuse/core';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
const props = defineProps<{
|
||||
value: string
|
||||
multiline?: boolean
|
||||
rows?: number | string
|
||||
autosize?: boolean
|
||||
readonly?: boolean
|
||||
}>();
|
||||
const emit = defineEmits(['update:value']);
|
||||
|
||||
const value = useVModel(props, 'value', emit);
|
||||
const { copy, isJustCopied } = useCopy({ source: value, createToast: false });
|
||||
const tooltipText = computed(() => isJustCopied.value ? t('inputCopyable.copied') : t('inputCopyable.copy'));
|
||||
const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : 'Copy to clipboard');
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -23,7 +21,6 @@ const tooltipText = computed(() => isJustCopied.value ? t('inputCopyable.copied'
|
||||
:multiline="multiline"
|
||||
:rows="rows"
|
||||
:autosize="autosize"
|
||||
:readonly="readonly"
|
||||
>
|
||||
<template #suffix>
|
||||
<c-tooltip :tooltip="tooltipText">
|
||||
|
||||
@@ -1,94 +0,0 @@
|
||||
<script setup lang="ts">
|
||||
import { RouterLink } from 'vue-router';
|
||||
import { nextTick, onMounted, onUnmounted, ref } from 'vue';
|
||||
import type { Tool } from '@/tools/tools.types';
|
||||
|
||||
defineProps<{
|
||||
tool: Tool
|
||||
}>();
|
||||
|
||||
const textRef = ref<HTMLElement>();
|
||||
const showTooltip = ref(false);
|
||||
let resizeTimeout: ReturnType<typeof setTimeout> | null = null;
|
||||
|
||||
async function checkTruncation() {
|
||||
await nextTick();
|
||||
if (textRef.value) {
|
||||
const text = textRef.value.textContent || '';
|
||||
const computedStyle = window.getComputedStyle(textRef.value);
|
||||
|
||||
// Create canvas context for precise text measurement
|
||||
const canvas = document.createElement('canvas');
|
||||
const context = canvas.getContext('2d')!;
|
||||
context.font = `${computedStyle.fontWeight} ${computedStyle.fontSize} ${computedStyle.fontFamily}`;
|
||||
|
||||
const textWidth = context.measureText(text).width;
|
||||
|
||||
// Calculate precise container width by accounting for padding
|
||||
const containerWidth = textRef.value.clientWidth
|
||||
- Number.parseFloat(computedStyle.paddingLeft)
|
||||
- Number.parseFloat(computedStyle.paddingRight);
|
||||
|
||||
showTooltip.value = textWidth > containerWidth;
|
||||
}
|
||||
}
|
||||
|
||||
function debouncedCheckTruncation() {
|
||||
if (resizeTimeout) {
|
||||
clearTimeout(resizeTimeout);
|
||||
}
|
||||
// Prevent the truncation check from running too frequently when the window is resized
|
||||
resizeTimeout = setTimeout(checkTruncation, 500);
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
checkTruncation();
|
||||
window.addEventListener('resize', debouncedCheckTruncation);
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
if (resizeTimeout) {
|
||||
clearTimeout(resizeTimeout);
|
||||
}
|
||||
window.removeEventListener('resize', debouncedCheckTruncation);
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<n-tooltip
|
||||
placement="right"
|
||||
:delay="500"
|
||||
:show-arrow="true"
|
||||
:disabled="!showTooltip"
|
||||
>
|
||||
<template #trigger>
|
||||
<RouterLink :to="tool.path" class="menu-link">
|
||||
<span
|
||||
ref="textRef"
|
||||
class="menu-text"
|
||||
@mouseenter="checkTruncation"
|
||||
>
|
||||
{{ tool.name }}
|
||||
</span>
|
||||
</RouterLink>
|
||||
</template>
|
||||
{{ tool.name }}
|
||||
</n-tooltip>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.menu-link {
|
||||
display: block;
|
||||
width: 100%;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.menu-text {
|
||||
display: block;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>
|
||||
@@ -4,35 +4,6 @@ import { useStyleStore } from '@/stores/style.store';
|
||||
const styleStore = useStyleStore();
|
||||
const { isMenuCollapsed, isSmallScreen } = toRefs(styleStore);
|
||||
const siderPosition = computed(() => (isSmallScreen.value ? 'absolute' : 'static'));
|
||||
|
||||
// Reactive window width
|
||||
const windowWidth = ref(window.innerWidth);
|
||||
|
||||
// Update window width on resize
|
||||
function updateWindowWidth() {
|
||||
windowWidth.value = window.innerWidth;
|
||||
}
|
||||
|
||||
// Add resize listener
|
||||
onMounted(() => {
|
||||
window.addEventListener('resize', updateWindowWidth);
|
||||
});
|
||||
|
||||
// Clean up listener
|
||||
onUnmounted(() => {
|
||||
window.removeEventListener('resize', updateWindowWidth);
|
||||
});
|
||||
|
||||
// Calculate the actual width to ensure minimum width is respected
|
||||
const siderWidth = computed(() => {
|
||||
if (isMenuCollapsed.value) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Use 12.5% of window width, but ensure it's at least 240px
|
||||
const tenPercent = windowWidth.value * 0.125;
|
||||
return Math.max(240, tenPercent);
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -41,7 +12,7 @@ const siderWidth = computed(() => {
|
||||
bordered
|
||||
collapse-mode="width"
|
||||
:collapsed-width="0"
|
||||
:width="siderWidth"
|
||||
:width="240"
|
||||
:collapsed="isMenuCollapsed"
|
||||
:show-trigger="false"
|
||||
:native-scrollbar="false"
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import { useCopy } from '@/composable/copy';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
const props = withDefaults(defineProps<{ value?: string }>(), { value: '' });
|
||||
const { value } = toRefs(props);
|
||||
|
||||
const initialText = t('spanCopyable.copy');
|
||||
const initialText = 'Copy to clipboard';
|
||||
|
||||
const { copy, isJustCopied } = useCopy({ source: value, createToast: false });
|
||||
const tooltipText = computed(() => isJustCopied.value ? t('spanCopyable.copied') : initialText);
|
||||
const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : initialText);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -20,7 +20,6 @@ import protobufHljs from 'highlight.js/lib/languages/protobuf';
|
||||
import { Base64 } from 'js-base64';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
import { useDownloadFileFromBase64 } from '@/composable/downloadBase64';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
@@ -32,18 +31,14 @@ const props = withDefaults(
|
||||
wordWrap?: boolean
|
||||
downloadFileName?: string
|
||||
downloadButtonText?: string
|
||||
scrollable?: boolean
|
||||
maxHeight?: string
|
||||
}>(),
|
||||
{
|
||||
followHeightOf: null,
|
||||
language: 'txt',
|
||||
copyPlacement: 'top-right',
|
||||
copyMessage: t('textareaCopyable.copy'),
|
||||
copyMessage: 'Copy to clipboard',
|
||||
downloadFileName: '',
|
||||
downloadButtonText: t('textareaCopyable.download'),
|
||||
scrollable: false,
|
||||
maxHeight: '400px',
|
||||
downloadButtonText: 'Download',
|
||||
},
|
||||
);
|
||||
hljs.registerLanguage('sql', sqlHljs);
|
||||
@@ -52,7 +47,6 @@ hljs.registerLanguage('html', xmlHljs);
|
||||
hljs.registerLanguage('xml', xmlHljs);
|
||||
hljs.registerLanguage('yaml', yamlHljs);
|
||||
hljs.registerLanguage('toml', iniHljs);
|
||||
hljs.registerLanguage('ini', iniHljs);
|
||||
hljs.registerLanguage('ts', tsHljs);
|
||||
hljs.registerLanguage('typescript', tsHljs);
|
||||
hljs.registerLanguage('bash', bashHljs);
|
||||
@@ -68,19 +62,8 @@ hljs.registerLanguage('protobuf', protobufHljs);
|
||||
const { value, language, followHeightOf, copyPlacement, copyMessage, downloadFileName, downloadButtonText } = toRefs(props);
|
||||
const { height } = followHeightOf.value ? useElementSize(followHeightOf) : { height: ref(null) };
|
||||
|
||||
const scrollbarRef = ref();
|
||||
|
||||
// Watch for content changes and scroll to bottom
|
||||
watch(value, () => {
|
||||
nextTick(() => {
|
||||
if (scrollbarRef.value) {
|
||||
scrollbarRef.value.scrollTo({ top: scrollbarRef.value.scrollbarInstRef.containerRef.scrollHeight });
|
||||
}
|
||||
});
|
||||
}, { flush: 'post' });
|
||||
|
||||
const { copy, isJustCopied } = useCopy({ source: value, createToast: false });
|
||||
const tooltipText = computed(() => isJustCopied.value ? t('textareaCopyable.copied') : copyMessage.value);
|
||||
const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : copyMessage.value);
|
||||
|
||||
const valueBase64 = computed(() => Base64.encode(value.value));
|
||||
const { download } = useDownloadFileFromBase64(
|
||||
@@ -92,19 +75,11 @@ const { download } = useDownloadFileFromBase64(
|
||||
|
||||
<template>
|
||||
<div style="overflow-x: hidden; width: 100%">
|
||||
<c-card
|
||||
relative
|
||||
:style="(copyPlacement === 'top-right' || copyPlacement === 'bottom-right') ? `padding-bottom: 50px` : ''"
|
||||
>
|
||||
<c-card relative>
|
||||
<n-scrollbar
|
||||
ref="scrollbarRef"
|
||||
:x-scrollable="true"
|
||||
:y-scrollable="scrollable"
|
||||
x-scrollable
|
||||
trigger="none"
|
||||
:style="{
|
||||
minHeight: height ? `${height - 40 /* card padding */ + 10 /* negative margin compensation */}px` : '',
|
||||
maxHeight: scrollable ? maxHeight : '',
|
||||
}"
|
||||
:style="height ? `min-height: ${height - 40 /* card padding */ + 10 /* negative margin compensation */}px` : ''"
|
||||
>
|
||||
<n-config-provider :hljs="hljs">
|
||||
<n-code :code="value" :language="language" :word-wrap="wordWrap" :trim="false" data-test-id="area-content" />
|
||||
@@ -112,10 +87,9 @@ const { download } = useDownloadFileFromBase64(
|
||||
</n-scrollbar>
|
||||
<div
|
||||
v-if="value && copyPlacement !== 'none'"
|
||||
absolute right-10px
|
||||
:top-10px="copyPlacement === 'top-right' ? '' : 'no'"
|
||||
:bottom-10px="copyPlacement === 'bottom-right' ? '' : 'no'"
|
||||
absolute right-10px
|
||||
:style="scrollable ? 'z-index: 10; background: var(--bg-color); border-radius: 50%; padding: 2px;' : ''"
|
||||
>
|
||||
<c-tooltip v-if="value && copyPlacement !== 'outside'" :tooltip="tooltipText" position="left">
|
||||
<c-button circle important:h-10 important:w-10 @click="copy()">
|
||||
|
||||
@@ -1,287 +0,0 @@
|
||||
import { type MaybeRef, get } from '@vueuse/core';
|
||||
import { computed, ref } from 'vue';
|
||||
import FlexSearch from 'flexsearch';
|
||||
|
||||
// Define key types to match Fuse.js format
|
||||
type SearchKey = string | { name: string; weight?: number };
|
||||
|
||||
export function useFlexSearch<Data extends Record<string, any>>({
|
||||
search,
|
||||
data,
|
||||
options = {
|
||||
keys: [],
|
||||
},
|
||||
limit = -1,
|
||||
}: {
|
||||
search: MaybeRef<string>
|
||||
data: Data[]
|
||||
options?: {
|
||||
keys: SearchKey[]
|
||||
/**
|
||||
* Whether to show or not show items with an empty search query. `true` won't show any items, `false` will show all items.
|
||||
* @default true
|
||||
*/
|
||||
filterEmpty?: boolean
|
||||
/**
|
||||
* Whether the results should be sorted by similarity score using the Levenshtein distance.
|
||||
* @default true
|
||||
*/
|
||||
shouldSort?: boolean
|
||||
/**
|
||||
* Type of tokenization logic to use (Determines how the search logic will behave).
|
||||
* @default 'forward'
|
||||
* @see {@link https://github.com/nextapps-de/flexsearch?tab=readme-ov-file#tokenizer-partial-match | FlexSearch Tokenizer Documentation}
|
||||
*
|
||||
* Note: The `'tolerant'` tokenizer option mentioned in the documentation doesn't exist anymore in the current version of FlexSearch.
|
||||
*/
|
||||
tokenize?: 'strict' | 'forward' | 'reverse' | 'full'
|
||||
/**
|
||||
* Resolution value for giving meaningful results when searching for partial matches.
|
||||
* @default 9
|
||||
* @see {@link https://github.com/nextapps-de/flexsearch?tab=readme-ov-file#resolution | FlexSearch Resolution Documentation}
|
||||
*/
|
||||
resolution?: number
|
||||
optimize?: boolean
|
||||
/**
|
||||
* Value to determine if the cache should be used.
|
||||
* If set to a number, the cache will use the number to assign that number of cache slots (No information in the documentation is provided about what a cache slot is exactly).
|
||||
* @default false
|
||||
* @see {@link https://github.com/nextapps-de/flexsearch?tab=readme-ov-file#auto-balanced-cache-by-popularity | FlexSearch Cache Documentation}
|
||||
*/
|
||||
cache?: boolean | number
|
||||
}
|
||||
limit?: MaybeRef<number>
|
||||
}) {
|
||||
// Extract options
|
||||
const { keys, filterEmpty = true, shouldSort = true, tokenize = 'forward', ...indexOptions } = options;
|
||||
|
||||
// Normalize keys to include weights
|
||||
const normalizedKeys = keys.map((key) => {
|
||||
if (typeof key === 'string') {
|
||||
return { name: key, weight: 1 };
|
||||
}
|
||||
return { name: key.name, weight: key.weight ?? 1 };
|
||||
});
|
||||
|
||||
// Helper to get unique key for each item (prefer 'id', fallback to index)
|
||||
const getItemKey = (item: Data, idx: number) => (item.id !== undefined ? item.id : idx);
|
||||
|
||||
// Map to store original data items by unique key
|
||||
const dataMap = ref(new Map<any, Data>());
|
||||
|
||||
// Create separate indices for each key with weight info
|
||||
const indices = normalizedKeys.map(({ name, weight }) => ({
|
||||
key: name,
|
||||
weight,
|
||||
index: new FlexSearch.Index({
|
||||
tokenize,
|
||||
preset: 'performance',
|
||||
resolution: 9,
|
||||
optimize: true,
|
||||
cache: false,
|
||||
fastupdate: true,
|
||||
...indexOptions,
|
||||
}),
|
||||
}));
|
||||
|
||||
// Initialize indices with data
|
||||
const initializeIndices = async () => {
|
||||
dataMap.value.clear();
|
||||
indices.forEach(({ index }) => index.clear());
|
||||
|
||||
// Pre-calculate all the values to avoid repeated nested property access
|
||||
const itemData = data.map((item, idx) => {
|
||||
const itemKey = getItemKey(item, idx);
|
||||
const values = new Map<string, string>();
|
||||
|
||||
indices.forEach(({ key }) => {
|
||||
const value = key.split('.').reduce((obj, path) => obj?.[path], item);
|
||||
if (value) {
|
||||
values.set(key, String(value));
|
||||
}
|
||||
});
|
||||
|
||||
return { itemKey, item, values };
|
||||
});
|
||||
|
||||
// Batch add to dataMap
|
||||
itemData.forEach(({ itemKey, item }) => {
|
||||
dataMap.value.set(itemKey, item);
|
||||
});
|
||||
|
||||
// Process indices sequentially to avoid event loop flooding
|
||||
for (const { key, index } of indices) {
|
||||
// Filter items that have values for this key upfront
|
||||
const itemsForThisKey = itemData
|
||||
.map(({ itemKey, values }) => ({ itemKey, value: values.get(key) }))
|
||||
.filter(({ value }) => value);
|
||||
|
||||
const chunkSize = 5000;
|
||||
|
||||
for (let i = 0; i < itemsForThisKey.length; i += chunkSize) {
|
||||
const chunk = itemsForThisKey.slice(i, i + chunkSize);
|
||||
|
||||
// Use requestAnimationFrame for better performance
|
||||
await new Promise<void>((resolve) => {
|
||||
requestAnimationFrame(() => {
|
||||
chunk.forEach(({ itemKey, value }) => {
|
||||
index.add(itemKey, value!);
|
||||
});
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Initialize on creation
|
||||
initializeIndices();
|
||||
|
||||
// Function to search across all indices with weight consideration
|
||||
const searchAllIndices = (query: string, searchLimit: number) => {
|
||||
if (!query) {
|
||||
return [];
|
||||
}
|
||||
|
||||
// Use a higher individual limit for each index to ensure we don't miss potential matches
|
||||
const individualLimit = searchLimit > 0 ? searchLimit * 2 : undefined;
|
||||
|
||||
// Search each index and collect results with weights
|
||||
const weightedResults = new Map<any, { score: number; maxWeight: number }>();
|
||||
|
||||
indices.forEach(({ index, weight }) => {
|
||||
const results = index.search(query, individualLimit ? { limit: individualLimit } : undefined);
|
||||
|
||||
results.forEach((id) => {
|
||||
const current = weightedResults.get(id) || { score: 0, maxWeight: 0 };
|
||||
// Use the maximum weight among matching fields as the primary score
|
||||
// Add a small bonus for additional field matches
|
||||
const newScore = Math.max(current.score, weight * 100) + (weight * 10);
|
||||
const newMaxWeight = Math.max(current.maxWeight, weight);
|
||||
|
||||
weightedResults.set(id, {
|
||||
score: newScore,
|
||||
maxWeight: newMaxWeight,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
// Sort by score (higher score = better match) and convert to array
|
||||
const sortedIds = Array.from(weightedResults.entries())
|
||||
.sort((a, b) => {
|
||||
// First sort by max weight, then by total score
|
||||
if (b[1].maxWeight !== a[1].maxWeight) {
|
||||
return b[1].maxWeight - a[1].maxWeight;
|
||||
}
|
||||
return b[1].score - a[1].score;
|
||||
})
|
||||
.map(([id]) => id);
|
||||
|
||||
// If shouldn't be sorted by similarity, apply limit here and return early
|
||||
if (!shouldSort) {
|
||||
const limitedIds = searchLimit > 0 ? sortedIds.slice(0, searchLimit) : sortedIds;
|
||||
return limitedIds
|
||||
.map(id => dataMap.value.get(id))
|
||||
.filter(Boolean) as Data[];
|
||||
}
|
||||
|
||||
// Calculate Levenshtein distance
|
||||
const levenshteinDistance = (str1: string, str2: string): number => {
|
||||
const matrix = Array(str2.length + 1).fill(null).map(() => Array(str1.length + 1).fill(null));
|
||||
|
||||
for (let i = 0; i <= str1.length; i++) {
|
||||
matrix[0][i] = i;
|
||||
}
|
||||
for (let j = 0; j <= str2.length; j++) {
|
||||
matrix[j][0] = j;
|
||||
}
|
||||
|
||||
for (let j = 1; j <= str2.length; j++) {
|
||||
for (let i = 1; i <= str1.length; i++) {
|
||||
const indicator = str1[i - 1] === str2[j - 1] ? 0 : 1;
|
||||
matrix[j][i] = Math.min(
|
||||
matrix[j][i - 1] + 1, // deletion
|
||||
matrix[j - 1][i] + 1, // insertion
|
||||
matrix[j - 1][i - 1] + indicator, // substitution
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return matrix[str2.length][str1.length];
|
||||
};
|
||||
|
||||
// Calculate similarity score (0-1, where 1 is perfect match)
|
||||
const calculateSimilarity = (str1: string, str2: string): number => {
|
||||
const maxLength = Math.max(str1.length, str2.length);
|
||||
if (maxLength === 0) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
const distance = levenshteinDistance(str1.toLowerCase(), str2.toLowerCase());
|
||||
return 1 - (distance / maxLength);
|
||||
};
|
||||
|
||||
// Sort ALL results by similarity score, then apply limit at the end
|
||||
const sortedResults = sortedIds
|
||||
.map((id) => {
|
||||
const item = dataMap.value.get(id);
|
||||
if (!item) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Calculate weighted similarity score across all searchable fields
|
||||
let bestWeightedSimilarity = 0;
|
||||
let maxFieldWeight = 0;
|
||||
|
||||
normalizedKeys.forEach(({ name, weight }) => {
|
||||
const value = name.split('.').reduce((obj, path) => obj?.[path], item);
|
||||
if (value) {
|
||||
const similarity = calculateSimilarity(query, String(value));
|
||||
const weightedSimilarity = similarity * weight;
|
||||
|
||||
if (weightedSimilarity > bestWeightedSimilarity) {
|
||||
bestWeightedSimilarity = weightedSimilarity;
|
||||
maxFieldWeight = weight;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return {
|
||||
item,
|
||||
similarity: bestWeightedSimilarity,
|
||||
maxWeight: maxFieldWeight,
|
||||
};
|
||||
})
|
||||
.filter(Boolean)
|
||||
.sort((a, b) => {
|
||||
// First sort by max field weight, then by weighted similarity
|
||||
if (b!.maxWeight !== a!.maxWeight) {
|
||||
return b!.maxWeight - a!.maxWeight;
|
||||
}
|
||||
return b!.similarity - a!.similarity;
|
||||
})
|
||||
.map(result => result!.item);
|
||||
|
||||
// Apply limit after final sorting
|
||||
return searchLimit > 0 ? sortedResults.slice(0, searchLimit) : sortedResults;
|
||||
};
|
||||
|
||||
// Computed results
|
||||
const searchResult = computed<Data[]>(() => {
|
||||
const query = get(search);
|
||||
const searchLimit: number = get(limit);
|
||||
|
||||
// Handle empty query case
|
||||
if (!query && !filterEmpty) {
|
||||
return searchLimit > 0 ? data.slice(0, searchLimit) : data;
|
||||
}
|
||||
|
||||
if (!query) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return searchAllIndices(query, searchLimit);
|
||||
});
|
||||
|
||||
return { searchResult };
|
||||
}
|
||||
@@ -4,10 +4,6 @@ import { computed } from 'vue';
|
||||
|
||||
export { useFuzzySearch };
|
||||
|
||||
/**
|
||||
* @deprecated This composable is deprecated and will be removed in a future version.
|
||||
* Use {@link useFlexSearch} instead.
|
||||
*/
|
||||
function useFuzzySearch<Data>({
|
||||
search,
|
||||
data,
|
||||
|
||||
+12
-16
@@ -1,16 +1,18 @@
|
||||
<script lang="ts" setup>
|
||||
import { Home2, Menu2 } from '@vicons/tabler';
|
||||
import { NIcon, useThemeVars } from 'naive-ui';
|
||||
import { storeToRefs } from 'pinia';
|
||||
|
||||
import { RouterLink } from 'vue-router';
|
||||
import { Home2, Menu2 } from '@vicons/tabler';
|
||||
|
||||
import { storeToRefs } from 'pinia';
|
||||
import HeroGradient from '../assets/hero-gradient.svg?component';
|
||||
import MenuLayout from '../components/MenuLayout.vue';
|
||||
import NavbarButtons from '../components/NavbarButtons.vue';
|
||||
import CollapsibleToolMenu from '@/components/CollapsibleToolMenu.vue';
|
||||
import { config } from '@/config';
|
||||
import { useStyleStore } from '@/stores/style.store';
|
||||
import { useToolStore } from '@/tools/tools.store';
|
||||
import { config } from '@/config';
|
||||
import type { ToolCategory } from '@/tools/tools.types';
|
||||
import { useToolStore } from '@/tools/tools.store';
|
||||
import CollapsibleToolMenu from '@/components/CollapsibleToolMenu.vue';
|
||||
|
||||
const themeVars = useThemeVars();
|
||||
const styleStore = useStyleStore();
|
||||
@@ -154,26 +156,20 @@ const tools = computed<ToolCategory[]>(() => [
|
||||
}
|
||||
|
||||
.sider-content {
|
||||
padding-top: 20px;
|
||||
padding-top: 160px;
|
||||
padding-bottom: 200px;
|
||||
}
|
||||
|
||||
.hero-wrapper {
|
||||
position: sticky;
|
||||
display: flex;
|
||||
position: absolute;
|
||||
display: block;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 10;
|
||||
height: 150px;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
|
||||
.gradient {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
margin-top: -65px;
|
||||
}
|
||||
|
||||
.text-wrapper {
|
||||
|
||||
@@ -44,7 +44,7 @@ const toolFooter = computed<string>(() => {
|
||||
packageName,
|
||||
packageName.includes('://') ? packageName : `https://www.npmjs.com/package/${packageName}`),
|
||||
);
|
||||
return ((npmPackages.length > 0 ? t('tools.tool.layout.text.made-with-npmpackages-join-n', [npmPackages.join(', ')]) : '') + footer).trim();
|
||||
return ((npmPackages.length > 0 ? `Made with ${npmPackages.join(', ')}\n` : '') + footer).trim();
|
||||
});
|
||||
const themeVars = useThemeVars();
|
||||
</script>
|
||||
@@ -72,9 +72,7 @@ const themeVars = useThemeVars();
|
||||
</div>
|
||||
|
||||
<div class="tool-content">
|
||||
<Suspense>
|
||||
<slot />
|
||||
</Suspense>
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
<div class="tool-footer">
|
||||
|
||||
+7
-11
@@ -3,13 +3,13 @@ import { createPinia } from 'pinia';
|
||||
import { createHead } from '@vueuse/head';
|
||||
import { library } from '@fortawesome/fontawesome-svg-core';
|
||||
import { fas } from '@fortawesome/free-solid-svg-icons';
|
||||
import { LoadingPlugin } from 'vue-loading-overlay';
|
||||
|
||||
import { install as VueMonacoEditorPlugin, loader } from '@guolao/vue-monaco-editor';
|
||||
import * as monaco from 'monaco-editor';
|
||||
|
||||
import { registerSW } from 'virtual:pwa-register';
|
||||
import shadow from 'vue-shadow-dom';
|
||||
import { hideSplashScreen } from 'vite-plugin-splash-screen/runtime';
|
||||
import { plausible } from './plugins/plausible.plugin';
|
||||
import '@/utils/json5-bigint';
|
||||
|
||||
import 'virtual:uno.css';
|
||||
|
||||
@@ -21,18 +21,16 @@ import { i18nPlugin } from './plugins/i18n.plugin';
|
||||
|
||||
import store from './tools/pomodoro-timer/app/store';
|
||||
|
||||
// eslint-disable-next-line no-extend-native
|
||||
BigInt.prototype.toJSON = function () {
|
||||
return JSON.rawJSON ? JSON.rawJSON(this.toString()) : this.toString();
|
||||
};
|
||||
|
||||
library.add(fas);
|
||||
|
||||
// loaded monaco-editor from `node_modules`
|
||||
loader.config({ monaco });
|
||||
|
||||
registerSW();
|
||||
|
||||
const app = createApp(App);
|
||||
|
||||
app.use(LoadingPlugin);
|
||||
app.use(VueMonacoEditorPlugin);
|
||||
app.use(createPinia());
|
||||
app.use(createHead());
|
||||
app.use(i18nPlugin);
|
||||
@@ -43,5 +41,3 @@ app.use(shadow);
|
||||
app.use(store, 'pomodoro-store');
|
||||
|
||||
app.mount('#app');
|
||||
|
||||
hideSplashScreen();
|
||||
@@ -2,6 +2,7 @@ import { defineStore } from 'pinia';
|
||||
import _ from 'lodash';
|
||||
import type { PaletteOption } from './command-palette.types';
|
||||
import { useToolStore } from '@/tools/tools.store';
|
||||
import { useFuzzySearch } from '@/composable/fuzzySearch';
|
||||
import { useStyleStore } from '@/stores/style.store';
|
||||
|
||||
import SunIcon from '~icons/mdi/white-balance-sunny';
|
||||
@@ -9,7 +10,6 @@ import GithubIcon from '~icons/mdi/github';
|
||||
import BugIcon from '~icons/mdi/bug-outline';
|
||||
import DiceIcon from '~icons/mdi/dice-5';
|
||||
import InfoIcon from '~icons/mdi/information-outline';
|
||||
import { useFlexSearch } from '@/composable/flexSearch';
|
||||
|
||||
const maxSearchResultsPerCategory = import.meta.env.VITE_MAX_SEARCH_RESULT || 25;
|
||||
|
||||
@@ -74,11 +74,12 @@ export const useCommandPaletteStore = defineStore('command-palette', () => {
|
||||
},
|
||||
];
|
||||
|
||||
const { searchResult } = useFlexSearch({
|
||||
const { searchResult } = useFuzzySearch({
|
||||
search: searchPrompt,
|
||||
data: searchOptions,
|
||||
options: {
|
||||
keys: [{ name: 'name', weight: 2 }, 'description', 'keywords', 'category'],
|
||||
threshold: 0.3,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@ function activateOption(option: PaletteOption) {
|
||||
</c-button>
|
||||
|
||||
<c-modal v-model:open="isModalOpen" class="palette-modal" overflow-y-auto shadow-xl important:max-w-650px pretty-scrollbar important:pa-12px @keydown="handleKeydown">
|
||||
<c-input-text ref="inputRef" v-model:value="searchPrompt" raw-text :placeholder="$t('search.placeholder')" autofocus clearable />
|
||||
<c-input-text ref="inputRef" v-model:value="searchPrompt" raw-text placeholder="Type to search a tool or a command..." autofocus clearable />
|
||||
|
||||
<div v-for="(options, category) in filteredSearchResult" :key="category">
|
||||
<div ml-3 mt-3 text-sm font-bold text-primary op-60>
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
const { availableLocales, locale, t } = useI18n();
|
||||
const { availableLocales, locale } = useI18n();
|
||||
|
||||
const localesLong: Record<string, string> = {
|
||||
en: 'English',
|
||||
de: 'Deutsch',
|
||||
es: 'Español',
|
||||
fr: 'Français',
|
||||
ga: 'Gaeilge',
|
||||
no: 'Norwegian',
|
||||
pl: 'Polski',
|
||||
pt: 'Português',
|
||||
@@ -29,7 +28,7 @@ const localeOptions = computed(() =>
|
||||
<c-select
|
||||
v-model:value="locale"
|
||||
:options="localeOptions"
|
||||
:placeholder="t('locale-selector.select-a-language')"
|
||||
placeholder="Select a language"
|
||||
w-100px
|
||||
/>
|
||||
</template>
|
||||
+4
-84
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { IconDragDrop, IconFileDescription, IconHeart } from '@tabler/icons-vue';
|
||||
import { useHead } from '@vueuse/head';
|
||||
import { computed, nextTick, onMounted, onUnmounted, ref } from 'vue';
|
||||
import { computed } from 'vue';
|
||||
import Draggable from 'vuedraggable';
|
||||
import VueMarkdown from 'vue-markdown-render';
|
||||
import ColoredCard from '../components/ColoredCard.vue';
|
||||
@@ -28,81 +28,10 @@ const { t } = useI18n();
|
||||
|
||||
const favoriteTools = computed(() => toolStore.favoriteTools);
|
||||
|
||||
const isOrderingFavorites = ref(false);
|
||||
|
||||
window.addEventListener('contextmenu', (e) => {
|
||||
if (isOrderingFavorites.value) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
e.stopImmediatePropagation();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
function startOrderingFavorites() {
|
||||
isOrderingFavorites.value = true;
|
||||
}
|
||||
|
||||
// Update favorite tools order when drag is finished
|
||||
function stopOrderingFavorites() {
|
||||
isOrderingFavorites.value = false;
|
||||
function onUpdateFavoriteTools() {
|
||||
toolStore.updateFavoriteTools(favoriteTools.value); // Update the store with the new order
|
||||
}
|
||||
|
||||
// Batch loading logic for tool cards
|
||||
const TOOLS_PER_ROW = 4; // Based on xl:grid-cols-4
|
||||
const ROWS_PER_BATCH = 8;
|
||||
const TOOLS_PER_BATCH = TOOLS_PER_ROW * ROWS_PER_BATCH; // 32 tools per batch
|
||||
|
||||
const visibleToolsCount = ref(TOOLS_PER_BATCH); // Start with first batch
|
||||
let loadingInterval: NodeJS.Timeout | null = null;
|
||||
|
||||
// Computed property for visible tools
|
||||
const visibleTools = computed(() => {
|
||||
return toolStore.tools.slice(0, visibleToolsCount.value);
|
||||
});
|
||||
|
||||
// Function to stop automated loading
|
||||
function stopAutomatedLoading() {
|
||||
if (loadingInterval) {
|
||||
clearInterval(loadingInterval);
|
||||
loadingInterval = null;
|
||||
}
|
||||
}
|
||||
|
||||
// Function to start automated loading
|
||||
function startAutomatedLoading() {
|
||||
// Clear any existing interval
|
||||
if (loadingInterval) {
|
||||
clearInterval(loadingInterval);
|
||||
}
|
||||
|
||||
// Start loading batches every 150ms
|
||||
loadingInterval = setInterval(() => {
|
||||
if (visibleToolsCount.value < toolStore.tools.length) {
|
||||
visibleToolsCount.value = Math.min(
|
||||
visibleToolsCount.value + TOOLS_PER_BATCH,
|
||||
toolStore.tools.length,
|
||||
);
|
||||
}
|
||||
else {
|
||||
// Stop loading when all tools are visible
|
||||
stopAutomatedLoading();
|
||||
}
|
||||
}, 150);
|
||||
}
|
||||
|
||||
// Start automated loading on component mount
|
||||
onMounted(() => {
|
||||
nextTick(() => {
|
||||
startAutomatedLoading();
|
||||
});
|
||||
});
|
||||
|
||||
// Clean up on component unmount
|
||||
onUnmounted(() => {
|
||||
stopAutomatedLoading();
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -153,9 +82,7 @@ onUnmounted(() => {
|
||||
class="grid grid-cols-1 gap-12px lg:grid-cols-3 md:grid-cols-3 sm:grid-cols-2 xl:grid-cols-4"
|
||||
ghost-class="ghost-favorites-draggable"
|
||||
item-key="name"
|
||||
:delay="100"
|
||||
@start="startOrderingFavorites"
|
||||
@end="stopOrderingFavorites"
|
||||
@end="onUpdateFavoriteTools"
|
||||
>
|
||||
<template #item="{ element: tool }">
|
||||
<ToolCard :tool="tool" />
|
||||
@@ -181,14 +108,7 @@ onUnmounted(() => {
|
||||
{{ $t('home.categories.allTools') }}
|
||||
</h3>
|
||||
<div class="grid grid-cols-1 gap-12px lg:grid-cols-3 md:grid-cols-3 sm:grid-cols-2 xl:grid-cols-4">
|
||||
<ToolCard v-for="tool in visibleTools" :key="tool.name" :tool="tool" />
|
||||
</div>
|
||||
|
||||
<!-- Loading indicator when more tools are coming -->
|
||||
<div v-if="visibleToolsCount < toolStore.tools.length" mt-6 text-center>
|
||||
<div text-14px op-70>
|
||||
{{ t('home.loading-more-tools') }} <span>({{ visibleTools.length }}/{{ toolStore.tools.length }})</span>
|
||||
</div>
|
||||
<ToolCard v-for="tool in toolStore.tools" :key="tool.name" :tool="tool" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -15,7 +15,7 @@ export const i18nPlugin: Plugin = {
|
||||
},
|
||||
};
|
||||
|
||||
export const translate = function (localeKey: string, list: unknown[] = []) {
|
||||
export const translate = function (localeKey: string) {
|
||||
const hasKey = i18n.global.te(localeKey, get(i18n.global.locale));
|
||||
return hasKey ? i18n.global.t(localeKey, list) : localeKey;
|
||||
return hasKey ? i18n.global.t(localeKey) : localeKey;
|
||||
};
|
||||
@@ -1,5 +1,4 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router';
|
||||
import { type ActiveLoader, useLoading } from 'vue-loading-overlay';
|
||||
import { layouts } from './layouts/index';
|
||||
import HomePage from './pages/Home.page.vue';
|
||||
import NotFound from './pages/404.page.vue';
|
||||
@@ -7,8 +6,6 @@ import { tools } from './tools';
|
||||
import { config } from './config';
|
||||
import { routes as demoRoutes } from './ui/demo/demo.routes';
|
||||
|
||||
const $loading = useLoading();
|
||||
|
||||
const toolsRoutes = tools.map(({ path, name, component, ...config }) => ({
|
||||
path,
|
||||
name,
|
||||
@@ -41,23 +38,4 @@ const router = createRouter({
|
||||
],
|
||||
});
|
||||
|
||||
let loader: ActiveLoader | null = null;
|
||||
|
||||
router.beforeEach((to, from) => {
|
||||
// Only show loading for actual route changes, not just query param changes
|
||||
if (to.path !== from.path) {
|
||||
loader = $loading?.show({
|
||||
color: '#fff',
|
||||
backgroundColor: '#292929',
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
router.afterEach(() => {
|
||||
if (loader) {
|
||||
loader.hide();
|
||||
loader = null;
|
||||
}
|
||||
});
|
||||
|
||||
export default router;
|
||||
Vendored
+1
-14
@@ -38,17 +38,4 @@ declare module 'pdf-signature-reader' {
|
||||
const verifySignature: (pdf: ArrayBuffer) => ({signatures: SignatureInfo[]});
|
||||
|
||||
export default verifySignature;
|
||||
}
|
||||
|
||||
declare module 'vite-plugin-splash-screen/runtime' {
|
||||
export function hideSplashScreen();
|
||||
}
|
||||
|
||||
interface BigInt {
|
||||
toJSON: () => string;
|
||||
}
|
||||
|
||||
interface JSON {
|
||||
parseBigInt: (jsonStr: string, options?: { minDigits?: number; fallbackToString?: boolean; }) => any;
|
||||
rawJSON(value: string): any;
|
||||
}
|
||||
}
|
||||
@@ -1,18 +1,20 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import mappingData from './ad-mapping.json';
|
||||
import { useFlexSearch } from '@/composable/flexSearch';
|
||||
import { useFuzzySearch } from '@/composable/fuzzySearch';
|
||||
import useDebouncedRef from '@/composable/debouncedref';
|
||||
|
||||
const { t } = useI18n();
|
||||
const data = mappingData.map(i => ({ ...i, all: `${i.TAB} - ${i.ActiveDirectoryField}` }));
|
||||
const searchQuery = useDebouncedRef('', 500);
|
||||
|
||||
const data = mappingData;
|
||||
const search = ref('');
|
||||
|
||||
const { searchResult } = useFlexSearch({
|
||||
search,
|
||||
const { searchResult } = useFuzzySearch({
|
||||
search: searchQuery,
|
||||
data,
|
||||
options: {
|
||||
keys: ['TAB', 'ActiveDirectoryField', 'LDAPAttribute'],
|
||||
keys: ['all'],
|
||||
threshold: 0.2,
|
||||
isCaseSensitive: false,
|
||||
minMatchCharLength: 3,
|
||||
useExtendedSearch: true,
|
||||
filterEmpty: false,
|
||||
},
|
||||
});
|
||||
@@ -22,8 +24,8 @@ const { searchResult } = useFlexSearch({
|
||||
<div mx-auto max-w-2400px important:flex-1>
|
||||
<div flex items-center gap-3>
|
||||
<c-input-text
|
||||
v-model:value="search"
|
||||
:placeholder="t('tools.ad-ldap-searcher.texts.placeholder-search-active-directory-ldap-mapping')"
|
||||
v-model:value="searchQuery"
|
||||
placeholder="Search Active Directory LDAP mapping"
|
||||
mx-auto max-w-600px
|
||||
>
|
||||
<template #prefix>
|
||||
@@ -38,19 +40,19 @@ const { searchResult } = useFlexSearch({
|
||||
|
||||
mt-4 text-center text-20px font-bold
|
||||
>
|
||||
{{ t('tools.ad-ldap-searcher.texts.tag-no-results') }}
|
||||
No results
|
||||
</div>
|
||||
|
||||
<div v-else>
|
||||
<div mt-4 text-20px font-bold>
|
||||
{{ t('tools.ad-ldap-searcher.texts.tag-search-result') }}
|
||||
Search result
|
||||
</div>
|
||||
|
||||
<n-table>
|
||||
<thead>
|
||||
<th>{{ t('tools.ad-ldap-searcher.texts.tag-tab') }}</th>
|
||||
<th>{{ t('tools.ad-ldap-searcher.texts.tag-active-directory-field') }}</th>
|
||||
<th>{{ t('tools.ad-ldap-searcher.texts.tag-ldap-attribute') }}</th>
|
||||
<th>TAB</th>
|
||||
<th>Active Directory Field</th>
|
||||
<th>LDAP Attribute</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(result, ix) in searchResult" :key="ix">
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { Folder } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.ad-ldap-searcher.title'),
|
||||
name: 'ActiveDirectory LDAP properties searcher',
|
||||
path: '/ad-ldap-searcher',
|
||||
description: t('tools.ad-ldap-searcher.description'),
|
||||
description: 'Search in mapping of LDAP properties and ActiveDirectory UI',
|
||||
keywords: ['active', 'directory', 'ad', 'ldap', 'prop', 'searcher'],
|
||||
component: () => import('./ad-ldap-searcher.vue'),
|
||||
icon: Folder,
|
||||
|
||||
@@ -1,264 +0,0 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useScriptTag } from '@vueuse/core';
|
||||
import ageWasmUrl from '/age-wasm/age.wasm?url';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
generateX25519Identity: () => {
|
||||
privateKey: string
|
||||
publicKey: string
|
||||
}
|
||||
encrypt: (publicKeys: string, message: string) => {
|
||||
error?: string
|
||||
output: string
|
||||
}
|
||||
decrypt: (privateKeys: string, message: string) => {
|
||||
error?: string
|
||||
output: string
|
||||
}
|
||||
encryptBinary: (publicKeys: string, buffer: Uint8Array) => string | Uint8Array
|
||||
decryptBinary: (privateKeys: string, buffer: Uint8Array) => string | Uint8Array
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Go is the class as defined in the Golang `wasm_exec.js` distributable file required for WebAssembly.
|
||||
* Golang WebAssembly wiki: https://github.com/golang/go/wiki/WebAssembly
|
||||
*/
|
||||
declare class Go {
|
||||
argv: string[];
|
||||
env: { [envKey: string]: string };
|
||||
exit: (code: number) => void;
|
||||
importObject: WebAssembly.Imports;
|
||||
exited: boolean;
|
||||
mem: DataView;
|
||||
run(instance: WebAssembly.Instance): Promise<void>;
|
||||
}
|
||||
|
||||
const { load: loadGo } = useScriptTag('/age-wasm/wasm_exec.js', undefined, { type: 'module', manual: true });
|
||||
|
||||
await loadGo();
|
||||
|
||||
const go = new Go();
|
||||
const result = await WebAssembly.instantiateStreaming(fetch(ageWasmUrl), go.importObject);
|
||||
go.run(result.instance);
|
||||
|
||||
const privKey = ref('');
|
||||
const pubKey = ref('');
|
||||
const recipients = ref('');
|
||||
const message = ref('');
|
||||
const encryptedOutput = ref('');
|
||||
const recipientsBinary = ref('');
|
||||
const filesEncrypt = ref<File[]>([]);
|
||||
const identities = ref('');
|
||||
const encryptedText = ref('');
|
||||
const decryptedOutput = ref('');
|
||||
const identitiesBinary = ref('');
|
||||
const filesDecrypt = ref<File[]>([]);
|
||||
const error = ref('');
|
||||
|
||||
function downloadURL(data: string, fileName: string) {
|
||||
const a = document.createElement('a');
|
||||
a.href = data;
|
||||
a.download = fileName;
|
||||
document.body.appendChild(a);
|
||||
a.style.display = 'none';
|
||||
a.click();
|
||||
a.remove();
|
||||
}
|
||||
|
||||
function downloadBlob(data: Uint8Array, fileName: string) {
|
||||
const blob = new Blob([data], {
|
||||
type: 'application/octet-stream',
|
||||
});
|
||||
const url = window.URL.createObjectURL(blob);
|
||||
downloadURL(url, fileName);
|
||||
setTimeout(() => window.URL.revokeObjectURL(url), 1000);
|
||||
}
|
||||
|
||||
function generateKeys() {
|
||||
const keys = window.generateX25519Identity();
|
||||
privKey.value = keys.privateKey;
|
||||
pubKey.value = keys.publicKey;
|
||||
}
|
||||
|
||||
function encrypt() {
|
||||
error.value = '';
|
||||
const result = window.encrypt(recipients.value, message.value);
|
||||
if (result.error) {
|
||||
error.value = result.error;
|
||||
}
|
||||
else {
|
||||
encryptedOutput.value = result.output;
|
||||
}
|
||||
}
|
||||
|
||||
function encryptBinary() {
|
||||
error.value = '';
|
||||
const file = filesEncrypt.value;
|
||||
if (!file.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
file.forEach((f) => {
|
||||
const reader = new FileReader();
|
||||
reader.onload = () => {
|
||||
const buffer = new Uint8Array(reader.result as ArrayBuffer);
|
||||
const result = window.encryptBinary(recipientsBinary.value, buffer);
|
||||
if (typeof result === 'string') {
|
||||
error.value = result;
|
||||
}
|
||||
else {
|
||||
downloadBlob(result, `${f.name}.age`);
|
||||
}
|
||||
};
|
||||
reader.readAsArrayBuffer(f);
|
||||
});
|
||||
|
||||
filesEncrypt.value = [];
|
||||
}
|
||||
|
||||
function decrypt() {
|
||||
error.value = '';
|
||||
const result = window.decrypt(identities.value, encryptedText.value);
|
||||
if (result.error) {
|
||||
error.value = result.error;
|
||||
}
|
||||
else {
|
||||
decryptedOutput.value = result.output;
|
||||
}
|
||||
}
|
||||
|
||||
function decryptBinary() {
|
||||
error.value = '';
|
||||
const file = filesDecrypt.value;
|
||||
if (!file.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
file.forEach((f) => {
|
||||
const reader = new FileReader();
|
||||
reader.onload = () => {
|
||||
const buffer = new Uint8Array(reader.result as ArrayBuffer);
|
||||
const result = window.decryptBinary(identitiesBinary.value, buffer);
|
||||
if (typeof result === 'string') {
|
||||
error.value = result;
|
||||
}
|
||||
else {
|
||||
downloadBlob(result, f.name.replace('.age', ''));
|
||||
}
|
||||
};
|
||||
reader.readAsArrayBuffer(f);
|
||||
});
|
||||
|
||||
filesDecrypt.value = [];
|
||||
}
|
||||
|
||||
function onEncryptFilesUploaded(uploadedFiles: File[]) {
|
||||
filesEncrypt.value = uploadedFiles;
|
||||
}
|
||||
function onDecryptFilesUploaded(uploadedFiles: File[]) {
|
||||
filesDecrypt.value = uploadedFiles;
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<n-tabs type="card">
|
||||
<!-- Generate Keys -->
|
||||
<n-tab-pane name="keys" :tab="t('tools.age-crypto.text.generate-keys')">
|
||||
<n-card :title="t('tools.age-crypto.texts.title-private-key')" mb-1>
|
||||
<textarea-copyable v-model:value="privKey" rows="3" multiline :placeholder="t('tools.age-crypto.texts.placeholder-your-private-key-will-be-generated-here')" />
|
||||
</n-card>
|
||||
<n-card :title="t('tools.age-crypto.texts.title-public-key')" mb-1>
|
||||
<textarea-copyable v-model:value="pubKey" rows="3" multiline :placeholder="t('tools.age-crypto.texts.placeholder-your-public-key-will-be-generated-here')" />
|
||||
</n-card>
|
||||
<n-button type="primary" @click="generateKeys">
|
||||
{{ t('tools.age-crypto.texts.tag-generate-keys') }}
|
||||
</n-button>
|
||||
</n-tab-pane>
|
||||
|
||||
<!-- Encrypt Text -->
|
||||
<n-tab-pane name="encrypt" :tab="t('tools.age-crypto.text.encrypt')">
|
||||
<n-card :title="t('tools.age-crypto.texts.title-public-keys')" mb-1>
|
||||
<n-input v-model:value="recipients" type="textarea" :placeholder="t('tools.age-crypto.texts.placeholder-recipient-key-or-keys-one-per-line')" required />
|
||||
</n-card>
|
||||
<n-card :title="t('tools.age-crypto.texts.title-message')" mb-1>
|
||||
<n-input v-model:value="message" type="textarea" :placeholder="t('tools.age-crypto.texts.placeholder-message-to-encrypt')" required />
|
||||
</n-card>
|
||||
<n-card :title="t('tools.age-crypto.texts.title-output')" mb-1>
|
||||
<textarea-copyable v-model:value="encryptedOutput" rows="3" multiline :placeholder="t('tools.age-crypto.texts.placeholder-encrypted-output-will-be-generated-here')" />
|
||||
</n-card>
|
||||
<n-button type="primary" @click="encrypt">
|
||||
{{ t('tools.age-crypto.texts.tag-encrypt') }}
|
||||
</n-button>
|
||||
</n-tab-pane>
|
||||
|
||||
<!-- Encrypt Binary -->
|
||||
<n-tab-pane name="encryptBinary" :tab="t('tools.age-crypto.text.encrypt-binary')">
|
||||
<n-card :title="t('tools.age-crypto.texts.title-public-keys')" mb-1>
|
||||
<n-input v-model:value="recipientsBinary" type="textarea" :placeholder="t('tools.age-crypto.texts.placeholder-recipient-key-or-keys-one-per-line')" required />
|
||||
</n-card>
|
||||
<n-card :title="t('tools.age-crypto.texts.title-files')" mb-1>
|
||||
<c-file-upload
|
||||
:title="t('tools.age-crypto.texts.title-drag-and-drop-files-here-or-click-to-select-some-files')"
|
||||
multiple
|
||||
@files-upload="onEncryptFilesUploaded"
|
||||
/>
|
||||
<ul>
|
||||
<li v-for="(file, index) in filesEncrypt" :key="index">
|
||||
{{ file.name }}
|
||||
</li>
|
||||
</ul>
|
||||
</n-card>
|
||||
<n-card :title="t('tools.age-crypto.texts.title-output')" mb-1>
|
||||
<p>{{ t('tools.age-crypto.texts.tag-the-encrypted-files-will-be-downloaded') }}</p>
|
||||
</n-card>
|
||||
<n-button type="primary" @click="encryptBinary">
|
||||
{{ t('tools.age-crypto.texts.tag-encrypt-binary') }}
|
||||
</n-button>
|
||||
</n-tab-pane>
|
||||
|
||||
<!-- Decrypt Text -->
|
||||
<n-tab-pane name="decrypt" :tab="t('tools.age-crypto.text.decrypt')">
|
||||
<n-card :title="t('tools.age-crypto.texts.title-private-keys')" mb-1>
|
||||
<n-input v-model:value="identities" type="textarea" :placeholder="t('tools.age-crypto.texts.placeholder-identity-key-or-keys-one-per-line')" required />
|
||||
</n-card>
|
||||
<n-card :title="t('tools.age-crypto.texts.title-encrypted-text')" mb-1>
|
||||
<n-input v-model:value="encryptedText" type="textarea" :placeholder="t('tools.age-crypto.texts.placeholder-paste-here-encrypted-text')" required />
|
||||
</n-card>
|
||||
<n-card :title="t('tools.age-crypto.texts.title-output')" mb-1>
|
||||
<textarea-copyable v-model:value="decryptedOutput" rows="3" multiline :placeholder="t('tools.age-crypto.texts.placeholder-decrypted-output-will-be-generated-here')" />
|
||||
</n-card>
|
||||
<n-button type="primary" @click="decrypt">
|
||||
{{ t('tools.age-crypto.texts.tag-decrypt') }}
|
||||
</n-button>
|
||||
</n-tab-pane>
|
||||
|
||||
<!-- Decrypt Binary -->
|
||||
<n-tab-pane name="decryptBinary" :tab="t('tools.age-crypto.text.decrypt-binary')">
|
||||
<n-card :title="t('tools.age-crypto.texts.title-private-keys')" mb-1>
|
||||
<n-input v-model:value="identitiesBinary" type="textarea" :placeholder="t('tools.age-crypto.texts.placeholder-identity-key-or-keys-one-per-line')" required />
|
||||
</n-card>
|
||||
<n-card :title="t('tools.age-crypto.texts.title-encrypted-files')" mb-1>
|
||||
<c-file-upload
|
||||
:title="t('tools.age-crypto.texts.title-drag-and-drop-files-here-or-click-to-select-some-files')"
|
||||
multiple
|
||||
@files-upload="onDecryptFilesUploaded"
|
||||
/>
|
||||
<ul>
|
||||
<li v-for="(file, index) in filesDecrypt" :key="index">
|
||||
{{ file.name }}
|
||||
</li>
|
||||
</ul>
|
||||
</n-card>
|
||||
<n-card :title="t('tools.age-crypto.texts.title-output')" mb-1>
|
||||
<p>{{ t('tools.age-crypto.texts.tag-the-decrypted-files-will-be-downloaded') }}</p>
|
||||
</n-card>
|
||||
<n-button type="primary" @click="decryptBinary">
|
||||
{{ t('tools.age-crypto.texts.tag-decrypt-binary') }}
|
||||
</n-button>
|
||||
</n-tab-pane>
|
||||
</n-tabs>
|
||||
</template>
|
||||
@@ -1,14 +0,0 @@
|
||||
import { EyeOff } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.age-crypto.title'),
|
||||
path: '/age-crypto',
|
||||
description: t('tools.age-crypto.description'),
|
||||
keywords: ['age'],
|
||||
component: () => import('./age-crypto.vue'),
|
||||
icon: EyeOff,
|
||||
createdAt: new Date('2025-05-08'),
|
||||
category: 'Crypto',
|
||||
});
|
||||
@@ -1,10 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import promptSplitter from 'chatgpt-prompt-splitter';
|
||||
import { useValidation } from '@/composable/validation';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const prompt = ref('');
|
||||
const splitLength = ref(1024);
|
||||
|
||||
@@ -26,7 +23,7 @@ const promptValidation = useValidation({
|
||||
rules: [
|
||||
{
|
||||
validator: v => v !== '',
|
||||
message: t('tools.ai-prompt-splitter.texts.message-prompt-must-not-be-empty'),
|
||||
message: 'Prompt must not be empty',
|
||||
},
|
||||
],
|
||||
});
|
||||
@@ -34,22 +31,22 @@ const promptValidation = useValidation({
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-card :title="t('tools.ai-prompt-splitter.texts.title-prompt-and-options')" mb-2>
|
||||
<c-card title="Prompt and options" mb-2>
|
||||
<c-input-text
|
||||
v-model:value="prompt"
|
||||
:label="t('tools.ai-prompt-splitter.texts.label-full-prompt')"
|
||||
label="Full Prompt"
|
||||
multiline
|
||||
:placeholder="t('tools.ai-prompt-splitter.texts.placeholder-put-your-full-prompt-here')"
|
||||
placeholder="Put your full prompt here..."
|
||||
rows="10"
|
||||
:validation="promptValidation"
|
||||
mb-2
|
||||
/>
|
||||
<n-form-item :label="t('tools.ai-prompt-splitter.texts.label-character-length-for-each-chunk')">
|
||||
<n-form-item label="Character length for each chunk">
|
||||
<n-input-number v-model:value="splitLength" :min="1" />
|
||||
</n-form-item>
|
||||
</c-card>
|
||||
|
||||
<c-card :title="t('tools.ai-prompt-splitter.texts.title-divided-prompts')">
|
||||
<c-card title="Divided prompts">
|
||||
<div v-for="(splittedPrompt, index) in splittedPrompts" :key="index">
|
||||
<TextareaCopyable :value="splittedPrompt" />
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { Prompt } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.ai-prompt-splitter.title'),
|
||||
name: 'AI Prompt Splitter',
|
||||
path: '/ai-prompt-splitter',
|
||||
description: t('tools.ai-prompt-splitter.description'),
|
||||
description: 'Split a long document to multiple chat (ie ChatGPT) prompts',
|
||||
keywords: ['ai', 'chatgpt', 'gpt', 'prompt', 'splitter'],
|
||||
component: () => import('./ai-prompt-splitter.vue'),
|
||||
icon: Prompt,
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { Angle } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.angle-converter.title'),
|
||||
name: 'Angle Units Converter',
|
||||
path: '/angle-converter',
|
||||
description: t('tools.angle-converter.description'),
|
||||
description: 'Convert values between angle units',
|
||||
keywords: ['angle', 'converter'],
|
||||
component: () => import('./angle-converter.vue'),
|
||||
icon: Angle,
|
||||
|
||||
@@ -1,163 +0,0 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { onMounted, ref } from 'vue';
|
||||
import {
|
||||
NButton, NCheckbox, NCheckboxGroup, NInput,
|
||||
} from 'naive-ui';
|
||||
import { Terminal } from '@xterm/xterm';
|
||||
import '@xterm/xterm/css/xterm.css';
|
||||
import styles from 'ansi-styles';
|
||||
import type { CSPair } from 'ansi-styles';
|
||||
import { useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const terminalContainer = ref<HTMLElement | null>(null);
|
||||
|
||||
const decoratedText = useQueryParamOrStorage({ name: 'text', storageName: 'ansi:t', defaultValue: 'Sample text' });
|
||||
const foregroundColor = useQueryParamOrStorage({ name: 'fg', storageName: 'ansi:fg', defaultValue: '' });
|
||||
const backgroundColor = useQueryParamOrStorage({ name: 'bg', storageName: 'ansi:bg', defaultValue: '' });
|
||||
const fontStyles = useQueryParamOrStorage({ name: 'styles', storageName: 'ansi:st', defaultValue: [] });
|
||||
const colorMode = useQueryParamOrStorage({ name: 'mode', storageName: 'ansi:m', defaultValue: '256' });
|
||||
|
||||
const outputEscapeSequence = computed(() => {
|
||||
let openSeq = '';
|
||||
let closeSeq = '';
|
||||
|
||||
if (foregroundColor.value) {
|
||||
if (colorMode.value === 'basic') {
|
||||
openSeq += styles.color.ansi(styles.hexToAnsi(foregroundColor.value));
|
||||
}
|
||||
else if (colorMode.value === '256') {
|
||||
openSeq += styles.color.ansi256(styles.hexToAnsi256(foregroundColor.value));
|
||||
}
|
||||
else {
|
||||
openSeq += styles.color.ansi16m(...styles.hexToRgb(foregroundColor.value));
|
||||
}
|
||||
closeSeq = styles.color.close + closeSeq;
|
||||
}
|
||||
if (backgroundColor.value) {
|
||||
if (colorMode.value === 'basic') {
|
||||
openSeq += styles.bgColor.ansi(styles.hexToAnsi(backgroundColor.value));
|
||||
}
|
||||
else if (colorMode.value === '256') {
|
||||
openSeq += styles.bgColor.ansi256(styles.hexToAnsi256(backgroundColor.value));
|
||||
}
|
||||
else {
|
||||
openSeq += styles.bgColor.ansi16m(...styles.hexToRgb(backgroundColor.value));
|
||||
}
|
||||
closeSeq = styles.bgColor.close + closeSeq;
|
||||
}
|
||||
|
||||
fontStyles.value.forEach((style) => {
|
||||
if (styles.modifier[style]) {
|
||||
openSeq += (styles.modifier[style] as CSPair).open;
|
||||
closeSeq = (styles.modifier[style] as CSPair).close + closeSeq;
|
||||
}
|
||||
});
|
||||
|
||||
return `${openSeq}${decoratedText.value}${closeSeq}`;
|
||||
});
|
||||
|
||||
let term: Terminal;
|
||||
function writeTermAndScrollBottom(text: string) {
|
||||
if (!term) {
|
||||
return;
|
||||
}
|
||||
term.writeln(text);
|
||||
term.scrollToBottom();
|
||||
}
|
||||
onMounted(() => {
|
||||
term = new Terminal({
|
||||
rows: 5,
|
||||
});
|
||||
term.open(terminalContainer.value!);
|
||||
writeTermAndScrollBottom(outputEscapeSequence.value);
|
||||
});
|
||||
|
||||
watch(outputEscapeSequence, seq => writeTermAndScrollBottom(seq), { immediate: true });
|
||||
|
||||
const escapeSequenceToTest = ref('');
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<NSpace justify="center">
|
||||
<n-form-item :label="t('tools.ansi-escape-tester.texts.label-mode')" label-placement="left">
|
||||
<n-radio-group v-model:value="colorMode">
|
||||
<n-radio value="basic">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-basic') }}
|
||||
</n-radio>
|
||||
<n-radio value="256">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-256-color') }}
|
||||
</n-radio>
|
||||
<n-radio value="truecolor">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-truecolor') }}
|
||||
</n-radio>
|
||||
</n-radio-group>
|
||||
</n-form-item>
|
||||
</NSpace>
|
||||
|
||||
<n-form-item :label="t('tools.ansi-escape-tester.texts.label-foreground')" label-placement="left" mb-1>
|
||||
<n-color-picker v-model:value="foregroundColor" :modes="['hex']" :show-alpha="false" :actions="['clear']" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.ansi-escape-tester.texts.label-background')" label-placement="left" mb-1>
|
||||
<n-color-picker v-model:value="backgroundColor" :modes="['hex']" :show-alpha="false" :actions="['clear']" />
|
||||
</n-form-item>
|
||||
|
||||
<NSpace justify="center" mb-1>
|
||||
<n-form-item :label="t('tools.ansi-escape-tester.texts.label-styles')" label-placement="left">
|
||||
<NCheckboxGroup v-model:value="fontStyles">
|
||||
<NCheckbox value="bold">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-bold') }}
|
||||
</NCheckbox>
|
||||
<NCheckbox value="italic">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-italic') }}
|
||||
</NCheckbox>
|
||||
<NCheckbox value="underline">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-underline') }}
|
||||
</NCheckbox>
|
||||
<NCheckbox value="overline">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-overline') }}
|
||||
</NCheckbox>
|
||||
<NCheckbox value="inverse">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-inverse') }}
|
||||
</NCheckbox>
|
||||
<NCheckbox value="dim">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-dim') }}
|
||||
</NCheckbox>
|
||||
<NCheckbox value="strikethrough">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-strikethrough') }}
|
||||
</NCheckbox>
|
||||
</NCheckboxGroup>
|
||||
</n-form-item>
|
||||
</NSpace>
|
||||
|
||||
<n-form-item :label="t('tools.ansi-escape-tester.texts.label-decorated-text')" label-placement="left" mb-1>
|
||||
<NInput v-model:value="decoratedText" :placeholder="t('tools.ansi-escape-tester.texts.placeholder-enter-text')" />
|
||||
</n-form-item>
|
||||
|
||||
<c-card :title="t('tools.ansi-escape-tester.texts.title-output-ansi-escape-sequence')">
|
||||
<input-copyable v-model:value="outputEscapeSequence" readonly />
|
||||
</c-card>
|
||||
<c-card :title="t('tools.ansi-escape-tester.texts.title-terminal-preview')">
|
||||
<n-form-item label-placement="left" :label="t('tools.ansi-escape-tester.texts.label-custom-ansi-sequence')">
|
||||
<NInput v-model:value="escapeSequenceToTest" :placeholder="t('tools.ansi-escape-tester.texts.placeholder-enter-ansi-escape-sequence')" />
|
||||
<NButton type="primary" ml-1 @click="term?.writeln(escapeSequenceToTest)">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-test') }}
|
||||
</NButton>
|
||||
<NButton type="primary" ml-1 @click="term?.clear()">
|
||||
{{ t('tools.ansi-escape-tester.texts.tag-clear') }}
|
||||
</NButton>
|
||||
</n-form-item>
|
||||
<div ref="terminalContainer" class="terminal" />
|
||||
</c-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.terminal {
|
||||
height: 6em;
|
||||
background-color: black;
|
||||
}
|
||||
</style>
|
||||
@@ -1,14 +0,0 @@
|
||||
import { Terminal2 } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.ansi-escape-tester.title'),
|
||||
path: '/ansi-escape-tester',
|
||||
description: t('tools.ansi-escape-tester.description'),
|
||||
keywords: ['ansi', 'escape', 'tester'],
|
||||
component: () => import('./ansi-escape-tester.vue'),
|
||||
icon: Terminal2,
|
||||
createdAt: new Date('2025-07-06'),
|
||||
category: 'Development',
|
||||
});
|
||||
@@ -1,10 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { Vault } from 'ansible-vault';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const decryptedInput = ref('');
|
||||
const encryptPassword = ref('');
|
||||
const encryptId = ref('');
|
||||
@@ -37,11 +34,11 @@ const decryptedOutput = computedAsync(
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-card :title="t('tools.ansible-vault-crypt-decrypt.texts.title-encrypt-ansible-vault-secret')">
|
||||
<c-card title="Encrypt Ansible Vault Secret">
|
||||
<c-input-text
|
||||
v-model:value="decryptedInput"
|
||||
:placeholder="t('tools.ansible-vault-crypt-decrypt.texts.placeholder-put-your-string-to-encrypt')"
|
||||
:label="t('tools.ansible-vault-crypt-decrypt.texts.label-string-to-encrypt')"
|
||||
placeholder="Put your string to encrypt..."
|
||||
label="String to encrypt"
|
||||
raw-text
|
||||
mb-5
|
||||
/>
|
||||
@@ -49,15 +46,15 @@ const decryptedOutput = computedAsync(
|
||||
<n-space>
|
||||
<c-input-text
|
||||
v-model:value="encryptPassword"
|
||||
:placeholder="t('tools.ansible-vault-crypt-decrypt.texts.placeholder-encryption-password')"
|
||||
:label="t('tools.ansible-vault-crypt-decrypt.texts.label-encryption-password')"
|
||||
placeholder="Encryption password"
|
||||
label="Encryption password"
|
||||
raw-text
|
||||
mb-5
|
||||
/>
|
||||
<c-input-text
|
||||
v-model:value="encryptId"
|
||||
:placeholder="t('tools.ansible-vault-crypt-decrypt.texts.placeholder-encryption-id')"
|
||||
:label="t('tools.ansible-vault-crypt-decrypt.texts.label-encryption-id')"
|
||||
placeholder="Encryption Id"
|
||||
label="Encryption Id"
|
||||
raw-text
|
||||
mb-5
|
||||
/>
|
||||
@@ -66,7 +63,7 @@ const decryptedOutput = computedAsync(
|
||||
<n-divider />
|
||||
|
||||
<TextareaCopyable
|
||||
:label="t('tools.ansible-vault-crypt-decrypt.texts.label-encrypted-string')"
|
||||
label="Encrypted string"
|
||||
:value="cryptedOutput"
|
||||
multiline
|
||||
readonly
|
||||
@@ -75,19 +72,19 @@ const decryptedOutput = computedAsync(
|
||||
/>
|
||||
</c-card>
|
||||
|
||||
<c-card :title="t('tools.ansible-vault-crypt-decrypt.texts.title-decrypt-ansible-vault-secret')">
|
||||
<c-card title="Decrypt Ansible Vault Secret">
|
||||
<c-input-text
|
||||
v-model:value="cryptedInput"
|
||||
:placeholder="t('tools.ansible-vault-crypt-decrypt.texts.placeholder-put-your-encrypted-string-here')"
|
||||
:label="t('tools.ansible-vault-crypt-decrypt.texts.label-string-to-decrypt')"
|
||||
placeholder="Put your encrypted string here..."
|
||||
label="String to decrypt"
|
||||
raw-text multiline mb-5
|
||||
rows="5"
|
||||
/>
|
||||
|
||||
<c-input-text
|
||||
v-model:value="decryptPassword"
|
||||
:placeholder="t('tools.ansible-vault-crypt-decrypt.texts.placeholder-decryption-password')"
|
||||
:label="t('tools.ansible-vault-crypt-decrypt.texts.label-decryption-password')"
|
||||
placeholder="Decryption password"
|
||||
label="Decryption password"
|
||||
raw-text
|
||||
mb-5
|
||||
/>
|
||||
@@ -95,7 +92,7 @@ const decryptedOutput = computedAsync(
|
||||
<n-divider />
|
||||
|
||||
<TextareaCopyable
|
||||
:label="t('tools.ansible-vault-crypt-decrypt.texts.label-decrypted-string')"
|
||||
label="Decrypted string"
|
||||
:value="decryptedOutput"
|
||||
multiline
|
||||
readonly
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { LockSquare } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.ansible-vault-crypt-decrypt.title'),
|
||||
name: 'Ansible vault crypt decrypt',
|
||||
path: '/ansible-vault-crypt-decrypt',
|
||||
description: t('tools.ansible-vault-crypt-decrypt.description'),
|
||||
description: 'Encrypt and decrypt Ansible Vault Secrets',
|
||||
keywords: ['ansible', 'vault', 'crypt', 'decrypt'],
|
||||
component: () => import('./ansible-vault-crypt-decrypt.vue'),
|
||||
icon: LockSquare,
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
interface KeyValuePair {
|
||||
key: string
|
||||
value?: string
|
||||
@@ -75,50 +72,50 @@ function emptyKeyPair() {
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-card :title="t('tools.api-tester.texts.title-api-calling')">
|
||||
<c-card title="API Calling">
|
||||
<c-input-text
|
||||
v-model:value="baseUrl"
|
||||
:label="t('tools.api-tester.texts.label-base-api-url')"
|
||||
:placeholder="t('tools.api-tester.texts.placeholder-base-api-url')"
|
||||
label="Base API Url"
|
||||
placeholder="Base API Url"
|
||||
mb-2
|
||||
/>
|
||||
|
||||
<c-select
|
||||
v-model:value="method"
|
||||
:label="t('tools.api-tester.texts.label-http-method')"
|
||||
label="HTTP Method:"
|
||||
:options="['GET', 'POST', 'PUT', 'DELETE', 'PATCH']"
|
||||
mb-2
|
||||
/>
|
||||
|
||||
<c-card :title="t('tools.api-tester.texts.title-headers')" mb-2>
|
||||
<c-card title="Headers" mb-2>
|
||||
<n-dynamic-input v-model:value="headers" :on-create="emptyKeyPair">
|
||||
<template #create-button-default>
|
||||
{{ t('tools.api-tester.texts.tag-add-a-new-http-header') }}
|
||||
Add a new HTTP Header
|
||||
</template>
|
||||
<template #default="{ value }">
|
||||
<div v-if="value" w-100 flex justify-center gap-2>
|
||||
<c-input-text v-model:value="value.key" :placeholder="t('tools.api-tester.texts.placeholder-header-name')" type="text" />
|
||||
<c-input-text v-model:value="value.value" :placeholder="t('tools.api-tester.texts.placeholder-value')" type="text" />
|
||||
<c-input-text v-model:value="value.key" placeholder="Header Name" type="text" />
|
||||
<c-input-text v-model:value="value.value" placeholder="Value" type="text" />
|
||||
</div>
|
||||
</template>
|
||||
</n-dynamic-input>
|
||||
<c-select
|
||||
v-model:value="contentType"
|
||||
:label="t('tools.api-tester.texts.label-content-type')"
|
||||
label="Content-Type:"
|
||||
:options="['application/json', 'text/plain']"
|
||||
mt-2
|
||||
/>
|
||||
</c-card>
|
||||
|
||||
<c-card :title="t('tools.api-tester.texts.title-query-parameters')" mb-2>
|
||||
<c-card title="Query Parameters" mb-2>
|
||||
<n-dynamic-input v-model:value="queryParams" :on-create="emptyKeyPair">
|
||||
<template #create-button-default>
|
||||
{{ t('tools.api-tester.texts.tag-add-a-new-query-parameter') }}
|
||||
Add a new Query Parameter
|
||||
</template>
|
||||
<template #default="{ value }">
|
||||
<div v-if="value" w-100 flex justify-center gap-2>
|
||||
<c-input-text v-model:value="value.key" :placeholder="t('tools.api-tester.texts.placeholder-param-name')" type="text" />
|
||||
<c-input-text v-model:value="value.value" :placeholder="t('tools.api-tester.texts.placeholder-value')" type="text" />
|
||||
<c-input-text v-model:value="value.key" placeholder="Param Name" type="text" />
|
||||
<c-input-text v-model:value="value.value" placeholder="Value" type="text" />
|
||||
</div>
|
||||
</template>
|
||||
</n-dynamic-input>
|
||||
@@ -126,20 +123,20 @@ function emptyKeyPair() {
|
||||
<c-input-text
|
||||
v-if="method !== 'GET' && method !== 'HEAD'"
|
||||
v-model:value="body"
|
||||
:label="t('tools.api-tester.texts.label-body')"
|
||||
:placeholder="t('tools.api-tester.texts.placeholder-http-query-body')"
|
||||
label="Body"
|
||||
placeholder="HTTP Query body"
|
||||
multiline
|
||||
monospace
|
||||
mb-2
|
||||
/>
|
||||
|
||||
<n-checkbox v-model:checked="noCORS">
|
||||
{{ t('tools.api-tester.texts.tag-no-cors') }}
|
||||
No CORS
|
||||
</n-checkbox>
|
||||
|
||||
<div mt-5 flex justify-center>
|
||||
<c-button secondary @click="callAPI">
|
||||
{{ t('tools.api-tester.texts.tag-call-api') }}
|
||||
Call API
|
||||
</c-button>
|
||||
</div>
|
||||
</c-card>
|
||||
@@ -147,11 +144,11 @@ function emptyKeyPair() {
|
||||
v-if="inprogress"
|
||||
size="small"
|
||||
/>
|
||||
<c-alert v-if="!inprogress && apiCallResult && apiCallResult.code !== 200" type="error" mt-12 :title="t('tools.api-tester.texts.title-error-while-calling-api')">
|
||||
<c-alert v-if="!inprogress && apiCallResult && apiCallResult.code !== 200" type="error" mt-12 title="Error while calling API">
|
||||
<p><strong>Status code = {{ apiCallResult.code }}</strong></p>
|
||||
<TextareaCopyable :value="apiCallResult.error" copy-placement="none" />
|
||||
</c-alert>
|
||||
<c-card v-if="!inprogress && apiCallResult && apiCallResult.code === 200" mt-12 :title="t('tools.api-tester.texts.title-api-call-result')">
|
||||
<c-card v-if="!inprogress && apiCallResult && apiCallResult.code === 200" mt-12 title="API Call result">
|
||||
<TextareaCopyable :value="apiCallResult.result" word-wrap />
|
||||
</c-card>
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { World } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.api-tester.title'),
|
||||
name: 'API Tester',
|
||||
path: '/api-tester',
|
||||
description: t('tools.api-tester.description'),
|
||||
description: 'HTTP API Tester',
|
||||
keywords: ['api', 'http', 'call', 'tester'],
|
||||
component: () => import('./api-tester.vue'),
|
||||
icon: World,
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { SquaresDiagonal } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.area-converter.title'),
|
||||
name: 'Area Units Converter',
|
||||
path: '/area-converter',
|
||||
description: t('tools.area-converter.description'),
|
||||
description: 'Convert values between area units',
|
||||
keywords: ['area', 'converter'],
|
||||
component: () => import('./area-converter.vue'),
|
||||
icon: SquaresDiagonal,
|
||||
|
||||
@@ -10,7 +10,6 @@ const width = useStorage('ascii-text-drawer:width', 80);
|
||||
const output = ref('');
|
||||
const errored = ref(false);
|
||||
const processing = ref(false);
|
||||
const { t } = useI18n();
|
||||
|
||||
const base = import.meta.env.BASE_URL ?? '/';
|
||||
|
||||
@@ -50,15 +49,15 @@ watchEffect(async () => {
|
||||
processing.value = false;
|
||||
});
|
||||
|
||||
const fonts = ['1Row', '3-D', '3D Diagonal', '3D-ASCII', '3x5', '4Max', '5 Line Oblique', 'AMC 3 Line', 'AMC 3 Liv1', 'AMC AAA01', 'AMC Neko', 'AMC Razor', 'AMC Razor2', 'AMC Slash', 'AMC Slider', 'AMC Thin', 'AMC Tubes', 'AMC Untitled', 'ANSI Shadow', 'ASCII New Roman', 'Acrobatic', 'Alligator', 'Alligator2', 'Alpha', 'Alphabet', 'Arrows', 'Avatar', 'B1FF', 'Banner', 'Banner3-D', 'Banner3', 'Banner4', 'Barbwire', 'Basic', 'Bear', 'Bell', 'Benjamin', 'Big Chief', 'Big Money-ne', 'Big Money-nw', 'Big Money-se', 'Big Money-sw', 'Big', 'Bigfig', 'Binary', 'Block', 'Blocks', 'Bloody', 'Bolger', 'Braced', 'Bright', 'Broadway KB', 'Broadway', 'Bubble', 'Bulbhead', 'Caligraphy', 'Caligraphy2', 'Calvin S', 'Cards', 'Catwalk', 'Chiseled', 'Chunky', 'Coinstak', 'Cola', 'Colossal', 'Computer', 'Contessa', 'Contrast', 'Cosmike', 'Crawford', 'Crawford2', 'Crazy', 'Cricket', 'Cursive', 'Cyberlarge', 'Cybermedium', 'Cybersmall', 'Cygnet', 'DANC4', 'DOS Rebel', 'DWhistled', 'Dancing Font', 'Decimal', 'Def Leppard', 'Delta Corps Priest 1', 'Diamond', 'Diet Cola', 'Digital', 'Doh', 'Doom', 'Dot Matrix', 'Double Shorts', 'Double', 'Dr Pepper', 'Efti Chess', 'Efti Font', 'Efti Italic', 'Efti Piti', 'Efti Robot', 'Efti Wall', 'Efti Water', 'Electronic', 'Elite', 'Epic', 'Fender', 'Filter', 'Fire Font-k', 'Fire Font-s', 'Flipped', 'Flower Power', 'Four Tops', 'Fraktur', 'Fun Face', 'Fun Faces', 'Fuzzy', 'Georgi16', 'Georgia11', 'Ghost', 'Ghoulish', 'Glenyn', 'Goofy', 'Gothic', 'Graceful', 'Gradient', 'Graffiti', 'Greek', 'Heart Left', 'Heart Right', 'Henry 3D', 'Hex', 'Hieroglyphs', 'Hollywood', 'Horizontal Left', 'Horizontal Right', 'ICL-1900', 'Impossible', 'Invita', 'Isometric1', 'Isometric2', 'Isometric3', 'Isometric4', 'Italic', 'Ivrit', 'JS Block Letters', 'JS Bracket Letters', 'JS Capital Curves', 'JS Cursive', 'JS Stick Letters', 'Jacky', 'Jazmine', 'Jerusalem', 'Katakana', 'Kban', 'Keyboard', 'Knob', 'Konto Slant', 'Konto', 'LCD', 'Larry 3D 2', 'Larry 3D', 'Lean', 'Letters', 'Lil Devil', 'Line Blocks', 'Linux', 'Lockergnome', 'Madrid', 'Marquee', 'Maxfour', 'Merlin1', 'Merlin2', 'Mike', 'Mini', 'Mirror', 'Mnemonic', 'Modular', 'Morse', 'Morse2', 'Moscow', 'Mshebrew210', 'Muzzle', 'NScript', 'NT Greek', 'NV Script', 'Nancyj-Fancy', 'Nancyj-Improved', 'Nancyj-Underlined', 'Nancyj', 'Nipples', 'O8', 'OS2', 'Octal', 'Ogre', 'Old Banner', 'Patorjk\'s Cheese', 'Patorjk-HeX', 'Pawp', 'Peaks Slant', 'Peaks', 'Pebbles', 'Pepper', 'Poison', 'Puffy', 'Puzzle', 'Pyramid', 'Rammstein', 'Rectangles', 'Red Phoenix', 'Relief', 'Relief2', 'Reverse', 'Roman', 'Rot13', 'Rotated', 'Rounded', 'Rowan Cap', 'Rozzo', 'Runic', 'Runyc', 'S Blood', 'SL Script', 'Santa Clara', 'Script', 'Serifcap', 'Shadow', 'Shimrod', 'Short', 'Slant Relief', 'Slant', 'Slide', 'Small Caps', 'Small Isometric1', 'Small Keyboard', 'Small Poison', 'Small Script', 'Small Shadow', 'Small Slant', 'Small Tengwar', 'Small', 'Soft', 'Speed', 'Spliff', 'Stacey', 'Stampate', 'Stampatello', 'Standard', 'Star Strips', 'Star Wars', 'Stellar', 'Stforek', 'Stick Letters', 'Stop', 'Straight', 'Stronger Than All', 'Sub-Zero', 'Swamp Land', 'Swan', 'Sweet', 'THIS', 'Tanja', 'Tengwar', 'Term', 'Test1', 'The Edge', 'Thick', 'Thin', 'Thorned', 'Three Point', 'Ticks Slant', 'Ticks', 'Tiles', 'Tinker-Toy', 'Tombstone', 'Train', 'Trek', 'Tsalagi', 'Tubular', 'Twisted', 'Two Point', 'USA Flag', 'Univers', 'Varsity', 'Wavy', 'Weird', 'Wet Letter', 'Whimsy', 'Wow'];
|
||||
const fonts = ['1Row', '3-D', '3D Diagonal', '3D-ASCII', '3x5', '4Max', '5 Line Oblique', 'AMC 3 Line', 'AMC 3 Liv1', 'AMC AAA01', 'AMC Neko', 'AMC Razor', 'AMC Razor2', 'AMC Slash', 'AMC Slider', 'AMC Thin', 'AMC Tubes', 'AMC Untitled', 'ANSI Shadow', 'ASCII New Roman', 'Acrobatic', 'Alligator', 'Alligator2', 'Alpha', 'Alphabet', 'Arrows', 'Avatar', 'B1FF', 'B1FF', 'Banner', 'Banner3-D', 'Banner3', 'Banner4', 'Barbwire', 'Basic', 'Bear', 'Bell', 'Benjamin', 'Big Chief', 'Big Money-ne', 'Big Money-nw', 'Big Money-se', 'Big Money-sw', 'Big', 'Bigfig', 'Binary', 'Block', 'Blocks', 'Bloody', 'Bolger', 'Braced', 'Bright', 'Broadway KB', 'Broadway', 'Bubble', 'Bulbhead', 'Caligraphy', 'Caligraphy2', 'Calvin S', 'Cards', 'Catwalk', 'Chiseled', 'Chunky', 'Coinstak', 'Cola', 'Colossal', 'Computer', 'Contessa', 'Contrast', 'Cosmike', 'Crawford', 'Crawford2', 'Crazy', 'Cricket', 'Cursive', 'Cyberlarge', 'Cybermedium', 'Cybersmall', 'Cygnet', 'DANC4', 'DOS Rebel', 'DWhistled', 'Dancing Font', 'Decimal', 'Def Leppard', 'Delta Corps Priest 1', 'Diamond', 'Diet Cola', 'Digital', 'Doh', 'Doom', 'Dot Matrix', 'Double Shorts', 'Double', 'Dr Pepper', 'Efti Chess', 'Efti Font', 'Efti Italic', 'Efti Piti', 'Efti Robot', 'Efti Wall', 'Efti Water', 'Electronic', 'Elite', 'Epic', 'Fender', 'Filter', 'Fire Font-k', 'Fire Font-s', 'Flipped', 'Flower Power', 'Four Tops', 'Fraktur', 'Fun Face', 'Fun Faces', 'Fuzzy', 'Georgi16', 'Georgia11', 'Ghost', 'Ghoulish', 'Glenyn', 'Goofy', 'Gothic', 'Graceful', 'Gradient', 'Graffiti', 'Greek', 'Heart Left', 'Heart Right', 'Henry 3D', 'Hex', 'Hieroglyphs', 'Hollywood', 'Horizontal Left', 'Horizontal Right', 'ICL-1900', 'Impossible', 'Invita', 'Isometric1', 'Isometric2', 'Isometric3', 'Isometric4', 'Italic', 'Ivrit', 'JS Block Letters', 'JS Bracket Letters', 'JS Capital Curves', 'JS Cursive', 'JS Stick Letters', 'Jacky', 'Jazmine', 'Jerusalem', 'Katakana', 'Kban', 'Keyboard', 'Knob', 'Konto Slant', 'Konto', 'LCD', 'Larry 3D 2', 'Larry 3D', 'Lean', 'Letters', 'Lil Devil', 'Line Blocks', 'Linux', 'Lockergnome', 'Madrid', 'Marquee', 'Maxfour', 'Merlin1', 'Merlin2', 'Mike', 'Mini', 'Mirror', 'Mnemonic', 'Modular', 'Morse', 'Morse2', 'Moscow', 'Mshebrew210', 'Muzzle', 'NScript', 'NT Greek', 'NV Script', 'Nancyj-Fancy', 'Nancyj-Improved', 'Nancyj-Underlined', 'Nancyj', 'Nipples', 'O8', 'OS2', 'Octal', 'Ogre', 'Old Banner', 'Patorjk\'s Cheese', 'Patorjk-HeX', 'Pawp', 'Peaks Slant', 'Peaks', 'Pebbles', 'Pepper', 'Poison', 'Puffy', 'Puzzle', 'Pyramid', 'Rammstein', 'Rectangles', 'Red Phoenix', 'Relief', 'Relief2', 'Reverse', 'Roman', 'Rot13', 'Rot13', 'Rotated', 'Rounded', 'Rowan Cap', 'Rozzo', 'Runic', 'Runyc', 'S Blood', 'SL Script', 'Santa Clara', 'Script', 'Serifcap', 'Shadow', 'Shimrod', 'Short', 'Slant Relief', 'Slant', 'Slide', 'Small Caps', 'Small Isometric1', 'Small Keyboard', 'Small Poison', 'Small Script', 'Small Shadow', 'Small Slant', 'Small Tengwar', 'Small', 'Soft', 'Speed', 'Spliff', 'Stacey', 'Stampate', 'Stampatello', 'Standard', 'Star Strips', 'Star Wars', 'Stellar', 'Stforek', 'Stick Letters', 'Stop', 'Straight', 'Stronger Than All', 'Sub-Zero', 'Swamp Land', 'Swan', 'Sweet', 'THIS', 'Tanja', 'Tengwar', 'Term', 'Test1', 'The Edge', 'Thick', 'Thin', 'Thorned', 'Three Point', 'Ticks Slant', 'Ticks', 'Tiles', 'Tinker-Toy', 'Tombstone', 'Train', 'Trek', 'Tsalagi', 'Tubular', 'Twisted', 'Two Point', 'USA Flag', 'Univers', 'Varsity', 'Wavy', 'Weird', 'Wet Letter', 'Whimsy', 'Wow'];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-card>
|
||||
<c-input-text
|
||||
v-model:value="input"
|
||||
:label="t('tools.ascii-text-drawer.text')"
|
||||
:placeholder="t('tools.ascii-text-drawer.placeholder')"
|
||||
label="Your text:"
|
||||
placeholder="Your text to draw"
|
||||
raw-text
|
||||
multiline
|
||||
rows="4"
|
||||
@@ -72,15 +71,15 @@ const fonts = ['1Row', '3-D', '3D Diagonal', '3D-ASCII', '3x5', '4Max', '5 Line
|
||||
<c-select
|
||||
v-model:value="font"
|
||||
label-position="top"
|
||||
:label="t('tools.ascii-text-drawer.font')"
|
||||
label="Font:"
|
||||
:options="fonts"
|
||||
searchable="true"
|
||||
:placeholder="t('tools.ascii-text-drawer.texts.placeholder-select-font-to-use')"
|
||||
placeholder="Select font to use"
|
||||
/>
|
||||
</n-gi>
|
||||
<n-gi span="2">
|
||||
<n-form-item :label="t('tools.ascii-text-drawer.width')" label-placement="top" label-width="100" :show-feedback="false">
|
||||
<n-input-number v-model:value="width" min="0" max="10000" w-full :placeholder="t('tools.ascii-text-drawer.texts.placeholder-width-of-the-text')" />
|
||||
<n-form-item label="Width:" label-placement="top" label-width="100" :show-feedback="false">
|
||||
<n-input-number v-model:value="width" min="0" max="10000" w-full placeholder="Width of the text" />
|
||||
</n-form-item>
|
||||
</n-gi>
|
||||
</n-grid>
|
||||
@@ -89,14 +88,14 @@ const fonts = ['1Row', '3-D', '3D Diagonal', '3D-ASCII', '3x5', '4Max', '5 Line
|
||||
|
||||
<div v-if="processing" flex items-center justify-center>
|
||||
<n-spin size="medium" />
|
||||
<span class="ml-2">{{ t('tools.ascii-text-drawer.loading') }}</span>
|
||||
<span class="ml-2">Loading font...</span>
|
||||
</div>
|
||||
|
||||
<c-alert v-if="errored" mt-1 text-center type="error">
|
||||
{{ t('tools.ascii-text-drawer.error') }}
|
||||
Current settings resulted in error.
|
||||
</c-alert>
|
||||
|
||||
<n-form-item v-if="!processing && !errored" :label="t('tools.ascii-text-drawer.output')">
|
||||
<n-form-item v-if="!processing && !errored" label="Ascii Art text:">
|
||||
<TextareaCopyable
|
||||
:value="output"
|
||||
mb-1 mt-1
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { Artboard } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.ascii-text-drawer.title'),
|
||||
name: 'ASCII Art Text Generator',
|
||||
path: '/ascii-text-drawer',
|
||||
description: t('tools.ascii-text-drawer.description'),
|
||||
description: 'Create ASCII art text with many fonts and styles.',
|
||||
keywords: ['ascii', 'asciiart', 'text', 'drawer'],
|
||||
component: () => import('./ascii-text-drawer.vue'),
|
||||
icon: Artboard,
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<!-- AspectRatioCalculator.vue -->
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { ref } from 'vue';
|
||||
import { NButton, NInputNumber, NRadio, NRadioGroup, NSpace } from 'naive-ui';
|
||||
import {
|
||||
@@ -8,8 +7,6 @@ import {
|
||||
calculateDimensions,
|
||||
} from './aspect-ratio-calculator.service';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const width = ref<number | null>(null);
|
||||
const height = ref<number | null>(null);
|
||||
const r1 = ref<number | null>(null);
|
||||
@@ -75,47 +72,47 @@ function clearRatio() {
|
||||
<NSpace vertical :size="24">
|
||||
<NRadioGroup v-model:value="mode">
|
||||
<NRadio value="ratio">
|
||||
{{ t('tools.aspect-ratio-calculator.texts.tag-calculate-aspect-ratio') }}
|
||||
Calculate Aspect Ratio
|
||||
</NRadio>
|
||||
<NRadio value="dimensions">
|
||||
{{ t('tools.aspect-ratio-calculator.texts.tag-calculate-dimensions') }}
|
||||
Calculate Dimensions
|
||||
</NRadio>
|
||||
</NRadioGroup>
|
||||
|
||||
<div class="input-group">
|
||||
<div class="input-pair">
|
||||
<label>{{ t('tools.aspect-ratio-calculator.texts.tag-pixels-width') }}</label>
|
||||
<NInputNumber v-model:value="width" :placeholder="t('tools.aspect-ratio-calculator.texts.placeholder-pixels-width')" :min="1" />
|
||||
<label>Pixels width</label>
|
||||
<NInputNumber v-model:value="width" placeholder="Pixels width" :min="1" />
|
||||
</div>
|
||||
<div class="input-pair">
|
||||
<label>{{ t('tools.aspect-ratio-calculator.texts.tag-pixels-height') }}</label>
|
||||
<NInputNumber v-model:value="height" :placeholder="t('tools.aspect-ratio-calculator.texts.placeholder-pixels-height')" :min="1" />
|
||||
<label>Pixels height</label>
|
||||
<NInputNumber v-model:value="height" placeholder="Pixels height" :min="1" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="input-group">
|
||||
<div class="input-pair">
|
||||
<label>{{ t('tools.aspect-ratio-calculator.texts.tag-ratio-width') }}</label>
|
||||
<NInputNumber v-model:value="r1" :placeholder="t('tools.aspect-ratio-calculator.texts.placeholder-ratio-width')" :min="1" />
|
||||
<label>Ratio width</label>
|
||||
<NInputNumber v-model:value="r1" placeholder="Ratio width" :min="1" />
|
||||
</div>
|
||||
<div class="separator">
|
||||
{{ t('tools.aspect-ratio-calculator.texts.tag-') }}
|
||||
:
|
||||
</div>
|
||||
<div class="input-pair">
|
||||
<label>{{ t('tools.aspect-ratio-calculator.texts.tag-ratio-height') }}</label>
|
||||
<NInputNumber v-model:value="r2" :placeholder="t('tools.aspect-ratio-calculator.texts.placeholder-ratio-height')" :min="1" />
|
||||
<label>Ratio height</label>
|
||||
<NInputNumber v-model:value="r2" placeholder="Ratio height" :min="1" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="button-container">
|
||||
<NButton type="primary" @click="calculateResult">
|
||||
{{ t('tools.aspect-ratio-calculator.texts.tag-calculate') }}
|
||||
Calculate
|
||||
</NButton>
|
||||
<NButton v-if="mode === 'ratio'" @click="clearRatio">
|
||||
{{ t('tools.aspect-ratio-calculator.texts.tag-clear-ratio') }}
|
||||
Clear Ratio
|
||||
</NButton>
|
||||
<NButton @click="clearAll">
|
||||
{{ t('tools.aspect-ratio-calculator.texts.tag-clear-all') }}
|
||||
Clear All
|
||||
</NButton>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { AspectRatio } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.aspect-ratio-calculator.title'),
|
||||
name: 'Aspect Ratio Calculator',
|
||||
path: '/aspect-ratio-calculator',
|
||||
description: t('tools.aspect-ratio-calculator.description'),
|
||||
description: 'Use this ratio calculator to check the dimensions when resizing images.',
|
||||
keywords: ['aspect', 'ratio', 'calculator'],
|
||||
component: () => import('./aspect-ratio-calculator.vue'),
|
||||
icon: AspectRatio,
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import bwipjs, { type RenderOptions } from 'bwip-js/browser';
|
||||
import { Base64 } from 'js-base64';
|
||||
import formats from './barcode.formats.json';
|
||||
import { useDownloadFileFromBase64 } from '@/composable/downloadBase64';
|
||||
import { useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const foreground = useQueryParamOrStorage({ name: 'fg', storageName: 'barcode-gen:fg', defaultValue: '#000000' });
|
||||
const background = useQueryParamOrStorage({ name: 'bg', storageName: 'barcode-gen:bg', defaultValue: '#FFFFFF' });
|
||||
const scale = useQueryParamOrStorage({ name: 'scale', storageName: 'barcode-gen:scale', defaultValue: 2 });
|
||||
@@ -70,17 +67,17 @@ const { download: downloadSVG } = useDownloadFileFromBase64({ source: barcodeSVG
|
||||
label-position="left"
|
||||
label-width="130px"
|
||||
label-align="right"
|
||||
:label="t('tools.barcode-generator.texts.label-text')"
|
||||
label="Text:"
|
||||
multiline
|
||||
rows="1"
|
||||
autosize
|
||||
:placeholder="t('tools.barcode-generator.texts.placeholder-your-barcode')"
|
||||
placeholder="Your barcode..."
|
||||
mb-6
|
||||
/>
|
||||
<n-form label-width="130" label-placement="left">
|
||||
<c-select
|
||||
v-model:value="format"
|
||||
:label="t('tools.barcode-generator.texts.label-format')"
|
||||
label="Format:"
|
||||
label-position="left"
|
||||
label-width="130px"
|
||||
label-align="right"
|
||||
@@ -89,22 +86,22 @@ const { download: downloadSVG } = useDownloadFileFromBase64({ source: barcodeSVG
|
||||
mb-4
|
||||
/>
|
||||
|
||||
<n-form-item :label="t('tools.barcode-generator.texts.label-foreground-color')">
|
||||
<n-form-item label="Foreground color:">
|
||||
<n-color-picker v-model:value="foreground" :modes="['hex']" :show-alpha="false" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.barcode-generator.texts.label-background-color')">
|
||||
<n-form-item label="Background color:">
|
||||
<n-color-picker v-model:value="background" :modes="['hex']" :show-alpha="false" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.barcode-generator.texts.label-scale')">
|
||||
<n-form-item label="Scale:">
|
||||
<n-input-number v-model:value="scale" :min="0" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.barcode-generator.texts.label-height-mm')">
|
||||
<n-form-item label="Height (mm):">
|
||||
<n-input-number v-model:value="height" :min="0" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.barcode-generator.texts.label-margin')">
|
||||
<n-form-item label="Margin:">
|
||||
<n-input-number v-model:value="margin" :min="0" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.barcode-generator.texts.label-display-text')">
|
||||
<n-form-item label="Display text:">
|
||||
<n-checkbox v-model:checked="displayValue" />
|
||||
</n-form-item>
|
||||
</n-form>
|
||||
@@ -117,10 +114,10 @@ const { download: downloadSVG } = useDownloadFileFromBase64({ source: barcodeSVG
|
||||
<canvas ref="barcodeCanvas" />
|
||||
<div flex justify-center>
|
||||
<c-button mr-2 @click="downloadPNG">
|
||||
{{ t('tools.barcode-generator.texts.tag-download-png-barcode') }}
|
||||
Download PNG barcode
|
||||
</c-button>
|
||||
<c-button @click="downloadSVG">
|
||||
{{ t('tools.barcode-generator.texts.tag-download-svg-barcode') }}
|
||||
Download SVG barcode
|
||||
</c-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { Barcode } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.barcode-generator.title'),
|
||||
name: 'Barcode Generator',
|
||||
path: '/barcode-generator',
|
||||
description: t('tools.barcode-generator.description'),
|
||||
description: 'Barcode generator',
|
||||
keywords: ['barcode', 'generator'],
|
||||
component: () => import('./barcode-generator.vue'),
|
||||
icon: Barcode,
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { BarcodeFormat, BrowserMultiFormatReader } from '@zxing/library';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const imageBase64 = ref('');
|
||||
const barCode = computedAsync(async () => {
|
||||
if (imageBase64.value === '') {
|
||||
@@ -41,7 +38,7 @@ async function onUpload(file: File) {
|
||||
<template>
|
||||
<div>
|
||||
<c-file-upload
|
||||
:title="t('tools.barcode-reader.texts.title-drag-and-drop-a-barcode-here-or-click-to-select-a-file')"
|
||||
title="Drag and drop a BarCode here, or click to select a file"
|
||||
:paste-image="true"
|
||||
mb-3
|
||||
@file-upload="onUpload"
|
||||
@@ -50,7 +47,7 @@ async function onUpload(file: File) {
|
||||
<div v-if="barCode?.text">
|
||||
<n-divider />
|
||||
|
||||
<h3>{{ t('tools.barcode-reader.texts.tag-decoded') }}<span v-if="barCode?.format">({{ barCode?.format }})</span></h3>
|
||||
<h3>Decoded <span v-if="barCode?.format">({{ barCode?.format }})</span></h3>
|
||||
<TextareaCopyable
|
||||
:value="barCode?.text"
|
||||
:word-wrap="true"
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { Barcode } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.barcode-reader.title'),
|
||||
name: 'Barcode Reader',
|
||||
path: '/barcode-reader',
|
||||
description: t('tools.barcode-reader.description'),
|
||||
description: 'Barcode reader',
|
||||
keywords: ['barcode', 'reader'],
|
||||
component: () => import('./barcode-reader.vue'),
|
||||
icon: Barcode,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useBase64 } from '@vueuse/core';
|
||||
import type { Ref } from 'vue';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
@@ -7,8 +6,6 @@ import { getExtensionFromMimeType, getMimeTypeFromBase64, previewImageFromBase64
|
||||
import { useValidation } from '@/composable/validation';
|
||||
import { isValidBase64 } from '@/utils/base64';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const fileName = ref('file');
|
||||
const fileExtension = ref('');
|
||||
const base64Input = ref('');
|
||||
@@ -22,7 +19,7 @@ const base64InputValidation = useValidation({
|
||||
source: base64Input,
|
||||
rules: [
|
||||
{
|
||||
message: t('tools.base64-file-converter.texts.message-invalid-base-64-string'),
|
||||
message: 'Invalid base 64 string',
|
||||
validator: value => isValidBase64(value.trim()),
|
||||
},
|
||||
],
|
||||
@@ -72,7 +69,7 @@ function downloadFile() {
|
||||
|
||||
const fileInput = ref() as Ref<File>;
|
||||
const { base64: fileBase64 } = useBase64(fileInput);
|
||||
const { copy: copyFileBase64 } = useCopy({ source: fileBase64, text: t('tools.base64-file-converter.texts.text-base64-string-copied-to-the-clipboard') });
|
||||
const { copy: copyFileBase64 } = useCopy({ source: fileBase64, text: 'Base64 string copied to the clipboard' });
|
||||
|
||||
async function onUpload(file: File) {
|
||||
if (file) {
|
||||
@@ -82,21 +79,21 @@ async function onUpload(file: File) {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-card :title="t('tools.base64-file-converter.texts.title-base64-to-file')">
|
||||
<c-card title="Base64 to file">
|
||||
<n-grid cols="3" x-gap="12">
|
||||
<n-gi span="2">
|
||||
<c-input-text
|
||||
v-model:value="fileName"
|
||||
:label="t('tools.base64-file-converter.texts.label-file-name')"
|
||||
:placeholder="t('tools.base64-file-converter.texts.placeholder-download-filename')"
|
||||
label="File Name"
|
||||
placeholder="Download filename"
|
||||
mb-2
|
||||
/>
|
||||
</n-gi>
|
||||
<n-gi>
|
||||
<c-input-text
|
||||
v-model:value="fileExtension"
|
||||
:label="t('tools.base64-file-converter.texts.label-extension')"
|
||||
:placeholder="t('tools.base64-file-converter.texts.placeholder-extension')"
|
||||
label="Extension"
|
||||
placeholder="Extension"
|
||||
mb-2
|
||||
/>
|
||||
</n-gi>
|
||||
@@ -104,7 +101,7 @@ async function onUpload(file: File) {
|
||||
<c-input-text
|
||||
v-model:value="base64Input"
|
||||
multiline
|
||||
:placeholder="t('tools.base64-file-converter.texts.placeholder-put-your-base64-file-string-here')"
|
||||
placeholder="Put your base64 file string here..."
|
||||
rows="5"
|
||||
:validation="base64InputValidation"
|
||||
mb-2
|
||||
@@ -116,21 +113,21 @@ async function onUpload(file: File) {
|
||||
|
||||
<div flex justify-center gap-3>
|
||||
<c-button :disabled="base64Input === '' || !base64InputValidation.isValid" @click="previewImage()">
|
||||
{{ t('tools.base64-file-converter.texts.tag-preview-image') }}
|
||||
Preview image
|
||||
</c-button>
|
||||
<c-button :disabled="base64Input === '' || !base64InputValidation.isValid" @click="downloadFile()">
|
||||
{{ t('tools.base64-file-converter.texts.tag-download-file') }}
|
||||
Download file
|
||||
</c-button>
|
||||
</div>
|
||||
</c-card>
|
||||
|
||||
<c-card :title="t('tools.base64-file-converter.texts.title-file-to-base64')">
|
||||
<c-file-upload :title="t('tools.base64-file-converter.texts.title-drag-and-drop-a-file-here-or-click-to-select-a-file')" @file-upload="onUpload" />
|
||||
<c-input-text :value="fileBase64" multiline readonly :placeholder="t('tools.base64-file-converter.texts.placeholder-file-in-base64-will-be-here')" rows="5" my-2 />
|
||||
<c-card title="File to base64">
|
||||
<c-file-upload title="Drag and drop a file here, or click to select a file" @file-upload="onUpload" />
|
||||
<c-input-text :value="fileBase64" multiline readonly placeholder="File in base64 will be here" rows="5" my-2 />
|
||||
|
||||
<div flex justify-center>
|
||||
<c-button @click="copyFileBase64()">
|
||||
{{ t('tools.base64-file-converter.texts.tag-copy') }}
|
||||
Copy
|
||||
</c-button>
|
||||
</div>
|
||||
</c-card>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { FileDigit } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.base64-file-converter.title'),
|
||||
name: translate('tools.base64-file-converter.title'),
|
||||
path: '/base64-file-converter',
|
||||
description: t('tools.base64-file-converter.description'),
|
||||
description: translate('tools.base64-file-converter.description'),
|
||||
keywords: ['base64', 'converter', 'upload', 'image', 'file', 'conversion', 'web', 'data', 'format'],
|
||||
component: () => import('./base64-file-converter.vue'),
|
||||
icon: FileDigit,
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { Base64 } from 'js-base64';
|
||||
import hexArray from 'hex-array';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
import { isValidBase64 } from '@/utils/base64';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const textInput = ref('');
|
||||
const base64Output = computed(() => {
|
||||
try {
|
||||
@@ -16,7 +13,7 @@ const base64Output = computed(() => {
|
||||
return e.toString();
|
||||
}
|
||||
});
|
||||
const { copy: copyTextBase64 } = useCopy({ source: base64Output, text: t('tools.base64-hex-converter.texts.text-base64-hex-array-copied-to-the-clipboard') });
|
||||
const { copy: copyTextBase64 } = useCopy({ source: base64Output, text: 'Base64 Hex Array copied to the clipboard' });
|
||||
|
||||
const uppercase = ref(false);
|
||||
const grouping = ref(0);
|
||||
@@ -36,70 +33,70 @@ const textOutput = computed(() => {
|
||||
}
|
||||
},
|
||||
);
|
||||
const { copy: copyText } = useCopy({ source: textOutput, text: t('tools.base64-hex-converter.texts.text-hex-array-copied-to-the-clipboard') });
|
||||
const { copy: copyText } = useCopy({ source: textOutput, text: 'Hex Array copied to the clipboard' });
|
||||
const b64ValidationRules = [
|
||||
{
|
||||
message: t('tools.base64-hex-converter.texts.message-invalid-base64-string'),
|
||||
message: 'Invalid base64 string',
|
||||
validator: (value: string) => isValidBase64(value.trim()),
|
||||
},
|
||||
];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-card :title="t('tools.base64-hex-converter.texts.title-hex-array-to-base64')">
|
||||
<c-card title="Hex Array to Base64">
|
||||
<c-input-text
|
||||
v-model:value="textInput"
|
||||
multiline
|
||||
:placeholder="t('tools.base64-hex-converter.texts.placeholder-put-your-hex-array-here')"
|
||||
placeholder="Put your Hex Array here..."
|
||||
rows="5"
|
||||
:label="t('tools.base64-hex-converter.texts.label-hex-array-to-encode')"
|
||||
label="Hex Array to encode"
|
||||
raw-text
|
||||
mb-5
|
||||
/>
|
||||
|
||||
<c-input-text
|
||||
:label="t('tools.base64-hex-converter.texts.label-base64-of-hex-array')"
|
||||
label="Base64 of Hex Array"
|
||||
:value="base64Output"
|
||||
multiline
|
||||
readonly
|
||||
:placeholder="t('tools.base64-hex-converter.texts.placeholder-the-base64-encoding-of-your-hex-array-will-be-here')"
|
||||
placeholder="The Base64 encoding of your Hex Array will be here"
|
||||
rows="5"
|
||||
mb-5
|
||||
/>
|
||||
|
||||
<div flex justify-center>
|
||||
<c-button @click="copyTextBase64()">
|
||||
{{ t('tools.base64-hex-converter.texts.tag-copy-base64') }}
|
||||
Copy Base64
|
||||
</c-button>
|
||||
</div>
|
||||
</c-card>
|
||||
|
||||
<c-card :title="t('tools.base64-hex-converter.texts.title-base64-to-hex-array')">
|
||||
<c-card title="Base64 to Hex Array">
|
||||
<n-space align="baseline" justify="center" mb-1>
|
||||
<n-form-item :label="t('tools.base64-hex-converter.texts.label-uppercase')" label-placement="left">
|
||||
<n-form-item label="Uppercase" label-placement="left">
|
||||
<n-switch v-model:value="uppercase" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.base64-hex-converter.texts.label-group-by')" label-placement="left">
|
||||
<n-input-number v-model:value="grouping" :min="0" style="width: 6em" mr-1 />{{ t('tools.base64-hex-converter.texts.tag-digits-0-no-grouping') }}
|
||||
<n-form-item label="Group by" label-placement="left">
|
||||
<n-input-number v-model:value="grouping" :min="0" style="width: 6em" mr-1 /> digits (0 = no grouping)
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.base64-hex-converter.texts.label-split-as-rows-by')" label-placement="left">
|
||||
<n-input-number v-model:value="rowlength" :min="0" style="width: 6em" mr-1 />{{ t('tools.base64-hex-converter.texts.tag-group-of-digits-0-no-rows') }}
|
||||
<n-form-item label="Split as rows by" label-placement="left">
|
||||
<n-input-number v-model:value="rowlength" :min="0" style="width: 6em" mr-1 /> group of digits (0 = no rows)
|
||||
</n-form-item>
|
||||
</n-space>
|
||||
<c-input-text
|
||||
v-model:value="base64Input"
|
||||
multiline
|
||||
:placeholder="t('tools.base64-hex-converter.texts.placeholder-your-base64-hex-array')"
|
||||
placeholder="Your Base64 Hex Array..."
|
||||
rows="5"
|
||||
:validation-rules="b64ValidationRules"
|
||||
:label="t('tools.base64-hex-converter.texts.label-base64-hex-array-to-decode')"
|
||||
label="Base64 Hex Array to decode"
|
||||
mb-5
|
||||
/>
|
||||
|
||||
<c-input-text
|
||||
v-model:value="textOutput"
|
||||
:label="t('tools.base64-hex-converter.texts.label-decoded-hex-array')"
|
||||
:placeholder="t('tools.base64-hex-converter.texts.placeholder-the-decoded-hex-array-will-be-here')"
|
||||
label="Decoded Hex Array"
|
||||
placeholder="The decoded Hex Array will be here"
|
||||
multiline
|
||||
rows="5"
|
||||
readonly
|
||||
@@ -108,7 +105,7 @@ const b64ValidationRules = [
|
||||
|
||||
<div flex justify-center>
|
||||
<c-button @click="copyText()">
|
||||
{{ t('tools.base64-hex-converter.texts.tag-copy-decoded-hex-array') }}
|
||||
Copy Decoded Hex Array
|
||||
</c-button>
|
||||
</div>
|
||||
</c-card>
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { FileDigit } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.base64-hex-converter.title'),
|
||||
name: 'Base64 Hex array encoder/decoder',
|
||||
path: '/base64-hex-converter',
|
||||
description: t('tools.base64-hex-converter.description'),
|
||||
description: 'Simply encode and decode Hex array into a their base64 representation.',
|
||||
keywords: ['base64', 'converter', 'conversion', 'web', 'data', 'format', 'atob', 'btoa', 'hex'],
|
||||
component: () => import('./base64-hex-converter.vue'),
|
||||
icon: FileDigit,
|
||||
|
||||
@@ -1,26 +1,23 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
import { base64ToText, isValidBase64, textToBase64 } from '@/utils/base64';
|
||||
import { withDefaultOnError } from '@/utils/defaults';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const encodeUrlSafe = useStorage('base64-string-converter--encode-url-safe', false);
|
||||
const decodeUrlSafe = useStorage('base64-string-converter--decode-url-safe', false);
|
||||
|
||||
const textInput = ref('');
|
||||
const base64Output = computed(() => textToBase64(textInput.value, { makeUrlSafe: encodeUrlSafe.value }));
|
||||
const { copy: copyTextBase64 } = useCopy({ source: base64Output, text: t('tools.base64-string-converter.texts.text-base64-string-copied-to-the-clipboard') });
|
||||
const { copy: copyTextBase64 } = useCopy({ source: base64Output, text: 'Base64 string copied to the clipboard' });
|
||||
|
||||
const base64Input = ref('');
|
||||
const textOutput = computed(() =>
|
||||
withDefaultOnError(() => base64ToText(base64Input.value.trim(), { makeUrlSafe: decodeUrlSafe.value }), ''),
|
||||
);
|
||||
const { copy: copyText } = useCopy({ source: textOutput, text: t('tools.base64-string-converter.texts.text-string-copied-to-the-clipboard') });
|
||||
const { copy: copyText } = useCopy({ source: textOutput, text: 'String copied to the clipboard' });
|
||||
const b64ValidationRules = [
|
||||
{
|
||||
message: t('tools.base64-string-converter.texts.message-invalid-base64-string'),
|
||||
message: 'Invalid base64 string',
|
||||
validator: (value: string) => isValidBase64(value.trim(), { makeUrlSafe: decodeUrlSafe.value }),
|
||||
},
|
||||
];
|
||||
@@ -28,56 +25,56 @@ const b64ValidationWatch = [decodeUrlSafe];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-card :title="t('tools.base64-string-converter.texts.title-string-to-base64')">
|
||||
<n-form-item :label="t('tools.base64-string-converter.texts.label-encode-url-safe')" label-placement="left">
|
||||
<c-card title="String to base64">
|
||||
<n-form-item label="Encode URL safe" label-placement="left">
|
||||
<n-switch v-model:value="encodeUrlSafe" />
|
||||
</n-form-item>
|
||||
<c-input-text
|
||||
v-model:value="textInput"
|
||||
multiline
|
||||
:placeholder="t('tools.base64-string-converter.texts.placeholder-put-your-string-here')"
|
||||
placeholder="Put your string here..."
|
||||
rows="5"
|
||||
:label="t('tools.base64-string-converter.texts.label-string-to-encode')"
|
||||
label="String to encode"
|
||||
raw-text
|
||||
mb-5
|
||||
/>
|
||||
|
||||
<c-input-text
|
||||
:label="t('tools.base64-string-converter.texts.label-base64-of-string')"
|
||||
label="Base64 of string"
|
||||
:value="base64Output"
|
||||
multiline
|
||||
readonly
|
||||
:placeholder="t('tools.base64-string-converter.texts.placeholder-the-base64-encoding-of-your-string-will-be-here')"
|
||||
placeholder="The base64 encoding of your string will be here"
|
||||
rows="5"
|
||||
mb-5
|
||||
/>
|
||||
|
||||
<div flex justify-center>
|
||||
<c-button @click="copyTextBase64()">
|
||||
{{ t('tools.base64-string-converter.texts.tag-copy-base64') }}
|
||||
Copy base64
|
||||
</c-button>
|
||||
</div>
|
||||
</c-card>
|
||||
|
||||
<c-card :title="t('tools.base64-string-converter.texts.title-base64-to-string')">
|
||||
<n-form-item :label="t('tools.base64-string-converter.texts.label-decode-url-safe')" label-placement="left">
|
||||
<c-card title="Base64 to string">
|
||||
<n-form-item label="Decode URL safe" label-placement="left">
|
||||
<n-switch v-model:value="decodeUrlSafe" />
|
||||
</n-form-item>
|
||||
<c-input-text
|
||||
v-model:value="base64Input"
|
||||
multiline
|
||||
:placeholder="t('tools.base64-string-converter.texts.placeholder-your-base64-string')"
|
||||
placeholder="Your base64 string..."
|
||||
rows="5"
|
||||
:validation-rules="b64ValidationRules"
|
||||
:validation-watch="b64ValidationWatch"
|
||||
:label="t('tools.base64-string-converter.texts.label-base64-string-to-decode')"
|
||||
label="Base64 string to decode"
|
||||
mb-5
|
||||
/>
|
||||
|
||||
<c-input-text
|
||||
v-model:value="textOutput"
|
||||
:label="t('tools.base64-string-converter.texts.label-decoded-string')"
|
||||
:placeholder="t('tools.base64-string-converter.texts.placeholder-the-decoded-string-will-be-here')"
|
||||
label="Decoded string"
|
||||
placeholder="The decoded string will be here"
|
||||
multiline
|
||||
rows="5"
|
||||
readonly
|
||||
@@ -86,7 +83,7 @@ const b64ValidationWatch = [decodeUrlSafe];
|
||||
|
||||
<div flex justify-center>
|
||||
<c-button @click="copyText()">
|
||||
{{ t('tools.base64-string-converter.texts.tag-copy-decoded-string') }}
|
||||
Copy decoded string
|
||||
</c-button>
|
||||
</div>
|
||||
</c-card>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { FileDigit } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.base64-string-converter.title'),
|
||||
name: translate('tools.base64-string-converter.title'),
|
||||
path: '/base64-string-converter',
|
||||
description: t('tools.base64-string-converter.description'),
|
||||
description: translate('tools.base64-string-converter.description'),
|
||||
keywords: ['base64', 'converter', 'conversion', 'web', 'data', 'format', 'atob', 'btoa'],
|
||||
component: () => import('./base64-string-converter.vue'),
|
||||
icon: FileDigit,
|
||||
|
||||
@@ -1,573 +0,0 @@
|
||||
```bash
|
||||
#!/bin/bash
|
||||
##############################################################################
|
||||
# SHORTCUTS and HISTORY
|
||||
##############################################################################
|
||||
|
||||
CTRL+A # move to beginning of line
|
||||
CTRL+B # moves backward one character
|
||||
CTRL+C # halts the current command
|
||||
CTRL+D # deletes one character backward or logs out of current session, similar to exit
|
||||
CTRL+E # moves to end of line
|
||||
CTRL+F # moves forward one character
|
||||
CTRL+G # aborts the current editing command and ring the terminal bell
|
||||
CTRL+H # deletes one character under cursor (same as DELETE)
|
||||
CTRL+J # same as RETURN
|
||||
CTRL+K # deletes (kill) forward to end of line
|
||||
CTRL+L # clears screen and redisplay the line
|
||||
CTRL+M # same as RETURN
|
||||
CTRL+N # next line in command history
|
||||
CTRL+O # same as RETURN, then displays next line in history file
|
||||
CTRL+P # previous line in command history
|
||||
CTRL+Q # resumes suspended shell output
|
||||
CTRL+R # searches backward
|
||||
CTRL+S # searches forward or suspends shell output
|
||||
CTRL+T # transposes two characters
|
||||
CTRL+U # kills backward from point to the beginning of line
|
||||
CTRL+V # makes the next character typed verbatim
|
||||
CTRL+W # kills the word behind the cursor
|
||||
CTRL+X # lists the possible filename completions of the current word
|
||||
CTRL+Y # retrieves (yank) last item killed
|
||||
CTRL+Z # stops the current command, resume with fg in the foreground or bg in the background
|
||||
|
||||
ALT+B # moves backward one word
|
||||
ALT+D # deletes next word
|
||||
ALT+F # moves forward one word
|
||||
ALT+H # deletes one character backward
|
||||
ALT+T # transposes two words
|
||||
ALT+. # pastes last word from the last command. Pressing it repeatedly traverses through command history.
|
||||
ALT+U # capitalizes every character from the current cursor position to the end of the word
|
||||
ALT+L # uncapitalizes every character from the current cursor position to the end of the word
|
||||
ALT+C # capitalizes the letter under the cursor. The cursor then moves to the end of the word.
|
||||
ALT+R # reverts any changes to a command you’ve pulled from your history if you’ve edited it.
|
||||
ALT+? # list possible completions to what is typed
|
||||
ALT+^ # expand line to most recent match from history
|
||||
|
||||
CTRL+X then ( # start recording a keyboard macro
|
||||
CTRL+X then ) # finish recording keyboard macro
|
||||
CTRL+X then E # recall last recorded keyboard macro
|
||||
CTRL+X then CTRL+E # invoke text editor (specified by $EDITOR) on current command line then execute resultes as shell commands
|
||||
CTRL+A then D # logout from screen but don't kill it, if any command exist, it will continue
|
||||
|
||||
BACKSPACE # deletes one character backward
|
||||
DELETE # deletes one character under cursor
|
||||
|
||||
history # shows command line history
|
||||
!! # repeats the last command
|
||||
!<n> # refers to command line 'n'
|
||||
!<string> # refers to command starting with 'string'
|
||||
esc :wq # exits and saves script
|
||||
|
||||
exit # logs out of current session
|
||||
|
||||
|
||||
##############################################################################
|
||||
# BASH BASICS
|
||||
##############################################################################
|
||||
|
||||
env # displays all environment variables
|
||||
|
||||
echo $SHELL # displays the shell you're using
|
||||
echo $BASH_VERSION # displays bash version
|
||||
|
||||
bash # if you want to use bash (type exit to go back to your previously opened shell)
|
||||
whereis bash # locates the binary, source and manual-page for a command
|
||||
which bash # finds out which program is executed as 'bash' (default: /bin/bash, can change across environments)
|
||||
|
||||
clear # clears content on window (hide displayed lines)
|
||||
|
||||
|
||||
##############################################################################
|
||||
# FILE COMMANDS
|
||||
##############################################################################
|
||||
|
||||
|
||||
ls # lists your files in current directory, ls <dir> to print files in a specific directory
|
||||
ls -l # lists your files in 'long format', which contains the exact size of the file, who owns the file and who has the right to look at it, and when it was last modified
|
||||
ls -a # lists all files in 'long format', including hidden files (name beginning with '.')
|
||||
ln -s <filename> <link> # creates symbolic link to file
|
||||
readlink <filename> # shows where a symbolic links points to
|
||||
tree # show directories and subdirectories in easilly readable file tree
|
||||
mc # terminal file explorer (alternative to ncdu)
|
||||
touch <filename> # creates or updates (edit) your file
|
||||
mktemp -t <filename> # make a temp file in /tmp/ which is deleted at next boot (-d to make directory)
|
||||
cat <filename> # displays file raw content (will not be interpreted)
|
||||
cat -n <filename> # shows number of lines
|
||||
nl <file.sh> # shows number of lines in file
|
||||
cat filename1 > filename2 # Copy filename1 to filename2
|
||||
cat filename1 >> filename2 # merge two files texts together
|
||||
any_command > <filename> # '>' is used to perform redirections, it will set any_command's stdout to file instead of "real stdout" (generally /dev/stdout)
|
||||
more <filename> # shows the first part of a file (move with space and type q to quit)
|
||||
head <filename> # outputs the first lines of file (default: 10 lines)
|
||||
tail <filename> # outputs the last lines of file (useful with -f option) (default: 10 lines)
|
||||
vim <filename> # opens a file in VIM (VI iMproved) text editor, will create it if it doesn't exist
|
||||
mv <filename1> <dest> # moves a file to destination, behavior will change based on 'dest' type (dir: file is placed into dir; file: file will replace dest (tip: useful for renaming))
|
||||
cp <filename1> <dest> # copies a file
|
||||
rm <filename> # removes a file
|
||||
find . -name <name> <type> # searches for a file or a directory in the current directory and all its sub-directories by its name
|
||||
diff <filename1> <filename2> # compares files, and shows where they differ
|
||||
wc <filename> # tells you how many lines, words and characters there are in a file. Use -lwc (lines, word, character) to ouput only 1 of those informations
|
||||
sort <filename> # sorts the contents of a text file line by line in alphabetical order, use -n for numeric sort and -r for reversing order.
|
||||
sort -t -k <filename> # sorts the contents on specific sort key field starting from 1, using the field separator t.
|
||||
rev # reverse string characters (hello becomes olleh)
|
||||
chmod -options <filename> # lets you change the read, write, and execute permissions on your files (more infos: SUID, GUID)
|
||||
gzip <filename> # compresses files using gzip algorithm
|
||||
gunzip <filename> # uncompresses files compressed by gzip
|
||||
gzcat <filename> # lets you look at gzipped file without actually having to gunzip it
|
||||
lpr <filename> # prints the file
|
||||
lpq # checks out the printer queue
|
||||
lprm <jobnumber> # removes something from the printer queue
|
||||
genscript # converts plain text files into postscript for printing and gives you some options for formatting
|
||||
dvips <filename> # prints .dvi files (i.e. files produced by LaTeX)
|
||||
grep <pattern> <filenames> # looks for the string in the files
|
||||
grep -r <pattern> <dir> # search recursively for pattern in directory
|
||||
head -n file_name | tail +n # Print nth line from file.
|
||||
head -y lines.txt | tail +x # want to display all the lines from x to y. This includes the xth and yth lines.
|
||||
|
||||
sed 's/<pattern>/<replacement>/g' <filename> # replace pattern in file with replacement value to std output the character after s (/) is the delimeter
|
||||
sed -i 's/<pattern>/<replacement>/g' <filename> # replace pattern in file with replacement value in place
|
||||
echo "this" | sed 's/is/at/g' # replace pattern from input stream with replacement value
|
||||
|
||||
##############################################################################
|
||||
# DIRECTORY COMMANDS
|
||||
##############################################################################
|
||||
|
||||
|
||||
mkdir <dirname> # makes a new directory
|
||||
rmdir <dirname> # remove an empty directory
|
||||
rmdir -rf <dirname> # remove a non-empty directory
|
||||
mv <dir1> <dir2> # rename a directory from <dir1> to <dir2>
|
||||
cd # changes to home
|
||||
cd .. # changes to the parent directory
|
||||
cd <dirname> # changes directory
|
||||
cp -r <dir1> <dir2> # copy <dir1> into <dir2> including sub-directories
|
||||
pwd # tells you where you currently are
|
||||
cd ~ # changes to home.
|
||||
cd - # changes to previous working directory
|
||||
|
||||
##############################################################################
|
||||
# SSH, SYSTEM INFO & NETWORK COMMANDS
|
||||
##############################################################################
|
||||
|
||||
|
||||
ssh user@host # connects to host as user
|
||||
ssh -p <port> user@host # connects to host on specified port as user
|
||||
ssh-copy-id user@host # adds your ssh key to host for user to enable a keyed or passwordless login
|
||||
|
||||
whoami # returns your username
|
||||
su <user> # switch to a different user
|
||||
su - # switch to root, likely needs to be sudo su -
|
||||
sudo <command> # execute command as the root user
|
||||
passwd # lets you change your password
|
||||
quota -v # shows what your disk quota is
|
||||
date # shows the current date and time
|
||||
cal # shows the month's calendar
|
||||
uptime # shows current uptime
|
||||
w # displays whois online
|
||||
finger <user> # displays information about user
|
||||
uname -a # shows kernel information
|
||||
man <command> # shows the manual for specified command
|
||||
info <command> # shows another documentation system for the specific command
|
||||
help # shows documentation about built-in commands and functions
|
||||
df # shows disk usage
|
||||
du <filename> # shows the disk usage of the files and directories in filename (du -s give only a total)
|
||||
resize2fs # ext2/ext3/ext4 file system resizer
|
||||
last <yourUsername> # lists your last logins
|
||||
ps -u yourusername # lists your processes
|
||||
kill <PID> # kills the processes with the ID you gave
|
||||
killall <processname> # kill all processes with the name
|
||||
top # displays your currently active processes
|
||||
lsof # lists open files
|
||||
bg # lists stopped or background jobs ; resume a stopped job in the background
|
||||
fg # brings the most recent job in the foreground
|
||||
fg <job> # brings job to the foreground
|
||||
|
||||
ping <host> # pings host and outputs results
|
||||
whois <domain> # gets whois information for domain
|
||||
dig <domain> # gets DNS information for domain
|
||||
dig -x <host> # reverses lookup host
|
||||
wget <file> # downloads file
|
||||
netstat # Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships
|
||||
|
||||
time <command> # report time consumed by command execution
|
||||
|
||||
|
||||
##############################################################################
|
||||
# VARIABLES
|
||||
##############################################################################
|
||||
|
||||
|
||||
varname=value # defines a variable
|
||||
varname=value command # defines a variable to be in the environment of a particular subprocess
|
||||
echo $varname # checks a variable's value
|
||||
echo $$ # prints process ID of the current shell
|
||||
echo $! # prints process ID of the most recently invoked background job
|
||||
echo $? # displays the exit status of the last command
|
||||
read <varname> # reads a string from the input and assigns it to a variable
|
||||
read -p "prompt" <varname> # same as above but outputs a prompt to ask user for value
|
||||
column -t <filename> # display info in pretty columns (often used with pipe)
|
||||
let <varname> = <equation> # performs mathematical calculation using operators like +, -, *, /, %
|
||||
export VARNAME=value # defines an environment variable (will be available in subprocesses)
|
||||
export -f <funcname> # Exports function 'funcname'
|
||||
export var1="var1 value" # Export and assign in the same statement
|
||||
export <varname> # Copy Bash variable
|
||||
declare -x <varname> # Copy Bash variable
|
||||
|
||||
array[0]=valA # how to define an array
|
||||
array[1]=valB
|
||||
array[2]=valC
|
||||
array=([2]=valC [0]=valA [1]=valB) # another way
|
||||
array=(valA valB valC) # and another
|
||||
|
||||
${array[i]} # displays array's value for this index. If no index is supplied, array element 0 is assumed
|
||||
${#array[i]} # to find out the length of any element in the array
|
||||
${#array[@]} # to find out how many values there are in the array
|
||||
|
||||
declare -a # the variables are treated as arrays
|
||||
declare -f # uses function names only
|
||||
declare -F # displays function names without definitions
|
||||
declare -i # the variables are treated as integers
|
||||
declare -r # makes the variables read-only
|
||||
declare -x # marks the variables for export via the environment
|
||||
declare -l # uppercase values in the variable are converted to lowercase
|
||||
declare -A # makes it an associative array
|
||||
|
||||
${varname:-word} # if varname exists and isn't null, return its value; otherwise return word
|
||||
${varname:word} # if varname exists and isn't null, return its value; otherwise return word
|
||||
${varname:=word} # if varname exists and isn't null, return its value; otherwise set it word and then return its value
|
||||
${varname:?message} # if varname exists and isn't null, return its value; otherwise print varname, followed by message and abort the current command or script
|
||||
${varname:+word} # if varname exists and isn't null, return word; otherwise return null
|
||||
${varname:offset:length} # performs substring expansion. It returns the substring of $varname starting at offset and up to length characters
|
||||
|
||||
${variable#pattern} # if the pattern matches the beginning of the variable's value, delete the shortest part that matches and return the rest
|
||||
${variable##pattern} # if the pattern matches the beginning of the variable's value, delete the longest part that matches and return the rest
|
||||
${variable%pattern} # if the pattern matches the end of the variable's value, delete the shortest part that matches and return the rest
|
||||
${variable%%pattern} # if the pattern matches the end of the variable's value, delete the longest part that matches and return the rest
|
||||
${variable/pattern/string} # the longest match to pattern in variable is replaced by string. Only the first match is replaced
|
||||
${variable//pattern/string} # the longest match to pattern in variable is replaced by string. All matches are replaced
|
||||
|
||||
${#varname} # returns the length of the value of the variable as a character string
|
||||
|
||||
*(patternlist) # matches zero or more occurrences of the given patterns
|
||||
+(patternlist) # matches one or more occurrences of the given patterns
|
||||
?(patternlist) # matches zero or one occurrence of the given patterns
|
||||
@(patternlist) # matches exactly one of the given patterns
|
||||
!(patternlist) # matches anything except one of the given patterns
|
||||
|
||||
$(UNIX command) # command substitution: runs the command and returns standard output
|
||||
|
||||
typeset -l <x> # makes variable local - <x> must be an interger
|
||||
|
||||
##############################################################################
|
||||
# FUNCTIONS
|
||||
##############################################################################
|
||||
|
||||
|
||||
# The function refers to passed arguments by position (as if they were positional parameters), that is, $1, $2, and so forth.
|
||||
# $@ is equal to "$1" "$2"... "$N", where N is the number of positional parameters. $# holds the number of positional parameters.
|
||||
|
||||
|
||||
function functname() {
|
||||
shell commands
|
||||
}
|
||||
|
||||
unset -f functname # deletes a function definition
|
||||
declare -f # displays all defined functions in your login session
|
||||
|
||||
|
||||
##############################################################################
|
||||
# FLOW CONTROLS
|
||||
##############################################################################
|
||||
|
||||
|
||||
statement1 && statement2 # and operator
|
||||
statement1 || statement2 # or operator
|
||||
|
||||
-a # and operator inside a test conditional expression
|
||||
-o # or operator inside a test conditional expression
|
||||
|
||||
# STRINGS
|
||||
|
||||
str1 == str2 # str1 matches str2
|
||||
str1 != str2 # str1 does not match str2
|
||||
str1 < str2 # str1 is less than str2 (alphabetically)
|
||||
str1 > str2 # str1 is greater than str2 (alphabetically)
|
||||
str1 \> str2 # str1 is sorted after str2
|
||||
str1 \< str2 # str1 is sorted before str2
|
||||
-n str1 # str1 is not null (has length greater than 0)
|
||||
-z str1 # str1 is null (has length 0)
|
||||
|
||||
# FILES
|
||||
|
||||
-a file # file exists or its compilation is successful
|
||||
-d file # file exists and is a directory
|
||||
-e file # file exists; same -a
|
||||
-f file # file exists and is a regular file (i.e., not a directory or other special type of file)
|
||||
-r file # you have read permission
|
||||
-s file # file exists and is not empty
|
||||
-w file # your have write permission
|
||||
-x file # you have execute permission on file, or directory search permission if it is a directory
|
||||
-N file # file was modified since it was last read
|
||||
-O file # you own file
|
||||
-G file # file's group ID matches yours (or one of yours, if you are in multiple groups)
|
||||
file1 -nt file2 # file1 is newer than file2
|
||||
file1 -ot file2 # file1 is older than file2
|
||||
|
||||
# NUMBERS
|
||||
|
||||
-lt # less than
|
||||
-le # less than or equal
|
||||
-eq # equal
|
||||
-ge # greater than or equal
|
||||
-gt # greater than
|
||||
-ne # not equal
|
||||
|
||||
if condition
|
||||
then
|
||||
statements
|
||||
[elif condition
|
||||
then statements...]
|
||||
[else
|
||||
statements]
|
||||
fi
|
||||
|
||||
for x in {1..10}
|
||||
do
|
||||
statements
|
||||
done
|
||||
|
||||
for name [in list]
|
||||
do
|
||||
statements that can use $name
|
||||
done
|
||||
|
||||
for (( initialisation ; ending condition ; update ))
|
||||
do
|
||||
statements...
|
||||
done
|
||||
|
||||
case expression in
|
||||
pattern1 )
|
||||
statements ;;
|
||||
pattern2 )
|
||||
statements ;;
|
||||
esac
|
||||
|
||||
select name [in list]
|
||||
do
|
||||
statements that can use $name
|
||||
done
|
||||
|
||||
while condition; do
|
||||
statements
|
||||
done
|
||||
|
||||
until condition; do
|
||||
statements
|
||||
done
|
||||
|
||||
##############################################################################
|
||||
# COMMAND-LINE PROCESSING CYCLE
|
||||
##############################################################################
|
||||
|
||||
|
||||
# The default order for command lookup is functions, followed by built-ins, with scripts and executables last.
|
||||
# There are three built-ins that you can use to override this order: `command`, `builtin` and `enable`.
|
||||
|
||||
command # removes alias and function lookup. Only built-ins and commands found in the search path are executed
|
||||
builtin # looks up only built-in commands, ignoring functions and commands found in PATH
|
||||
enable # enables and disables shell built-ins
|
||||
|
||||
eval # takes arguments and run them through the command-line processing steps all over again
|
||||
|
||||
|
||||
##############################################################################
|
||||
# INPUT/OUTPUT REDIRECTORS
|
||||
##############################################################################
|
||||
|
||||
|
||||
cmd1|cmd2 # pipe; takes standard output of cmd1 as standard input to cmd2
|
||||
< file # takes standard input from file
|
||||
> file # directs standard output to file
|
||||
>> file # directs standard output to file; append to file if it already exists
|
||||
>|file # forces standard output to file even if noclobber is set
|
||||
n>|file # forces output to file from file descriptor n even if noclobber is set
|
||||
<> file # uses file as both standard input and standard output
|
||||
n<>file # uses file as both input and output for file descriptor n
|
||||
n>file # directs file descriptor n to file
|
||||
n<file # takes file descriptor n from file
|
||||
n>>file # directs file description n to file; append to file if it already exists
|
||||
n>& # duplicates standard output to file descriptor n
|
||||
n<& # duplicates standard input from file descriptor n
|
||||
n>&m # file descriptor n is made to be a copy of the output file descriptor
|
||||
n<&m # file descriptor n is made to be a copy of the input file descriptor
|
||||
&>file # directs standard output and standard error to file
|
||||
<&- # closes the standard input
|
||||
>&- # closes the standard output
|
||||
n>&- # closes the ouput from file descriptor n
|
||||
n<&- # closes the input from file descriptor n
|
||||
|
||||
|tee <file># output command to both terminal and a file (-a to append to file)
|
||||
|
||||
|
||||
##############################################################################
|
||||
# PROCESS HANDLING
|
||||
##############################################################################
|
||||
|
||||
|
||||
# To suspend a job, type CTRL+Z while it is running. You can also suspend a job with CTRL+Y.
|
||||
# This is slightly different from CTRL+Z in that the process is only stopped when it attempts to read input from terminal.
|
||||
# Of course, to interrupt a job, type CTRL+C.
|
||||
|
||||
myCommand & # runs job in the background and prompts back the shell
|
||||
|
||||
jobs # lists all jobs (use with -l to see associated PID)
|
||||
|
||||
fg # brings a background job into the foreground
|
||||
fg %+ # brings most recently invoked background job
|
||||
fg %- # brings second most recently invoked background job
|
||||
fg %N # brings job number N
|
||||
fg %string # brings job whose command begins with string
|
||||
fg %?string # brings job whose command contains string
|
||||
|
||||
kill -l # returns a list of all signals on the system, by name and number
|
||||
kill PID # terminates process with specified PID
|
||||
kill -s SIGKILL 4500 # sends a signal to force or terminate the process
|
||||
kill -15 913 # Ending PID 913 process with signal 15 (TERM)
|
||||
kill %1 # Where %1 is the number of job as read from 'jobs' command.
|
||||
|
||||
ps # prints a line of information about the current running login shell and any processes running under it
|
||||
ps -a # selects all processes with a tty except session leaders
|
||||
|
||||
trap cmd sig1 sig2 # executes a command when a signal is received by the script
|
||||
trap "" sig1 sig2 # ignores that signals
|
||||
trap - sig1 sig2 # resets the action taken when the signal is received to the default
|
||||
|
||||
disown <PID|JID> # removes the process from the list of jobs
|
||||
|
||||
wait # waits until all background jobs have finished
|
||||
sleep <number> # wait # of seconds before continuing
|
||||
|
||||
pv # display progress bar for data handling commands. often used with pipe like |pv
|
||||
yes # give yes response everytime an input is requested from script/process
|
||||
|
||||
|
||||
##############################################################################
|
||||
# TIPS & TRICKS
|
||||
##############################################################################
|
||||
|
||||
|
||||
# set an alias
|
||||
cd; nano .bash_profile
|
||||
> alias gentlenode='ssh admin@gentlenode.com -p 3404' # add your alias in .bash_profile
|
||||
|
||||
# to quickly go to a specific directory
|
||||
cd; nano .bashrc
|
||||
> shopt -s cdable_vars
|
||||
> export websites="/Users/mac/Documents/websites"
|
||||
|
||||
source .bashrc
|
||||
cd $websites
|
||||
|
||||
|
||||
##############################################################################
|
||||
# DEBUGGING SHELL PROGRAMS
|
||||
##############################################################################
|
||||
|
||||
|
||||
bash -n scriptname # don't run commands; check for syntax errors only
|
||||
set -o noexec # alternative (set option in script)
|
||||
|
||||
bash -v scriptname # echo commands before running them
|
||||
set -o verbose # alternative (set option in script)
|
||||
|
||||
bash -x scriptname # echo commands after command-line processing
|
||||
set -o xtrace # alternative (set option in script)
|
||||
|
||||
trap 'echo $varname' EXIT # useful when you want to print out the values of variables at the point that your script exits
|
||||
|
||||
function errtrap {
|
||||
es=$?
|
||||
echo "ERROR line $1: Command exited with status $es."
|
||||
}
|
||||
|
||||
trap 'errtrap $LINENO' ERR # is run whenever a command in the surrounding script or function exits with non-zero status
|
||||
|
||||
function dbgtrap {
|
||||
echo "badvar is $badvar"
|
||||
}
|
||||
|
||||
trap dbgtrap DEBUG # causes the trap code to be executed before every statement in a function or script
|
||||
# ...section of code in which the problem occurs...
|
||||
trap - DEBUG # turn off the DEBUG trap
|
||||
|
||||
function returntrap {
|
||||
echo "A return occurred"
|
||||
}
|
||||
|
||||
trap returntrap RETURN # is executed each time a shell function or a script executed with the . or source commands finishes executing
|
||||
|
||||
##############################################################################
|
||||
# COLORS AND BACKGROUNDS
|
||||
##############################################################################
|
||||
# note: \e or \x1B also work instead of \033
|
||||
# Reset
|
||||
Color_Off='\033[0m' # Text Reset
|
||||
|
||||
# Regular Colors
|
||||
Black='\033[0;30m' # Black
|
||||
Red='\033[0;31m' # Red
|
||||
Green='\033[0;32m' # Green
|
||||
Yellow='\033[0;33m' # Yellow
|
||||
Blue='\033[0;34m' # Blue
|
||||
Purple='\033[0;35m' # Purple
|
||||
Cyan='\033[0;36m' # Cyan
|
||||
White='\033[0;97m' # White
|
||||
|
||||
# Additional colors
|
||||
LGrey='\033[0;37m' # Light Gray
|
||||
DGrey='\033[0;90m' # Dark Gray
|
||||
LRed='\033[0;91m' # Light Red
|
||||
LGreen='\033[0;92m' # Light Green
|
||||
LYellow='\033[0;93m'# Light Yellow
|
||||
LBlue='\033[0;94m' # Light Blue
|
||||
LPurple='\033[0;95m'# Light Purple
|
||||
LCyan='\033[0;96m' # Light Cyan
|
||||
|
||||
|
||||
# Bold
|
||||
BBlack='\033[1;30m' # Black
|
||||
BRed='\033[1;31m' # Red
|
||||
BGreen='\033[1;32m' # Green
|
||||
BYellow='\033[1;33m'# Yellow
|
||||
BBlue='\033[1;34m' # Blue
|
||||
BPurple='\033[1;35m'# Purple
|
||||
BCyan='\033[1;36m' # Cyan
|
||||
BWhite='\033[1;37m' # White
|
||||
|
||||
# Underline
|
||||
UBlack='\033[4;30m' # Black
|
||||
URed='\033[4;31m' # Red
|
||||
UGreen='\033[4;32m' # Green
|
||||
UYellow='\033[4;33m'# Yellow
|
||||
UBlue='\033[4;34m' # Blue
|
||||
UPurple='\033[4;35m'# Purple
|
||||
UCyan='\033[4;36m' # Cyan
|
||||
UWhite='\033[4;37m' # White
|
||||
|
||||
# Background
|
||||
On_Black='\033[40m' # Black
|
||||
On_Red='\033[41m' # Red
|
||||
On_Green='\033[42m' # Green
|
||||
On_Yellow='\033[43m'# Yellow
|
||||
On_Blue='\033[44m' # Blue
|
||||
On_Purple='\033[45m'# Purple
|
||||
On_Cyan='\033[46m' # Cyan
|
||||
On_White='\033[47m' # White
|
||||
|
||||
# Example of usage
|
||||
echo -e "${Green}This is GREEN text${Color_Off} and normal text"
|
||||
echo -e "${Red}${On_White}This is Red test on White background${Color_Off}"
|
||||
# option -e is mandatory, it enable interpretation of backslash escapes
|
||||
printf "${Red} This is red \n"
|
||||
```
|
||||
@@ -1,22 +0,0 @@
|
||||
<script setup lang="ts">
|
||||
import { useThemeVars } from 'naive-ui';
|
||||
import Memo from './bash-memo.content.md';
|
||||
|
||||
const themeVars = useThemeVars();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<Memo />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
::v-deep(pre) {
|
||||
margin: 0;
|
||||
padding: 15px 22px;
|
||||
background-color: v-bind('themeVars.cardColor');
|
||||
border-radius: 4px;
|
||||
overflow: auto;
|
||||
}
|
||||
</style>
|
||||
@@ -1,14 +0,0 @@
|
||||
import { Command } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.bash-memo.title'),
|
||||
path: '/bash-memo',
|
||||
description: t('tools.bash-memo.description'),
|
||||
keywords: ['bash', 'shell'],
|
||||
component: () => import('./bash-memo.vue'),
|
||||
icon: Command,
|
||||
createdAt: new Date('2025-05-08'),
|
||||
category: 'Cheatsheets',
|
||||
});
|
||||
@@ -5,25 +5,17 @@ import { textToBase64 } from '@/utils/base64';
|
||||
const username = ref('');
|
||||
const password = ref('');
|
||||
const header = computed(() => `Authorization: Basic ${textToBase64(`${username.value}:${password.value}`)}`);
|
||||
const { t } = useI18n();
|
||||
|
||||
const { copy } = useCopy({ source: header, text: t('tools.basic-auth-generator.copied') });
|
||||
const { copy } = useCopy({ source: header, text: 'Header copied to the clipboard' });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-input-text
|
||||
v-model:value="username"
|
||||
:label="t('tools.basic-auth-generator.username')"
|
||||
:placeholder="t('tools.basic-auth-generator.yourusername')"
|
||||
clearable
|
||||
raw-text
|
||||
mb-5
|
||||
/>
|
||||
<c-input-text v-model:value="username" label="Username" placeholder="Your username..." clearable raw-text mb-5 />
|
||||
<c-input-text
|
||||
v-model:value="password"
|
||||
:label="t('tools.basic-auth-generator.password')"
|
||||
:placeholder="t('tools.basic-auth-generator.yourpassword')"
|
||||
label="Password"
|
||||
placeholder="Your password..."
|
||||
clearable
|
||||
raw-text
|
||||
mb-2
|
||||
@@ -31,7 +23,7 @@ const { copy } = useCopy({ source: header, text: t('tools.basic-auth-generator.c
|
||||
/>
|
||||
|
||||
<c-card>
|
||||
<n-statistic :label="t('tools.basic-auth-generator.texts.label-authorization-header')" class="header">
|
||||
<n-statistic label="Authorization header:" class="header">
|
||||
<n-scrollbar x-scrollable style="max-width: 550px; margin-bottom: -10px; padding-bottom: 10px" trigger="none">
|
||||
{{ header }}
|
||||
</n-scrollbar>
|
||||
@@ -39,7 +31,7 @@ const { copy } = useCopy({ source: header, text: t('tools.basic-auth-generator.c
|
||||
</c-card>
|
||||
<div mt-5 flex justify-center>
|
||||
<c-button @click="copy()">
|
||||
{{ t('tools.basic-auth-generator.button.copy') }}
|
||||
Copy header
|
||||
</c-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { PasswordRound } from '@vicons/material';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.basic-auth-generator.title'),
|
||||
name: translate('tools.basic-auth-generator.title'),
|
||||
path: '/basic-auth-generator',
|
||||
description: t('tools.basic-auth-generator.description'),
|
||||
description: translate('tools.basic-auth-generator.description'),
|
||||
keywords: [
|
||||
'basic',
|
||||
'auth',
|
||||
|
||||
+13
-16
@@ -1,17 +1,14 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { compareSync, hashSync } from 'bcryptjs';
|
||||
import { useThemeVars } from 'naive-ui';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const themeVars = useThemeVars();
|
||||
|
||||
const input = ref('');
|
||||
const saltCount = ref(10);
|
||||
const hashed = computed(() => hashSync(input.value, saltCount.value || 10));
|
||||
const { copy } = useCopy({ source: hashed, text: t('tools.bcrypt.texts.text-hashed-string-copied-to-the-clipboard') });
|
||||
const { copy } = useCopy({ source: hashed, text: 'Hashed string copied to the clipboard' });
|
||||
|
||||
const compareString = ref('');
|
||||
const compareHash = ref('');
|
||||
@@ -19,39 +16,39 @@ const compareMatch = computed(() => compareSync(compareString.value, compareHash
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-card :title="t('tools.bcrypt.texts.title-hash')">
|
||||
<c-card title="Hash">
|
||||
<c-input-text
|
||||
v-model:value="input"
|
||||
:placeholder="t('tools.bcrypt.texts.placeholder-your-string-to-bcrypt')"
|
||||
placeholder="Your string to bcrypt..."
|
||||
raw-text
|
||||
:label="t('tools.bcrypt.texts.label-your-string')"
|
||||
label="Your string: "
|
||||
label-position="left"
|
||||
label-align="right"
|
||||
label-width="120px"
|
||||
mb-2
|
||||
/>
|
||||
<n-form-item :label="t('tools.bcrypt.texts.label-salt-count')" label-placement="left" label-width="120">
|
||||
<n-input-number v-model:value="saltCount" :placeholder="t('tools.bcrypt.texts.placeholder-salt-rounds')" :max="100" :min="0" w-full />
|
||||
<n-form-item label="Salt count: " label-placement="left" label-width="120">
|
||||
<n-input-number v-model:value="saltCount" placeholder="Salt rounds..." :max="100" :min="0" w-full />
|
||||
</n-form-item>
|
||||
|
||||
<c-input-text :value="hashed" readonly text-center />
|
||||
|
||||
<div mt-5 flex justify-center>
|
||||
<c-button @click="copy()">
|
||||
{{ t('tools.bcrypt.texts.tag-copy-hash') }}
|
||||
Copy hash
|
||||
</c-button>
|
||||
</div>
|
||||
</c-card>
|
||||
|
||||
<c-card :title="t('tools.bcrypt.texts.title-compare-string-with-hash')">
|
||||
<c-card title="Compare string with hash">
|
||||
<n-form label-width="120">
|
||||
<n-form-item :label="t('tools.bcrypt.texts.label-your-string')" label-placement="left">
|
||||
<c-input-text v-model:value="compareString" :placeholder="t('tools.bcrypt.texts.placeholder-your-string-to-compare')" raw-text />
|
||||
<n-form-item label="Your string: " label-placement="left">
|
||||
<c-input-text v-model:value="compareString" placeholder="Your string to compare..." raw-text />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.bcrypt.texts.label-your-hash')" label-placement="left">
|
||||
<c-input-text v-model:value="compareHash" :placeholder="t('tools.bcrypt.texts.placeholder-your-hash-to-compare')" raw-text />
|
||||
<n-form-item label="Your hash: " label-placement="left">
|
||||
<c-input-text v-model:value="compareHash" placeholder="Your hash to compare..." raw-text />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('tools.bcrypt.texts.label-do-they-match')" label-placement="left" :show-feedback="false">
|
||||
<n-form-item label="Do they match ? " label-placement="left" :show-feedback="false">
|
||||
<div class="compare-result" :class="{ positive: compareMatch }">
|
||||
{{ compareMatch ? 'Yes' : 'No' }}
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { LockSquare } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.bcrypt.title'),
|
||||
name: translate('tools.bcrypt.title'),
|
||||
path: '/bcrypt',
|
||||
description: t('tools.bcrypt.description'),
|
||||
description: translate('tools.bcrypt.description'),
|
||||
keywords: ['bcrypt', 'hash', 'compare', 'password', 'salt', 'round', 'storage', 'crypto'],
|
||||
component: () => import('./bcrypt.vue'),
|
||||
icon: LockSquare,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { Plus, Trash } from '@vicons/tabler';
|
||||
import { useStorage } from '@vueuse/core';
|
||||
import _ from 'lodash';
|
||||
@@ -8,8 +7,6 @@ import { arrayToMarkdownTable, computeAverage, computeVariance } from './benchma
|
||||
import DynamicValues from './dynamic-values.vue';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const suites = useStorage('benchmark-builder:suites', [
|
||||
{ title: 'Suite 1', data: [5, 10] },
|
||||
{ title: 'Suite 2', data: [8, 12] },
|
||||
@@ -89,26 +86,28 @@ function copyAsBulletList() {
|
||||
<c-input-text
|
||||
v-model:value="suite.title"
|
||||
label-position="left"
|
||||
:label="t('tools.benchmark-builder.texts.label-suite-name')"
|
||||
:placeholder="t('tools.benchmark-builder.texts.placeholder-suite-name')"
|
||||
label="Suite name"
|
||||
placeholder="Suite name..."
|
||||
clearable
|
||||
/>
|
||||
|
||||
<n-divider />
|
||||
<n-form-item :label="t('tools.benchmark-builder.texts.label-suite-values')" :show-feedback="false">
|
||||
<n-form-item label="Suite values" :show-feedback="false">
|
||||
<DynamicValues v-model:values="suite.data" />
|
||||
</n-form-item>
|
||||
</c-card>
|
||||
|
||||
<div flex justify-center>
|
||||
<c-button v-if="suites.length > 1" variant="text" @click="suites.splice(index, 1)">
|
||||
<n-icon :component="Trash" depth="3" mr-2 size="18" />{{ t('tools.benchmark-builder.texts.tag-delete-suite') }}
|
||||
<n-icon :component="Trash" depth="3" mr-2 size="18" />
|
||||
Delete suite
|
||||
</c-button>
|
||||
<c-button
|
||||
variant="text"
|
||||
@click="suites.splice(index + 1, 0, { data: [0], title: `Suite ${suites.length + 1}` })"
|
||||
>
|
||||
<n-icon :component="Plus" depth="3" mr-2 size="18" />{{ t('tools.benchmark-builder.texts.tag-add-suite') }}
|
||||
<n-icon :component="Plus" depth="3" mr-2 size="18" />
|
||||
Add suite
|
||||
</c-button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -118,7 +117,7 @@ function copyAsBulletList() {
|
||||
<div style="flex: 0 0 100%">
|
||||
<div style="max-width: 600px; margin: 0 auto">
|
||||
<div mx-auto max-w-sm flex justify-center gap-3>
|
||||
<c-input-text v-model:value="unit" :placeholder="t('tools.benchmark-builder.texts.placeholder-unit-eg-ms')" :label="t('tools.benchmark-builder.texts.label-unit')" label-position="left" mb-4 />
|
||||
<c-input-text v-model:value="unit" placeholder="Unit (eg: ms)" label="Unit" label-position="left" mb-4 />
|
||||
|
||||
<c-button
|
||||
@click="
|
||||
@@ -128,7 +127,7 @@ function copyAsBulletList() {
|
||||
]
|
||||
"
|
||||
>
|
||||
{{ t('tools.benchmark-builder.texts.tag-reset-suites') }}
|
||||
Reset suites
|
||||
</c-button>
|
||||
</div>
|
||||
|
||||
@@ -136,10 +135,10 @@ function copyAsBulletList() {
|
||||
|
||||
<div mt-5 flex justify-center gap-3>
|
||||
<c-button @click="copyAsMarkdown()">
|
||||
{{ t('tools.benchmark-builder.texts.tag-copy-as-markdown-table') }}
|
||||
Copy as markdown table
|
||||
</c-button>
|
||||
<c-button @click="copyAsBulletList()">
|
||||
{{ t('tools.benchmark-builder.texts.tag-copy-as-bullet-list') }}
|
||||
Copy as bullet list
|
||||
</c-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { Plus, Trash } from '@vicons/tabler';
|
||||
import { useTemplateRefsList, useVModel } from '@vueuse/core';
|
||||
import { NInputNumber } from 'naive-ui';
|
||||
@@ -9,8 +8,6 @@ const props = defineProps<{ values: (number | null)[] }>();
|
||||
|
||||
const emit = defineEmits(['update:values']);
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const refs = useTemplateRefsList<typeof NInputNumber>();
|
||||
|
||||
const values = useVModel(props, 'values', emit);
|
||||
@@ -38,7 +35,7 @@ function onInputEnter(index: number) {
|
||||
:ref="refs.set"
|
||||
v-model:value="values[index]"
|
||||
:show-button="false"
|
||||
:placeholder="t('tools.benchmark-builder.texts.placeholder-set-your-measure')"
|
||||
placeholder="Set your measure..."
|
||||
autofocus
|
||||
@keydown.enter="onInputEnter(index)"
|
||||
/>
|
||||
@@ -50,7 +47,8 @@ function onInputEnter(index: number) {
|
||||
</div>
|
||||
|
||||
<c-button @click="addValue">
|
||||
<n-icon :component="Plus" depth="3" mr-2 size="18" />{{ t('tools.benchmark-builder.texts.tag-add-a-measure') }}
|
||||
<n-icon :component="Plus" depth="3" mr-2 size="18" />
|
||||
Add a measure
|
||||
</c-button>
|
||||
</div>
|
||||
</template>
|
||||
@@ -1,11 +1,11 @@
|
||||
import { SpeedFilled } from '@vicons/material';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.benchmark-builder.title'),
|
||||
name: translate('tools.benchmark-builder.title'),
|
||||
path: '/benchmark-builder',
|
||||
description: t('tools.benchmark-builder.description'),
|
||||
description: translate('tools.benchmark-builder.description'),
|
||||
keywords: ['benchmark', 'builder', 'execution', 'duration', 'mean', 'variance'],
|
||||
component: () => import('./benchmark-builder.vue'),
|
||||
icon: SpeedFilled,
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { ref } from 'vue';
|
||||
import { NCard, NForm, NFormItem, NInput } from 'naive-ui';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const bimiData = ref({
|
||||
domain: '',
|
||||
logoUrl: '',
|
||||
@@ -29,20 +26,20 @@ const bimiRecord = computed(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<NCard :title="t('tools.bimi-dns-generator.texts.title-bimi-dns-record-generator')">
|
||||
<NCard title="BIMI DNS Record Generator">
|
||||
<NForm :model="bimiData" label-placement="left" label-width="150px">
|
||||
<NFormItem :label="t('tools.bimi-dns-generator.texts.label-domain')">
|
||||
<NInput v-model:value="bimiData.domain" :placeholder="t('tools.bimi-dns-generator.texts.placeholder-example-com')" />
|
||||
<NFormItem label="Domain:">
|
||||
<NInput v-model:value="bimiData.domain" placeholder="example.com" />
|
||||
</NFormItem>
|
||||
<NFormItem :label="t('tools.bimi-dns-generator.texts.label-logo-url')">
|
||||
<NInput v-model:value="bimiData.logoUrl" :placeholder="t('tools.bimi-dns-generator.texts.placeholder-https-example-com-logo-svg')" />
|
||||
<NFormItem label="Logo URL:">
|
||||
<NInput v-model:value="bimiData.logoUrl" placeholder="https://example.com/logo.svg" />
|
||||
</NFormItem>
|
||||
<NFormItem :label="t('tools.bimi-dns-generator.texts.label-vmc-certificate-url')">
|
||||
<NInput v-model:value="bimiData.vmcUrl" :placeholder="t('tools.bimi-dns-generator.texts.placeholder-https-example-com-vmc-pem')" />
|
||||
<NFormItem label="VMC Certificate URL:">
|
||||
<NInput v-model:value="bimiData.vmcUrl" placeholder="https://example.com/vmc.pem" />
|
||||
</NFormItem>
|
||||
</NForm>
|
||||
|
||||
<c-card :title="t('tools.bimi-dns-generator.texts.title-generated-bimi-record')">
|
||||
<c-card title="Generated BIMI record">
|
||||
<textarea-copyable :value="bimiRecord" />
|
||||
</c-card>
|
||||
</NCard>
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { World } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.bimi-dns-generator.title'),
|
||||
name: 'BIMI DNS Generator',
|
||||
path: '/bimi-dns-generator',
|
||||
description: t('tools.bimi-dns-generator.description'),
|
||||
description: 'Generate BIMI DNS TXT record',
|
||||
keywords: ['bimi', 'dns', 'txt'],
|
||||
component: () => import('./bimi-dns-generator.vue'),
|
||||
icon: World,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import {
|
||||
chineseSimplifiedWordList,
|
||||
chineseTraditionalWordList,
|
||||
@@ -22,8 +21,6 @@ import { useValidation } from '@/composable/validation';
|
||||
import { isNotThrowing } from '@/utils/boolean';
|
||||
import { withDefaultOnError } from '@/utils/defaults';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const languages = {
|
||||
'English': englishWordList,
|
||||
'Chinese simplified': chineseSimplifiedWordList,
|
||||
@@ -56,11 +53,11 @@ const entropyValidation = useValidation({
|
||||
rules: [
|
||||
{
|
||||
validator: value => value === '' || (value.length <= 32 && value.length >= 16 && value.length % 4 === 0),
|
||||
message: t('tools.bip39-generator.texts.message-entropy-length-should-be-16-32-and-be-a-multiple-of-4'),
|
||||
message: 'Entropy length should be >= 16, <= 32 and be a multiple of 4',
|
||||
},
|
||||
{
|
||||
validator: value => /^[a-fA-F0-9]*$/.test(value),
|
||||
message: t('tools.bip39-generator.texts.message-entropy-should-be-an-hexadecimal-string'),
|
||||
message: 'Entropy should be an hexadecimal string',
|
||||
},
|
||||
],
|
||||
});
|
||||
@@ -70,7 +67,7 @@ const mnemonicValidation = useValidation({
|
||||
rules: [
|
||||
{
|
||||
validator: value => isNotThrowing(() => mnemonicToEntropy(value, languages[language.value])),
|
||||
message: t('tools.bip39-generator.texts.message-invalid-mnemonic'),
|
||||
message: 'Invalid mnemonic',
|
||||
},
|
||||
],
|
||||
});
|
||||
@@ -79,8 +76,8 @@ function refreshEntropy() {
|
||||
entropy.value = generateEntropy();
|
||||
}
|
||||
|
||||
const { copy: copyEntropy } = useCopy({ source: entropy, text: t('tools.bip39-generator.texts.text-entropy-copied-to-the-clipboard') });
|
||||
const { copy: copyPassphrase } = useCopy({ source: passphrase, text: t('tools.bip39-generator.texts.text-passphrase-copied-to-the-clipboard') });
|
||||
const { copy: copyEntropy } = useCopy({ source: entropy, text: 'Entropy copied to the clipboard' });
|
||||
const { copy: copyPassphrase } = useCopy({ source: passphrase, text: 'Passphrase copied to the clipboard' });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -90,18 +87,18 @@ const { copy: copyPassphrase } = useCopy({ source: passphrase, text: t('tools.bi
|
||||
<c-select
|
||||
v-model:value="language"
|
||||
searchable
|
||||
:label="t('tools.bip39-generator.texts.label-language')"
|
||||
label="Language:"
|
||||
:options="Object.keys(languages)"
|
||||
/>
|
||||
</n-gi>
|
||||
<n-gi span="2">
|
||||
<n-form-item
|
||||
:label="t('tools.bip39-generator.texts.label-entropy-seed')"
|
||||
label="Entropy (seed):"
|
||||
:feedback="entropyValidation.message"
|
||||
:validation-status="entropyValidation.status"
|
||||
>
|
||||
<n-input-group>
|
||||
<c-input-text v-model:value="entropy" :placeholder="t('tools.bip39-generator.texts.placeholder-your-string')" />
|
||||
<c-input-text v-model:value="entropy" placeholder="Your string..." />
|
||||
|
||||
<c-button @click="refreshEntropy()">
|
||||
<n-icon size="22">
|
||||
@@ -118,12 +115,12 @@ const { copy: copyPassphrase } = useCopy({ source: passphrase, text: t('tools.bi
|
||||
</n-gi>
|
||||
</n-grid>
|
||||
<n-form-item
|
||||
:label="t('tools.bip39-generator.texts.label-passphrase-mnemonic')"
|
||||
label="Passphrase (mnemonic):"
|
||||
:feedback="mnemonicValidation.message"
|
||||
:validation-status="mnemonicValidation.status"
|
||||
>
|
||||
<n-input-group>
|
||||
<c-input-text v-model:value="passphrase" :placeholder="t('tools.bip39-generator.texts.placeholder-your-mnemonic')" raw-text />
|
||||
<c-input-text v-model:value="passphrase" placeholder="Your mnemonic..." raw-text />
|
||||
|
||||
<c-button @click="copyPassphrase()">
|
||||
<n-icon size="22" :component="Copy" />
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { AlignJustified } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.bip39-generator.title'),
|
||||
name: translate('tools.bip39-generator.title'),
|
||||
path: '/bip39-generator',
|
||||
description: t('tools.bip39-generator.description'),
|
||||
description: translate('tools.bip39-generator.description'),
|
||||
keywords: ['BIP39', 'passphrase', 'generator', 'mnemonic', 'entropy'],
|
||||
component: () => import('./bip39-generator.vue'),
|
||||
icon: AlignJustified,
|
||||
|
||||
@@ -1,14 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
|
||||
const { t } = useI18n();
|
||||
const units = ref('metric');
|
||||
const weight = ref<number | null>(null);
|
||||
const height = ref<number | null>(null);
|
||||
|
||||
const options = [
|
||||
{ label: t('tools.bmi-calculator.texts.label-metric-kg-m'), value: 'metric' },
|
||||
{ label: t('tools.bmi-calculator.texts.label-us-lbs-in'), value: 'us' },
|
||||
{ label: 'Metric (kg, m)', value: 'metric' },
|
||||
{ label: 'US (lbs, in)', value: 'us' },
|
||||
];
|
||||
|
||||
const bmi = computed(() => {
|
||||
@@ -51,19 +48,19 @@ const bmiCategory = computed(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-card :title="t('tools.bmi-calculator.texts.title-bmi-calculator')" max-w-800px>
|
||||
<c-select v-model:value="units" :label="t('tools.bmi-calculator.texts.label-select-units')" :options="options" mb-2 label-position="left" />
|
||||
<c-card title="BMI Calculator" max-w-800px>
|
||||
<c-select v-model:value="units" label="Select Units:" :options="options" mb-2 label-position="left" />
|
||||
<n-space justify="space-evenly">
|
||||
<n-form-item :label="`Weight (${(units === 'metric' ? 'kg' : 'lbs')}):`" label-placement="left" mb-2>
|
||||
<n-input-number v-model:value="weight" :placeholder="t('tools.bmi-calculator.texts.placeholder-enter-weight')" />
|
||||
<n-input-number v-model:value="weight" placeholder="Enter weight" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="`Height (${(units === 'metric' ? 'm' : 'in')}):`" label-placement="left" mb-2>
|
||||
<n-input-number v-model:value="height" :placeholder="t('tools.bmi-calculator.texts.placeholder-enter-height')" />
|
||||
<n-input-number v-model:value="height" placeholder="Enter height" />
|
||||
</n-form-item>
|
||||
</n-space>
|
||||
<c-card v-if="bmi" :title="t('tools.bmi-calculator.texts.title-result')">
|
||||
<input-copyable :label="t('tools.bmi-calculator.texts.label-bmi')" label-position="left" label-width="100px" :value="bmi" mb-1 />
|
||||
<input-copyable :label="t('tools.bmi-calculator.texts.label-category')" label-position="left" label-width="100px" :value="bmiCategory" />
|
||||
<c-card v-if="bmi" title="Result">
|
||||
<input-copyable label="BMI:" label-position="left" label-width="100px" :value="bmi" mb-1 />
|
||||
<input-copyable label="Category:" label-position="left" label-width="100px" :value="bmiCategory" />
|
||||
</c-card>
|
||||
</c-card>
|
||||
</template>
|
||||
@@ -1,11 +1,10 @@
|
||||
import { MedicalCross } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.bmi-calculator.title'),
|
||||
name: 'BMI Calculator',
|
||||
path: '/bmi-calculator',
|
||||
description: t('tools.bmi-calculator.description'),
|
||||
description: 'Body Mass Index Calculator (us or metric units)',
|
||||
keywords: ['bmi', 'body', 'mass'],
|
||||
component: () => import('./bmi-calculator.vue'),
|
||||
icon: MedicalCross,
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import EmailBounceParse from 'email-bounce-parser-browser';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const emailContent = ref('');
|
||||
|
||||
const parsedBounce = computed(() => {
|
||||
@@ -18,49 +15,49 @@ const parsedBounce = computed(() => {
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-card :title="t('tools.bounce-parser.texts.title-input')" mb-2>
|
||||
<c-card title="Input" mb-2>
|
||||
<c-input-text
|
||||
v-model:value="emailContent"
|
||||
:label="t('tools.bounce-parser.texts.label-bounce-email-textual-content')"
|
||||
label="Bounce Email Textual Content"
|
||||
multiline
|
||||
:placeholder="t('tools.bounce-parser.texts.placeholder-put-your-email-text-content-here')"
|
||||
placeholder="Put your email text content here..."
|
||||
rows="15"
|
||||
mb-2
|
||||
/>
|
||||
</c-card>
|
||||
|
||||
<c-card v-if="parsedBounce && emailContent" :title="t('tools.bounce-parser.texts.title-output')" mb-2>
|
||||
<c-card v-if="parsedBounce && emailContent" title="Output" mb-2>
|
||||
<n-p v-if="parsedBounce.email?.email?.error" style="color: green" mb-2>
|
||||
{{ t('tools.bounce-parser.texts.tag-this-mail-is-a-bounce-email') }}
|
||||
This mail is a bounce email
|
||||
</n-p>
|
||||
<n-p v-if="!parsedBounce.email?.email?.error" style="color: red" mb-2>
|
||||
{{ t('tools.bounce-parser.texts.tag-this-mail-is-not-a-bounce-email') }}
|
||||
This mail is NOT a bounce email
|
||||
</n-p>
|
||||
<c-alert v-if="parsedBounce.parsingError" mb-2>
|
||||
{{ parsedBounce.parsingError }}
|
||||
</c-alert>
|
||||
<input-copyable v-if="parsedBounce.email?.data?.recipient" :label="t('tools.bounce-parser.texts.label-recipient')" :value="parsedBounce.email?.data?.recipient" mb-2 />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.recipient" label="Recipient" :value="parsedBounce.email?.data?.recipient" mb-2 />
|
||||
<div v-if="parsedBounce.email?.email?.error">
|
||||
<c-card :title="t('tools.bounce-parser.texts.title-error')" mb-2>
|
||||
<input-copyable v-if="parsedBounce.email?.data?.command" :label="t('tools.bounce-parser.texts.label-command')" :value="parsedBounce.email?.data?.command" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.code?.basic || parsedBounce.email?.data?.error?.code?.enhanced" :label="t('tools.bounce-parser.texts.label-code')" :value="`${parsedBounce.email?.data?.error?.code?.basic}/${parsedBounce.email?.data?.error?.code?.enhanced}`" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.label" :label="t('tools.bounce-parser.texts.label-label')" :value="parsedBounce.email?.data?.error?.label" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.type" :label="t('tools.bounce-parser.texts.label-type')" :value="parsedBounce.email?.data?.error?.type" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.temporary" :label="t('tools.bounce-parser.texts.label-temporary')" :value="parsedBounce.email?.data?.error?.temporary" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.permanent" :label="t('tools.bounce-parser.texts.label-permanent')" :value="parsedBounce.email?.data?.error?.permanent" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.data?.type" :label="t('tools.bounce-parser.texts.label-subtype')" :value="parsedBounce.email?.data?.error?.data?.type" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.data?.blocked" :label="t('tools.bounce-parser.texts.label-blocked')" :value="parsedBounce.email?.data?.error?.data?.blocked" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.data?.spam" :label="t('tools.bounce-parser.texts.label-spam')" :value="parsedBounce.email?.data?.error?.data?.spam" />
|
||||
<c-card title="Error" mb-2>
|
||||
<input-copyable v-if="parsedBounce.email?.data?.command" label="Command" :value="parsedBounce.email?.data?.command" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.code?.basic || parsedBounce.email?.data?.error?.code?.enhanced" label="Code" :value="`${parsedBounce.email?.data?.error?.code?.basic}/${parsedBounce.email?.data?.error?.code?.enhanced}`" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.label" label="Label" :value="parsedBounce.email?.data?.error?.label" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.type" label="Type" :value="parsedBounce.email?.data?.error?.type" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.temporary" label="Temporary" :value="parsedBounce.email?.data?.error?.temporary" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.permanent" label="Permanent" :value="parsedBounce.email?.data?.error?.permanent" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.data?.type" label="Subtype" :value="parsedBounce.email?.data?.error?.data?.type" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.data?.blocked" label="Blocked" :value="parsedBounce.email?.data?.error?.data?.blocked" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.data?.spam" label="Spam" :value="parsedBounce.email?.data?.error?.data?.spam" />
|
||||
</c-card>
|
||||
<c-card v-if="parsedBounce.email?.data?.server?.hostname || parsedBounce.email?.data?.server?.ip" :title="t('tools.bounce-parser.texts.title-server')" mb-2>
|
||||
<input-copyable v-if="parsedBounce.email?.data?.server?.hostname" :label="t('tools.bounce-parser.texts.label-host')" :value="parsedBounce.email?.data?.server?.hostname" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.server?.ip" :label="t('tools.bounce-parser.texts.label-ip')" :value="parsedBounce.email?.data?.server?.ip" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.server?.port" :label="t('tools.bounce-parser.texts.label-port')" :value="parsedBounce.email?.data?.server?.port" />
|
||||
<c-card v-if="parsedBounce.email?.data?.server?.hostname || parsedBounce.email?.data?.server?.ip" title="Server" mb-2>
|
||||
<input-copyable v-if="parsedBounce.email?.data?.server?.hostname" label="Host" :value="parsedBounce.email?.data?.server?.hostname" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.server?.ip" label="IP" :value="parsedBounce.email?.data?.server?.ip" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.server?.port" label="Port" :value="parsedBounce.email?.data?.server?.port" />
|
||||
</c-card>
|
||||
<c-card :title="t('tools.bounce-parser.texts.title-details')" mb-2>
|
||||
<c-card title="Details" mb-2>
|
||||
<textarea-copyable :value="JSON.stringify(parsedBounce.email?.data, null, 2)" />
|
||||
</c-card>
|
||||
<c-card :title="t('tools.bounce-parser.texts.title-raw-error')" mb-2>
|
||||
<c-card title="Raw Error" mb-2>
|
||||
<textarea-copyable :value="parsedBounce.email?.email?.error" word-wrap />
|
||||
</c-card>
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { Mailbox } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.bounce-parser.title'),
|
||||
name: 'Bounce Email Parser',
|
||||
path: '/bounce-parser',
|
||||
description: t('tools.bounce-parser.description'),
|
||||
description: 'Parse SMTP Bounce Emails',
|
||||
keywords: ['bounce', 'email', 'smtp', 'parser'],
|
||||
component: () => import('./bounce-parser.vue'),
|
||||
icon: Mailbox,
|
||||
|
||||
Loaded 100 of 767 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user