Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66cd2fe815 | ||
|
|
d9ad48daa5 | ||
|
|
6a95f93df2 | ||
|
|
7e152bc831 | ||
|
|
b688eb27d0 | ||
|
|
a455ee0a8f | ||
|
|
102bb9926e | ||
|
|
dfb92f2441 | ||
|
|
fb8a1eb5b1 | ||
|
|
c5a93af9cc | ||
|
|
3b7ddb4b8f | ||
|
|
d5f4dcb91c | ||
|
|
1a664fe096 | ||
|
|
5fd2bb66f3 | ||
|
|
4100059b3a | ||
|
|
d8787317a4 | ||
|
|
23ede48549 | ||
|
|
6cc1ad7e98 | ||
|
|
7e9cf35c28 | ||
|
|
89975dc505 | ||
|
|
f0e35b09ee | ||
|
|
905de13a84 | ||
|
|
efd0b2513a | ||
|
|
4103bd7e6e | ||
|
|
92bf2b5bd7 | ||
|
|
04c2575ab6 | ||
|
|
b05e70d6d8 | ||
|
|
f7f82a57d6 | ||
|
|
6dbbe5dc6d | ||
|
|
8a11a8d14c | ||
|
|
24e1955847 | ||
|
|
6e60520cba | ||
|
|
d7bfb9c2b0 | ||
|
|
8e169e32e7 | ||
|
|
25dc146ece | ||
|
|
832ff9043b | ||
|
|
2c9db240e4 | ||
|
|
3eec331cfa | ||
|
|
806b058cdf | ||
|
|
2a6e583d38 | ||
|
|
4178707ee5 | ||
|
|
ee94dc9d07 | ||
|
|
72e65d181d | ||
|
|
468f963ddd | ||
|
|
c4e2fcc56d | ||
|
|
fe5a33f484 | ||
|
|
93bed09c78 | ||
|
|
646f37d9be | ||
|
|
2758caad13 | ||
|
|
0201a9b5c0 | ||
|
|
c6d68d2d3f | ||
|
|
cc67bf0dcd | ||
|
|
dd6b701a29 | ||
|
|
ec434cf673 | ||
|
|
8af95df0aa | ||
|
|
0d1dc3b621 | ||
|
|
610c639739 | ||
|
|
8b3047ae77 | ||
|
|
e50899fa9f | ||
|
|
4ade15b099 | ||
|
|
3c58f7c2c0 | ||
|
|
ecdf2c1803 | ||
|
|
b776a40806 | ||
|
|
c2408f42a3 | ||
|
|
d44ab4f6d0 | ||
|
|
6bd8078d75 | ||
|
|
a1e2f4cea2 | ||
|
|
4816cbc58e | ||
|
|
8330f99260 | ||
|
|
87f7604d80 | ||
|
|
e478da7d31 | ||
|
|
03bb1e5711 | ||
|
|
ba1bea3944 | ||
|
|
a6c29ebb3d | ||
|
|
a6344b8062 | ||
|
|
aa545e7f75 | ||
|
|
90e1813003 | ||
|
|
98b98a7d68 | ||
|
|
f69a4e76fa | ||
|
|
40fb4b7c8f | ||
|
|
4a2e83ee31 | ||
|
|
81fa4c598b | ||
|
|
4b926fe426 | ||
|
|
c2f9e6249c | ||
|
|
4956df7650 | ||
|
|
65f0d12ade | ||
|
|
40f1833aae | ||
|
|
64d06e5a1f | ||
|
|
1c9705764b | ||
|
|
2944daa552 | ||
|
|
19a61f16c8 | ||
|
|
01e006f99d | ||
|
|
e10a83edc6 | ||
|
|
b59be3fe52 | ||
|
|
c56cc39f9b | ||
|
|
91a93488c3 | ||
|
|
1c51c389b9 | ||
|
|
fe44bf9e52 | ||
|
|
03e3ae725a | ||
|
|
a84e8af4b0 | ||
|
|
253231f40d | ||
|
|
aa20dc19f7 | ||
|
|
59edad80de | ||
|
|
e737029e69 | ||
|
|
443369c585 | ||
|
|
2f3fe4f280 | ||
|
|
c209954ffd | ||
|
|
6438a366b2 | ||
|
|
9b0b1ee261 | ||
|
|
77e013526e | ||
|
|
22e15c86db | ||
|
|
093c424b5c | ||
|
|
96633733ac | ||
|
|
a9b7d06d2a | ||
|
|
ef91a8603b | ||
|
|
9724e0f33a | ||
|
|
74edd94226 | ||
|
|
b30a06428c | ||
|
|
709ab479a3 | ||
|
|
ed3db5d4a7 | ||
|
|
d7b7b204ac | ||
|
|
89d1615eda | ||
|
|
bafddb3319 | ||
|
|
da94c09688 | ||
|
|
88e0e8bdf9 | ||
|
|
6f6eccd82a | ||
|
|
35110fcd6c | ||
|
|
84d7da9705 | ||
|
|
52e0429678 | ||
|
|
b37ae30d94 | ||
|
|
6485e8afb2 | ||
|
|
f6ee1e2c0f | ||
|
|
9a1c825055 | ||
|
|
f2e13aa9bf | ||
|
|
b8deacf682 | ||
|
|
c4c6d3883f | ||
|
|
95590f1d7b | ||
|
|
ea37ca60cf | ||
|
|
3c7e690fbd | ||
|
|
12c821fafa | ||
|
|
6c862d6a33 | ||
|
|
252b5e7696 | ||
|
|
7ba56bf81b | ||
|
|
ebad961241 | ||
|
|
d6d51799b7 | ||
|
|
5ee3c18db3 | ||
|
|
bfbfee874f | ||
|
|
529c7da1e2 | ||
|
|
08ac203def | ||
|
|
53c447ad6b | ||
|
|
8e379e4611 | ||
|
|
be14d3a62b | ||
|
|
aebb3f2052 | ||
|
|
ed2519e937 | ||
|
|
1cafdfa9ad | ||
|
|
4351e57075 | ||
|
|
2cf9c75d96 | ||
|
|
0715b2862a | ||
|
|
4fd5d89c3a | ||
|
|
19da4e31c8 | ||
|
|
0c334e9560 | ||
|
|
93b688a1b9 | ||
|
|
1eb6ec6e8a | ||
|
|
be41dd6175 | ||
|
|
28eedcf114 | ||
|
|
c24f94ce4c | ||
|
|
32a680faf1 | ||
|
|
f36451f47a | ||
|
|
15ca81d8f0 | ||
|
|
abd685b4c1 | ||
|
|
bf5833524c | ||
|
|
23fbd21432 | ||
|
|
acb95afe1b | ||
|
|
19d494fbb3 | ||
|
|
bae6175c4b | ||
|
|
b700c2cfdd | ||
|
|
fbe9c58cc4 | ||
|
|
20c0791fc6 | ||
|
|
209988a3f2 |
No files matched your search
@@ -4,7 +4,7 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
extends: ['@antfu', './.eslintrc-auto-import.json', '@unocss'],
|
||||
|
||||
|
||||
ignorePatterns: ['src/libs/*'],
|
||||
|
||||
rules: {
|
||||
@@ -12,6 +12,7 @@ module.exports = {
|
||||
'@typescript-eslint/semi': ['error', 'always'],
|
||||
'@typescript-eslint/no-use-before-define': ['error', { allowNamedExports: true, functions: false }],
|
||||
'vue/no-empty-component-block': ['error'],
|
||||
'import/order': 'off',
|
||||
'no-restricted-imports': ['error', {
|
||||
paths: [{
|
||||
name: '@vueuse/core',
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
github:
|
||||
- CorentinTh
|
||||
- sharevb
|
||||
@@ -2,7 +2,7 @@ name: 🐞 Bug Report
|
||||
description: File a bug report.
|
||||
labels: ['bug', 'triage']
|
||||
assignees:
|
||||
- CorentinTh
|
||||
- sharevb
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
@@ -13,7 +13,7 @@ body:
|
||||
id: bug-description
|
||||
attributes:
|
||||
label: Describe the bug
|
||||
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
|
||||
description: A clear and concise description, in PLAIN ENGLISH ONLY, of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
|
||||
placeholder: Bug description
|
||||
validations:
|
||||
required: true
|
||||
|
||||
@@ -25,7 +25,7 @@ body:
|
||||
id: feature-description
|
||||
attributes:
|
||||
label: Clear and concise description of the feature you are proposing
|
||||
description: A clear and concise description of what the feature is.
|
||||
description: A clear and concise description of what the feature is, in PLAIN ENGLISH ONLY.
|
||||
placeholder: 'Example: a token generator tool'
|
||||
validations:
|
||||
required: true
|
||||
@@ -54,3 +54,5 @@ body:
|
||||
required: true
|
||||
- label: Check that the feature can be implemented in a client side only app (IT-Tools is client side only, no server).
|
||||
required: true
|
||||
- label: Everything is written in PLAIN ENGLISH
|
||||
required: true
|
||||
@@ -19,7 +19,8 @@
|
||||
|
||||
### Before submitting the PR, please make sure you do the following
|
||||
|
||||
- [ ] Submit the PR against the `dev` branch.
|
||||
- [ ] Submit the PR against the `chore/all-my-stuffs` branch.
|
||||
- [ ] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
|
||||
- [ ] Provide a description in this PR that addresses **what** the PR is solving, or reference the issue that it solves (e.g. `fixes #123`).
|
||||
- [ ] Provide a description, in PLAIN ENGLISH ONLY, in this PR that addresses **what** the PR is solving, or reference the issue that it solves (e.g. `fixes #123`).
|
||||
- [ ] Run `pnpm install --ignore-scripts && pnpm lint --fix && pnpm typecheck` to ensure pnpm lock, eslint and typecheck are ok
|
||||
- [ ] Ideally, include relevant tests that fail without this PR but pass with it.
|
||||
@@ -11,14 +11,14 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
- uses: actions/checkout@v6
|
||||
- run: |
|
||||
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
|
||||
npm install -g corepack@latest
|
||||
echo "After : corepack version => $(corepack --version)"
|
||||
corepack enable
|
||||
pnpm --version
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 22
|
||||
cache: 'pnpm'
|
||||
|
||||
@@ -37,11 +37,11 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v3
|
||||
uses: github/codeql-action/init@v4
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
@@ -55,7 +55,7 @@ jobs:
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v3
|
||||
uses: github/codeql-action/autobuild@v4
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
@@ -69,4 +69,4 @@ jobs:
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v3
|
||||
uses: github/codeql-action/analyze@v4
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
outputs:
|
||||
should_run: ${{ steps.should_run.outputs.should_run }}
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
- uses: actions/checkout@v6
|
||||
- name: print latest_commit
|
||||
run: echo ${{ github.sha }}
|
||||
|
||||
@@ -31,14 +31,14 @@ jobs:
|
||||
if: ${{ needs.check_date.outputs.should_run != 'false' }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
- uses: actions/checkout@v6
|
||||
- run: |
|
||||
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
|
||||
npm install -g corepack@latest
|
||||
echo "After : corepack version => $(corepack --version)"
|
||||
corepack enable
|
||||
pnpm --version
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 22
|
||||
cache: 'pnpm'
|
||||
@@ -61,40 +61,109 @@ jobs:
|
||||
- ci
|
||||
|
||||
steps:
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v6
|
||||
with:
|
||||
images: sharevb/it-tools
|
||||
labels: |
|
||||
org.opencontainers.image.version=nightly
|
||||
|
||||
# Checkout the repository
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
uses: docker/setup-qemu-action@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
uses: docker/setup-buildx-action@v4
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
tags: |
|
||||
sharevb/it-tools:nightly
|
||||
ghcr.io/${{ github.repository_owner }}/it-tools:nightly
|
||||
|
||||
# Optionally log out
|
||||
- name: Log out from GitHub Container Registry
|
||||
run: docker logout ghcr.io
|
||||
run: docker logout ghcr.io
|
||||
|
||||
github-release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: ci
|
||||
steps:
|
||||
- name: Set release version to nightly
|
||||
run: echo "RELEASE_VERSION=nightly" >> $GITHUB_ENV
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- run: |
|
||||
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
|
||||
npm install -g corepack@latest
|
||||
echo "After : corepack version => $(corepack --version)"
|
||||
corepack enable
|
||||
pnpm --version
|
||||
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 22
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm i --ignore-scripts
|
||||
|
||||
- name: Build the app
|
||||
run: pnpm build
|
||||
|
||||
- name: Zip the app
|
||||
run: zip -r it-tools-${{ env.RELEASE_VERSION }}.zip dist/*
|
||||
|
||||
- name: Get changelog
|
||||
id: changelog
|
||||
run: |
|
||||
EOF=$(openssl rand -hex 8)
|
||||
echo "changelog<<$EOF" >> $GITHUB_OUTPUT
|
||||
node ./scripts/getLatestChangelog.mjs >> $GITHUB_OUTPUT
|
||||
echo "$EOF" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v3
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
files: it-tools-${{ env.RELEASE_VERSION }}.zip
|
||||
tag_name: ${{ env.RELEASE_VERSION }}
|
||||
draft: false
|
||||
prerelease: true
|
||||
body: |
|
||||
## Docker images
|
||||
|
||||
- Docker Hub Registry
|
||||
- `sharevb/it-tools:${{ env.RELEASE_VERSION}}`
|
||||
|
||||
- GitHub Container Registry
|
||||
- `ghcr.io/sharevb/it-tools:${{ env.RELEASE_VERSION}}`
|
||||
|
||||
## Changelog
|
||||
|
||||
${{ steps.changelog.outputs.changelog }}
|
||||
@@ -13,14 +13,14 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
- run: |
|
||||
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
|
||||
npm install -g corepack@latest
|
||||
echo "After : corepack version => $(corepack --version)"
|
||||
corepack enable
|
||||
pnpm --version
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 22
|
||||
cache: 'pnpm'
|
||||
@@ -42,31 +42,39 @@ jobs:
|
||||
needs:
|
||||
- ci
|
||||
steps:
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v6
|
||||
with:
|
||||
images: sharevb/it-tools
|
||||
labels: |
|
||||
org.opencontainers.image.version=baseurl-it-tools
|
||||
|
||||
# Checkout the repository
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
uses: docker/setup-qemu-action@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
uses: docker/setup-buildx-action@v4
|
||||
|
||||
- name: Build and push (BASE_URL)
|
||||
uses: docker/build-push-action@v5
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
@@ -74,6 +82,7 @@ jobs:
|
||||
"BASE_URL=/it-tools/"
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
tags: |
|
||||
sharevb/it-tools:baseurl-it-tools
|
||||
ghcr.io/sharevb/it-tools:baseurl-it-tools
|
||||
|
||||
@@ -13,14 +13,14 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
- run: |
|
||||
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
|
||||
npm install -g corepack@latest
|
||||
echo "After : corepack version => $(corepack --version)"
|
||||
corepack enable
|
||||
pnpm --version
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 22
|
||||
cache: 'pnpm'
|
||||
@@ -41,42 +41,56 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- ci
|
||||
strategy:
|
||||
matrix:
|
||||
language: ['', 'en']
|
||||
steps:
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v6
|
||||
with:
|
||||
images: sharevb/it-tools
|
||||
labels: |
|
||||
org.opencontainers.image.version=${{ case(matrix.language != '', format('latest-{0}', matrix.language), 'latest') }}
|
||||
|
||||
# Checkout the repository
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
uses: docker/setup-qemu-action@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
uses: docker/setup-buildx-action@v4
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
build-args: |
|
||||
"BASE_URL=/"
|
||||
"VITE_AVAILABLE_LOCALES=${{ matrix.language }}"
|
||||
"VITE_LANGUAGE=${{ matrix.language }}"
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
tags: |
|
||||
sharevb/it-tools:latest
|
||||
ghcr.io/${{ github.repository_owner }}/it-tools:latest
|
||||
sharevb/it-tools:${{ case(matrix.language != '', format('latest-{0}', matrix.language), 'latest') }}
|
||||
ghcr.io/sharevb/it-tools:${{ case(matrix.language != '', format('latest-{0}', matrix.language), 'latest') }}
|
||||
|
||||
# Optionally log out
|
||||
- name: Log out from GitHub Container Registry
|
||||
|
||||
@@ -6,13 +6,13 @@ on:
|
||||
- chore/all-my-stuffs
|
||||
jobs:
|
||||
test:
|
||||
timeout-minutes: 30
|
||||
timeout-minutes: 120
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
shard: [1/3, 2/3, 3/3]
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- run: |
|
||||
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
|
||||
@@ -21,7 +21,7 @@ jobs:
|
||||
corepack enable
|
||||
pnpm --version
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 22
|
||||
cache: 'pnpm'
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
run: pnpm build
|
||||
|
||||
- name: Restore Playwright browsers from cache
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: ~/.cache/ms-playwright
|
||||
key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }}-${{ hashFiles('**/playwright.config.ts') }}
|
||||
|
||||
@@ -32,10 +32,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
@@ -51,13 +51,13 @@ jobs:
|
||||
BASE_URL="/it-tools/" pnpm build
|
||||
cp dist/index.html dist/404.html
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v5
|
||||
uses: actions/configure-pages@v6
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
uses: actions/upload-pages-artifact@v5
|
||||
with:
|
||||
path: './dist'
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
uses: actions/deploy-pages@v5
|
||||
@@ -12,33 +12,39 @@ jobs:
|
||||
docker-release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v6
|
||||
with:
|
||||
images: sharevb/it-tools
|
||||
|
||||
- name: Get release version
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
uses: docker/setup-qemu-action@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
uses: docker/setup-buildx-action@v4
|
||||
|
||||
- name: Build and push (BASE_URL)
|
||||
uses: docker/build-push-action@v5
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
@@ -46,6 +52,7 @@ jobs:
|
||||
"BASE_URL=/it-tools/"
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
tags: |
|
||||
sharevb/it-tools:baseurl-it-tools
|
||||
sharevb/it-tools:stable-baseurl-it-tools
|
||||
@@ -55,12 +62,13 @@ jobs:
|
||||
ghcr.io/sharevb/it-tools:${{ env.RELEASE_VERSION}}-baseurl-it-tools
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
tags: |
|
||||
sharevb/it-tools:latest
|
||||
sharevb/it-tools:stable
|
||||
@@ -77,7 +85,7 @@ jobs:
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- run: |
|
||||
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
|
||||
@@ -86,7 +94,7 @@ jobs:
|
||||
corepack enable
|
||||
pnpm --version
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 22
|
||||
cache: 'pnpm'
|
||||
@@ -109,13 +117,14 @@ jobs:
|
||||
echo "$EOF" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
uses: softprops/action-gh-release@v3
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
files: it-tools-${{ env.RELEASE_VERSION }}.zip
|
||||
tag_name: v${{ env.RELEASE_VERSION }}
|
||||
draft: true
|
||||
draft: false
|
||||
prerelease: false
|
||||
make_latest: "true"
|
||||
body: |
|
||||
## Docker images
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ jobs:
|
||||
Deploy-Preview:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v6
|
||||
- name: Install Vercel CLI
|
||||
run: npm install --global vercel@latest
|
||||
- name: Pull Vercel Environment Information
|
||||
|
||||
@@ -12,7 +12,7 @@ jobs:
|
||||
Deploy-Production:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v6
|
||||
- name: Install Vercel CLI
|
||||
run: npm install --global vercel@latest
|
||||
- name: Pull Vercel Environment Information
|
||||
|
||||
@@ -18,8 +18,6 @@ coverage
|
||||
/cypress/screenshots/
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
*.suo
|
||||
*.ntvs*
|
||||
@@ -36,3 +34,17 @@ salt
|
||||
# WSL can create Zone.Identifier
|
||||
*:Zone.Identifier
|
||||
.vercel
|
||||
|
||||
components.d.ts
|
||||
|
||||
# .vscode specific files: Include known configuration files, but ignore everything else inside the folder
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
!.vscode/*.code-snippets
|
||||
!*.code-workspace
|
||||
|
||||
# Ignore build or packaged VS Code extensions
|
||||
*.vsix
|
||||
@@ -1,3 +1,8 @@
|
||||
{
|
||||
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin", "dbaeumer.vscode-eslint", "lokalise.i18n-ally"]
|
||||
"recommendations": [
|
||||
"Vue.volar",
|
||||
"dbaeumer.vscode-eslint",
|
||||
"lokalise.i18n-ally",
|
||||
"ms-vscode-remote.remote-wsl"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"editor.formatOnSave": false,
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": "always",
|
||||
"source.formatDocument": "always"
|
||||
},
|
||||
"i18n-ally.localesPaths": [
|
||||
"locales",
|
||||
"src/modules/i18n"
|
||||
],
|
||||
"i18n-ally.keystyle": "nested"
|
||||
}
|
||||
@@ -2,6 +2,74 @@
|
||||
|
||||
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 2026.01.04
|
||||
|
||||
### Features
|
||||
- **JSON Viewer**: add unescape JSON string (c4c6d38)
|
||||
- **new tool**: Wiktionary Search (ea37ca6)
|
||||
- add download buttons for many tools (3c7e690)
|
||||
- **string extraction**: add attribute download-button-text (12c821f)
|
||||
- **HTML WYSIWYG Editor**: add XHTML output option (252b5e7)
|
||||
- **new tool**: HTML to XHTML (7ba56bf)
|
||||
- **HTML WYSIWYG Editor**: upgrade tiptap + add aligments + enhance cell selection (ebad961)
|
||||
- **new tool**: JavaScript Obfuscator (529c7da)
|
||||
- **new tool**: Database Table Generator (08ac203)
|
||||
- **new tool**: Database Creation Generator (53c447a)
|
||||
- **Git Attributes Generator**: get all .gitattributes on subfolders + fallback in case of API Rate (8e379e4)
|
||||
- **new-tool**: Add Dead Pixel detection tool (#256) (aebb3f2)
|
||||
- **new tool**: PTR/ARPA generator/decoder (ed2519e)
|
||||
- **new tool**: Gitattributes Generator (1cafdfa)
|
||||
- **new tool**: Zellij Cheatsheet (4fd5d89)
|
||||
- **JSON tools**: handle big float (0c334e9)
|
||||
- **datetime converter**: add custom timezone (#248) (abd685b)
|
||||
- **new tool**: implement amortization-calculator tool (#242) (bf58335)
|
||||
- **new tool**: Trigo/equation visualizer (23fbd21)
|
||||
- **Case Converter**: add title, sponge and swap case (acb95af)
|
||||
- **Git Semantic Commit Memo**: enhanced version (19d494f)
|
||||
- **new tool**: SVG Preview (bae6175)
|
||||
- **JSON Editor**: add Repair and schema validation (fbe9c58)
|
||||
- **new tools**: Screen and Tmux Cheatsheets (20c0791)
|
||||
|
||||
### Bug fixes
|
||||
- **README**: add better new features + typo (d6d5179)
|
||||
- **README**: enhance create new tool description (5ee3c18)
|
||||
- **README**: add explaination for PORT env var (bfbfee8)
|
||||
- **Docker**: allow PORT environment variable (be14d3a)
|
||||
- **Code Highlighter**: copy HTML for Word (text/html) and for code editors (text/plain) (0715b28)
|
||||
- **JSON Schema Validation**: handle JSON parse error (19da4e3)
|
||||
- implement JSON.parseBigNum with decimal.js (93b688a)
|
||||
- handle quoted big numbers + fix unit tests (1eb6ec6)
|
||||
- **JQ Tester**: fix import and typo (be41dd6)
|
||||
- json schema validation 'no validation' reset errors (b700c2c)
|
||||
- enable json repair by default (a875596)
|
||||
- correct docker compose with subfolder sample and links (2b9f4f8)
|
||||
- **Barcode Generator**: linear UI (5943dc4)
|
||||
|
||||
### Performance
|
||||
- **ssh-key-generators**: Added debounce to key pair generators (#249) (c24f94c)
|
||||
|
||||
### Chores
|
||||
- **README**: link to VSCode installation (f2e13aa)
|
||||
- **deps**: update some packages (b8deacf)
|
||||
- update some deps (95590f1)
|
||||
- enhance github issue/pr models (28eedcf)
|
||||
- update renovate.json with better grouping (f36451f)
|
||||
|
||||
### Other
|
||||
- Add components.d.ts to .gitignore (32a680f)
|
||||
|
||||
### I18n
|
||||
- translate remaining tools (9a1c825)
|
||||
- string extractions (6c862d6)
|
||||
- useCopy messages (4351e57)
|
||||
- **zh**: add new translation keys for tools (#247) (15ca81d)
|
||||
|
||||
### Fixup! feat
|
||||
- **JSON tools**: handle big float (2cf9c75)
|
||||
|
||||
### Documentation
|
||||
- add lxc container instructions (209988a)
|
||||
|
||||
## Version 2025.12.07
|
||||
|
||||
### Features
|
||||
|
||||
@@ -1,27 +1,37 @@
|
||||
# build stage
|
||||
FROM --platform=$BUILDPLATFORM node:lts-alpine AS build-stage
|
||||
# Set environment variables for non-interactive npm installs
|
||||
ENV NPM_CONFIG_LOGLEVEL warn
|
||||
ENV CI true
|
||||
ENV NPM_CONFIG_LOGLEVEL=warn
|
||||
ENV CI=true
|
||||
|
||||
RUN apk add --update python3 make g++\
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
WORKDIR /app
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
COPY patches patches
|
||||
RUN npm install -g pnpm && pnpm i --ignore-scripts --frozen-lockfile
|
||||
COPY . .
|
||||
ARG BASE_URL
|
||||
ENV BASE_URL=${BASE_URL}
|
||||
ENV VITE_VERCEL_ENV production
|
||||
ARG VITE_AVAILABLE_LOCALES
|
||||
ENV VITE_AVAILABLE_LOCALES=${VITE_AVAILABLE_LOCALES}
|
||||
ENV VITE_VERCEL_ENV=production
|
||||
RUN pnpm build
|
||||
|
||||
# production stage
|
||||
FROM nginxinc/nginx-unprivileged:stable-alpine AS production-stage
|
||||
ENV VITE_VERCEL_ENV production
|
||||
|
||||
LABEL maintainer="ShareVB <sharevb@gmail.com>" \
|
||||
org.opencontainers.image.authors="ShareVB <sharevb@gmail.com>"
|
||||
|
||||
ENV VITE_VERCEL_ENV=production
|
||||
ARG BASE_URL
|
||||
ENV BASE_URL=${BASE_URL}
|
||||
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
EXPOSE 8080
|
||||
|
||||
COPY nginx.conf /etc/nginx/templates/default.conf.template
|
||||
ENV PORT=8080
|
||||
EXPOSE $PORT
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
@@ -2,7 +2,9 @@
|
||||
|
||||
Since the *base image* is now `nginx-unpriviledged` the container will now listen to port **8080** and not 80. So you need to update your port mapping, i.e. from `8080:80` to `8080:8080`.
|
||||
|
||||
If the container needs to listen to IPv6, 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)
|
||||
You can override listening port using environment variable `PORT` (docker option `-e PORT=8888`).
|
||||
|
||||
If the container needs to listen to IPv6, 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/templates/default.conf.template"` (with `listen [::]:8080;` removed)
|
||||
|
||||
## PR Welcome
|
||||
|
||||
@@ -43,7 +45,12 @@ Use of WSL2 is recommended to develop using VSCode on Windows. Direct developmen
|
||||
|
||||
## Added features
|
||||
|
||||
Almost [all tools PR of it-tools](https://github.com/sharevb/it-tools/pulls).
|
||||
- Almost [all tools PR, 192 of mine, of original it-tools](https://github.com/CorentinTh/it-tools/pulls)
|
||||
- 95% of [issues if original it-tools](https://github.com/CorentinTh/it-tools/issues)
|
||||
- Full UI translation in many language (Google Translated)
|
||||
- Many [new tools](https://sharevb-it-tools.vercel.app/about)
|
||||
- Many bug fixes and enhancements
|
||||
- Many customizations (Docker version), see below
|
||||
|
||||
## Container images
|
||||
|
||||
@@ -51,6 +58,12 @@ Almost [all tools PR of it-tools](https://github.com/sharevb/it-tools/pulls).
|
||||
|
||||
[Docker Hub](https://hub.docker.com/r/sharevb/it-tools): `sharevb/it-tools:latest`
|
||||
|
||||
```bash
|
||||
docker run --pull always --restart unless-stopped -p 8080:8080 sharevb/it-tools:latest
|
||||
```
|
||||
|
||||
Other existing docker tags: `latest-en` (english only)
|
||||
|
||||
## Use in Docker Compose file
|
||||
|
||||
```yml
|
||||
@@ -100,7 +113,7 @@ You can filter available tools by mounting `tools-filter.json` in `/usr/share/ng
|
||||
```
|
||||
Category matches on category (English) names ; Tools matches on tools path/url.
|
||||
|
||||
See (docker-tools-filter-and-home-content)[https://github.com/sharevb/it-tools]
|
||||
See [docker-tools-filter-and-home-content](https://github.com/sharevb/it-tools)
|
||||
|
||||
## Add custom external tools
|
||||
|
||||
@@ -127,11 +140,11 @@ You can add custom external tools (href or markdownContent) by mounting a `exter
|
||||
]
|
||||
```
|
||||
|
||||
See (docker-tools-filter-and-home-content)[https://github.com/sharevb/it-tools]
|
||||
See [docker-tools-filter-and-home-content](https://github.com/sharevb/it-tools)
|
||||
|
||||
## Setting default tools parameters / default UI language at runtime
|
||||
|
||||
You can set default tool parameters by mounting a `tools-setting.json` in `/usr/share/nginx/html`.
|
||||
You can set default tool parameters by mounting a `tools-settings.json` in `/usr/share/nginx/html`.
|
||||
|
||||
It is a two level json, with the first level being for `tool name` and the second level for `parameter name`:
|
||||
```json
|
||||
@@ -235,10 +248,19 @@ Assuming you're already hosting it-tools behind a reverse proxy, you can configu
|
||||
|
||||
(thanks @jogerj)
|
||||
|
||||
## Deploy as LXC container
|
||||
|
||||
In Proxmox VE, you can use docker image directly:
|
||||
```bash
|
||||
sudo lxc-create -n sharevb-it-tools -t oci -- --url docker://ghcr.io/sharevb/it-tools:latest
|
||||
```
|
||||
|
||||
## Contribute
|
||||
|
||||
### Recommended IDE Setup
|
||||
|
||||
To install VSCode in WSL2 (Windows), see: https://learn.microsoft.com/en-us/windows/wsl/tutorials/wsl-vscode
|
||||
|
||||
[VSCode](https://code.visualstudio.com/) with the following extensions:
|
||||
|
||||
- [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur)
|
||||
@@ -300,6 +322,14 @@ pnpm test
|
||||
pnpm lint
|
||||
```
|
||||
|
||||
### Ensure CI (lock, eslint, typecheck) will succeed
|
||||
|
||||
Before submitting a PR, run:
|
||||
|
||||
```sh
|
||||
pnpm install --ignore-scripts && pnpm lint --fix && pnpm typecheck
|
||||
```
|
||||
|
||||
### Create a new tool
|
||||
|
||||
To create a new tool, there is a script that generate the boilerplate of the new tool, simply run:
|
||||
@@ -308,7 +338,7 @@ To create a new tool, there is a script that generate the boilerplate of the new
|
||||
pnpm run script:create:tool my-tool-name
|
||||
```
|
||||
|
||||
It will create a directory in `src/tools` with the correct files, and a the import in `src/tools/index.ts`. You will just need to add the imported tool in the proper category and develop the tool.
|
||||
It will create a directory in `src/tools` with the correct files. You will need to fill `src/tools/_my-tool-name_/index.ts` with tool name, category, description... and then develop the tool.
|
||||
|
||||
## Installation methods
|
||||
|
||||
@@ -326,59 +356,6 @@ Local installation required installing first: `python3 make g++`
|
||||
<img src="./.github/logo-dark.png" alt="logo">
|
||||
</picture>
|
||||
|
||||
<details>
|
||||
|
||||
Useful tools for developer and people working in IT. [Have a look !](https://sharevb-it-tools.vercel.app).
|
||||
|
||||
## Functionalities and roadmap
|
||||
|
||||
Please check the [issues](https://github.com/sharevb/it-tools/issues) to see if some feature listed to be implemented.
|
||||
|
||||
You have an idea of a tool? Submit a [feature request](https://github.com/sharevb/it-tools/issues/new/choose)!
|
||||
|
||||
## Self host
|
||||
|
||||
Self host solutions for your homelab
|
||||
|
||||
**From docker hub:**
|
||||
|
||||
```sh
|
||||
docker run -d --name it-tools --restart unless-stopped -p 8080:8080 corentinth/it-tools:latest
|
||||
```
|
||||
|
||||
**From github packages:**
|
||||
|
||||
```sh
|
||||
docker run -d --name it-tools --restart unless-stopped -p 8080:8080 ghcr.io/corentinth/it-tools:latest
|
||||
```
|
||||
|
||||
**Other solutions:**
|
||||
|
||||
- [Cloudron](https://www.cloudron.io/store/tech.ittools.cloudron.html)
|
||||
- [Tipi](https://www.runtipi.io/docs/apps-available)
|
||||
- [Unraid](https://unraid.net/community/apps?q=it-tools)
|
||||
- [YunoHost](https://apps.yunohost.org/app/it-tools)
|
||||
|
||||
|
||||
## Contributors
|
||||
|
||||
Big thanks to all the people who have already contributed!
|
||||
|
||||
[](https://github.com/sharevb/it-tools/graphs/contributors)
|
||||
|
||||
## Credits
|
||||
|
||||
Coded with ❤️ by [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=readme).
|
||||
|
||||
This project is continuously deployed using [vercel.com](https://vercel.com).
|
||||
|
||||
Contributor graph is generated using [contrib.rocks](https://contrib.rocks/preview?repo=corentinth/it-tools).
|
||||
|
||||
<a href="https://www.producthunt.com/posts/it-tools?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-it-tools" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=345793&theme=light" alt="IT Tools - Collection of handy online tools for devs, with great UX | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
|
||||
<a href="https://www.producthunt.com/posts/it-tools?utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-it-tools" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=345793&theme=light&period=daily" alt="IT Tools - Collection of handy online tools for devs, with great UX | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
|
||||
|
||||
## License
|
||||
|
||||
This project is under the [GNU GPLv3](LICENSE).
|
||||
|
||||
</details>
|
||||
This project is under the [GNU GPLv3](LICENSE).
|
||||
@@ -1,556 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* prettier-ignore */
|
||||
// @ts-nocheck
|
||||
// Generated by unplugin-vue-components
|
||||
// Read more: https://github.com/vuejs/core/pull/3399
|
||||
import '@vue/runtime-core'
|
||||
|
||||
export { }
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
export interface GlobalComponents {
|
||||
'404.page': typeof import('./src/pages/404.page.vue')['default']
|
||||
About: typeof import('./src/pages/About.vue')['default']
|
||||
AdLdapSearcher: typeof import('./src/tools/ad-ldap-searcher/ad-ldap-searcher.vue')['default']
|
||||
AgeCrypto: typeof import('./src/tools/age-crypto/age-crypto.vue')['default']
|
||||
AiPromptSplitter: typeof import('./src/tools/ai-prompt-splitter/ai-prompt-splitter.vue')['default']
|
||||
AlarmSoundToggle: typeof import('./src/tools/pomodoro-timer/app/components/AlarmSoundToggle.vue')['default']
|
||||
AngleConverter: typeof import('./src/tools/angle-converter/angle-converter.vue')['default']
|
||||
AnsibleVaultCryptDecrypt: typeof import('./src/tools/ansible-vault-crypt-decrypt/ansible-vault-crypt-decrypt.vue')['default']
|
||||
AnsiEscapeTester: typeof import('./src/tools/ansi-escape-tester/ansi-escape-tester.vue')['default']
|
||||
ApiTester: typeof import('./src/tools/api-tester/api-tester.vue')['default']
|
||||
App: typeof import('./src/App.vue')['default']
|
||||
AppColorPicker: typeof import('./src/tools/pomodoro-timer/app/components/AppColorPicker.vue')['default']
|
||||
AreaConverter: typeof import('./src/tools/area-converter/area-converter.vue')['default']
|
||||
AsciiTextDrawer: typeof import('./src/tools/ascii-text-drawer/ascii-text-drawer.vue')['default']
|
||||
AspectRatioCalculator: typeof import('./src/tools/aspect-ratio-calculator/aspect-ratio-calculator.vue')['default']
|
||||
BarcodeGenerator: typeof import('./src/tools/barcode-generator/barcode-generator.vue')['default']
|
||||
BarcodeReader: typeof import('./src/tools/barcode-reader/barcode-reader.vue')['default']
|
||||
'Base.layout': typeof import('./src/layouts/base.layout.vue')['default']
|
||||
Base64FileConverter: typeof import('./src/tools/base64-file-converter/base64-file-converter.vue')['default']
|
||||
Base64HexConverter: typeof import('./src/tools/base64-hex-converter/base64-hex-converter.vue')['default']
|
||||
Base64StringConverter: typeof import('./src/tools/base64-string-converter/base64-string-converter.vue')['default']
|
||||
BashMemo: typeof import('./src/tools/bash-memo/bash-memo.vue')['default']
|
||||
'BashMemo.content': typeof import('./src/tools/bash-memo/bash-memo.content.md')['default']
|
||||
BasicAuthGenerator: typeof import('./src/tools/basic-auth-generator/basic-auth-generator.vue')['default']
|
||||
Bcrypt: typeof import('./src/tools/bcrypt/bcrypt.vue')['default']
|
||||
BenchmarkBuilder: typeof import('./src/tools/benchmark-builder/benchmark-builder.vue')['default']
|
||||
BimiDnsGenerator: typeof import('./src/tools/bimi-dns-generator/bimi-dns-generator.vue')['default']
|
||||
BinaryCalculator: typeof import('./src/tools/binary-calculator/binary-calculator.vue')['default']
|
||||
Bip39Generator: typeof import('./src/tools/bip39-generator/bip39-generator.vue')['default']
|
||||
BmiCalculator: typeof import('./src/tools/bmi-calculator/bmi-calculator.vue')['default']
|
||||
BounceParser: typeof import('./src/tools/bounce-parser/bounce-parser.vue')['default']
|
||||
CAlert: typeof import('./src/ui/c-alert/c-alert.vue')['default']
|
||||
'CAlert.demo': typeof import('./src/ui/c-alert/c-alert.demo.vue')['default']
|
||||
CameraRecorder: typeof import('./src/tools/camera-recorder/camera-recorder.vue')['default']
|
||||
CardPicker: typeof import('./src/tools/card-picker/card-picker.vue')['default']
|
||||
CaseConverter: typeof import('./src/tools/case-converter/case-converter.vue')['default']
|
||||
CButton: typeof import('./src/ui/c-button/c-button.vue')['default']
|
||||
'CButton.demo': typeof import('./src/ui/c-button/c-button.demo.vue')['default']
|
||||
CButtonsSelect: typeof import('./src/ui/c-buttons-select/c-buttons-select.vue')['default']
|
||||
'CButtonsSelect.demo': typeof import('./src/ui/c-buttons-select/c-buttons-select.demo.vue')['default']
|
||||
CCard: typeof import('./src/ui/c-card/c-card.vue')['default']
|
||||
'CCard.demo': typeof import('./src/ui/c-card/c-card.demo.vue')['default']
|
||||
CCollapse: typeof import('./src/ui/c-collapse/c-collapse.vue')['default']
|
||||
'CCollapse.demo': typeof import('./src/ui/c-collapse/c-collapse.demo.vue')['default']
|
||||
CDiffEditor: typeof import('./src/ui/c-diff-editor/c-diff-editor.vue')['default']
|
||||
CertificateKeyParser: typeof import('./src/tools/certificate-key-parser/certificate-key-parser.vue')['default']
|
||||
CFileUpload: typeof import('./src/ui/c-file-upload/c-file-upload.vue')['default']
|
||||
'CFileUpload.demo': typeof import('./src/ui/c-file-upload/c-file-upload.demo.vue')['default']
|
||||
CharsetDetector: typeof import('./src/tools/charset-detector/charset-detector.vue')['default']
|
||||
Chmod: typeof import('./src/tools/chmod-memo/chmod.md')['default']
|
||||
ChmodCalculator: typeof import('./src/tools/chmod-calculator/chmod-calculator.vue')['default']
|
||||
ChmodMemo: typeof import('./src/tools/chmod-memo/chmod-memo.vue')['default']
|
||||
Chronometer: typeof import('./src/tools/chronometer/chronometer.vue')['default']
|
||||
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']
|
||||
'CMarkdown.demo': typeof import('./src/ui/c-markdown/c-markdown.demo.vue')['default']
|
||||
CModal: typeof import('./src/ui/c-modal/c-modal.vue')['default']
|
||||
'CModal.demo': typeof import('./src/ui/c-modal/c-modal.demo.vue')['default']
|
||||
CModalValue: typeof import('./src/ui/c-modal-value/c-modal-value.vue')['default']
|
||||
'CModalValue.demo': typeof import('./src/ui/c-modal-value/c-modal-value.demo.vue')['default']
|
||||
CMonacoEditor: typeof import('./src/ui/c-monaco-editor/c-monaco-editor.vue')['default']
|
||||
CodeHighlighter: typeof import('./src/tools/code-highlighter/code-highlighter.vue')['default']
|
||||
CoinFlipper: typeof import('./src/tools/coin-flipper/coin-flipper.vue')['default']
|
||||
CollapsibleToolMenu: typeof import('./src/components/CollapsibleToolMenu.vue')['default']
|
||||
ColorContrastChecker: typeof import('./src/tools/color-contrast-checker/color-contrast-checker.vue')['default']
|
||||
ColorConverter: typeof import('./src/tools/color-converter/color-converter.vue')['default']
|
||||
ColoredCard: typeof import('./src/components/ColoredCard.vue')['default']
|
||||
ColorWheel: typeof import('./src/tools/color-wheel/color-wheel.vue')['default']
|
||||
CommandPalette: typeof import('./src/modules/command-palette/command-palette.vue')['default']
|
||||
CommandPaletteOption: typeof import('./src/modules/command-palette/components/command-palette-option.vue')['default']
|
||||
CommonRegex: typeof import('./src/tools/common-regex-memo/common-regex.md')['default']
|
||||
CommonRegexMemo: typeof import('./src/tools/common-regex-memo/common-regex-memo.vue')['default']
|
||||
CookiesParser: typeof import('./src/tools/cookies-parser/cookies-parser.vue')['default']
|
||||
Countdown: typeof import('./src/tools/countdown/countdown.vue')['default']
|
||||
Counter: typeof import('./src/tools/pomodoro-timer/app/components/Counter.vue')['default']
|
||||
CrcCalculator: typeof import('./src/tools/crc-calculator/crc-calculator.vue')['default']
|
||||
CreditCardChecker: typeof import('./src/tools/credit-card-checker/credit-card-checker.vue')['default']
|
||||
CreditCardGenerator: typeof import('./src/tools/credit-card-generator/credit-card-generator.vue')['default']
|
||||
CronAlarm: typeof import('./src/tools/cron-alarm/cron-alarm.vue')['default']
|
||||
CrontabGenerator: typeof import('./src/tools/crontab-generator/crontab-generator.vue')['default']
|
||||
CSelect: typeof import('./src/ui/c-select/c-select.vue')['default']
|
||||
'CSelect.demo': typeof import('./src/ui/c-select/c-select.demo.vue')['default']
|
||||
CsrGenerator: typeof import('./src/tools/csr-generator/csr-generator.vue')['default']
|
||||
CssPrettifier: typeof import('./src/tools/css-prettifier/css-prettifier.vue')['default']
|
||||
CssSelectors: typeof import('./src/tools/css-selectors-memo/css-selectors.md')['default']
|
||||
CssSelectorsMemo: typeof import('./src/tools/css-selectors-memo/css-selectors-memo.vue')['default']
|
||||
CssXpathConverter: typeof import('./src/tools/css-xpath-converter/css-xpath-converter.vue')['default']
|
||||
CsvToData: typeof import('./src/tools/csv-to-data/csv-to-data.vue')['default']
|
||||
CsvToJson: typeof import('./src/tools/csv-to-json/csv-to-json.vue')['default']
|
||||
CTable: typeof import('./src/ui/c-table/c-table.vue')['default']
|
||||
'CTable.demo': typeof import('./src/ui/c-table/c-table.demo.vue')['default']
|
||||
CTextCopyable: typeof import('./src/ui/c-text-copyable/c-text-copyable.vue')['default']
|
||||
'CTextCopyable.demo': typeof import('./src/ui/c-text-copyable/c-text-copyable.demo.vue')['default']
|
||||
CTooltip: typeof import('./src/ui/c-tooltip/c-tooltip.vue')['default']
|
||||
'CTooltip.demo': typeof import('./src/ui/c-tooltip/c-tooltip.demo.vue')['default']
|
||||
CurlConverter: typeof import('./src/tools/curl-converter/curl-converter.vue')['default']
|
||||
CurlGenerator: typeof import('./src/tools/curl-generator/curl-generator.vue')['default']
|
||||
CurrencyConverter: typeof import('./src/tools/currency-converter/currency-converter.vue')['default']
|
||||
DatabaseConnectionStringBuilder: typeof import('./src/tools/database-connection-string-builder/database-connection-string-builder.vue')['default']
|
||||
DataFaker: typeof import('./src/tools/data-faker/data-faker.vue')['default']
|
||||
DataStorageUnitConverter: typeof import('./src/tools/data-storage-unit-converter/data-storage-unit-converter.vue')['default']
|
||||
DataTransferRateConverter: typeof import('./src/tools/data-transfer-rate-converter/data-transfer-rate-converter.vue')['default']
|
||||
DateDurationCalculator: typeof import('./src/tools/date-duration-calculator/date-duration-calculator.vue')['default']
|
||||
DateTimeConverter: typeof import('./src/tools/date-time-converter/date-time-converter.vue')['default']
|
||||
DaysCalculator: typeof import('./src/tools/days-calculator/days-calculator.vue')['default']
|
||||
DbmMwConverter: typeof import('./src/tools/dbm-mw-converter/dbm-mw-converter.vue')['default']
|
||||
'DemoHome.page': typeof import('./src/ui/demo/demo-home.page.vue')['default']
|
||||
DemoWrapper: typeof import('./src/ui/demo/demo-wrapper.vue')['default']
|
||||
DeviceInformation: typeof import('./src/tools/device-information/device-information.vue')['default']
|
||||
DiceRoller: typeof import('./src/tools/dice-roller/dice-roller.vue')['default']
|
||||
DicewareGenerator: typeof import('./src/tools/diceware-generator/diceware-generator.vue')['default']
|
||||
DiffViewer: typeof import('./src/tools/json-diff/diff-viewer/diff-viewer.vue')['default']
|
||||
DistinctWords: typeof import('./src/tools/distinct-words/distinct-words.vue')['default']
|
||||
DjangoSecretGenerator: typeof import('./src/tools/django-secret-generator/django-secret-generator.vue')['default']
|
||||
DkimDnsGenerator: typeof import('./src/tools/dkim-dns-generator/dkim-dns-generator.vue')['default']
|
||||
DmarcDnsGenerator: typeof import('./src/tools/dmarc-dns-generator/dmarc-dns-generator.vue')['default']
|
||||
DmarcReportAnalyzer: typeof import('./src/tools/dmarc-report-analyzer/dmarc-report-analyzer.vue')['default']
|
||||
DnsblChecker: typeof import('./src/tools/dnsbl-checker/dnsbl-checker.vue')['default']
|
||||
DnsQueries: typeof import('./src/tools/dns-queries/dns-queries.vue')['default']
|
||||
Docker: typeof import('./src/tools/docker-memo/docker.md')['default']
|
||||
DockerCompose: typeof import('./src/tools/docker-compose-memo/docker-compose.md')['default']
|
||||
DockerComposeConverter: typeof import('./src/tools/docker-compose-converter/docker-compose-converter.vue')['default']
|
||||
DockerComposeMemo: typeof import('./src/tools/docker-compose-memo/docker-compose-memo.vue')['default']
|
||||
DockerComposeToDockerRunConverter: typeof import('./src/tools/docker-compose-to-docker-run-converter/docker-compose-to-docker-run-converter.vue')['default']
|
||||
DockerComposeToEnvFile: typeof import('./src/tools/docker-compose-to-env-file/docker-compose-to-env-file.vue')['default']
|
||||
DockerComposeToKubernetes: typeof import('./src/tools/docker-compose-to-kubernetes/docker-compose-to-kubernetes.vue')['default']
|
||||
DockerComposeToQuadlets: typeof import('./src/tools/docker-compose-to-quadlets/docker-compose-to-quadlets.vue')['default']
|
||||
DockerComposeValidator: typeof import('./src/tools/docker-compose-validator/docker-compose-validator.vue')['default']
|
||||
Dockerfile: typeof import('./src/tools/dockerfile-memo/dockerfile.md')['default']
|
||||
DockerfileMemo: typeof import('./src/tools/dockerfile-memo/dockerfile-memo.vue')['default']
|
||||
DockerInspectToDockerRun: typeof import('./src/tools/docker-inspect-to-docker-run/docker-inspect-to-docker-run.vue')['default']
|
||||
DockerMemo: typeof import('./src/tools/docker-memo/docker-memo.vue')['default']
|
||||
DockerRunToDockerComposeConverter: typeof import('./src/tools/docker-run-to-docker-compose-converter/docker-run-to-docker-compose-converter.vue')['default']
|
||||
DockerRunToKubernetes: typeof import('./src/tools/docker-run-to-kubernetes/docker-run-to-kubernetes.vue')['default']
|
||||
DockerRunToQuadlets: typeof import('./src/tools/docker-run-to-quadlets/docker-run-to-quadlets.vue')['default']
|
||||
DockerSwarm: typeof import('./src/tools/docker-swarm-memo/docker-swarm.md')['default']
|
||||
DockerSwarmMemo: typeof import('./src/tools/docker-swarm-memo/docker-swarm-memo.vue')['default']
|
||||
DuplicateLineFinder: typeof import('./src/tools/duplicate-line-finder/duplicate-line-finder.vue')['default']
|
||||
DurationCalculator: typeof import('./src/tools/duration-calculator/duration-calculator.vue')['default']
|
||||
DynamicValues: typeof import('./src/tools/benchmark-builder/dynamic-values.vue')['default']
|
||||
EcdsaKeyPairGenerator: typeof import('./src/tools/ecdsa-key-pair-generator/ecdsa-key-pair-generator.vue')['default']
|
||||
Ed25519KeyPairGenerator: typeof import('./src/tools/ed25519-key-pair-generator/ed25519-key-pair-generator.vue')['default']
|
||||
Editor: typeof import('./src/tools/html-wysiwyg-editor/editor/editor.vue')['default']
|
||||
EmailNormalizer: typeof import('./src/tools/email-normalizer/email-normalizer.vue')['default']
|
||||
EmailParser: typeof import('./src/tools/email-parser/email-parser.vue')['default']
|
||||
EmojiCard: typeof import('./src/tools/emoji-picker/emoji-card.vue')['default']
|
||||
EmojiGrid: typeof import('./src/tools/emoji-picker/emoji-grid.vue')['default']
|
||||
EmojiPicker: typeof import('./src/tools/emoji-picker/emoji-picker.vue')['default']
|
||||
EmvTlvDecoder: typeof import('./src/tools/emv-tlv-decoder/emv-tlv-decoder.vue')['default']
|
||||
Encryption: typeof import('./src/tools/encryption/encryption.vue')['default']
|
||||
EnergyComputer: typeof import('./src/tools/energy-computer/energy-computer.vue')['default']
|
||||
EnergyConverter: typeof import('./src/tools/energy-converter/energy-converter.vue')['default']
|
||||
EnvVariablesConverter: typeof import('./src/tools/env-variables-converter/env-variables-converter.vue')['default']
|
||||
EtaCalculator: typeof import('./src/tools/eta-calculator/eta-calculator.vue')['default']
|
||||
EthTransactionDecoder: typeof import('./src/tools/eth-transaction-decoder/eth-transaction-decoder.vue')['default']
|
||||
ExcelToData: typeof import('./src/tools/excel-to-data/excel-to-data.vue')['default']
|
||||
ExtractTextFromHtml: typeof import('./src/tools/extract-text-from-html/extract-text-from-html.vue')['default']
|
||||
FamilyTreeCalculator: typeof import('./src/tools/family-tree-calculator/family-tree-calculator.vue')['default']
|
||||
FaviconGenerator: typeof import('./src/tools/favicon-generator/favicon-generator.vue')['default']
|
||||
FavoriteButton: typeof import('./src/components/FavoriteButton.vue')['default']
|
||||
FileHasher: typeof import('./src/tools/file-hasher/file-hasher.vue')['default']
|
||||
FileSplitter: typeof import('./src/tools/file-splitter/file-splitter.vue')['default']
|
||||
FileType: typeof import('./src/tools/file-type/file-type.vue')['default']
|
||||
FinishedPopup: typeof import('./src/tools/pomodoro-timer/app/components/FinishedPopup.vue')['default']
|
||||
FirewalldGenerator: typeof import('./src/tools/firewalld-generator/firewalld-generator.vue')['default']
|
||||
FloatingPointNumberConverter: typeof import('./src/tools/floating-point-number-converter/floating-point-number-converter.vue')['default']
|
||||
FolderStructureDiagram: typeof import('./src/tools/folder-structure-diagram/folder-structure-diagram.vue')['default']
|
||||
FontCompare: typeof import('./src/tools/font-compare/font-compare.vue')['default']
|
||||
FontControls: typeof import('./src/tools/font-compare/font-controls.vue')['default']
|
||||
Footer: typeof import('./src/tools/pomodoro-timer/app/components/Footer.vue')['default']
|
||||
ForceConverter: typeof import('./src/tools/force-converter/force-converter.vue')['default']
|
||||
FormatTransformer: typeof import('./src/components/FormatTransformer.vue')['default']
|
||||
FortuneWheel: typeof import('./src/tools/fortune-wheel/fortune-wheel.vue')['default']
|
||||
FstabGenerator: typeof import('./src/tools/fstab-generator/fstab-generator.vue')['default']
|
||||
GeoDistanceCalculator: typeof import('./src/tools/geo-distance-calculator/geo-distance-calculator.vue')['default']
|
||||
GitMemo: typeof import('./src/tools/git-memo/git-memo.vue')['default']
|
||||
'GitMemo.content': typeof import('./src/tools/git-memo/git-memo.content.md')['default']
|
||||
'GitSem.memo': typeof import('./src/tools/git-semantic-commit-memo/git-sem.memo.md')['default']
|
||||
GitSemanticCommitMemo: typeof import('./src/tools/git-semantic-commit-memo/git-semantic-commit-memo.vue')['default']
|
||||
GoTemplateRunner: typeof import('./src/tools/go-template-runner/go-template-runner.vue')['default']
|
||||
GptTokenEncoder: typeof import('./src/tools/gpt-token-encoder/gpt-token-encoder.vue')['default']
|
||||
GptTokenEstimator: typeof import('./src/tools/gpt-token-estimator/gpt-token-estimator.vue')['default']
|
||||
GraphqlBuilder: typeof import('./src/tools/graphql-builder/graphql-builder.vue')['default']
|
||||
GtinValidator: typeof import('./src/tools/gtin-validator/gtin-validator.vue')['default']
|
||||
GzipConverter: typeof import('./src/tools/gzip-converter/gzip-converter.vue')['default']
|
||||
HarSanitizer: typeof import('./src/tools/har-sanitizer/har-sanitizer.vue')['default']
|
||||
HashText: typeof import('./src/tools/hash-text/hash-text.vue')['default']
|
||||
HddCalculator: typeof import('./src/tools/hdd-calculator/hdd-calculator.vue')['default']
|
||||
Header: typeof import('./src/tools/pomodoro-timer/app/components/Header.vue')['default']
|
||||
HeicConverter: typeof import('./src/tools/heic-converter/heic-converter.vue')['default']
|
||||
HexConverter: typeof import('./src/tools/hex-converter/hex-converter.vue')['default']
|
||||
HexFileConverter: typeof import('./src/tools/hex-file-converter/hex-file-converter.vue')['default']
|
||||
HmacGenerator: typeof import('./src/tools/hmac-generator/hmac-generator.vue')['default']
|
||||
Home: typeof import('./src/tools/pomodoro-timer/app/views/Home.vue')['default']
|
||||
'Home.page': typeof import('./src/pages/Home.page.vue')['default']
|
||||
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']
|
||||
HtpasswdGenerator: typeof import('./src/tools/htpasswd-generator/htpasswd-generator.vue')['default']
|
||||
HttpStatusCodes: typeof import('./src/tools/http-status-codes/http-status-codes.vue')['default']
|
||||
IanaWhoisChecker: typeof import('./src/tools/iana-whois-checker/iana-whois-checker.vue')['default']
|
||||
IAndLChecker: typeof import('./src/tools/i-and-l-checker/i-and-l-checker.vue')['default']
|
||||
IbanValidatorAndParser: typeof import('./src/tools/iban-validator-and-parser/iban-validator-and-parser.vue')['default']
|
||||
IcalGenerator: typeof import('./src/tools/ical-generator/ical-generator.vue')['default']
|
||||
IcalMerger: typeof import('./src/tools/ical-merger/ical-merger.vue')['default']
|
||||
IcalParser: typeof import('./src/tools/ical-parser/ical-parser.vue')['default']
|
||||
IcoConverter: typeof import('./src/tools/ico-converter/ico-converter.vue')['default']
|
||||
'IconMdi:brushVariant': typeof import('~icons/mdi/brush-variant')['default']
|
||||
'IconMdi:kettleSteamOutline': typeof import('~icons/mdi/kettle-steam-outline')['default']
|
||||
IconMdiCheck: typeof import('~icons/mdi/check')['default']
|
||||
IconMdiChevronDown: typeof import('~icons/mdi/chevron-down')['default']
|
||||
IconMdiChevronRight: typeof import('~icons/mdi/chevron-right')['default']
|
||||
IconMdiClose: typeof import('~icons/mdi/close')['default']
|
||||
IconMdiContentCopy: typeof import('~icons/mdi/content-copy')['default']
|
||||
IconMdiDownload: typeof import('~icons/mdi/download')['default']
|
||||
IconMdiEye: typeof import('~icons/mdi/eye')['default']
|
||||
IconMdiEyeOff: typeof import('~icons/mdi/eye-off')['default']
|
||||
IconMdiHeart: typeof import('~icons/mdi/heart')['default']
|
||||
IconMdiSearch: typeof import('~icons/mdi/search')['default']
|
||||
IconMdiTranslate: typeof import('~icons/mdi/translate')['default']
|
||||
IconMdiTriangleDown: typeof import('~icons/mdi/triangle-down')['default']
|
||||
IesLightingGuidelines: typeof import('./src/tools/ies-lighting-guidelines/ies-lighting-guidelines.vue')['default']
|
||||
IlluminanceConverter: typeof import('./src/tools/illuminance-converter/illuminance-converter.vue')['default']
|
||||
ImageColorInverter: typeof import('./src/tools/image-color-inverter/image-color-inverter.vue')['default']
|
||||
ImageComparer: typeof import('./src/tools/image-comparer/image-comparer.vue')['default']
|
||||
ImageConverter: typeof import('./src/tools/image-converter/image-converter.vue')['default']
|
||||
ImageExifReader: typeof import('./src/tools/image-exif-reader/image-exif-reader.vue')['default']
|
||||
ImageResizer: typeof import('./src/tools/image-resizer/image-resizer.vue')['default']
|
||||
ImageToAsciiArt: typeof import('./src/tools/image-to-ascii-art/image-to-ascii-art.vue')['default']
|
||||
ImageToCss: typeof import('./src/tools/image-to-css/image-to-css.vue')['default']
|
||||
InputCopyable: typeof import('./src/components/InputCopyable.vue')['default']
|
||||
IntegerBaseConverter: typeof import('./src/tools/integer-base-converter/integer-base-converter.vue')['default']
|
||||
IntegersToIp: typeof import('./src/tools/integers-to-ip/integers-to-ip.vue')['default']
|
||||
IpCidrToRange: typeof import('./src/tools/ip-cidr-to-range/ip-cidr-to-range.vue')['default']
|
||||
IpGeoLocation: typeof import('./src/tools/ip-geo-location/ip-geo-location.vue')['default']
|
||||
IpIncludeExclude: typeof import('./src/tools/ip-include-exclude/ip-include-exclude.vue')['default']
|
||||
IpRangeToCidr: typeof import('./src/tools/ip-range-to-cidr/ip-range-to-cidr.vue')['default']
|
||||
IptablesGenerator: typeof import('./src/tools/iptables-generator/iptables-generator.vue')['default']
|
||||
Ipv4AddressConverter: typeof import('./src/tools/ipv4-address-converter/ipv4-address-converter.vue')['default']
|
||||
Ipv4RangeExpander: typeof import('./src/tools/ipv4-range-expander/ipv4-range-expander.vue')['default']
|
||||
Ipv4SubnetCalculator: typeof import('./src/tools/ipv4-subnet-calculator/ipv4-subnet-calculator.vue')['default']
|
||||
Ipv6AddressConverter: typeof import('./src/tools/ipv6-address-converter/ipv6-address-converter.vue')['default']
|
||||
Ipv6SubnetCalculator: typeof import('./src/tools/ipv6-subnet-calculator/ipv6-subnet-calculator.vue')['default']
|
||||
Ipv6UlaGenerator: typeof import('./src/tools/ipv6-ula-generator/ipv6-ula-generator.vue')['default']
|
||||
IsbnValidatorAndParser: typeof import('./src/tools/isbn-validator-and-parser/isbn-validator-and-parser.vue')['default']
|
||||
Iso3166Searcher: typeof import('./src/tools/iso-3166-searcher/iso-3166-searcher.vue')['default']
|
||||
JavascriptPrettifier: typeof import('./src/tools/javascript-prettifier/javascript-prettifier.vue')['default']
|
||||
JavascriptToJson: typeof import('./src/tools/javascript-to-json/javascript-to-json.vue')['default']
|
||||
Jq: typeof import('./src/tools/jq-memo/jq.md')['default']
|
||||
JqMemo: typeof import('./src/tools/jq-memo/jq-memo.vue')['default']
|
||||
JqTester: typeof import('./src/tools/jq-tester/jq-tester.vue')['default']
|
||||
JsonDiff: typeof import('./src/tools/json-diff/json-diff.vue')['default']
|
||||
JsonEditor: typeof import('./src/tools/json-editor/json-editor.vue')['default']
|
||||
JsonEscaper: typeof import('./src/tools/json-escaper/json-escaper.vue')['default']
|
||||
JsonFlattenNestify: typeof import('./src/tools/json-flatten-nestify/json-flatten-nestify.vue')['default']
|
||||
JsonLinter: typeof import('./src/tools/json-linter/json-linter.vue')['default']
|
||||
JsonMerger: typeof import('./src/tools/json-merger/json-merger.vue')['default']
|
||||
JsonMinify: typeof import('./src/tools/json-minify/json-minify.vue')['default']
|
||||
Jsonpath: typeof import('./src/tools/jsonpath-memo/jsonpath.md')['default']
|
||||
JsonpathMemo: typeof import('./src/tools/jsonpath-memo/jsonpath-memo.vue')['default']
|
||||
JsonQuery: typeof import('./src/tools/json-query/json-query.vue')['default']
|
||||
JsonSizeAnalyzer: typeof import('./src/tools/json-size-analyzer/json-size-analyzer.vue')['default']
|
||||
JsonSortMaster: typeof import('./src/tools/json-sort-master/json-sort-master.vue')['default']
|
||||
JsonStringConverter: typeof import('./src/tools/json-string-converter/json-string-converter.vue')['default']
|
||||
JsonToCsharp: typeof import('./src/tools/json-to-csharp/json-to-csharp.vue')['default']
|
||||
JsonToCsv: typeof import('./src/tools/json-to-csv/json-to-csv.vue')['default']
|
||||
JsonToData: typeof import('./src/tools/json-to-data/json-to-data.vue')['default']
|
||||
JsonToGo: typeof import('./src/tools/json-to-go/json-to-go.vue')['default']
|
||||
JsonToJava: typeof import('./src/tools/json-to-java/json-to-java.vue')['default']
|
||||
JsonToJavascript: typeof import('./src/tools/json-to-javascript/json-to-javascript.vue')['default']
|
||||
JsonToMsgpack: typeof import('./src/tools/json-to-msgpack/json-to-msgpack.vue')['default']
|
||||
JsonToObject: typeof import('./src/tools/json-to-object/json-to-object.vue')['default']
|
||||
JsonToPhp: typeof import('./src/tools/json-to-php/json-to-php.vue')['default']
|
||||
JsonToPhpArray: typeof import('./src/tools/json-to-php-array/json-to-php-array.vue')['default']
|
||||
JsonToProtobuf: typeof import('./src/tools/json-to-protobuf/json-to-protobuf.vue')['default']
|
||||
JsonToPython: typeof import('./src/tools/json-to-python/json-to-python.vue')['default']
|
||||
JsonToSchema: typeof import('./src/tools/json-to-schema/json-to-schema.vue')['default']
|
||||
JsonToSqlDdl: typeof import('./src/tools/json-to-sql-ddl/json-to-sql-ddl.vue')['default']
|
||||
JsonToSqlInsert: typeof import('./src/tools/json-to-sql-insert/json-to-sql-insert.vue')['default']
|
||||
JsonToToml: typeof import('./src/tools/json-to-toml/json-to-toml.vue')['default']
|
||||
JsonToTs: typeof import('./src/tools/json-to-ts/json-to-ts.vue')['default']
|
||||
JsonToTypescript: typeof import('./src/tools/json-to-typescript/json-to-typescript.vue')['default']
|
||||
JsonToXml: typeof import('./src/tools/json-to-xml/json-to-xml.vue')['default']
|
||||
JsonToYaml: typeof import('./src/tools/json-to-yaml-converter/json-to-yaml.vue')['default']
|
||||
JsonViewer: typeof import('./src/tools/json-viewer/json-viewer.vue')['default']
|
||||
JsUnobfuscator: typeof import('./src/tools/js-unobfuscator/js-unobfuscator.vue')['default']
|
||||
JwtGenerator: typeof import('./src/tools/jwt-generator/jwt-generator.vue')['default']
|
||||
JwtParser: typeof import('./src/tools/jwt-parser/jwt-parser.vue')['default']
|
||||
K8sMemo: typeof import('./src/tools/k8s-memo/k8s-memo.vue')['default']
|
||||
'K8sMemo.content': typeof import('./src/tools/k8s-memo/k8s-memo.content.md')['default']
|
||||
KeyboardLayoutConverter: typeof import('./src/tools/keyboard-layout-converter/keyboard-layout-converter.vue')['default']
|
||||
KeycodeInfo: typeof import('./src/tools/keycode-info/keycode-info.vue')['default']
|
||||
LengthConverter: typeof import('./src/tools/length-converter/length-converter.vue')['default']
|
||||
LevenshteinCalculator: typeof import('./src/tools/levenshtein-calculator/levenshtein-calculator.vue')['default']
|
||||
ListComparer: typeof import('./src/tools/list-comparer/list-comparer.vue')['default']
|
||||
ListConverter: typeof import('./src/tools/list-converter/list-converter.vue')['default']
|
||||
LocaleSelector: typeof import('./src/modules/i18n/components/locale-selector.vue')['default']
|
||||
LogrotateGenerator: typeof import('./src/tools/logrotate-generator/logrotate-generator.vue')['default']
|
||||
LoremIpsumGenerator: typeof import('./src/tools/lorem-ipsum-generator/lorem-ipsum-generator.vue')['default']
|
||||
LtoLabelGenerator: typeof import('./src/tools/lto-label-generator/lto-label-generator.vue')['default']
|
||||
LuhnValidator: typeof import('./src/tools/luhn-validator/luhn-validator.vue')['default']
|
||||
MacAddressConverter: typeof import('./src/tools/mac-address-converter/mac-address-converter.vue')['default']
|
||||
MacAddressGenerator: typeof import('./src/tools/mac-address-generator/mac-address-generator.vue')['default']
|
||||
MacAddressLookup: typeof import('./src/tools/mac-address-lookup/mac-address-lookup.vue')['default']
|
||||
MailtoGenerator: typeof import('./src/tools/mailto-generator/mailto-generator.vue')['default']
|
||||
ManyUnitsConverter: typeof import('./src/tools/many-units-converter/many-units-converter.vue')['default']
|
||||
MarkdownCheatsheet: typeof import('./src/tools/markdown-cheatsheet/markdown-cheatsheet.vue')['default']
|
||||
MarkdownEditor: typeof import('./src/tools/markdown-editor/markdown-editor.vue')['default']
|
||||
MarkdownTablePrettifier: typeof import('./src/tools/markdown-table-prettifier/markdown-table-prettifier.vue')['default']
|
||||
MarkdownTocGenerator: typeof import('./src/tools/markdown-toc-generator/markdown-toc-generator.vue')['default']
|
||||
MarkdownToDocx: typeof import('./src/tools/markdown-to-docx/markdown-to-docx.vue')['default']
|
||||
MarkdownToHtml: typeof import('./src/tools/markdown-to-html/markdown-to-html.vue')['default']
|
||||
MassConverter: typeof import('./src/tools/mass-converter/mass-converter.vue')['default']
|
||||
MathEvaluator: typeof import('./src/tools/math-evaluator/math-evaluator.vue')['default']
|
||||
MathFormatsConverter: typeof import('./src/tools/math-formats-converter/math-formats-converter.vue')['default']
|
||||
MathOcr: typeof import('./src/tools/math-ocr/math-ocr.vue')['default']
|
||||
'MdMemo.content': typeof import('./src/tools/markdown-cheatsheet/md-memo.content.md')['default']
|
||||
MenuBar: typeof import('./src/tools/html-wysiwyg-editor/editor/menu-bar.vue')['default']
|
||||
MenuBarItem: typeof import('./src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue')['default']
|
||||
MenuIconItem: typeof import('./src/components/MenuIconItem.vue')['default']
|
||||
MenuItemTooltip: typeof import('./src/components/MenuItemTooltip.vue')['default']
|
||||
MenuLayout: typeof import('./src/components/MenuLayout.vue')['default']
|
||||
MermaidExporter: typeof import('./src/tools/mermaid-exporter/mermaid-exporter.vue')['default']
|
||||
MetaTagGenerator: typeof import('./src/tools/meta-tag-generator/meta-tag-generator.vue')['default']
|
||||
MicTester: typeof import('./src/tools/mic-tester/mic-tester.vue')['default']
|
||||
MiddleEndianConverter: typeof import('./src/tools/middle-endian-converter/middle-endian-converter.vue')['default']
|
||||
MimeConverter: typeof import('./src/tools/mime-converter/mime-converter.vue')['default']
|
||||
MimeTypes: typeof import('./src/tools/mime-types/mime-types.vue')['default']
|
||||
ModeIconBar: typeof import('./src/tools/pomodoro-timer/app/components/ModeIconBar.vue')['default']
|
||||
MongoObjectidConverter: typeof import('./src/tools/mongo-objectid-converter/mongo-objectid-converter.vue')['default']
|
||||
MorseConverter: typeof import('./src/tools/morse-converter/morse-converter.vue')['default']
|
||||
MsgpackToJson: typeof import('./src/tools/msgpack-to-json/msgpack-to-json.vue')['default']
|
||||
MttdlCalculator: typeof import('./src/tools/mttdl-calculator/mttdl-calculator.vue')['default']
|
||||
MultiLinkDownloader: typeof import('./src/tools/multi-link-downloader/multi-link-downloader.vue')['default']
|
||||
MyIp: typeof import('./src/tools/my-ip/my-ip.vue')['default']
|
||||
NA: typeof import('naive-ui')['NA']
|
||||
NanoidGenerator: typeof import('./src/tools/nanoid-generator/nanoid-generator.vue')['default']
|
||||
NanoMemo: typeof import('./src/tools/nano-memo/nano-memo.vue')['default']
|
||||
'NanoMemo.content': typeof import('./src/tools/nano-memo/nano-memo.content.md')['default']
|
||||
NavbarButtons: typeof import('./src/components/NavbarButtons.vue')['default']
|
||||
NButton: typeof import('naive-ui')['NButton']
|
||||
NCheckbox: typeof import('naive-ui')['NCheckbox']
|
||||
NCode: typeof import('naive-ui')['NCode']
|
||||
NColorPicker: typeof import('naive-ui')['NColorPicker']
|
||||
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
|
||||
NDivider: typeof import('naive-ui')['NDivider']
|
||||
NEllipsis: typeof import('naive-ui')['NEllipsis']
|
||||
NForm: typeof import('naive-ui')['NForm']
|
||||
NFormItem: typeof import('naive-ui')['NFormItem']
|
||||
NGi: typeof import('naive-ui')['NGi']
|
||||
NginxFormatter: typeof import('./src/tools/nginx-formatter/nginx-formatter.vue')['default']
|
||||
NginxMemo: typeof import('./src/tools/nginx-memo/nginx-memo.vue')['default']
|
||||
'NginxMemo.content': typeof import('./src/tools/nginx-memo/nginx-memo.content.md')['default']
|
||||
NGrid: typeof import('naive-ui')['NGrid']
|
||||
NH1: typeof import('naive-ui')['NH1']
|
||||
NH3: typeof import('naive-ui')['NH3']
|
||||
NicewareBytesToPassphrase: typeof import('./src/tools/niceware-bytes-to-passphrase/niceware-bytes-to-passphrase.vue')['default']
|
||||
NIcon: typeof import('naive-ui')['NIcon']
|
||||
NImage: typeof import('naive-ui')['NImage']
|
||||
NInputNumberI18n: typeof import('./src/ui/n-input-number-i18n/n-input-number-i18n.vue')['default']
|
||||
'NInputNumberI18n.demo': typeof import('./src/ui/n-input-number-i18n/n-input-number-i18n.demo.vue')['default']
|
||||
NLayout: typeof import('naive-ui')['NLayout']
|
||||
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
|
||||
NMenu: typeof import('naive-ui')['NMenu']
|
||||
NP: typeof import('naive-ui')['NP']
|
||||
NScrollbar: typeof import('naive-ui')['NScrollbar']
|
||||
NSelect: typeof import('naive-ui')['NSelect']
|
||||
NSpace: typeof import('naive-ui')['NSpace']
|
||||
NTable: typeof import('naive-ui')['NTable']
|
||||
NTag: typeof import('naive-ui')['NTag']
|
||||
NTooltip: typeof import('naive-ui')['NTooltip']
|
||||
NumberInput: typeof import('./src/tools/pomodoro-timer/app/components/NumberInput.vue')['default']
|
||||
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
|
||||
OcrImage: typeof import('./src/tools/ocr-image/ocr-image.vue')['default']
|
||||
Option43Generator: typeof import('./src/tools/option43-generator/option43-generator.vue')['default']
|
||||
OtpCodeGeneratorAndValidator: typeof import('./src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue')['default']
|
||||
OutlookParser: typeof import('./src/tools/outlook-parser/outlook-parser.vue')['default']
|
||||
PackFilesForAi: typeof import('./src/tools/pack-files-for-ai/pack-files-for-ai.vue')['default']
|
||||
ParquetsReader: typeof import('./src/tools/parquets-reader/parquets-reader.vue')['default']
|
||||
PasetoEncryption: typeof import('./src/tools/paseto-encryption/paseto-encryption.vue')['default']
|
||||
PasetoSigning: typeof import('./src/tools/paseto-signing/paseto-signing.vue')['default']
|
||||
PassphraseGenerator: typeof import('./src/tools/passphrase-generator/passphrase-generator.vue')['default']
|
||||
PasswordStrengthAnalyser: typeof import('./src/tools/password-strength-analyser/password-strength-analyser.vue')['default']
|
||||
PasteAsMarkdown: typeof import('./src/tools/paste-as-markdown/paste-as-markdown.vue')['default']
|
||||
PdfCompressor: typeof import('./src/tools/pdf-compressor/pdf-compressor.vue')['default']
|
||||
PdfConcat: typeof import('./src/tools/pdf-concat/pdf-concat.vue')['default']
|
||||
PdfEncrypt: typeof import('./src/tools/pdf-encrypt/pdf-encrypt.vue')['default']
|
||||
PdfExtract: typeof import('./src/tools/pdf-extract/pdf-extract.vue')['default']
|
||||
PdfLinearize: typeof import('./src/tools/pdf-linearize/pdf-linearize.vue')['default']
|
||||
PdfSignatureChecker: typeof import('./src/tools/pdf-signature-checker/pdf-signature-checker.vue')['default']
|
||||
PdfSignatureDetails: typeof import('./src/tools/pdf-signature-checker/components/pdf-signature-details.vue')['default']
|
||||
PdfTextExtractor: typeof import('./src/tools/pdf-text-extractor/pdf-text-extractor.vue')['default']
|
||||
PdfUnlock: typeof import('./src/tools/pdf-unlock/pdf-unlock.vue')['default']
|
||||
PercentageCalculator: typeof import('./src/tools/percentage-calculator/percentage-calculator.vue')['default']
|
||||
PgpEncryption: typeof import('./src/tools/pgp-encryption/pgp-encryption.vue')['default']
|
||||
PgpKeygen: typeof import('./src/tools/pgp-keygen/pgp-keygen.vue')['default']
|
||||
PhoneParserAndFormatter: typeof import('./src/tools/phone-parser-and-formatter/phone-parser-and-formatter.vue')['default']
|
||||
PhpArrayToJson: typeof import('./src/tools/php-array-to-json/php-array-to-json.vue')['default']
|
||||
PinCodeGenerator: typeof import('./src/tools/pin-code-generator/pin-code-generator.vue')['default']
|
||||
PlayPauseBtn: typeof import('./src/tools/pomodoro-timer/app/components/PlayPauseBtn.vue')['default']
|
||||
PomodoroAbout: typeof import('./src/tools/pomodoro-timer/app/views/PomodoroAbout.vue')['default']
|
||||
PomodoroApp: typeof import('./src/tools/pomodoro-timer/app/PomodoroApp.vue')['default']
|
||||
PomodoroTimer: typeof import('./src/tools/pomodoro-timer/pomodoro-timer.vue')['default']
|
||||
PortNumbers: typeof import('./src/tools/port-numbers/port-numbers.vue')['default']
|
||||
Potrace: typeof import('./src/tools/potrace/potrace.vue')['default']
|
||||
PowerConverter: typeof import('./src/tools/power-converter/power-converter.vue')['default']
|
||||
PressureConverter: typeof import('./src/tools/pressure-converter/pressure-converter.vue')['default']
|
||||
ProgressBar: typeof import('./src/tools/pomodoro-timer/app/components/ProgressBar.vue')['default']
|
||||
PropertiesConverter: typeof import('./src/tools/properties-converter/properties-converter.vue')['default']
|
||||
PunycodeConverter: typeof import('./src/tools/punycode-converter/punycode-converter.vue')['default']
|
||||
QrCodeDecoder: typeof import('./src/tools/qr-code-decoder/qr-code-decoder.vue')['default']
|
||||
QrCodeGenerator: typeof import('./src/tools/qr-code-generator/qr-code-generator.vue')['default']
|
||||
QrContactInfoGenerator: typeof import('./src/tools/qr-contact-info-generator/qr-contact-info-generator.vue')['default']
|
||||
QuoteConverter: typeof import('./src/tools/quote-converter/quote-converter.vue')['default']
|
||||
RaidCalculator: typeof import('./src/tools/raid-calculator/raid-calculator.vue')['default']
|
||||
RandomNumbersGenerator: typeof import('./src/tools/random-numbers-generator/random-numbers-generator.vue')['default']
|
||||
RandomPortGenerator: typeof import('./src/tools/random-port-generator/random-port-generator.vue')['default']
|
||||
RegexMemo: typeof import('./src/tools/regex-memo/regex-memo.vue')['default']
|
||||
'RegexMemo.content': typeof import('./src/tools/regex-memo/regex-memo.content.md')['default']
|
||||
RegexTester: typeof import('./src/tools/regex-tester/regex-tester.vue')['default']
|
||||
RemoveExif: typeof import('./src/tools/remove-exif/remove-exif.vue')['default']
|
||||
RemPxConverter: typeof import('./src/tools/rem-px-converter/rem-px-converter.vue')['default']
|
||||
ResetDropup: typeof import('./src/tools/pomodoro-timer/app/components/ResetDropup.vue')['default']
|
||||
ResistorCalculator: typeof import('./src/tools/resistor-calculator/resistor-calculator.vue')['default']
|
||||
ResultRow: typeof import('./src/tools/ipv4-range-expander/result-row.vue')['default']
|
||||
RmbNumbers: typeof import('./src/tools/rmb-numbers/rmb-numbers.vue')['default']
|
||||
RomanNumeralConverter: typeof import('./src/tools/roman-numeral-converter/roman-numeral-converter.vue')['default']
|
||||
RouterLink: typeof import('vue-router')['RouterLink']
|
||||
RouterView: typeof import('vue-router')['RouterView']
|
||||
RsaEcdsaSigning: typeof import('./src/tools/rsa-ecdsa-signing/rsa-ecdsa-signing.vue')['default']
|
||||
RsaEncryption: typeof import('./src/tools/rsa-encryption/rsa-encryption.vue')['default']
|
||||
RsaKeyPairGenerator: typeof import('./src/tools/rsa-key-pair-generator/rsa-key-pair-generator.vue')['default']
|
||||
RsyncGenerator: typeof import('./src/tools/rsync-generator/rsync-generator.vue')['default']
|
||||
RuneConverter: typeof import('./src/tools/rune-converter/rune-converter.vue')['default']
|
||||
SafelinkDecoder: typeof import('./src/tools/safelink-decoder/safelink-decoder.vue')['default']
|
||||
Sed: typeof import('./src/tools/sed-memo/sed.md')['default']
|
||||
SedCommandGenerator: typeof import('./src/tools/sed-command-generator/sed-command-generator.vue')['default']
|
||||
SedMemo: typeof import('./src/tools/sed-memo/sed-memo.vue')['default']
|
||||
SensitiveDataMasker: typeof import('./src/tools/sensitive-data-masker/sensitive-data-masker.vue')['default']
|
||||
SerialConsole: typeof import('./src/tools/serial-console/serial-console.vue')['default']
|
||||
Settings: typeof import('./src/tools/pomodoro-timer/app/views/Settings.vue')['default']
|
||||
SharepointDecoder: typeof import('./src/tools/sharepoint-decoder/sharepoint-decoder.vue')['default']
|
||||
SipAuth: typeof import('./src/tools/sip-auth/sip-auth.vue')['default']
|
||||
SlaCalculator: typeof import('./src/tools/sla-calculator/sla-calculator.vue')['default']
|
||||
SlugifyString: typeof import('./src/tools/slugify-string/slugify-string.vue')['default']
|
||||
SmartRawConverter: typeof import('./src/tools/smart-raw-converter/smart-raw-converter.vue')['default']
|
||||
SmartTextReplacer: typeof import('./src/tools/smart-text-replacer/smart-text-replacer.vue')['default']
|
||||
SnowflakeIdExtractor: typeof import('./src/tools/snowflake-id-extractor/snowflake-id-extractor.vue')['default']
|
||||
SocialLinkSharer: typeof import('./src/tools/social-link-sharer/social-link-sharer.vue')['default']
|
||||
SoftwareLicenceCompatibility: typeof import('./src/tools/software-licence-compatibility/software-licence-compatibility.vue')['default']
|
||||
SpanCopyable: typeof import('./src/components/SpanCopyable.vue')['default']
|
||||
SpfDnsGenerator: typeof import('./src/tools/spf-dns-generator/spf-dns-generator.vue')['default']
|
||||
SplashScreen: typeof import('./src/tools/pomodoro-timer/app/views/SplashScreen.vue')['default']
|
||||
SqlMinifier: typeof import('./src/tools/sql-minifier/sql-minifier.vue')['default']
|
||||
SqlParameters: typeof import('./src/tools/sql-parameters/sql-parameters.vue')['default']
|
||||
SqlPrettify: typeof import('./src/tools/sql-prettify/sql-prettify.vue')['default']
|
||||
SslCertConverter: typeof import('./src/tools/ssl-cert-converter/ssl-cert-converter.vue')['default']
|
||||
StacktracePrettier: typeof import('./src/tools/stacktrace-prettier/stacktrace-prettier.vue')['default']
|
||||
StringEscaper: typeof import('./src/tools/string-escaper/string-escaper.vue')['default']
|
||||
StringObfuscator: typeof import('./src/tools/string-obfuscator/string-obfuscator.vue')['default']
|
||||
SvgPlaceholderGenerator: typeof import('./src/tools/svg-placeholder-generator/svg-placeholder-generator.vue')['default']
|
||||
SwaggerUiTester: typeof import('./src/tools/swagger-ui-tester/swagger-ui-tester.vue')['default']
|
||||
TcpdumpGenerator: typeof import('./src/tools/tcpdump-generator/tcpdump-generator.vue')['default']
|
||||
TemperatureConverter: typeof import('./src/tools/temperature-converter/temperature-converter.vue')['default']
|
||||
TextareaCopyable: typeof import('./src/components/TextareaCopyable.vue')['default']
|
||||
TextDiff: typeof import('./src/tools/text-diff/text-diff.vue')['default']
|
||||
TextStatistics: typeof import('./src/tools/text-statistics/text-statistics.vue')['default']
|
||||
TextToBinary: typeof import('./src/tools/text-to-binary/text-to-binary.vue')['default']
|
||||
TextToNatoAlphabet: typeof import('./src/tools/text-to-nato-alphabet/text-to-nato-alphabet.vue')['default']
|
||||
TextToUnicode: typeof import('./src/tools/text-to-unicode/text-to-unicode.vue')['default']
|
||||
TextToUnicodeNames: typeof import('./src/tools/text-to-unicode-names/text-to-unicode-names.vue')['default']
|
||||
TimeAlarm: typeof import('./src/tools/time-alarm/time-alarm.vue')['default']
|
||||
TimezoneConverter: typeof import('./src/tools/timezone-converter/timezone-converter.vue')['default']
|
||||
TLVTagTree: typeof import('./src/tools/emv-tlv-decoder/TLVTagTree.vue')['default']
|
||||
TokenDisplay: typeof import('./src/tools/otp-code-generator-and-validator/token-display.vue')['default']
|
||||
'TokenGenerator.tool': typeof import('./src/tools/token-generator/token-generator.tool.vue')['default']
|
||||
TomlLinter: typeof import('./src/tools/toml-linter/toml-linter.vue')['default']
|
||||
TomlToJson: typeof import('./src/tools/toml-to-json/toml-to-json.vue')['default']
|
||||
TomlToYaml: typeof import('./src/tools/toml-to-yaml/toml-to-yaml.vue')['default']
|
||||
'Tool.layout': typeof import('./src/layouts/tool.layout.vue')['default']
|
||||
ToolCard: typeof import('./src/components/ToolCard.vue')['default']
|
||||
TorrentToMagnet: typeof import('./src/tools/torrent-to-magnet/torrent-to-magnet.vue')['default']
|
||||
TraefikComposeMaker: typeof import('./src/tools/traefik-compose-maker/traefik-compose-maker.vue')['default']
|
||||
Translator: typeof import('./src/tools/translator/translator.vue')['default']
|
||||
TtlCalculator: typeof import('./src/tools/ttl-calculator/ttl-calculator.vue')['default']
|
||||
UlidGenerator: typeof import('./src/tools/ulid-generator/ulid-generator.vue')['default']
|
||||
UnicodeCharactersToJavaEntities: typeof import('./src/tools/unicode-characters-to-java-entities-converter/unicode-characters-to-java-entities.vue')['default']
|
||||
UnicodeFormatter: typeof import('./src/tools/unicode-formatter/unicode-formatter.vue')['default']
|
||||
UnicodeSearch: typeof import('./src/tools/unicode-search/unicode-search.vue')['default']
|
||||
UnicodeToGsm7: typeof import('./src/tools/unicode-to-gsm7/unicode-to-gsm7.vue')['default']
|
||||
UnitsConverter: typeof import('./src/components/UnitsConverter.vue')['default']
|
||||
UrlCleaner: typeof import('./src/tools/url-cleaner/url-cleaner.vue')['default']
|
||||
UrlEncoder: typeof import('./src/tools/url-encoder/url-encoder.vue')['default']
|
||||
UrlFanger: typeof import('./src/tools/url-fanger/url-fanger.vue')['default']
|
||||
UrlParser: typeof import('./src/tools/url-parser/url-parser.vue')['default']
|
||||
UrlTextFragmentMaker: typeof import('./src/tools/url-text-fragment-maker/url-text-fragment-maker.vue')['default']
|
||||
UserAgentParser: typeof import('./src/tools/user-agent-parser/user-agent-parser.vue')['default']
|
||||
UserAgentResultCards: typeof import('./src/tools/user-agent-parser/user-agent-result-cards.vue')['default']
|
||||
UtmUrlGenerator: typeof import('./src/tools/utm-url-generator/utm-url-generator.vue')['default']
|
||||
UuidConverter: typeof import('./src/tools/uuid-converter/uuid-converter.vue')['default']
|
||||
UuidGenerator: typeof import('./src/tools/uuid-generator/uuid-generator.vue')['default']
|
||||
VatValidator: typeof import('./src/tools/vat-validator/vat-validator.vue')['default']
|
||||
VimMemo: typeof import('./src/tools/vim-memo/vim-memo.vue')['default']
|
||||
'VimMemo.content': typeof import('./src/tools/vim-memo/vim-memo.content.md')['default']
|
||||
VolumeConverter: typeof import('./src/tools/volume-converter/volume-converter.vue')['default']
|
||||
Watermarker: typeof import('./src/tools/watermarker/watermarker.vue')['default']
|
||||
WebsocketTester: typeof import('./src/tools/websocket-tester/websocket-tester.vue')['default']
|
||||
WeekNumberConverter: typeof import('./src/tools/week-number-converter/week-number-converter.vue')['default']
|
||||
WhichDay: typeof import('./src/tools/which-day/which-day.vue')['default']
|
||||
WifiQrCodeGenerator: typeof import('./src/tools/wifi-qr-code-generator/wifi-qr-code-generator.vue')['default']
|
||||
WireguardConfigGenerator: typeof import('./src/tools/wireguard-config-generator/wireguard-config-generator.vue')['default']
|
||||
WpaPskGenerator: typeof import('./src/tools/wpa-psk-generator/wpa-psk-generator.vue')['default']
|
||||
X509CertificateGenerator: typeof import('./src/tools/x509-certificate-generator/x509-certificate-generator.vue')['default']
|
||||
XmlFormatter: typeof import('./src/tools/xml-formatter/xml-formatter.vue')['default']
|
||||
XmlLinter: typeof import('./src/tools/xml-linter/xml-linter.vue')['default']
|
||||
XmlToJson: typeof import('./src/tools/xml-to-json/xml-to-json.vue')['default']
|
||||
Xpath: typeof import('./src/tools/xpath-memo/xpath.md')['default']
|
||||
XpathMemo: typeof import('./src/tools/xpath-memo/xpath-memo.vue')['default']
|
||||
XpathTester: typeof import('./src/tools/xpath-tester/xpath-tester.vue')['default']
|
||||
XsltTester: typeof import('./src/tools/xslt-tester/xslt-tester.vue')['default']
|
||||
XVrSpamcauseDecoder: typeof import('./src/tools/x-vr-spamcause-decoder/x-vr-spamcause-decoder.vue')['default']
|
||||
YamlFlattenNestify: typeof import('./src/tools/yaml-flatten-nestify/yaml-flatten-nestify.vue')['default']
|
||||
YamlMerger: typeof import('./src/tools/yaml-merger/yaml-merger.vue')['default']
|
||||
YamlToJson: typeof import('./src/tools/yaml-to-json-converter/yaml-to-json.vue')['default']
|
||||
YamlToToml: typeof import('./src/tools/yaml-to-toml/yaml-to-toml.vue')['default']
|
||||
YamlViewer: typeof import('./src/tools/yaml-viewer/yaml-viewer.vue')['default']
|
||||
'Zpool.content': typeof import('./src/tools/zpool-memo/zpool.content.md')['default']
|
||||
ZpoolCalculator: typeof import('./src/tools/zpool-calculator/zpool-calculator.vue')['default']
|
||||
ZpoolMemo: typeof import('./src/tools/zpool-memo/zpool-memo.vue')['default']
|
||||
ZxcvbnPasswordStrength: typeof import('./src/tools/zxcvbn-password-strength/zxcvbn-password-strength.vue')['default']
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,6 @@
|
||||
"description": "Some description",
|
||||
"keywords": ["some"],
|
||||
"category": "Links",
|
||||
"markdownContent": "Some useful **text**\n\nin *markdown*"
|
||||
"markdownContent": "Some useful **text**\n\nin *markdown*\n\nAnd link to [GitHub](https://github.com)"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1763464769,
|
||||
"narHash": "sha256-AJHrsT7VoeQzErpBRlLJM1SODcaayp0joAoEA35yiwM=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "6f374686605df381de8541c072038472a5ea2e2d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, ... }:
|
||||
let
|
||||
eachSystem = f:
|
||||
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (system: f nixpkgs.legacyPackages.${system});
|
||||
in
|
||||
{
|
||||
devShells = eachSystem (pkgs:
|
||||
let
|
||||
playwright-browsers = pkgs.playwright-driver.browsers.override {
|
||||
withFirefox = true;
|
||||
withWebkit = true;
|
||||
withFfmpeg = false;
|
||||
};
|
||||
in
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
packages = [
|
||||
pkgs.nodejs_22
|
||||
pkgs.pnpm
|
||||
pkgs.nodePackages.typescript
|
||||
pkgs.nodePackages.typescript-language-server
|
||||
playwright-browsers
|
||||
pkgs.playwright-test
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
export PLAYWRIGHT_NODEJS_PATH="${pkgs.nodejs_22}/bin/node";
|
||||
export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
|
||||
export PLAYWRIGHT_BROWSERS_PATH="${playwright-browsers}"
|
||||
export PLAYWRIGHT_HOST_PLATFORM_OVERRIDE="ubuntu-24.04"
|
||||
'';
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
@@ -12,6 +12,7 @@
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png" />
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png" />
|
||||
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#18a058" />
|
||||
|
||||
<meta name="msapplication-TileColor" content="#da532c" />
|
||||
<meta name="theme-color" content="#ffffff" />
|
||||
|
||||
@@ -29,5 +30,9 @@
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
<link rel="preload" href="home.custom.md" as="fetch" crossorigin="anonymous" />
|
||||
<link rel="preload" href="tools-filter.json" as="fetch" crossorigin="anonymous" />
|
||||
<link rel="preload" href="external-tools.json" as="fetch" crossorigin="anonymous" />
|
||||
<link rel="preload" href="tools-settings.json" as="fetch" crossorigin="anonymous" />
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,17 +1,24 @@
|
||||
server {
|
||||
listen 8080;
|
||||
listen [::]:8080;
|
||||
listen ${PORT};
|
||||
listen [::]:${PORT};
|
||||
server_name _;
|
||||
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 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 Cross-Origin-Embedder-Policy require-corp;
|
||||
#add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' http: https: blob:; style-src 'self' 'unsafe-inline' https: http:; img-src 'self' data: blob: https: http:; connect-src data: blob: https: http:; font-src 'self' https: http:; object-src 'none'; base-uri 'self'; form-action 'self';";
|
||||
|
||||
include /etc/nginx/mime.types;
|
||||
types {
|
||||
application/javascript js mjs;
|
||||
}
|
||||
|
||||
location / {
|
||||
rewrite ^/it-tools/(.*) /$1 break;
|
||||
try_files $uri $uri/ /index.html;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "it-tools",
|
||||
"type": "module",
|
||||
"version": "2025.12.7",
|
||||
"packageManager": "pnpm@9.11.0",
|
||||
"version": "2026.1.4",
|
||||
"packageManager": "pnpm@9.15.9",
|
||||
"description": "Collection of handy online tools for developers, with great UX. ",
|
||||
"author": "Corentin Th <corentin.thomasset74+it-tools@gmail.com> (https://corentin.tech)",
|
||||
"license": "GNU GPLv3",
|
||||
@@ -38,13 +38,17 @@
|
||||
"script:extract:desc": "node ./scripts/extract-tools-desc.mjs",
|
||||
"script:extract:strings": "node ./scripts/extract-tools-strings.mjs",
|
||||
"script:translate-missing": "node ./scripts/translate-missings.mjs -e ./locales/en.yml -t ./locales/*.yml",
|
||||
"vue-i18n-extract": "vue-i18n-extract report --vueFiles 'src/**/*.?(ts|vue)' --languageFiles 'locales/*.yml'"
|
||||
"vue-i18n-extract": "vue-i18n-extract report --vueFiles 'src/**/*.?(ts|vue)' --languageFiles 'locales/*.yml'",
|
||||
"precommit": "pnpm install --ignore-scripts && pnpm lint --fix && pnpm typecheck"
|
||||
},
|
||||
"dependencies": {
|
||||
"@chenfengyuan/vue-barcode": "^2.0.2",
|
||||
"@date-fns/utc": "^2.0.0",
|
||||
"@date-fns/utc": "^2.1.1",
|
||||
"@dice-roller/rpg-dice-roller": "^5.5.1",
|
||||
"@faker-js/faker": "^9.7.0",
|
||||
"@faker-js/faker": "^10.2.0",
|
||||
"@ffmpeg/ffmpeg": "^0.12.15",
|
||||
"@ffmpeg/util": "^0.12.2",
|
||||
"@finegym/fitness-calc": "^1.0.1",
|
||||
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
||||
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
||||
"@fortawesome/vue-fontawesome": "^3.0.8",
|
||||
@@ -52,42 +56,42 @@
|
||||
"@guolao/vue-monaco-editor": "^1.5.5",
|
||||
"@guyplusplus/turndown-plugin-gfm": "^1.0.7",
|
||||
"@huggingface/transformers": "3.7.2",
|
||||
"@iplookup/country-extra": "^1.0.20250317",
|
||||
"@iplookup/country-extra": "^1.0.20251209",
|
||||
"@it-tools/bip39": "^0.0.4",
|
||||
"@it-tools/oggen": "^1.3.0",
|
||||
"@jsonquerylang/jsonquery": "^5.0.4",
|
||||
"@jsonquerylang/jsonquery": "^5.1.1",
|
||||
"@kenjiuno/decompressrtf": "^0.1.4",
|
||||
"@kenjiuno/msgreader": "^1.22.0",
|
||||
"@kenjiuno/msgreader": "^1.27.0",
|
||||
"@langfreak/convert-layout": "^0.11.2",
|
||||
"@mdit/plugin-align": "^0.16.0",
|
||||
"@noble/ciphers": "^1.2.1",
|
||||
"@regexper/render": "^1.0.0",
|
||||
"@sindresorhus/slugify": "^2.2.1",
|
||||
"@sindresorhus/slugify": "^3.0.0",
|
||||
"@skeepit/unicode-to-gsm7": "^1.0.0",
|
||||
"@tabler/icons-vue": "^3.20.0",
|
||||
"@tiptap/core": "2.26.1",
|
||||
"@tiptap/extension-color": "^2.11.5",
|
||||
"@tiptap/extension-gapcursor": "^2.11.5",
|
||||
"@tiptap/extension-highlight": "^2.11.5",
|
||||
"@tiptap/extension-table": "^2.11.5",
|
||||
"@tiptap/extension-table-cell": "^2.11.5",
|
||||
"@tiptap/extension-table-header": "^2.11.5",
|
||||
"@tiptap/extension-table-row": "^2.11.5",
|
||||
"@tiptap/extension-text-style": "^2.11.5",
|
||||
"@tiptap/pm": "2.26.1",
|
||||
"@tiptap/starter-kit": "2.26.1",
|
||||
"@tiptap/vue-3": "2.26.1",
|
||||
"@toon-format/toon": "^1.3.0",
|
||||
"@tiptap/core": "^3.22.5",
|
||||
"@tiptap/extension-color": "^3.22.5",
|
||||
"@tiptap/extension-gapcursor": "^3.22.5",
|
||||
"@tiptap/extension-highlight": "^3.22.5",
|
||||
"@tiptap/extension-table": "^3.22.5",
|
||||
"@tiptap/extension-text-align": "^3.22.5",
|
||||
"@tiptap/extension-text-style": "^3.22.5",
|
||||
"@tiptap/extensions": "^3.22.5",
|
||||
"@tiptap/pm": "^3.22.5",
|
||||
"@tiptap/starter-kit": "^3.22.5",
|
||||
"@tiptap/vue-3": "^3.22.5",
|
||||
"@toon-format/toon": "^2.1.0",
|
||||
"@types/haversine": "^1.1.8",
|
||||
"@types/html-to-text": "^9.0.4",
|
||||
"@types/swagger-ui-dist": "^3.30.6",
|
||||
"@unicode/unicode-15.1.0": "^1.6.6",
|
||||
"@unicode/unicode-15.1.0": "^1.6.16",
|
||||
"@vicons/material": "^0.12.0",
|
||||
"@vicons/tabler": "^0.12.0",
|
||||
"@vueuse/core": "^10.11.1",
|
||||
"@vueuse/head": "^1.0.0",
|
||||
"@vueuse/integrations": "^14.2.0",
|
||||
"@vueuse/router": "^10.0.0",
|
||||
"@xmldom/xmldom": "^0.8.10",
|
||||
"@xmldom/xmldom": "^0.8.13",
|
||||
"@xterm/xterm": "^5.5.0",
|
||||
"@younestouati/playing-cards-standard-deck": "^6.0.1",
|
||||
"@zxcvbn-ts/core": "^3.0.4",
|
||||
@@ -97,19 +101,22 @@
|
||||
"a11y-color-contrast": "^0.2.0",
|
||||
"abort-signal-polyfill": "^1.0.0",
|
||||
"aircodes": "^1.3.16",
|
||||
"ajv": "^8.17.1",
|
||||
"ajv": "^8.20.0",
|
||||
"ajv-errors": "^3.0.0",
|
||||
"ansi-styles": "^6.2.1",
|
||||
"ansi-styles": "^6.2.3",
|
||||
"ansible-vault": "^1.3.0",
|
||||
"apache-md5": "^1.1.8",
|
||||
"arr-diff": "^4.0.0",
|
||||
"bcryptjs": "^3.0.3",
|
||||
"big.js": "^6.2.2",
|
||||
"bech32": "^2.0.0",
|
||||
"big.js": "^7.0.1",
|
||||
"braces": "^3.0.3",
|
||||
"bwip-js": "^4.5.1",
|
||||
"bwip-js": "^4.8.0",
|
||||
"byte-data": "^19.0.1",
|
||||
"change-case": "^5.4.4",
|
||||
"chardet": "^2.1.0",
|
||||
"chardet": "^2.1.1",
|
||||
"chart.js": "^4.5.1",
|
||||
"chartjs-plugin-zoom": "^2.2.0",
|
||||
"chatgpt-prompt-splitter": "^1.0.5",
|
||||
"chinesegen": "^0.3.3",
|
||||
"cidr-tools": "^11.0.3",
|
||||
@@ -117,15 +124,15 @@
|
||||
"colord": "^2.9.3",
|
||||
"composerize": "^1.7.5",
|
||||
"composeverter": "^1.7.5",
|
||||
"convert": "^5.7.0",
|
||||
"countries-and-timezones": "^3.7.2",
|
||||
"convert": "^6.0.0",
|
||||
"countries-and-timezones": "^3.8.0",
|
||||
"countries-db": "^1.2.0",
|
||||
"country-code-lookup": "^0.1.3",
|
||||
"crc": "^4.3.2",
|
||||
"creditcard": "^0.1.3",
|
||||
"creditcard-generator": "^0.0.7",
|
||||
"cron-parser": "^4.9.0",
|
||||
"cron-validator": "^1.3.1",
|
||||
"cron-parser": "4.9.0",
|
||||
"cron-validator": "^1.4.0",
|
||||
"cronstrue": "^3.0.0",
|
||||
"cross-spawn": "^7.0.6",
|
||||
"crypto-js": "^4.2.0",
|
||||
@@ -135,39 +142,44 @@
|
||||
"currency-exchanger-js": "^1.0.4",
|
||||
"damerau-levenshtein": "^1.0.8",
|
||||
"data-guardian": "^1.1.3",
|
||||
"date-fns": "^4.0.0",
|
||||
"date-holidays": "^3.23.21",
|
||||
"date-fns": "^4.1.0",
|
||||
"date-fns-tz": "^3.2.0",
|
||||
"date-holidays": "^3.27.0",
|
||||
"decimal.js": "^10.6.0",
|
||||
"decomposerize": "^1.4.4",
|
||||
"detect-csv": "^1.1.0",
|
||||
"diceware-generator": "^3.0.1",
|
||||
"diceware-wordlist-en": "^1.0.0",
|
||||
"diceware-wordlist-en-eff": "^1.0.1",
|
||||
"diceware-wordlist-jp": "^1.0.1",
|
||||
"diceware-wordlist-ru": "^1.0.0",
|
||||
"diceware-wordlist-sp": "^1.0.0",
|
||||
"diceware-wordlist-swe": "^1.0.1",
|
||||
"dmarc-report-parser": "^0.1.5",
|
||||
"dns-query": "^0.11.2",
|
||||
"docker2kube": "^0.0.14",
|
||||
"dom-to-image-more": "^3.5.0",
|
||||
"dompurify": "^3.2.6",
|
||||
"dom-to-image-more": "^3.7.2",
|
||||
"dompurify": "^3.4.2",
|
||||
"duration-fns": "^3.0.2",
|
||||
"email-bounce-parser-browser": "^1.1.0",
|
||||
"email-normalizer": "^1.0.0",
|
||||
"emojilib": "^4.0.2",
|
||||
"ethers": "^6.15.0",
|
||||
"event-cron-parser": "^1.0.35",
|
||||
"epubjs": "^0.3.93",
|
||||
"ethers": "^6.16.0",
|
||||
"event-cron-parser": "^1.0.37",
|
||||
"exif-be-gone": "^1.5.1",
|
||||
"exifreader": "^4.26.1",
|
||||
"exifreader": "^4.33.1",
|
||||
"fanger": "^0.3.1",
|
||||
"fast-xml-parser": "^5.2.5",
|
||||
"fast-xml-parser": "^5.7.2",
|
||||
"fast_array_intersect": "^1.1.0",
|
||||
"fflate": "^0.8.2",
|
||||
"figlet": "^1.8.2",
|
||||
"figlet": "^1.9.4",
|
||||
"figue": "^1.2.0",
|
||||
"file-type": "^21.0.0",
|
||||
"file-type": "^21.2.0",
|
||||
"flatten-anything": "^4.0.2",
|
||||
"flexsearch": "^0.8.205",
|
||||
"flexsearch": "^0.8.212",
|
||||
"fuse.js": "^7.1.0",
|
||||
"gcoord": "^1.0.7",
|
||||
"generate-schema": "^2.6.0",
|
||||
"get-timezone-offset": "^1.0.5",
|
||||
"ghostscript-wasm-esm": "^1.0.1",
|
||||
@@ -178,31 +190,35 @@
|
||||
"hex-array": "^1.0.0",
|
||||
"highlight.js": "^11.11.1",
|
||||
"html-to-text": "^9.0.5",
|
||||
"htmlfy": "^1.0.0",
|
||||
"hyparquet": "^1.9.0",
|
||||
"hyparquet-compressors": "^1.0.0",
|
||||
"htmlfy": "^1.0.1",
|
||||
"htmlparser2": "^10.0.0",
|
||||
"hyparquet": "^1.23.3",
|
||||
"hyparquet-compressors": "^1.1.1",
|
||||
"ibantools": "^4.5.1",
|
||||
"ical-generator": "^8.1.1",
|
||||
"ical.js": "^2.2.0",
|
||||
"iconv-lite": "^0.7.0",
|
||||
"ical-generator": "^10.0.0",
|
||||
"ical.js": "^2.2.1",
|
||||
"iconv-lite": "^0.7.1",
|
||||
"idb-keyval": "^6.2.2",
|
||||
"image-compare-viewer": "^1.6.2",
|
||||
"image-in-browser": "^3.2.3",
|
||||
"image-in-browser": "^3.3.0",
|
||||
"image-to-ascii-art": "^0.0.4",
|
||||
"ip-address": "^10.0.0",
|
||||
"ip-bigint": "^8.2.1",
|
||||
"ip-address": "^10.1.0",
|
||||
"ip-bigint": "^8.2.2",
|
||||
"ip-cidr": "^4.0.2",
|
||||
"ip-matching": "^2.1.2",
|
||||
"ip-regex": "^5.0.0",
|
||||
"is-cidr": "^6.0.1",
|
||||
"is-ip": "^5.0.1",
|
||||
"isbn3": "^1.2.12",
|
||||
"isbn3": "^2.0.2",
|
||||
"iso-639-1": "^3.1.5",
|
||||
"jasypt": "^1.0.7",
|
||||
"javascript-obfuscator": "^5.1.0",
|
||||
"javastack.js": "^1.0.3",
|
||||
"jks-js": "^1.1.4",
|
||||
"jose": "^5.10.0",
|
||||
"jose": "5.10.0",
|
||||
"jpeg-quality-estimator": "^1.0.1",
|
||||
"jq-wasm": "^1.0.1",
|
||||
"js-base64": "^3.7.7",
|
||||
"js-base64": "^3.7.8",
|
||||
"js-beautify": "^1.15.4",
|
||||
"js-tiktoken": "^1.0.21",
|
||||
"jsbarcode": "^3.12.1",
|
||||
@@ -212,8 +228,8 @@
|
||||
"json5": "^2.2.3",
|
||||
"jsonar-mod": "^1.9.0",
|
||||
"jsonlint-mod": "^1.7.6",
|
||||
"jsonpath": "^1.1.1",
|
||||
"jsonrepair": "^3.13.0",
|
||||
"jsonpath": "^1.3.0",
|
||||
"jsonrepair": "^3.13.1",
|
||||
"jsonschema": "^1.5.0",
|
||||
"jsonschema-protobuf": "^1.0.2",
|
||||
"jsstack.js": "^2.0.0",
|
||||
@@ -221,51 +237,54 @@
|
||||
"jszip": "^3.10.1",
|
||||
"jwt-decode": "^4.0.0",
|
||||
"korean-unpacker": "^1.0.3",
|
||||
"libmime": "^5.3.7",
|
||||
"libphonenumber-js": "^1.12.10",
|
||||
"lodash": "^4.17.21",
|
||||
"langs": "^2.0.0",
|
||||
"leaflet": "^1.9.4",
|
||||
"libmime": "^5.3.8",
|
||||
"libphonenumber-js": "^1.12.33",
|
||||
"lodash": "^4.18.1",
|
||||
"lodash.defaultsdeep": "^4.6.1",
|
||||
"lodash.flattendeep": "^4.4.0",
|
||||
"lodash.last": "^3.0.0",
|
||||
"lodash.mergewith": "^4.6.2",
|
||||
"long": "^5.3.1",
|
||||
"long": "^5.3.2",
|
||||
"lorem-ipsum-japanese": "^1.0.1",
|
||||
"luhn-js": "^1.1.2",
|
||||
"luxon": "^3.5.0",
|
||||
"markdown-docx": "^1.2.0",
|
||||
"markdown-it": "^14.1.0",
|
||||
"markdown-docx": "^1.6.0",
|
||||
"markdown-it": "^14.1.1",
|
||||
"markdown-it-mark": "^4.0.0",
|
||||
"markdown-it-sanitizer": "^0.4.3",
|
||||
"markdown-it-sub": "^2.0.0",
|
||||
"markdown-it-sup": "^2.0.0",
|
||||
"markdown-table-prettify": "^3.6.0",
|
||||
"markdown-table-prettify": "^4.0.0",
|
||||
"marked": "^10.0.0",
|
||||
"mathjs": "^15.0.0",
|
||||
"mathjs": "^15.2.0",
|
||||
"md-editor-v3": "^4.21.3",
|
||||
"memorystream": "^0.3.1",
|
||||
"merge-anything": "^6.0.6",
|
||||
"mermaid": "^11.9.0",
|
||||
"mime-types": "^3.0.1",
|
||||
"mermaid": "^11.12.2",
|
||||
"mime-types": "^3.0.2",
|
||||
"mitex-wasm": "^0.2.5",
|
||||
"moment": "^2.30.1",
|
||||
"monaco-editor": "^0.54.0",
|
||||
"monaco-editor": "^0.55.1",
|
||||
"morsee": "^1.0.10",
|
||||
"msgpackr": "^1.11.5",
|
||||
"naive-ui": "^2.35.0",
|
||||
"msgpackr": "^1.11.8",
|
||||
"naive-ui": "^2.43.2",
|
||||
"nanoid": "^5.1.6",
|
||||
"nanoid-dictionary": "^5.0.0",
|
||||
"nestify-anything": "^4.0.1",
|
||||
"netmask": "^2.0.2",
|
||||
"netstack.js": "^2.1.2",
|
||||
"netstack.js": "^2.1.4",
|
||||
"nginx-config-formatter": "^1.4.5",
|
||||
"niceware": "^4.0.0",
|
||||
"node-emv": "^1.0.23",
|
||||
"node-forge": "^1.3.1",
|
||||
"node-forge": "^1.4.0",
|
||||
"openai-chat-tokens": "^0.2.8",
|
||||
"openpgp": "^6.2.0",
|
||||
"oui-data": "^1.1.391",
|
||||
"parse-duration": "^2.1.2",
|
||||
"parse-torrent": "^11.0.18",
|
||||
"openpgp": "^6.3.0",
|
||||
"otpauth-migration": "^1.0.0",
|
||||
"oui-data": "^1.1.571",
|
||||
"parse-duration": "^2.1.6",
|
||||
"parse-torrent": "^11.0.19",
|
||||
"paseto-ts": "^2.0.5",
|
||||
"path2d-polyfill": "^3.1.3",
|
||||
"pdf-signature-reader": "^1.4.3",
|
||||
@@ -274,10 +293,12 @@
|
||||
"plausible-tracker": "^0.3.9",
|
||||
"podletjs": "^1.0.2",
|
||||
"port-numbers": "^8.0.28",
|
||||
"postal-mime": "^2.4.4",
|
||||
"postal-mime": "^2.7.1",
|
||||
"potrace": "^2.1.8",
|
||||
"pp-qr-code": "^0.6.4",
|
||||
"pretty-ms": "^9.2.0",
|
||||
"pretty-ms": "^9.3.0",
|
||||
"proj4": "^2.20.2",
|
||||
"proj4-list": "^1.0.4",
|
||||
"properties": "^1.2.1",
|
||||
"punycode": "^2.3.1",
|
||||
"pythonstack.js": "^1.0.2",
|
||||
@@ -286,53 +307,58 @@
|
||||
"qrcode-parser": "^2.1.3",
|
||||
"qrcode-terminal-nooctal": "^0.12.1",
|
||||
"qrcode-vue3": "^1.7.1",
|
||||
"quicktype-core": "^23.1.3",
|
||||
"quicktype-core": "^23.2.6",
|
||||
"randexp": "^0.5.3",
|
||||
"regex": "^6.0.1",
|
||||
"regex": "^6.1.0",
|
||||
"rekcod": "^3.0.0",
|
||||
"remove-markdown": "^0.6.3",
|
||||
"resistor-data": "^1.1.1",
|
||||
"riimut": "^0.9.1",
|
||||
"roboto-base64": "^0.1.2",
|
||||
"rtf-stream-parser": "^3.8.0",
|
||||
"rtf-stream-parser": "^3.8.1",
|
||||
"safe-license-list": "^0.1.2",
|
||||
"sandybox": "^1.1.2",
|
||||
"sanitize-html": "^2.14.0",
|
||||
"sanitize-html": "^2.17.0",
|
||||
"shamirs-secret-sharing": "^2.0.1",
|
||||
"shiki": "1.29.2",
|
||||
"silly-password-generator": "^1.0.29",
|
||||
"slashes": "^3.0.12",
|
||||
"smol-toml": "^1.4.2",
|
||||
"smol-toml": "^1.6.1",
|
||||
"sms-segments-calculator": "^1.2.0",
|
||||
"spdx-satisfies": "^6.0.0",
|
||||
"sql-formatter": "^15.6.6",
|
||||
"sponge-case": "^2.0.3",
|
||||
"sql-formatter": "^15.6.12",
|
||||
"sshpk": "^1.18.0",
|
||||
"staveless-futhark": "^0.6.1",
|
||||
"stringify-object": "^6.0.0",
|
||||
"svg2png-wasm": "^1.4.1",
|
||||
"svgo": "^3.3.2",
|
||||
"svgo": "^3.3.3",
|
||||
"swagger-ui-dist": "^5.27.0",
|
||||
"swap-case": "^3.0.3",
|
||||
"tesseract.js": "^5.1.1",
|
||||
"text-encoding-utf-8": "^1.0.2",
|
||||
"tick-time": "^1.0.1",
|
||||
"tidy-url": "^1.18.3",
|
||||
"title-case": "^4.3.2",
|
||||
"to-double-quotes": "^4.0.0",
|
||||
"to-single-quotes": "^4.0.0",
|
||||
"turndown": "^7.2.0",
|
||||
"turndown": "^7.2.4",
|
||||
"ua-parser-js": "^2.0.4",
|
||||
"ulid": "^3.0.1",
|
||||
"ulid": "^3.0.2",
|
||||
"unicode-emoji-json": "^0.8.0",
|
||||
"unique-random": "^4.0.0",
|
||||
"units-converter": "^1.0.3",
|
||||
"unixcrypt-browser": "^2.0.4",
|
||||
"unpdf": "^1.1.0",
|
||||
"unpdf": "^1.4.0",
|
||||
"unplugin-auto-import": "^0.16.4",
|
||||
"utf8": "^3.0.0",
|
||||
"uuid": "^13.0.0",
|
||||
"vanilla-jsoneditor": "^3.10.0",
|
||||
"uuid": "^14.0.0",
|
||||
"vanilla-jsoneditor": "^3.11.0",
|
||||
"vue": "^3.3.4",
|
||||
"vue-color-wheel": "^0.1.1",
|
||||
"vue-i18n": "^11.1.9",
|
||||
"vue-i18n": "^11.4.0",
|
||||
"vue-loading-overlay": "^6.0",
|
||||
"vue-markdown-render": "^2.2.1",
|
||||
"vue-markdown-render": "^2.3.0",
|
||||
"vue-mathjax-next": "^0.0.6",
|
||||
"vue-router": "^4.1.6",
|
||||
"vue-shadow-dom": "^4.2.0",
|
||||
@@ -344,19 +370,19 @@
|
||||
"webcrack": "^2.15.0",
|
||||
"webcrypto-liner-shim": "^1.4.8",
|
||||
"webp-converter-browser": "^1.0.4",
|
||||
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz",
|
||||
"xml-formatter": "^3.6.6",
|
||||
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
|
||||
"xml-formatter": "^3.6.7",
|
||||
"xml-js": "^1.6.11",
|
||||
"xpath": "^0.0.34",
|
||||
"xpath-to-css": "^1.2.0",
|
||||
"xslt-processor": "^3.3.1",
|
||||
"yaml": "^2.8.1"
|
||||
"xslt-processor": "^3.4.0",
|
||||
"yaml": "^2.8.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "^0.41.0",
|
||||
"@iconify-json/mdi": "^1.1.50",
|
||||
"@intlify/unplugin-vue-i18n": "^6.0.8",
|
||||
"@playwright/test": "^1.54.1",
|
||||
"@intlify/unplugin-vue-i18n": "^11.0.0",
|
||||
"@playwright/test": "^1.59.1",
|
||||
"@rushstack/eslint-patch": "^1.2.0",
|
||||
"@tsconfig/node18": "^18.2.0",
|
||||
"@types/arr-diff": "^4.0.3",
|
||||
@@ -365,12 +391,12 @@
|
||||
"@types/crypto-js": "^4.2.2",
|
||||
"@types/damerau-levenshtein": "^1.0.2",
|
||||
"@types/emscripten": "^1.40.1",
|
||||
"@types/figlet": "^1.7.0",
|
||||
"@types/har-format": "^1.2.16",
|
||||
"@types/hex-array": "^1.0.2",
|
||||
"@types/js-beautify": "^1.14.3",
|
||||
"@types/jsdom": "^21.1.7",
|
||||
"@types/jsonpath": "^0.2.4",
|
||||
"@types/leaflet": "^1.9.21",
|
||||
"@types/libmime": "^5.0.3",
|
||||
"@types/lodash": "^4.17.20",
|
||||
"@types/lodash.defaultsdeep": "^4.6.9",
|
||||
@@ -394,7 +420,7 @@
|
||||
"@types/sshpk": "^1.17.4",
|
||||
"@types/stringify-object": "^4.0.5",
|
||||
"@types/text-encoding-utf-8": "^1.0.5",
|
||||
"@types/turndown": "^5.0.5",
|
||||
"@types/turndown": "^5.0.6",
|
||||
"@types/ua-parser-js": "^0.7.39",
|
||||
"@types/utf8": "^3.0.3",
|
||||
"@types/uuid": "^10.0.0",
|
||||
@@ -405,7 +431,7 @@
|
||||
"@vue/runtime-dom": "^3.3.4",
|
||||
"@vue/test-utils": "^2.3.2",
|
||||
"@vue/tsconfig": "^0.4.0",
|
||||
"axios": "^1.12.2",
|
||||
"axios": "^1.16.0",
|
||||
"commander": "^14.0.1",
|
||||
"consola": "^3.0.2",
|
||||
"dotenv": "^17.2.3",
|
||||
@@ -422,20 +448,23 @@
|
||||
"unplugin-vue-components": "^0.25.0",
|
||||
"unplugin-vue-markdown": "^29.1.0",
|
||||
"vite": "^4.4.9",
|
||||
"vite-plugin-node-polyfills": "^0.23.0",
|
||||
"vite-plugin-node-polyfills": "^0.26.0",
|
||||
"vite-plugin-pwa": "^1.1.0",
|
||||
"vite-plugin-splash-screen": "^0.2.0",
|
||||
"vite-plugin-wasm": "^3.4.1",
|
||||
"vite-plugin-wasm": "^3.6.0",
|
||||
"vite-svg-loader": "^4.0.0",
|
||||
"vitest": "^0.34.6",
|
||||
"vue-i18n-extract": "^2.0.7",
|
||||
"workbox-window": "^7.3.0",
|
||||
"zx": "^7.2.4"
|
||||
"zx": "^8.8.5"
|
||||
},
|
||||
"pnpm": {
|
||||
"overrides": {
|
||||
"@vueuse/shared": "13.9.0",
|
||||
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"
|
||||
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
|
||||
},
|
||||
"patchedDependencies": {
|
||||
"node-forge@1.4.0": "patches/node-forge@1.4.0.patch"
|
||||
}
|
||||
},
|
||||
"scarfSettings": {
|
||||
|
||||
@@ -0,0 +1,765 @@
|
||||
diff --git a/lib/asn1-validator.js b/lib/asn1-validator.js
|
||||
index 2be328501e93e5f0e38245b6ee797bfc426dfcaa..4deb9f17e77b9c1a602fc6e034012b4c1ccf7e52 100644
|
||||
--- a/lib/asn1-validator.js
|
||||
+++ b/lib/asn1-validator.js
|
||||
@@ -17,7 +17,6 @@ exports.privateKeyValidator = {
|
||||
name: 'PrivateKeyInfo.version',
|
||||
tagClass: asn1.Class.UNIVERSAL,
|
||||
type: asn1.Type.INTEGER,
|
||||
- constructed: false,
|
||||
capture: 'privateKeyVersion'
|
||||
}, {
|
||||
// privateKeyAlgorithm
|
||||
@@ -29,7 +28,6 @@ exports.privateKeyValidator = {
|
||||
name: 'AlgorithmIdentifier.algorithm',
|
||||
tagClass: asn1.Class.UNIVERSAL,
|
||||
type: asn1.Type.OID,
|
||||
- constructed: false,
|
||||
capture: 'privateKeyOid'
|
||||
}]
|
||||
}, {
|
||||
@@ -37,12 +35,11 @@ exports.privateKeyValidator = {
|
||||
name: 'PrivateKeyInfo',
|
||||
tagClass: asn1.Class.UNIVERSAL,
|
||||
type: asn1.Type.OCTETSTRING,
|
||||
- constructed: false,
|
||||
capture: 'privateKey'
|
||||
}]
|
||||
};
|
||||
|
||||
-exports.publicKeyValidator = {
|
||||
+exports.publicKeyInfoValidator = {
|
||||
name: 'SubjectPublicKeyInfo',
|
||||
tagClass: asn1.Class.UNIVERSAL,
|
||||
type: asn1.Type.SEQUENCE,
|
||||
@@ -54,38 +51,24 @@ exports.publicKeyValidator = {
|
||||
type: asn1.Type.SEQUENCE,
|
||||
constructed: true,
|
||||
value: [{
|
||||
- name: 'AlgorithmIdentifier.algorithm',
|
||||
- tagClass: asn1.Class.UNIVERSAL,
|
||||
- type: asn1.Type.OID,
|
||||
- constructed: false,
|
||||
- capture: 'publicKeyOid'
|
||||
- }]
|
||||
- },
|
||||
- // capture group for ed25519PublicKey
|
||||
- {
|
||||
- tagClass: asn1.Class.UNIVERSAL,
|
||||
- type: asn1.Type.BITSTRING,
|
||||
- constructed: false,
|
||||
- composed: true,
|
||||
- captureBitStringValue: 'ed25519PublicKey'
|
||||
- }
|
||||
- // FIXME: this is capture group for rsaPublicKey, use it in this API or
|
||||
- // discard?
|
||||
- /* {
|
||||
+ name: 'AlgorithmIdentifier.algorithm',
|
||||
+ tagClass: asn1.Class.UNIVERSAL,
|
||||
+ type: asn1.Type.OID,
|
||||
+ capture: 'publicKeyOid'
|
||||
+ },
|
||||
+ {
|
||||
+ name: 'AlgorithmIdentifier.parameters',
|
||||
+ tagClass: asn1.Class.UNIVERSAL,
|
||||
+ optional: true,
|
||||
+ captureAsn1: 'parameters',
|
||||
+ }]
|
||||
+ }, {
|
||||
// subjectPublicKey
|
||||
name: 'SubjectPublicKeyInfo.subjectPublicKey',
|
||||
tagClass: asn1.Class.UNIVERSAL,
|
||||
type: asn1.Type.BITSTRING,
|
||||
constructed: false,
|
||||
- value: [{
|
||||
- // RSAPublicKey
|
||||
- name: 'SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey',
|
||||
- tagClass: asn1.Class.UNIVERSAL,
|
||||
- type: asn1.Type.SEQUENCE,
|
||||
- constructed: true,
|
||||
- optional: true,
|
||||
- captureAsn1: 'rsaPublicKey'
|
||||
- }]
|
||||
- } */
|
||||
- ]
|
||||
+ captureAsn1: 'subjectPublicKey', // used by RSA
|
||||
+ captureBitStringValue: 'subjectPublicKeyRaw', // used by ECDSA and ED25519
|
||||
+ }]
|
||||
};
|
||||
diff --git a/lib/ecdsa.js b/lib/ecdsa.js
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..6373401341a319edcd5360d3002cab2de4b81942
|
||||
--- /dev/null
|
||||
+++ b/lib/ecdsa.js
|
||||
@@ -0,0 +1,390 @@
|
||||
+/**
|
||||
+ * JavaScript implementation of ECDSA.
|
||||
+ *
|
||||
+ * Copyright (c) 2021 HAMANO Tsukasa <hamano@osstech.co.jp>
|
||||
+ *
|
||||
+ * This implementation is based on the elliptic
|
||||
+ *
|
||||
+ * https://github.com/indutny/elliptic/
|
||||
+ */
|
||||
+var forge = require('./forge');
|
||||
+require('./asn1');
|
||||
+require('./jsbn');
|
||||
+require('./random');
|
||||
+require('./sha512');
|
||||
+var util = require('./util');
|
||||
+var elliptic = require('elliptic');
|
||||
+var asn1Validator = require('./asn1-validator');
|
||||
+var publicKeyInfoValidator = asn1Validator.publicKeyInfoValidator;
|
||||
+var privateKeyValidator = asn1Validator.privateKeyValidator;
|
||||
+var asn1 = forge.asn1;
|
||||
+
|
||||
+if(typeof BigInteger === 'undefined') {
|
||||
+ var BigInteger = forge.jsbn.BigInteger;
|
||||
+}
|
||||
+
|
||||
+var ByteBuffer = util.ByteBuffer;
|
||||
+var NativeBuffer = typeof Buffer === 'undefined' ? Uint8Array : Buffer;
|
||||
+
|
||||
+forge.pki = forge.pki || {};
|
||||
+module.exports = forge.pki.ecdsa = forge.ecdsa = forge.ecdsa || {};
|
||||
+var ecdsa = forge.ecdsa;
|
||||
+
|
||||
+ecdsa.constants = {};
|
||||
+
|
||||
+/*
|
||||
+ * Supported namedCurve listed here:
|
||||
+ * https://github.com/indutny/elliptic/blob/master/lib/elliptic/curves.js
|
||||
+ */
|
||||
+ecdsa.supportedCueves = [
|
||||
+ 'p192', // secp192r1, prime192v1
|
||||
+ 'p256', // secp256r1, prime256v1
|
||||
+ 'p224', // secp224r1,
|
||||
+ 'p384', // secp384r1
|
||||
+ 'p521', // secp521r1
|
||||
+ 'secp256k1',// secp256k1
|
||||
+];
|
||||
+
|
||||
+/*
|
||||
+ * RCF5915: Elliptic Curve Private Key Format
|
||||
+ * https://datatracker.ietf.org/doc/html/rfc5915
|
||||
+ *
|
||||
+ * ECPrivateKey ::= SEQUENCE {
|
||||
+ * version INTEGER { ecPrivkeyVer1(1) } (ecPrivkeyVer1),
|
||||
+ * privateKey OCTET STRING,
|
||||
+ * parameters [0] ECParameters {{ NamedCurve }} OPTIONAL,
|
||||
+ * publicKey [1] BIT STRING OPTIONAL
|
||||
+ * }
|
||||
+ */
|
||||
+var ecPrivateKeyValidator = {
|
||||
+ name: 'ECPrivateKey',
|
||||
+ tagClass: asn1.Class.UNIVERSAL,
|
||||
+ type: asn1.Type.SEQUENCE,
|
||||
+ constructed: true,
|
||||
+ value: [{
|
||||
+ name: 'ECPrivateKey.version',
|
||||
+ tagClass: asn1.Class.UNIVERSAL,
|
||||
+ type: asn1.Type.INTEGER,
|
||||
+ capture: 'version',
|
||||
+ }, {
|
||||
+ name: 'ECPrivateKey.privateKey',
|
||||
+ tagClass: asn1.Class.UNIVERSAL,
|
||||
+ type: asn1.Type.OCTETSTRING,
|
||||
+ capture: 'privateKey',
|
||||
+ }, {
|
||||
+ tagClass: asn1.Class.CONTEXT_SPECIFIC,
|
||||
+ type: 0x0,
|
||||
+ optional: true,
|
||||
+ value: [{
|
||||
+ name: 'ECPrivateKey.parameters',
|
||||
+ tagClass: asn1.Class.UNIVERSAL,
|
||||
+ type: asn1.Type.OID,
|
||||
+ captureAsn1: 'parameters',
|
||||
+ }],
|
||||
+ }, {
|
||||
+ tagClass: asn1.Class.CONTEXT_SPECIFIC,
|
||||
+ type: 0x1,
|
||||
+ optional: true,
|
||||
+ value: [{
|
||||
+ name: 'ECPrivateKey.publicKey',
|
||||
+ type: asn1.Type.BITSTRING,
|
||||
+ captureAsn1: 'publicKey',
|
||||
+ }],
|
||||
+ }]
|
||||
+};
|
||||
+
|
||||
+var ecSpecifiedCurveValidator = {
|
||||
+ name: 'SpecifiedCurve',
|
||||
+ tagClass: asn1.Class.UNIVERSAL,
|
||||
+ type: asn1.Type.SEQUENCE,
|
||||
+ constructed: true,
|
||||
+ value: [{
|
||||
+ name: 'SpecifiedCurveVersion',
|
||||
+ tagClass: asn1.Class.UNIVERSAL,
|
||||
+ type: asn1.Type.INTEGER,
|
||||
+ capture: 'version',
|
||||
+ }, {
|
||||
+ name: 'SpecifiedCurve.FieldID',
|
||||
+ tagClass: asn1.Class.UNIVERSAL,
|
||||
+ type: asn1.Type.SEQUENCE,
|
||||
+ constructed: true,
|
||||
+ value: [{
|
||||
+ name: 'SpecifiedCurve.FieldID.fieldType',
|
||||
+ tagClass: asn1.Class.UNIVERSAL,
|
||||
+ type: asn1.Type.OID,
|
||||
+ capture: 'fieldType',
|
||||
+ }, {
|
||||
+ name: 'SpecifiedCurve.FieldID.prime',
|
||||
+ tagClass: asn1.Class.UNIVERSAL,
|
||||
+ type: asn1.Type.INTEGER,
|
||||
+ capture: 'p',
|
||||
+ }]
|
||||
+ }, {
|
||||
+ name: 'SpecifiedCurve.Curve',
|
||||
+ tagClass: asn1.Class.UNIVERSAL,
|
||||
+ type: asn1.Type.SEQUENCE,
|
||||
+ constructed: true,
|
||||
+ value: [{
|
||||
+ name: 'SpecifiedCurve.Curve.a',
|
||||
+ tagClass: asn1.Class.UNIVERSAL,
|
||||
+ type: asn1.Type.OCTETSTRING,
|
||||
+ capture: 'a',
|
||||
+ }, {
|
||||
+ name: 'SpecifiedCurve.Curve.b',
|
||||
+ tagClass: asn1.Class.UNIVERSAL,
|
||||
+ type: asn1.Type.OCTETSTRING,
|
||||
+ capture: 'b',
|
||||
+ }]
|
||||
+ }, {
|
||||
+ name: 'SpecifiedCurve.Generator',
|
||||
+ tagClass: asn1.Class.UNIVERSAL,
|
||||
+ type: asn1.Type.OCTETSTRING,
|
||||
+ capture: 'g',
|
||||
+ }, {
|
||||
+ name: 'SpecifiedCurve.Order',
|
||||
+ tagClass: asn1.Class.UNIVERSAL,
|
||||
+ type: asn1.Type.INTEGER,
|
||||
+ capture: 'n',
|
||||
+ }, {
|
||||
+ name: 'SpecifiedCurve.Confactor',
|
||||
+ tagClass: asn1.Class.UNIVERSAL,
|
||||
+ type: asn1.Type.INTEGER,
|
||||
+ capture: 'c',
|
||||
+ optional: true
|
||||
+ }]
|
||||
+};
|
||||
+
|
||||
+ecdsa.generateKeyPair = function(options) {
|
||||
+ options = options || {};
|
||||
+ var curveName = options.name || 'p256';
|
||||
+ var seed = options.seed;
|
||||
+ var errors = [];
|
||||
+
|
||||
+ if (!(ecdsa.supportedCueves.includes(curveName))) {
|
||||
+ var error = new Error('unsupported curveName: ' + curveName);
|
||||
+ error.errors = errors;
|
||||
+ throw error;
|
||||
+ }
|
||||
+ var curve = elliptic.curves[curveName];
|
||||
+ var ec = new elliptic.ec(curve);
|
||||
+ ec.curveName = curveName;
|
||||
+ var kp = ec.genKeyPair({
|
||||
+ entropy: seed,
|
||||
+ });
|
||||
+ var privateKey = kp.getPrivate();
|
||||
+ var publicKey = kp.getPublic();
|
||||
+ return {
|
||||
+ publicKey: new ecdsa.ECPublicKey(kp.ec, publicKey),
|
||||
+ privateKey: new ecdsa.ECPrivateKey(kp.ec, privateKey)
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+/**
|
||||
+ * Converts a ECPrivateKey to an ASN.1 representation.
|
||||
+ *
|
||||
+ * @param key the ECPrivateKey.
|
||||
+ *
|
||||
+ * @return the ASN.1 representation of an ECPrivateKey.
|
||||
+ */
|
||||
+ecdsa.privateKeyToAsn1 = function(key, options) {
|
||||
+ return key.toAsn1(options);
|
||||
+};
|
||||
+
|
||||
+var ECPublicKey = function(ec, publicKey) {
|
||||
+ this._ec = ec;
|
||||
+ this._publicKey = publicKey;
|
||||
+};
|
||||
+
|
||||
+ecdsa.ECPublicKey = ECPublicKey;
|
||||
+
|
||||
+/**
|
||||
+ * Converts a public key from a RFC8410 ASN.1 encoding.
|
||||
+ *
|
||||
+ * @param obj - The asn1 representation of a public key.
|
||||
+ *
|
||||
+ * @return {ECPublicKey} - ECPublicKey object.
|
||||
+ */
|
||||
+ECPublicKey.fromAsn1 = function(obj) {
|
||||
+ var capture = {};
|
||||
+ var errors = [];
|
||||
+ if(!forge.asn1.validate(obj, publicKeyInfoValidator, capture, errors)) {
|
||||
+ var error = new Error('Cannot read PublicKeyInfo ASN.1 object.');
|
||||
+ error.errors = errors;
|
||||
+ throw error;
|
||||
+ }
|
||||
+ var publicKey = capture.subjectPublicKeyRaw;
|
||||
+ var params = capture.parameters;
|
||||
+ var curve;
|
||||
+ var curveName;
|
||||
+ if(params && params.type === forge.asn1.Type.OID) {
|
||||
+ var oid = forge.asn1.derToOid(params.value);
|
||||
+ curveName = forge.oids[oid];
|
||||
+ if(!ecdsa.supportedCueves.includes(curveName)) {
|
||||
+ var error = new Error('Unsupported curveName: ' + curveName);
|
||||
+ error.errors = errors;
|
||||
+ throw error;
|
||||
+ }
|
||||
+ curve = elliptic.curves[curveName];
|
||||
+ } else if(params && params.type === forge.asn1.Type.SEQUENCE) {
|
||||
+ var capture = {};
|
||||
+ if(!forge.asn1.validate(params, ecSpecifiedCurveValidator, capture, errors)) {
|
||||
+ var error = new Error('Cannot read specified curve ASN.1 object.');
|
||||
+ error.errors = errors;
|
||||
+ throw error;
|
||||
+ }
|
||||
+ var options = {
|
||||
+ p: util.bytesToHex(capture.p),
|
||||
+ a: util.bytesToHex(capture.a),
|
||||
+ b: util.bytesToHex(capture.b),
|
||||
+ n: util.bytesToHex(capture.n),
|
||||
+ };
|
||||
+ var _curve = new elliptic.curve.short(options);
|
||||
+ var g = _curve.decodePoint(util.bytesToHex(capture.g), 'hex');
|
||||
+ curve = {
|
||||
+ curve: _curve,
|
||||
+ n: _curve.n,
|
||||
+ g: g
|
||||
+ };
|
||||
+ } else {
|
||||
+ var error = new Error('no ECParameters');
|
||||
+ error.errors = errors;
|
||||
+ throw error;
|
||||
+ }
|
||||
+ var ec = new elliptic.ec({curve: curve});
|
||||
+ ec.curveName = curveName;
|
||||
+ var kp = ec.keyFromPublic(publicKey);
|
||||
+ return new ECPublicKey(ec, kp.getPublic());
|
||||
+};
|
||||
+
|
||||
+ECPublicKey.prototype.verify = function(msg, signature) {
|
||||
+ var hexMsg = util.bytesToHex(msg);
|
||||
+ var hexSignature = util.bytesToHex(signature);
|
||||
+ return this._ec.verify(hexMsg, hexSignature, this._publicKey, 'hex');
|
||||
+};
|
||||
+
|
||||
+ECPublicKey.prototype.toString = function() {
|
||||
+ return this._publicKey.encode('hex');
|
||||
+};
|
||||
+
|
||||
+ECPublicKey.prototype.getBytes = function() {
|
||||
+ return String.fromCharCode.apply(null, this._publicKey.encode());
|
||||
+};
|
||||
+
|
||||
+ECPublicKey.prototype.toAsn1 = function(options) {
|
||||
+ var curveOID = forge.oids[this._ec.curveName];
|
||||
+ if (!curveOID) {
|
||||
+ var error = new Error('unsupported namedCurve or specifiedCurve.');
|
||||
+ error.errors = errors;
|
||||
+ throw error;
|
||||
+ }
|
||||
+
|
||||
+ var obj = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []);
|
||||
+ var aid = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
|
||||
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
|
||||
+ asn1.oidToDer(forge.oids['ecPublicKey']).getBytes()),
|
||||
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
|
||||
+ asn1.oidToDer(curveOID).getBytes())]);
|
||||
+ obj.value.push(aid);
|
||||
+ obj.value.push(
|
||||
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false,
|
||||
+ "\0" + this.getBytes()));
|
||||
+ return obj;
|
||||
+};
|
||||
+
|
||||
+ECPublicKey.prototype.toDer = function() {
|
||||
+ return asn1.toDer(this.toAsn1()).getBytes();
|
||||
+};
|
||||
+
|
||||
+ECPublicKey.prototype.toPem = function() {
|
||||
+ return '-----BEGIN PUBLIC KEY-----\n' +
|
||||
+ util.encode64(this.toDer(), 64) +
|
||||
+ '\n-----END PUBLIC KEY-----\n';
|
||||
+};
|
||||
+
|
||||
+
|
||||
+var ECPrivateKey = function(ec, privateKey) {
|
||||
+ this._ec = ec;
|
||||
+ this._privateKey = privateKey;
|
||||
+};
|
||||
+ecdsa.ECPrivateKey = ECPrivateKey;
|
||||
+
|
||||
+/**
|
||||
+ * Converts a private key from a RFC5915 ASN.1 Object.
|
||||
+ *
|
||||
+ * @param obj - The asn1 representation of a private key.
|
||||
+ *
|
||||
+ * @returns {Object} obj - The ASN.1 key object.
|
||||
+ * @returns {ECPrivateKey} ECPrivateKey object.
|
||||
+ */
|
||||
+ECPrivateKey.fromAsn1 = function(obj) {
|
||||
+ var capture = {};
|
||||
+ var errors = [];
|
||||
+ var valid = forge.asn1.validate(obj, ecPrivateKeyValidator, capture, errors);
|
||||
+ if(!valid) {
|
||||
+ var error = new Error('Invalid ECPrivateKey object.');
|
||||
+ error.errors = errors;
|
||||
+ throw error;
|
||||
+ }
|
||||
+ var params;
|
||||
+ if (!capture.parameters) {
|
||||
+ var error = new Error('no ECPrivateKey.parameters.');
|
||||
+ error.errors = errors;
|
||||
+ throw error;
|
||||
+ }
|
||||
+ var oid = asn1.derToOid(capture.parameters.value)
|
||||
+ var curveName = forge.oids[oid];
|
||||
+ if (!ecdsa.supportedCueves.includes(curveName)) {
|
||||
+ var error = new Error('unsupported curveName: ' + curveName);
|
||||
+ error.errors = errors;
|
||||
+ throw error;
|
||||
+ }
|
||||
+ curve = elliptic.curves[curveName];
|
||||
+ var ec = new elliptic.ec({curve: curve});
|
||||
+ ec.curveName = curveName;
|
||||
+ var kp = ec.keyFromPrivate(util.bytesToHex(capture.privateKey));
|
||||
+ return new ECPrivateKey(ec, kp.getPrivate());
|
||||
+};
|
||||
+
|
||||
+ECPrivateKey.prototype.sign = function(msg) {
|
||||
+ var hexMsg = util.bytesToHex(msg);
|
||||
+ var signature = this._ec.sign(hexMsg, this._privateKey);
|
||||
+ return String.fromCharCode.apply(null, signature.toDER());
|
||||
+};
|
||||
+
|
||||
+ECPrivateKey.prototype.toString = function() {
|
||||
+ return this._privateKey.toString('hex');
|
||||
+};
|
||||
+
|
||||
+ECPrivateKey.prototype.getBytes = function() {
|
||||
+ return String.fromCharCode.apply(null, this._privateKey.toArray());
|
||||
+};
|
||||
+
|
||||
+ECPrivateKey.prototype.toAsn1 = function(options) {
|
||||
+ var curveOID = forge.oids[this._ec.curveName];
|
||||
+ if (!curveOID) {
|
||||
+ var error = new Error('unsupported namedCurve');
|
||||
+ error.errors = errors;
|
||||
+ throw error;
|
||||
+ }
|
||||
+ return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
|
||||
+ asn1.create(asn1.Class.UNIVERSAL,
|
||||
+ asn1.Type.INTEGER, false,
|
||||
+ asn1.integerToDer(1).getBytes()),
|
||||
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false,
|
||||
+ this.getBytes()),
|
||||
+ asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0x0, true, [
|
||||
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
|
||||
+ asn1.oidToDer(curveOID).getBytes())
|
||||
+ ]),
|
||||
+ ]);
|
||||
+};
|
||||
+
|
||||
+ECPrivateKey.prototype.toDer = function(options) {
|
||||
+ return asn1.toDer(this.toAsn1(options)).getBytes();
|
||||
+};
|
||||
+
|
||||
+ECPrivateKey.prototype.toPem = function(options) {
|
||||
+ return '-----BEGIN EC PRIVATE KEY-----\n' +
|
||||
+ util.encode64(this.toDer(options), 64) +
|
||||
+ '\n-----END EC PRIVATE KEY-----\n';
|
||||
+};
|
||||
diff --git a/lib/ed25519.js b/lib/ed25519.js
|
||||
index 87eb7097aff14b2a26103c10ce6777a672e0a0e8..31c48254c6112625a581945029f541269e74b46e 100644
|
||||
--- a/lib/ed25519.js
|
||||
+++ b/lib/ed25519.js
|
||||
@@ -114,7 +114,7 @@ ed25519.publicKeyFromAsn1 = function(obj) {
|
||||
// get SubjectPublicKeyInfo
|
||||
var capture = {};
|
||||
var errors = [];
|
||||
- var valid = forge.asn1.validate(obj, publicKeyValidator, capture, errors);
|
||||
+ var valid = forge.asn1.validate(obj, publicKeyInfoValidator, capture, errors);
|
||||
if(!valid) {
|
||||
var error = new Error('Invalid Key.');
|
||||
error.errors = errors;
|
||||
@@ -126,7 +126,7 @@ ed25519.publicKeyFromAsn1 = function(obj) {
|
||||
throw new Error('Invalid OID "' + oid + '"; OID must be "' +
|
||||
ed25519Oid + '".');
|
||||
}
|
||||
- var publicKeyBytes = capture.ed25519PublicKey;
|
||||
+ var publicKeyBytes = capture.ed25519PublicKeyRaw;
|
||||
if(publicKeyBytes.length !== ed25519.constants.PUBLIC_KEY_BYTE_LENGTH) {
|
||||
throw new Error('Key length is invalid.');
|
||||
}
|
||||
diff --git a/lib/oids.js b/lib/oids.js
|
||||
index 817ed1be2001cf1640df2b59cc4822cb01877cce..6ead3acf140269037eba6e1e0bd047fccc95167b 100644
|
||||
--- a/lib/oids.js
|
||||
+++ b/lib/oids.js
|
||||
@@ -39,6 +39,18 @@ _IN('1.3.101.112', 'EdDSA25519');
|
||||
|
||||
_IN('1.2.840.10040.4.3', 'dsa-with-sha1');
|
||||
|
||||
+_IN('1.2.840.10045.2.1', 'ecPublicKey');
|
||||
+_IN('1.2.840.10045.4.3.2', 'ecdsa-with-SHA256');
|
||||
+_IN('1.2.840.10045.4.3.3', 'ecdsa-with-SHA384');
|
||||
+_IN('1.2.840.10045.4.3.4', 'ecdsa-with-SHA512');
|
||||
+
|
||||
+_IN('1.2.840.10045.3.1.1', 'p192');
|
||||
+_IN('1.2.840.10045.3.1.7', 'p256');
|
||||
+_IN('1.3.132.0.33', 'p224');
|
||||
+_IN('1.3.132.0.34', 'p384');
|
||||
+_IN('1.3.132.0.35', 'p521');
|
||||
+_IN('1.3.132.0.10', 'secp256k1');
|
||||
+
|
||||
_IN('1.3.14.3.2.7', 'desCBC');
|
||||
|
||||
_IN('1.3.14.3.2.26', 'sha1');
|
||||
@@ -60,6 +72,7 @@ _IN('1.2.840.113549.1.7.3', 'envelopedData');
|
||||
_IN('1.2.840.113549.1.7.4', 'signedAndEnvelopedData');
|
||||
_IN('1.2.840.113549.1.7.5', 'digestedData');
|
||||
_IN('1.2.840.113549.1.7.6', 'encryptedData');
|
||||
+_IN('2.23.136.1.1.1', 'mrtdSignatureData');
|
||||
|
||||
// pkcs#9 oids
|
||||
_IN('1.2.840.113549.1.9.1', 'emailAddress');
|
||||
diff --git a/lib/pkcs7.js b/lib/pkcs7.js
|
||||
index 3a5d845c5d6d62ac9fc6195ee6ef4155ecc0619c..5a773bcce033d69ebdc73d8586c0c2258eb9419b 100644
|
||||
--- a/lib/pkcs7.js
|
||||
+++ b/lib/pkcs7.js
|
||||
@@ -1167,7 +1167,7 @@ function _fromAsn1(msg, obj, validator) {
|
||||
|
||||
// Check contentType, so far we only support (raw) Data.
|
||||
var contentType = asn1.derToOid(capture.contentType);
|
||||
- if(contentType !== forge.pki.oids.data) {
|
||||
+ if(![forge.pki.oids.data, forge.pki.oids.mrtdSignatureData].includes(contentType)) {
|
||||
throw new Error('Unsupported PKCS#7 message. ' +
|
||||
'Only wrapped ContentType Data supported.');
|
||||
}
|
||||
diff --git a/lib/rsa.js b/lib/rsa.js
|
||||
index a4264822b4dcd6dca44ca3e59e410c982eed7183..8cab56a1b776e808f550ded9ef14395fa6304da1 100644
|
||||
--- a/lib/rsa.js
|
||||
+++ b/lib/rsa.js
|
||||
@@ -70,6 +70,10 @@ require('./prime');
|
||||
require('./random');
|
||||
require('./util');
|
||||
|
||||
+var asn1Validator = require('./asn1-validator');
|
||||
+var publicKeyInfoValidator = asn1Validator.publicKeyInfoValidator;
|
||||
+var ecdsa = require('./ecdsa');
|
||||
+
|
||||
if(typeof BigInteger === 'undefined') {
|
||||
var BigInteger = forge.jsbn.BigInteger;
|
||||
}
|
||||
@@ -226,44 +230,6 @@ var rsaPublicKeyValidator = {
|
||||
}]
|
||||
};
|
||||
|
||||
-// validator for an SubjectPublicKeyInfo structure
|
||||
-// Note: Currently only works with an RSA public key
|
||||
-var publicKeyValidator = forge.pki.rsa.publicKeyValidator = {
|
||||
- name: 'SubjectPublicKeyInfo',
|
||||
- tagClass: asn1.Class.UNIVERSAL,
|
||||
- type: asn1.Type.SEQUENCE,
|
||||
- constructed: true,
|
||||
- captureAsn1: 'subjectPublicKeyInfo',
|
||||
- value: [{
|
||||
- name: 'SubjectPublicKeyInfo.AlgorithmIdentifier',
|
||||
- tagClass: asn1.Class.UNIVERSAL,
|
||||
- type: asn1.Type.SEQUENCE,
|
||||
- constructed: true,
|
||||
- value: [{
|
||||
- name: 'AlgorithmIdentifier.algorithm',
|
||||
- tagClass: asn1.Class.UNIVERSAL,
|
||||
- type: asn1.Type.OID,
|
||||
- constructed: false,
|
||||
- capture: 'publicKeyOid'
|
||||
- }]
|
||||
- }, {
|
||||
- // subjectPublicKey
|
||||
- name: 'SubjectPublicKeyInfo.subjectPublicKey',
|
||||
- tagClass: asn1.Class.UNIVERSAL,
|
||||
- type: asn1.Type.BITSTRING,
|
||||
- constructed: false,
|
||||
- value: [{
|
||||
- // RSAPublicKey
|
||||
- name: 'SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey',
|
||||
- tagClass: asn1.Class.UNIVERSAL,
|
||||
- type: asn1.Type.SEQUENCE,
|
||||
- constructed: true,
|
||||
- optional: true,
|
||||
- captureAsn1: 'rsaPublicKey'
|
||||
- }]
|
||||
- }]
|
||||
-};
|
||||
-
|
||||
// validator for a DigestInfo structure
|
||||
var digestInfoValidator = {
|
||||
name: 'DigestInfo',
|
||||
@@ -1465,36 +1431,29 @@ pki.privateKeyToAsn1 = pki.privateKeyToRSAPrivateKey = function(key) {
|
||||
};
|
||||
|
||||
/**
|
||||
- * Converts a public key from an ASN.1 SubjectPublicKeyInfo or RSAPublicKey.
|
||||
+ * Converts a RSA public key from an ASN.1 SubjectPublicKeyInfo.
|
||||
*
|
||||
- * @param obj the asn1 representation of a SubjectPublicKeyInfo or RSAPublicKey.
|
||||
+ * @param obj the asn1 representation of a SubjectPublicKeyInfo.
|
||||
*
|
||||
* @return the public key.
|
||||
*/
|
||||
-pki.publicKeyFromAsn1 = function(obj) {
|
||||
- // get SubjectPublicKeyInfo
|
||||
+pki.rsa.publicKeyFromAsn1 = function(obj) {
|
||||
+ //var subjectPublicKey = obj.value[1].value[0];
|
||||
var capture = {};
|
||||
var errors = [];
|
||||
- if(asn1.validate(obj, publicKeyValidator, capture, errors)) {
|
||||
- // get oid
|
||||
- var oid = asn1.derToOid(capture.publicKeyOid);
|
||||
- if(oid !== pki.oids.rsaEncryption) {
|
||||
- var error = new Error('Cannot read public key. Unknown OID.');
|
||||
- error.oid = oid;
|
||||
- throw error;
|
||||
- }
|
||||
- obj = capture.rsaPublicKey;
|
||||
+ if(!asn1.validate(obj, publicKeyInfoValidator, capture, errors)) {
|
||||
+ var error = new Error('Cannot read public key. ' +
|
||||
+ 'ASN.1 object does not contain an PublicKeyInfo.');
|
||||
+ error.errors = errors;
|
||||
+ throw error;
|
||||
}
|
||||
-
|
||||
- // get RSA params
|
||||
- errors = [];
|
||||
+ obj = capture.subjectPublicKey.value[0];
|
||||
if(!asn1.validate(obj, rsaPublicKeyValidator, capture, errors)) {
|
||||
var error = new Error('Cannot read public key. ' +
|
||||
- 'ASN.1 object does not contain an RSAPublicKey.');
|
||||
+ 'ASN.1 object does not contain an RSAPublicKey.');
|
||||
error.errors = errors;
|
||||
throw error;
|
||||
}
|
||||
-
|
||||
// FIXME: inefficient, get a BigInteger that uses byte strings
|
||||
var n = forge.util.createBuffer(capture.publicKeyModulus).toHex();
|
||||
var e = forge.util.createBuffer(capture.publicKeyExponent).toHex();
|
||||
@@ -1503,6 +1462,31 @@ pki.publicKeyFromAsn1 = function(obj) {
|
||||
return pki.setRsaPublicKey(
|
||||
new BigInteger(n, 16),
|
||||
new BigInteger(e, 16));
|
||||
+}
|
||||
+
|
||||
+/**
|
||||
+ * Converts a public key from an ASN.1 SubjectPublicKeyInfo or RSAPublicKey.
|
||||
+ *
|
||||
+ * @param obj the asn1 representation of a SubjectPublicKeyInfo or RSAPublicKey.
|
||||
+ *
|
||||
+ * @return the public key.
|
||||
+ */
|
||||
+pki.publicKeyFromAsn1 = function(obj) {
|
||||
+ // get SubjectPublicKeyInfo
|
||||
+ var capture = {};
|
||||
+ var errors = [];
|
||||
+ // get oid
|
||||
+ var oid = asn1.derToOid(obj.value[0].value[0].value);
|
||||
+ switch (oid) {
|
||||
+ case pki.oids.rsaEncryption:
|
||||
+ return pki.rsa.publicKeyFromAsn1(obj);
|
||||
+ case pki.oids.ecPublicKey:
|
||||
+ return ecdsa.ECPublicKey.fromAsn1(obj);
|
||||
+ default:
|
||||
+ var error = new Error('Cannot read public key. Unknown OID.');
|
||||
+ error.oid = oid;
|
||||
+ throw error;
|
||||
+ }
|
||||
};
|
||||
|
||||
/**
|
||||
diff --git a/lib/x509.js b/lib/x509.js
|
||||
index b4a4f6d7a4c57bea6d986a733f360a299bd15f5f..ce83d6dec9140d7df79c0e61bfc754df44f907a8 100644
|
||||
--- a/lib/x509.js
|
||||
+++ b/lib/x509.js
|
||||
@@ -144,8 +144,8 @@ _shortNames['E'] = oids['emailAddress'];
|
||||
_shortNames['emailAddress'] = 'E';
|
||||
|
||||
// validator for an SubjectPublicKeyInfo structure
|
||||
-// Note: Currently only works with an RSA public key
|
||||
-var publicKeyValidator = forge.pki.rsa.publicKeyValidator;
|
||||
+var asn1Validator = require('./asn1-validator');
|
||||
+var publicKeyInfoValidator = asn1Validator.publicKeyInfoValidator;
|
||||
|
||||
// validator for an X.509v3 certificate
|
||||
var x509CertificateValidator = {
|
||||
@@ -252,7 +252,7 @@ var x509CertificateValidator = {
|
||||
captureAsn1: 'certSubject'
|
||||
},
|
||||
// SubjectPublicKeyInfo
|
||||
- publicKeyValidator,
|
||||
+ publicKeyInfoValidator,
|
||||
{
|
||||
// issuerUniqueID (optional)
|
||||
name: 'Certificate.TBSCertificate.issuerUniqueID',
|
||||
@@ -427,7 +427,7 @@ var certificationRequestInfoValidator = {
|
||||
captureAsn1: 'certificationRequestInfoSubject'
|
||||
},
|
||||
// SubjectPublicKeyInfo
|
||||
- publicKeyValidator,
|
||||
+ publicKeyInfoValidator,
|
||||
{
|
||||
name: 'CertificationRequestInfo.attributes',
|
||||
tagClass: asn1.Class.CONTEXT_SPECIFIC,
|
||||
@@ -706,13 +706,15 @@ var _createSignatureDigest = function(options) {
|
||||
case 'md5WithRSAEncryption':
|
||||
return forge.md.md5.create();
|
||||
case 'sha256WithRSAEncryption':
|
||||
+ case 'RSASSA-PSS':
|
||||
+ case 'ecdsa-with-SHA256':
|
||||
return forge.md.sha256.create();
|
||||
case 'sha384WithRSAEncryption':
|
||||
+ case 'ecdsa-with-SHA384':
|
||||
return forge.md.sha384.create();
|
||||
case 'sha512WithRSAEncryption':
|
||||
+ case 'ecdsa-with-SHA512':
|
||||
return forge.md.sha512.create();
|
||||
- case 'RSASSA-PSS':
|
||||
- return forge.md.sha256.create();
|
||||
default:
|
||||
var error = new Error(
|
||||
'Could not compute ' + options.type + ' digest. ' +
|
||||
@@ -1312,8 +1314,8 @@ pki.certificateFromAsn1 = function(obj, computeHash) {
|
||||
|
||||
// get oid
|
||||
var oid = asn1.derToOid(capture.publicKeyOid);
|
||||
- if(oid !== pki.oids.rsaEncryption) {
|
||||
- throw new Error('Cannot read public key. OID is not RSA.');
|
||||
+ if(![pki.oids.rsaEncryption, pki.oids.ecPublicKey].includes(oid)) {
|
||||
+ throw new Error('Cannot read public key. publicKeyOid: ' + oid);
|
||||
}
|
||||
|
||||
// create certificate
|
||||
diff --git a/package.json b/package.json
|
||||
index a78076c0f5020f48af7d9bf0b88ef39883374d08..b4d0074930f08c206c6071167cf43e2db0fc477e 100644
|
||||
--- a/package.json
|
||||
+++ b/package.json
|
||||
@@ -119,5 +119,8 @@
|
||||
"buffer": false,
|
||||
"crypto": false,
|
||||
"process": false
|
||||
+ },
|
||||
+ "dependencies": {
|
||||
+ "elliptic": "^6.5.4"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
.custom-tooltip{--bs-tooltip-bg: var(--bs-danger) !important;--bs-tooltip-color: var(--bs-white) !important;--bs-tooltip-opacity: 1 !important}/*!
|
||||
* Bootstrap v5.3.8 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2025 The Bootstrap Authors
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
*/:root,[data-bs-theme=light]{--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #0d6efd;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 13, 110, 253;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: #052c65;--bs-secondary-text-emphasis: #2b2f32;--bs-success-text-emphasis: #0a3622;--bs-info-text-emphasis: #055160;--bs-warning-text-emphasis: #664d03;--bs-danger-text-emphasis: #58151c;--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: #cfe2ff;--bs-secondary-bg-subtle: #e2e3e5;--bs-success-bg-subtle: #d1e7dd;--bs-info-bg-subtle: #cff4fc;--bs-warning-bg-subtle: #fff3cd;--bs-danger-bg-subtle: #f8d7da;--bs-light-bg-subtle: #fcfcfd;--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: #9ec5fe;--bs-secondary-border-subtle: #c4c8cb;--bs-success-border-subtle: #a3cfbb;--bs-info-border-subtle: #9eeaf9;--bs-warning-border-subtle: #ffe69c;--bs-danger-border-subtle: #f1aeb5;--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg: #fff;--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb: 33, 37, 41;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb: 33, 37, 41;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: #0d6efd;--bs-link-color-rgb: 13, 110, 253;--bs-link-decoration: underline;--bs-link-hover-color: #0a58ca;--bs-link-hover-color-rgb: 10, 88, 202;--bs-code-color: #d63384;--bs-highlight-color: #212529;--bs-highlight-bg: #fff3cd;--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, 0.175);--bs-border-radius: 0.375rem;--bs-border-radius-sm: 0.25rem;--bs-border-radius-lg: 0.5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width: 0.25rem;--bs-focus-ring-opacity: 0.25;--bs-focus-ring-color: rgba(13, 110, 253, 0.25);--bs-form-valid-color: #198754;--bs-form-valid-border-color: #198754;--bs-form-invalid-color: #dc3545;--bs-form-invalid-border-color: #dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color: #dee2e6;--bs-body-color-rgb: 222, 226, 230;--bs-body-bg: #212529;--bs-body-bg-rgb: 33, 37, 41;--bs-emphasis-color: #fff;--bs-emphasis-color-rgb: 255, 255, 255;--bs-secondary-color: rgba(222, 226, 230, 0.75);--bs-secondary-color-rgb: 222, 226, 230;--bs-secondary-bg: #343a40;--bs-secondary-bg-rgb: 52, 58, 64;--bs-tertiary-color: rgba(222, 226, 230, 0.5);--bs-tertiary-color-rgb: 222, 226, 230;--bs-tertiary-bg: #2b3035;--bs-tertiary-bg-rgb: 43, 48, 53;--bs-primary-text-emphasis: #6ea8fe;--bs-secondary-text-emphasis: #a7acb1;--bs-success-text-emphasis: #75b798;--bs-info-text-emphasis: #6edff6;--bs-warning-text-emphasis: #ffda6a;--bs-danger-text-emphasis: #ea868f;--bs-light-text-emphasis: #f8f9fa;--bs-dark-text-emphasis: #dee2e6;--bs-primary-bg-subtle: #031633;--bs-secondary-bg-subtle: #161719;--bs-success-bg-subtle: #051b11;--bs-info-bg-subtle: #032830;--bs-warning-bg-subtle: #332701;--bs-danger-bg-subtle: #2c0b0e;--bs-light-bg-subtle: #343a40;--bs-dark-bg-subtle: #1a1d20;--bs-primary-border-subtle: #084298;--bs-secondary-border-subtle: #41464b;--bs-suLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sourceRoot":"","sources":["../../src/scss/custom.scss","../../node_modules/bootstrap/scss/mixins/_banner.scss","../../node_modules/bootstrap/scss/_root.scss","../../node_modules/bootstrap/scss/vendor/_rfs.scss","../../node_modules/bootstrap/scss/mixins/_color-mode.scss","../../node_modules/bootstrap/scss/_reboot.scss","../../node_modules/bootstrap/scss/_variables.scss","../../node_modules/bootstrap/scss/mixins/_border-radius.scss","../../node_modules/bootstrap/scss/_type.scss","../../node_modules/bootstrap/scss/mixins/_lists.scss","../../node_modules/bootstrap/scss/_images.scss","../../node_modules/bootstrap/scss/mixins/_image.scss","../../node_modules/bootstrap/scss/_containers.scss","../../node_modules/bootstrap/scss/mixins/_container.scss","../../node_modules/bootstrap/scss/mixins/_breakpoints.scss","../../node_modules/bootstrap/scss/_grid.scss","../../node_modules/bootstrap/scss/mixins/_grid.scss","../../node_modules/bootstrap/scss/_tables.scss","../../node_modules/bootstrap/scss/mixins/_table-variants.scss","../../node_modules/bootstrap/scss/forms/_labels.scss","../../node_modules/bootstrap/scss/forms/_form-text.scss","../../node_modules/bootstrap/scss/forms/_form-control.scss","../../node_modules/bootstrap/scss/mixins/_transition.scss","../../node_modules/bootstrap/scss/mixins/_gradients.scss","../../node_modules/bootstrap/scss/forms/_form-select.scss","../../node_modules/bootstrap/scss/forms/_form-check.scss","../../node_modules/bootstrap/scss/forms/_form-range.scss","../../node_modules/bootstrap/scss/forms/_floating-labels.scss","../../node_modules/bootstrap/scss/forms/_input-group.scss","../../node_modules/bootstrap/scss/mixins/_forms.scss","../../node_modules/bootstrap/scss/_buttons.scss","../../node_modules/bootstrap/scss/mixins/_buttons.scss","../../node_modules/bootstrap/scss/_transitions.scss","../../node_modules/bootstrap/scss/_dropdown.scss","../../node_modules/bootstrap/scss/mixins/_caret.scss","../../node_modules/bootstrap/scss/_button-group.scss","../../node_modules/bootstrap/scss/_nav.scss","../../node_modules/bootstrap/scss/_navbar.scss","../../node_modules/bootstrap/scss/_card.scss","../../node_modules/bootstrap/scss/_accordion.scss","../../node_modules/bootstrap/scss/_breadcrumb.scss","../../node_modules/bootstrap/scss/_pagination.scss","../../node_modules/bootstrap/scss/mixins/_pagination.scss","../../node_modules/bootstrap/scss/_badge.scss","../../node_modules/bootstrap/scss/_alert.scss","../../node_modules/bootstrap/scss/_progress.scss","../../node_modules/bootstrap/scss/_list-group.scss","../../node_modules/bootstrap/scss/_close.scss","../../node_modules/bootstrap/scss/_toasts.scss","../../node_modules/bootstrap/scss/_modal.scss","../../node_modules/bootstrap/scss/mixins/_backdrop.scss","../../node_modules/bootstrap/scss/_tooltip.scss","../../node_modules/bootstrap/scss/mixins/_reset-text.scss","../../node_modules/bootstrap/scss/_popover.scss","../../node_modules/bootstrap/scss/_carousel.scss","../../node_modules/bootstrap/scss/mixins/_clearfix.scss","../../node_modules/bootstrap/scss/_spinners.scss","../../node_modules/bootstrap/scss/_offcanvas.scss","../../node_modules/bootstrap/scss/_placeholders.scss","../../node_modules/bootstrap/scss/helpers/_color-bg.scss","../../node_modules/bootstrap/scss/helpers/_colored-links.scss","../../node_modules/bootstrap/scss/helpers/_focus-ring.scss","../../node_modules/bootstrap/scss/helpers/_icon-link.scss","../../node_modules/bootstrap/scss/helpers/_ratio.scss","../../node_modules/bootstrap/scss/helpers/_position.scss","../../node_modules/bootstrap/scss/helpers/_stacks.scss","../../node_modules/bootstrap/scss/helpers/_visually-hidden.scss","../../node_modules/bootstrap/scss/mixins/_visually-hidden.scss","../../node_modules/bootstrap/scss/helpers/_stretched-link.scss","../../node_modules/bootstrap/scss/helpers/_text-truncation.scss","../../node_modules/bootstrap/scss/mixins/_text-truncate.scss","../../node_modules/bootstrap/scss/helpers/_vr.scss","../../node_modules/bootstrap/scss/mixins/_utilities.scss","../../node_modules/bootstrap/scss/utilities/_api.scss"],"names":[],"mappings":"CAoBA,gBACE,6CACA,+CACA,mCCtBA;AAAA;AAAA;AAAA;AAAA,GCDF,4BASI,mRAIA,+MAIA,yKAIA,8OAIA,yRAIA,yPAIA,yRAGF,8BACA,wBAMA,sNACA,0GACA,0FAOA,iDC2OI,oBALI,KDpOR,2BACA,2BAKA,yBACA,gCACA,mBACA,gCAEA,0BACA,iCAEA,6CACA,qCACA,2BACA,qCAEA,2CACA,oCACA,0BACA,oCAGA,4BAEA,yBACA,kCACA,gCAEA,+BACA,uCAMA,yBACA,8BACA,2BAGA,uBACA,yBACA,2BACA,oDAEA,6BACA,+BACA,8BACA,4BACA,6BACA,oDACA,+BAGA,mDACA,4DACA,qDACA,4DAIA,+BACA,8BACA,gDAIA,+BACA,sCACA,iCACA,wCEhHE,qBFsHA,kBAGA,yBACA,mCACA,sBACA,6BAEA,0BACA,uCAEA,gDACA,wCACA,2BACA,kCAEA,8CACA,uCACA,0BACA,iCAGE,yRAIA,yPAIA,yRAGF,4BAEA,yBACA,+BACA,mCACA,yCAEA,yBACA,8BACA,2BAEA,2BACA,yDAEA,+BACA,sCACA,iCACA,wCGxKJ,qBAGE,sBAeE,8CANJ,MAOM,wBAcN,KACE,SACA,uCF6OI,UALI,yBEtOR,uCACA,uCACA,2BACA,qCACA,mCACA,8BACA,0CASF,GACE,cACA,MCmnB4B,QDlnB5B,SACA,wCACA,QCynB4B,ID/mB9B,0CACE,aACA,cCwjB4B,MDrjB5B,YCwjB4B,IDvjB5B,YCwjB4B,IDvjB5B,8BAGF,OFuMQ,iCLine truncated
|
||||
@@ -0,0 +1,371 @@
|
||||
:root {
|
||||
/*
|
||||
Color Palette
|
||||
https://coolors.co/palette/033270-1368aa-4091c9-9dcee2-fedfd4-f29479-f26a4f-ef3c2d-cb1b16-65010c
|
||||
--yale-blue: #033270ff;
|
||||
--green-blue: #1368aaff;
|
||||
--celestial-blue: #4091c9ff;
|
||||
--light-blue: #9dcee2ff;
|
||||
--misty-rose: #fedfd4ff;
|
||||
--salmon: #f29479ff;
|
||||
--tomato: #f26a4fff;
|
||||
--vermilion: #ef3c2dff;
|
||||
--engineering-orange: #cb1b16ff;
|
||||
--rosewood: #65010cff;
|
||||
*/
|
||||
--split-foreground: #000000;
|
||||
/* Combination of Salmon/Tomato */
|
||||
--split-background: #F27F64;
|
||||
--join-foreground: #000000;
|
||||
/* Combination of Light/Celestial Blue */
|
||||
--join-background: #6FB0D6;
|
||||
|
||||
/* Color Palettes for subnet highlights
|
||||
https://coolors.co/palette/f0d7df-f9e0e2-f8eaec-f7ddd9-f7e6da-e3e9dd-c4dbd9-d4e5e3-cae0e4-c8c7d6
|
||||
https://coolors.co/palette/54478c-2c699a-048ba8-0db39e-16db93-83e377-b9e769-efea5a-f1c453-f29e4c
|
||||
https://coolors.co/palette/e2e2df-d2d2cf-e2cfc4-f7d9c4-faedcb-c9e4de-c6def1-dbcdf0-f2c6de-f9c6c9
|
||||
https://coolors.co/palette/54478c-2c699a-048ba8-0db39e-16db93-83e377-b9e769-efea5a-f1c453-f29e4c
|
||||
https://coolors.co/palette/ffadad-ffd6a5-fdffb6-caffbf-9bf6ff-a0c4ff-bdb2ff-ffc6ff-e6e6e6
|
||||
*/
|
||||
--subpal-1-1: #ffadadff;
|
||||
--subpal-1-2: #ffd6a5ff;
|
||||
--subpal-1-3: #fdffb6ff;
|
||||
--subpal-1-4: #caffbfff;
|
||||
--subpal-1-5: #9bf6ffff;
|
||||
--subpal-1-6: #a0c4ffff;
|
||||
--subpal-1-7: #bdb2ffff;
|
||||
--subpal-1-8: #ffc6ffff;
|
||||
--subpal-1-9: #e6e6e6ff;
|
||||
--subpal-1-10: #ffffffff;
|
||||
}
|
||||
|
||||
.table>:not(caption)>*>* {
|
||||
background-color: unset;
|
||||
}
|
||||
|
||||
#bottom_nav {
|
||||
height:2rem;
|
||||
}
|
||||
|
||||
#bottom_nav span {
|
||||
border-bottom:1px black dotted;
|
||||
}
|
||||
|
||||
#whats_new {
|
||||
cursor:pointer !important;
|
||||
text-align: right;
|
||||
width:15rem;
|
||||
float:right;
|
||||
}
|
||||
|
||||
#whats_new a {
|
||||
width:15rem;
|
||||
text-align: right;
|
||||
text-decoration: none;
|
||||
border-bottom:1px var(--bs-success) dotted;
|
||||
}
|
||||
|
||||
|
||||
#copy_url {
|
||||
cursor:pointer !important;
|
||||
text-align: center;
|
||||
width:11rem;
|
||||
}
|
||||
|
||||
#copy_url span {
|
||||
width:11rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#color_palette {
|
||||
min-width: 0rem;
|
||||
}
|
||||
|
||||
#color_palette #colors_word_close {
|
||||
line-height: 2rem;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
#color_palette #colors_word_open {
|
||||
display:inline-block;
|
||||
height:2rem;
|
||||
cursor:pointer;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#color_palette div {
|
||||
display:inline-block;
|
||||
height:2rem;
|
||||
cursor:pointer;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#color_palette div[id^='palette_picker_'] {
|
||||
width:2rem;
|
||||
border:1px solid;
|
||||
}
|
||||
|
||||
#color_palette #reset_colors {
|
||||
padding: 0 0.5rem;
|
||||
border: 1px solid;
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
|
||||
#color_palette #palette_picker_1 {
|
||||
background-color: var(--subpal-1-1);
|
||||
}
|
||||
#color_palette #palette_picker_2 {
|
||||
background-color: var(--subpal-1-2);
|
||||
}
|
||||
#color_palette #palette_picker_3 {
|
||||
background-color: var(--subpal-1-3);
|
||||
}
|
||||
#color_palette #palette_picker_4 {
|
||||
background-color: var(--subpal-1-4);
|
||||
}
|
||||
#color_palette #palette_picker_5 {
|
||||
background-color: var(--subpal-1-5);
|
||||
}
|
||||
#color_palette #palette_picker_6 {
|
||||
background-color: var(--subpal-1-6);
|
||||
}
|
||||
#color_palette #palette_picker_7 {
|
||||
background-color: var(--subpal-1-7);
|
||||
}
|
||||
#color_palette #palette_picker_8 {
|
||||
background-color: var(--subpal-1-8);
|
||||
}
|
||||
#color_palette #palette_picker_9 {
|
||||
background-color: var(--subpal-1-9);
|
||||
}
|
||||
#color_palette #palette_picker_10 {
|
||||
background-color: var(--subpal-1-10);
|
||||
}
|
||||
|
||||
.container-xxl {
|
||||
min-width: 576px;
|
||||
}
|
||||
|
||||
#navigation a {
|
||||
color:#000000;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Dark mode adjustments */
|
||||
[data-bs-theme="dark"] #navigation a {
|
||||
color:#ffffff;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] #bottom_nav span {
|
||||
border-bottom:1px white dotted;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] #calc td.split {
|
||||
background-color: #d9634f;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] #calc td.join {
|
||||
background-color: #4d8fa6;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] #calc span.split {
|
||||
color: #d9634f;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] #calc span.join {
|
||||
color: #4d8fa6;
|
||||
}
|
||||
|
||||
/* Adjust color palette borders for dark mode */
|
||||
[data-bs-theme="dark"] #color_palette div[id^='palette_picker_'] {
|
||||
border-color: #dee2e6;
|
||||
}
|
||||
|
||||
/* Dark mode reset button */
|
||||
[data-bs-theme="dark"] #color_palette #reset_colors {
|
||||
background-color: #495057;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* Dark mode color palette - darker colors for better contrast with white text */
|
||||
[data-bs-theme="dark"] #color_palette #palette_picker_1 {
|
||||
background-color: #8b3a3a; /* Deep red */
|
||||
}
|
||||
[data-bs-theme="dark"] #color_palette #palette_picker_2 {
|
||||
background-color: #8b5a2b; /* Deep orange/brown */
|
||||
}
|
||||
[data-bs-theme="dark"] #color_palette #palette_picker_3 {
|
||||
background-color: #8b7500; /* Deep gold */
|
||||
}
|
||||
[data-bs-theme="dark"] #color_palette #palette_picker_4 {
|
||||
background-color: #2e7d32; /* Deep green */
|
||||
}
|
||||
[data-bs-theme="dark"] #color_palette #palette_picker_5 {
|
||||
background-color: #006064; /* Deep cyan */
|
||||
}
|
||||
[data-bs-theme="dark"] #color_palette #palette_picker_6 {
|
||||
background-color: #1565c0; /* Deep blue */
|
||||
}
|
||||
[data-bs-theme="dark"] #color_palette #palette_picker_7 {
|
||||
background-color: #6a1b9a; /* Deep purple */
|
||||
}
|
||||
[data-bs-theme="dark"] #color_palette #palette_picker_8 {
|
||||
background-color: #880e4f; /* Deep magenta */
|
||||
}
|
||||
[data-bs-theme="dark"] #color_palette #palette_picker_9 {
|
||||
background-color: #424242; /* Deep gray */
|
||||
}
|
||||
[data-bs-theme="dark"] #color_palette #palette_picker_10 {
|
||||
background-color: #616161; /* Medium gray */
|
||||
}
|
||||
|
||||
/* Cloud mode links styling */
|
||||
.cloud-mode-link {
|
||||
color: #000;
|
||||
border-bottom: 1px dotted #000;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.cloud-mode-link:hover {
|
||||
color: #333;
|
||||
border-bottom-style: solid;
|
||||
}
|
||||
|
||||
/* Dark mode cloud links */
|
||||
[data-bs-theme="dark"] .cloud-mode-link {
|
||||
color: #fff;
|
||||
border-bottom-color: #fff;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .cloud-mode-link:hover {
|
||||
color: #ddd;
|
||||
border-bottom-style: solid;
|
||||
}
|
||||
|
||||
#subnet_input #network {
|
||||
flex-grow: 0;
|
||||
flex-basis: 11rem;
|
||||
}
|
||||
#subnet_input #netsize {
|
||||
flex-grow: 0;
|
||||
flex-basis: 4rem;
|
||||
}
|
||||
|
||||
#calc {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#calc>tbody>tr>td, #calc>tbody>tr>th, #calc>tfoot>tr>td, #calc>tfoot>tr>th, #calc>thead>tr>td, #calc>thead>tr>th {
|
||||
/* Equivalent to p-1 */
|
||||
padding: 0.25rem;
|
||||
/* Equivalent to p-2 */
|
||||
padding-top: 0.25rem;
|
||||
padding-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
/*
|
||||
#joinHeader {
|
||||
border:none;
|
||||
}
|
||||
|
||||
#calc thead {
|
||||
border-right-width: 1px;
|
||||
border-bottom-width: 0px;
|
||||
}*/
|
||||
|
||||
#calc span.split {
|
||||
color: var(--split-background);
|
||||
}
|
||||
|
||||
#calc span.join {
|
||||
color: var(--join-background);
|
||||
}
|
||||
|
||||
#calc td.split {
|
||||
background-color: var(--split-background);
|
||||
color: var(--split-foreground);
|
||||
cursor: pointer;
|
||||
min-width: 2.3rem;
|
||||
width: 1%;
|
||||
font-size:1rem;
|
||||
}
|
||||
|
||||
#notifyModal .modal-content {
|
||||
background-color: var(--bs-alert-bg);
|
||||
}
|
||||
|
||||
#calc td.join {
|
||||
background-color: var(--join-background);
|
||||
color: var(--join-foreground);
|
||||
cursor: pointer;
|
||||
min-width: 2.3rem;
|
||||
width: 1%;
|
||||
font-size:1rem;
|
||||
}
|
||||
|
||||
#calc td.split, #calc td.join {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#calc td.split span, #calc td.join span {
|
||||
padding-right: 0.4rem;
|
||||
}
|
||||
#calc .note {
|
||||
padding-left:0.5rem;
|
||||
padding-right:0.5rem;
|
||||
}
|
||||
|
||||
#calc .note label,input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#calc .row_address {
|
||||
white-space: nowrap;
|
||||
padding-left:0.5rem;
|
||||
padding-right:0.5rem;
|
||||
}
|
||||
|
||||
#calc .row_range {
|
||||
/* TODO: Make this a checkbox?
|
||||
white-space: nowrap;
|
||||
*/
|
||||
padding-left:0.5rem;
|
||||
padding-right:0.5rem;
|
||||
}
|
||||
|
||||
#calc .row_usable {
|
||||
/* TODO: Make this a checkbox?
|
||||
white-space: nowrap;
|
||||
*/
|
||||
padding-left:0.5rem;
|
||||
padding-right:0.5rem;
|
||||
}
|
||||
|
||||
#calc .row_hosts {
|
||||
width:1%;
|
||||
white-space: nowrap;
|
||||
padding-left:0.5rem;
|
||||
padding-right:0.5rem;
|
||||
}
|
||||
|
||||
|
||||
#calc .note input {
|
||||
border: none !important;
|
||||
border-color: transparent !important;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* https://stackoverflow.com/a/47245068/606974 */
|
||||
.rotate {
|
||||
vertical-align: middle;
|
||||
text-align: end;
|
||||
}
|
||||
.rotate span {
|
||||
-ms-writing-mode: tb-rl;
|
||||
-webkit-writing-mode: vertical-rl;
|
||||
writing-mode: vertical-rl;
|
||||
white-space: nowrap;
|
||||
padding-top: 0.25rem;
|
||||
}
|
||||
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 8.5 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<browserconfig>
|
||||
<msapplication>
|
||||
<tile>
|
||||
<square150x150logo src="icon/mstile-150x150.png"/>
|
||||
<TileColor>#da532c</TileColor>
|
||||
</tile>
|
||||
</msapplication>
|
||||
</browserconfig>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
||||
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
||||
width="512.000000pt" height="512.000000pt" viewBox="0 0 512.000000 512.000000"
|
||||
preserveAspectRatio="xMidYMid meet">
|
||||
<metadata>
|
||||
Created by potrace 1.14, written by Peter Selinger 2001-2017
|
||||
</metadata>
|
||||
<g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"
|
||||
fill="#000000" stroke="none">
|
||||
<path d="M520 5112 c-219 -30 -407 -186 -484 -400 l-31 -87 -1 -2048 c-1
|
||||
-1615 2 -2059 12 -2100 18 -74 34 -115 67 -172 80 -137 191 -226 344 -276 66
|
||||
-22 82 -22 551 -25 l482 -2 0 199 c0 152 -3 199 -12 200 -7 0 -206 1 -441 1
|
||||
-238 0 -444 4 -463 10 -46 12 -103 64 -124 111 -16 35 -17 110 -17 938 l0 899
|
||||
2157 0 2158 0 -2 -907 -1 -908 -23 -40 c-26 -45 -73 -82 -123 -95 -19 -4 -218
|
||||
-8 -444 -9 -225 0 -420 0 -432 0 l-23 -1 0 -199 0 -199 483 2 482 2 71 27 c40
|
||||
15 93 39 119 53 74 42 175 149 219 233 75 144 69 -51 71 2221 2 2192 4 2093
|
||||
-47 2213 -70 164 -200 281 -375 338 -66 22 -82 22 -545 25 l-478 2 0 -199 0
|
||||
-199 23 -1 c12 0 213 -1 445 -1 424 -1 424 -1 470 -24 52 -26 90 -74 102 -128
|
||||
4 -19 8 -433 8 -920 l0 -886 -2158 0 -2158 0 0 888 c0 537 3 902 9 925 13 48
|
||||
63 105 112 127 34 16 84 18 455 18 229 0 432 1 450 1 l32 1 0 199 0 198 -457
|
||||
0 c-252 -1 -469 -3 -483 -5z"/>
|
||||
<path d="M2423 4984 c-76 -75 -307 -304 -515 -510 l-376 -373 139 -143 140
|
||||
-142 142 141 c78 78 202 200 275 272 l132 131 0 -590 0 -590 200 0 200 0 0
|
||||
587 0 588 269 -269 269 -269 141 142 141 142 -509 509 -509 510 -139 -136z"/>
|
||||
<path d="M2360 1355 c0 -322 -2 -585 -5 -585 -3 0 -125 118 -271 263 -146 144
|
||||
-267 264 -270 266 -2 3 -67 -60 -144 -138 l-139 -143 139 -137 c76 -75 308
|
||||
-304 515 -509 l376 -372 510 509 510 510 -142 142 -141 141 -269 -268 -269
|
||||
-269 0 588 0 587 -200 0 -200 0 0 -585z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "Visual Subnet Calc",
|
||||
"short_name": "Visual Subnet Calc",
|
||||
"icons": [
|
||||
{
|
||||
"src": "icon/android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "icon/android-chrome-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"theme_color": "#ffffff",
|
||||
"background_color": "#ffffff",
|
||||
"display": "standalone"
|
||||
}
|
||||
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 41 KiB |
@@ -0,0 +1,4 @@
|
||||
/*! jQuery Validation Plugin - v1.22.1 - 2/18/2026
|
||||
* https://jqueryvalidation.org/
|
||||
* Copyright (c) 2026 Jörn Zaefferer; Licensed MIT */
|
||||
!function(a){"function"==typeof define&&define.amd?define(["jquery","./jquery.validate.min"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){return function(){function b(a){return a.replace(/<.[^<>]*?>/g," ").replace(/ | /gi," ").replace(/[.(),;:!?%#$'\"_+=\/\-“”’]*/g,"")}a.validator.addMethod("maxWords",function(a,c,d){return this.optional(c)||b(a).match(/\b\w+\b/g).length<=d},a.validator.format("Please enter {0} words or less.")),a.validator.addMethod("minWords",function(a,c,d){return this.optional(c)||b(a).match(/\b\w+\b/g).length>=d},a.validator.format("Please enter at least {0} words.")),a.validator.addMethod("rangeWords",function(a,c,d){var e=b(a),f=/\b\w+\b/g;return this.optional(c)||e.match(f).length>=d[0]&&e.match(f).length<=d[1]},a.validator.format("Please enter between {0} and {1} words."))}(),a.validator.addMethod("abaRoutingNumber",function(a){var b=0,c=a.split(""),d=c.length;if(9!==d)return!1;for(var e=0;e<d;e+=3)b+=3*parseInt(c[e],10)+7*parseInt(c[e+1],10)+parseInt(c[e+2],10);return 0!==b&&b%10===0},"Please enter a valid routing number."),a.validator.addMethod("accept",function(b,c,d){var e,f,g,h="string"==typeof d?d.replace(/\s/g,""):"image/*",i=this.optional(c);if(i)return i;if("file"===a(c).attr("type")&&(h=h.replace(/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/g,"\\$&").replace(/,/g,"|").replace(/\/\*/g,"/.*"),c.files&&c.files.length))for(g=new RegExp(".?("+h+")$","i"),e=0;e<c.files.length;e++)if(f=c.files[e],!f.type.match(g))return!1;return!0},a.validator.format("Please enter a value with a valid mimetype.")),a.validator.addMethod("alphanumeric",function(a,b){return this.optional(b)||/^\w+$/i.test(a)},"Letters, numbers, and underscores only please."),a.validator.addMethod("bankaccountNL",function(a,b){if(this.optional(b))return!0;if(!/^[0-9]{9}|([0-9]{2} ){3}[0-9]{3}$/.test(a))return!1;var c,d,e,f=a.replace(/ /g,""),g=0,h=f.length;for(c=0;c<h;c++)d=h-c,e=f.substring(c,c+1),g+=d*e;return g%11===0},"Please specify a valid bank account number."),a.validator.addMethod("bankorgiroaccountNL",function(b,c){return this.optional(c)||a.validator.methods.bankaccountNL.call(this,b,c)||a.validator.methods.giroaccountNL.call(this,b,c)},"Please specify a valid bank or giro account number."),a.validator.addMethod("bic",function(a,b){return this.optional(b)||/^([A-Z]{6}[A-Z2-9][A-NP-Z1-9])(X{3}|[A-WY-Z0-9][A-Z0-9]{2})?$/.test(a.toUpperCase())},"Please specify a valid BIC code."),a.validator.addMethod("cifES",function(a,b){"use strict";function c(a){return a%2===0}if(this.optional(b))return!0;var d,e,f,g,h=new RegExp(/^([ABCDEFGHJKLMNPQRSUVW])(\d{7})([0-9A-J])$/gi),i=a.substring(0,1),j=a.substring(1,8),k=a.substring(8,9),l=0,m=0,n=0;if(9!==a.length||!h.test(a))return!1;for(d=0;d<j.length;d++)e=parseInt(j[d],10),c(d)?(e*=2,n+=e<10?e:e-9):m+=e;return l=m+n,f=(10-l.toString().slice(-1)).toString(),f=parseInt(f,10)>9?"0":f,g="JABCDEFGHI".charAt(f).toString(),i.match(/[ABEH]/)?k===f:i.match(/[KPQS]/)?k===g:k===f||k===g},"Please specify a valid CIF number."),a.validator.addMethod("cnhBR",function(a){if(a=a.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,""),11!==a.length)return!1;var b,c,d,e,f,g,h=0,i=0;if(b=a.charAt(0),new Array(12).join(b)===a)return!1;for(e=0,f=9,g=0;e<9;++e,--f)h+=+(a.charAt(e)*f);for(c=h%11,c>=10&&(c=0,i=2),h=0,e=0,f=1,g=0;e<9;++e,++f)h+=+(a.charAt(e)*f);return d=h%11,d>=10?d=0:d-=i,String(c).concat(d)===a.substr(-2)},"Please specify a valid CNH number."),a.validator.addMethod("cnpjBR",function(a,b){"use strict";if(this.optional(b))return!0;if(a=a.replace(/[^\d]+/g,""),14!==a.length)return!1;if("00000000000000"===a||"11111111111111"===a||"22222222222222"===a||"33333333333333"===a||"44444444444444"===a||"55555555555555"===a||"66666666666666"===a||"77777777777777"===a||"88888888888888"===a||"99999999999999"===a)return!1;for(var c=a.length-2,d=a.substring(0,c),e=a.substring(c),f=0,g=c-7,h=c;h>=1;h--)f+=d.charAt(c-h)*g--,g<2&&(g=9);var i=f%11<2?0:11-f%11;if(i!==parseInt(e.charAt(0),10))return!1;c+=1,d=a.substring(0,c),f=0,g=c-7;for(var j=c;j>=1;j--)f+=d.charAt(c-j)*g--,g<2&&(g=9);return i=f%11<2?0:11-f%11,i===parseInt(e.charAt(1),10)},"Please specify a CNPJ value number."),a.validator.addMethod("cpfBR",function(a,b){"use strict";if(this.optional(b))return!0;if(a=a.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,""),11!==a.length)return!1;var c,d,e,f,g=0;if(c=parseInt(a.substring(9,10),10),d=parseInt(a.substring(10,11),10),e=function(a,b){var c=10*a%11;return 10!==c&&11!==c||(c=0),c===b},""===a||"00000000000"===a||"11111111111"===a||"22222222222"===a||"33333333333"===a||"44444444444"===a||"55555555555"===a||"66666666666"===a||"77777777777"===a||"88888888888"===a||"99999999999"===a)return!1;for(f=1;f<=9;f++)g+=parseInt(a.substring(f-1,f),10)*(11-f);if(e(g,c)){for(g=0,f=1;f<=10;f++)g+=parseInt(a.substring(f-1,f),10)*(12-f);return e(g,d)}return!1},"Please specify a valid CPF number."),a.validator.addMethod("creditcard",functioLine truncated
|
||||
@@ -0,0 +1,7 @@
|
||||
/*!
|
||||
* Bootstrap v5.3.8 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
*/
|
||||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,function(){"use strict";const t=new Map,e={set(e,i,n){t.has(e)||t.set(e,new Map);const s=t.get(e);s.has(i)||0===s.size?s.set(i,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(e,i)=>t.has(e)&&t.get(e).get(i)||null,remove(e,i){if(!t.has(e))return;const n=t.get(e);n.delete(i),0===n.size&&t.delete(e)}},i="transitionend",n=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),t),s=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),o=t=>{t.dispatchEvent(new Event(i))},r=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),a=t=>r(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(n(t)):null,l=t=>{if(!r(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},c=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),h=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?h(t.parentNode):null},d=()=>{},u=t=>{t.offsetHeight},f=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,p=[],m=()=>"rtl"===document.documentElement.dir,g=t=>{var e;e=()=>{const e=f();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(p.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of p)t()}),p.push(e)):e()},_=(t,e=[],i=t)=>"function"==typeof t?t.call(...e):i,b=(t,e,n=!0)=>{if(!n)return void _(t);const s=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let r=!1;const a=({target:n})=>{n===e&&(r=!0,e.removeEventListener(i,a),_(t))};e.addEventListener(i,a),setTimeout(()=>{r||o(e)},s)},v=(t,e,i,n)=>{const s=t.length;let o=t.indexOf(e);return-1===o?!i&&n?t[s-1]:t[0]:(o+=i?1:-1,n&&(o=(o+s)%s),t[Math.max(0,Math.min(o,s-1))])},y=/[^.]*(?=\..*)\.|.*/,w=/\..*/,A=/::\d+$/,E={};let T=1;const C={mouseenter:"mouseover",mouseleave:"mouseout"},O=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function x(t,e){return e&&`${e}::${T++}`||t.uidEvent||T++}function k(t){const e=x(t);return t.uidEvent=e,E[e]=E[e]||{},E[e]}function L(t,e,i=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===i)}function S(t,e,i){const n="string"==typeof e,s=n?i:e||i;let o=N(t);return O.has(o)||(o=t),[n,s,o]}function D(t,e,i,n,s){if("string"!=typeof e||!t)return;let[o,r,a]=S(e,i,n);if(e in C){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=k(t),c=l[a]||(l[a]={}),h=L(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=x(r,e.replace(y,"")),u=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return j(s,{delegateTarget:r}),n.oneOff&&P.off(t,s.type,e,i),i.apply(r,[s])}}(t,i,r):function(t,e){return function i(n){return j(n,{delegateTarget:t}),i.oneOff&&P.off(t,n.type,e),e.apply(t,[n])}}(t,r);u.delegationSelector=o?i:null,u.callable=r,u.oneOff=s,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function $(t,e,i,n,s){const o=L(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function I(t,e,i,n){const s=e[i]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&$(t,e,i,r.callable,r.delegationSelector)}function N(t){return t=t.replace(w,""),C[t]||t}const P={on(t,e,i,n){D(t,e,i,n,!1)},one(t,e,i,n){D(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=S(e,i,n),a=r!==e,l=k(t),c=l[rLine truncated
|
||||
//# sourceMappingURL=bootstrap.bundle.min.js.map
|
||||
@@ -0,0 +1,2 @@
|
||||
/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
|
||||
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function fe(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}ce.fn=ce.prototype={jquery:t,constructor:ce,length:0,toArray:function(){return ae.call(this)},get:function(e){return null==e?ae.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ce.each(this,e)},map:function(n){return this.pushStack(ce.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:oe.sort,splice:oe.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(ce.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||ce.isPlainObject(n)?n:{},i=!1,a[t]=ce.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},ce.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e))&&(!(t=r(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&o.call(n)===a)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(c(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)while(t=e[r++])n+=ce.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(c(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!l.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(c(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:le}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=oe[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var pe=oe.pop,de=oe.sort,he=oe.splice,ge="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ge+"+$","g");ce.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var f=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function p(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}ce.escapeSelector=function(e){return(e+"").replace(f,p)};var ye=C,me=s;!function(){var e,b,w,o,a,T,r,C,d,i,k=me,S=ce.expando,E=0,n=0,s=W(),c=W(),u=W(),h=W(),l=function(e,t){return e===t&&(a=!0),0},f="checked|selected|async|autofocus|autoplay|conLine truncated
|
||||
@@ -0,0 +1,4 @@
|
||||
/*! jQuery Validation Plugin - v1.22.1 - 2/18/2026
|
||||
* https://jqueryvalidation.org/
|
||||
* Copyright (c) 2026 Jörn Zaefferer; Licensed MIT */
|
||||
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){a.extend(a.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var c=a.data(this[0],"validator");return c?c:(this.attr("novalidate","novalidate"),c=new a.validator(b,this[0]),a.data(this[0],"validator",c),c.settings.onsubmit&&(this.on("click.validate",":submit",function(b){c.submitButton=b.currentTarget,a(this).hasClass("cancel")&&(c.cancelSubmit=!0),void 0!==a(this).attr("formnovalidate")&&(c.cancelSubmit=!0)}),this.on("submit.validate",function(b){function d(){var d,e;return c.submitButton&&(c.settings.submitHandler||c.formSubmitted)&&(d=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)),!(c.settings.submitHandler&&!c.settings.debug)||(e=c.settings.submitHandler.call(c,c.currentForm,b),d&&d.remove(),void 0!==e&&e)}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){var b,c,d;return a(this[0]).is("form")?b=this.validate().form():(d=[],b=!0,c=a(this[0].form).validate(),this.each(function(){b=c.element(this)&&b,b||(d=d.concat(c.errorList))}),c.errorList=d),b},rules:function(b,c){var d,e,f,g,h,i,j=this[0],k="undefined"!=typeof this.attr("contenteditable")&&"false"!==this.attr("contenteditable");if(null!=j&&(!j.form&&k&&(j.form=this.closest("form")[0],j.name=this.attr("name")),null!=j.form)){if(b)switch(d=a.data(j.form,"validator").settings,e=d.rules,f=a.validator.staticRules(j),b){case"add":a.extend(f,a.validator.normalizeRule(c)),delete f.messages,e[j.name]=f,c.messages&&(d.messages[j.name]=a.extend(d.messages[j.name],c.messages));break;case"remove":return c?(i={},a.each(c.split(/\s/),function(a,b){i[b]=f[b],delete f[b]}),i):(delete e[j.name],f)}return g=a.validator.normalizeRules(a.extend({},a.validator.classRules(j),a.validator.attributeRules(j),a.validator.dataRules(j),a.validator.staticRules(j)),j),g.required&&(h=g.required,delete g.required,g=a.extend({required:h},g)),g.remote&&(h=g.remote,delete g.remote,g=a.extend(g,{remote:h})),g}}});var b=function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};a.extend(a.expr.pseudos||a.expr[":"],{blank:function(c){return!b(""+a(c).val())},filled:function(c){var d=a(c).val();return null!==d&&!!b(""+d)},unchecked:function(b){return!a(b).prop("checked")}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return 1===arguments.length?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:void 0===c?b:(arguments.length>2&&c.constructor!==Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!==Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp("\\{"+a+"\\}","g"),function(){return c})}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,ariaDescribedByCleanup:!1,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,customElements:[],onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(a)))},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(b,c){var d=[16,17,18,20,35,36,37,38,39,40,45,144,225];9===c.which&&""===this.elementValue(b)||a.inArray(c.keyCode,d)!==-1||(b.name in this.submitted||b.name in this.invalid)&&this.element(b)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("PleaLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
var LZString=function(){var r=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",e={};function t(r,o){if(!e[r]){e[r]={};for(var n=0;n<r.length;n++)e[r][r.charAt(n)]=n}return e[r][o]}var i={compressToBase64:function(r){if(null==r)return"";var n=i._compress(r,6,function(r){return o.charAt(r)});switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}},decompressFromBase64:function(r){return null==r?"":""==r?null:i._decompress(r.length,32,function(n){return t(o,r.charAt(n))})},compressToUTF16:function(o){return null==o?"":i._compress(o,15,function(o){return r(o+32)})+" "},decompressFromUTF16:function(r){return null==r?"":""==r?null:i._decompress(r.length,16384,function(o){return r.charCodeAt(o)-32})},compressToUint8Array:function(r){for(var o=i.compress(r),n=new Uint8Array(2*o.length),e=0,t=o.length;e<t;e++){var s=o.charCodeAt(e);n[2*e]=s>>>8,n[2*e+1]=s%256}return n},decompressFromUint8Array:function(o){if(null==o)return i.decompress(o);for(var n=new Array(o.length/2),e=0,t=n.length;e<t;e++)n[e]=256*o[2*e]+o[2*e+1];var s=[];return n.forEach(function(o){s.push(r(o))}),i.decompress(s.join(""))},compressToEncodedURIComponent:function(r){return null==r?"":i._compress(r,6,function(r){return n.charAt(r)})},decompressFromEncodedURIComponent:function(r){return null==r?"":""==r?null:(r=r.replace(/ /g,"+"),i._decompress(r.length,32,function(o){return t(n,r.charAt(o))}))},compress:function(o){return i._compress(o,16,function(o){return r(o)})},_compress:function(r,o,n){if(null==r)return"";var e,t,i,s={},u={},a="",p="",c="",l=2,f=3,h=2,d=[],m=0,v=0;for(i=0;i<r.length;i+=1)if(a=r.charAt(i),Object.prototype.hasOwnProperty.call(s,a)||(s[a]=f++,u[a]=!0),p=c+a,Object.prototype.hasOwnProperty.call(s,p))c=p;else{if(Object.prototype.hasOwnProperty.call(u,c)){if(c.charCodeAt(0)<256){for(e=0;e<h;e++)m<<=1,v==o-1?(v=0,d.push(n(m)),m=0):v++;for(t=c.charCodeAt(0),e=0;e<8;e++)m=m<<1|1&t,v==o-1?(v=0,d.push(n(m)),m=0):v++,t>>=1}else{for(t=1,e=0;e<h;e++)m=m<<1|t,v==o-1?(v=0,d.push(n(m)),m=0):v++,t=0;for(t=c.charCodeAt(0),e=0;e<16;e++)m=m<<1|1&t,v==o-1?(v=0,d.push(n(m)),m=0):v++,t>>=1}0==--l&&(l=Math.pow(2,h),h++),delete u[c]}else for(t=s[c],e=0;e<h;e++)m=m<<1|1&t,v==o-1?(v=0,d.push(n(m)),m=0):v++,t>>=1;0==--l&&(l=Math.pow(2,h),h++),s[p]=f++,c=String(a)}if(""!==c){if(Object.prototype.hasOwnProperty.call(u,c)){if(c.charCodeAt(0)<256){for(e=0;e<h;e++)m<<=1,v==o-1?(v=0,d.push(n(m)),m=0):v++;for(t=c.charCodeAt(0),e=0;e<8;e++)m=m<<1|1&t,v==o-1?(v=0,d.push(n(m)),m=0):v++,t>>=1}else{for(t=1,e=0;e<h;e++)m=m<<1|t,v==o-1?(v=0,d.push(n(m)),m=0):v++,t=0;for(t=c.charCodeAt(0),e=0;e<16;e++)m=m<<1|1&t,v==o-1?(v=0,d.push(n(m)),m=0):v++,t>>=1}0==--l&&(l=Math.pow(2,h),h++),delete u[c]}else for(t=s[c],e=0;e<h;e++)m=m<<1|1&t,v==o-1?(v=0,d.push(n(m)),m=0):v++,t>>=1;0==--l&&(l=Math.pow(2,h),h++)}for(t=2,e=0;e<h;e++)m=m<<1|1&t,v==o-1?(v=0,d.push(n(m)),m=0):v++,t>>=1;for(;;){if(m<<=1,v==o-1){d.push(n(m));break}v++}return d.join("")},decompress:function(r){return null==r?"":""==r?null:i._decompress(r.length,32768,function(o){return r.charCodeAt(o)})},_decompress:function(o,n,e){var t,i,s,u,a,p,c,l=[],f=4,h=4,d=3,m="",v=[],g={val:e(0),position:n,index:1};for(t=0;t<3;t+=1)l[t]=t;for(s=0,a=Math.pow(2,2),p=1;p!=a;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=e(g.index++)),s|=(u>0?1:0)*p,p<<=1;switch(s){case 0:for(s=0,a=Math.pow(2,8),p=1;p!=a;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=e(g.index++)),s|=(u>0?1:0)*p,p<<=1;c=r(s);break;case 1:for(s=0,a=Math.pow(2,16),p=1;p!=a;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=e(g.index++)),s|=(u>0?1:0)*p,p<<=1;c=r(s);break;case 2:return""}for(l[3]=c,i=c,v.push(c);;){if(g.index>o)return"";for(s=0,a=Math.pow(2,d),p=1;p!=a;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=e(g.index++)),s|=(u>0?1:0)*p,p<<=1;switch(c=s){case 0:for(s=0,a=Math.pow(2,8),p=1;p!=a;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=e(g.index++)),s|=(u>0?1:0)*p,p<<=1;l[h++]=r(s),c=h-1,f--;break;case 1:for(s=0,a=Math.pow(2,16),p=1;p!=a;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=e(g.index++)),s|=(u>0?1:0)*p,p<<=1;l[h++]=r(s),c=h-1,f--;break;case 2:return v.join("")}if(0==f&&(f=Math.pow(2,d),d++),l[c])m=l[c];else{if(c!==h)return null;m=i+i.charAt(0)}v.push(m),l[h++]=i+m.charAt(0),i=m,0==--f&&(f=Math.pow(2,d),d++)}}};return i}();"function"==typeof define&&define.amd?define(function(){return LZString}):"undefined"!=typeof module&&null!=module?module.exports=LZString:"undefined"!=typeof angular&&null!=angular&&angular.module("LZString",[]).factory("LZString",function(){return LZString});
|
||||
@@ -1,4 +1,90 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["config:recommended"]
|
||||
"configMigration": true,
|
||||
"branchConcurrentLimit": 5,
|
||||
"prHourlyLimit": 25,
|
||||
"recreateWhen": "never",
|
||||
"prCreation": "immediate",
|
||||
"timezone": "Europe/Paris",
|
||||
"schedule": [
|
||||
"* 0-3 * * *"
|
||||
],
|
||||
"automergeSchedule": [
|
||||
"* 0-3 * * *"
|
||||
],
|
||||
"extends": [
|
||||
"config:recommended",
|
||||
"docker:pinDigests",
|
||||
"helpers:pinGitHubActionDigests",
|
||||
":pinDevDependencies"
|
||||
],
|
||||
"packageRules": [
|
||||
{
|
||||
"groupName": "TypeScript toolchain",
|
||||
"matchPackageNames": ["typescript", "vue-tsc"],
|
||||
"matchUpdateTypes": ["major", "minor", "patch"]
|
||||
},
|
||||
{
|
||||
"groupName": "Vue ecosystem",
|
||||
"matchPackageNames": [
|
||||
"vue",
|
||||
"@vue/compiler-sfc",
|
||||
"@vue/runtime-dom",
|
||||
"@vue/test-utils",
|
||||
"@vue/tsconfig"
|
||||
],
|
||||
"matchUpdateTypes": ["major", "minor", "patch"]
|
||||
},
|
||||
{
|
||||
"groupName": "Vite ecosystem",
|
||||
"matchPackageNames": [
|
||||
"vite",
|
||||
"@vitejs/plugin-vue",
|
||||
"@vitejs/plugin-vue-jsx",
|
||||
"vite-plugin-pwa",
|
||||
"vite-plugin-vue-markdown",
|
||||
"vite-svg-loader"
|
||||
],
|
||||
"matchUpdateTypes": ["major", "minor", "patch"]
|
||||
},
|
||||
{
|
||||
"groupName": "UnoCSS ecosystem",
|
||||
"matchPackageNames": [
|
||||
"unocss",
|
||||
"@unocss/eslint-config",
|
||||
"unocss-preset-scrollbar"
|
||||
],
|
||||
"matchUpdateTypes": ["major", "minor", "patch"]
|
||||
},
|
||||
{
|
||||
"groupName": "Unplugin ecosystem",
|
||||
"matchPackageNames": [
|
||||
"unplugin-auto-import",
|
||||
"unplugin-icons",
|
||||
"unplugin-vue-components"
|
||||
],
|
||||
"matchUpdateTypes": ["major", "minor", "patch"]
|
||||
},
|
||||
{
|
||||
"groupName": "Vicons",
|
||||
"matchPackageNames": ["@vicons/material", "@vicons/tabler"],
|
||||
"matchUpdateTypes": ["major", "minor", "patch"]
|
||||
},
|
||||
{
|
||||
"groupName": "VueUse",
|
||||
"matchPackageNames": ["@vueuse/core", "@vueuse/head", "@vueuse/router"],
|
||||
"matchUpdateTypes": ["major", "minor", "patch"]
|
||||
},
|
||||
{
|
||||
"groupName": "uuid with types",
|
||||
"matchPackageNames": ["uuid", "@types/uuid"],
|
||||
"matchUpdateTypes": ["major", "minor", "patch"]
|
||||
},
|
||||
{
|
||||
"groupName": "Type packages with their dependencies",
|
||||
"matchDepTypes": ["devDependencies"],
|
||||
"groupSlug": "types",
|
||||
"automerge": true,
|
||||
"matchPackageNames": ["/^@types//", "!@types/uuid"]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -18,6 +18,7 @@ function processFile(filePath) {
|
||||
// Extract existing name and description values
|
||||
const nameMatch = originalContent.match(/name: '(.*?)'/);
|
||||
const descriptionMatch = originalContent.match(/description: '(.*?)'/);
|
||||
const externAccessDescriptionMatch = originalContent.match(/externAccessDescription: '(.*?)'/);
|
||||
|
||||
if (!nameMatch || !descriptionMatch) {
|
||||
console.warn(`Skipping ${filePath}: Unable to extract name or description.`);
|
||||
@@ -26,11 +27,13 @@ function processFile(filePath) {
|
||||
|
||||
const nameValue = nameMatch[1];
|
||||
const descriptionValue = descriptionMatch[1];
|
||||
const externAccessDescriptionValue = externAccessDescriptionMatch ? externAccessDescriptionMatch[1] : null;
|
||||
|
||||
// Modify name and description to use the translate function
|
||||
const transformedContent = originalContent
|
||||
.replace(/name: '((?:[^']+|(?<=\\)')+)'/, `name: t('tools.${parentDir}.title')`)
|
||||
.replace(/description: '((?:[^']+|(?<=\\)')+)'/, `description: t('tools.${parentDir}.description')`);
|
||||
.replace(/description: '((?:[^']+|(?<=\\)')+)'/, `description: t('tools.${parentDir}.description')`)
|
||||
.replace(/externAccessDescription: '((?:[^']+|(?<=\\)')+)'/, `externAccessDescription: t('tools.${parentDir}.externalAccess')`);
|
||||
|
||||
fs.writeFileSync(filePath, `import { translate as t } from '@/plugins/i18n.plugin';\n${transformedContent}`, 'utf-8');
|
||||
console.log(`Transformed: ${filePath}`);
|
||||
@@ -43,6 +46,7 @@ function processFile(filePath) {
|
||||
...localesData.tools[parentDir],
|
||||
title: nameValue,
|
||||
description: descriptionValue,
|
||||
externalAccess: externAccessDescriptionValue,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ function processVueComponent(filePath, toolName) {
|
||||
if (!text?.trim()) {
|
||||
return match;
|
||||
}
|
||||
const key = (attr + '-' + text.replace(/[\p{P}\p{S}\s]+/gu, '-').replace(/^-+|-+$/g, '').replace(/-+/g, '-')).toLowerCase();
|
||||
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 = {};
|
||||
}
|
||||
@@ -48,7 +48,7 @@ function processVueComponent(filePath, toolName) {
|
||||
return `${attr}: t('tools.${toolName}.texts.${key}')`;
|
||||
});
|
||||
|
||||
if (content.includes("/* NO EXTRACT SCRIPT */")) {
|
||||
if (content.includes('/* NO EXTRACT SCRIPT */')) {
|
||||
console.log(`Marked to not extract: ${filePath}`);
|
||||
return;
|
||||
}
|
||||
@@ -63,12 +63,12 @@ function processVueComponent(filePath, toolName) {
|
||||
|
||||
if (filePath.endsWith('.vue')) {
|
||||
// Regex to find label or placeholder attributes
|
||||
regex = /(?<!:)((?:[a-z]+-)?(?:label|placeholder|title))="([^"]+)"/g;
|
||||
regex = /(?<!:)((?:[a-z]+-)?(?:label|placeholder|title|download-button-text|tab))="([^"]+)"/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();
|
||||
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 = {};
|
||||
}
|
||||
@@ -85,7 +85,7 @@ function processVueComponent(filePath, toolName) {
|
||||
if (text.match(/[\}\{\|\[\<\>\]]/)) {
|
||||
return match;
|
||||
}
|
||||
const key = ('tag-' + text.trim().replace(/[\p{P}\p{S}\s]+/gu, '-').replace(/^-+|-+$/g, '').replace(/-+/g, '-')).toLowerCase();
|
||||
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 = {};
|
||||
}
|
||||
@@ -102,13 +102,13 @@ function processVueComponent(filePath, toolName) {
|
||||
if (filePath.endsWith('.vue')) {
|
||||
// Ensure the useI18n import exists
|
||||
if (!hasAlreayI18n) {
|
||||
content = content.replace(/\<script setup( lang="ts")?\>/, "<script setup lang=\"ts\">\nimport { useI18n } from 'vue-i18n';\nconst { t } = useI18n();");
|
||||
content = content.replace(/\<script setup( lang="ts")?\>/, '<script setup lang="ts">\nimport { useI18n } from \'vue-i18n\';\nconst { t } = useI18n();');
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Ensure the useI18n import exists
|
||||
if (!hasAlreayI18n) {
|
||||
content = 'import { translate as t } from "@/plugins/i18n.plugin";\n' + content;
|
||||
content = `import { translate as t } from "@/plugins/i18n.plugin";\n${content}`;
|
||||
}
|
||||
}
|
||||
fs.writeFileSync(filePath, content, 'utf8');
|
||||
@@ -127,10 +127,12 @@ if (localFileOrDir) {
|
||||
const filePath = path.join(localFileOrDir, fileName);
|
||||
processVueComponent(filePath, process.argv[3] || basename(localFileOrDir));
|
||||
});
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
processVueComponent(localFileOrDir, process.argv[3] || basename(localFileOrDir));
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
fs.readdirSync(toolsDir)
|
||||
.filter((toolName) => {
|
||||
const toolPath = path.join(toolsDir, toolName);
|
||||
|
||||
@@ -24,11 +24,20 @@ const cssVars = computed(() => ({
|
||||
'--loading-background-color': colorPalette.value.loading_background,
|
||||
}));
|
||||
|
||||
// Apply CSS variables to the document root
|
||||
// Apply CSS variables to the document root - batch updates to avoid thrashing
|
||||
let pendingCssUpdate = false;
|
||||
watchEffect(() => {
|
||||
const root = document.documentElement;
|
||||
Object.entries(cssVars.value).forEach(([key, value]) => {
|
||||
root.style.setProperty(key, value);
|
||||
if (pendingCssUpdate) {
|
||||
return;
|
||||
}
|
||||
|
||||
pendingCssUpdate = true;
|
||||
requestAnimationFrame(() => {
|
||||
const root = document.documentElement;
|
||||
Object.entries(cssVars.value).forEach(([key, value]) => {
|
||||
root.style.setProperty(key, value);
|
||||
});
|
||||
pendingCssUpdate = false;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -45,7 +54,7 @@ syncRef(
|
||||
<NGlobalStyle />
|
||||
<NMessageProvider placement="bottom">
|
||||
<NNotificationProvider placement="bottom-right">
|
||||
<div>
|
||||
<div class="app-root">
|
||||
<component :is="layout">
|
||||
<RouterView />
|
||||
</component>
|
||||
@@ -56,22 +65,33 @@ syncRef(
|
||||
</template>
|
||||
|
||||
<style>
|
||||
body {
|
||||
min-height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
backface-visibility: hidden;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-backface-visibility: hidden;
|
||||
}
|
||||
|
||||
body {
|
||||
min-height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.app-root {
|
||||
contain: layout style paint;
|
||||
-webkit-transform: translateZ(0);
|
||||
transform: translateZ(0);
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
body .vld-container {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
@@ -81,6 +101,11 @@ body .vld-container {
|
||||
background-color: var(--loading-background-color);
|
||||
z-index: 9999;
|
||||
text-align: center;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
body .vld-container.vl-active {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
body .vld-container .vl-overlay.vl-active {
|
||||
|
||||
@@ -10,8 +10,9 @@ const props = withDefaults(defineProps<{ toolsByCategory?: ToolCategory[] }>(),
|
||||
const { toolsByCategory } = toRefs(props);
|
||||
const route = useRoute();
|
||||
|
||||
const makeLabel = (tool: Tool) => () => h(MenuItemWithTooltip, { tool });
|
||||
const makeIcon = (tool: Tool) => () => h(MenuIconItem, { tool });
|
||||
// Memoize component creation functions - wrap in markRaw to prevent reactivity
|
||||
const makeLabel = (tool: Tool) => () => markRaw(h(MenuItemWithTooltip, { tool, key: tool.path }));
|
||||
const makeIcon = (tool: Tool) => () => markRaw(h(MenuIconItem, { tool, key: tool.path }));
|
||||
|
||||
const collapsedCategories = useStorage<Record<string, boolean>>(
|
||||
'menu-tool-option:collapsed-categories',
|
||||
@@ -28,18 +29,26 @@ const collapsedCategories = useStorage<Record<string, boolean>>(
|
||||
|
||||
// Initialize default values for all categories
|
||||
watchEffect(() => {
|
||||
const updates: Record<string, boolean> = {};
|
||||
let hasChanges = false;
|
||||
|
||||
toolsByCategory.value.forEach(({ name }) => {
|
||||
if (!(name in collapsedCategories.value)) {
|
||||
collapsedCategories.value[name] = true;
|
||||
updates[name] = true;
|
||||
hasChanges = true;
|
||||
}
|
||||
});
|
||||
|
||||
if (hasChanges) {
|
||||
Object.assign(collapsedCategories.value, updates);
|
||||
}
|
||||
});
|
||||
|
||||
const isToggling = ref(false);
|
||||
const menuContainerRefs = ref<Record<string, HTMLElement>>({});
|
||||
|
||||
function toggleCategoryCollapse({ name }: { name: string }) {
|
||||
const currentState = collapsedCategories.value[name];
|
||||
collapsedCategories.value[name] = !currentState;
|
||||
collapsedCategories.value[name] = !collapsedCategories.value[name];
|
||||
}
|
||||
|
||||
const areAllCollapsed = computed(() => {
|
||||
@@ -70,19 +79,22 @@ async function toggleAllCategories() {
|
||||
|
||||
// Function to calculate animation duration based on number of items
|
||||
function getAnimationDuration(itemCount: number): number {
|
||||
const baseDuration = 325;
|
||||
const baseItemCount = 10;
|
||||
const baseDuration = 250;
|
||||
const durationIncrement = 5;
|
||||
|
||||
const additionalDuration = (itemCount - baseItemCount) * durationIncrement;
|
||||
return baseDuration + (Math.min(itemCount, 30) * durationIncrement);
|
||||
}
|
||||
|
||||
return Math.max(baseDuration + additionalDuration, baseDuration);
|
||||
// Function to check if any tool in the category is active
|
||||
function isCategoryActive(components: Tool[]): boolean {
|
||||
return components.some(tool => tool.path === route.path);
|
||||
}
|
||||
|
||||
const menuOptions = computed(() =>
|
||||
toolsByCategory.value.map(({ name, components }) => ({
|
||||
name,
|
||||
isCollapsed: collapsedCategories.value[name],
|
||||
isActive: isCategoryActive(components),
|
||||
animationDuration: getAnimationDuration(components.length),
|
||||
tools: components.map(tool => ({
|
||||
label: makeLabel(tool),
|
||||
@@ -92,6 +104,37 @@ const menuOptions = computed(() =>
|
||||
})),
|
||||
);
|
||||
|
||||
async function scrollToActiveItem() {
|
||||
const activeCategory = toolsByCategory.value.find(({ components }) =>
|
||||
isCategoryActive(components),
|
||||
);
|
||||
|
||||
if (activeCategory) {
|
||||
// Expand the active category
|
||||
collapsedCategories.value[activeCategory.name] = false;
|
||||
|
||||
// Wait for the entire animation to complete
|
||||
await new Promise(resolve => setTimeout(resolve, getAnimationDuration(activeCategory.components.length) + 50));
|
||||
|
||||
// Scroll to the active menu item
|
||||
const menuContainer = menuContainerRefs.value[activeCategory.name];
|
||||
if (menuContainer) {
|
||||
const activeItem = menuContainer.querySelector('.router-link-exact-active, .router-link-active');
|
||||
if (activeItem) {
|
||||
activeItem.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
scrollToActiveItem();
|
||||
});
|
||||
|
||||
watch(() => route.path, () => {
|
||||
scrollToActiveItem();
|
||||
});
|
||||
|
||||
const themeVars = useThemeVars();
|
||||
</script>
|
||||
|
||||
@@ -99,21 +142,22 @@ const themeVars = useThemeVars();
|
||||
<div class="top-controls" mb-12px ml-12px>
|
||||
<c-button :disabled="isToggling" @click="toggleAllCategories">
|
||||
<span v-if="isToggling">
|
||||
{{ areAllCollapsed ? 'Expanding...' : 'Collapsing...' }}
|
||||
{{ areAllCollapsed ? $t('collapsibleToolMenu.text.expanding') : $t('collapsibleToolMenu.text.collapsing') }}
|
||||
</span>
|
||||
<span v-else>
|
||||
{{ areAllCollapsed ? 'Expand All Tools' : 'Collapse All Tools' }}
|
||||
{{ areAllCollapsed ? $t('collapsibleToolMenu.text.expand-all-tools') : $t('collapsibleToolMenu.text.collapse-all-tools') }}
|
||||
</span>
|
||||
</c-button>
|
||||
</div>
|
||||
|
||||
<div v-for="{ name, tools, isCollapsed, animationDuration } of menuOptions" :key="name" class="category-container">
|
||||
<div v-for="{ name, tools, isCollapsed, isActive, animationDuration } of menuOptions" :key="name" class="category-container">
|
||||
<button
|
||||
class="category-button"
|
||||
:class="{ 'category-active': isActive }"
|
||||
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>
|
||||
<span :class="{ 'rotate-0': isCollapsed, 'rotate-90': !isCollapsed }" text-16px lh-1 op-50 transition-transform duration-200>
|
||||
<icon-mdi-chevron-right />
|
||||
</span>
|
||||
|
||||
@@ -123,6 +167,7 @@ const themeVars = useThemeVars();
|
||||
</button>
|
||||
|
||||
<div
|
||||
:ref="el => { if (el) menuContainerRefs[name] = el as HTMLElement }"
|
||||
class="menu-container"
|
||||
:class="{ collapsed: isCollapsed }"
|
||||
:style="{ '--animation-duration': `${animationDuration}ms` }"
|
||||
@@ -137,7 +182,6 @@ const themeVars = useThemeVars();
|
||||
:collapsed-icon-size="22"
|
||||
:options="tools"
|
||||
:indent="8"
|
||||
:default-expand-all="true"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -158,12 +202,23 @@ const themeVars = useThemeVars();
|
||||
background-color: v-bind('themeVars.buttonColor2Hover');
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
&.category-active {
|
||||
background-color: color-mix(in srgb, v-bind('themeVars.primaryColor') 40%, transparent);
|
||||
opacity: 1;
|
||||
color: white;
|
||||
|
||||
&:hover {
|
||||
background-color: color-mix(in srgb, v-bind('themeVars.primaryColorHover') 50%, transparent);
|
||||
}
|
||||
}
|
||||
}
|
||||
.category-container {
|
||||
.menu-container {
|
||||
display: grid;
|
||||
grid-template-rows: 1fr;
|
||||
transition: grid-template-rows var(--animation-duration, 350ms) ease-in-out;
|
||||
.menu-container {
|
||||
display: grid;
|
||||
grid-template-rows: 1fr;
|
||||
transition: grid-template-rows var(--animation-duration, 250ms) ease-out;
|
||||
will-change: grid-template-rows;
|
||||
|
||||
&.collapsed {
|
||||
grid-template-rows: 0fr;
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
const route = useRoute();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div :key="route.path" class="external-tool" v-html="route.meta.externalHTMLContent" />
|
||||
</template>
|
||||
@@ -5,6 +5,7 @@ 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';
|
||||
import { useAppTheme } from '@/ui/theme/themes';
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
@@ -18,6 +19,9 @@ const props = withDefaults(
|
||||
downloadFileName?: string
|
||||
downloadButtonText?: string
|
||||
rows?: number
|
||||
inputLineNumbers?: boolean
|
||||
inputMaxRows?: number
|
||||
inputAutosize?: boolean
|
||||
}>(),
|
||||
{
|
||||
transformer: _.identity,
|
||||
@@ -30,19 +34,125 @@ const props = withDefaults(
|
||||
downloadFileName: '',
|
||||
downloadButtonText: t('formatTransformer.download'),
|
||||
rows: 15,
|
||||
inputLineNumbers: false,
|
||||
inputMaxRows: undefined,
|
||||
inputAutosize: true,
|
||||
},
|
||||
);
|
||||
|
||||
const {
|
||||
transformer, inputValidationRules, inputLabel, outputLabel, outputLanguage,
|
||||
inputPlaceholder, inputDefault, downloadFileName, downloadButtonText, rows,
|
||||
inputPlaceholder, inputDefault, downloadFileName, downloadButtonText, rows, inputLineNumbers, inputMaxRows, inputAutosize,
|
||||
} = toRefs(props);
|
||||
|
||||
const appTheme = useAppTheme();
|
||||
|
||||
const inputElement = ref<typeof CInputText>();
|
||||
const textareaElement = computed(() => {
|
||||
const textarea = inputElement.value?.textareaRef;
|
||||
if (!textarea) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (typeof textarea === 'object' && 'addEventListener' in textarea && 'scrollTop' in textarea) {
|
||||
return textarea as HTMLTextAreaElement;
|
||||
}
|
||||
|
||||
if (typeof textarea === 'object' && 'value' in textarea) {
|
||||
const element = (textarea as { value?: unknown }).value;
|
||||
if (element && typeof element === 'object' && 'addEventListener' in element && 'scrollTop' in element) {
|
||||
return element as HTMLTextAreaElement;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
});
|
||||
|
||||
const input = ref(inputDefault.value);
|
||||
const output = computed(() => transformer.value(input.value));
|
||||
|
||||
const lineCount = computed(() => {
|
||||
if (input.value === '') {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return input.value.split(/\r\n|\r|\n/).length;
|
||||
});
|
||||
|
||||
const lineNumbersText = computed(() => {
|
||||
if (!inputLineNumbers.value) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return Array.from({ length: lineCount.value }, (_, index) => index + 1).join('\n');
|
||||
});
|
||||
|
||||
const lineNumberGutterWidth = computed(() => Math.max(1, `${lineCount.value}`.length));
|
||||
const lineNumbersOffset = ref(0);
|
||||
const lineNumbersHeight = ref(0);
|
||||
const lineNumbersPaddingTop = ref('');
|
||||
const lineNumbersPaddingBottom = ref('');
|
||||
const lineNumbersLineHeight = ref('');
|
||||
const lineNumbersFontSize = ref('');
|
||||
|
||||
watch(
|
||||
() => ({
|
||||
textarea: textareaElement.value,
|
||||
enabled: inputLineNumbers.value,
|
||||
}),
|
||||
({ textarea, enabled }, _, onCleanup) => {
|
||||
if (!enabled || !textarea) {
|
||||
lineNumbersOffset.value = 0;
|
||||
lineNumbersHeight.value = 0;
|
||||
lineNumbersPaddingTop.value = '';
|
||||
lineNumbersPaddingBottom.value = '';
|
||||
lineNumbersLineHeight.value = '';
|
||||
lineNumbersFontSize.value = '';
|
||||
return;
|
||||
}
|
||||
|
||||
const updateSize = () => {
|
||||
lineNumbersHeight.value = textarea.clientHeight;
|
||||
lineNumbersOffset.value = textarea.scrollTop;
|
||||
const computedStyle = window.getComputedStyle(textarea);
|
||||
lineNumbersPaddingTop.value = computedStyle.paddingTop;
|
||||
lineNumbersPaddingBottom.value = computedStyle.paddingBottom;
|
||||
lineNumbersLineHeight.value = computedStyle.lineHeight;
|
||||
lineNumbersFontSize.value = computedStyle.fontSize;
|
||||
};
|
||||
|
||||
const handleScroll = () => {
|
||||
lineNumbersOffset.value = textarea.scrollTop;
|
||||
};
|
||||
|
||||
updateSize();
|
||||
const resizeObserver = new ResizeObserver(updateSize);
|
||||
resizeObserver.observe(textarea);
|
||||
textarea.addEventListener('scroll', handleScroll);
|
||||
|
||||
onCleanup(() => {
|
||||
textarea.removeEventListener('scroll', handleScroll);
|
||||
resizeObserver.disconnect();
|
||||
});
|
||||
},
|
||||
{ immediate: true },
|
||||
);
|
||||
|
||||
watch(
|
||||
input,
|
||||
() => nextTick(() => {
|
||||
const textarea = textareaElement.value;
|
||||
if (textarea) {
|
||||
lineNumbersOffset.value = textarea.scrollTop;
|
||||
}
|
||||
}),
|
||||
{ flush: 'post' },
|
||||
);
|
||||
|
||||
function focusInput() {
|
||||
inputElement.value?.focus?.();
|
||||
}
|
||||
|
||||
const outputBase64 = computed(() => Base64.encode(output.value));
|
||||
const { download } = useDownloadFileFromBase64(
|
||||
{
|
||||
@@ -58,14 +168,33 @@ const { download } = useDownloadFileFromBase64(
|
||||
:placeholder="inputPlaceholder"
|
||||
:label="inputLabel"
|
||||
:rows="rows"
|
||||
autosize
|
||||
:max-rows="inputMaxRows"
|
||||
:autosize="inputAutosize"
|
||||
raw-text
|
||||
multiline
|
||||
test-id="input"
|
||||
:validation-rules="inputValidationRules"
|
||||
monospace
|
||||
mb-1
|
||||
/>
|
||||
>
|
||||
<template v-if="inputLineNumbers" #prefix>
|
||||
<div
|
||||
class="line-numbers font-mono"
|
||||
:style="{
|
||||
minWidth: `${lineNumberGutterWidth}ch`,
|
||||
height: lineNumbersHeight ? `${lineNumbersHeight}px` : '',
|
||||
paddingTop: lineNumbersPaddingTop,
|
||||
paddingBottom: lineNumbersPaddingBottom,
|
||||
lineHeight: lineNumbersLineHeight,
|
||||
fontSize: lineNumbersFontSize,
|
||||
}"
|
||||
aria-hidden="true"
|
||||
@click="focusInput"
|
||||
>
|
||||
<pre class="line-numbers__content" :style="{ transform: `translateY(-${lineNumbersOffset}px)` }">{{ lineNumbersText }}</pre>
|
||||
</div>
|
||||
</template>
|
||||
</CInputText>
|
||||
|
||||
<div overflow-auto>
|
||||
<div mb-5px>
|
||||
@@ -80,3 +209,26 @@ const { download } = useDownloadFileFromBase64(
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.line-numbers {
|
||||
align-self: stretch;
|
||||
flex: 0 0 auto;
|
||||
box-sizing: border-box;
|
||||
padding: 8px 8px 8px 0;
|
||||
margin-right: 8px;
|
||||
border-right: 1px solid v-bind('appTheme.default.color');
|
||||
color: v-bind('appTheme.text.mutedColor');
|
||||
overflow: hidden;
|
||||
user-select: none;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.line-numbers__content {
|
||||
margin: 0;
|
||||
white-space: pre;
|
||||
line-height: inherit;
|
||||
font-size: inherit;
|
||||
will-change: transform;
|
||||
}
|
||||
</style>
|
||||
@@ -94,7 +94,7 @@ const { download } = useDownloadFileFromBase64(
|
||||
<div style="overflow-x: hidden; width: 100%">
|
||||
<c-card
|
||||
relative
|
||||
:style="(copyPlacement === 'top-right' || copyPlacement === 'bottom-right') ? `padding-bottom: 50px` : ''"
|
||||
:style="copyPlacement === 'top-right' ? 'padding-top: 50px' : (copyPlacement === 'bottom-right' ? 'padding-bottom: 50px' : '')"
|
||||
>
|
||||
<n-scrollbar
|
||||
ref="scrollbarRef"
|
||||
@@ -112,9 +112,8 @@ 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
|
||||
:class="copyPlacement === 'top-right' ? 'top-10px' : (copyPlacement === 'bottom-right' ? 'bottom-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">
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { World } from '@vicons/tabler';
|
||||
import { useThemeVars } from 'naive-ui';
|
||||
import FavoriteButton from './FavoriteButton.vue';
|
||||
import type { Tool } from '@/tools/tools.types';
|
||||
@@ -31,6 +32,10 @@ const theme = useThemeVars();
|
||||
|
||||
<div class="truncat my-5px text-lg text-black dark:text-white">
|
||||
{{ tool.name }}
|
||||
<World
|
||||
v-if="tool.externAccessDescription"
|
||||
class="tool-privacy-icon"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="line-clamp-2 text-neutral-500 dark:text-neutral-400">
|
||||
@@ -39,3 +44,10 @@ const theme = useThemeVars();
|
||||
</c-card>
|
||||
</router-link>
|
||||
</template>
|
||||
|
||||
<style lang="css" scoped>
|
||||
.tool-privacy-icon {
|
||||
display: inline-block;
|
||||
height: .9em;
|
||||
}
|
||||
</style>
|
||||
@@ -1,17 +1,50 @@
|
||||
<script setup lang="ts">
|
||||
import _ from 'lodash';
|
||||
import convert, { type Unit } from 'convert';
|
||||
import * as unitsconverter from 'units-converter';
|
||||
|
||||
const props = withDefaults(defineProps<{
|
||||
supportedUnits: { [key: string]: string }
|
||||
defaultUnit: string
|
||||
labelWidth?: string
|
||||
unitMinWidth?: string
|
||||
converterType: 'convert' | 'frequency' | 'volumeFlowRate' | 'speed' | 'acceleration'
|
||||
}>(), {
|
||||
labelWidth: '150px',
|
||||
unitMinWidth: '50px',
|
||||
converterType: 'convert',
|
||||
});
|
||||
const { supportedUnits, defaultUnit, labelWidth, unitMinWidth } = toRefs(props);
|
||||
const { supportedUnits, defaultUnit, labelWidth, unitMinWidth, converterType } = toRefs(props);
|
||||
|
||||
const SI_PREFIX_NAMES = [
|
||||
'quetta',
|
||||
'ronna',
|
||||
'yotta',
|
||||
'zetta',
|
||||
'exa',
|
||||
'peta',
|
||||
'tera',
|
||||
'giga',
|
||||
'mega',
|
||||
'kilo',
|
||||
'hecto',
|
||||
'deca',
|
||||
'deci',
|
||||
'centi',
|
||||
'milli',
|
||||
'micro',
|
||||
'nano',
|
||||
'pico',
|
||||
'femto',
|
||||
'atto',
|
||||
'zepto',
|
||||
'yocto',
|
||||
'ronto',
|
||||
'quecto',
|
||||
] as const;
|
||||
|
||||
const SI_PREFIX_NAMES_REGEX = new RegExp(`^(${SI_PREFIX_NAMES.join('|')})`);
|
||||
|
||||
const units = reactive<
|
||||
Record<
|
||||
string,
|
||||
@@ -26,25 +59,60 @@ const units = reactive<
|
||||
[current.unit]: current,
|
||||
}), {}));
|
||||
|
||||
const excludeSIPrefixes = ref(true);
|
||||
const filteredUnits = computed(() => {
|
||||
if (!excludeSIPrefixes.value) {
|
||||
return Object.entries(units);
|
||||
}
|
||||
|
||||
return Object.entries(units).filter(
|
||||
([_, { title }]) => !SI_PREFIX_NAMES_REGEX.test(title),
|
||||
);
|
||||
});
|
||||
|
||||
function update(key: string) {
|
||||
if (!units[key]) {
|
||||
return;
|
||||
}
|
||||
const { ref: value } = units[key];
|
||||
|
||||
const converter = convert(value, key as Unit);
|
||||
if (converterType.value === 'convert') {
|
||||
const converter = convert(value, key as Unit);
|
||||
|
||||
_.chain(units)
|
||||
.omit(key)
|
||||
.forEach(({ unit }) => {
|
||||
try {
|
||||
units[unit].ref = converter.to(unit as Unit);
|
||||
_.chain(units)
|
||||
.omit(key)
|
||||
.forEach(({ unit }) => {
|
||||
try {
|
||||
units[unit].ref = converter.to(unit as Unit);
|
||||
}
|
||||
catch (e: any) {
|
||||
units[unit].ref = 0;
|
||||
}
|
||||
})
|
||||
.value();
|
||||
}
|
||||
else {
|
||||
const mapUnit = (unit: string) => {
|
||||
// npm units-converter uses wrong symbol for miles per hour, so we need to fix it
|
||||
if (converterType.value === 'speed' && unit === 'mi/h') {
|
||||
return 'm/h';
|
||||
}
|
||||
catch (e: any) {
|
||||
units[unit].ref = 0;
|
||||
}
|
||||
})
|
||||
.value();
|
||||
return unit;
|
||||
};
|
||||
const converter = unitsconverter[converterType.value](value).from(mapUnit(key));
|
||||
|
||||
_.chain(units)
|
||||
.omit(mapUnit(key))
|
||||
.forEach(({ unit }) => {
|
||||
try {
|
||||
units[unit].ref = converter.to(mapUnit(unit)).value;
|
||||
}
|
||||
catch (e: any) {
|
||||
units[unit].ref = 0;
|
||||
}
|
||||
})
|
||||
.value();
|
||||
}
|
||||
}
|
||||
|
||||
update(defaultUnit.value);
|
||||
@@ -52,7 +120,15 @@ update(defaultUnit.value);
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<n-input-group v-for="[key, { title, unit }] in Object.entries(units)" :key="key" mb-3 w-full>
|
||||
<n-space justify="center" mb-3>
|
||||
<n-checkbox v-model:checked="excludeSIPrefixes">
|
||||
{{ $t('tools.UnitsConverter.texts.exclude-si-prefixes') }}
|
||||
</n-checkbox>
|
||||
<c-link target="_blank" to="/si-prefixes-converter">
|
||||
{{ $t('tools.UnitsConverter.text.si-converter') }}
|
||||
</c-link>
|
||||
</n-space>
|
||||
<n-input-group v-for="[key, { title, unit }] in filteredUnits" :key="key" mb-3 w-full>
|
||||
<n-input-group-label :style="{ width: labelWidth }">
|
||||
{{ title }}
|
||||
</n-input-group-label>
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
import { useClipboard, useClipboardItems } from '@vueuse/core';
|
||||
import { useMessage } from 'naive-ui';
|
||||
import type { MaybeRefOrGetter } from 'vue';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export function useCopy({ source, text = 'Copied to the clipboard', createToast = true }: { source?: MaybeRefOrGetter<string>; text?: string; createToast?: boolean } = {}) {
|
||||
export function useCopy({ source, text = t('tools.copy.text.copied-to-the-clipboard'), createToast = true }: { source?: MaybeRefOrGetter<string>; text?: string; createToast?: boolean } = {}) {
|
||||
const { copy, copied, ...rest } = useClipboard({
|
||||
source,
|
||||
legacy: true,
|
||||
@@ -29,7 +30,7 @@ export function useCopy({ source, text = 'Copied to the clipboard', createToast
|
||||
};
|
||||
}
|
||||
|
||||
export function useCopyClipboardItems({ source, text = 'Copied to the clipboard', createToast = true }: { source?: MaybeRefOrGetter<Array<{ mime: string; content: string }>>; text?: string; createToast?: boolean } = {}) {
|
||||
export function useCopyClipboardItems({ source, text = t('tools.copy.text.copied-to-the-clipboard'), createToast = true }: { source?: MaybeRefOrGetter<Array<{ mime: string; content: string }>>; text?: string; createToast?: boolean } = {}) {
|
||||
function toClipboardItem(item: { mime: string; content: string }) {
|
||||
return new ClipboardItem({
|
||||
[item.mime]: new Blob([item.content], { type: item.mime }),
|
||||
@@ -59,3 +60,82 @@ export function useCopyClipboardItems({ source, text = 'Copied to the clipboard'
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export function useCopyHtml({ sourceHtml, fallbackText, toastText = t('tools.copy.text.copied-to-the-clipboard'), createToast = true }: { sourceHtml?: MaybeRefOrGetter<string>; fallbackText?: MaybeRefOrGetter<string>; toastText?: string; createToast?: boolean } = {}) {
|
||||
const message = useMessage();
|
||||
|
||||
const copied = ref(false);
|
||||
const error = ref('');
|
||||
|
||||
function legacyCopy(text: string) {
|
||||
const textarea = document.createElement('textarea');
|
||||
textarea.value = text;
|
||||
|
||||
textarea.style.position = 'fixed';
|
||||
textarea.style.opacity = '0';
|
||||
textarea.style.pointerEvents = 'none';
|
||||
|
||||
document.body.appendChild(textarea);
|
||||
textarea.focus();
|
||||
textarea.select();
|
||||
|
||||
try {
|
||||
document.execCommand('copy');
|
||||
}
|
||||
finally {
|
||||
document.body.removeChild(textarea);
|
||||
}
|
||||
}
|
||||
|
||||
async function copyHtml(html: string, fallbackText?: string) {
|
||||
copied.value = false;
|
||||
error.value = '';
|
||||
|
||||
try {
|
||||
const ClipboardItemCtor = (window as any).ClipboardItem;
|
||||
|
||||
if (navigator.clipboard && ClipboardItemCtor) {
|
||||
// Modern HTML clipboard support
|
||||
const blobHtml = new Blob([html], { type: 'text/html' });
|
||||
const blobText = new Blob([fallbackText || html], { type: 'text/plain' });
|
||||
const item = new ClipboardItemCtor({ 'text/plain': blobText, 'text/html': blobHtml });
|
||||
await navigator.clipboard.write([item]);
|
||||
}
|
||||
else if (navigator.clipboard?.writeText) {
|
||||
// Async text fallback
|
||||
await navigator.clipboard.writeText(fallbackText || html);
|
||||
}
|
||||
else {
|
||||
// Legacy execCommand fallback
|
||||
legacyCopy(fallbackText || html);
|
||||
}
|
||||
|
||||
copied.value = true;
|
||||
}
|
||||
catch (e: any) {
|
||||
error.value = e.toString();
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
isJustCopied: copied,
|
||||
async copy(html?: string, text?: string, { notificationMessage }: { notificationMessage?: string } = {}) {
|
||||
if (sourceHtml) {
|
||||
await copyHtml(toValue(sourceHtml), toValue(fallbackText));
|
||||
}
|
||||
else if (html) {
|
||||
await copyHtml(html, text);
|
||||
}
|
||||
|
||||
if (createToast) {
|
||||
if (error.value) {
|
||||
message.error(error.value);
|
||||
}
|
||||
else {
|
||||
message.success(notificationMessage ?? toastText);
|
||||
}
|
||||
}
|
||||
},
|
||||
error,
|
||||
};
|
||||
}
|
||||
@@ -90,8 +90,13 @@ function previewImageFromBase64(base64String: string): HTMLImageElement {
|
||||
throw new Error('Base64 string is empty');
|
||||
}
|
||||
|
||||
let dataUriBase64String = base64String;
|
||||
if (!base64String.startsWith('data:')) {
|
||||
dataUriBase64String = `data:application/octet-stream;base64,${base64String}`;
|
||||
}
|
||||
|
||||
const img = document.createElement('img');
|
||||
img.src = base64String;
|
||||
img.src = dataUriBase64String;
|
||||
|
||||
const container = document.createElement('div');
|
||||
container.appendChild(img);
|
||||
|
||||
@@ -169,17 +169,18 @@ const tools = computed<ToolCategory[]>(() => [
|
||||
|
||||
.sider-content {
|
||||
padding-top: 20px;
|
||||
padding-bottom: 200px;
|
||||
padding-bottom: 50px;
|
||||
}
|
||||
|
||||
.hero-wrapper {
|
||||
position: sticky;
|
||||
display: flex;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 10;
|
||||
height: 150px;
|
||||
height: 125px;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
width: inherit;
|
||||
|
||||
.gradient {
|
||||
position: absolute;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<script lang="ts" setup>
|
||||
import { DeviceDesktop, World } from '@vicons/tabler';
|
||||
|
||||
import { useRoute } from 'vue-router';
|
||||
import { useHead } from '@vueuse/head';
|
||||
import type { HeadObject } from '@vueuse/head';
|
||||
@@ -69,7 +71,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 ? `${t('tools.tool.layout.text.made-with-npmpackages', [npmPackages.join(', ')])}\n` : '') + footer).trim();
|
||||
});
|
||||
const themeVars = useThemeVars();
|
||||
|
||||
@@ -83,6 +85,30 @@ const linkTheme = useTheme();
|
||||
<div flex flex-nowrap items-center justify-between>
|
||||
<n-h1>
|
||||
{{ toolTitle }}
|
||||
<n-tooltip
|
||||
placement="right"
|
||||
trigger="click"
|
||||
content-class="tool-privacy-info"
|
||||
>
|
||||
<template #trigger>
|
||||
<World
|
||||
v-if="route.meta.externAccessDescription"
|
||||
class="tool-privacy-icon"
|
||||
/>
|
||||
<DeviceDesktop
|
||||
v-else
|
||||
class="tool-privacy-icon"
|
||||
/>
|
||||
</template>
|
||||
<VueMarkdown
|
||||
v-if="route.meta.externAccessDescription"
|
||||
:source="route.meta.externAccessDescription"
|
||||
:options="{ linkify: true }"
|
||||
/>
|
||||
<template v-else>
|
||||
{{ $t('tools.tool.layout.text.runs-entirely-in-your-browser-no-external-requests') }}
|
||||
</template>
|
||||
</n-tooltip>
|
||||
</n-h1>
|
||||
|
||||
<div>
|
||||
@@ -110,7 +136,23 @@ const linkTheme = useTheme();
|
||||
</BaseLayout>
|
||||
</template>
|
||||
|
||||
<style lang="less">
|
||||
.tool-privacy-info {
|
||||
p {
|
||||
margin:0;
|
||||
}
|
||||
a {
|
||||
color: inherit !important;
|
||||
font-style: italic;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.tool-privacy-icon {
|
||||
display: inline-block;
|
||||
height: .6em;
|
||||
}
|
||||
.tool-content {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
@@ -144,7 +186,7 @@ const linkTheme = useTheme();
|
||||
}
|
||||
|
||||
.separator {
|
||||
width: 200px;
|
||||
width:'100%';
|
||||
height: 2px;
|
||||
background: rgb(161, 161, 161);
|
||||
opacity: 0.2;
|
||||
|
||||
@@ -12,6 +12,7 @@ import shadow from 'vue-shadow-dom';
|
||||
import { hideSplashScreen } from 'vite-plugin-splash-screen/runtime';
|
||||
import { plausible } from './plugins/plausible.plugin';
|
||||
import '@/utils/json5-bigint';
|
||||
import '@/utils/json5-bignum';
|
||||
|
||||
import 'virtual:uno.css';
|
||||
|
||||
@@ -31,11 +32,6 @@ window.addEventListener('vite:preloadError', (event: Event) => {
|
||||
|
||||
installAbortSignalPolyfill();
|
||||
|
||||
// eslint-disable-next-line no-extend-native
|
||||
BigInt.prototype.toJSON = function () {
|
||||
return JSON.rawJSON ? JSON.rawJSON(this.toString()) : this.toString();
|
||||
};
|
||||
|
||||
library.add(fas);
|
||||
|
||||
registerSW();
|
||||
|
||||
@@ -11,4 +11,5 @@ export interface PaletteOption {
|
||||
keywords?: string[]
|
||||
href?: string
|
||||
closeOnSelect?: boolean
|
||||
externAccessDescription?: string
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { DeviceDesktop, World } from '@vicons/tabler';
|
||||
import type { PaletteOption } from '../command-palette.types';
|
||||
|
||||
const props = withDefaults(defineProps<{ option: PaletteOption; selected?: boolean }>(), {
|
||||
@@ -26,6 +27,14 @@ const { selected } = toRefs(props);
|
||||
<div flex-1 overflow-hidden>
|
||||
<div truncate font-bold lh-tight op-90>
|
||||
{{ option.name }}
|
||||
<World
|
||||
v-if="option.externAccessDescription"
|
||||
class="tool-privacy-icon"
|
||||
/>
|
||||
<DeviceDesktop
|
||||
v-else
|
||||
class="tool-privacy-icon"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div v-if="option.description" truncate lh-tight op-60>
|
||||
@@ -34,3 +43,10 @@ const { selected } = toRefs(props);
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="css" scoped>
|
||||
.tool-privacy-icon {
|
||||
display: inline-block;
|
||||
height: .9em;
|
||||
}
|
||||
</style>
|
||||
@@ -15,6 +15,7 @@ const localesLong: Record<string, string> = {
|
||||
pt: 'Português',
|
||||
ru: 'Русский',
|
||||
tr: 'Türkçe',
|
||||
el: 'ελληνικά',
|
||||
uk: 'Українська',
|
||||
ko: '한국인',
|
||||
zh: '中文',
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import { useHead } from '@vueuse/head';
|
||||
|
||||
useHead({ title: 'Page not found - IT Tools' });
|
||||
const { t } = useI18n();
|
||||
|
||||
useHead({ title: t('404.page.text.page-not-found-it-tools') });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -9,8 +9,8 @@ const { t } = useI18n();
|
||||
|
||||
const toolStore = useToolStore();
|
||||
|
||||
const desc = 'Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT.';
|
||||
const title = 'About - IT Tools';
|
||||
const desc = t('about.text.collection-of-handy-online-tools-for-developers-with-great-ux-it-tools-is-a-free-and-open-source-collection-of-handy-online-tools-for-developers-and-people-working-in-it');
|
||||
const title = t('about.text.about-it-tools');
|
||||
useHead({
|
||||
title,
|
||||
meta: [
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
<script setup lang="ts">
|
||||
import VueMarkdown from 'vue-markdown-render';
|
||||
import { useTheme } from '../ui/c-link/c-link.theme';
|
||||
|
||||
const linkTheme = useTheme();
|
||||
|
||||
const homeCustomMarkdown = ref('');
|
||||
const base = import.meta.env.BASE_URL ?? '/';
|
||||
|
||||
const res = await fetch(`${base}home.custom.md`);
|
||||
if (res.ok) {
|
||||
homeCustomMarkdown.value = await res.text();
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div v-if="homeCustomMarkdown" class="home-custom-md">
|
||||
<VueMarkdown :source="homeCustomMarkdown" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped lang="less">
|
||||
::v-deep(.home-custom-md) a {
|
||||
line-height: inherit;
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
font-weight: 400;
|
||||
color: v-bind('linkTheme.default.textColor');
|
||||
border-radius: 4px;
|
||||
transition: color cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
|
||||
|
||||
outline-offset: 1px;
|
||||
|
||||
&:hover {
|
||||
color: v-bind('linkTheme.default.hover.textColor');
|
||||
}
|
||||
|
||||
&:active {
|
||||
color: v-bind('linkTheme.default.textColor');
|
||||
}
|
||||
|
||||
&:focus {
|
||||
color: v-bind('linkTheme.default.outline.color');
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -3,27 +3,17 @@ import { IconDragDrop, IconHeart } from '@tabler/icons-vue';
|
||||
import { useHead } from '@vueuse/head';
|
||||
import { computed, nextTick, onMounted, onUnmounted, ref } from 'vue';
|
||||
import Draggable from 'vuedraggable';
|
||||
import VueMarkdown from 'vue-markdown-render';
|
||||
import ColoredCard from '../components/ColoredCard.vue';
|
||||
import ToolCard from '../components/ToolCard.vue';
|
||||
import HomeCustom from './Home.custom.vue';
|
||||
import { useToolStore } from '@/tools/tools.store';
|
||||
import { config } from '@/config';
|
||||
|
||||
const base = import.meta.env.BASE_URL ?? '/';
|
||||
const homeCustomMarkdown = computedAsync(async () => {
|
||||
try {
|
||||
const remoteCustomHomeMarkdownResponse = await fetch(`${base}home.custom.md`);
|
||||
if (remoteCustomHomeMarkdownResponse.ok) {
|
||||
return await remoteCustomHomeMarkdownResponse.text();
|
||||
}
|
||||
}
|
||||
catch {}
|
||||
return '';
|
||||
});
|
||||
const { t } = useI18n();
|
||||
|
||||
const toolStore = useToolStore();
|
||||
const desc = 'Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT.';
|
||||
const title = 'IT Tools - Handy online tools for developers';
|
||||
const desc = t('home.page.text.collection-of-handy-online-tools-for-developers-with-great-ux-it-tools-is-a-free-and-open-source-collection-of-handy-online-tools-for-developers-and-people-working-in-it');
|
||||
const title = t('home.page.text.it-tools-handy-online-tools-for-developers');
|
||||
|
||||
useHead({
|
||||
title,
|
||||
@@ -58,10 +48,8 @@ useHead({
|
||||
},
|
||||
],
|
||||
});
|
||||
const { t } = useI18n();
|
||||
|
||||
const favoriteTools = computed(() => toolStore.favoriteTools);
|
||||
|
||||
const isOrderingFavorites = ref(false);
|
||||
|
||||
window.addEventListener('contextmenu', (e) => {
|
||||
@@ -85,57 +73,55 @@ function stopOrderingFavorites() {
|
||||
|
||||
// Batch loading logic for tool cards
|
||||
const TOOLS_PER_ROW = 4; // Based on xl:grid-cols-4
|
||||
const ROWS_PER_BATCH = 8;
|
||||
const ROWS_PER_BATCH = 6;
|
||||
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;
|
||||
let loadingObserver: IntersectionObserver | 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 load next batch
|
||||
function loadNextBatch() {
|
||||
if (visibleToolsCount.value < toolStore.tools.length) {
|
||||
visibleToolsCount.value = Math.min(
|
||||
visibleToolsCount.value + TOOLS_PER_BATCH,
|
||||
toolStore.tools.length,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
// Start intersection observer on component mount
|
||||
onMounted(() => {
|
||||
nextTick(() => {
|
||||
startAutomatedLoading();
|
||||
// Load first batch immediately
|
||||
loadNextBatch();
|
||||
|
||||
// Setup intersection observer for lazy loading
|
||||
const loadingIndicator = document.querySelector('[data-loading-indicator]');
|
||||
if (loadingIndicator) {
|
||||
loadingObserver = new IntersectionObserver(
|
||||
(entries) => {
|
||||
if (entries[0]?.isIntersecting && visibleToolsCount.value < toolStore.tools.length) {
|
||||
loadNextBatch();
|
||||
}
|
||||
},
|
||||
{ rootMargin: '200px' },
|
||||
);
|
||||
loadingObserver.observe(loadingIndicator);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Clean up on component unmount
|
||||
onUnmounted(() => {
|
||||
stopAutomatedLoading();
|
||||
if (loadingObserver) {
|
||||
loadingObserver.disconnect();
|
||||
loadingObserver = null;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -189,9 +175,9 @@ onUnmounted(() => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="homeCustomMarkdown">
|
||||
<VueMarkdown :source="homeCustomMarkdown" />
|
||||
</div>
|
||||
<Suspense>
|
||||
<HomeCustom />
|
||||
</Suspense>
|
||||
|
||||
<h3 class="mb-5px mt-25px font-500 text-neutral-400">
|
||||
{{ $t('home.categories.allTools') }}
|
||||
@@ -201,7 +187,7 @@ onUnmounted(() => {
|
||||
</div>
|
||||
|
||||
<!-- Loading indicator when more tools are coming -->
|
||||
<div v-if="visibleToolsCount < toolStore.tools.length" mt-6 text-center>
|
||||
<div v-if="visibleToolsCount < toolStore.tools.length" data-loading-indicator mt-6 text-center>
|
||||
<div text-14px op-70>
|
||||
{{ t('home.loading-more-tools') }} <span>({{ visibleTools.length }}/{{ toolStore.tools.length }})</span>
|
||||
</div>
|
||||
|
||||
@@ -37,7 +37,11 @@ const router = createRouter({
|
||||
...toolsRoutes,
|
||||
...toolsRedirectRoutes,
|
||||
...(config.app.env === 'development' ? demoRoutes : []),
|
||||
{ path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound },
|
||||
{
|
||||
path: '/:pathMatch(.*)*',
|
||||
name: 'NotFound',
|
||||
component: NotFound,
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
|
||||
@@ -39,12 +39,26 @@ declare module 'vite-plugin-splash-screen/runtime' {
|
||||
export function hideSplashScreen();
|
||||
}
|
||||
|
||||
declare module 'units-converter' {
|
||||
interface ITo{
|
||||
to(unit: string): { value: number }
|
||||
}
|
||||
interface IFrom{
|
||||
from(unit: string): ITo
|
||||
}
|
||||
export function frequency(value: number): IFrom;
|
||||
export function volumeFlowRate(value: number): IFrom;
|
||||
export function acceleration(value: number): IFrom;
|
||||
export function speed(value: number): IFrom;
|
||||
}
|
||||
|
||||
interface BigInt {
|
||||
toJSON: () => string;
|
||||
}
|
||||
|
||||
interface JSON {
|
||||
parseBigInt: (jsonStr: string, options?: { minDigits?: number; fallbackToString?: boolean; }) => any;
|
||||
parseBigInt: (jsonStr: string, options?: { minDigits?: number; }) => any;
|
||||
parseBigNum: (jsonStr: string) => any;
|
||||
rawJSON(value: string): any;
|
||||
}
|
||||
|
||||
@@ -64,3 +78,56 @@ namespace Intl {
|
||||
format(duration: { seconds?: number; milliseconds?: number }): string;
|
||||
}
|
||||
}
|
||||
|
||||
declare module '@vueuse/integrations/useIDBKeyval' {
|
||||
interface Serializer<T> {
|
||||
read: (raw: unknown) => T
|
||||
write: (value: T) => unknown
|
||||
}
|
||||
export interface UseIDBOptions<T> extends ConfigurableFlush {
|
||||
/**
|
||||
* Watch for deep changes
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
deep?: boolean
|
||||
/**
|
||||
* On error callback
|
||||
*
|
||||
* Default log error to `console.error`
|
||||
*/
|
||||
onError?: (error: unknown) => void
|
||||
/**
|
||||
* Use shallow ref as reference
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
shallow?: boolean
|
||||
/**
|
||||
* Write the default value to the storage when it does not exist
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
writeDefaults?: boolean
|
||||
/**
|
||||
* Custom data serialization
|
||||
*/
|
||||
serializer?: Serializer<T>
|
||||
}
|
||||
export interface UseIDBKeyvalReturn<T> {
|
||||
data: RemovableRef<T>
|
||||
isFinished: ShallowRef<boolean>
|
||||
set: (value: T) => Promise<void>
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param key
|
||||
* @param initialValue
|
||||
* @param options
|
||||
*/
|
||||
export declare function useIDBKeyval<T>(
|
||||
key: IDBValidKey,
|
||||
initialValue: MaybeRefOrGetter<T>,
|
||||
options?: UseIDBOptions<T>,
|
||||
): UseIDBKeyvalReturn<T>
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
import UnitsConverter from '@/components/UnitsConverter.vue';
|
||||
|
||||
const supportedUnits = {
|
||||
'g-force': 'g-force',
|
||||
'm/s2': 'meter per second squared',
|
||||
}; ;
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UnitsConverter default-unit="g" converter-type="acceleration" :supported-units="supportedUnits" label-width="190px" />
|
||||
</template>
|
||||
@@ -0,0 +1,16 @@
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
import { Run } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.acceleration-converter.title'),
|
||||
path: '/acceleration-converter',
|
||||
description: t('tools.acceleration-converter.description'),
|
||||
keywords: ['acceleration', 'converter',
|
||||
'units', 'g (g-force)', 'm/s2',
|
||||
],
|
||||
component: () => import('./acceleration-converter.vue'),
|
||||
icon: Run,
|
||||
createdAt: new Date('2026-01-30'),
|
||||
category: 'Physics',
|
||||
});
|
||||