Compare commits

..
Author SHA1 Message Date
ShareVB 38fce38ab5 chore: optimize build process 2025-06-03 15:21:54 +02:00
ShareVB 632c68df20 feat(new tool): PDF Text Extractor
Fix #1572
2025-06-03 10:14:08 +02:00
ShareVB 95ed4e402b fix: vercel opt 2025-06-02 17:52:57 +02:00
ShareVB bcec4020a1 fix: Certificate Key Parser and PGP
Added a polyfill (mainly for key parser)
Handle case of HTTP (unsecure context)
Make a warning on PGP tools and filter alg
Add Curve448
Fix #80
2025-06-02 17:22:08 +02:00
ShareVB 920de5b431 fix: optimize monaco-editor loading (locally) 2025-06-02 16:49:00 +02:00
ShareVB d7f266bfd7 fix(Textarea Copyable): better copy button placement 2025-06-02 16:49:00 +02:00
ShareVB 44e81e3025 fix: file upload, preview for images only 2025-06-02 16:49:00 +02:00
Dark_Phoenix_ ba663a4fb1 Improve IES Lighting guidelines performance (#83)
* Improved performance on the Unicode Search page:
- Created new flexSearch component (Faster than fuzzySearch). For more information, see https://github.com/nextapps-de/flexsearch
- Replaced fuzzySearch with the flexSearch component on the unicode search page
- Fixed a bug where the search limit counter didn't have any effect
- Reduced the default search limit from 100 to 40 to reduce lag from loading all the ui elements

* Added clarification to comment

* components.d.ts update

* - Replaced FuzzySearch with FlexSearch on the ISO 3166 Searcher page
- Reduced the debounce from 500ms to 250ms
- Reduced the default search limit from 100 to 20, and fixed a bug where the search limit wasn't applied when the value changed
- Added the `readonly` prop to the `input-copyable` field
- Added the `readonly` flag to all input copyable fields on the unicode search and iso 3166 searcher pages

* Fixed incorrect case usage for functions and variables

* - Replaced fuzzysearch with flexsearch on the IES Lighting Guidelines page
- Reduced the debounce from 500ms to 250ms
- Changed the search keys so all columns are now searchable

* - Added logic to sort the limited results using a similarity score created by calculating the Levenshtein distance
- Added the `shouldSort` boolean to control whether the results should be filtered by similarity. `true` by default

* Merged new changes to flexSearch

* - Added readonly flag to input copyable fields
2025-06-02 16:49:00 +02:00
Dark_Phoenix_ 8172562fe6 Improved iso 3166 searcher page performance (#79)
* Improved performance on the Unicode Search page:
- Created new flexSearch component (Faster than fuzzySearch). For more information, see https://github.com/nextapps-de/flexsearch
- Replaced fuzzySearch with the flexSearch component on the unicode search page
- Fixed a bug where the search limit counter didn't have any effect
- Reduced the default search limit from 100 to 40 to reduce lag from loading all the ui elements

* Added clarification to comment

* components.d.ts update

* - Replaced FuzzySearch with FlexSearch on the ISO 3166 Searcher page
- Reduced the debounce from 500ms to 250ms
- Reduced the default search limit from 100 to 20, and fixed a bug where the search limit wasn't applied when the value changed
- Added the `readonly` prop to the `input-copyable` field
- Added the `readonly` flag to all input copyable fields on the unicode search and iso 3166 searcher pages

* Fixed incorrect case usage for functions and variables
2025-06-02 16:49:00 +02:00
ShareVB 49288d0959 feat(new tool): Age Crypto
Fix #640
2025-06-02 16:49:00 +02:00
ShareVB 64a21197af feat(Htpasswd Generator): add md5, apr1, sha256 and sha512
Fix #1578
2025-06-02 16:02:37 +02:00
ShareVB a5d15b579e feat(new tool): Nginx Memo 2025-06-02 16:02:37 +02:00
ShareVB 87878aa33e feat(new tool): Vim Memo 2025-06-02 16:02:37 +02:00
ShareVB 5882b6a714 feat(new tool): Kubernetes Memo 2025-06-02 16:02:37 +02:00
ShareVB 5c68336170 feat(new tool): Linux Bash Memo
Fix #1577
2025-06-02 16:02:37 +02:00
625 changed files with 5942 additions and 17333 deletions

No files matched your search

+5 -5
View File
@@ -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
}
}
+1 -1
View File
@@ -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
@@ -67,8 +67,6 @@ jobs:
with:
context: .
file: ./Dockerfile
build-args: |
"BASE_URL=/"
platforms: linux/amd64,linux/arm64
push: true
tags: |
@@ -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
-126
View File
@@ -2,132 +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.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
+63 -32
View File
@@ -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!
[![contributors](https://contrib.rocks/image?repo=sharevb/it-tools&refresh=1)](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@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@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
```
## Installation methods
+15 -22
View File
@@ -17,7 +17,6 @@ declare module '@vue/runtime-core' {
AlarmSoundToggle: typeof import('./src/tools/pomodoro-timer/app/components/AlarmSoundToggle.vue')['default']
AngleConverter: typeof import('./src/tools/angle-converter/angle-converter.vue')['default']
AnsibleVaultCryptDecrypt: typeof import('./src/tools/ansible-vault-crypt-decrypt/ansible-vault-crypt-decrypt.vue')['default']
AnsiEscapeTester: typeof import('./src/tools/ansi-escape-tester/ansi-escape-tester.vue')['default']
ApiTester: typeof import('./src/tools/api-tester/api-tester.vue')['default']
App: typeof import('./src/App.vue')['default']
AppColorPicker: typeof import('./src/tools/pomodoro-timer/app/components/AppColorPicker.vue')['default']
@@ -61,11 +60,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']
@@ -183,7 +180,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']
@@ -196,23 +192,16 @@ declare module '@vue/runtime-core' {
IcoConverter: typeof import('./src/tools/ico-converter/ico-converter.vue')['default']
'IconMdi:brushVariant': typeof import('~icons/mdi/brush-variant')['default']
'IconMdi:kettleSteamOutline': typeof import('~icons/mdi/kettle-steam-outline')['default']
IconMdiCamera: typeof import('~icons/mdi/camera')['default']
IconMdiChevronDown: typeof import('~icons/mdi/chevron-down')['default']
IconMdiChevronRight: typeof import('~icons/mdi/chevron-right')['default']
IconMdiClose: typeof import('~icons/mdi/close')['default']
IconMdiContentCopy: typeof import('~icons/mdi/content-copy')['default']
IconMdiDeleteOutline: typeof import('~icons/mdi/delete-outline')['default']
IconMdiDownload: typeof import('~icons/mdi/download')['default']
IconMdiEye: typeof import('~icons/mdi/eye')['default']
IconMdiEyeOff: typeof import('~icons/mdi/eye-off')['default']
IconMdiHeart: typeof import('~icons/mdi/heart')['default']
IconMdiPause: typeof import('~icons/mdi/pause')['default']
IconMdiPlay: typeof import('~icons/mdi/play')['default']
IconMdiRecord: typeof import('~icons/mdi/record')['default']
IconMdiSearch: typeof import('~icons/mdi/search')['default']
IconMdiTranslate: typeof import('~icons/mdi/translate')['default']
IconMdiTriangleDown: typeof import('~icons/mdi/triangle-down')['default']
IconMdiVideo: typeof import('~icons/mdi/video')['default']
IesLightingGuidelines: typeof import('./src/tools/ies-lighting-guidelines/ies-lighting-guidelines.vue')['default']
IlluminanceConverter: typeof import('./src/tools/illuminance-converter/illuminance-converter.vue')['default']
ImageConverter: typeof import('./src/tools/image-converter/image-converter.vue')['default']
@@ -248,7 +237,6 @@ declare module '@vue/runtime-core' {
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']
@@ -299,8 +287,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']
MenuItemWithTooltip: typeof import('./src/components/MenuItemWithTooltip.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']
@@ -312,13 +298,20 @@ 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']
NA: typeof import('naive-ui')['NA']
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']
NDataTable: typeof import('naive-ui')['NDataTable']
NDivider: typeof import('naive-ui')['NDivider']
NEllipsis: typeof import('naive-ui')['NEllipsis']
NFormItem: typeof import('naive-ui')['NFormItem']
@@ -328,19 +321,20 @@ declare module '@vue/runtime-core' {
NH1: typeof import('naive-ui')['NH1']
NH3: typeof import('naive-ui')['NH3']
NIcon: typeof import('naive-ui')['NIcon']
NImage: typeof import('naive-ui')['NImage']
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']
NModal: typeof import('naive-ui')['NModal']
NP: typeof import('naive-ui')['NP']
NRadio: typeof import('naive-ui')['NRadio']
NRadioGroup: typeof import('naive-ui')['NRadioGroup']
NScrollbar: typeof import('naive-ui')['NScrollbar']
NSpace: typeof import('naive-ui')['NSpace']
NSpin: typeof import('naive-ui')['NSpin']
NSwitch: typeof import('naive-ui')['NSwitch']
NTabPane: typeof import('naive-ui')['NTabPane']
NTabs: typeof import('naive-ui')['NTabs']
NTooltip: typeof import('naive-ui')['NTooltip']
NTable: typeof import('naive-ui')['NTable']
NTag: typeof import('naive-ui')['NTag']
NTimePicker: typeof import('naive-ui')['NTimePicker']
NumberInput: typeof import('./src/tools/pomodoro-timer/app/components/NumberInput.vue')['default']
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
OcrImage: typeof import('./src/tools/ocr-image/ocr-image.vue')['default']
@@ -460,7 +454,6 @@ declare module '@vue/runtime-core' {
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']
+8 -128
View File
@@ -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
+924 -5711
View File
File diff suppressed because it is too large. Load diff
-6
View File
@@ -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
View File
@@ -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
View File
File diff suppressed because it is too large. Load diff
-6
View File
@@ -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
-6
View File
@@ -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
-6
View File
@@ -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 -6
View File
@@ -443,7 +443,7 @@ tools:
image-resizer:
title: Изменение размера изображения
description: Изменяйте ширину и высоту изображения, предварительно просматривайте и загружайте его в нужном формате.
description: Изменяйте ширину и высоту изображения, предварительно просматривайте и загружайте его в нужном формате (.jpg, .jpeg, .png, .bmp, .ico, .svg).
multi-link-downloader:
title: Множественный загрузчик ссылок
@@ -1182,8 +1182,5 @@ tools:
title: Тестер XSLT
description: Тестируйте преобразование XML с использованием XSLT-стилей
cli-command-editor:
title: редактор команд CLI
description: Преобразуйте команды CLI с параметрами в легко редактируемую форму и сгенерируйте результирующую команду с входными значениями.
command: Команда
placeholder: Вставьте команду сюда
+2 -8
View File
@@ -446,7 +446,7 @@ tools:
image-resizer:
title: Зміна розміру зображення
description: Змініть ширину та висоту файлу зображення, перегляньте та завантажте його у бажаному форматі.
description: Змініть ширину та висоту файлу зображення, перегляньте та завантажте його у бажаному форматі (.jpg, .jpeg, .png, .bmp, .ico, .svg).
json-to-object:
title: JSON в об'єкт
@@ -1186,10 +1186,4 @@ tools:
xslt-tester:
title: Тестер XSLT
description: Тестуйте трансформацію XML за допомогою XSLT стилів
cli-command-editor:
title: Редактор команд CLI
description: Перетворіть команди CLI з опціями у форму, яку легко редагувати, та згенеруйте результуючу команду з вхідними значеннями.
command: Команда
placeholder: Вставте команду сюди
description: Тестуйте трансформацію XML за допомогою XSLT стилів
+1 -7
View File
@@ -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
-6
View File
@@ -414,9 +414,3 @@ tools:
result: 检测结果
sucess: 成功
failure: 失败
cli-command-editor:
title: CLI 命令编辑器
description: 将带有选项的 CLI 命令转换为易于编辑的形式,并生成带有输入值的结果命令。
command: 命令
placeholder: 将命令粘贴到此处
-7
View File
@@ -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:; connect-src 'self'; font-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self';";
location / {
rewrite ^/it-tools/(.*) /$1 break;
try_files $uri $uri/ /index.html;
+7 -18
View File
@@ -1,7 +1,7 @@
{
"name": "it-tools",
"type": "module",
"version": "2025.6.15-20a26514",
"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,10 +34,7 @@
"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",
@@ -54,7 +51,6 @@
"@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",
@@ -87,7 +83,6 @@
"@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,7 +95,6 @@
"chatgpt-prompt-splitter": "^1.0.5",
"chinesegen": "^0.3.3",
"cidr-tools": "^11.0.2",
"citation-formatter": "^1.0.1",
"colord": "^2.9.3",
"composerize": "^1.7.2",
"composeverter": "^1.7.4",
@@ -131,7 +125,7 @@
"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",
@@ -152,7 +146,6 @@
"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",
@@ -269,14 +262,13 @@
"svgo": "^3.3.2",
"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.1",
"ulid": "^2.3.0",
"unicode-emoji-json": "^0.8.0",
"unicode-emoji-json": "^0.4.0",
"unique-random": "^4.0.0",
"unixcrypt-browser": "^2.0.4",
"unpdf": "^1.0.5",
@@ -286,14 +278,14 @@
"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",
@@ -306,13 +298,12 @@
"xpath": "^0.0.34",
"xpath-to-css": "^1.2.0",
"xslt-processor": "^3.3.1",
"xterm": "^5.3.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",
"@intlify/unplugin-vue-i18n": "^0.13.0",
"@playwright/test": "^1.50.1",
"@rushstack/eslint-patch": "^1.2.0",
"@tsconfig/node18": "^18.2.0",
@@ -376,12 +367,10 @@
"vite": "^4.4.9",
"vite-plugin-node-polyfills": "^0.23.0",
"vite-plugin-pwa": "^1.0.0",
"vite-plugin-splash-screen": "^0.2.0",
"vite-plugin-vue-markdown": "^0.23.5",
"vite-plugin-wasm": "^3.4.1",
"vite-svg-loader": "^4.0.0",
"vitest": "^0.34.6",
"vue-i18n-extract": "^2.0.7",
"workbox-window": "^7.3.0",
"zx": "^7.2.3"
},
+107 -268
View File
@@ -50,9 +50,6 @@ dependencies:
'@it-tools/oggen':
specifier: ^1.3.0
version: 1.3.0
'@jsonquerylang/jsonquery':
specifier: ^5.0.4
version: 5.0.4
'@kenjiuno/decompressrtf':
specifier: ^0.1.4
version: 0.1.4
@@ -149,9 +146,6 @@ dependencies:
aircodes:
specifier: ^1.3.16
version: 1.3.16
ansi-styles:
specifier: ^6.2.1
version: 6.2.1
ansible-vault:
specifier: ^1.3.0
version: 1.3.0
@@ -188,9 +182,6 @@ dependencies:
cidr-tools:
specifier: ^11.0.2
version: 11.0.2
citation-formatter:
specifier: ^1.0.1
version: 1.0.1
colord:
specifier: ^2.9.3
version: 2.9.3
@@ -282,8 +273,8 @@ dependencies:
specifier: ^1.0.0
version: 1.0.0
emojilib:
specifier: ^4.0.2
version: 4.0.2
specifier: ^4.0.1
version: 4.0.1
event-cron-parser:
specifier: ^1.0.35
version: 1.0.35
@@ -344,9 +335,6 @@ dependencies:
highlight.js:
specifier: ^11.11.1
version: 11.11.1
htmlfy:
specifier: ^0.8.1
version: 0.8.1
hyparquet:
specifier: ^1.9.0
version: 1.9.0
@@ -695,9 +683,6 @@ dependencies:
text-encoding-utf-8:
specifier: ^1.0.2
version: 1.0.2
tick-time:
specifier: ^1.0.1
version: 1.0.1
tidy-url:
specifier: ^1.18.3
version: 1.18.3
@@ -717,8 +702,8 @@ dependencies:
specifier: ^2.3.0
version: 2.3.0
unicode-emoji-json:
specifier: ^0.8.0
version: 0.8.0
specifier: ^0.4.0
version: 0.4.0
unique-random:
specifier: ^4.0.0
version: 4.0.0
@@ -747,11 +732,8 @@ dependencies:
specifier: ^0.1.1
version: 0.1.1
vue-i18n:
specifier: ^11.1.9
version: 11.1.9(vue@3.3.4)
vue-loading-overlay:
specifier: ^6.0
version: 6.0.6(vue@3.3.4)
specifier: ^9.14.3
version: 9.14.4(vue@3.3.4)
vue-markdown-render:
specifier: ^2.2.1
version: 2.2.1(vue@3.3.4)
@@ -770,6 +752,9 @@ dependencies:
vue3-flip-countdown:
specifier: ^0.1.6
version: 0.1.6
vue3-fortune-wheel:
specifier: ^2.0.5
version: 2.0.5(vue@3.3.4)
vuedraggable:
specifier: ^4.1.0
version: 4.1.0(vue@3.3.4)
@@ -806,9 +791,6 @@ dependencies:
xslt-processor:
specifier: ^3.3.1
version: 3.3.1
xterm:
specifier: ^5.3.0
version: 5.3.0
yaml:
specifier: ^2.7.0
version: 2.7.0
@@ -821,8 +803,8 @@ devDependencies:
specifier: ^1.1.50
version: 1.2.3
'@intlify/unplugin-vue-i18n':
specifier: ^6.0.8
version: 6.0.8(@vue/compiler-dom@3.5.13)(eslint@8.47.0)(rollup@2.79.2)(typescript@5.2.2)(vue-i18n@11.1.9)(vue@3.3.4)
specifier: ^0.13.0
version: 0.13.0(rollup@2.79.2)(vue-i18n@9.14.4)
'@playwright/test':
specifier: ^1.50.1
version: 1.50.1
@@ -1012,9 +994,6 @@ devDependencies:
vite-plugin-pwa:
specifier: ^1.0.0
version: 1.0.0(vite@4.4.9)(workbox-build@7.3.0)(workbox-window@7.3.0)
vite-plugin-splash-screen:
specifier: ^0.2.0
version: 0.2.0
vite-plugin-vue-markdown:
specifier: ^0.23.5
version: 0.23.5(rollup@2.79.2)(vite@4.4.9)
@@ -1027,9 +1006,6 @@ devDependencies:
vitest:
specifier: ^0.34.6
version: 0.34.6(jsdom@22.1.0)(less@4.2.2)
vue-i18n-extract:
specifier: ^2.0.7
version: 2.0.7
workbox-window:
specifier: ^7.3.0
version: 7.3.0
@@ -1287,10 +1263,10 @@ packages:
'@babel/helper-compilation-targets': 7.26.5
'@babel/helper-module-transforms': 7.26.0(@babel/core@7.26.8)
'@babel/helpers': 7.26.7
'@babel/parser': 7.27.2
'@babel/parser': 7.26.8
'@babel/template': 7.26.8
'@babel/traverse': 7.26.8
'@babel/types': 7.27.1
'@babel/types': 7.26.8
'@types/gensync': 1.0.4
convert-source-map: 2.0.0
debug: 4.4.0
@@ -1387,7 +1363,7 @@ packages:
resolution: {integrity: sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.27.1
'@babel/types': 7.26.3
dev: true
/@babel/helper-annotate-as-pure@7.27.1:
@@ -1542,7 +1518,7 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/traverse': 7.26.7
'@babel/types': 7.27.1
'@babel/types': 7.26.3
transitivePeerDependencies:
- supports-color
dev: true
@@ -1569,7 +1545,7 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/traverse': 7.26.8
'@babel/types': 7.27.1
'@babel/types': 7.26.8
transitivePeerDependencies:
- supports-color
@@ -1650,7 +1626,7 @@ packages:
resolution: {integrity: sha512-FIpuNaz5ow8VyrYcnXQTDRGvV6tTjkNtCK/RYNDXGSLlUD6cBuQTSw43CShGxjvfBTfcUA/r6UhUCbtYqkhcuQ==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.27.1
'@babel/types': 7.26.3
dev: true
/@babel/helper-optimise-call-expression@7.27.1:
@@ -1748,7 +1724,7 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/traverse': 7.26.7
'@babel/types': 7.27.1
'@babel/types': 7.26.3
transitivePeerDependencies:
- supports-color
dev: true
@@ -1788,6 +1764,7 @@ packages:
/@babel/helper-string-parser@7.27.1:
resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==}
engines: {node: '>=6.9.0'}
dev: true
/@babel/helper-validator-identifier@7.22.5:
resolution: {integrity: sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==}
@@ -1800,6 +1777,7 @@ packages:
/@babel/helper-validator-identifier@7.27.1:
resolution: {integrity: sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==}
engines: {node: '>=6.9.0'}
dev: true
/@babel/helper-validator-option@7.22.5:
resolution: {integrity: sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==}
@@ -1918,6 +1896,7 @@ packages:
hasBin: true
dependencies:
'@babel/types': 7.27.1
dev: true
/@babel/plugin-bugfix-firefox-class-in-computed-class-key@7.27.1(@babel/core@7.27.1):
resolution: {integrity: sha512-QPG3C9cCVRQLxAVwmefEmwdTanECuUBMQZ/ym5kiw3XKCGA7qkuQLcjWWHcrD/GKbn/WmJwaezfuuAOcyKlRPA==}
@@ -2954,6 +2933,7 @@ packages:
dependencies:
'@babel/helper-string-parser': 7.27.1
'@babel/helper-validator-identifier': 7.27.1
dev: true
/@braintree/sanitize-url@7.1.1:
resolution: {integrity: sha512-i1L7noDNxtFyL5DmZafWy1wRVhGehQmzZaz1HiN5e7iylJMSZR7ekOV7NsIqa5qBldlLrsKv4HbgFUVlQrz8Mw==}
@@ -3310,7 +3290,7 @@ packages:
/@codemod/parser@1.4.1:
resolution: {integrity: sha512-w9bvtcC1oJTuXAnp+ZOYLOWagtb8UBBZEKp9fYI0dA5KARiUJf00MmtDQyULaeZj/AQAGuOrm739DFDLeHv+0g==}
dependencies:
'@babel/parser': 7.27.2
'@babel/parser': 7.26.8
dev: false
/@codemod/utils@1.1.0:
@@ -3940,9 +3920,9 @@ packages:
dev: false
optional: true
/@intlify/bundle-utils@10.0.1(vue-i18n@11.1.9):
resolution: {integrity: sha512-WkaXfSevtpgtUR4t8K2M6lbR7g03mtOxFeh+vXp5KExvPqS12ppaRj1QxzwRuRI5VUto54A22BjKoBMLyHILWQ==}
engines: {node: '>= 18'}
/@intlify/bundle-utils@7.5.0(vue-i18n@9.14.4):
resolution: {integrity: sha512-6DymqusddBQ8kVtVBsVFFF7arNfIhuLacOmmsqayT2vl427j9m0VX12mMC+cgoVIodSpRfzYPaPTdPuJq7mK0Q==}
engines: {node: '>= 14.16'}
peerDependencies:
petite-vue-i18n: '*'
vue-i18n: '*'
@@ -3952,97 +3932,81 @@ packages:
vue-i18n:
optional: true
dependencies:
'@intlify/message-compiler': 11.1.9
'@intlify/shared': 11.1.9
acorn: 8.14.1
'@intlify/message-compiler': 9.9.1
'@intlify/shared': 9.9.1
acorn: 8.14.0
escodegen: 2.1.0
estree-walker: 2.0.2
jsonc-eslint-parser: 2.3.0
magic-string: 0.30.17
mlly: 1.7.3
source-map-js: 1.2.1
vue-i18n: 11.1.9(vue@3.3.4)
vue-i18n: 9.14.4(vue@3.3.4)
yaml-eslint-parser: 1.2.2
dev: true
/@intlify/core-base@11.1.9:
resolution: {integrity: sha512-Lrdi4wp3XnGhWmB/mMD/XtfGUw1Jt+PGpZI/M63X1ZqhTDjNHRVCs/i8vv8U1cwaj1A9fb0bkCQHLSL0SK+pIQ==}
/@intlify/core-base@9.14.4:
resolution: {integrity: sha512-vtZCt7NqWhKEtHa3SD/322DlgP5uR9MqWxnE0y8Q0tjDs9H5Lxhss+b5wv8rmuXRoHKLESNgw9d+EN9ybBbj9g==}
engines: {node: '>= 16'}
dependencies:
'@intlify/message-compiler': 11.1.9
'@intlify/shared': 11.1.9
'@intlify/message-compiler': 9.14.4
'@intlify/shared': 9.14.4
/@intlify/message-compiler@11.1.9:
resolution: {integrity: sha512-84SNs3Ikjg0rD1bOuchzb3iK1vR2/8nxrkyccIl5DjFTeMzE/Fxv6X+A7RN5ZXjEWelc1p5D4kHA6HEOhlKL5Q==}
/@intlify/message-compiler@9.14.4:
resolution: {integrity: sha512-vcyCLiVRN628U38c3PbahrhbbXrckrM9zpy0KZVlDk2Z0OnGwv8uQNNXP3twwGtfLsCf4gu3ci6FMIZnPaqZsw==}
engines: {node: '>= 16'}
dependencies:
'@intlify/shared': 11.1.9
'@intlify/shared': 9.14.4
source-map-js: 1.2.1
/@intlify/shared@11.1.9:
resolution: {integrity: sha512-H/83xgU1l8ox+qG305p6ucmoy93qyjIPnvxGWRA7YdOoHe1tIiW9IlEu4lTdsOR7cfP1ecrwyflQSqXdXBacXA==}
/@intlify/message-compiler@9.9.1:
resolution: {integrity: sha512-zTvP6X6HeumHOXuAE1CMMsV6tTX+opKMOxO1OHTCg5N5Sm/F7d8o2jdT6W6L5oHUsJ/vvkGefHIs7Q3hfowmsA==}
engines: {node: '>= 16'}
dependencies:
'@intlify/shared': 9.9.1
source-map-js: 1.2.1
dev: true
/@intlify/shared@9.14.4:
resolution: {integrity: sha512-P9zv6i1WvMc9qDBWvIgKkymjY2ptIiQ065PjDv7z7fDqH3J/HBRBN5IoiR46r/ujRcU7hCuSIZWvCAFCyuOYZA==}
engines: {node: '>= 16'}
/@intlify/unplugin-vue-i18n@6.0.8(@vue/compiler-dom@3.5.13)(eslint@8.47.0)(rollup@2.79.2)(typescript@5.2.2)(vue-i18n@11.1.9)(vue@3.3.4):
resolution: {integrity: sha512-Vvm3KhjE6TIBVUQAk37rBiaYy2M5OcWH0ZcI1XKEsOTeN1o0bErk+zeuXmcrcMc/73YggfI8RoxOUz9EB/69JQ==}
engines: {node: '>= 18'}
/@intlify/shared@9.9.1:
resolution: {integrity: sha512-b3Pta1nwkz5rGq434v0psHwEwHGy1pYCttfcM22IE//K9owbpkEvFptx9VcuRAxjQdrO2If249cmDDjBu5wMDA==}
engines: {node: '>= 16'}
dev: true
/@intlify/unplugin-vue-i18n@0.13.0(rollup@2.79.2)(vue-i18n@9.14.4):
resolution: {integrity: sha512-Mm9NhcvbsSZ5FXXnCpL/XFCk1hPp809hxErNmnwqGp21JjYOKGp3wpQSrpvGk33ZrHZbhPqAu70IEVEAxVZ5+A==}
engines: {node: '>= 14.16'}
peerDependencies:
petite-vue-i18n: '*'
vue: ^3.2.25
vue-i18n: '*'
vue-i18n-bridge: '*'
peerDependenciesMeta:
petite-vue-i18n:
optional: true
vue-i18n:
optional: true
vue-i18n-bridge:
optional: true
dependencies:
'@eslint-community/eslint-utils': 4.4.0(eslint@8.47.0)
'@intlify/bundle-utils': 10.0.1(vue-i18n@11.1.9)
'@intlify/shared': 11.1.9
'@intlify/vue-i18n-extensions': 8.0.0(@intlify/shared@11.1.9)(@vue/compiler-dom@3.5.13)(vue-i18n@11.1.9)(vue@3.3.4)
'@intlify/bundle-utils': 7.5.0(vue-i18n@9.14.4)
'@intlify/shared': 9.9.1
'@rollup/pluginutils': 5.1.4(rollup@2.79.2)
'@typescript-eslint/scope-manager': 8.37.0
'@typescript-eslint/typescript-estree': 8.37.0(typescript@5.2.2)
'@vue/compiler-sfc': 3.5.13
debug: 4.4.0
fast-glob: 3.3.3
fast-glob: 3.3.1
js-yaml: 4.1.0
json5: 2.2.3
pathe: 1.1.2
picocolors: 1.1.1
source-map-js: 1.2.1
unplugin: 1.16.1
vue: 3.3.4
vue-i18n: 11.1.9(vue@3.3.4)
unplugin: 1.4.0
vue-i18n: 9.14.4(vue@3.3.4)
transitivePeerDependencies:
- '@vue/compiler-dom'
- eslint
- rollup
- supports-color
- typescript
dev: true
/@intlify/vue-i18n-extensions@8.0.0(@intlify/shared@11.1.9)(@vue/compiler-dom@3.5.13)(vue-i18n@11.1.9)(vue@3.3.4):
resolution: {integrity: sha512-w0+70CvTmuqbskWfzeYhn0IXxllr6mU+IeM2MU0M+j9OW64jkrvqY+pYFWrUnIIC9bEdij3NICruicwd5EgUuQ==}
engines: {node: '>= 18'}
peerDependencies:
'@intlify/shared': ^9.0.0 || ^10.0.0 || ^11.0.0
'@vue/compiler-dom': ^3.0.0
vue: ^3.0.0
vue-i18n: ^9.0.0 || ^10.0.0 || ^11.0.0
peerDependenciesMeta:
'@intlify/shared':
optional: true
'@vue/compiler-dom':
optional: true
vue:
optional: true
vue-i18n:
optional: true
dependencies:
'@babel/parser': 7.27.2
'@intlify/shared': 11.1.9
'@vue/compiler-dom': 3.5.13
vue: 3.3.4
vue-i18n: 11.1.9(vue@3.3.4)
dev: true
/@iplookup/country-extra@1.0.20250317:
@@ -4917,11 +4881,6 @@ packages:
'@jridgewell/resolve-uri': 3.1.1
'@jridgewell/sourcemap-codec': 1.5.0
/@jsonquerylang/jsonquery@5.0.4:
resolution: {integrity: sha512-QdgVkapeGRxUqOOJuh2svDutejKaCizhupEmO4ZKSsaLolD7w5QhgrjmBNuS1wMCM5TyNKifK4i1wBDfNzO9xQ==}
hasBin: true
dev: false
/@juggle/resize-observer@3.4.0:
resolution: {integrity: sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==}
dev: false
@@ -5435,7 +5394,7 @@ packages:
dependencies:
detect-libc: 1.0.3
is-glob: 4.0.3
micromatch: 4.0.8
micromatch: 4.0.5
node-addon-api: 7.1.1
optionalDependencies:
'@parcel/watcher-android-arm64': 2.5.1
@@ -5685,7 +5644,7 @@ packages:
rollup:
optional: true
dependencies:
'@types/estree': 1.0.6
'@types/estree': 1.0.0
estree-walker: 2.0.2
picomatch: 4.0.2
rollup: 2.79.2
@@ -6467,6 +6426,7 @@ packages:
/@types/estree@1.0.6:
resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==}
dev: false
/@types/figlet@1.7.0:
resolution: {integrity: sha512-KwrT7p/8Eo3Op/HBSIwGXOsTZKYiM9NpWRBJ5sVjWP/SmlS+oxxRvJht/FNAtliJvja44N3ul1yATgohnVBV0Q==}
@@ -6826,20 +6786,6 @@ packages:
- supports-color
dev: true
/@typescript-eslint/project-service@8.37.0(typescript@5.2.2):
resolution: {integrity: sha512-BIUXYsbkl5A1aJDdYJCBAo8rCEbAvdquQ8AnLb6z5Lp1u3x5PNgSSx9A/zqYc++Xnr/0DVpls8iQ2cJs/izTXA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
typescript: '>=4.8.4 <5.9.0'
dependencies:
'@typescript-eslint/tsconfig-utils': 8.37.0(typescript@5.2.2)
'@typescript-eslint/types': 8.37.0
debug: 4.4.0
typescript: 5.2.2
transitivePeerDependencies:
- supports-color
dev: true
/@typescript-eslint/scope-manager@5.60.0:
resolution: {integrity: sha512-hakuzcxPwXi2ihf9WQu1BbRj1e/Pd8ZZwVTG9kfbxAMZstKz8/9OoexIwnmLzShtsdap5U/CoQGRCWlSuPbYxQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -6864,23 +6810,6 @@ packages:
'@typescript-eslint/visitor-keys': 6.9.1
dev: true
/@typescript-eslint/scope-manager@8.37.0:
resolution: {integrity: sha512-0vGq0yiU1gbjKob2q691ybTg9JX6ShiVXAAfm2jGf3q0hdP6/BruaFjL/ManAR/lj05AvYCH+5bbVo0VtzmjOA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
dependencies:
'@typescript-eslint/types': 8.37.0
'@typescript-eslint/visitor-keys': 8.37.0
dev: true
/@typescript-eslint/tsconfig-utils@8.37.0(typescript@5.2.2):
resolution: {integrity: sha512-1/YHvAVTimMM9mmlPvTec9NP4bobA1RkDbMydxG8omqwJJLEW/Iy2C4adsAESIXU3WGLXFHSZUU+C9EoFWl4Zg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
typescript: '>=4.8.4 <5.9.0'
dependencies:
typescript: 5.2.2
dev: true
/@typescript-eslint/type-utils@6.4.1(eslint@8.47.0)(typescript@5.2.2):
resolution: {integrity: sha512-7ON8M8NXh73SGZ5XvIqWHjgX2f+vvaOarNliGhjrJnv1vdjG0LVIz+ToYfPirOoBi56jxAKLfsLm40+RvxVVXA==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -6916,11 +6845,6 @@ packages:
engines: {node: ^16.0.0 || >=18.0.0}
dev: true
/@typescript-eslint/types@8.37.0:
resolution: {integrity: sha512-ax0nv7PUF9NOVPs+lmQ7yIE7IQmAf8LGcXbMvHX5Gm+YJUYNAl340XkGnrimxZ0elXyoQJuN5sbg6C4evKA4SQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
dev: true
/@typescript-eslint/typescript-estree@5.60.0(typescript@5.2.2):
resolution: {integrity: sha512-R43thAuwarC99SnvrBmh26tc7F6sPa2B3evkXp/8q954kYL6Ro56AwASYWtEEi+4j09GbiNAHqYwNNZuNlARGQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -6984,27 +6908,6 @@ packages:
- supports-color
dev: true
/@typescript-eslint/typescript-estree@8.37.0(typescript@5.2.2):
resolution: {integrity: sha512-zuWDMDuzMRbQOM+bHyU4/slw27bAUEcKSKKs3hcv2aNnc/tvE/h7w60dwVw8vnal2Pub6RT1T7BI8tFZ1fE+yg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
typescript: '>=4.8.4 <5.9.0'
dependencies:
'@typescript-eslint/project-service': 8.37.0(typescript@5.2.2)
'@typescript-eslint/tsconfig-utils': 8.37.0(typescript@5.2.2)
'@typescript-eslint/types': 8.37.0
'@typescript-eslint/visitor-keys': 8.37.0
debug: 4.4.0
fast-glob: 3.3.3
is-glob: 4.0.3
minimatch: 9.0.5
semver: 7.7.1
ts-api-utils: 2.1.0(typescript@5.2.2)
typescript: 5.2.2
transitivePeerDependencies:
- supports-color
dev: true
/@typescript-eslint/utils@5.60.0(eslint@8.47.0)(typescript@5.2.2):
resolution: {integrity: sha512-ba51uMqDtfLQ5+xHtwlO84vkdjrqNzOnqrnwbMHMRY8Tqeme8C2Q8Fc7LajfGR+e3/4LoYiWXUM6BpIIbHJ4hQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -7087,14 +6990,6 @@ packages:
eslint-visitor-keys: 3.4.3
dev: true
/@typescript-eslint/visitor-keys@8.37.0:
resolution: {integrity: sha512-YzfhzcTnZVPiLfP/oeKtDp2evwvHLMe0LOy7oe+hb9KKIumLNohYS9Hgp1ifwpu42YWxhZE8yieggz6JpqO/1w==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
dependencies:
'@typescript-eslint/types': 8.37.0
eslint-visitor-keys: 4.2.1
dev: true
/@ungap/structured-clone@1.3.0:
resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==}
dev: false
@@ -7125,7 +7020,7 @@ packages:
dependencies:
'@unhead/dom': 0.5.1
'@unhead/schema': 0.5.1
'@vueuse/shared': 13.5.0(vue@3.3.4)
'@vueuse/shared': 13.3.0(vue@3.3.4)
unhead: 0.5.1
vue: 3.3.4
dev: false
@@ -7533,9 +7428,8 @@ packages:
/@vue/compiler-core@3.5.13:
resolution: {integrity: sha512-oOdAkwqUfW1WqpwSYJce06wvt6HljgY3fGeM9NcVA1HaYOij3mZG9Rkysn0OHuyUAGMbEbARIpsG+LPVlBJ5/Q==}
requiresBuild: true
dependencies:
'@babel/parser': 7.27.2
'@babel/parser': 7.26.3
'@vue/shared': 3.5.13
entities: 4.5.0
estree-walker: 2.0.2
@@ -7591,6 +7485,20 @@ packages:
postcss: 8.4.49
source-map-js: 1.2.1
/@vue/compiler-sfc@3.5.13:
resolution: {integrity: sha512-6VdaljMpD82w6c2749Zhf5T9u5uLBWKnVue6XWxprDobftnletJ8+oel7sexFfM3qIxNmVE7LSFGTpv6obNyaQ==}
dependencies:
'@babel/parser': 7.26.3
'@vue/compiler-core': 3.5.13
'@vue/compiler-dom': 3.5.13
'@vue/compiler-ssr': 3.5.13
'@vue/shared': 3.5.13
estree-walker: 2.0.2
magic-string: 0.30.17
postcss: 8.4.49
source-map-js: 1.2.1
dev: true
/@vue/compiler-ssr@3.2.47:
resolution: {integrity: sha512-wVXC+gszhulcMD8wpxMsqSOpvDZ6xKXSVWkf50Guf/S+28hTAXPDYRTbLQ3EDkOP5Xz/+SY37YiwDquKbJOgZw==}
dependencies:
@@ -7606,12 +7514,10 @@ packages:
/@vue/compiler-ssr@3.5.13:
resolution: {integrity: sha512-wMH6vrYHxQl/IybKJagqbquvxpWCuVYpoUJfCqFZwa/JY1GdATAQ+TgVtgrwwMZ0D07QhA99rs/EAAWfvG6KpA==}
requiresBuild: true
dependencies:
'@vue/compiler-dom': 3.5.13
'@vue/shared': 3.5.13
dev: true
optional: true
/@vue/devtools-api@6.5.0:
resolution: {integrity: sha512-o9KfBeaBmCKl10usN4crU53fYtC1r7jJwdGKjPT24t348rHxgfpZ0xL3Xm/gLUYnc0oTp8LAmrxOeLyu6tbk2Q==}
@@ -7701,7 +7607,6 @@ packages:
/@vue/shared@3.5.13:
resolution: {integrity: sha512-/hnE/qP5ZoGpol0a5mDi45bOd7t3tjYJBjsgCsivow7D48cJeV5l05RD82lPqi7gRiphZM37rnhW1l6ZoCNNnQ==}
requiresBuild: true
dev: true
/@vue/test-utils@2.3.2(vue@3.3.4):
@@ -7787,8 +7692,8 @@ packages:
- vue
dev: false
/@vueuse/shared@13.5.0(vue@3.3.4):
resolution: {integrity: sha512-K7GrQIxJ/ANtucxIXbQlUHdB0TPA8c+q5i+zbrjxuhJCnJ9GtBg75sBSnvmLSxHKPg2Yo8w62PWksl9kwH0Q8g==}
/@vueuse/shared@13.3.0(vue@3.3.4):
resolution: {integrity: sha512-L1QKsF0Eg9tiZSFXTgodYnu0Rsa2P0En2LuLrIs/jgrkyiDuJSsPZK+tx+wU0mMsYHUYEjNsuE41uqqkuR8VhA==}
peerDependencies:
vue: ^3.5.0
dependencies:
@@ -8788,10 +8693,6 @@ packages:
safe-buffer: 5.2.1
dev: true
/citation-formatter@1.0.1:
resolution: {integrity: sha512-cq42634FYQtB/alrsjCDIqLJSFXo1154KsCXkcqAVq318DHEi+7+4+YB09wXWr5fm8WGnhR8eLbtuGmMIAdszg==}
dev: false
/citty@0.1.6:
resolution: {integrity: sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ==}
dependencies:
@@ -8965,11 +8866,6 @@ packages:
/commander@2.20.3:
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
/commander@6.2.1:
resolution: {integrity: sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==}
engines: {node: '>= 6'}
dev: true
/commander@7.2.0:
resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==}
engines: {node: '>= 10'}
@@ -10148,14 +10044,6 @@ packages:
no-case: 2.3.2
dev: true
/dot-object@2.1.5:
resolution: {integrity: sha512-xHF8EP4XH/Ba9fvAF2LDd5O3IITVolerVV6xvkxoM8zlGEiCUrggpAnHyOoKJKCrhvPcGATFAUwIujj7bRG5UA==}
hasBin: true
dependencies:
commander: 6.2.1
glob: 7.2.3
dev: true
/dotignore@0.1.2:
resolution: {integrity: sha512-UGGGWfSauusaVJC+8fgV+NVvBXkCTmVv7sk6nojDZZvuOUNGUy0Zk4UpHQD6EDjS0jpBwcACvH4eofvyzBcRDw==}
hasBin: true
@@ -10285,8 +10173,8 @@ packages:
resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==}
dev: false
/emojilib@4.0.2:
resolution: {integrity: sha512-8sP3sfAi861cNaFFp7RmyKi4S26K34ZKy4si75ojUW627AIVBHhMSu2SFJo3YRoK66YWnbysIbOk/d48uEqtKQ==}
/emojilib@4.0.1:
resolution: {integrity: sha512-zVY5JGxycujUimHkBn2lg5NCVwASJiQA2fhKfDPgyDFmNTftiw6KdOcq2fQt1HCVw0YeYW/ccYxQHQNjZpNeuw==}
dev: false
/encoding-japanese@2.2.0:
@@ -10896,11 +10784,6 @@ packages:
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: true
/eslint-visitor-keys@4.2.1:
resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
dev: true
/eslint@8.47.0:
resolution: {integrity: sha512-spUQWrdPt+pRVP1TTJLmfRNJJHHZryFmptzcafwSvHsceV81djHOdnEeDmkdotZyLNjDhrOasNK8nikkoG1O8Q==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -11814,7 +11697,7 @@ packages:
dependencies:
array-union: 2.1.0
dir-glob: 3.0.1
fast-glob: 3.3.3
fast-glob: 3.3.1
ignore: 5.2.4
merge2: 1.4.1
slash: 3.0.0
@@ -12110,10 +11993,6 @@ packages:
resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==}
dev: false
/htmlfy@0.8.1:
resolution: {integrity: sha512-xWROBw9+MEGwxpotll0h672KCaLrKKiCYzsyN8ZgL9cQbVumFnyvsk2JqiB9ELAV1GLj1GG/jxZUjV9OZZi/yQ==}
dev: false
/htmlparser2@8.0.2:
resolution: {integrity: sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==}
dependencies:
@@ -12334,7 +12213,6 @@ packages:
/inflight@1.0.6:
resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}
deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
dependencies:
once: 1.4.0
wrappy: 1.0.2
@@ -12837,6 +12715,7 @@ packages:
/is-valid-glob@1.0.0:
resolution: {integrity: sha512-AhiROmoEFDSsjx8hW+5sGwgKVIORcXnrlAx/R0ZSeaPw70Vw0CqkGBBhHGL58Uox2eXnU1AnvXJl1XlyedO5bA==}
engines: {node: '>=0.10.0'}
dev: false
/is-weakmap@2.0.2:
resolution: {integrity: sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==}
@@ -14092,6 +13971,7 @@ packages:
engines: {node: '>=16 || 14 >=14.17'}
dependencies:
brace-expansion: 2.0.1
dev: false
/minimist@1.2.8:
resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
@@ -14239,11 +14119,6 @@ packages:
vueuc: 0.4.64(vue@3.3.4)
dev: false
/nano-seconds@1.2.2:
resolution: {integrity: sha512-s06EY41x1hM6BJE2HhIFRzvXuVUlZNd4761lduv+hjgtDDR7W4RzhShkap2wJcWMO6+CahR+49cCQJfFmgf7gw==}
engines: {node: '>=4.0.0'}
dev: false
/nanoid-dictionary@4.3.0:
resolution: {integrity: sha512-Xw1+/QnRGWO1KJ0rLfU1xR85qXmAHyLbE3TUkklu9gOIDburP6CsUnLmTaNECGpBh5SHb2uPFmx0VT8UPyoeyw==}
dev: false
@@ -17182,13 +17057,6 @@ packages:
resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==}
dev: true
/tick-time@1.0.1:
resolution: {integrity: sha512-de0ah4VT+jK7Kaz9aGShjW72avFfsEAeacYouM2IF27Rz4l9XPr3xVBS1vI64LUL3gKBbW1OBttWlLCfhFfX9A==}
engines: {node: '>=6'}
dependencies:
nano-seconds: 1.2.2
dev: false
/tidy-url@1.18.3:
resolution: {integrity: sha512-NnbmullqE/3loiDoopNltfLb/v6EhX5GYNUVU4EuZjnDjh/NIBzy5dHnhvH3EfIAnZZZMf3cW0HgNw9E+easyg==}
dev: false
@@ -17404,15 +17272,6 @@ packages:
typescript: 5.2.2
dev: true
/ts-api-utils@2.1.0(typescript@5.2.2):
resolution: {integrity: sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==}
engines: {node: '>=18.12'}
peerDependencies:
typescript: '>=4.8.4'
dependencies:
typescript: 5.2.2
dev: true
/ts-custom-error@3.3.1:
resolution: {integrity: sha512-5OX1tzOjxWEgsr/YEUWSuPrQ00deKLh6D7OTWcvNHm12/7QPyRh8SYpyWvA4IZv8H/+GQWQEh/kwo95Q9OVW1A==}
engines: {node: '>=14.0.0'}
@@ -17740,8 +17599,8 @@ packages:
engines: {node: '>=4'}
dev: true
/unicode-emoji-json@0.8.0:
resolution: {integrity: sha512-3wDXXvp6YGoKGhS2O2H7+V+bYduOBydN1lnI0uVfr1cIdY02uFFiEH1i3kE5CCE4l6UqbLKVmEFW9USxTAMD1g==}
/unicode-emoji-json@0.4.0:
resolution: {integrity: sha512-lVNOwh2AnmbwqtSrEVjAWKQoVzWgyWmXVqPuPkPfKb0tnA0+uYN/4ILCTdy9IRj/+3drAVhmjwjNJQr2dhCwnA==}
dev: false
/unicode-match-property-ecmascript@2.0.0:
@@ -18034,7 +17893,6 @@ packages:
chokidar: 3.5.3
webpack-sources: 3.2.3
webpack-virtual-modules: 0.5.0
dev: false
/upath@1.2.0:
resolution: {integrity: sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==}
@@ -18352,10 +18210,6 @@ packages:
- supports-color
dev: true
/vite-plugin-splash-screen@0.2.0:
resolution: {integrity: sha512-PCUiVq8wjx7dHMa9vOqnB+bewKp60VFbhPJJjQOA8UdwmPdf9ChBGuxh+sku4szrnJFsriB0gIDAURAmOqBcUQ==}
dev: true
/vite-plugin-vue-markdown@0.23.5(rollup@2.79.2)(vite@4.4.9):
resolution: {integrity: sha512-NXTZ4y+n691gLPWayMBbh4jldQeaqDp9e9WjWUYbn9obsLqS9qU+hr4RAruDq5kP4siTOp7JDV34Sw5eA7WxLg==}
peerDependencies:
@@ -18607,37 +18461,17 @@ packages:
- supports-color
dev: true
/vue-i18n-extract@2.0.7:
resolution: {integrity: sha512-i1NW5R58S720iQ1BEk+6ILo3hT6UA8mtYNNolSH4rt9345qvXdvA6GHy2+jHozdDAKHwlu9VvS/+vIMKs1UYQw==}
hasBin: true
dependencies:
cac: 6.7.14
dot-object: 2.1.5
glob: 8.1.0
is-valid-glob: 1.0.0
js-yaml: 4.1.0
dev: true
/vue-i18n@11.1.9(vue@3.3.4):
resolution: {integrity: sha512-N9ZTsXdRmX38AwS9F6Rh93RtPkvZTkSy/zNv63FTIwZCUbLwwrpqlKz9YQuzFLdlvRdZTnWAUE5jMxr8exdl7g==}
/vue-i18n@9.14.4(vue@3.3.4):
resolution: {integrity: sha512-B934C8yUyWLT0EMud3DySrwSUJI7ZNiWYsEEz2gknTthqKiG4dzWE/WSa8AzCuSQzwBEv4HtG1jZDhgzPfWSKQ==}
engines: {node: '>= 16'}
peerDependencies:
vue: ^3.0.0
dependencies:
'@intlify/core-base': 11.1.9
'@intlify/shared': 11.1.9
'@intlify/core-base': 9.14.4
'@intlify/shared': 9.14.4
'@vue/devtools-api': 6.5.0
vue: 3.3.4
/vue-loading-overlay@6.0.6(vue@3.3.4):
resolution: {integrity: sha512-ZPrWawjCoNKGbCG9z4nePgbs/K9KXPa1j1oAJXP6T8FQho3NO+/chhjx4MLYFzfpwr+xkiQ8SNrV1kUG1bZPAw==}
engines: {node: '>=12.13.0'}
peerDependencies:
vue: ^3.2.0
dependencies:
vue: 3.3.4
dev: false
/vue-markdown-render@2.2.1(vue@3.3.4):
resolution: {integrity: sha512-XkYnC0PMdbs6Vy6j/gZXSvCuOS0787Se5COwXlepRqiqPiunyCIeTPQAO2XnB4Yl04EOHXwLx5y6IuszMWSgyQ==}
peerDependencies:
@@ -18693,6 +18527,16 @@ packages:
vue: 3.3.4
dev: false
/vue3-fortune-wheel@2.0.5(vue@3.3.4):
resolution: {integrity: sha512-fMCmyT8sE79+O6fs2IWWrQMa1UjU+cuzu92C6EDCNaXaHaJKLReQxkAKLDiHyUC/GFpcsbpuBFbketWE3cKL0A==}
engines: {node: '>=20.14.0', pnpm: '>=9.5.0'}
peerDependencies:
vue: ^3.4.0
dependencies:
d3: 7.9.0
vue: 3.3.4
dev: false
/vue@3.3.4:
resolution: {integrity: sha512-VTyEYn3yvIeY1Py0WaYGZsXnz3y5UnGi62GjVEqvEGPl6nxbOrCXbVOTQWBEJUqAyTUk2uJ5JLVnYJ6ZzGbrSw==}
dependencies:
@@ -19315,11 +19159,6 @@ packages:
resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==}
engines: {node: '>=0.4'}
/xterm@5.3.0:
resolution: {integrity: sha512-8QqjlekLUFTrU6x7xck1MsPzPA571K5zNqWm0M0oroYEWVOptZ0+ubQSkQ3uxIEhcIHRujJy6emDWX4A7qyFzg==}
deprecated: This package is now deprecated. Move to @xterm/xterm instead.
dev: false
/y18n@4.0.3:
resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==}
dev: false
-117
View File
@@ -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

-71
View File
@@ -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: translate('tools.${parentDir}.title')`)
.replace(/description: '((?:[^']+|(?<=\\)')+)'/, `description: translate('tools.${parentDir}.description')`);
fs.writeFileSync(filePath, `import { translate } 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!');
-113
View File
@@ -1,113 +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) {
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;
}
// 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();");
}
fs.writeFileSync(filePath, content, 'utf8');
console.log(`Processed: ${filePath}`);
}
if (process.argv[1]) {
processVueComponent(process.argv[2], process.argv[3] || basename(process.argv[2]));
} 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
View File
@@ -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 -1
View File
@@ -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

+62 -127
View File
@@ -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 -5
View File
@@ -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 -2
View File
@@ -1,7 +1,6 @@
<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
@@ -14,7 +13,7 @@ const emit = defineEmits(['update:value']);
const value = useVModel(props, 'value', emit);
const { copy, isJustCopied } = useCopy({ source: value, createToast: false });
const tooltipText = computed(() => isJustCopied.value ? t('inputCopyable.copied') : t('inputCopyable.copy'));
const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : 'Copy to clipboard');
</script>
<template>
-90
View File
@@ -1,90 +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;
const containerWidth = textRef.value.clientWidth;
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>
+1 -30
View File
@@ -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;
}
// Get 10% of window width, but ensure it's at least 240px
const tenPercent = windowWidth.value * 0.1;
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"
+2 -3
View File
@@ -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>
+6 -27
View File
@@ -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);
@@ -67,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(
@@ -96,14 +80,9 @@ const { download } = useDownloadFileFromBase64(
:style="(copyPlacement === 'top-right' || copyPlacement === 'bottom-right') ? `padding-bottom: 50px` : ''"
>
<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" />
@@ -111,10 +90,10 @@ const { download } = useDownloadFileFromBase64(
</n-scrollbar>
<div
v-if="value && copyPlacement !== 'none'"
: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()">
+28 -107
View File
@@ -35,19 +35,8 @@ export function useFlexSearch<Data extends Record<string, any>>({
* 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>
@@ -78,66 +67,29 @@ export function useFlexSearch<Data extends Record<string, any>>({
preset: 'performance',
resolution: 9,
optimize: true,
cache: false,
cache: 100,
fastupdate: true,
...indexOptions,
}),
}));
// Initialize indices with data
const initializeIndices = async () => {
const initializeIndices = () => {
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) => {
data.forEach((item, idx) => {
const itemKey = getItemKey(item, idx);
const values = new Map<string, string>();
dataMap.value.set(itemKey, item);
indices.forEach(({ key }) => {
indices.forEach(({ key, index }) => {
// Support nested keys (e.g., 'foo.bar')
const value = key.split('.').reduce((obj, path) => obj?.[path], item);
if (value) {
values.set(key, String(value));
index.add(itemKey, String(value));
}
});
return { itemKey, item, values };
});
// Batch add to dataMap
itemData.forEach(({ itemKey, item }) => {
dataMap.value.set(itemKey, item);
});
// Batch add to indices - parallel processing with chunking
await Promise.all(
indices.map(async ({ key, index }) => {
// Filter items that have values for this key upfront
const itemsForThisKey = itemData
.map(({ itemKey, values }) => ({ itemKey, value: values.get(key) }))
.filter(({ value }) => value);
// Process in chunks to avoid blocking the main thread
const chunkSize = 1000; // Adjust based on your data size
const chunks = [];
for (let i = 0; i < itemsForThisKey.length; i += chunkSize) {
chunks.push(itemsForThisKey.slice(i, i + chunkSize));
}
// Process each chunk asynchronously
for (const chunk of chunks) {
await new Promise<void>((resolve) => {
// Use setTimeout to yield control back to the browser
setTimeout(() => {
chunk.forEach(({ itemKey, value }) => {
index.add(itemKey, value!);
});
resolve();
}, 0);
});
}
}),
);
};
// Initialize on creation
@@ -146,10 +98,8 @@ export function useFlexSearch<Data extends Record<string, any>>({
// Watch for data changes (deep watch for array content)
watch(
() => data,
() => {
initializeIndices();
},
{ immediate: true, deep: true },
initializeIndices,
{ deep: true },
);
// Function to search across all indices with weight consideration
@@ -162,39 +112,27 @@ export function useFlexSearch<Data extends Record<string, any>>({
const individualLimit = searchLimit > 0 ? searchLimit * 2 : undefined;
// Search each index and collect results with weights
const weightedResults = new Map<any, { score: number; maxWeight: number }>();
const weightedResults = new Map<any, 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,
});
const currentScore = weightedResults.get(id) || 0;
weightedResults.set(id, currentScore + weight);
});
});
// Sort by score (higher score = better match) and convert to array
// Sort by weight (higher weight = 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;
})
.sort((a, b) => b[1] - a[1])
.map(([id]) => id);
// If shouldn't be sorted by similarity, apply limit here and return early
// Apply limit and convert back to original items
const limitedIds = searchLimit > 0 ? sortedIds.slice(0, searchLimit) : sortedIds;
// Return the limited results early if it shouldn't be sorted by similarity
if (!shouldSort) {
const limitedIds = searchLimit > 0 ? sortedIds.slice(0, searchLimit) : sortedIds;
return limitedIds
.map(id => dataMap.value.get(id))
.filter(Boolean) as Data[];
@@ -236,49 +174,32 @@ export function useFlexSearch<Data extends Record<string, any>>({
return 1 - (distance / maxLength);
};
// Sort ALL results by similarity score, then apply limit at the end
const sortedResults = sortedIds
// Sort limited results by similarity score
const sortedResults = limitedIds
.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 }) => {
// Calculate best similarity score across all searchable fields
const similarities = normalizedKeys.map(({ name }) => {
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 value ? calculateSimilarity(query, String(value)) : 0;
});
const bestSimilarity = Math.max(...similarities);
return {
item,
similarity: bestWeightedSimilarity,
maxWeight: maxFieldWeight,
similarity: bestSimilarity,
};
})
.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;
})
.sort((a, b) => b!.similarity - a!.similarity)
.map(result => result!.item);
// Apply limit after final sorting
return searchLimit > 0 ? sortedResults.slice(0, searchLimit) : sortedResults;
return sortedResults as Data[];
};
// Computed results
-4
View File
@@ -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
View File
@@ -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 {
+1 -1
View File
@@ -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>
-5
View File
@@ -3,11 +3,9 @@ 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 { 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 'virtual:uno.css';
@@ -26,7 +24,6 @@ registerSW();
const app = createApp(App);
app.use(LoadingPlugin);
app.use(createPinia());
app.use(createHead());
app.use(i18nPlugin);
@@ -37,5 +34,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
View File
@@ -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>
+2 -2
View File
@@ -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;
};
-22
View File
@@ -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;
+1 -5
View File
@@ -38,8 +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();
}
}
+18 -16
View File
@@ -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">
+38 -41
View File
@@ -1,10 +1,7 @@
<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: () => {
@@ -167,42 +164,42 @@ function onDecryptFilesUploaded(uploadedFiles: File[]) {
<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-tab-pane name="keys" tab="Generate Keys">
<n-card title="Private Key" mb-1>
<textarea-copyable v-model:value="privKey" rows="3" multiline placeholder="Your private key will be generated here." />
</n-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 title="Public Key" mb-1>
<textarea-copyable v-model:value="pubKey" rows="3" multiline placeholder="Your public key will be generated here." />
</n-card>
<n-button type="primary" @click="generateKeys">
{{ t('tools.age-crypto.texts.tag-generate-keys') }}
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-tab-pane name="encrypt" tab="Encrypt">
<n-card title="Public Keys" mb-1>
<n-input v-model:value="recipients" type="textarea" placeholder="Recipient key or keys one per line" required />
</n-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 title="Message" mb-1>
<n-input v-model:value="message" type="textarea" 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 title="Output" mb-1>
<textarea-copyable v-model:value="encryptedOutput" rows="3" multiline placeholder="Encrypted output will be generated here." />
</n-card>
<n-button type="primary" @click="encrypt">
{{ t('tools.age-crypto.texts.tag-encrypt') }}
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-tab-pane name="encryptBinary" tab="Encrypt Binary">
<n-card title="Public Keys" mb-1>
<n-input v-model:value="recipientsBinary" type="textarea" placeholder="Recipient key or keys one per line" required />
</n-card>
<n-card :title="t('tools.age-crypto.texts.title-files')" mb-1>
<n-card 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')"
title="Drag and drop files here, or click to select some files"
multiple
@files-upload="onEncryptFilesUploaded"
/>
@@ -212,38 +209,38 @@ function onDecryptFilesUploaded(uploadedFiles: File[]) {
</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 title="Output" mb-1>
<p>The encrypted files will be downloaded.</p>
</n-card>
<n-button type="primary" @click="encryptBinary">
{{ t('tools.age-crypto.texts.tag-encrypt-binary') }}
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-tab-pane name="decrypt" tab="Decrypt">
<n-card title="Private Keys" mb-1>
<n-input v-model:value="identities" type="textarea" placeholder="Identity key or keys one per line" required />
</n-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 title="Encrypted Text" mb-1>
<n-input v-model:value="encryptedText" type="textarea" 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 title="Output" mb-1>
<textarea-copyable v-model:value="decryptedOutput" rows="3" multiline placeholder="Decrypted output will be generated here." />
</n-card>
<n-button type="primary" @click="decrypt">
{{ t('tools.age-crypto.texts.tag-decrypt') }}
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-tab-pane name="decryptBinary" tab="Decrypt Binary">
<n-card title="Private Keys" mb-1>
<n-input v-model:value="identitiesBinary" type="textarea" placeholder="Identity key or keys one per line" required />
</n-card>
<n-card :title="t('tools.age-crypto.texts.title-encrypted-files')" mb-1>
<n-card 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')"
title="Drag and drop files here, or click to select some files"
multiple
@files-upload="onDecryptFilesUploaded"
/>
@@ -253,11 +250,11 @@ function onDecryptFilesUploaded(uploadedFiles: File[]) {
</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 title="Output" mb-1>
<p>The decrypted files will be downloaded.</p>
</n-card>
<n-button type="primary" @click="decryptBinary">
{{ t('tools.age-crypto.texts.tag-decrypt-binary') }}
Decrypt Binary
</n-button>
</n-tab-pane>
</n-tabs>
+2 -3
View File
@@ -1,11 +1,10 @@
import { EyeOff } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';
export const tool = defineTool({
name: translate('tools.age-crypto.title'),
name: 'AGE Cryptography',
path: '/age-crypto',
description: translate('tools.age-crypto.description'),
description: 'Provides a simple and easy-to-use open-source Age tool for generating keys, encrypting, and decrypting messages.',
keywords: ['age'],
component: () => import('./age-crypto.vue'),
icon: EyeOff,
@@ -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,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';
import '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>
-14
View File
@@ -1,14 +0,0 @@
import { Terminal2 } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';
export const tool = defineTool({
name: translate('tools.ansi-escape-tester.title'),
path: '/ansi-escape-tester',
description: translate('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
+19 -22
View File
@@ -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>
@@ -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,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,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>
+2 -5
View File
@@ -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,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,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>
+2 -3
View File
@@ -1,11 +1,10 @@
import { FileDigit } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';
export const tool = defineTool({
name: translate('tools.base64-hex-converter.title'),
name: 'Base64 Hex array encoder/decoder',
path: '/base64-hex-converter',
description: translate('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>
+2 -3
View File
@@ -1,11 +1,10 @@
import { Command } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';
export const tool = defineTool({
name: translate('tools.bash-memo.title'),
name: 'Bash Cheatsheet',
path: '/bash-memo',
description: translate('tools.bash-memo.description'),
description: 'Bash common commands',
keywords: ['bash', 'shell'],
component: () => import('./bash-memo.vue'),
icon: Command,
@@ -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>
+13 -16
View File
@@ -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,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,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>
+2 -3
View File
@@ -1,11 +1,10 @@
import { World } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';
export const tool = defineTool({
name: translate('tools.bimi-dns-generator.title'),
name: 'BIMI DNS Generator',
path: '/bimi-dns-generator',
description: translate('tools.bimi-dns-generator.description'),
description: 'Generate BIMI DNS TXT record',
keywords: ['bimi', 'dns', 'txt'],
component: () => import('./bimi-dns-generator.vue'),
icon: World,
+10 -13
View File
@@ -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" />
+9 -12
View File
@@ -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>
+2 -3
View File
@@ -1,11 +1,10 @@
import { MedicalCross } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';
export const tool = defineTool({
name: translate('tools.bmi-calculator.title'),
name: 'BMI Calculator',
path: '/bmi-calculator',
description: translate('tools.bmi-calculator.description'),
description: 'Body Mass Index Calculator (us or metric units)',
keywords: ['bmi', 'body', 'mass'],
component: () => import('./bmi-calculator.vue'),
icon: MedicalCross,
+23 -26
View File
@@ -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>
+2 -3
View File
@@ -1,11 +1,10 @@
import { Mailbox } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';
export const tool = defineTool({
name: translate('tools.bounce-parser.title'),
name: 'Bounce Email Parser',
path: '/bounce-parser',
description: translate('tools.bounce-parser.description'),
description: 'Parse SMTP Bounce Emails',
keywords: ['bounce', 'email', 'smtp', 'parser'],
component: () => import('./bounce-parser.vue'),
icon: Mailbox,
+21 -17
View File
@@ -1,11 +1,8 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import _ from 'lodash';
import { useMediaRecorder } from './useMediaRecorder';
const { t } = useI18n();
interface Media { type: 'image' | 'video'; value: string; createdAt: Date }
const {
@@ -109,18 +106,20 @@ function downloadMedia({ type, value, createdAt }: Media) {
<template>
<div>
<c-card v-if="!isSupported">
{{ t('tools.camera-recorder.texts.tag-your-browser-does-not-support-recording-video-from-camera') }}
Your browser does not support recording video from camera
</c-card>
<c-card v-else-if="!permissionGranted" text-center>
{{ t('tools.camera-recorder.texts.tag-you-need-to-grant-permission-to-use-your-camera-and-microphone') }}<c-alert v-if="permissionCannotBePrompted" mt-4 text-left>
You need to grant permission to use your camera and microphone
<c-alert v-if="permissionCannotBePrompted" mt-4 text-left>
Your browser has blocked permission request or does not support it. You need to grant permission manually in
your browser settings (usually the lock icon in the address bar).
</c-alert>
<div v-else mt-4 flex justify-center>
<c-button @click="requestPermissions">
{{ t('tools.camera-recorder.texts.tag-grant-permission') }}
Grant permission
</c-button>
</div>
</c-card>
@@ -131,24 +130,24 @@ function downloadMedia({ type, value, createdAt }: Media) {
v-model:value="currentCamera"
label-position="left"
label-width="60px"
:label="t('tools.camera-recorder.texts.label-video')"
label="Video:"
:options="cameras.map(({ deviceId, label }) => ({ value: deviceId, label }))"
:placeholder="t('tools.camera-recorder.texts.placeholder-select-camera')"
placeholder="Select camera"
/>
<c-select
v-if="currentMicrophone && microphones.length > 0"
v-model:value="currentMicrophone"
:label="t('tools.camera-recorder.texts.label-audio')"
label="Audio:"
label-position="left"
label-width="60px"
:options="microphones.map(({ deviceId, label }) => ({ value: deviceId, label }))"
:placeholder="t('tools.camera-recorder.texts.placeholder-select-microphone')"
placeholder="Select microphone"
/>
</div>
<div v-if="!isMediaStreamAvailable" mt-3 flex justify-center>
<c-button type="primary" @click="start">
{{ t('tools.camera-recorder.texts.tag-start-webcam') }}
Start webcam
</c-button>
</div>
@@ -159,28 +158,33 @@ function downloadMedia({ type, value, createdAt }: Media) {
<div flex items-center justify-between gap-2>
<c-button :disabled="!isMediaStreamAvailable" @click="takeScreenshot">
<span mr-2> <icon-mdi-camera /></span>{{ t('tools.camera-recorder.texts.tag-take-screenshot') }}
<span mr-2> <icon-mdi-camera /></span>
Take screenshot
</c-button>
<div v-if="isRecordingSupported" flex justify-center gap-2>
<c-button v-if="recordingState === 'stopped'" @click="startRecording">
<span mr-2> <icon-mdi-video /></span>{{ t('tools.camera-recorder.texts.tag-start-recording') }}
<span mr-2> <icon-mdi-video /></span>
Start recording
</c-button>
<c-button v-if="recordingState === 'recording'" @click="pauseRecording">
<span mr-2> <icon-mdi-pause /></span>{{ t('tools.camera-recorder.texts.tag-pause') }}
<span mr-2> <icon-mdi-pause /></span>
Pause
</c-button>
<c-button v-if="recordingState === 'paused'" @click="resumeRecording">
<span mr-2> <icon-mdi-play /></span>{{ t('tools.camera-recorder.texts.tag-resume') }}
<span mr-2> <icon-mdi-play /></span>
Resume
</c-button>
<c-button v-if="recordingState !== 'stopped'" type="error" @click="stopRecording">
<span mr-2> <icon-mdi-record /></span>{{ t('tools.camera-recorder.texts.tag-stop') }}
<span mr-2> <icon-mdi-record /></span>
Stop
</c-button>
</div>
<div v-else italic op-60>
{{ t('tools.camera-recorder.texts.tag-video-recording-is-not-supported-in-your-browser') }}
Video recording is not supported in your browser
</div>
</div>
</div>
+8 -11
View File
@@ -1,13 +1,10 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import cards from '@younestouati/playing-cards-standard-deck';
import { exhaustiveUniqueRandom } from 'unique-random';
import { computedRefreshable } from '@/composable/computedRefreshable';
import { useCopy } from '@/composable/copy';
import { useQueryParamOrStorage } from '@/composable/queryParams';
const { t } = useI18n();
const cardKeys = [...Object.keys(cards).filter(k => k !== 'joker'), 'joker', 'joker'];
type CardNames = keyof typeof cards;
@@ -47,7 +44,7 @@ function translateName(cardId: string) {
const cardPickedString = computed(() => cardPicked.value.map(translateName).join(', '));
const { copy } = useCopy({ source: cardPickedString, text: t('tools.card-picker.texts.text-cards-picked-copied-to-the-clipboard') });
const { copy } = useCopy({ source: cardPickedString, text: 'Cards Picked copied to the clipboard' });
</script>
<template>
@@ -59,24 +56,24 @@ const { copy } = useCopy({ source: cardPickedString, text: t('tools.card-picker.
<textarea-copyable :value="cardPickedString" readonly mb-1 />
</div>
<div flex justify-center gap-3>
<n-form-item :label="t('tools.card-picker.texts.label-number-of-cards')" label-placement="left">
<n-input-number v-model:value="numberOfCards" min="1" :max="maxCards" :placeholder="t('tools.card-picker.texts.placeholder-number-of-cards-to-pick')" />
<n-form-item label="Number of cards:" label-placement="left">
<n-input-number v-model:value="numberOfCards" min="1" :max="maxCards" placeholder="Number of cards to pick" />
</n-form-item>
<n-form-item :label="t('tools.card-picker.texts.label-number-of-packs')" label-placement="left">
<n-input-number v-model:value="numberOfPacks" min="1" :placeholder="t('tools.card-picker.texts.placeholder-number-of-card-packs-to-pick-in')" />
<n-form-item label="Number of packs:" label-placement="left">
<n-input-number v-model:value="numberOfPacks" min="1" placeholder="Number of card packs to pick in" />
</n-form-item>
</div>
<div mb-4 flex justify-center>
<n-checkbox v-model:checked="useJokers">
{{ t('tools.card-picker.texts.tag-use-jokers') }}
Use Jokers
</n-checkbox>
</div>
<div flex justify-center gap-3>
<c-button @click="copy()">
{{ t('tools.card-picker.texts.tag-copy-deck') }}
Copy deck
</c-button>
<c-button @click="refreshCardPicked">
{{ t('tools.card-picker.texts.tag-refresh-deck') }}
Refresh deck
</c-button>
</div>
</c-card>
+2 -3
View File
@@ -1,11 +1,10 @@
import { PlayCard } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';
export const tool = defineTool({
name: translate('tools.card-picker.title'),
name: 'Card Picker',
path: '/card-picker',
description: translate('tools.card-picker.description'),
description: 'Generate a deck of playing cards',
keywords: ['card', 'deck', 'picker'],
component: () => import('./card-picker.vue'),
icon: PlayCard,
+19 -22
View File
@@ -1,5 +1,4 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import {
camelCase,
capitalCase,
@@ -17,14 +16,12 @@ import InputCopyable from '../../components/InputCopyable.vue';
import { useQueryParamOrStorage } from '@/composable/queryParams';
import { useValidation } from '@/composable/validation';
const { t } = useI18n();
const cleaningRegex = useQueryParamOrStorage({ name: 'clean', storageName: 'case-conv:cl', defaultValue: '[^\\w\\d\\s]' });
const cleaningRegexValidation = useValidation({
source: cleaningRegex,
rules: [
{
message: t('tools.case-converter.texts.message-invalid-cleaning-regex-0'),
message: 'Invalid cleaning regex: {0}',
validator: value => new RegExp(value),
getErrorMessage: (value) => {
const _ = new RegExp(value);
@@ -44,59 +41,59 @@ const inputCleaned = computed(() => {
const formats = computed(() => [
{
label: t('tools.case-converter.texts.label-lowercase'),
label: 'Lowercase:',
value: inputCleaned.value.toLocaleLowerCase(),
},
{
label: t('tools.case-converter.texts.label-uppercase'),
label: 'Uppercase:',
value: inputCleaned.value.toLocaleUpperCase(),
},
{
label: t('tools.case-converter.texts.label-camelcase'),
label: 'Camelcase:',
value: camelCase(inputCleaned.value),
},
{
label: t('tools.case-converter.texts.label-capitalcase'),
label: 'Capitalcase:',
value: capitalCase(inputCleaned.value),
},
{
label: t('tools.case-converter.texts.label-constantcase'),
label: 'Constantcase:',
value: constantCase(inputCleaned.value),
},
{
label: t('tools.case-converter.texts.label-dotcase'),
label: 'Dotcase:',
value: dotCase(inputCleaned.value),
},
{
label: t('tools.case-converter.texts.label-kebab-paramcase'),
label: 'Kebab/paramcase:',
value: kebabCase(inputCleaned.value),
},
{
label: t('tools.case-converter.texts.label-nocase'),
label: 'Nocase:',
value: noCase(inputCleaned.value),
},
{
label: t('tools.case-converter.texts.label-train-headercase'),
label: 'Train/headercase:',
value: trainCase(inputCleaned.value),
},
{
label: t('tools.case-converter.texts.label-pascalcase'),
label: 'Pascalcase:',
value: pascalCase(inputCleaned.value),
},
{
label: t('tools.case-converter.texts.label-pathcase'),
label: 'Pathcase:',
value: pathCase(inputCleaned.value),
},
{
label: t('tools.case-converter.texts.label-sentencecase'),
label: 'Sentencecase:',
value: sentenceCase(inputCleaned.value),
},
{
label: t('tools.case-converter.texts.label-snakecase'),
label: 'Snakecase:',
value: snakeCase(inputCleaned.value),
},
{
label: t('tools.case-converter.texts.label-mockingcase'),
label: 'Mockingcase:',
value: inputCleaned.value
.split('')
.map((char, index) => (index % 2 === 0 ? char.toUpperCase() : char.toLowerCase()))
@@ -115,8 +112,8 @@ const inputLabelAlignmentConfig = {
<c-card>
<c-input-text
v-model:value="input"
:label="t('tools.case-converter.texts.label-your-string')"
:placeholder="t('tools.case-converter.texts.placeholder-your-string')"
label="Your string:"
placeholder="Your string..."
raw-text
v-bind="inputLabelAlignmentConfig"
mb-1
@@ -124,8 +121,8 @@ const inputLabelAlignmentConfig = {
<c-input-text
v-model:value="cleaningRegex"
:label="t('tools.case-converter.texts.label-cleaning-regex')"
:placeholder="t('tools.case-converter.texts.placeholder-your-cleaning-regex')"
label="Cleaning regex:"
placeholder="Your cleaning regex..."
raw-text
v-bind="inputLabelAlignmentConfig"
mb-1
@@ -10,8 +10,6 @@ import type * as openpgp from 'openpgp';
import * as forge from 'node-forge';
import oids from './oids.json';
import { translate as t } from '@/plugins/i18n.plugin';
export interface LabelValue {
label: string
value: string
@@ -36,38 +34,38 @@ function buf2Hex(buffer: ArrayBuffer) { // buffer is an ArrayBuffer
export function getPublicKeyLabelValues(publicKey: Key) {
return [
{
label: t('tools.certificate-key-parser.infos.text.type'),
value: t('tools.certificate-key-parser.infos.text.public-key'),
label: 'Type:',
value: 'Public Key',
},
{
label: t('tools.certificate-key-parser.texts.label-key-type'),
label: 'Key Type:',
value: publicKey.type,
},
{
label: t('tools.certificate-key-parser.texts.label-size'),
label: 'Size:',
value: publicKey.size,
},
{
label: t('tools.certificate-key-parser.texts.label-comment'),
label: 'Comment:',
value: publicKey.comment,
multiline: true,
},
{
label: t('tools.certificate-key-parser.texts.label-curve'),
label: 'Curve:',
value: publicKey.curve ?? 'none',
},
{
label: t('tools.certificate-key-parser.texts.label-fingerprint-sha256'),
label: 'Fingerprint (sha256):',
value: onErrorReturnErrorMessage(() => publicKey.fingerprint('sha256')),
multiline: true,
},
{
label: t('tools.certificate-key-parser.texts.label-fingerprint-sha512'),
label: 'Fingerprint (sha512):',
value: onErrorReturnErrorMessage(() => publicKey.fingerprint('sha512')),
multiline: true,
},
{
label: t('tools.certificate-key-parser.texts.label-key-pem'),
label: 'Key (PEM):',
value: onErrorReturnErrorMessage(() => publicKey.toString('pem')),
multiline: true,
},
@@ -77,38 +75,38 @@ export function getPublicKeyLabelValues(publicKey: Key) {
export function getPrivateKeyLabelValues(privateKey: PrivateKey) {
return [
{
label: t('tools.certificate-key-parser.texts.label-type'),
label: 'Type:',
value: 'Private Key',
},
{
label: t('tools.certificate-key-parser.texts.label-key-type'),
label: 'Key Type:',
value: privateKey.type,
},
{
label: t('tools.certificate-key-parser.texts.label-size'),
label: 'Size:',
value: privateKey.size,
},
{
label: t('tools.certificate-key-parser.texts.label-comment'),
label: 'Comment:',
value: privateKey.comment,
multiline: true,
},
{
label: t('tools.certificate-key-parser.texts.label-curve'),
label: 'Curve:',
value: privateKey.curve,
},
{
label: t('tools.certificate-key-parser.texts.label-fingerprint-sha256'),
label: 'Fingerprint (sha256):',
value: onErrorReturnErrorMessage(() => privateKey.fingerprint('sha256')),
multiline: true,
},
{
label: t('tools.certificate-key-parser.texts.label-fingerprint-sha512'),
label: 'Fingerprint (sha512):',
value: onErrorReturnErrorMessage(() => privateKey.fingerprint('sha512')),
multiline: true,
},
{
label: t('tools.certificate-key-parser.texts.label-key-pem'),
label: 'Key (PEM):',
value: onErrorReturnErrorMessage(() => privateKey.toString('pem')),
multiline: true,
},
@@ -118,64 +116,64 @@ export function getPrivateKeyLabelValues(privateKey: PrivateKey) {
export function getCertificateLabelValues(cert: Certificate, forgeCertificate: forge.pki.Certificate | null) {
return [
{
label: t('tools.certificate-key-parser.texts.label-type'),
label: 'Type:',
value: 'Certificate',
},
{
label: t('tools.certificate-key-parser.texts.label-subjects'),
label: 'Subjects:',
value: cert.subjects?.map(s => s.toString()).join('\n'),
multiline: true,
},
{
label: t('tools.certificate-key-parser.texts.label-valid-from'),
label: 'Valid From:',
value: cert.validFrom.toISOString(),
},
{
label: t('tools.certificate-key-parser.texts.label-valid-until'),
label: 'Valid Until:',
value: cert.validUntil.toISOString(),
},
{
label: t('tools.certificate-key-parser.texts.label-issuer'),
label: 'Issuer:',
value: cert.issuer.toString(),
multiline: true,
},
{
label: t('tools.certificate-key-parser.texts.label-subject-key'),
label: 'Subject Key:',
value: onErrorReturnErrorMessage(() => cert.subjectKey?.toString('ssh')),
multiline: true,
},
{
label: t('tools.certificate-key-parser.texts.label-subject-key-type'),
label: 'Subject Key Type:',
value: cert.subjectKey?.type,
},
{
label: t('tools.certificate-key-parser.texts.label-subject-size'),
label: 'Subject Size:',
value: cert.subjectKey?.size,
},
{
label: t('tools.certificate-key-parser.texts.label-subject-comment'),
label: 'Subject Comment:',
value: cert.subjectKey?.comment,
multiline: true,
},
{
label: t('tools.certificate-key-parser.texts.label-subject-curve'),
label: 'Subject Curve:',
value: cert.subjectKey?.curve ?? 'none',
},
{
label: t('tools.certificate-key-parser.texts.label-issuer-key'),
label: 'Issuer Key:',
value: onErrorReturnErrorMessage(() => cert.issuerKey?.toString('ssh')),
multiline: true,
},
{
label: t('tools.certificate-key-parser.texts.label-serial'),
label: 'Serial:',
value: buf2Hex(cert.serial),
},
{
label: t('tools.certificate-key-parser.texts.label-purposes'),
label: 'Purposes:',
value: cert.purposes?.join(', '),
},
{
label: t('tools.certificate-key-parser.texts.label-extensions-parsed'),
label: 'Extensions (parsed):',
value: JSON.stringify(cert.getExtensions().map(ext => ({
oid: (<any>ext).oid,
name: (<any>ext).name || (<any>oids)[(<any>ext).oid],
@@ -185,7 +183,7 @@ export function getCertificateLabelValues(cert: Certificate, forgeCertificate: f
multiline: true,
},
{
label: t('tools.certificate-key-parser.texts.label-extensions-raw'),
label: 'Extensions (raw):',
value: JSON.stringify(forgeCertificate?.extensions.map(ext => ({
id: (<any>ext).id,
name: (<any>ext).id || (<any>oids)[(<any>ext).id],
@@ -209,7 +207,7 @@ export function getCertificateLabelValues(cert: Certificate, forgeCertificate: f
],
),
{
label: t('tools.certificate-key-parser.texts.label-certificate-pem'),
label: 'Certificate (pem):',
value: onErrorReturnErrorMessage(() => cert.toString('pem')),
multiline: true,
},
@@ -219,31 +217,31 @@ export function getCertificateLabelValues(cert: Certificate, forgeCertificate: f
export async function getPGPPublicKeyLabelValuesAsync(pgpPublicKey: openpgp.Key) {
return [
{
label: t('tools.certificate-key-parser.texts.label-type'),
label: 'Type:',
value: 'PGP Public Key',
},
{
label: t('tools.certificate-key-parser.texts.label-creation-time'),
label: 'Creation Time:',
value: pgpPublicKey.getCreationTime().toString(),
},
{
label: t('tools.certificate-key-parser.texts.label-expiration-time'),
label: 'Expiration Time:',
value: (await pgpPublicKey.getExpirationTime())?.toString() || '',
},
{
label: t('tools.certificate-key-parser.texts.label-algorithm-info'),
label: 'Algorithm Info:',
value: JSON.stringify(pgpPublicKey.getAlgorithmInfo()),
},
{
label: t('tools.certificate-key-parser.texts.label-fingerprint'),
label: 'Fingerprint:',
value: pgpPublicKey.getFingerprint(),
},
{
label: t('tools.certificate-key-parser.texts.label-user-id-s'),
label: 'User ID(s):',
value: pgpPublicKey.getUserIDs().join(', '),
},
{
label: t('tools.certificate-key-parser.texts.label-key-id-s'),
label: 'Key ID(s):',
value: pgpPublicKey.getKeyIDs().map(k => k.toHex()).join(' ; '),
},
] as LabelValue[];
@@ -252,31 +250,31 @@ export async function getPGPPublicKeyLabelValuesAsync(pgpPublicKey: openpgp.Key)
export async function getPGPPrivateKeyLabelValuesAsync(pgpPrivateKey: openpgp.Key) {
return [
{
label: t('tools.certificate-key-parser.texts.label-type'),
label: 'Type:',
value: 'PGP Private Key',
},
{
label: t('tools.certificate-key-parser.texts.label-creation-time'),
label: 'Creation Time:',
value: pgpPrivateKey.getCreationTime().toString(),
},
{
label: t('tools.certificate-key-parser.texts.label-expiration-time'),
label: 'Expiration Time:',
value: (await pgpPrivateKey.getExpirationTime())?.toString() || '',
},
{
label: t('tools.certificate-key-parser.texts.label-algorithm-info'),
label: 'Algorithm Info:',
value: JSON.stringify(pgpPrivateKey.getAlgorithmInfo()),
},
{
label: t('tools.certificate-key-parser.texts.label-fingerprint'),
label: 'Fingerprint:',
value: pgpPrivateKey.getFingerprint(),
},
{
label: t('tools.certificate-key-parser.texts.label-user-id-s'),
label: 'User ID(s):',
value: pgpPrivateKey.getUserIDs().join(', '),
},
{
label: t('tools.certificate-key-parser.texts.label-key-id-s'),
label: 'Key ID(s):',
value: pgpPrivateKey.getKeyIDs().map(k => k.toHex()).join(' ; '),
},
] as LabelValue[];
@@ -285,47 +283,47 @@ export async function getPGPPrivateKeyLabelValuesAsync(pgpPrivateKey: openpgp.Ke
export function getCSRLabelValues(csr: forge.pki.CertificateSigningRequest) {
return [
{
label: t('tools.certificate-key-parser.texts.label-type'),
label: 'Type:',
value: 'Certificate Signing Request',
},
{
label: t('tools.certificate-key-parser.texts.label-subject'),
label: 'Subject:',
value: csr.subject?.attributes?.map(a => JSON.stringify(a, null, 2)).join('\n'),
multiline: true,
},
// {
// label: t('tools.certificate-key-parser.texts.label-request-info'),
// label: 'Request Info:',
// value: JSON.stringify(csr.certificationRequestInfo, null, 2),
// multiline: true,
// },
{
label: t('tools.certificate-key-parser.texts.label-signature'),
label: 'Signature:',
value: csr.signature?.toString('hex'),
},
{
label: t('tools.certificate-key-parser.texts.label-signature-oid'),
label: 'Signature Oid:',
value: csr.signatureOid?.toString(),
},
{
label: t('tools.certificate-key-parser.texts.label-signature-parameters'),
label: 'Signature parameters:',
value: JSON.stringify(csr.signatureParameters, null, 2),
},
{
label: t('tools.certificate-key-parser.texts.label-signing-info'),
label: 'Signing info:',
value: JSON.stringify(csr.siginfo, null, 2),
},
{
label: t('tools.certificate-key-parser.texts.label-extensions'),
label: 'Extensions:',
value: JSON.stringify(csr.attributes, null, 2),
multiline: true,
},
{
label: t('tools.certificate-key-parser.texts.label-public-key'),
label: 'Public Key:',
value: onErrorReturnErrorMessage(() => forge.pki.publicKeyToPem(csr.publicKey as never)),
multiline: true,
},
{
label: t('tools.certificate-key-parser.texts.label-public-key-fingerprint'),
label: 'Public Key Fingerprint:',
value: onErrorReturnErrorMessage(() => forge.pki.getPublicKeyFingerprint(csr.publicKey as never)?.toHex()),
multiline: true,
},
@@ -335,15 +333,15 @@ export function getCSRLabelValues(csr: forge.pki.CertificateSigningRequest) {
export function getFingerprintLabelValues(fingerprint: Fingerprint) {
return [
{
label: t('tools.certificate-key-parser.texts.label-type'),
label: 'Type:',
value: 'Fingerprint',
},
{
label: t('tools.certificate-key-parser.texts.label-fingerprint-hex'),
label: 'Fingerprint (hex):',
value: fingerprint.toString('hex'),
},
{
label: t('tools.certificate-key-parser.texts.label-fingerprint-base64'),
label: 'Fingerprint (base64):',
value: fingerprint.toString('base64'),
},
] as LabelValue[];
@@ -352,15 +350,15 @@ export function getFingerprintLabelValues(fingerprint: Fingerprint) {
export function getSignatureLabelValues(signature: Signature) {
return [
{
label: t('tools.certificate-key-parser.texts.label-type'),
label: 'Type:',
value: 'Signature',
},
{
label: t('tools.certificate-key-parser.texts.label-fingerprint-asn1'),
label: 'Fingerprint (asn1):',
value: signature.toString('asn1'),
},
{
label: t('tools.certificate-key-parser.texts.label-fingerprint-ssh'),
label: 'Fingerprint (ssh):',
value: signature.toString('ssh'),
},
] as LabelValue[];
@@ -19,8 +19,6 @@ import * as openpgp from 'openpgp';
import * as forge from 'node-forge';
import { type LabelValue, getCSRLabelValues, getCertificateLabelValues, getFingerprintLabelValues, getPGPPrivateKeyLabelValuesAsync, getPGPPublicKeyLabelValuesAsync, getPrivateKeyLabelValues, getPublicKeyLabelValues, getSignatureLabelValues } from './certificate-key-parser.infos';
import { translate as t } from '@/plugins/i18n.plugin';
export async function getKeysOrCertificatesInfosAsync(keyOrCertificateValue: string | Buffer, passphrase: string) {
const parts = keyOrCertificateValue.toString().trim().split(/(-----BEGIN [^-]+-----\n)/).filter(s => s !== '');
if (!parts.length) {
@@ -142,8 +140,8 @@ export async function getKeyOrCertificateInfosAsync(keyOrCertificateValue: strin
return {
values: [
{
label: t('tools.certificate-key-parser.service.text.type'),
value: t('tools.certificate-key-parser.service.text.unknown-format-or-invalid-passphrase'),
label: 'Type:',
value: 'Unknown format or invalid passphrase',
}],
};
}
@@ -151,7 +149,7 @@ export async function getKeyOrCertificateInfosAsync(keyOrCertificateValue: strin
return {
values: [
{
label: t('tools.certificate-key-parser.service.text.error'),
label: 'Error:',
value: e.toString(),
}] as LabelValue[],
};
@@ -1,13 +1,10 @@
<script setup lang="ts">
import { Buffer } from 'node:buffer';
import { useI18n } from 'vue-i18n';
import { getKeysOrCertificatesInfosAsync } from './certificate-key-parser.service';
import { type LabelValue } from './certificate-key-parser.infos';
import { useDownloadFileFromBase64 } from '@/composable/downloadBase64';
const { t } = useI18n();
const inputKeyOrCertificate = ref('');
const passphrase = ref('');
const fileInput = ref() as Ref<Buffer>;
@@ -63,7 +60,7 @@ const parsedSections = computedAsync<LabelValue[][]>(async () => {
}
catch (e: any) {
return [
[{ label: t('tools.certificate-key-parser.texts.label-parsing-error'), value: e.toString() }],
[{ label: 'Parsing Error', value: e.toString() }],
];
}
});
@@ -76,26 +73,26 @@ const parsedSections = computedAsync<LabelValue[][]>(async () => {
<n-space>
<n-radio
value="file"
:label="t('tools.certificate-key-parser.texts.label-file')"
label="File"
/>
<n-radio
value="content"
:label="t('tools.certificate-key-parser.texts.label-content')"
label="Content"
/>
</n-space>
</n-radio-group>
<c-file-upload
v-if="inputType === 'file'"
:title="t('tools.certificate-key-parser.texts.title-drag-and-drop-a-certificate-file-here-or-click-to-select-a-certificate-file')"
title="Drag and drop a Certificate file here, or click to select a Certificate file"
@file-upload="onUpload"
/>
<c-input-text
v-if="inputType === 'content'"
v-model:value="inputKeyOrCertificate"
:label="t('tools.certificate-key-parser.texts.label-paste-your-public-key-private-key-signature-fingerprint-certificate')"
:placeholder="t('tools.certificate-key-parser.texts.placeholder-your-public-key-private-key-signature-fingerprint-certificate')"
label="Paste your Public Key / Private Key / Signature / Fingerprint / Certificate:"
placeholder="Your Public Key / Private Key / Signature / Fingerprint / Certificate..."
multiline
rows="8"
data-test-id="input"
@@ -104,8 +101,8 @@ const parsedSections = computedAsync<LabelValue[][]>(async () => {
<c-input-text
v-model:value="passphrase"
:label="t('tools.certificate-key-parser.texts.label-passphrase-for-encrypted-keys')"
:placeholder="t('tools.certificate-key-parser.texts.placeholder-passphrase-for-encrypted-keys')"
label="Passphrase (for encrypted keys):"
placeholder="Passphrase (for encrypted keys)..."
type="password"
data-test-id="pass"
/>
@@ -129,13 +126,13 @@ const parsedSections = computedAsync<LabelValue[][]>(async () => {
autosize mb-2
:multiline="multiline"
:value="value"
:placeholder="t('tools.certificate-key-parser.texts.placeholder-not-set')"
placeholder="Not Set"
/>
</c-card>
<div v-if="certificateX509DER !== ''" flex justify-center>
<c-button @click="downloadX509DERFile()">
{{ t('tools.certificate-key-parser.texts.tag-download-x509-der-certificate') }}
Download X509 DER certificate
</c-button>
</div>
</div>
+2 -3
View File
@@ -1,11 +1,10 @@
import { FileCertificate } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';
export const tool = defineTool({
name: translate('tools.certificate-key-parser.title'),
name: 'Certificate/Key parser',
path: '/certificate-key-parser',
description: translate('tools.certificate-key-parser.description'),
description: 'Parse Key and Certificate',
keywords: ['certificate', 'key', 'parser'],
component: () => import('./certificate-key-parser.vue'),
icon: FileCertificate,
@@ -1,8 +1,6 @@
import _ from 'lodash';
import type { GroupPermissions, Permissions, SpecialPermissions } from './chmod-calculator.types';
import { translate as t } from '@/plugins/i18n.plugin';
export { computeUmaskRepresentation, computeChmodOctalRepresentation, computeChmodSymbolicRepresentation, computePermissionsFromChmodOctalRepresentation, computePermissionsFromChmodSymbolicRepresentation };
function computeChmodOctalRepresentation({ permissions }: { permissions: Permissions }): string {
@@ -44,7 +42,7 @@ function computePermissionsFromChmodOctalRepresentation(octalPermissions: string
const specialPermissionValue = { setuid: 4, setgid: 2, stickybit: 1 };
if (!octalPermissions || !octalPermissions.match(/^[0-7]{3,4}$/)) {
throw new Error(t('tools.chmod-calculator.service.text.invalid-octal-permissions-must-be-3-or-4-octal-digits-octalpermissions', [octalPermissions]));
throw new Error(`Invalid octal permissions (must be 3 or 4 octal digits): ${octalPermissions}`);
}
const fullOctalPermissions = octalPermissions.length === 3 ? `0${octalPermissions}` : octalPermissions;
@@ -67,7 +65,7 @@ function computePermissionsFromChmodOctalRepresentation(octalPermissions: string
function computePermissionsFromChmodSymbolicRepresentation(symbolicPermissions: string): Permissions {
const formatRegex = /^[-dlbcsp]?([r-])([w-])([xs-])([r-])([w-])([xs-])([r-])([w-])([xt-])$/;
if (!symbolicPermissions || !symbolicPermissions.match(formatRegex)) {
throw new Error(t('tools.chmod-calculator.service.text.invalid-string-permissions-must-be-in-form-rwxrwxrwx-symbolicpermissions', [symbolicPermissions]));
throw new Error(`Invalid string permissions (must be in form 'rwxrwxrwx'): ${symbolicPermissions}`);
}
const [_, rOwner, wOwner, xOwner, rGroup, wGroup, xGroup, rAll, wAll, xAll] = formatRegex.exec(symbolicPermissions) || [];
+14 -17
View File
@@ -1,5 +1,4 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import { useThemeVars } from 'naive-ui';
import InputCopyable from '../../components/InputCopyable.vue';
@@ -8,8 +7,6 @@ import { computeChmodOctalRepresentation, computeChmodSymbolicRepresentation, co
import type { Group, Scope } from './chmod-calculator.types';
import { useValidation } from '@/composable/validation';
const { t } = useI18n();
const themeVars = useThemeVars();
const scopes: { scope: Scope; title: string }[] = [
@@ -31,7 +28,7 @@ const octalPermissionsInputValidation = useValidation({
source: octalPermissionsInput,
rules: [
{
message: t('tools.chmod-calculator.texts.message-invalid-octal-permission-string'),
message: 'Invalid octal permission string',
validator: (value) => {
try {
computePermissionsFromChmodOctalRepresentation(value.trim());
@@ -59,7 +56,7 @@ const symbolicPermissionsInputValidation = useValidation({
source: symbolicPermissionsInput,
rules: [
{
message: t('tools.chmod-calculator.texts.message-invalid-symbolic-permission-string'),
message: 'Invalid symbolic permission string',
validator: (value) => {
try {
computePermissionsFromChmodSymbolicRepresentation(value.trim());
@@ -92,16 +89,16 @@ const umask = computed(() => computeUmaskRepresentation({ permissions: permissio
<n-space justify="center">
<c-input-text
v-model:value="octalPermissionsInput"
:placeholder="t('tools.chmod-calculator.texts.placeholder-put-your-octal-permissions-here')"
:label="t('tools.chmod-calculator.texts.label-copy-your-octal-permissions')"
placeholder="Put your octal permissions here..."
label="Copy your octal permissions"
:validation="octalPermissionsInputValidation"
mb-2
/>
<c-input-text
v-model:value="symbolicPermissionsInput"
:placeholder="t('tools.chmod-calculator.texts.placeholder-put-your-symbolic-permissions-here')"
:label="t('tools.chmod-calculator.texts.label-copy-your-symbolic-permissions')"
placeholder="Put your symbolic permissions here..."
label="Copy your symbolic permissions"
:validation="symbolicPermissionsInputValidation"
mb-2
/>
@@ -114,13 +111,13 @@ const umask = computed(() => computeUmaskRepresentation({ permissions: permissio
<tr>
<th class="text-center" scope="col" />
<th class="text-center" scope="col">
{{ t('tools.chmod-calculator.texts.tag-owner-u') }}
Owner (u)
</th>
<th class="text-center" scope="col">
{{ t('tools.chmod-calculator.texts.tag-group-g') }}
Group (g)
</th>
<th class="text-center" scope="col">
{{ t('tools.chmod-calculator.texts.tag-public-o') }}
Public (o)
</th>
</tr>
</thead>
@@ -136,7 +133,7 @@ const umask = computed(() => computeUmaskRepresentation({ permissions: permissio
</tr>
<tr>
<td class="line-header">
{{ t('tools.chmod-calculator.texts.tag-flags') }}
Flags
</td>
<td class="text-center">
<n-checkbox v-model:checked="permissions.flags.setuid" size="large" />
@@ -158,13 +155,13 @@ const umask = computed(() => computeUmaskRepresentation({ permissions: permissio
{{ symbolic }}
</div>
<c-card :title="t('tools.chmod-calculator.texts.title-chmod-command')" mb-1>
<c-card title="Chmod command" mb-1>
<InputCopyable label-position="left" :value="`chmod ${octal} path`" readonly />
</c-card>
<c-card :title="t('tools.chmod-calculator.texts.title-umask')">
<InputCopyable :label="t('tools.chmod-calculator.texts.label-octal')" label-position="left" label-width="100px" :value="umask.octal" readonly />
<InputCopyable :label="t('tools.chmod-calculator.texts.label-symbolic')" label-position="left" label-width="100px" :value="umask.symbolic" readonly />
<c-card title="Umask">
<InputCopyable label="Octal:" label-position="left" label-width="100px" :value="umask.octal" readonly />
<InputCopyable label="Symbolic:" label-position="left" label-width="100px" :value="umask.symbolic" readonly />
</c-card>
</div>
</template>
+2 -3
View File
@@ -1,11 +1,10 @@
import { FileInvoice } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';
export const tool = defineTool({
name: translate('tools.chmod-calculator.title'),
name: 'Chmod calculator',
path: '/chmod-calculator',
description: translate('tools.chmod-calculator.description'),
description: 'Compute your chmod permissions and commands with this online chmod calculator.',
keywords: [
'chmod',
'calculator',
+3 -4
View File
@@ -5,7 +5,6 @@ import { formatMs } from './chronometer.service';
const isRunning = ref(false);
const counter = ref(0);
const { t } = useI18n();
let previousRafDate = Date.now();
const { pause: pauseRaf, resume: resumeRaf } = useRafFn(
@@ -38,14 +37,14 @@ function pause() {
</c-card>
<div mt-5 flex justify-center gap-3>
<c-button v-if="!isRunning" type="primary" @click="resume">
{{ t('tools.chronometer.button.start') }}
Start
</c-button>
<c-button v-else type="warning" @click="pause">
{{ t('tools.chronometer.button.stop') }}
Stop
</c-button>
<c-button @click="counter = 0">
{{ t('tools.chronometer.button.reset') }}
Reset
</c-button>
</div>
</div>
+12 -11
View File
@@ -1,5 +1,4 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import { useStorage } from '@vueuse/core';
import { Check as CheckIcon, LetterX as CrossIcon } from '@vicons/tabler';
import { getMatch } from 'ip-matching';
@@ -8,8 +7,6 @@ import { withDefaultOnError } from '@/utils/defaults';
import { isNotThrowing } from '@/utils/boolean';
import SpanCopyable from '@/components/SpanCopyable.vue';
const { t } = useI18n();
const baseRange = useStorage('cidr-in-cidr:range', '192.168.0.1/24'); // NOSONAR
const ipOrRangeToTest = useStorage('cidr-in-cidr:ip', '192.168.0.1'); // NOSONAR
@@ -19,7 +16,7 @@ const matchResult = computed(() => withDefaultOnError(
const rangeValidationRules = [
{
message: t('tools.cidr-in-cidr.texts.message-we-cannot-parse-this-cidr-ip-range-mask-wildcard-check-the-format'),
message: 'We cannot parse this CIDR/IP Range/Mask/Wildcard, check the format',
validator: (value: string) => isNotThrowing(() => getMatch(value)) && getMatch(value),
},
];
@@ -29,16 +26,16 @@ const rangeValidationRules = [
<div>
<c-input-text
v-model:value="baseRange"
:label="t('tools.cidr-in-cidr.texts.label-an-ipv4-6-cidr-range-mask-wildcard-base-network')"
:placeholder="t('tools.cidr-in-cidr.texts.placeholder-the-ipv4-6-cidr')"
label="An IPv4/6 CIDR/Range/Mask/Wildcard (base network)"
placeholder="The ipv4/6 CIDR..."
:validation-rules="rangeValidationRules"
mb-4
/>
<c-input-text
v-model:value="ipOrRangeToTest"
:label="t('tools.cidr-in-cidr.texts.label-an-ipv4-6-cidr-range-mask-wildcard-to-test-for-inclusion')"
:placeholder="t('tools.cidr-in-cidr.texts.placeholder-the-an-ipv4-6-cidr-range-mask-wildcard')"
label="An IPv4/6 CIDR/Range/Mask/Wildcard (to test for inclusion)"
placeholder="The An IPv4/6 CIDR/Range/Mask/Wildcard..."
:validation-rules="rangeValidationRules"
mb-4
/>
@@ -49,16 +46,20 @@ const rangeValidationRules = [
<span v-if="matchResult.isIncluded">
<n-icon color="green">
<CheckIcon />
</n-icon>{{ t('tools.cidr-in-cidr.texts.tag-included') }}</span>
</n-icon>
Included
</span>
<span v-else>
<n-icon color="red">
<CrossIcon />
</n-icon>{{ t('tools.cidr-in-cidr.texts.tag-not-included') }}</span>
</n-icon>
Not included
</span>
</div>
<n-divider />
<c-card :title="t('tools.cidr-in-cidr.texts.title-subnets')">
<c-card title="Subnets">
<n-table>
<tbody>
<tr v-for="{ cidr, start, end } in matchResult.baseSubnets" :key="cidr">
+2 -3
View File
@@ -1,11 +1,10 @@
import { UnfoldMoreOutlined } from '@vicons/material';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';
export const tool = defineTool({
name: translate('tools.cidr-in-cidr.title'),
name: 'IPv4-6/IPRange/CIDR in IPRange/CIDR/IPMask',
path: '/cidr-in-cidr',
description: translate('tools.cidr-in-cidr.description'),
description: 'Given a CIDR/IP Range/Wildcard IP/IP Mask, tell if a given IPv4-6/Range/CIDR/Wildcard IP/IP Mask is in subnet range',
keywords: ['ip', 'cidr', 'range', 'mask', 'wildcard', 'ipv4', 'ipv6', 'subnet', 'include', 'inclusion'],
component: () => import('./cidr-in-cidr.vue'),
redirectFrom: ['/ip-in-range'],
-4
View File
@@ -1,4 +0,0 @@
declare module 'citation-formatter' {
function APA(citationObject: any): string;
function MLA(citationObject: any): string;
}
@@ -1,86 +0,0 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import { ref } from 'vue';
import { APA, MLA } from 'citation-formatter';
const { t } = useI18n();
const citationData = ref({
authors: [''],
title: '',
publisher: '',
year: '',
url: '',
});
const style = ref('apa');
const formattedCitation = computed(() => {
try {
const authors = citationData.value.authors.filter(a => a.trim() !== '').map((a) => {
const [first, last] = a.split(/,\s*/, 2);
return { first, last };
});
if (!citationData.value.title
|| !citationData.value.publisher
|| !citationData.value.year
|| !authors.length
) { return '### Please fill Title, Publisher, Year and authors'; }
return (style.value === 'apa' ? APA : MLA)([
{
authors,
title: citationData.value.title,
publisher: citationData.value.publisher,
year: citationData.value.year,
url: citationData.value.url,
}]);
}
catch (e: any) {
return e.toString();
}
});
</script>
<template>
<n-card :title="t('tools.citation-generator.texts.title-citation-generator')" style="max-width: 600px; margin: auto;">
<n-form label-placement="left" label-width="150px" :model="citationData">
<n-form-item :label="t('tools.citation-generator.texts.label-authors-in-last-name-first-name-format')" label-placement="top">
<n-dynamic-input
v-model:value="citationData.authors"
:placeholder="t('tools.citation-generator.texts.placeholder-enter-author-name')"
/>
</n-form-item>
<n-form-item :label="t('tools.citation-generator.texts.label-title')">
<n-input v-model:value="citationData.title" :placeholder="t('tools.citation-generator.texts.placeholder-e-g-introduction-to-vue-3')" :status="citationData.title ? 'success' : 'error'" />
</n-form-item>
<n-form-item :label="t('tools.citation-generator.texts.label-publisher')">
<n-input v-model:value="citationData.publisher" :placeholder="t('tools.citation-generator.texts.placeholder-e-g-o-reilly-media')" :status="citationData.publisher ? 'success' : 'error'" />
</n-form-item>
<n-form-item :label="t('tools.citation-generator.texts.label-publication-year')">
<n-input-number v-model:value="citationData.year" :min="0" :status="citationData.year ? 'success' : 'error'" />
</n-form-item>
<n-form-item :label="t('tools.citation-generator.texts.label-url-optional')">
<n-input v-model:value="citationData.url" :placeholder="t('tools.citation-generator.texts.placeholder-e-g-https-example-com')" />
</n-form-item>
<n-form-item :label="t('tools.citation-generator.texts.label-citation-style')">
<n-select
v-model:value="style"
:options="[
{ label: t('tools.citation-generator.texts.label-apa'), value: 'apa' },
{ label: t('tools.citation-generator.texts.label-mla'), value: 'mla' },
]"
/>
</n-form-item>
</n-form>
<n-divider />
<c-card :title="t('tools.citation-generator.texts.title-generated-citation')">
<textarea-copyable :value="formattedCitation" />
</c-card>
</n-card>
</template>
-14
View File
@@ -1,14 +0,0 @@
import { Book2 } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';
export const tool = defineTool({
name: translate('tools.citation-generator.title'),
path: '/citation-generator',
description: translate('tools.citation-generator.description'),
keywords: ['citation', 'generator', 'apa', 'mla', 'bibliography'],
component: () => import('./citation-generator.vue'),
icon: Book2,
createdAt: new Date('2025-07-06'),
category: 'Text',
});
@@ -1,11 +0,0 @@
import { expect, test } from '@playwright/test';
test.describe('Tool - Cli command editor', () => {
test.beforeEach(async ({ page }) => {
await page.goto('/cli-command-editor');
});
test('Has correct title', async ({ page }) => {
await expect(page).toHaveTitle('Cli command editor - IT Tools');
});
});
@@ -1,140 +0,0 @@
import { describe, expect, it } from 'vitest';
import { buildEditedCommand, buildOptionsObject, extractOptions, isOption, sanitizeOption } from './cli-command-editor.service';
describe('cli-command-editor', () => {
describe('extractOptions', () => {
it ('extracts all the options from a command', () => {
expect(
extractOptions('aws elb describe-load-balancers --load-balancer-name my-load-balancer')[0],
).toContain('--load-balancer-name');
expect(
extractOptions('aws elb describe-load-balancers --load-balancer-name my-load-balancer --debug --query my-queryyy')[0],
).toContain('--load-balancer-name');
expect(
extractOptions('aws elb describe-load-balancers --load-balancer-name my-load-balancer --debug --query my-queryyy')[1],
).toContain('--debug');
expect(
extractOptions('aws elb describe-load-balancers --load-balancer-name my-load-balancer --debug --query my-queryyy')[2],
).toContain('--query');
});
it('extracts all the option from a command with a mix of hyphen and double hyphens', () => {
expect(
extractOptions('npm i lodash -g --legacy-peer-deps')[0],
).toContain('-g');
expect(
extractOptions('npm i lodash -g --legacy-peer-deps')[1],
).toContain('--legacy-peer-deps');
});
it('shouldn\'t extract any options from a command without options', () => {
expect(
extractOptions('npm i lodash'),
).toEqual([]);
});
it('shouldn\'t return any options if command is not passed', () => {
expect(extractOptions()).toEqual([]);
});
});
describe('buildOptionsObject', () => {
it('returns a valid options object with the given options', () => {
expect(
buildOptionsObject(['--debug', '--load-balancer-names']),
).toEqual({
'--debug': '',
'--load-balancer-names': '',
});
});
it('returns an empty obnject with blank options array', () => {
expect(
buildOptionsObject([]),
).toEqual({});
});
});
describe('sanitizeOption', () => {
it('returns the sanitized option without `id` suffix', () => {
expect(sanitizeOption('--debug-id-1dfsj'))
.toEqual('--debug');
});
it('returns the blank string', () => {
expect(sanitizeOption('')).toEqual('');
});
});
describe('isOption', () => {
it('returns true for a valid double hyphen option token', () => {
expect(isOption('--debug')).toBe(true);
});
it('returns true for a valid single hyphen option token', () => {
expect(isOption('-i')).toBe(true);
});
it('returns false for an non-option token', () => {
expect(isOption('hello-world')).toBe(false);
});
});
describe('buildEditedCommand', () => {
it('returns the edited command', () => {
expect(
buildEditedCommand({
'--debug-id-1dfsj': 'stdin',
'-p': '',
'-m': 'nahhhh',
}, {
'--debug-id-1dfsj': 'stdin',
'-p': '',
'-m': 'nahhhh',
}, 'aws node --debug stdio -p -m okayyy'),
).toEqual('aws node --debug stdin -p -m nahhhh');
expect(
buildEditedCommand({
'-d-id-1dfsj': '',
'-p-id-fdsd': '4444:3333',
'-p-id-fddd': '3333:4444',
'--name-id-nnnn': 'clickhouse-server',
'--ulimit-id-uuuu': 'nofile=3333:4444',
}, {
'-d-id-1dfsj': '',
'-p-id-fdsd': '4444:3333',
'-p-id-fddd': '3333:4444',
'--name-id-nnnn': 'clickhouse-server',
'--ulimit-id-uuuu': 'nofile=3333:4444',
}, 'docker run -d -p 18123:8123 -p 19000:9000 --name some-clickhouse-server --ulimit nofile=262144:262144 clickhouse/clickhouse-server'),
).toEqual('docker run -d -p 4444:3333 -p 3333:4444 --name clickhouse-server --ulimit nofile=3333:4444 clickhouse/clickhouse-server');
});
it('returns the edited command when options object and CLI options order doesn\'t match', () => {
expect(
buildEditedCommand({
'-d-id-t1dd3': 'true',
'--install-id-only123': 'nodemon',
}, {
'--install-id-only123': 'nodem',
'-d-id-t1dd3': 'false',
}, 'npm --install nodem -d false'),
).toBe('npm --install nodemon -d true');
});
it('returns the original command', () => {
expect(
buildEditedCommand({}, {}, 'npm install nodemon'),
).toBe('npm install nodemon');
expect(
buildEditedCommand({}, {}, 'aws load-balancer describe-load-balancers all'),
).toBe('aws load-balancer describe-load-balancers all');
});
});
});
@@ -1,104 +0,0 @@
import { generateRandomId } from '@/utils/random';
export function isOption(token: string): boolean {
return token?.startsWith('--') || token?.startsWith('-');
}
export function extractOptions(command: string = ''): string[] {
/*
in a CLI, the options are either written with a hyphen or double hyphens, however,
script names or package/library sometimes include a hyphen, too, for example 'describe-load-balancers'
*/
// split into tokens first
const tokens = command.split(' ');
// map each token of the command to an option
const options = tokens.map((token: string) => {
// every option in a starts with either a hyphen or double hyphens
if (isOption(token)) {
const randomId = generateRandomId();
return `${token}-${randomId}`;
}
return '';
}).filter((option: string): boolean => !!option);
return options;
}
export function buildOptionsObject(options: string[]): Record<string, string> {
const optionsObject: Record<string, string> = {};
for (const option of options) {
optionsObject[option] = '';
}
return optionsObject;
}
export function sanitizeOption(option: string): string {
return option.split('-id')?.[0];
}
export function buildEditedCommand(options: Record<string, string>, originalOptions: Record<string, string>, command: string): string {
if (!Object.keys(options).length) {
return command;
}
const tokens = command.split(' ');
const editedTokens = [];
// user may input the option value in any order, from the form
// preserve the original object with options in the correct
// order as they appear in the original command, this is done
// to handle the interpolation of edited option values into the
// command
originalOptions = Object.entries(options)
.reduce((previousValue: Record<string, string>, currentValue: string[]) => {
previousValue[currentValue[0]] = currentValue[1];
return previousValue;
}, originalOptions);
const defaultValues: Record<string, string> = {};
// replacing the options and their values (if any) with formatter ($i) to
// help in interpolation of the command
for (let i = 0, j = 0, n = tokens.length; i < n; ++i) {
const token = tokens[i];
const nextToken = tokens[i + 1];
if (isOption(token)) {
editedTokens.push(`$${j}`);
if (!isOption(nextToken)) {
++i;
defaultValues[`$${j}`] = nextToken;
}
++j;
continue;
}
editedTokens.push(token);
}
let editedCommand = editedTokens.join(' ');
const originalOptionKeys = Object.keys(originalOptions);
for (let i = 0, n = originalOptionKeys.length; i < n; ++i) {
const key = originalOptionKeys[i];
const keyWithoutIdSuffix = key.split('-id-')[0] || key;
if (originalOptions[key]) {
editedCommand = editedCommand.replace(`$${i}`, `${keyWithoutIdSuffix} ${originalOptions[key]}`);
}
else {
const value = defaultValues[`$${i}`];
const replaceValue = value ? `${keyWithoutIdSuffix} ${value}` : keyWithoutIdSuffix;
editedCommand = editedCommand.replace(`$${i}`, replaceValue);
}
}
return editedCommand;
}
@@ -1,54 +0,0 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import * as service from './cli-command-editor.service';
const { t } = useI18n();
const inputCommand = ref('');
const options = computed(() => service.extractOptions(inputCommand.value));
const optionsObject = computed(() => service.buildOptionsObject(options.value));
const optionsInput = ref<{ [k: string]: string }>(optionsObject.value);
const command = ref('');
</script>
<template>
<c-card>
<n-grid x-gap="12" y-gap="12" cols="1 600:3">
<n-gi span="2">
<c-input-text
v-model:value="inputCommand"
label-position="left"
label-width="130px"
:label="$t('tools.cli-command-editor.command')"
:aria-:label="t('tools.cli-command-editor.texts.label-t-tools-cli-command-editor-command')"
:placeholder="$t('tools.cli-command-editor.placeholder')"
:aria-:placeholder="t('tools.cli-command-editor.texts.placeholder-t-tools-cli-command-editor-placeholder')"
raw-text
@update:value="() => { command = inputCommand }"
/>
<div v-for="option in options" :key="option" flex justify-center>
<c-input-text
v-model:value="optionsInput[option]"
label-position="left"
label-width="130px"
label-align="left"
:label="service.sanitizeOption(option)"
:aria-:label="t('tools.cli-command-editor.texts.label-service-sanitizeoption-option')"
:placeholder="service.sanitizeOption(option)"
:aria-:placeholder="t('tools.cli-command-editor.texts.placeholder-service-sanitizeoption-option')"
mt-6
@update:value="() => { command = service.buildEditedCommand(optionsInput, optionsObject, inputCommand) }"
/>
</div>
<c-text-copyable
v-if="command"
:value="command"
:show-icon="false"
mt-6 font-mono
/>
</n-gi>
</n-grid>
</c-card>
</template>
-14
View File
@@ -1,14 +0,0 @@
import { Terminal2 } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';
export const tool = defineTool({
name: translate('tools.cli-command-editor.title'),
path: '/cli-command-editor',
description: '',
keywords: ['cli', 'command', 'editor'],
component: () => import('./cli-command-editor.vue'),
icon: Terminal2,
createdAt: new Date('2025-07-05'),
category: 'Development',
});
@@ -1,13 +1,10 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import { computed, ref } from 'vue';
import { bundledLanguagesInfo, createHighlighter } from 'shiki/bundle/full';
import { bundledThemesInfo } from 'shiki/themes';
import { useQueryParamOrStorage } from '@/composable/queryParams';
import { useCopy, useCopyClipboardItems } from '@/composable/copy';
const { t } = useI18n();
const code = ref(`// Using 'typeof' to infer types
const person = { name: "Alice", age: 30 };
type PersonType = typeof person; // { name: string; age: number }
@@ -88,7 +85,7 @@ const { copy: copyText } = useCopy({ source: code });
<div mb-3 flex items-baseline gap-1>
<c-select
v-model:value="currentLang"
:label="t('tools.code-highlighter.texts.label-language')"
label="Language"
label-position="left"
searchable
:options="langs"
@@ -96,7 +93,7 @@ const { copy: copyText } = useCopy({ source: code });
/>
<c-select
v-model:value="currentTheme"
:label="t('tools.code-highlighter.texts.label-theme')"
label="Theme"
label-position="left"
searchable
:options="themes"
@@ -106,22 +103,22 @@ const { copy: copyText } = useCopy({ source: code });
<c-input-text
v-model:value="code"
:label="t('tools.code-highlighter.texts.label-code-snippet-to-format')"
label="Code snippet to format:"
multiline
:placeholder="t('tools.code-highlighter.texts.placeholder-put-your-code-snippet-here')"
placeholder="Put your code snippet here"
rows="5"
mb-3
/>
<div flex justify-center gap-2>
<n-form-item :label="t('tools.code-highlighter.texts.label-show-line-numbers')" label-placement="left">
<n-form-item label="Show line numbers" label-placement="left">
<n-switch v-model:value="showLineNumbers" />
</n-form-item>
<c-button @click="copyHtml()">
{{ t('tools.code-highlighter.texts.tag-copy-html-formatted') }}
Copy HTML Formatted
</c-button>
<c-button @click="copyText()">
{{ t('tools.code-highlighter.texts.tag-copy-code-text') }}
Copy Code Text
</c-button>
</div>
+2 -3
View File
@@ -1,11 +1,10 @@
import { Code } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';
export const tool = defineTool({
name: translate('tools.code-highlighter.title'),
name: 'Code/Scripts Highlighter',
path: '/code-highlighter',
description: translate('tools.code-highlighter.description'),
description: 'Highlight programming code fragments',
keywords: ['code', 'highlighter'],
component: () => import('./code-highlighter.vue'),
icon: Code,
+1 -4
View File
@@ -1,10 +1,7 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import { computedRefreshable } from '@/composable/computedRefreshable';
import { randIntFromInterval } from '@/utils/random';
const { t } = useI18n();
const [coinFlip, refreshCoinFlip] = computedRefreshable(() => ({
coin: randIntFromInterval(0, 10) % 2 === 0 ? 'Heads' : 'Tails',
dt: Date.now(),
@@ -22,7 +19,7 @@ const [coinFlip, refreshCoinFlip] = computedRefreshable(() => ({
</Transition>
<div mt-4 flex justify-center>
<c-button @click="refreshCoinFlip">
{{ t('tools.coin-flipper.texts.tag-re-flip') }}
Re flip
</c-button>
</div>
</div>
+2 -3
View File
@@ -1,11 +1,10 @@
import { Coin } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';
export const tool = defineTool({
name: translate('tools.coin-flipper.title'),
name: 'Coin Flipper',
path: '/coin-flipper',
description: translate('tools.coin-flipper.description'),
description: 'Flip a coin',
keywords: ['coin', 'flipper'],
component: () => import('./coin-flipper.vue'),
icon: Coin,
Loaded 100 of 625 files, more files were not shown because too many files have changed in this diff. Show more