Compare commits

..
110 Commits
Author SHA1 Message Date
Corentin Thomasset ed176c7b8c 1.5.0 2020-06-23 09:40:58 +02:00
Corentin Thomasset e152651a4b chore: updated version
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-23 09:40:50 +02:00
Corentin Thomasset a20858dfb8 feat: added qr-code generator
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-23 00:01:14 +02:00
Corentin Thomasset b75603f311 docs: create tool guideline
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-22 21:15:50 +02:00
Corentin Thomasset d27c133a66 fix: CHANGELOG.md version
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-22 20:55:16 +02:00
Corentin Thomasset bd64eb9dbe 1.4.0 2020-06-22 20:54:35 +02:00
Corentin Thomasset ac54250e8a refactor: changed app title
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-22 20:53:53 +02:00
Corentin Thomasset e0e7715ce6 feat: added canonical url
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-22 18:42:19 +02:00
Corentin Thomasset aa3a424f10 docs: updated README.md
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-21 18:45:12 +02:00
Corentin Thomasset 03e073d4f0 feat: git memo
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-21 18:42:19 +02:00
Corentin Thomasset cb0e3f91db feat: git memo
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-21 18:34:17 +02:00
Corentin Thomasset c8c0dceb21 refactor: globalised code style
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-21 18:33:56 +02:00
Corentin Thomasset ba5e07d063 refactor: home page layout
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-21 18:33:17 +02:00
Corentin Thomasset 9e94a985ca feat: ga monitor app version
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-21 18:32:44 +02:00
Corentin Thomasset a14a7338f8 feat: added call to action
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-21 18:31:56 +02:00
Corentin Thomasset b65472ce96 feat: condensed + colored sidenav
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-21 11:31:22 +02:00
Corentin Thomasset 87f269a792 Merge branch 'master' of github.com:CorentinTh/it-tools 2020-06-15 22:26:00 +02:00
Corentin Thomasset 27f957a098 fix: added version in CHANGELOG.md
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:22:37 +02:00
Corentin Thomasset 551738f559 1.3.0 2020-06-15 22:12:46 +02:00
Corentin Thomasset 8f7b7f628e docs: checked Lorem ipsum generator in roadmap
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:12:46 +02:00
Corentin Thomasset 46514cf71b feat: fixed icons width in sidebar
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:12:46 +02:00
Corentin Thomasset 78157b4cb5 feat: fixed icons width in sidebar
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:12:46 +02:00
Corentin Thomasset bf4260f926 docs: checked markdown editor in roadmap
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:12:46 +02:00
Corentin Thomasset 9fc566e55a refactor: now using marked for changelog
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:12:46 +02:00
Corentin Thomasset 507d961cd8 feat: added MarkdownEditor.vue
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:12:46 +02:00
Corentin Thomasset 0631a7f750 chore: added stuff to roadmap
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:12:46 +02:00
Corentin Thomasset 99ffe08d01 chore: update CHANGELOG.md
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:12:46 +02:00
Corentin Thomasset fcc1335f97 refactor: removed lazyLoad method
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:12:46 +02:00
Corentin THOMASSET 3988d33218 chore: updated changelog 2020-06-15 22:12:46 +02:00
Alexander Janke ecb4b1bb7b Use vue-typecast
https://vuejs.org/v2/guide/forms.html#number
2020-06-15 22:12:46 +02:00
Corentin Thomasset b63c4b5415 refactor: lazy-loading tools routes
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:12:46 +02:00
Corentin Thomasset 26bda68f41 fix: ordered contributors by contribution count
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:12:46 +02:00
Corentin Thomasset f9f80b4e3a fix: replace next by version
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:12:46 +02:00
Corentin Thomasset f50c5cb91b 1.3.0 2020-06-15 22:10:09 +02:00
Corentin Thomasset da1da1d269 docs: checked Lorem ipsum generator in roadmap
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:10:08 +02:00
Corentin Thomasset 4129169e2b feat: fixed icons width in sidebar
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:10:08 +02:00
Corentin Thomasset cffbfe3e39 feat: fixed icons width in sidebar
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:10:08 +02:00
Corentin Thomasset 583ce878d2 docs: checked markdown editor in roadmap
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:10:08 +02:00
Corentin Thomasset c179f6a800 refactor: now using marked for changelog
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:10:08 +02:00
Corentin Thomasset 7944fd9f17 feat: added MarkdownEditor.vue
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:10:08 +02:00
Corentin Thomasset 84763e1d5f chore: added stuff to roadmap
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:10:08 +02:00
Corentin Thomasset ab56a3b598 chore: update CHANGELOG.md
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:10:08 +02:00
Corentin Thomasset b7d7454df5 refactor: removed lazyLoad method
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:10:08 +02:00
Corentin THOMASSET b730c1d1b4 chore: updated changelog 2020-06-15 22:10:08 +02:00
Alexander Janke f6da2a44e5 Use vue-typecast
https://vuejs.org/v2/guide/forms.html#number
2020-06-15 22:10:08 +02:00
Corentin Thomasset 89713c4986 refactor: lazy-loading tools routes
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:10:08 +02:00
Corentin Thomasset 3401fa4cf1 fix: ordered contributors by contribution count
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:10:08 +02:00
Corentin Thomasset 2a7abceba1 fix: replace next by version
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-15 22:10:08 +02:00
Corentin Thomasset cd9a2318fd fix: added parseFloat in isInt
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-09 08:22:26 +02:00
Corentin Thomasset 0ebe60e21e 1.2.1 2020-06-09 08:22:26 +02:00
Corentin Thomasset 634147f0b3 chore: update CHANGELOG.md
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-09 08:22:26 +02:00
dotvirus 318691837e Use Number.isInteger 2020-06-09 08:22:26 +02:00
Corentin Thomasset 17f3e7de35 refactor: proper validation rules
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-09 08:22:26 +02:00
Corentin Thomasset aa4fb5ffff fix: added quantity validation rules
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-09 08:22:26 +02:00
Corentin Thomasset e51a37844a 1.2.0 2020-06-08 19:15:52 +02:00
Corentin Thomasset 6d8db0a5d5 chore: updated CHANGELOG.md
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-08 19:15:52 +02:00
Corentin Thomasset 84e727a43a feat: can generate multiple uuids
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-08 19:15:52 +02:00
Corentin Thomasset 6f7c399823 refactor: removed 404 page from tools roadmap
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-08 19:15:52 +02:00
dependabot[bot] 3777eb941d chore(deps): bump websocket-extensions from 0.1.3 to 0.1.4
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases)
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-08 19:15:52 +02:00
Corentin Thomasset dd41bdc57c chore: updated CHANGELOG.md version
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-08 12:02:02 +02:00
Corentin Thomasset 48d0815524 1.1.0 2020-06-08 11:59:52 +02:00
Corentin Thomasset efe62bb3cf fix: color picker now updates fields
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-08 11:58:09 +02:00
Corentin Thomasset 48376c17b2 docs: updated README.md
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-08 00:54:25 +02:00
Corentin Thomasset 458309c563 chore: updated CHANGELOG.md
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-08 00:54:04 +02:00
Corentin Thomasset fba0701df2 feat: contributors + changelogs in about page
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-08 00:31:07 +02:00
Corentin Thomasset b013903c41 refactor: cleaner 404 page
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 23:13:08 +02:00
Corentin Thomasset 432ac7dd1c feat: 404 handler + page
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 23:11:18 +02:00
Corentin Thomasset 12a0d93c85 fix: added links in CHANGELOG.md
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 19:29:54 +02:00
Corentin Thomasset 8c16d5f691 1.0.1 2020-06-07 19:27:41 +02:00
Corentin Thomasset 3c0c2bd14f chore: added CHANGELOG.md
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 19:27:30 +02:00
Corentin Thomasset f729eacdc5 docs: updated roadmap
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 19:20:00 +02:00
Corentin Thomasset b46ae1a89e fix: removed history mode for router to prevent 404 on route direct access
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 19:20:00 +02:00
Corentin Thomasset 45112d1b33 feat: prevent non-integer bases
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 19:20:00 +02:00
Corentin Thomasset 0bf13326c8 refactor: proper icons
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 14:40:40 +02:00
Corentin Thomasset e5ffb4b946 fix: added router in vue analytics
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 14:06:29 +02:00
Corentin Thomasset a110a6b212 feat: added google analytics
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 14:01:30 +02:00
Corentin Thomasset 596753ce42 1.0.0 2020-06-07 13:39:45 +02:00
Corentin Thomasset 803dabece3 docs: updated README.md
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset f15ae7c959 fix: proper checklist
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset 6dca9bb1bf docs: updated README.md
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset 9486c71d2b refactor: updated banner.png
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset 42864770d7 docs: removed previous title
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset 8fab4264b8 docs: added logo in README.md
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset d7e0c4a16f chore: added LICENSE
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset ea4c87f6f3 chore: added CONTRIBUTING.md
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset 360faf285e chore: added CODE_OF_CONDUCT.md
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset db48322ec3 feat: dynamic title/description
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset c4bfad764c refactor: indent/format
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset 4801519b9f fix: input date format not updating
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset 5ec4c26f01 refactor: inputs length
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset b3d63734f0 feat: abstract
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset 9f4a257599 refactor: cleaned ColorConverter
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset 3e5a26c54c refactor: using "color-convert" in ColorConverter
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset 332cd33196 feat: ColorConverter
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset 44c9157cec feat: ColorConverter
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset 40b2695c8d refactor: font awesome 5 icons
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset 55668ea312 feat: home page
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset 77a6f20b2b feat: UuidGenerator
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset 407669def2 feat: BaseConverter
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset 8c78e8ad77 feat: TextStats + better searchbar
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset 85587beb0d feat: TextCypher
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset 805716910a feat: FileUploader + Base64
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
Corentin Thomasset e67e4cf547 feat: searchbar in menu on small screens
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
CorentinTh 716cfb69e3 feat: search bar 2020-06-07 13:39:45 +02:00
CorentinTh d9f6c55a79 feat: urlencoder + file in base64 2020-06-07 13:39:45 +02:00
CorentinTh ee4eb30ca2 feat: improved date converter input 2020-06-07 13:39:45 +02:00
CorentinTh 5a06d89bcc feat: DateConverter
Signed-off-by: CorentinTh <corentin.thomasset74@gmail.com>
2020-06-07 13:39:45 +02:00
CorentinTh d1db2c8601 feat: TokenGenerator + Hash 2020-06-07 13:39:45 +02:00
Corentin THOMASSET 1fba5c42e1 chore: update issue templates 2020-06-06 23:01:43 +02:00
CorentinTh 335e626400 chore: first commit 2020-04-07 18:06:35 +02:00
2156 changed files with 16561 additions and 739643 deletions

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
> 1%
last 2 versions
not dead
-5
View File
@@ -1,5 +0,0 @@
node_modules
playwright-report
coverage
dist
test-results
+17
View File
@@ -0,0 +1,17 @@
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/essential',
'eslint:recommended'
],
parserOptions: {
parser: 'babel-eslint'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
}
}
-2
View File
@@ -1,2 +0,0 @@
github: sharevb
buy_me_a_coffee: sharevb
-48
View File
@@ -1,48 +0,0 @@
name: 🐞 Bug Report
description: File a bug report.
labels: ['bug', 'triage']
assignees:
- sharevb
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: textarea
id: bug-description
attributes:
label: Describe the bug
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
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen? If you have a screenshot, you can paste it here.
placeholder: Tell us what you see!
value: 'A bug happened!'
validations:
required: true
- type: textarea
id: version
attributes:
label: System information
description: What is you environment? You can use the `npx envinfo --system --browsers` command to get this information.
validations:
required: true
- type: dropdown
id: app-type
attributes:
label: Where did you encounter the bug?
options:
- Public app (sharevb-it-tools.vercel.app)
- A self hosted
- Other (installations, docker, etc.)
validations:
required: true
+38
View File
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG] My bug title"
labels: bug
assignees: CorentinTh
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
**Additional context**
Add any other context about the problem here.
-1
View File
@@ -1 +0,0 @@
blank_issues_enabled: false
@@ -1,58 +0,0 @@
name: 🚀 New feature proposal
description: Propose a new feature/enhancement or tool idea for IT-Tools
labels: ['enhancement', 'triage']
body:
- type: markdown
attributes:
value: |
Thanks for your interest in the project and taking the time to fill out this feature report!
- type: dropdown
id: request-type
attributes:
label: What type of request is this?
options:
- New tool idea
- New feature for an existing tool
- Deployment or CI/CD improvement
- Self-hosting improvement
- Other
validations:
required: true
- type: textarea
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, in PLAIN ENGLISH ONLY.
placeholder: 'Example: a token generator tool'
validations:
required: true
- type: textarea
id: alternative
attributes:
label: Is there example of this tool in the wild?
description: Provide link to already existing tool (like websites, apps, cli, ...) or npm packages that could be used or provide inspiration for the feature.
- type: textarea
id: additional-context
attributes:
label: Additional context
description: Any other context or screenshots about the feature request here.
- type: checkboxes
id: checkboxes
attributes:
label: Validations
description: Before submitting the issue, please make sure you do the following
options:
- label: Check the feature is not already implemented in the project.
required: true
- label: Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
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
+20
View File
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
@@ -1,26 +0,0 @@
<!-- Thank you for contributing! -->
### Description
<!-- Please insert your description here and provide especially info about the "what" this PR is solving -->
### Additional context
<!-- e.g. is there anything you'd like reviewers to focus on? -->
---
### What is the purpose of this pull request? <!-- (put an "X" next to an item) -->
- [ ] Bug fix
- [ ] New Feature
- [ ] Documentation update
- [ ] Other
### Before submitting the PR, please make sure you do the following
- [ ] 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 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, oxlint (including type-aware rules) and vue-tsc are ok
- [ ] Ideally, include relevant tests that fail without this PR but pass with it.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

-10
View File
@@ -1,10 +0,0 @@
<svg width="910" height="141" viewBox="0 0 910 141" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="2" y="31" width="908" height="80" rx="21" fill="#EEEEEE"/>
<path d="M402.41 62.87H398.045L397.295 65H395.51L399.245 54.56H401.225L404.96 65H403.16L402.41 62.87ZM401.93 61.475L400.235 56.63L398.525 61.475H401.93ZM414.069 56.735V65H412.359V64.025C412.089 64.365 411.734 64.635 411.294 64.835C410.864 65.025 410.404 65.12 409.914 65.12C409.264 65.12 408.679 64.985 408.159 64.715C407.649 64.445 407.244 64.045 406.944 63.515C406.654 62.985 406.509 62.345 406.509 61.595V56.735H408.204V61.34C408.204 62.08 408.389 62.65 408.759 63.05C409.129 63.44 409.634 63.635 410.274 63.635C410.914 63.635 411.419 63.44 411.789 63.05C412.169 62.65 412.359 62.08 412.359 61.34V56.735H414.069ZM418.32 58.13V62.705C418.32 63.015 418.39 63.24 418.53 63.38C418.68 63.51 418.93 63.575 419.28 63.575H420.33V65H418.98C418.21 65 417.62 64.82 417.21 64.46C416.8 64.1 416.595 63.515 416.595 62.705V58.13H415.62V56.735H416.595V54.68H418.32V56.735H420.33V58.13H418.32ZM425.491 65.135C424.711 65.135 424.006 64.96 423.376 64.61C422.746 64.25 422.251 63.75 421.891 63.11C421.531 62.46 421.351 61.71 421.351 60.86C421.351 60.02 421.536 59.275 421.906 58.625C422.276 57.975 422.781 57.475 423.421 57.125C424.061 56.775 424.776 56.6 425.566 56.6C426.356 56.6 427.071 56.775 427.711 57.125C428.351 57.475 428.856 57.975 429.226 58.625C429.596 59.275 429.781 60.02 429.781 60.86C429.781 61.7 429.591 62.445 429.211 63.095C428.831 63.745 428.311 64.25 427.651 64.61C427.001 64.96 426.281 65.135 425.491 65.135ZM425.491 63.65C425.931 63.65 426.341 63.545 426.721 63.335C427.111 63.125 427.426 62.81 427.666 62.39C427.906 61.97 428.026 61.46 428.026 60.86C428.026 60.26 427.911 59.755 427.681 59.345C427.451 58.925 427.146 58.61 426.766 58.4C426.386 58.19 425.976 58.085 425.536 58.085C425.096 58.085 424.686 58.19 424.306 58.4C423.936 58.61 423.641 58.925 423.421 59.345C423.201 59.755 423.091 60.26 423.091 60.86C423.091 61.75 423.316 62.44 423.766 62.93C424.226 63.41 424.801 63.65 425.491 63.65ZM441.477 56.6C442.127 56.6 442.707 56.735 443.217 57.005C443.737 57.275 444.142 57.675 444.432 58.205C444.732 58.735 444.882 59.375 444.882 60.125V65H443.187V60.38C443.187 59.64 443.002 59.075 442.632 58.685C442.262 58.285 441.757 58.085 441.117 58.085C440.477 58.085 439.967 58.285 439.587 58.685C439.217 59.075 439.032 59.64 439.032 60.38V65H437.337V60.38C437.337 59.64 437.152 59.075 436.782 58.685C436.412 58.285 435.907 58.085 435.267 58.085C434.627 58.085 434.117 58.285 433.737 58.685C433.367 59.075 433.182 59.64 433.182 60.38V65H431.472V56.735H433.182V57.68C433.462 57.34 433.817 57.075 434.247 56.885C434.677 56.695 435.137 56.6 435.627 56.6C436.287 56.6 436.877 56.74 437.397 57.02C437.917 57.3 438.317 57.705 438.597 58.235C438.847 57.735 439.237 57.34 439.767 57.05C440.297 56.75 440.867 56.6 441.477 56.6ZM446.488 60.83C446.488 60 446.658 59.265 446.998 58.625C447.348 57.985 447.818 57.49 448.408 57.14C449.008 56.78 449.668 56.6 450.388 56.6C451.038 56.6 451.603 56.73 452.083 56.99C452.573 57.24 452.963 57.555 453.253 57.935V56.735H454.978V65H453.253V63.77C452.963 64.16 452.568 64.485 452.068 64.745C451.568 65.005 450.998 65.135 450.358 65.135C449.648 65.135 448.998 64.955 448.408 64.595C447.818 64.225 447.348 63.715 446.998 63.065C446.658 62.405 446.488 61.66 446.488 60.83ZM453.253 60.86C453.253 60.29 453.133 59.795 452.893 59.375C452.663 58.955 452.358 58.635 451.978 58.415C451.598 58.195 451.188 58.085 450.748 58.085C450.308 58.085 449.898 58.195 449.518 58.415C449.138 58.625 448.828 58.94 448.588 59.36C448.358 59.77 448.243 60.26 448.243 60.83C448.243 61.4 448.358 61.9 448.588 62.33C448.828 62.76 449.138 63.09 449.518 63.32C449.908 63.54 450.318 63.65 450.748 63.65C451.188 63.65 451.598 63.54 451.978 63.32C452.358 63.1 452.663 62.78 452.893 62.36C453.133 61.93 453.253 61.43 453.253 60.86ZM459.219 58.13V62.705C459.219 63.015 459.289 63.24 459.429 63.38C459.579 63.51 459.829 63.575 460.179 63.575H461.229V65H459.879C459.109 65 458.519 64.82 458.109 64.46C457.699 64.1 457.494 63.515 457.494 62.705V58.13H456.519V56.735H457.494V54.68H459.219V56.735H461.229V58.13H459.219ZM470.38 60.665C470.38 60.975 470.36 61.255 470.32 61.505H464.005C464.055 62.165 464.3 62.695 464.74 63.095C465.18 63.495 465.72 63.695 466.36 63.695C467.28 63.695 467.93 63.31 468.31 62.54H470.155C469.905 63.3 469.45 63.925 468.79 64.415C468.14 64.895 467.33 65.135 466.36 65.135C465.57 65.135 464.86 64.96 464.23 64.61C463.61 64.25 463.12 63.75 462.76 63.11C462.41 62.46 462.235 61.71 462.235 60.86C462.235 60.01 462.405 59.265 462.745 58.625C463.095 57.975 463.58 57.475 464.2 57.125C464.83 56.775 465.55 56.6 466.36 56.6C467.14 56.6 467.835 56.77 468.445 57.11C469.055 57.45 469.53 57.93 469.87 58.55C470.21 59.16 470.38 59.865 470.38 60.665ZM468.595 60.125C468.585 59.495 468.36 58.99 467.92 58.61C467.48 58.23 466.935 58.04 466.285 58.04C465.695 58.04 465.19 58.23 464.77 58.61C464.35 58.98 464.1 59.485 464.02 60.125H468.595ZM483.399 56.735L478.329 68.885H476.559L478.239 64.865L474.984 56.735H476.889L479.214 63.035L481.629 56.735H483.399ZM488.274 65.135C487.494 65.135 486.789 64.96 4Line truncated
<path d="M154.44 81L149.768 72.52H148.456V81H142.984V58.536H152.168C153.939 58.536 155.443 58.8453 156.68 59.464C157.939 60.0827 158.877 60.936 159.496 62.024C160.115 63.0907 160.424 64.2853 160.424 65.608C160.424 67.1013 159.997 68.4347 159.144 69.608C158.312 70.7813 157.075 71.6133 155.432 72.104L160.616 81H154.44ZM148.456 68.648H151.848C152.851 68.648 153.597 68.4027 154.088 67.912C154.6 67.4213 154.856 66.728 154.856 65.832C154.856 64.9787 154.6 64.3067 154.088 63.816C153.597 63.3253 152.851 63.08 151.848 63.08H148.456V68.648ZM179.731 71.784C179.731 72.296 179.699 72.8293 179.635 73.384H167.251C167.336 74.4933 167.688 75.3467 168.307 75.944C168.947 76.52 169.726 76.808 170.643 76.808C172.008 76.808 172.958 76.232 173.491 75.08H179.315C179.016 76.2533 178.472 77.3093 177.683 78.248C176.915 79.1867 175.944 79.9227 174.771 80.456C173.598 80.9893 172.286 81.256 170.835 81.256C169.086 81.256 167.528 80.8827 166.163 80.136C164.798 79.3893 163.731 78.3227 162.963 76.936C162.195 75.5493 161.811 73.928 161.811 72.072C161.811 70.216 162.184 68.5947 162.931 67.208C163.699 65.8213 164.766 64.7547 166.131 64.008C167.496 63.2613 169.064 62.888 170.835 62.888C172.563 62.888 174.099 63.2507 175.443 63.976C176.787 64.7013 177.832 65.736 178.579 67.08C179.347 68.424 179.731 69.992 179.731 71.784ZM174.131 70.344C174.131 69.4053 173.811 68.6587 173.171 68.104C172.531 67.5493 171.731 67.272 170.771 67.272C169.854 67.272 169.075 67.5387 168.435 68.072C167.816 68.6053 167.432 69.3627 167.283 70.344H174.131ZM192.538 62.952C194.628 62.952 196.292 63.6347 197.53 65C198.788 66.344 199.418 68.2 199.418 70.568V81H193.978V71.304C193.978 70.1093 193.668 69.1813 193.05 68.52C192.431 67.8587 191.599 67.528 190.554 67.528C189.508 67.528 188.676 67.8587 188.058 68.52C187.439 69.1813 187.13 70.1093 187.13 71.304V81H181.658V63.144H187.13V65.512C187.684 64.7227 188.431 64.104 189.37 63.656C190.308 63.1867 191.364 62.952 192.538 62.952ZM201.172 72.04C201.172 70.2053 201.514 68.5947 202.196 67.208C202.9 65.8213 203.85 64.7547 205.044 64.008C206.239 63.2613 207.572 62.888 209.044 62.888C210.218 62.888 211.284 63.1333 212.244 63.624C213.226 64.1147 213.994 64.776 214.548 65.608V57.32H220.02V81H214.548V78.44C214.036 79.2933 213.3 79.976 212.34 80.488C211.402 81 210.303 81.256 209.044 81.256C207.572 81.256 206.239 80.8827 205.044 80.136C203.85 79.368 202.9 78.2907 202.196 76.904C201.514 75.496 201.172 73.8747 201.172 72.04ZM214.548 72.072C214.548 70.7067 214.164 69.6293 213.396 68.84C212.65 68.0507 211.732 67.656 210.644 67.656C209.556 67.656 208.628 68.0507 207.86 68.84C207.114 69.608 206.74 70.6747 206.74 72.04C206.74 73.4053 207.114 74.4933 207.86 75.304C208.628 76.0933 209.556 76.488 210.644 76.488C211.732 76.488 212.65 76.0933 213.396 75.304C214.164 74.5147 214.548 73.4373 214.548 72.072ZM239.851 71.784C239.851 72.296 239.819 72.8293 239.755 73.384H227.371C227.456 74.4933 227.808 75.3467 228.427 75.944C229.067 76.52 229.846 76.808 230.763 76.808C232.128 76.808 233.078 76.232 233.611 75.08H239.435C239.136 76.2533 238.592 77.3093 237.803 78.248C237.035 79.1867 236.064 79.9227 234.891 80.456C233.718 80.9893 232.406 81.256 230.955 81.256C229.206 81.256 227.648 80.8827 226.283 80.136C224.918 79.3893 223.851 78.3227 223.083 76.936C222.315 75.5493 221.931 73.928 221.931 72.072C221.931 70.216 222.304 68.5947 223.051 67.208C223.819 65.8213 224.886 64.7547 226.251 64.008C227.616 63.2613 229.184 62.888 230.955 62.888C232.683 62.888 234.219 63.2507 235.563 63.976C236.907 64.7013 237.952 65.736 238.699 67.08C239.467 68.424 239.851 69.992 239.851 71.784ZM234.251 70.344C234.251 69.4053 233.931 68.6587 233.291 68.104C232.651 67.5493 231.851 67.272 230.891 67.272C229.974 67.272 229.195 67.5387 228.555 68.072C227.936 68.6053 227.552 69.3627 227.403 70.344H234.251ZM247.25 66.12C247.89 65.1387 248.69 64.3707 249.65 63.816C250.61 63.24 251.676 62.952 252.85 62.952V68.744H251.346C249.98 68.744 248.956 69.0427 248.274 69.64C247.591 70.216 247.25 71.24 247.25 72.712V81H241.778V63.144H247.25V66.12ZM257.257 61.288C256.297 61.288 255.508 61.0107 254.889 60.456C254.292 59.88 253.993 59.176 253.993 58.344C253.993 57.4907 254.292 56.7867 254.889 56.232C255.508 55.656 256.297 55.368 257.257 55.368C258.196 55.368 258.964 55.656 259.561 56.232C260.18 56.7867 260.489 57.4907 260.489 58.344C260.489 59.176 260.18 59.88 259.561 60.456C258.964 61.0107 258.196 61.288 257.257 61.288ZM259.977 63.144V81H254.505V63.144H259.977ZM268.103 76.488H275.847V81H261.991V76.648L269.415 67.656H262.055V63.144H275.687V67.496L268.103 76.488ZM294.73 71.784C294.73 72.296 294.698 72.8293 294.634 73.384H282.25C282.335 74.4933 282.687 75.3467 283.306 75.944C283.946 76.52 284.724 76.808 285.642 76.808C287.007 76.808 287.956 76.232 288.49 75.08H294.314C294.015 76.2533 293.471 77.3093 292.682 78.248C291.914 79.1867 290.943 79.9227 289.77 80.456C288.596 80.9893 287.284 81.256 285.834 81.256C284.084 81.256 282.527 80.8827 281.162 80.136C279.796 79.3893 278.73 78.3227 277.962 76.936C277.194 75.5493 276.81 7Line truncated
<rect x="25" y="60" width="84" height="22" rx="6" fill="#C6C6C6"/>
<path d="M38.1974 76.098C37.5441 76.098 36.9561 75.986 36.4334 75.762C35.9107 75.5287 35.5001 75.202 35.2014 74.782C34.9027 74.362 34.7534 73.872 34.7534 73.312H36.4614C36.4987 73.732 36.6621 74.0773 36.9514 74.348C37.2501 74.6187 37.6654 74.754 38.1974 74.754C38.7481 74.754 39.1774 74.6233 39.4854 74.362C39.7934 74.0913 39.9474 73.746 39.9474 73.326C39.9474 72.9993 39.8494 72.7333 39.6534 72.528C39.4667 72.3227 39.2287 72.164 38.9394 72.052C38.6594 71.94 38.2674 71.8187 37.7634 71.688C37.1287 71.52 36.6107 71.352 36.2094 71.184C35.8174 71.0067 35.4814 70.736 35.2014 70.372C34.9214 70.008 34.7814 69.5227 34.7814 68.916C34.7814 68.356 34.9214 67.866 35.2014 67.446C35.4814 67.026 35.8734 66.704 36.3774 66.48C36.8814 66.256 37.4647 66.144 38.1274 66.144C39.0701 66.144 39.8401 66.382 40.4374 66.858C41.0441 67.3247 41.3801 67.9687 41.4454 68.79H39.6814C39.6534 68.4353 39.4854 68.132 39.1774 67.88C38.8694 67.628 38.4634 67.502 37.9594 67.502C37.5021 67.502 37.1287 67.6187 36.8394 67.852C36.5501 68.0853 36.4054 68.4213 36.4054 68.86C36.4054 69.1587 36.4941 69.406 36.6714 69.602C36.8581 69.7887 37.0914 69.938 37.3714 70.05C37.6514 70.162 38.0341 70.2833 38.5194 70.414C39.1634 70.5913 39.6861 70.7687 40.0874 70.946C40.4981 71.1233 40.8434 71.3987 41.1234 71.772C41.4127 72.136 41.5574 72.626 41.5574 73.242C41.5574 73.7367 41.4221 74.2033 41.1514 74.642C40.8901 75.0807 40.5027 75.4353 39.9894 75.706C39.4854 75.9673 38.8881 76.098 38.1974 76.098ZM50.2446 69.168C50.2446 69.6627 50.128 70.1293 49.8946 70.568C49.6613 71.0067 49.288 71.366 48.7746 71.646C48.2613 71.9167 47.6033 72.052 46.8006 72.052H45.0366V76H43.4406V66.27H46.8006C47.5473 66.27 48.1773 66.4007 48.6906 66.662C49.2133 66.914 49.6006 67.2593 49.8526 67.698C50.114 68.1367 50.2446 68.6267 50.2446 69.168ZM46.8006 70.75C47.4073 70.75 47.86 70.6147 48.1586 70.344C48.4573 70.064 48.6066 69.672 48.6066 69.168C48.6066 68.104 48.0046 67.572 46.8006 67.572H45.0366V70.75H46.8006ZM56.2048 76.098C55.2995 76.098 54.4641 75.888 53.6988 75.468C52.9428 75.0387 52.3408 74.446 51.8928 73.69C51.4541 72.9247 51.2348 72.066 51.2348 71.114C51.2348 70.162 51.4541 69.308 51.8928 68.552C52.3408 67.796 52.9428 67.208 53.6988 66.788C54.4641 66.3587 55.2995 66.144 56.2048 66.144C57.1195 66.144 57.9548 66.3587 58.7108 66.788C59.4761 67.208 60.0781 67.796 60.5168 68.552C60.9555 69.308 61.1748 70.162 61.1748 71.114C61.1748 72.066 60.9555 72.9247 60.5168 73.69C60.0781 74.446 59.4761 75.0387 58.7108 75.468C57.9548 75.888 57.1195 76.098 56.2048 76.098ZM56.2048 74.712C56.8488 74.712 57.4228 74.5673 57.9268 74.278C58.4308 73.9793 58.8228 73.5593 59.1028 73.018C59.3921 72.4673 59.5368 71.8327 59.5368 71.114C59.5368 70.3953 59.3921 69.7653 59.1028 69.224C58.8228 68.6827 58.4308 68.2673 57.9268 67.978C57.4228 67.6887 56.8488 67.544 56.2048 67.544C55.5608 67.544 54.9868 67.6887 54.4828 67.978C53.9788 68.2673 53.5821 68.6827 53.2928 69.224C53.0128 69.7653 52.8728 70.3953 52.8728 71.114C52.8728 71.8327 53.0128 72.4673 53.2928 73.018C53.5821 73.5593 53.9788 73.9793 54.4828 74.278C54.9868 74.5673 55.5608 74.712 56.2048 74.712ZM70.7393 76H69.1433L64.3413 68.734V76H62.7453V66.256H64.3413L69.1433 73.508V66.256H70.7393V76ZM76.0412 76.098C75.3878 76.098 74.7998 75.986 74.2772 75.762C73.7545 75.5287 73.3438 75.202 73.0452 74.782C72.7465 74.362 72.5972 73.872 72.5972 73.312H74.3052C74.3425 73.732 74.5058 74.0773 74.7952 74.348C75.0938 74.6187 75.5092 74.754 76.0412 74.754C76.5918 74.754 77.0212 74.6233 77.3292 74.362C77.6372 74.0913 77.7912 73.746 77.7912 73.326C77.7912 72.9993 77.6932 72.7333 77.4972 72.528C77.3105 72.3227 77.0725 72.164 76.7832 72.052C76.5032 71.94 76.1112 71.8187 75.6072 71.688C74.9725 71.52 74.4545 71.352 74.0532 71.184C73.6612 71.0067 73.3252 70.736 73.0452 70.372C72.7652 70.008 72.6252 69.5227 72.6252 68.916C72.6252 68.356 72.7652 67.866 73.0452 67.446C73.3252 67.026 73.7172 66.704 74.2212 66.48C74.7252 66.256 75.3085 66.144 75.9712 66.144C76.9138 66.144 77.6838 66.382 78.2812 66.858C78.8878 67.3247 79.2238 67.9687 79.2892 68.79H77.5252C77.4972 68.4353 77.3292 68.132 77.0212 67.88C76.7132 67.628 76.3072 67.502 75.8032 67.502C75.3458 67.502 74.9725 67.6187 74.6832 67.852C74.3938 68.0853 74.2492 68.4213 74.2492 68.86C74.2492 69.1587 74.3378 69.406 74.5152 69.602C74.7018 69.7887 74.9352 69.938 75.2152 70.05C75.4952 70.162 75.8778 70.2833 76.3632 70.414C77.0072 70.5913 77.5298 70.7687 77.9312 70.946C78.3418 71.1233 78.6872 71.3987 78.9672 71.772C79.2565 72.136 79.4012 72.626 79.4012 73.242C79.4012 73.7367 79.2658 74.2033 78.9952 74.642C78.7338 75.0807 78.3465 75.4353 77.8332 75.706C77.3292 75.9673 76.7318 76.098 76.0412 76.098ZM85.7224 76.098C84.817 76.098 83.9817 75.888 83.2164 75.468C82.4604 75.0387 81.8584 74.446 81.4104 73.69C80.9717 72.9247 80.7524 72.066 80.7524 71.114C80.7524 70.162 80.9717 69.308 81.4104 68.552C81.8584 67.796 82.4604 67.208 83.2164 66.788C83.9817 66.3587 84.817 66.144 85.7224 66.144C86.637 66.144 87.4724 66.3587 88.2284 66.788C88.9937 67.208 89.5957 67.796 90.0344 Line truncated
<rect x="730.964" y="51" width="161.036" height="39" rx="6" fill="black"/>
<path d="M757.248 68.08C756.96 67.5253 756.56 67.1093 756.048 66.832C755.536 66.544 754.944 66.4 754.272 66.4C753.536 66.4 752.88 66.5653 752.304 66.896C751.728 67.2267 751.275 67.696 750.944 68.304C750.624 68.912 750.464 69.616 750.464 70.416C750.464 71.216 750.624 71.9253 750.944 72.544C751.275 73.152 751.728 73.6213 752.304 73.952C752.88 74.2827 753.536 74.448 754.272 74.448C755.264 74.448 756.069 74.1707 756.688 73.616C757.307 73.0613 757.685 72.3093 757.824 71.36H753.648V69.904H759.776V71.328C759.659 72.192 759.349 72.9867 758.848 73.712C758.357 74.4373 757.712 75.0187 756.912 75.456C756.123 75.8827 755.243 76.096 754.272 76.096C753.227 76.096 752.272 75.856 751.408 75.376C750.544 74.8853 749.856 74.208 749.344 73.344C748.843 72.48 748.592 71.504 748.592 70.416C748.592 69.328 748.843 68.352 749.344 67.488C749.856 66.624 750.544 65.952 751.408 65.472C752.283 64.9813 753.237 64.736 754.272 64.736C755.456 64.736 756.507 65.0293 757.424 65.616C758.352 66.192 759.024 67.0133 759.44 68.08H757.248ZM769.655 71.376C769.655 71.7067 769.634 72.0053 769.591 72.272H762.855C762.908 72.976 763.17 73.5413 763.639 73.968C764.108 74.3947 764.684 74.608 765.367 74.608C766.348 74.608 767.042 74.1973 767.447 73.376H769.415C769.148 74.1867 768.663 74.8533 767.959 75.376C767.266 75.888 766.402 76.144 765.367 76.144C764.524 76.144 763.767 75.9573 763.095 75.584C762.434 75.2 761.911 74.6667 761.527 73.984C761.154 73.2907 760.967 72.4907 760.967 71.584C760.967 70.6773 761.148 69.8827 761.511 69.2C761.884 68.5067 762.402 67.9733 763.063 67.6C763.735 67.2267 764.503 67.04 765.367 67.04C766.199 67.04 766.94 67.2213 767.591 67.584C768.242 67.9467 768.748 68.4587 769.111 69.12C769.474 69.7707 769.655 70.5227 769.655 71.376ZM767.751 70.8C767.74 70.128 767.5 69.5893 767.031 69.184C766.562 68.7787 765.98 68.576 765.287 68.576C764.658 68.576 764.119 68.7787 763.671 69.184C763.223 69.5787 762.956 70.1173 762.871 70.8H767.751ZM773.578 68.672V73.552C773.578 73.8827 773.653 74.1227 773.802 74.272C773.962 74.4107 774.229 74.48 774.602 74.48H775.722V76H774.282C773.461 76 772.831 75.808 772.394 75.424C771.957 75.04 771.738 74.416 771.738 73.552V68.672H770.698V67.184H771.738V64.992H773.578V67.184H775.722V68.672H773.578ZM784.759 76.144C784.066 76.144 783.442 76.0213 782.887 75.776C782.343 75.52 781.911 75.1787 781.591 74.752C781.271 74.3147 781.101 73.8293 781.079 73.296H782.967C782.999 73.6693 783.175 73.984 783.495 74.24C783.826 74.4853 784.237 74.608 784.727 74.608C785.239 74.608 785.634 74.512 785.911 74.32C786.199 74.1173 786.343 73.8613 786.343 73.552C786.343 73.2213 786.183 72.976 785.863 72.816C785.554 72.656 785.058 72.48 784.375 72.288C783.714 72.1067 783.175 71.9307 782.759 71.76C782.343 71.5893 781.981 71.328 781.671 70.976C781.373 70.624 781.223 70.16 781.223 69.584C781.223 69.1147 781.362 68.688 781.639 68.304C781.917 67.9093 782.311 67.6 782.823 67.376C783.346 67.152 783.943 67.04 784.615 67.04C785.618 67.04 786.423 67.296 787.031 67.808C787.65 68.3093 787.981 68.9973 788.023 69.872H786.199C786.167 69.4773 786.007 69.1627 785.719 68.928C785.431 68.6933 785.042 68.576 784.551 68.576C784.071 68.576 783.703 68.6667 783.447 68.848C783.191 69.0293 783.063 69.2693 783.063 69.568C783.063 69.8027 783.149 70 783.319 70.16C783.49 70.32 783.698 70.448 783.943 70.544C784.189 70.6293 784.551 70.7413 785.031 70.88C785.671 71.0507 786.194 71.2267 786.599 71.408C787.015 71.5787 787.373 71.8347 787.671 72.176C787.97 72.5173 788.125 72.9707 788.135 73.536C788.135 74.0373 787.997 74.4853 787.719 74.88C787.442 75.2747 787.047 75.584 786.535 75.808C786.034 76.032 785.442 76.144 784.759 76.144ZM792.234 68.672V73.552C792.234 73.8827 792.309 74.1227 792.458 74.272C792.618 74.4107 792.885 74.48 793.258 74.48H794.378V76H792.938C792.117 76 791.488 75.808 791.05 75.424C790.613 75.04 790.394 74.416 790.394 73.552V68.672H789.354V67.184H790.394V64.992H792.234V67.184H794.378V68.672H792.234ZM795.451 71.552C795.451 70.6667 795.633 69.8827 795.995 69.2C796.369 68.5173 796.87 67.9893 797.499 67.616C798.139 67.232 798.843 67.04 799.611 67.04C800.305 67.04 800.907 67.1787 801.419 67.456C801.942 67.7227 802.358 68.0587 802.667 68.464V67.184H804.507V76H802.667V74.688C802.358 75.104 801.937 75.4507 801.403 75.728C800.87 76.0053 800.262 76.144 799.579 76.144C798.822 76.144 798.129 75.952 797.499 75.568C796.87 75.1733 796.369 74.6293 795.995 73.936C795.633 73.232 795.451 72.4373 795.451 71.552ZM802.667 71.584C802.667 70.976 802.539 70.448 802.283 70C802.038 69.552 801.713 69.2107 801.307 68.976C800.902 68.7413 800.465 68.624 799.995 68.624C799.526 68.624 799.089 68.7413 798.683 68.976C798.278 69.2 797.947 69.536 797.691 69.984C797.446 70.4213 797.323 70.944 797.323 71.552C797.323 72.16 797.446 72.6933 797.691 73.152C797.947 73.6107 798.278 73.9627 798.683 74.208C799.099 74.4427 799.537 74.56 799.995 74.56C800.465 74.56 800.902 74.4427 801.307 74.208C801.713 73.9733 802.038 73.632 802.283 73.184C802.539 72.7253 802.667 72.192 802.667 71.584ZM808.727 68.464C808.994 68.016 8Line truncated
<path d="M874.366 71.7071C874.757 71.3166 874.757 70.6834 874.366 70.2929L868.002 63.9289C867.612 63.5384 866.979 63.5384 866.588 63.9289C866.198 64.3195 866.198 64.9526 866.588 65.3431L872.245 71L866.588 76.6569C866.198 77.0474 866.198 77.6805 866.588 78.0711C866.979 78.4616 867.612 78.4616 868.002 78.0711L874.366 71.7071ZM860 72H873.659V70H860V72Z" fill="white"/>
</svg>

Before

Width:  |  Height:  |  Size: 57 KiB

-17
View File
@@ -1,17 +0,0 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
-240
View File
@@ -1,240 +0,0 @@
---
name: Deploy
# Builds here and deploys the result to Vercel. The Git integration is off for this project
# (`git.deploymentEnabled: false` in vercel.json), so this workflow is what deploys it.
#
# chore/all-my-stuffs goes to production. Every pull request gets a preview, linked from the
# PR's "View deployment" button through the GitHub environment set on the job.
#
# Setup: VERCEL_TOKEN, VERCEL_ORG_ID and VERCEL_PROJECT_ID as secrets, on the repository or on
# the Production and Preview environments. Optionally the VERCEL_PRODUCTION_URL repository
# variable (e.g. https://it-tools.example.com/): production builds generate sitemap.xml and
# robots.txt for it, and without it they are left out.
#
# Replaces sharevb-vercel-preview.yml and sharevb-vercel-prod.yml, which deployed the same two
# targets without a concurrency group or a GitHub environment. One deployment per burst of
# pushes keeps Vercel's daily deployment and upload caps, and Deployment Storage, in check.
permissions:
contents: read
on:
push:
branches:
- chore/all-my-stuffs
pull_request:
workflow_dispatch:
concurrency:
# Per ref, cancelling in progress: pushing three times in a minute should cost one
# deployment, not three. Production is grouped per ref too, so a rapid merge sequence
# collapses the same way.
group: deploy-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
# Same-repository events only. GitHub withholds secrets from `pull_request` runs on forks,
# so a fork would fail the credentials check on every push — and more to the point, this
# job runs the checked-out branch's build scripts with VERCEL_TOKEN in the environment.
# That is fine for branches in this repository, whose authors already have the secrets, and
# is not something to offer an arbitrary fork.
if: >-
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-26.04-arm
timeout-minutes: 15
# Records a GitHub Deployment per run, which is what puts the Environments sidebar, the
# "deployed to Preview" PR timeline entry and its "View deployment" button back — the parts
# of the Vercel Git integration lost when building moved here. The names match the
# environments that integration created, so their history carries on. The condition has to
# be restated rather than read from the `target` step: the environment is fixed before any
# step runs. `url` is evaluated at the end, so it can use the deploy step's output.
environment:
name: >-
${{ github.ref == 'refs/heads/chore/all-my-stuffs' && github.event_name != 'pull_request'
&& 'Production' || 'Preview' }}
url: ${{ steps.deploy.outputs.url }}
permissions:
contents: read
steps:
- name: Fail early if the Vercel credentials are missing
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
run: |
set -euo pipefail
missing=""
for name in VERCEL_TOKEN VERCEL_ORG_ID VERCEL_PROJECT_ID; do
[ -z "${!name}" ] && missing="$missing $name"
done
if [ -n "$missing" ]; then
# Either place works, so name both rather than send anyone to the wrong settings
# page.
echo "::error::Missing secrets:$missing — set them on the repository (Settings > Secrets and variables > Actions) or on the Production and Preview environments (Settings > Environments). See .github/workflows/deploy.yaml"
exit 1
fi
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# On pull requests, the exact commit that triggered the run, not GitHub's detached
# merge commit: this builds the PR's own head, as Vercel's Git integration did.
# Pinned to the event's SHA rather than the branch name, so a push that lands while
# this run is queued, or a re-run of an old run, can't deploy a different commit
# under this run's deployment. Empty on push and workflow_dispatch, which keeps the
# default ref.
ref: ${{ github.event.pull_request.head.sha }}
# The Vercel CLI reads the deployment's branch and commit message from git. A detached
# checkout shows up in Vercel as branch "HEAD", so name the commit after the PR branch.
- name: Name the checked-out commit after the PR branch
if: github.event_name == 'pull_request'
env:
# From the environment, not interpolated: branch names can contain shell
# metacharacters.
HEAD_REF: ${{ github.head_ref }}
run: git checkout -B "$HEAD_REF"
- uses: pnpm/setup@fbda4c85fc2e1e08721cd8763afea8f48d60f024 # v3.0.0
with:
cache: true
- name: Install Vercel CLI
# Into a scratch directory outside the repository, not globally: `pnpm add --global`
# needs a global bin directory that `pnpm/setup` does not configure, and it failed
# immediately on the first run with the secrets in place. Installing here also keeps
# package.json and the lockfile untouched, so the tree the build sees is the tree that
# was committed.
#
# Pinned: an unpinned CLI changes how this workflow builds and deploys with no commit
# here to explain it.
run: |
set -euo pipefail
mkdir -p "$RUNNER_TEMP/vercel-cli"
cd "$RUNNER_TEMP/vercel-cli"
pnpm init >/dev/null
# Build approvals as config rather than --allow-build flags, matching how the
# repository declares its own. This directory is outside the repository so it
# inherits nothing; both packages that run install scripts are named here. esbuild
# is the one that actually needs it — a transitive dependency of the CLI whose
# postinstall links its native binary.
#
# minimumReleaseAge is deliberately not set: pnpm's built-in default is already
# 1440 minutes, so restating it would only create a second place to keep in sync.
printf 'allowBuilds:\n vercel: true\n esbuild: true\n' > pnpm-workspace.yaml
pnpm add vercel@60.1.3
echo "$RUNNER_TEMP/vercel-cli/node_modules/.bin" >> "$GITHUB_PATH"
# Environment is decided once and reused, so the pull, the build and the deploy cannot
# disagree about which one they are targeting.
- name: Resolve target environment
id: target
env:
# Read from the environment, not interpolated into the script. workflow_dispatch can
# run on any branch, and a branch name containing shell metacharacters would
# otherwise be pasted straight into this `if` as source.
REF: ${{ github.ref }}
EVENT: ${{ github.event_name }}
PRODUCTION_URL: ${{ vars.VERCEL_PRODUCTION_URL }}
run: |
set -euo pipefail
if [ "$REF" = "refs/heads/chore/all-my-stuffs" ] && [ "$EVENT" != "pull_request" ]; then
{
echo "environment=production"
echo "prod_flag=--prod"
echo "hostname=$PRODUCTION_URL"
} >> "$GITHUB_OUTPUT"
else
{
echo "environment=preview"
echo "prod_flag="
# No sitemap or robots.txt for previews: they would advertise the preview URL.
echo "hostname="
} >> "$GITHUB_OUTPUT"
fi
- name: Pull Vercel project settings
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
run: |
set -euo pipefail
# The link is written out rather than left to the CLI to infer from environment
# variables. Relying on VERCEL_ORG_ID/VERCEL_PROJECT_ID alone failed here with
# "Could not retrieve Project Settings", and which variables a given CLI version
# honours is not something to guess at from a workflow. This file is exactly what
# `vercel link` produces, so the CLI has nothing left to work out.
mkdir -p .vercel
# printf rather than a heredoc: a heredoc's terminator has to sit at column zero,
# which it cannot inside an indented YAML block, and %s keeps the ids out of the
# shell's word splitting.
printf '{"projectId":"%s","orgId":"%s"}\n' "$VERCEL_PROJECT_ID" "$VERCEL_ORG_ID" \
> .vercel/project.json
# Shape only — the ids are secrets and are not printed.
python3 -c "import json;d=json.load(open('.vercel/project.json'));print('link written, keys:', sorted(d))"
vercel pull --yes \
--environment="${{ steps.target.outputs.environment }}" \
--token="$VERCEL_TOKEN"
- name: Build
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
# What sharevb-vercel-*.yml set, kept so the build is the same:
# VITE_VERCEL_ENV is the env label the app reports (src/config.ts), and
# VITE_VERCEL_DEPLOY turns off full PWA precaching (vite.config.ts).
VITE_VERCEL_ENV: ${{ steps.target.outputs.environment }}
VITE_VERCEL_DEPLOY: true
# HOSTNAME is what vite.config.ts generates sitemap.xml and robots.txt from, so it is
# set for production only, from the VERCEL_PRODUCTION_URL repository variable.
HOSTNAME: ${{ steps.target.outputs.hostname }}
run: |
set -euo pipefail
vercel build ${{ steps.target.outputs.prod_flag }} --token="$VERCEL_TOKEN"
# A build that produces nothing would otherwise deploy an empty site over a working
# one. Checked before anything is uploaded.
test -s .vercel/output/static/index.html || {
echo "::error::Build produced no .vercel/output/static/index.html — refusing to deploy"
exit 1
}
- name: Deploy
id: deploy
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
run: |
set -euo pipefail
# --archive=tgz uploads the output as one archive instead of file by file. The Hobby
# plan caps CLI uploads at 5000 files a day across the whole account
# ("api-upload-free"), and per-file uploads hit that after a busy
# day of deploys.
url=$(vercel deploy --prebuilt --archive=tgz ${{ steps.target.outputs.prod_flag }} --token="$VERCEL_TOKEN")
# `vercel deploy` prints the URL on stdout and progress on stderr, so this is the URL
# and nothing else. Empty means the deploy did not produce one, which is a failure
# even if the CLI exited 0.
[ -n "$url" ] || { echo "::error::Deploy returned no URL"; exit 1; }
echo "url=$url" >> "$GITHUB_OUTPUT"
echo "Deployed to $url"
- name: Summary
if: always()
env:
ENVIRONMENT: ${{ steps.target.outputs.environment }}
URL: ${{ steps.deploy.outputs.url }}
STATUS: ${{ job.status }}
run: |
{
echo "### Deploy"
echo ""
if [ "$STATUS" = "success" ]; then
echo "Deployed to **$ENVIRONMENT**: $URL"
else
echo "**Deploy failed.** See the failing step above."
fi
} >> "$GITHUB_STEP_SUMMARY"
-42
View File
@@ -1,42 +0,0 @@
name: ci
on:
pull_request:
push:
branches:
- chore/all-my-stuffs
concurrency:
# A new push supersedes the previous run on the same ref, so a burst of pushes
# costs one run instead of one per push.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
runs-on: ubuntu-26.04-arm
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup pnpm and install dependencies
uses: pnpm/setup@fbda4c85fc2e1e08721cd8763afea8f48d60f024 # v3.0.0
with:
cache: true
# The checks are independent of each other, so they share the runner
# instead of queueing behind one another. The build is the long pole.
- parallel:
- name: Check formatting
run: pnpm fmt:check
- name: Run linters
run: pnpm lint
- name: Run unit test
run: pnpm test:unit
- name: Type check
run: pnpm typecheck
- name: Build the app
run: pnpm build
@@ -1,70 +0,0 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
on:
push:
branches: [ chore/all-my-stuffs ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ chore/all-my-stuffs ]
jobs:
analyze:
name: Analyze
# x64 on purpose: the x64 runner image ships the CodeQL bundle in its tool
# cache, the arm64 image does not, so arm would download it on every run.
runs-on: ubuntu-26.04
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize CodeQL
uses: github/codeql-action/init@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
config: |
paths-ignore:
- src/libs
# 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@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
# 📚 https://git.io/JvXDl
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
#- run: |
# make bootstrap
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
@@ -1,153 +0,0 @@
name: Docker nightly release
env:
VITE_VERCEL_ENV: production
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
check_date:
runs-on: ubuntu-26.04-arm
name: Check latest commit
outputs:
should_run: ${{ steps.should_run.outputs.should_run }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: print latest_commit
run: echo ${{ github.sha }}
- id: should_run
continue-on-error: true
name: check latest commit is less than a day
if: ${{ github.event_name == 'schedule' }}
run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=should_run::false"
ci:
runs-on: ubuntu-26.04-arm
needs: check_date
if: ${{ needs.check_date.outputs.should_run != 'false' }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup pnpm and install dependencies
uses: pnpm/setup@fbda4c85fc2e1e08721cd8763afea8f48d60f024 # v3.0.0
with:
cache: true
- name: Run linters
run: pnpm lint
- name: Run unit test
run: pnpm test:unit
- name: Type check
run: pnpm typecheck
- name: Build the app
run: pnpm build
build:
runs-on: ubuntu-26.04-arm
needs:
- ci
steps:
- name: Docker meta
id: meta
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
with:
images: sharevb/it-tools
labels: |
org.opencontainers.image.version=nightly
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Login to Docker Hub
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Build and push
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
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
github-release:
runs-on: ubuntu-26.04-arm
needs: ci
steps:
- name: Set release version to nightly
run: echo "RELEASE_VERSION=nightly" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup pnpm and install dependencies
uses: pnpm/setup@fbda4c85fc2e1e08721cd8763afea8f48d60f024 # v3.0.0
with:
cache: true
- 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@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
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 }}
@@ -1,87 +0,0 @@
name: Build and Push Docker Image (baseurl-it-tools)
# Kept for the deployments already pulling the `baseurl-it-tools` tag. It is no longer a
# different build: BASE_URL is a runtime setting now, so this image is the same one as
# `latest` with the default moved to /it-tools/, and `latest` with `-e BASE_URL=/it-tools/`
# gets you exactly the same thing.
env:
VITE_VERCEL_ENV: production
# Runs after the ci workflow passes on a push to the default branch, rather than
# repeating its lint, tests, typecheck and build here: the image build compiles
# the app anyway, and ci is what decides whether this commit is fit to publish.
on:
workflow_run:
workflows: [ci]
types: [completed]
branches:
- chore/all-my-stuffs
concurrency:
# One publish at a time, newest wins: without this, an older run that finishes
# last would overwrite the tags with an older commit. ci cancels its own
# superseded runs, so these runs arrive in commit order and cancelling the
# older one always leaves the newest commit published.
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
# Only a successful ci run for a push; a pull request's run must never publish.
if: >-
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'push'
runs-on: ubuntu-26.04-arm
steps:
- name: Docker meta
id: meta
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
with:
images: sharevb/it-tools
labels: |
org.opencontainers.image.version=baseurl-it-tools
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# The commit ci tested, not whatever the branch points at by now.
ref: ${{ github.event.workflow_run.head_sha }}
- name: Login to Docker Hub
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Build and push (BASE_URL)
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
file: ./Dockerfile
build-args: |
"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
# Optionally log out
- name: Log out from GitHub Container Registry
run: docker logout ghcr.io
@@ -1,87 +0,0 @@
name: Build and Push Docker Image (latest)
env:
VITE_VERCEL_ENV: production
# Runs after the ci workflow passes on a push to the default branch, rather than
# repeating its lint, tests, typecheck and build here: the image build compiles
# the app anyway, and ci is what decides whether this commit is fit to publish.
on:
workflow_run:
workflows: [ci]
types: [completed]
branches:
- chore/all-my-stuffs
concurrency:
# One publish at a time, newest wins: without this, an older run that finishes
# last would overwrite the tags with an older commit. ci cancels its own
# superseded runs, so these runs arrive in commit order and cancelling the
# older one always leaves the newest commit published.
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
# Only a successful ci run for a push; a pull request's run must never publish.
if: >-
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'push'
runs-on: ubuntu-26.04-arm
strategy:
matrix:
language: ['', 'en']
steps:
- name: Docker meta
id: meta
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# The commit ci tested, not whatever the branch points at by now.
ref: ${{ github.event.workflow_run.head_sha }}
- name: Login to Docker Hub
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Build and push
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
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:${{ 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
run: docker logout ghcr.io
-83
View File
@@ -1,83 +0,0 @@
name: E2E tests
on:
pull_request:
push:
branches:
- chore/all-my-stuffs
concurrency:
# A new push supersedes the previous run on the same ref, so a burst of pushes
# costs one run instead of one per push.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# Built once and shared: the build output is the same for every browser, so
# each test job downloads it instead of spending a minute rebuilding it.
build:
runs-on: ubuntu-26.04-arm
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup pnpm and install dependencies
uses: pnpm/setup@fbda4c85fc2e1e08721cd8763afea8f48d60f024 # v3.0.0
with:
cache: true
- name: Build app
run: pnpm build
- name: Upload build output
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: dist
path: dist
if-no-files-found: error
retention-days: 1
test:
needs: build
name: test (${{ matrix.browser }})
timeout-minutes: 120
runs-on: ubuntu-26.04-arm
strategy:
# Always report every browser, rather than cancelling the rest on the
# first failure.
fail-fast: false
matrix:
browser: [chromium, firefox, webkit]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup pnpm and install dependencies
uses: pnpm/setup@fbda4c85fc2e1e08721cd8763afea8f48d60f024 # v3.0.0
with:
cache: true
- name: Get Playwright version
id: playwright-version
# The installed version, not the range in package.json: a lockfile bump
# inside the same range would otherwise leave the key unchanged and the
# cached browsers out of sync with Playwright.
run: echo "PLAYWRIGHT_VERSION=$(jq -r .version node_modules/@playwright/test/package.json)" >> "$GITHUB_OUTPUT"
- name: Download build output
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: dist
path: dist
- name: Restore Playwright browsers from cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-${{ runner.arch }}-playwright-${{ matrix.browser }}-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }}-${{ hashFiles('**/playwright.config.ts') }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-playwright-${{ matrix.browser }}-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }}-
${{ runner.os }}-${{ runner.arch }}-playwright-${{ matrix.browser }}-
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps ${{ matrix.browser }}
- name: Run Playwright tests
run: pnpm run test:e2e --project=${{ matrix.browser }}
@@ -1,62 +0,0 @@
name: Deploy static content to Pages
env:
VITE_VERCEL_ENV: production
on:
# Runs on pushes targeting the default branch
push:
branches: ["chore/all-my-stuffs"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-26.04-arm
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup pnpm and install dependencies
uses: pnpm/setup@fbda4c85fc2e1e08721cd8763afea8f48d60f024 # v3.0.0
with:
cache: true
- name: Run linters
run: pnpm lint
- name: Type check
run: pnpm typecheck
- name: Build
run: |
BASE_URL="/it-tools/" pnpm build
cp dist/index.html dist/404.html
- name: Setup Pages
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
- name: Upload artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
-139
View File
@@ -1,139 +0,0 @@
name: Release new versions
env:
VITE_VERCEL_ENV: production
on:
push:
tags:
- 'v*.*.*'
jobs:
docker-release:
runs-on: ubuntu-26.04-arm
steps:
- name: Docker meta
id: meta
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Login to Docker Hub
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Build and push (BASE_URL)
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
file: ./Dockerfile
build-args: |
"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
sharevb/it-tools:${{ env.RELEASE_VERSION}}-baseurl-it-tools
ghcr.io/sharevb/it-tools:baseurl-it-tools
ghcr.io/sharevb/it-tools:stable-baseurl-it-tools
ghcr.io/sharevb/it-tools:${{ env.RELEASE_VERSION}}-baseurl-it-tools
- name: Build and push
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
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
sharevb/it-tools:${{ env.RELEASE_VERSION}}
ghcr.io/sharevb/it-tools:latest
ghcr.io/sharevb/it-tools:stable
ghcr.io/sharevb/it-tools:${{ env.RELEASE_VERSION}}
github-release:
runs-on: ubuntu-26.04-arm
needs: docker-release
steps:
- name: Get release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup pnpm and install dependencies
uses: pnpm/setup@fbda4c85fc2e1e08721cd8763afea8f48d60f024 # v3.0.0
with:
cache: true
- name: Run linters
run: pnpm lint
- name: Type check
run: pnpm typecheck
- 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@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: it-tools-${{ env.RELEASE_VERSION }}.zip
tag_name: v${{ env.RELEASE_VERSION }}
draft: false
prerelease: false
make_latest: "true"
body: |
## Docker images
- Docker Hub Registry
- `sharevb/it-tools:latest`
- `sharevb/it-tools:stable`
- `sharevb/it-tools:${{ env.RELEASE_VERSION}}`
- GitHub Container Registry
- `ghcr.io/sharevb/it-tools:latest`
- `ghcr.io/sharevb/it-tools:stable`
- `ghcr.io/sharevb/it-tools:${{ env.RELEASE_VERSION}}`
## Changelog
${{ steps.changelog.outputs.changelog }}
+10 -41
View File
@@ -1,52 +1,21 @@
# Logs
logs
*.log
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
.DS_Store
dist
dist-ssr
coverage
*.local
/cypress/videos/
/cypress/screenshots/
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.env
/test-results/
/playwright-report/
/playwright/.cache/
# Webkit with playwright creates a salt file
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
*.tsbuildinfo
stats.html
-1
View File
@@ -1 +0,0 @@
24.19.0
-14
View File
@@ -1,14 +0,0 @@
{
"types": [
{"type": "feat", "section": "Features"},
{"type": "fix", "section": "Bug Fixes"},
{"type": "docs", "section": "Documentation"},
{"type": "style", "section": "Styling"},
{"type": "refactor", "section": "Refactors"},
{"type": "perf", "section": "Performance"},
{"type": "test", "section": "Tests"},
{"type": "build", "section": "Build System"},
{"type": "ci", "section": "CI"},
{"type": "revert", "section": "Reverts"}
]
}
-8
View File
@@ -1,8 +0,0 @@
{
"recommendations": [
"Vue.volar",
"oxc.oxc-vscode",
"lokalise.i18n-ally",
"ms-vscode-remote.remote-wsl"
]
}
-13
View File
@@ -1,13 +0,0 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "oxc.oxc-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.oxc": "always"
},
"oxc.fmt.experimental": true,
"i18n-ally.localesPaths": [
"locales",
"src/modules/i18n"
],
"i18n-ally.keystyle": "nested"
}
+39 -2637
View File
File diff suppressed because it is too large. Load diff
+76
View File
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at contact@corentin-thomasset.fr. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
+92
View File
@@ -0,0 +1,92 @@
# Contributing
When contributing to this repository, please first discuss the change you wish to make via issue,
email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
## Pull Request Process
1. Ensure any install or build dependencies are removed before the end of the layer when doing a
build.
2. Update the README.md with details of changes to the interface, this includes new environment
variables, exposed ports, useful file locations and container parameters.
3. Increase the version numbers in any examples files and the README.md to the new version that this
Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/).
4. You may merge the Pull Request in once you have the sign-off of two other developers, or if you
do not have permission to do that, you may request the second reviewer to merge it for you.
## Code of Conduct
### Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.
### Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
### Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
### Scope
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
### Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at contact@corentin-thomasset.fr. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
### Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at [http://contributor-covenant.org/version/1/4][version]
[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
-73
View File
@@ -1,73 +0,0 @@
# build stage
FROM --platform=$BUILDPLATFORM node:24-alpine@sha256:ebfe2f90462722a7a4de65e91990e97fe0d401c70e0e762c5b53302f905ec1c1 AS build-stage
# Set environment variables for non-interactive npm installs
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 pnpm-workspace.yaml ./
COPY patches patches
COPY stubs stubs
RUN npm install -g pnpm@12.6.0 && pnpm i --ignore-scripts --frozen-lockfile
COPY . .
# Deliberately no BASE_URL here: the bundle is built path-agnostic (relative asset URLs
# plus a `<base href="/">` in index.html) so that one image can be served from any
# subpath. The path is a runtime setting instead -- see the BASE_URL environment variable
# on the production stage below.
ARG VITE_AVAILABLE_LOCALES
ENV VITE_AVAILABLE_LOCALES=${VITE_AVAILABLE_LOCALES}
ENV VITE_VERCEL_ENV=production
# Precompress hashed assets once instead of compressing each response at runtime.
RUN pnpm build \
&& find dist/assets -type f \( -name '*.js' -o -name '*.mjs' -o -name '*.css' -o -name '*.wasm' \) \
-exec gzip -9 -n -k {} +
# production stage
FROM nginxinc/nginx-unprivileged:stable-alpine@sha256:4714e0b1b2577eaa1a6131d07c958b67f0eb68e6d0521e90c6e5287db8cf0bc5 AS production-stage
LABEL maintainer="ShareVB <sharevb@gmail.com>" \
org.opencontainers.image.authors="ShareVB <sharevb@gmail.com>"
LABEL org.opencontainers.image.source=github.com/sharevb/it-tools
ENV VITE_VERCEL_ENV=production
# The path the app is served under. Override it at run time -- `docker run -e
# BASE_URL=/it-tools/`, `environment: BASE_URL: /it-tools/` in a compose file -- and nginx
# rewrites the `<base href>` in index.html on the way out; nothing is baked in. The build
# arg only moves the default, for anyone who prefers to ship an image that is preconfigured
# for a subpath. See docker-entrypoint.d/18-resolve-base-url.envsh and nginx.conf.
ARG BASE_URL=/
ENV BASE_URL=${BASE_URL}
COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/templates/default.conf.template
COPY docker-entrypoint.d/ /docker-entrypoint.d/
ENV PORT=8080
# nginx defaults to `worker_processes auto`, which counts the host's cores and
# ignores the container's cpu limit. On a large host that is hundreds of
# workers in a small container: `docker run -m 192m` is enough to get the
# image OOM-killed on startup. Let the entrypoint size the pool from the cgroup
# cpu quota instead. Uncapped containers still get one worker per core.
ENV NGINX_ENTRYPOINT_WORKER_PROCESSES_AUTOTUNE=1
# Render the template once here as well. The entrypoint normally re-renders it
# at startup, so a custom $PORT keeps working, but it cannot do so on a
# read-only filesystem (see docker-entrypoint.d/19-skip-envsubst-if-readonly.envsh).
# Without this the image would fall back to the stock welcome config from the
# base image: no SPA fallback, so deep links 404 on refresh, and no COOP/COEP,
# so the WebAssembly-backed tools stop working.
# Sourcing the entrypoint's own resolver keeps the baked-in BASE_URL normalised and
# validated exactly the way a runtime one would be.
RUN . /docker-entrypoint.d/18-resolve-base-url.envsh \
&& envsubst '${PORT} ${BASE_URL} ${BASE_URL_REGEX} ${BASE_URL_NO_SLASH_REGEX}' \
< /etc/nginx/templates/default.conf.template \
> /etc/nginx/conf.d/default.conf
EXPOSE $PORT
CMD ["nginx", "-g", "daemon off;"]
+21 -674
View File
@@ -1,674 +1,21 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
MIT License
Copyright (c) 2020 Corentin THOMASSET
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+63 -466
View File
@@ -1,487 +1,84 @@
## BREAKING CHANGE for Container Image
![logo](.github/logo.png)
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`.
Aggregated set of useful tools that every developer may need once in a while. Available [here](https://it-tools.tech).
You can override listening port using environment variable `PORT` (docker option `-e PORT=8888`).
## Functionalities roadmap
Here is an unordered list of the current functionalities, and some that may come.
You can serve the app from a subfolder using environment variable `BASE_URL` (docker option
`-e BASE_URL=/it-tools/`), without rebuilding the image -- see
[Host in a subfolder](#host-in-a-subfolder-it-tools).
- [x] Token generator
- [x] Uuid generator
- [x] String hash
- [x] Text encryption
- [x] Date format converter
- [x] Int base converter
- [x] Color format converter
- [x] Url encoder
- [x] Base 64 generator
- [x] Text information
- [x] Markdown editor
- [x] Lorem ipsum text generator
- [x] Git memo (cheat sheet)
- [x] QR code generator
- [ ] CSS memo (cheat sheet)
- [ ] REGEX memo (cheat sheet) + tester?
- [ ] Image exif editor/remover
- [ ] Bip39 pass-phrase generator
- [ ] Crontab friendly generator
- [ ] Image format converter?
- [ ] Image cropper
- [ ] Image resizer
- [ ] HTTP client (w/ axios + cors proxy)
- [ ] Math expression evaluator
- [ ] Math expression graph
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)
You have an idea of a tool? Submit a feature request!
## Proxmox Install
Run the command below in the Proxmox VE Shell
```bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/alpine-it-tools.sh)"```
## Build requirements
**To build this project**, around **8GB** of RAM is enough. Measured on a 4-core
machine, `pnpm build` peaks at roughly 6.5GB of system memory and completes on
Node's default heap — most of the work happens inside rolldown, in Rust, rather
than on the JavaScript heap.
## PR Welcome
Especially for UI improvements and translation. And for anything else.
Want to support this fork of IT Tools: [Buy me a coffee](https://www.buymeacoffee.com/sharevb)
## HTTPS is recommended
Some tools like PGP encryption rely on WebCrypto API that is only available in HTTPS/SSL. Also, if you want to use PWA, HTTPS is required.
So even on internal installations, you should enable HTTPS using Let's Encrypt using DNS Challenge
Some docs about DNS Challenge:
- https://medium.com/@life-is-short-so-enjoy-it/homelab-nginx-proxy-manager-setup-ssl-certificate-with-domain-name-in-cloudflare-dns-732af64ddc0b
- https://doc.traefik.io/traefik/user-guides/docker-compose/acme-dns/
- https://medium.com/@svenvanginkel/traefik-letsencrypt-dns01-challenge-with-ovhcloud-52f2a2c6d08a
Related doc for CyberPanel: https://community.cyberpanel.net/t/reverse-proxy-traffic-to-docker-container-on-cyberpanel/30644
### Check out these change here: <https://sharevb-it-tools.vercel.app/> or <https://sharevb.github.io/it-tools/>
You can use my image in your docker-compose/quadlet file if you want an up-to-date version of it-tools (with my PR and some of others) until the main branch has been updated.
- github action triggers on every push to this branch - [view package here](https://github.com/sharevb/it-tools/pkgs/container/it-tools)
(Thanks to [gitmotion](https://github.com/gitmotion/it-tools) for this model of README fork)
## Contributors
Big thanks to all the people who have already contributed!
[![contributors](https://contrib.rocks/image?repo=sharevb/it-tools&refresh=1)](https://github.com/sharevb/it-tools/graphs/contributors)
## Development under Windows
Use of WSL2 is recommended to develop using VSCode on Windows. Direct development is tricky (because of some dependencies)
## Added features
- 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
[GitHub Container Registry](https://github.com/sharevb/it-tools/pkgs/container/it-tools): `ghcr.io/sharevb/it-tools:latest`
[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
## Project setup
Install dependencies by running the following command:
```shell
npm install
```
Other existing docker tags: `latest-en` (english only)
Container builds precompress JavaScript, CSS, and WebAssembly files in `dist/assets`.
Nginx serves the `.gz` sidecars when clients accept gzip, including requests forwarded
by reverse proxies, and otherwise serves the original files. Compression happens once
at build time rather than on every request. HTML remains uncompressed so runtime
`BASE_URL` rewriting continues to work.
## Use in Docker Compose file
```yml
services:
it-tools:
container_name: it-tools
image: sharevb/it-tools:latest
pull_policy: always
restart: unless-stopped
ports:
- 8080:8080
Then compiles and hot-reloads for development:
```shell
npm run serve
```
## Use in Podman Quadlet file
```
[Unit]
Description=IT Tools container
After=network-online.target
[Container]
AutoUpdate=registry
Image=ghcr.io/sharevb/it-tools:latest
PublishPort=8080:8080
Label=io.containers.autoupdate=registry
[Install]
WantedBy=multi-user.target default.target
[Service]
Restart=always
```
## Use with companion Self Hosted docker services
Some tools requires additional docker services: HTTPS/DNS tools/Ping, HTML to PDF, Docker Image Download, Multi Links Download, Short Url Expander and TCP/UDP Port tester.
See complete example here: [docker-with-services](https://github.com/sharevb/it-tools/tree/chore/all-my-stuffs/docker-with-services)
## Filter tools and add home custom content
You can add custom content in Home page by mounting a `home.custom.md` in `/usr/share/nginx/html`.
You can filter available tools by mounting `tools-filter.json` in `/usr/share/nginx/html`. It can contains the following filtering regex:
```json
{
"excludeCategoryFilterRegex": "",
"includeCategoryFilterRegex": "",
"excludeToolsFilterRegex": "",
"includeToolsFilterRegex": ""
}
```
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/tree/chore/all-my-stuffs/docker-tools-filter-and-home-content)
## Add custom external tools
You can add custom external tools (href or markdownContent) by mounting a `external-tools.json` in `/usr/share/nginx/html` with the following structure:
```json
[
{
"name": "GitHub",
"path": "/github",
"description": "Link to Github",
"keywords": ["github"],
"category": "Links",
"href": "https://github.com"
},
{
"name": "Some text",
"path": "/some-text",
"description": "Some description",
"keywords": ["some"],
"category": "Links",
"markdownContent": "Some useful **text**\n\nin *markdown*"
}
]
```
See [docker-tools-filter-and-home-content](https://github.com/sharevb/it-tools/tree/chore/all-my-stuffs/docker-tools-filter-and-home-content)
## Setting default tools parameters / default UI language at runtime
For a complete sample, see [docker-with-services](https://github.com/sharevb/it-tools/tree/chore/all-my-stuffs/docker-with-services).
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
{
"regex-tester": {
"multi": true,
"regex": "some regex",
"global": false
}
}
```
You can find `tool name` and `parameter name` in the tools source code `src/tools` subfolder :
- example pattern for `const global = useQueryParamOrStorage({ storageName: 'regex-tester:g', name: 'global', defaultValue: true });`:
```json
{
"regex-tester": {
"global": false
}
}
```
- example pattern for `const value = useQueryParam({ tool: 'barcode-gen', name: 'text', defaultValue: '123456789' });`:
```json
{
"barcode-gen": {
"text": "4356"
}
}
```
- example pattern for `const width = useITStorage('ascii-text-drawer:width', 80);`:
```json
{
"ascii-text-drawer": {
"width": 80
}
}
```
To define the default UI language, add a `default_locale` key to json:
```json
{
"default_locale": "fr"
}
```
## Offline / air-gapped deployments
Fonts, editor extensions, the ffmpeg core, the ONNX runtime, the Tesseract OCR engine and its English and Simplified Chinese language data ship with the app, so these never come from a third-party CDN. The large ones are only downloaded when their tool is opened, and are left out of the PWA precache.
On a network without internet access, add `"offline": true` to `tools-settings.json`. Tools that only work with internet are then hidden (my-ip, ip-geo-location, dns-query, dns-queries, dnsbl-checker, dns-propagation-tester, online-wiktionary, iana-whois-checker), and tools with a bundled fallback switch to it:
- gitignore-generator and gitattributes-generator use a template snapshot bundled at build time (also used online when GitHub can't be reached). Refresh it with `pnpm script:update:git-templates`.
- ocr-image offers only the bundled languages.
- JSON/YAML schema validation offers only a custom schema (pasted, or a URL you enter).
- geo-coordinates-converter converts coordinates without showing a map.
Some tools work offline once you point them at an intranet mirror; without one, they are hidden in offline mode. The mirrors can also be used online:
```json
{
"offline": true,
"transformers": { "models-url": "https://intranet.example/hf-mirror/" },
"ocr-image": { "lang-url": "https://intranet.example/tessdata/" },
"json-schemas": { "catalog-url": "https://intranet.example/schemastore/api/json/catalog.json" },
"currency-converter": { "url": "https://intranet.example/currency-api/" },
"geo-coordinates-converter": {
"tile-url": "https://tiles.intranet.example/{z}/{x}/{y}.png",
"tile-attribution": "&copy; OpenStreetMap contributors"
},
"explainchain": { "url": "https://explainshell.intranet.example" }
}
```
| Setting | Used by | Expected content |
| --- | --- | --- |
| `transformers.models-url` | translator, remove-background, math-ocr | A mirror of the Hugging Face model repos with the same layout: `<url>/<org>/<model>/resolve/main/<file>`, e.g. `Xenova/opus-mt-en-fr/resolve/main/onnx/encoder_model_quantized.onnx`. Relative URLs resolve against the app. |
| `ocr-image.lang-url` | ocr-image | A directory of `<lang>.traineddata.gz` files (the `4.0.0_best_int` variant from the `@tesseract.js-data/<lang>` npm packages). The path may contain a `{lang}` placeholder, e.g. `https://intranet.example/npm/@tesseract.js-data/{lang}/4.0.0_best_int` for a mirror of jsDelivr. |
| `json-schemas.catalog-url` | json-viewer, yaml-viewer, json-editor, json-linter | A copy of the [SchemaStore](https://www.schemastore.org) catalog. The schema URLs listed in it must be reachable too. |
| `currency-converter.url` | currency-converter | A mirror of the `@fawazahmed0/currency-api` npm package, serving `v1/currencies/<code>.json`. |
| `geo-coordinates-converter.tile-url` | geo-coordinates-converter | A Leaflet tile URL template; `tile-attribution` is optional. |
| `explainchain.url` | explainshell | A self-hosted [explainshell](https://github.com/idank/explainshell). |
The tools that use the [companion self-hosted services](#use-with-companion-self-hosted-docker-services) stay available in offline mode and work against intranet targets.
## To build using a custom default language:
```
docker build -t it-tools-fr --build-arg VITE_LANGUAGE=fr .
docker run -d --name it-tools-fr --restart unless-stopped -p 8080:8080 it-tools-fr
```
## Host in a subfolder (`/it-tools/`)
The container serves the app from whatever path you point `BASE_URL` at. Nothing is baked
into the image, so the regular `latest` image works for any subfolder -- no rebuild, no
subfolder-specific tag:
```yaml
services:
it-tools:
image: ghcr.io/sharevb/it-tools:latest
restart: unless-stopped
environment:
BASE_URL: /it-tools/
ports:
- 8080:8080
```
or `docker run -d --name it-tools -e BASE_URL=/it-tools/ -p 8080:8080 ghcr.io/sharevb/it-tools:latest`.
`BASE_URL` accepts `it-tools`, `/it-tools` and `/it-tools/` alike; the default is `/`.
You still want a reverse proxy in front -- [Nginx Proxy Manager](https://nginxproxymanager.com/),
[Traefik](https://traefik.io/traefik/), [caddy](https://caddyserver.com/) etc. -- passing
`/it-tools/` through to the container. It does not matter whether the proxy strips the
prefix before forwarding (`proxy_pass http://it-tools:8080/;`) or passes it on as-is
(`proxy_pass http://it-tools:8080;`): the container handles both.
One thing only the proxy can do, in the stripping setup: `/it-tools` without the trailing
slash never reaches the container, so redirect it there -- the sample's
`location /it-tools { return 301 /it-tools/; }`. When the prefix is forwarded instead, the
container does that redirect itself.
See the [sample docker-compose.yml and nginx.conf](https://github.com/sharevb/it-tools/tree/chore/all-my-stuffs/docker-subfolder-sample).
To run the sample:
```bash
git clone https://github.com/sharevb/it-tools
cd it-tools/docker-subfolder-sample/
docker compose up
```
Then navigate to http://localhost/it-tools/
Two things worth knowing:
- Building with `--build-arg BASE_URL=/it-tools/` still works, but it now only changes the
image's *default* -- the environment variable still wins at run time.
- On a read-only root filesystem the config template cannot be re-rendered at startup, so
`BASE_URL` (like `PORT`) has no effect unless `/etc/nginx/conf.d` is writable -- mount a
tmpfs or an emptyDir there. The container says so in its log.
## To build using a custom folder:
1. `BASE_URL="/it-tools/" pnpm build`
2. Rename the generated `dist` folder to `it-tools` and serve on `https://your-domain.com/it-tools`
## To build for GitHub Pages:
1. Enable GitHub Pages build and deployment option in your fork, under **Settings** > **Pages** and select **GitHub Actions** as the source
2. Add the following GitHub action to your repo: https://github.com/sharevb/it-tools/tree/chore/all-my-stuffs/.github/workflows/sharevb-github-pages-publish.yml
## To add authentication
Assuming you're already hosting it-tools behind a reverse proxy, you can configure forward-auth and enforce authentication from the reverse proxy
- [Official guides](https://docs.goauthentik.io/docs/add-secure-apps/providers/proxy/server_nginx) with nginx. Guides with other reverse proxy setups are available
- [Step-by-step setup guide with nginx-proxy-manager](https://geekscircuit.com/set-up-authentik-sso-with-nginx-proxy-manager/)
(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
And to lint and fixe files, run:
```shell
npm run lint
```
## Contribute
**Pull requests are welcome !** Feel free to contribute.
### Recommended IDE Setup
### Add a tool
To add a tool you just have to create a vue component in [src/routes/tools](./src/routes/tools), example:
```vue
<template>
<v-card class="single-card">
<v-card-title>My component</v-card-title>
<v-card-text>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</v-card-text>
</v-card>
</template>
To install VSCode in WSL2 (Windows), see: https://learn.microsoft.com/en-us/windows/wsl/tutorials/wsl-vscode
<script>
export default {
name: "My component"
}
</script>
[VSCode](https://code.visualstudio.com/) with the following extensions:
- [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur)
- [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
- [Oxc](https://marketplace.visualstudio.com/items?itemName=oxc.oxc-vscode) (oxlint + oxfmt)
- [i18n Ally](https://marketplace.visualstudio.com/items?itemName=lokalise.i18n-ally)
with the following settings:
```json
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "oxc.oxc-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.oxc": "always"
},
"i18n-ally.localesPaths": ["locales", "src/tools/*/locales"],
"i18n-ally.keystyle": "nested"
}
<style scoped lang="less">
</style>
```
### Type Support for `.vue` Imports in TS
Then, update the file [router.js](./src/router.js) specifying info of the component.
Use [fontawesome 5](https://fontawesome.com/icons?d=gallery&m=free) for icons.
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
## Credits
Coded with ❤️ by [Corentin Thomasset](//corentin-thomasset.fr).
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
1. Disable the built-in TypeScript Extension
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
### Project Setup
```sh
pnpm install --ignore-scripts
```
### Compile and Hot-Reload for Development
```sh
pnpm dev
```
### Type-Check, Compile and Minify for Production
```sh
pnpm build
```
### Run Unit Tests with [Vitest](https://vitest.dev/)
```sh
pnpm test:unit
```
### Run End-to-End Tests with [Playwright](https://playwright.dev/)
Playwright starts `pnpm preview` itself, so build first:
```sh
pnpm build
pnpm test:e2e
```
To iterate against the dev server instead, leave `pnpm dev` running and point
the tests at it. Playwright then leaves the server alone:
```sh
E2E_BASE_URL=http://localhost:5173 pnpm test:e2e
```
The dev server compiles routes on demand, so a first run against a cold one can
blow past the assertion timeouts. Open the pages once, or just run it again.
### Lint with [Oxlint](https://oxc.rs/docs/guide/usage/linter)
```sh
pnpm lint
```
### Format with [Oxfmt](https://oxc.rs/docs/guide/usage/formatter)
```sh
pnpm fmt
```
### Ensure CI (lock, oxlint, 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:
```sh
pnpm run script:create:tool my-tool-name
```
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
Local installation required installing first: `python3 make g++`
| Container Image | Local Installation |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| GitHub Container Registry: <span title="triple click me!">`ghcr.io/sharevb/it-tools:latest`</span><br/>Docker Hub: <span title="triple click me!">`sharevb/it-tools:latest`</span> | <span title="triple click me!">`sudo apt-get install python3 make g++ && git clone -b chore/all-my-stuffs https://github.com/sharevb/it-tools.git && cd it-tools/ && pnpm i --ignore-scripts && pnpm dev`</span> |
| replace your current image with this image | copy & paste oneliner (from github repo) |
| You may need to clear cache and hard reload to get new features loading | Installing packages for the first time may take some time; please wait until it finishes |
<picture>
<source srcset="./.github/logo-dark.png" media="(prefers-color-scheme: light)">
<source srcset="./.github/logo-white.png" media="(prefers-color-scheme: dark)">
<img src="./.github/logo-dark.png" alt="logo">
</picture>
This project is continuously deployed using [vercel.com](https://vercel.com).
## License
This project is under the [GNU GPLv3](LICENSE).
This project is under the [MIT license](LICENSE).
@@ -1,6 +0,0 @@
---
to: src/ui/<%= h.changeCase.param(name) %>/<%= h.changeCase.param(name) %>.demo.vue
---
<template>
<<%= h.changeCase.param(name) %> />
</template>
@@ -1,13 +0,0 @@
---
to: src/ui/<%= h.changeCase.param(name) %>/<%= h.changeCase.param(name) %>.vue
---
<script lang="ts" setup>
const props = withDefaults(defineProps<{ prop?: string }>(), { prop: '' });
const { prop } = toRefs(props);
</script>
<template>
<div>
{{ prop }}
</div>
</template>
-601
View File
@@ -1,601 +0,0 @@
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import
// biome-ignore lint: disable
export {}
declare global {
const EffectScope: typeof import('vue').EffectScope
const asyncComputed: typeof import('@vueuse/core').asyncComputed
const autoResetRef: typeof import('@vueuse/core').autoResetRef
const computed: typeof import('vue').computed
const computedAsync: typeof import('@vueuse/core').computedAsync
const computedEager: typeof import('@vueuse/core').computedEager
const computedInject: typeof import('@vueuse/core').computedInject
const computedWithControl: typeof import('@vueuse/core').computedWithControl
const controlledComputed: typeof import('@vueuse/core').controlledComputed
const controlledRef: typeof import('@vueuse/core').controlledRef
const createApp: typeof import('vue').createApp
const createEventHook: typeof import('@vueuse/core').createEventHook
const createGlobalState: typeof import('@vueuse/core').createGlobalState
const createInjectionState: typeof import('@vueuse/core').createInjectionState
const createReactiveFn: typeof import('@vueuse/core').createReactiveFn
const createReusableTemplate: typeof import('@vueuse/core').createReusableTemplate
const createSharedComposable: typeof import('@vueuse/core').createSharedComposable
const createTemplatePromise: typeof import('@vueuse/core').createTemplatePromise
const createUnrefFn: typeof import('@vueuse/core').createUnrefFn
const customRef: typeof import('vue').customRef
const debouncedRef: typeof import('@vueuse/core').debouncedRef
const debouncedWatch: typeof import('@vueuse/core').debouncedWatch
const defineAsyncComponent: typeof import('vue').defineAsyncComponent
const defineComponent: typeof import('vue').defineComponent
const eagerComputed: typeof import('@vueuse/core').eagerComputed
const effectScope: typeof import('vue').effectScope
const extendRef: typeof import('@vueuse/core').extendRef
const getCurrentInstance: typeof import('vue').getCurrentInstance
const getCurrentScope: typeof import('vue').getCurrentScope
const getCurrentWatcher: typeof import('vue').getCurrentWatcher
const h: typeof import('vue').h
const ignorableWatch: typeof import('@vueuse/core').ignorableWatch
const inject: typeof import('vue').inject
const injectLocal: typeof import('@vueuse/core').injectLocal
const isDefined: typeof import('@vueuse/core').isDefined
const isProxy: typeof import('vue').isProxy
const isReactive: typeof import('vue').isReactive
const isReadonly: typeof import('vue').isReadonly
const isRef: typeof import('vue').isRef
const isShallow: typeof import('vue').isShallow
const makeDestructurable: typeof import('@vueuse/core').makeDestructurable
const markRaw: typeof import('vue').markRaw
const nextTick: typeof import('vue').nextTick
const onActivated: typeof import('vue').onActivated
const onBeforeMount: typeof import('vue').onBeforeMount
const onBeforeRouteLeave: typeof import('vue-router').onBeforeRouteLeave
const onBeforeRouteUpdate: typeof import('vue-router').onBeforeRouteUpdate
const onBeforeUnmount: typeof import('vue').onBeforeUnmount
const onBeforeUpdate: typeof import('vue').onBeforeUpdate
const onClickOutside: typeof import('@vueuse/core').onClickOutside
const onDeactivated: typeof import('vue').onDeactivated
const onErrorCaptured: typeof import('vue').onErrorCaptured
const onKeyStroke: typeof import('@vueuse/core').onKeyStroke
const onLongPress: typeof import('@vueuse/core').onLongPress
const onMounted: typeof import('vue').onMounted
const onRenderTracked: typeof import('vue').onRenderTracked
const onRenderTriggered: typeof import('vue').onRenderTriggered
const onScopeDispose: typeof import('vue').onScopeDispose
const onServerPrefetch: typeof import('vue').onServerPrefetch
const onStartTyping: typeof import('@vueuse/core').onStartTyping
const onUnmounted: typeof import('vue').onUnmounted
const onUpdated: typeof import('vue').onUpdated
const onWatcherCleanup: typeof import('vue').onWatcherCleanup
const pausableWatch: typeof import('@vueuse/core').pausableWatch
const provide: typeof import('vue').provide
const provideLocal: typeof import('@vueuse/core').provideLocal
const reactify: typeof import('@vueuse/core').reactify
const reactifyObject: typeof import('@vueuse/core').reactifyObject
const reactive: typeof import('vue').reactive
const reactiveComputed: typeof import('@vueuse/core').reactiveComputed
const reactiveOmit: typeof import('@vueuse/core').reactiveOmit
const reactivePick: typeof import('@vueuse/core').reactivePick
const readonly: typeof import('vue').readonly
const ref: typeof import('vue').ref
const refAutoReset: typeof import('@vueuse/core').refAutoReset
const refDebounced: typeof import('@vueuse/core').refDebounced
const refDefault: typeof import('@vueuse/core').refDefault
const refThrottled: typeof import('@vueuse/core').refThrottled
const refWithControl: typeof import('@vueuse/core').refWithControl
const resolveComponent: typeof import('vue').resolveComponent
const resolveRef: typeof import('@vueuse/core').resolveRef
const resolveUnref: typeof import('@vueuse/core').resolveUnref
const shallowReactive: typeof import('vue').shallowReactive
const shallowReadonly: typeof import('vue').shallowReadonly
const shallowRef: typeof import('vue').shallowRef
const syncRef: typeof import('@vueuse/core').syncRef
const syncRefs: typeof import('@vueuse/core').syncRefs
const templateRef: typeof import('@vueuse/core').templateRef
const throttledRef: typeof import('@vueuse/core').throttledRef
const throttledWatch: typeof import('@vueuse/core').throttledWatch
const toRaw: typeof import('vue').toRaw
const toReactive: typeof import('@vueuse/core').toReactive
const toRef: typeof import('vue').toRef
const toRefs: typeof import('vue').toRefs
const toValue: typeof import('vue').toValue
const triggerRef: typeof import('vue').triggerRef
const tryOnBeforeMount: typeof import('@vueuse/core').tryOnBeforeMount
const tryOnBeforeUnmount: typeof import('@vueuse/core').tryOnBeforeUnmount
const tryOnMounted: typeof import('@vueuse/core').tryOnMounted
const tryOnScopeDispose: typeof import('@vueuse/core').tryOnScopeDispose
const tryOnUnmounted: typeof import('@vueuse/core').tryOnUnmounted
const unref: typeof import('vue').unref
const unrefElement: typeof import('@vueuse/core').unrefElement
const until: typeof import('@vueuse/core').until
const useActiveElement: typeof import('@vueuse/core').useActiveElement
const useAnimate: typeof import('@vueuse/core').useAnimate
const useArrayDifference: typeof import('@vueuse/core').useArrayDifference
const useArrayEvery: typeof import('@vueuse/core').useArrayEvery
const useArrayFilter: typeof import('@vueuse/core').useArrayFilter
const useArrayFind: typeof import('@vueuse/core').useArrayFind
const useArrayFindIndex: typeof import('@vueuse/core').useArrayFindIndex
const useArrayFindLast: typeof import('@vueuse/core').useArrayFindLast
const useArrayIncludes: typeof import('@vueuse/core').useArrayIncludes
const useArrayJoin: typeof import('@vueuse/core').useArrayJoin
const useArrayMap: typeof import('@vueuse/core').useArrayMap
const useArrayReduce: typeof import('@vueuse/core').useArrayReduce
const useArraySome: typeof import('@vueuse/core').useArraySome
const useArrayUnique: typeof import('@vueuse/core').useArrayUnique
const useAsyncQueue: typeof import('@vueuse/core').useAsyncQueue
const useAsyncState: typeof import('@vueuse/core').useAsyncState
const useAttrs: typeof import('vue').useAttrs
const useBase64: typeof import('@vueuse/core').useBase64
const useBattery: typeof import('@vueuse/core').useBattery
const useBluetooth: typeof import('@vueuse/core').useBluetooth
const useBreakpoints: typeof import('@vueuse/core').useBreakpoints
const useBroadcastChannel: typeof import('@vueuse/core').useBroadcastChannel
const useBrowserLocation: typeof import('@vueuse/core').useBrowserLocation
const useCached: typeof import('@vueuse/core').useCached
const useClipboard: typeof import('@vueuse/core').useClipboard
const useClipboardItems: typeof import('@vueuse/core').useClipboardItems
const useCloned: typeof import('@vueuse/core').useCloned
const useColorMode: typeof import('@vueuse/core').useColorMode
const useConfirmDialog: typeof import('@vueuse/core').useConfirmDialog
const useCounter: typeof import('@vueuse/core').useCounter
const useCssModule: typeof import('vue').useCssModule
const useCssVar: typeof import('@vueuse/core').useCssVar
const useCssVars: typeof import('vue').useCssVars
const useCurrentElement: typeof import('@vueuse/core').useCurrentElement
const useCycleList: typeof import('@vueuse/core').useCycleList
const useDark: typeof import('@vueuse/core').useDark
const useDateFormat: typeof import('@vueuse/core').useDateFormat
const useDebounce: typeof import('@vueuse/core').useDebounce
const useDebounceFn: typeof import('@vueuse/core').useDebounceFn
const useDebouncedRefHistory: typeof import('@vueuse/core').useDebouncedRefHistory
const useDeviceMotion: typeof import('@vueuse/core').useDeviceMotion
const useDeviceOrientation: typeof import('@vueuse/core').useDeviceOrientation
const useDevicePixelRatio: typeof import('@vueuse/core').useDevicePixelRatio
const useDevicesList: typeof import('@vueuse/core').useDevicesList
const useDialog: typeof import('naive-ui').useDialog
const useDisplayMedia: typeof import('@vueuse/core').useDisplayMedia
const useDocumentVisibility: typeof import('@vueuse/core').useDocumentVisibility
const useDraggable: typeof import('@vueuse/core').useDraggable
const useDropZone: typeof import('@vueuse/core').useDropZone
const useElementBounding: typeof import('@vueuse/core').useElementBounding
const useElementByPoint: typeof import('@vueuse/core').useElementByPoint
const useElementHover: typeof import('@vueuse/core').useElementHover
const useElementSize: typeof import('@vueuse/core').useElementSize
const useElementVisibility: typeof import('@vueuse/core').useElementVisibility
const useEventBus: typeof import('@vueuse/core').useEventBus
const useEventListener: typeof import('@vueuse/core').useEventListener
const useEventSource: typeof import('@vueuse/core').useEventSource
const useEyeDropper: typeof import('@vueuse/core').useEyeDropper
const useFavicon: typeof import('@vueuse/core').useFavicon
const useFetch: typeof import('@vueuse/core').useFetch
const useFileDialog: typeof import('@vueuse/core').useFileDialog
const useFileSystemAccess: typeof import('@vueuse/core').useFileSystemAccess
const useFocus: typeof import('@vueuse/core').useFocus
const useFocusWithin: typeof import('@vueuse/core').useFocusWithin
const useFps: typeof import('@vueuse/core').useFps
const useFullscreen: typeof import('@vueuse/core').useFullscreen
const useGamepad: typeof import('@vueuse/core').useGamepad
const useGeolocation: typeof import('@vueuse/core').useGeolocation
const useI18n: typeof import('vue-i18n').useI18n
const useId: typeof import('vue').useId
const useIdle: typeof import('@vueuse/core').useIdle
const useImage: typeof import('@vueuse/core').useImage
const useInfiniteScroll: typeof import('@vueuse/core').useInfiniteScroll
const useIntersectionObserver: typeof import('@vueuse/core').useIntersectionObserver
const useInterval: typeof import('@vueuse/core').useInterval
const useIntervalFn: typeof import('@vueuse/core').useIntervalFn
const useKeyModifier: typeof import('@vueuse/core').useKeyModifier
const useLastChanged: typeof import('@vueuse/core').useLastChanged
const useLink: typeof import('vue-router').useLink
const useLoadingBar: typeof import('naive-ui').useLoadingBar
const useLocalStorage: typeof import('@vueuse/core').useLocalStorage
const useMagicKeys: typeof import('@vueuse/core').useMagicKeys
const useManualRefHistory: typeof import('@vueuse/core').useManualRefHistory
const useMediaControls: typeof import('@vueuse/core').useMediaControls
const useMediaQuery: typeof import('@vueuse/core').useMediaQuery
const useMemoize: typeof import('@vueuse/core').useMemoize
const useMemory: typeof import('@vueuse/core').useMemory
const useMessage: typeof import('naive-ui').useMessage
const useModel: typeof import('vue').useModel
const useMounted: typeof import('@vueuse/core').useMounted
const useMouse: typeof import('@vueuse/core').useMouse
const useMouseInElement: typeof import('@vueuse/core').useMouseInElement
const useMousePressed: typeof import('@vueuse/core').useMousePressed
const useMutationObserver: typeof import('@vueuse/core').useMutationObserver
const useNavigatorLanguage: typeof import('@vueuse/core').useNavigatorLanguage
const useNetwork: typeof import('@vueuse/core').useNetwork
const useNotification: typeof import('naive-ui').useNotification
const useNow: typeof import('@vueuse/core').useNow
const useObjectUrl: typeof import('@vueuse/core').useObjectUrl
const useOffsetPagination: typeof import('@vueuse/core').useOffsetPagination
const useOnline: typeof import('@vueuse/core').useOnline
const usePageLeave: typeof import('@vueuse/core').usePageLeave
const useParallax: typeof import('@vueuse/core').useParallax
const useParentElement: typeof import('@vueuse/core').useParentElement
const usePerformanceObserver: typeof import('@vueuse/core').usePerformanceObserver
const usePermission: typeof import('@vueuse/core').usePermission
const usePointer: typeof import('@vueuse/core').usePointer
const usePointerLock: typeof import('@vueuse/core').usePointerLock
const usePointerSwipe: typeof import('@vueuse/core').usePointerSwipe
const usePreferredColorScheme: typeof import('@vueuse/core').usePreferredColorScheme
const usePreferredContrast: typeof import('@vueuse/core').usePreferredContrast
const usePreferredDark: typeof import('@vueuse/core').usePreferredDark
const usePreferredLanguages: typeof import('@vueuse/core').usePreferredLanguages
const usePreferredReducedMotion: typeof import('@vueuse/core').usePreferredReducedMotion
const usePrevious: typeof import('@vueuse/core').usePrevious
const useRafFn: typeof import('@vueuse/core').useRafFn
const useRefHistory: typeof import('@vueuse/core').useRefHistory
const useResizeObserver: typeof import('@vueuse/core').useResizeObserver
const useRoute: typeof import('vue-router').useRoute
const useRouter: typeof import('vue-router').useRouter
const useScreenOrientation: typeof import('@vueuse/core').useScreenOrientation
const useScreenSafeArea: typeof import('@vueuse/core').useScreenSafeArea
const useScriptTag: typeof import('@vueuse/core').useScriptTag
const useScroll: typeof import('@vueuse/core').useScroll
const useScrollLock: typeof import('@vueuse/core').useScrollLock
const useSessionStorage: typeof import('@vueuse/core').useSessionStorage
const useShare: typeof import('@vueuse/core').useShare
const useSlots: typeof import('vue').useSlots
const useSorted: typeof import('@vueuse/core').useSorted
const useSpeechRecognition: typeof import('@vueuse/core').useSpeechRecognition
const useSpeechSynthesis: typeof import('@vueuse/core').useSpeechSynthesis
const useStepper: typeof import('@vueuse/core').useStepper
const useStorage: typeof import('@vueuse/core').useStorage
const useStorageAsync: typeof import('@vueuse/core').useStorageAsync
const useStyleTag: typeof import('@vueuse/core').useStyleTag
const useSupported: typeof import('@vueuse/core').useSupported
const useSwipe: typeof import('@vueuse/core').useSwipe
const useTemplateRef: typeof import('vue').useTemplateRef
const useTemplateRefsList: typeof import('@vueuse/core').useTemplateRefsList
const useTextDirection: typeof import('@vueuse/core').useTextDirection
const useTextSelection: typeof import('@vueuse/core').useTextSelection
const useTextareaAutosize: typeof import('@vueuse/core').useTextareaAutosize
const useThrottle: typeof import('@vueuse/core').useThrottle
const useThrottleFn: typeof import('@vueuse/core').useThrottleFn
const useThrottledRefHistory: typeof import('@vueuse/core').useThrottledRefHistory
const useTimeAgo: typeof import('@vueuse/core').useTimeAgo
const useTimeout: typeof import('@vueuse/core').useTimeout
const useTimeoutFn: typeof import('@vueuse/core').useTimeoutFn
const useTimeoutPoll: typeof import('@vueuse/core').useTimeoutPoll
const useTimestamp: typeof import('@vueuse/core').useTimestamp
const useTitle: typeof import('@vueuse/core').useTitle
const useToNumber: typeof import('@vueuse/core').useToNumber
const useToString: typeof import('@vueuse/core').useToString
const useToggle: typeof import('@vueuse/core').useToggle
const useTransition: typeof import('@vueuse/core').useTransition
const useUrlSearchParams: typeof import('@vueuse/core').useUrlSearchParams
const useUserMedia: typeof import('@vueuse/core').useUserMedia
const useVModel: typeof import('@vueuse/core').useVModel
const useVModels: typeof import('@vueuse/core').useVModels
const useVibrate: typeof import('@vueuse/core').useVibrate
const useVirtualList: typeof import('@vueuse/core').useVirtualList
const useWakeLock: typeof import('@vueuse/core').useWakeLock
const useWebNotification: typeof import('@vueuse/core').useWebNotification
const useWebSocket: typeof import('@vueuse/core').useWebSocket
const useWebWorker: typeof import('@vueuse/core').useWebWorker
const useWebWorkerFn: typeof import('@vueuse/core').useWebWorkerFn
const useWindowFocus: typeof import('@vueuse/core').useWindowFocus
const useWindowScroll: typeof import('@vueuse/core').useWindowScroll
const useWindowSize: typeof import('@vueuse/core').useWindowSize
const watch: typeof import('vue').watch
const watchArray: typeof import('@vueuse/core').watchArray
const watchAtMost: typeof import('@vueuse/core').watchAtMost
const watchDebounced: typeof import('@vueuse/core').watchDebounced
const watchDeep: typeof import('@vueuse/core').watchDeep
const watchEffect: typeof import('vue').watchEffect
const watchIgnorable: typeof import('@vueuse/core').watchIgnorable
const watchImmediate: typeof import('@vueuse/core').watchImmediate
const watchOnce: typeof import('@vueuse/core').watchOnce
const watchPausable: typeof import('@vueuse/core').watchPausable
const watchPostEffect: typeof import('vue').watchPostEffect
const watchSyncEffect: typeof import('vue').watchSyncEffect
const watchThrottled: typeof import('@vueuse/core').watchThrottled
const watchTriggerable: typeof import('@vueuse/core').watchTriggerable
const watchWithFilter: typeof import('@vueuse/core').watchWithFilter
const whenever: typeof import('@vueuse/core').whenever
}
// for type re-export
declare global {
// @ts-ignore
export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, ShallowRef, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
import('vue')
}
// for vue template auto import
import { UnwrapRef } from 'vue'
declare module 'vue' {
interface GlobalComponents {}
interface ComponentCustomProperties {
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
readonly asyncComputed: UnwrapRef<typeof import('@vueuse/core')['asyncComputed']>
readonly autoResetRef: UnwrapRef<typeof import('@vueuse/core')['autoResetRef']>
readonly computed: UnwrapRef<typeof import('vue')['computed']>
readonly computedAsync: UnwrapRef<typeof import('@vueuse/core')['computedAsync']>
readonly computedEager: UnwrapRef<typeof import('@vueuse/core')['computedEager']>
readonly computedInject: UnwrapRef<typeof import('@vueuse/core')['computedInject']>
readonly computedWithControl: UnwrapRef<typeof import('@vueuse/core')['computedWithControl']>
readonly controlledComputed: UnwrapRef<typeof import('@vueuse/core')['controlledComputed']>
readonly controlledRef: UnwrapRef<typeof import('@vueuse/core')['controlledRef']>
readonly createApp: UnwrapRef<typeof import('vue')['createApp']>
readonly createEventHook: UnwrapRef<typeof import('@vueuse/core')['createEventHook']>
readonly createGlobalState: UnwrapRef<typeof import('@vueuse/core')['createGlobalState']>
readonly createInjectionState: UnwrapRef<typeof import('@vueuse/core')['createInjectionState']>
readonly createReactiveFn: UnwrapRef<typeof import('@vueuse/core')['createReactiveFn']>
readonly createReusableTemplate: UnwrapRef<typeof import('@vueuse/core')['createReusableTemplate']>
readonly createSharedComposable: UnwrapRef<typeof import('@vueuse/core')['createSharedComposable']>
readonly createTemplatePromise: UnwrapRef<typeof import('@vueuse/core')['createTemplatePromise']>
readonly createUnrefFn: UnwrapRef<typeof import('@vueuse/core')['createUnrefFn']>
readonly customRef: UnwrapRef<typeof import('vue')['customRef']>
readonly debouncedRef: UnwrapRef<typeof import('@vueuse/core')['debouncedRef']>
readonly debouncedWatch: UnwrapRef<typeof import('@vueuse/core')['debouncedWatch']>
readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>
readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>
readonly eagerComputed: UnwrapRef<typeof import('@vueuse/core')['eagerComputed']>
readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
readonly extendRef: UnwrapRef<typeof import('@vueuse/core')['extendRef']>
readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']>
readonly getCurrentWatcher: UnwrapRef<typeof import('vue')['getCurrentWatcher']>
readonly h: UnwrapRef<typeof import('vue')['h']>
readonly ignorableWatch: UnwrapRef<typeof import('@vueuse/core')['ignorableWatch']>
readonly inject: UnwrapRef<typeof import('vue')['inject']>
readonly injectLocal: UnwrapRef<typeof import('@vueuse/core')['injectLocal']>
readonly isDefined: UnwrapRef<typeof import('@vueuse/core')['isDefined']>
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>
readonly isRef: UnwrapRef<typeof import('vue')['isRef']>
readonly isShallow: UnwrapRef<typeof import('vue')['isShallow']>
readonly makeDestructurable: UnwrapRef<typeof import('@vueuse/core')['makeDestructurable']>
readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>
readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>
readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>
readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>
readonly onBeforeRouteLeave: UnwrapRef<typeof import('vue-router')['onBeforeRouteLeave']>
readonly onBeforeRouteUpdate: UnwrapRef<typeof import('vue-router')['onBeforeRouteUpdate']>
readonly onBeforeUnmount: UnwrapRef<typeof import('vue')['onBeforeUnmount']>
readonly onBeforeUpdate: UnwrapRef<typeof import('vue')['onBeforeUpdate']>
readonly onClickOutside: UnwrapRef<typeof import('@vueuse/core')['onClickOutside']>
readonly onDeactivated: UnwrapRef<typeof import('vue')['onDeactivated']>
readonly onErrorCaptured: UnwrapRef<typeof import('vue')['onErrorCaptured']>
readonly onKeyStroke: UnwrapRef<typeof import('@vueuse/core')['onKeyStroke']>
readonly onLongPress: UnwrapRef<typeof import('@vueuse/core')['onLongPress']>
readonly onMounted: UnwrapRef<typeof import('vue')['onMounted']>
readonly onRenderTracked: UnwrapRef<typeof import('vue')['onRenderTracked']>
readonly onRenderTriggered: UnwrapRef<typeof import('vue')['onRenderTriggered']>
readonly onScopeDispose: UnwrapRef<typeof import('vue')['onScopeDispose']>
readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>
readonly onStartTyping: UnwrapRef<typeof import('@vueuse/core')['onStartTyping']>
readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
readonly onWatcherCleanup: UnwrapRef<typeof import('vue')['onWatcherCleanup']>
readonly pausableWatch: UnwrapRef<typeof import('@vueuse/core')['pausableWatch']>
readonly provide: UnwrapRef<typeof import('vue')['provide']>
readonly provideLocal: UnwrapRef<typeof import('@vueuse/core')['provideLocal']>
readonly reactify: UnwrapRef<typeof import('@vueuse/core')['reactify']>
readonly reactifyObject: UnwrapRef<typeof import('@vueuse/core')['reactifyObject']>
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
readonly reactiveComputed: UnwrapRef<typeof import('@vueuse/core')['reactiveComputed']>
readonly reactiveOmit: UnwrapRef<typeof import('@vueuse/core')['reactiveOmit']>
readonly reactivePick: UnwrapRef<typeof import('@vueuse/core')['reactivePick']>
readonly readonly: UnwrapRef<typeof import('vue')['readonly']>
readonly ref: UnwrapRef<typeof import('vue')['ref']>
readonly refAutoReset: UnwrapRef<typeof import('@vueuse/core')['refAutoReset']>
readonly refDebounced: UnwrapRef<typeof import('@vueuse/core')['refDebounced']>
readonly refDefault: UnwrapRef<typeof import('@vueuse/core')['refDefault']>
readonly refThrottled: UnwrapRef<typeof import('@vueuse/core')['refThrottled']>
readonly refWithControl: UnwrapRef<typeof import('@vueuse/core')['refWithControl']>
readonly resolveComponent: UnwrapRef<typeof import('vue')['resolveComponent']>
readonly resolveRef: UnwrapRef<typeof import('@vueuse/core')['resolveRef']>
readonly resolveUnref: UnwrapRef<typeof import('@vueuse/core')['resolveUnref']>
readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>
readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>
readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>
readonly syncRef: UnwrapRef<typeof import('@vueuse/core')['syncRef']>
readonly syncRefs: UnwrapRef<typeof import('@vueuse/core')['syncRefs']>
readonly templateRef: UnwrapRef<typeof import('@vueuse/core')['templateRef']>
readonly throttledRef: UnwrapRef<typeof import('@vueuse/core')['throttledRef']>
readonly throttledWatch: UnwrapRef<typeof import('@vueuse/core')['throttledWatch']>
readonly toRaw: UnwrapRef<typeof import('vue')['toRaw']>
readonly toReactive: UnwrapRef<typeof import('@vueuse/core')['toReactive']>
readonly toRef: UnwrapRef<typeof import('vue')['toRef']>
readonly toRefs: UnwrapRef<typeof import('vue')['toRefs']>
readonly toValue: UnwrapRef<typeof import('vue')['toValue']>
readonly triggerRef: UnwrapRef<typeof import('vue')['triggerRef']>
readonly tryOnBeforeMount: UnwrapRef<typeof import('@vueuse/core')['tryOnBeforeMount']>
readonly tryOnBeforeUnmount: UnwrapRef<typeof import('@vueuse/core')['tryOnBeforeUnmount']>
readonly tryOnMounted: UnwrapRef<typeof import('@vueuse/core')['tryOnMounted']>
readonly tryOnScopeDispose: UnwrapRef<typeof import('@vueuse/core')['tryOnScopeDispose']>
readonly tryOnUnmounted: UnwrapRef<typeof import('@vueuse/core')['tryOnUnmounted']>
readonly unref: UnwrapRef<typeof import('vue')['unref']>
readonly unrefElement: UnwrapRef<typeof import('@vueuse/core')['unrefElement']>
readonly until: UnwrapRef<typeof import('@vueuse/core')['until']>
readonly useActiveElement: UnwrapRef<typeof import('@vueuse/core')['useActiveElement']>
readonly useAnimate: UnwrapRef<typeof import('@vueuse/core')['useAnimate']>
readonly useArrayDifference: UnwrapRef<typeof import('@vueuse/core')['useArrayDifference']>
readonly useArrayEvery: UnwrapRef<typeof import('@vueuse/core')['useArrayEvery']>
readonly useArrayFilter: UnwrapRef<typeof import('@vueuse/core')['useArrayFilter']>
readonly useArrayFind: UnwrapRef<typeof import('@vueuse/core')['useArrayFind']>
readonly useArrayFindIndex: UnwrapRef<typeof import('@vueuse/core')['useArrayFindIndex']>
readonly useArrayFindLast: UnwrapRef<typeof import('@vueuse/core')['useArrayFindLast']>
readonly useArrayIncludes: UnwrapRef<typeof import('@vueuse/core')['useArrayIncludes']>
readonly useArrayJoin: UnwrapRef<typeof import('@vueuse/core')['useArrayJoin']>
readonly useArrayMap: UnwrapRef<typeof import('@vueuse/core')['useArrayMap']>
readonly useArrayReduce: UnwrapRef<typeof import('@vueuse/core')['useArrayReduce']>
readonly useArraySome: UnwrapRef<typeof import('@vueuse/core')['useArraySome']>
readonly useArrayUnique: UnwrapRef<typeof import('@vueuse/core')['useArrayUnique']>
readonly useAsyncQueue: UnwrapRef<typeof import('@vueuse/core')['useAsyncQueue']>
readonly useAsyncState: UnwrapRef<typeof import('@vueuse/core')['useAsyncState']>
readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>
readonly useBase64: UnwrapRef<typeof import('@vueuse/core')['useBase64']>
readonly useBattery: UnwrapRef<typeof import('@vueuse/core')['useBattery']>
readonly useBluetooth: UnwrapRef<typeof import('@vueuse/core')['useBluetooth']>
readonly useBreakpoints: UnwrapRef<typeof import('@vueuse/core')['useBreakpoints']>
readonly useBroadcastChannel: UnwrapRef<typeof import('@vueuse/core')['useBroadcastChannel']>
readonly useBrowserLocation: UnwrapRef<typeof import('@vueuse/core')['useBrowserLocation']>
readonly useCached: UnwrapRef<typeof import('@vueuse/core')['useCached']>
readonly useClipboard: UnwrapRef<typeof import('@vueuse/core')['useClipboard']>
readonly useClipboardItems: UnwrapRef<typeof import('@vueuse/core')['useClipboardItems']>
readonly useCloned: UnwrapRef<typeof import('@vueuse/core')['useCloned']>
readonly useColorMode: UnwrapRef<typeof import('@vueuse/core')['useColorMode']>
readonly useConfirmDialog: UnwrapRef<typeof import('@vueuse/core')['useConfirmDialog']>
readonly useCounter: UnwrapRef<typeof import('@vueuse/core')['useCounter']>
readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>
readonly useCssVar: UnwrapRef<typeof import('@vueuse/core')['useCssVar']>
readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>
readonly useCurrentElement: UnwrapRef<typeof import('@vueuse/core')['useCurrentElement']>
readonly useCycleList: UnwrapRef<typeof import('@vueuse/core')['useCycleList']>
readonly useDark: UnwrapRef<typeof import('@vueuse/core')['useDark']>
readonly useDateFormat: UnwrapRef<typeof import('@vueuse/core')['useDateFormat']>
readonly useDebounce: UnwrapRef<typeof import('@vueuse/core')['useDebounce']>
readonly useDebounceFn: UnwrapRef<typeof import('@vueuse/core')['useDebounceFn']>
readonly useDebouncedRefHistory: UnwrapRef<typeof import('@vueuse/core')['useDebouncedRefHistory']>
readonly useDeviceMotion: UnwrapRef<typeof import('@vueuse/core')['useDeviceMotion']>
readonly useDeviceOrientation: UnwrapRef<typeof import('@vueuse/core')['useDeviceOrientation']>
readonly useDevicePixelRatio: UnwrapRef<typeof import('@vueuse/core')['useDevicePixelRatio']>
readonly useDevicesList: UnwrapRef<typeof import('@vueuse/core')['useDevicesList']>
readonly useDialog: UnwrapRef<typeof import('naive-ui')['useDialog']>
readonly useDisplayMedia: UnwrapRef<typeof import('@vueuse/core')['useDisplayMedia']>
readonly useDocumentVisibility: UnwrapRef<typeof import('@vueuse/core')['useDocumentVisibility']>
readonly useDraggable: UnwrapRef<typeof import('@vueuse/core')['useDraggable']>
readonly useDropZone: UnwrapRef<typeof import('@vueuse/core')['useDropZone']>
readonly useElementBounding: UnwrapRef<typeof import('@vueuse/core')['useElementBounding']>
readonly useElementByPoint: UnwrapRef<typeof import('@vueuse/core')['useElementByPoint']>
readonly useElementHover: UnwrapRef<typeof import('@vueuse/core')['useElementHover']>
readonly useElementSize: UnwrapRef<typeof import('@vueuse/core')['useElementSize']>
readonly useElementVisibility: UnwrapRef<typeof import('@vueuse/core')['useElementVisibility']>
readonly useEventBus: UnwrapRef<typeof import('@vueuse/core')['useEventBus']>
readonly useEventListener: UnwrapRef<typeof import('@vueuse/core')['useEventListener']>
readonly useEventSource: UnwrapRef<typeof import('@vueuse/core')['useEventSource']>
readonly useEyeDropper: UnwrapRef<typeof import('@vueuse/core')['useEyeDropper']>
readonly useFavicon: UnwrapRef<typeof import('@vueuse/core')['useFavicon']>
readonly useFetch: UnwrapRef<typeof import('@vueuse/core')['useFetch']>
readonly useFileDialog: UnwrapRef<typeof import('@vueuse/core')['useFileDialog']>
readonly useFileSystemAccess: UnwrapRef<typeof import('@vueuse/core')['useFileSystemAccess']>
readonly useFocus: UnwrapRef<typeof import('@vueuse/core')['useFocus']>
readonly useFocusWithin: UnwrapRef<typeof import('@vueuse/core')['useFocusWithin']>
readonly useFps: UnwrapRef<typeof import('@vueuse/core')['useFps']>
readonly useFullscreen: UnwrapRef<typeof import('@vueuse/core')['useFullscreen']>
readonly useGamepad: UnwrapRef<typeof import('@vueuse/core')['useGamepad']>
readonly useGeolocation: UnwrapRef<typeof import('@vueuse/core')['useGeolocation']>
readonly useI18n: UnwrapRef<typeof import('vue-i18n')['useI18n']>
readonly useId: UnwrapRef<typeof import('vue')['useId']>
readonly useIdle: UnwrapRef<typeof import('@vueuse/core')['useIdle']>
readonly useImage: UnwrapRef<typeof import('@vueuse/core')['useImage']>
readonly useInfiniteScroll: UnwrapRef<typeof import('@vueuse/core')['useInfiniteScroll']>
readonly useIntersectionObserver: UnwrapRef<typeof import('@vueuse/core')['useIntersectionObserver']>
readonly useInterval: UnwrapRef<typeof import('@vueuse/core')['useInterval']>
readonly useIntervalFn: UnwrapRef<typeof import('@vueuse/core')['useIntervalFn']>
readonly useKeyModifier: UnwrapRef<typeof import('@vueuse/core')['useKeyModifier']>
readonly useLastChanged: UnwrapRef<typeof import('@vueuse/core')['useLastChanged']>
readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']>
readonly useLoadingBar: UnwrapRef<typeof import('naive-ui')['useLoadingBar']>
readonly useLocalStorage: UnwrapRef<typeof import('@vueuse/core')['useLocalStorage']>
readonly useMagicKeys: UnwrapRef<typeof import('@vueuse/core')['useMagicKeys']>
readonly useManualRefHistory: UnwrapRef<typeof import('@vueuse/core')['useManualRefHistory']>
readonly useMediaControls: UnwrapRef<typeof import('@vueuse/core')['useMediaControls']>
readonly useMediaQuery: UnwrapRef<typeof import('@vueuse/core')['useMediaQuery']>
readonly useMemoize: UnwrapRef<typeof import('@vueuse/core')['useMemoize']>
readonly useMemory: UnwrapRef<typeof import('@vueuse/core')['useMemory']>
readonly useMessage: UnwrapRef<typeof import('naive-ui')['useMessage']>
readonly useModel: UnwrapRef<typeof import('vue')['useModel']>
readonly useMounted: UnwrapRef<typeof import('@vueuse/core')['useMounted']>
readonly useMouse: UnwrapRef<typeof import('@vueuse/core')['useMouse']>
readonly useMouseInElement: UnwrapRef<typeof import('@vueuse/core')['useMouseInElement']>
readonly useMousePressed: UnwrapRef<typeof import('@vueuse/core')['useMousePressed']>
readonly useMutationObserver: UnwrapRef<typeof import('@vueuse/core')['useMutationObserver']>
readonly useNavigatorLanguage: UnwrapRef<typeof import('@vueuse/core')['useNavigatorLanguage']>
readonly useNetwork: UnwrapRef<typeof import('@vueuse/core')['useNetwork']>
readonly useNotification: UnwrapRef<typeof import('naive-ui')['useNotification']>
readonly useNow: UnwrapRef<typeof import('@vueuse/core')['useNow']>
readonly useObjectUrl: UnwrapRef<typeof import('@vueuse/core')['useObjectUrl']>
readonly useOffsetPagination: UnwrapRef<typeof import('@vueuse/core')['useOffsetPagination']>
readonly useOnline: UnwrapRef<typeof import('@vueuse/core')['useOnline']>
readonly usePageLeave: UnwrapRef<typeof import('@vueuse/core')['usePageLeave']>
readonly useParallax: UnwrapRef<typeof import('@vueuse/core')['useParallax']>
readonly useParentElement: UnwrapRef<typeof import('@vueuse/core')['useParentElement']>
readonly usePerformanceObserver: UnwrapRef<typeof import('@vueuse/core')['usePerformanceObserver']>
readonly usePermission: UnwrapRef<typeof import('@vueuse/core')['usePermission']>
readonly usePointer: UnwrapRef<typeof import('@vueuse/core')['usePointer']>
readonly usePointerLock: UnwrapRef<typeof import('@vueuse/core')['usePointerLock']>
readonly usePointerSwipe: UnwrapRef<typeof import('@vueuse/core')['usePointerSwipe']>
readonly usePreferredColorScheme: UnwrapRef<typeof import('@vueuse/core')['usePreferredColorScheme']>
readonly usePreferredContrast: UnwrapRef<typeof import('@vueuse/core')['usePreferredContrast']>
readonly usePreferredDark: UnwrapRef<typeof import('@vueuse/core')['usePreferredDark']>
readonly usePreferredLanguages: UnwrapRef<typeof import('@vueuse/core')['usePreferredLanguages']>
readonly usePreferredReducedMotion: UnwrapRef<typeof import('@vueuse/core')['usePreferredReducedMotion']>
readonly usePrevious: UnwrapRef<typeof import('@vueuse/core')['usePrevious']>
readonly useRafFn: UnwrapRef<typeof import('@vueuse/core')['useRafFn']>
readonly useRefHistory: UnwrapRef<typeof import('@vueuse/core')['useRefHistory']>
readonly useResizeObserver: UnwrapRef<typeof import('@vueuse/core')['useResizeObserver']>
readonly useRoute: UnwrapRef<typeof import('vue-router')['useRoute']>
readonly useRouter: UnwrapRef<typeof import('vue-router')['useRouter']>
readonly useScreenOrientation: UnwrapRef<typeof import('@vueuse/core')['useScreenOrientation']>
readonly useScreenSafeArea: UnwrapRef<typeof import('@vueuse/core')['useScreenSafeArea']>
readonly useScriptTag: UnwrapRef<typeof import('@vueuse/core')['useScriptTag']>
readonly useScroll: UnwrapRef<typeof import('@vueuse/core')['useScroll']>
readonly useScrollLock: UnwrapRef<typeof import('@vueuse/core')['useScrollLock']>
readonly useSessionStorage: UnwrapRef<typeof import('@vueuse/core')['useSessionStorage']>
readonly useShare: UnwrapRef<typeof import('@vueuse/core')['useShare']>
readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>
readonly useSorted: UnwrapRef<typeof import('@vueuse/core')['useSorted']>
readonly useSpeechRecognition: UnwrapRef<typeof import('@vueuse/core')['useSpeechRecognition']>
readonly useSpeechSynthesis: UnwrapRef<typeof import('@vueuse/core')['useSpeechSynthesis']>
readonly useStepper: UnwrapRef<typeof import('@vueuse/core')['useStepper']>
readonly useStorage: UnwrapRef<typeof import('@vueuse/core')['useStorage']>
readonly useStorageAsync: UnwrapRef<typeof import('@vueuse/core')['useStorageAsync']>
readonly useStyleTag: UnwrapRef<typeof import('@vueuse/core')['useStyleTag']>
readonly useSupported: UnwrapRef<typeof import('@vueuse/core')['useSupported']>
readonly useSwipe: UnwrapRef<typeof import('@vueuse/core')['useSwipe']>
readonly useTemplateRef: UnwrapRef<typeof import('vue')['useTemplateRef']>
readonly useTemplateRefsList: UnwrapRef<typeof import('@vueuse/core')['useTemplateRefsList']>
readonly useTextDirection: UnwrapRef<typeof import('@vueuse/core')['useTextDirection']>
readonly useTextSelection: UnwrapRef<typeof import('@vueuse/core')['useTextSelection']>
readonly useTextareaAutosize: UnwrapRef<typeof import('@vueuse/core')['useTextareaAutosize']>
readonly useThrottle: UnwrapRef<typeof import('@vueuse/core')['useThrottle']>
readonly useThrottleFn: UnwrapRef<typeof import('@vueuse/core')['useThrottleFn']>
readonly useThrottledRefHistory: UnwrapRef<typeof import('@vueuse/core')['useThrottledRefHistory']>
readonly useTimeAgo: UnwrapRef<typeof import('@vueuse/core')['useTimeAgo']>
readonly useTimeout: UnwrapRef<typeof import('@vueuse/core')['useTimeout']>
readonly useTimeoutFn: UnwrapRef<typeof import('@vueuse/core')['useTimeoutFn']>
readonly useTimeoutPoll: UnwrapRef<typeof import('@vueuse/core')['useTimeoutPoll']>
readonly useTimestamp: UnwrapRef<typeof import('@vueuse/core')['useTimestamp']>
readonly useTitle: UnwrapRef<typeof import('@vueuse/core')['useTitle']>
readonly useToNumber: UnwrapRef<typeof import('@vueuse/core')['useToNumber']>
readonly useToString: UnwrapRef<typeof import('@vueuse/core')['useToString']>
readonly useToggle: UnwrapRef<typeof import('@vueuse/core')['useToggle']>
readonly useTransition: UnwrapRef<typeof import('@vueuse/core')['useTransition']>
readonly useUrlSearchParams: UnwrapRef<typeof import('@vueuse/core')['useUrlSearchParams']>
readonly useUserMedia: UnwrapRef<typeof import('@vueuse/core')['useUserMedia']>
readonly useVModel: UnwrapRef<typeof import('@vueuse/core')['useVModel']>
readonly useVModels: UnwrapRef<typeof import('@vueuse/core')['useVModels']>
readonly useVibrate: UnwrapRef<typeof import('@vueuse/core')['useVibrate']>
readonly useVirtualList: UnwrapRef<typeof import('@vueuse/core')['useVirtualList']>
readonly useWakeLock: UnwrapRef<typeof import('@vueuse/core')['useWakeLock']>
readonly useWebNotification: UnwrapRef<typeof import('@vueuse/core')['useWebNotification']>
readonly useWebSocket: UnwrapRef<typeof import('@vueuse/core')['useWebSocket']>
readonly useWebWorker: UnwrapRef<typeof import('@vueuse/core')['useWebWorker']>
readonly useWebWorkerFn: UnwrapRef<typeof import('@vueuse/core')['useWebWorkerFn']>
readonly useWindowFocus: UnwrapRef<typeof import('@vueuse/core')['useWindowFocus']>
readonly useWindowScroll: UnwrapRef<typeof import('@vueuse/core')['useWindowScroll']>
readonly useWindowSize: UnwrapRef<typeof import('@vueuse/core')['useWindowSize']>
readonly watch: UnwrapRef<typeof import('vue')['watch']>
readonly watchArray: UnwrapRef<typeof import('@vueuse/core')['watchArray']>
readonly watchAtMost: UnwrapRef<typeof import('@vueuse/core')['watchAtMost']>
readonly watchDebounced: UnwrapRef<typeof import('@vueuse/core')['watchDebounced']>
readonly watchDeep: UnwrapRef<typeof import('@vueuse/core')['watchDeep']>
readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>
readonly watchIgnorable: UnwrapRef<typeof import('@vueuse/core')['watchIgnorable']>
readonly watchImmediate: UnwrapRef<typeof import('@vueuse/core')['watchImmediate']>
readonly watchOnce: UnwrapRef<typeof import('@vueuse/core')['watchOnce']>
readonly watchPausable: UnwrapRef<typeof import('@vueuse/core')['watchPausable']>
readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>
readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
readonly watchThrottled: UnwrapRef<typeof import('@vueuse/core')['watchThrottled']>
readonly watchTriggerable: UnwrapRef<typeof import('@vueuse/core')['watchTriggerable']>
readonly watchWithFilter: UnwrapRef<typeof import('@vueuse/core')['watchWithFilter']>
readonly whenever: UnwrapRef<typeof import('@vueuse/core')['whenever']>
}
}
+5
View File
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
-8
View File
@@ -1,8 +0,0 @@
services:
it-tools:
container_name: it-tools
image: sharevb/it-tools:latest
pull_policy: always
restart: unless-stopped
ports:
- 8080:8080 # Since Docker base image is now nginx-unpriviledged, docker image now listen to 8080 and no more 80.
@@ -1,54 +0,0 @@
# vim:sw=4:ts=4:et
#
# BASE_URL is the path the app is served under: `/` (the default) for a deployment at the
# root of a domain, `/it-tools/` for one behind a reverse proxy that mounts it on a
# subpath. It is a runtime setting, not a build one -- the image ships assets that work at
# any path, and nginx.conf rewrites the `<base href>` in index.html per request.
#
# Normalise it here, once, before 20-envsubst-on-templates.sh renders the config:
#
# - accept `it-tools`, `/it-tools` and `/it-tools/` alike, always emit `/it-tools/`.
# A missing trailing slash would otherwise silently move the app one directory up,
# because that is how the browser resolves relative URLs against `<base href>`.
# - reject anything that is not a plain path. The value is interpolated into an HTML
# attribute and into an nginx regex, so a stray quote or `..` is worth catching here
# rather than letting it land in the served page.
#
# Sourced, not executed, so the export reaches the envsubst step.
_base_url=$(printf '%s' "${BASE_URL:-/}" | sed -e 's#^/*#/#' -e 's#/*$#/#')
case "$_base_url" in
# `/` itself, or `/segment/segment/` made of unreserved URL characters.
/) ;;
*/../* | *//*)
_base_url_invalid=1
;;
*[!A-Za-z0-9._~/-]*)
_base_url_invalid=1
;;
esac
if [ -n "${_base_url_invalid:-}" ]; then
echo "18-resolve-base-url.envsh: error: BASE_URL='$BASE_URL' is not a plain path, falling back to /" >&2
_base_url=/
fi
if [ "$_base_url" != "/" ] && [ -z "${NGINX_ENTRYPOINT_QUIET_LOGS:-}" ]; then
echo "18-resolve-base-url.envsh: info: serving the app under $_base_url"
fi
BASE_URL="$_base_url"
# Regex-safe forms of the same value, for the rewrites in nginx.conf. `.` is a legal
# character in a path and the validation above lets it through, but it is also the one
# regex metacharacter that survives that filter: unescaped, a BASE_URL of `/it.tools/`
# would strip the prefix from `/itXtools/...` too.
BASE_URL_REGEX=$(printf '%s' "$_base_url" | sed 's/\./\\./g')
# `/it-tools/` -> `/it-tools`, so nginx.conf can redirect the slash-less spelling to the
# real one. Empty for a deployment at the root, where there is nothing to redirect.
BASE_URL_NO_SLASH_REGEX="${BASE_URL_REGEX%/}"
export BASE_URL BASE_URL_REGEX BASE_URL_NO_SLASH_REGEX
unset _base_url _base_url_invalid
@@ -1,36 +0,0 @@
# vim:sw=4:ts=4:et
#
# 20-envsubst-on-templates.sh guards its output directory with `[ ! -w $dir ]`,
# which only inspects permission bits. It therefore does not notice a read-only
# *mount*: with `docker run --read-only` or a Kubernetes readOnlyRootFilesystem,
# /etc/nginx/conf.d still looks writable, envsubst runs anyway, the redirect
# fails with EROFS and `set -e` takes the container down. The image
# crash-loops on every start.
#
# Probe the directory with a real write. If it fails, point the template
# directory at a path that does not exist so 20-envsubst-on-templates.sh
# returns early, and let nginx use the config rendered into the image at build
# time instead. Sourced, not executed, so the export reaches later scripts.
#
# On a writable filesystem -- every deployment that works today -- the probe
# succeeds and nothing is changed.
_envsubst_output_dir="${NGINX_ENVSUBST_OUTPUT_DIR:-/etc/nginx/conf.d}"
_envsubst_probe="$_envsubst_output_dir/.readonly-probe.$$"
if [ -d "${NGINX_ENVSUBST_TEMPLATE_DIR:-/etc/nginx/templates}" ] \
&& ! (touch "$_envsubst_probe" 2>/dev/null && rm -f "$_envsubst_probe" 2>/dev/null); then
if [ -z "${NGINX_ENTRYPOINT_QUIET_LOGS:-}" ]; then
echo "19-skip-envsubst-if-readonly.envsh: info: $_envsubst_output_dir is not writable, keeping the config baked into the image"
fi
# The baked config carries the image defaults, so anything that is only applied by
# rendering the template is quietly lost. $PORT has always had this caveat; say so for
# BASE_URL too, where the symptom (an app that loads from the wrong path) is a lot less
# obvious than a port that did not move.
if [ "${BASE_URL:-/}" != "/" ]; then
echo "19-skip-envsubst-if-readonly.envsh: warning: BASE_URL=$BASE_URL cannot be applied on a read-only filesystem; mount a writable $_envsubst_output_dir (a tmpfs or an emptyDir will do)" >&2
fi
export NGINX_ENVSUBST_TEMPLATE_DIR=/nonexistent-read-only-filesystem
fi
unset _envsubst_output_dir _envsubst_probe
@@ -1,55 +0,0 @@
#!/bin/sh
# vim:sw=4:ts=4:et
#
# nginx.conf listens on both IPv4 and IPv6. On a host or container runtime with
# IPv6 disabled, nginx refuses to start:
#
# socket() [::]:8080 failed (97: Address family not supported by protocol)
#
# Drop the IPv6 listen directives in that case. This runs after
# 20-envsubst-on-templates.sh so it edits the rendered config, and it is a
# no-op wherever IPv6 is available, which is the case the image already
# handles today.
set -e
ME=$(basename "$0")
entrypoint_log() {
if [ -z "${NGINX_ENTRYPOINT_QUIET_LOGS:-}" ]; then
echo "$@"
fi
}
# Same check the stock 10-listen-on-ipv6-by-default.sh uses.
if [ -f "/proc/net/if_inet6" ]; then
exit 0
fi
output_dir="${NGINX_ENVSUBST_OUTPUT_DIR:-/etc/nginx/conf.d}"
[ -d "$output_dir" ] || exit 0
# `sed -i` rewrites through a temporary file in the directory, so the directory
# has to be writable, not only the file. Probe it with a real write, the same
# way 19-skip-envsubst-if-readonly.envsh does.
probe="$output_dir/.ipv6-probe.$$"
if ! (touch "$probe" 2>/dev/null && rm -f "$probe" 2>/dev/null); then
entrypoint_log "$ME: info: ipv6 not available, but $output_dir is not writable (read-only file system?), leaving the config alone"
exit 0
fi
for conf in "$output_dir"/*.conf; do
[ -f "$conf" ] || continue
grep -q -E '^[[:space:]]*listen[[:space:]]+\[::\]' "$conf" || continue
# An individual file can still be mounted read-only inside a writable
# directory, so a failed edit must not take the entrypoint down with it.
if sed -i -E 's/^([[:space:]]*)(listen[[:space:]]+\[::\].*)$/\1# \2 # disabled by '"$ME"': no IPv6 on this host/' "$conf" 2>/dev/null; then
entrypoint_log "$ME: info: ipv6 not available, disabled IPv6 listen in $conf"
else
entrypoint_log "$ME: info: ipv6 not available, but can not modify $conf, leaving it alone"
fi
done
exit 0
@@ -1,19 +0,0 @@
services:
it-tools:
container_name: it-tools-subfolder
image: ghcr.io/sharevb/it-tools:latest
pull_policy: always
restart: unless-stopped
environment:
# The path the app is served under. This is all a subfolder deployment needs -- the
# regular image works at any path, there is no subfolder-specific tag to pull and
# nothing to rebuild.
BASE_URL: /it-tools/
nginx-reverse-proxy:
image: nginx:alpine
depends_on:
- it-tools
volumes:
- "./nginx.conf:/etc/nginx/conf.d/default.conf"
ports:
- 80:80
-14
View File
@@ -1,14 +0,0 @@
server {
listen 80;
server_name _;
# The trailing slash on proxy_pass strips /it-tools/ before the request reaches the
# container. It works the other way round too -- `proxy_pass http://it-tools-subfolder:8080;`
# forwards the prefix as-is -- because the app's own nginx.conf handles both.
location /it-tools/ {
proxy_pass http://it-tools-subfolder:8080/;
}
location /it-tools {
return 301 /it-tools/;
}
}
@@ -1,11 +0,0 @@
services:
it-tools:
image: sharevb/it-tools:latest
pull_policy: always
restart: unless-stopped
volumes:
- ./tools-filter.json:/usr/share/nginx/html/tools-filter.json
- ./external-tools.json:/usr/share/nginx/html/external-tools.json
- ./home.custom.md:/usr/share/nginx/html/home.custom.md
ports:
- 8080:8080
@@ -1,18 +0,0 @@
[
{
"name": "GitHub",
"path": "/github",
"description": "Link to Github",
"keywords": ["github"],
"category": "Links",
"href": "https://github.com"
},
{
"name": "Some text",
"path": "/some-text",
"description": "Some description",
"keywords": ["some"],
"category": "Links",
"markdownContent": "Some useful **text**\n\nin *markdown*\n\nAnd link to [GitHub](https://github.com)"
}
]
@@ -1,9 +0,0 @@
### Some titles
Text
```
code
```
And [link](https://sharevb-it-tools.vercel.app/)
@@ -1,6 +0,0 @@
{
"excludeCategoryFilterRegex": "^(Gaming|Maths|Physics)$",
"includeCategoryFilterRegex": "",
"excludeToolsFilterRegex": "ai-prompt-splitter",
"includeToolsFilterRegex": "illuminance-converter"
}
-52
View File
@@ -1,52 +0,0 @@
services:
it-tools:
image: sharevb/it-tools:latest
pull_policy: always
restart: unless-stopped
environment:
- BASIC_AUTH=${BASIC_AUTH}
volumes:
- ./tools-settings.json:/usr/share/nginx/html/tools-settings.json
ports:
- 8080:8080
docker-image-download-server:
image: sharevb/docker-image-download-server:latest
pull_policy: always
restart: unless-stopped
environment:
- BASIC_AUTH=${BASIC_AUTH}
ports:
- 8001:3000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ws-tcp-udp-bridge:
image: sharevb/ws-tcp-udp-bridge:latest
pull_policy: always
restart: unless-stopped
ports:
- 8002:8080
network-utils-ws:
image: sharevb/network-utils-ws:latest
pull_policy: always
restart: unless-stopped
environment:
- BASIC_AUTH=${BASIC_AUTH}
ports:
- 8003:8000
puppeteer-htmltopdf:
image: sharevb/puppeteer-htmltopdf:latest
pull_policy: always
restart: unless-stopped
environment:
- BASIC_AUTH=${BASIC_AUTH}
ports:
- 8004:3000
cors-anywhere:
image: sharevb/cors-anywhere:latest
pull_policy: always
restart: unless-stopped
environment:
- CORSANYWHERE_BASIC_AUTH=${BASIC_AUTH}
- CORSANYWHERE_ALLOWED_HTTP_METHODS=HEAD,GET,POST
ports:
- 8005:8080
-37
View File
@@ -1,37 +0,0 @@
{
"dns-prop": {
"url": "http://localhost:8003",
"auth": "alice:b@b"
},
"dns-tester": {
"url": "http://localhost:8003",
"auth": "alice:b@b"
},
"docker-dl": {
"url": "http://localhost:8001",
"auth": "alice:b@b"
},
"html-to-pdf": {
"url": "http://localhost:8004",
"auth": "alice:b@b"
},
"https-tester": {
"url": "http://localhost:8003",
"auth": "alice:b@b"
},
"multi-links-dl": {
"url": "http://localhost:8005",
"auth": "alice:b@b"
},
"ping": {
"url": "http://localhost:8003",
"auth": "alice:b@b"
},
"short-urls-expander": {
"cors-anywhere-url": "http://localhost:8005",
"auth": "alice:b@b"
},
"tcp-udp-port-tester": {
"ws": "ws://localhost:8002"
}
}
Vendored
-14
View File
@@ -1,14 +0,0 @@
/// <reference types="vite/client" />
/// <reference types="vite-svg-loader" />
interface ImportMetaEnv {
VITE_PLAUSIBLE_API_HOST: string;
VITE_PLAUSIBLE_DOMAIN: string;
PACKAGE_VERSION: string;
GIT_SHORT_SHA: string;
PROD: boolean;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}
Generated
-27
View File
@@ -1,27 +0,0 @@
{
"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
}
-40
View File
@@ -1,40 +0,0 @@
{
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"
'';
};
});
};
}
-56
View File
@@ -1,56 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="theme-color" content="#f1f5f9" />
<style>
html { color-scheme: light; }
html.dark { color-scheme: dark; }
html, body { background-color: #f1f5f9; }
html.dark, html.dark body { background-color: #1c1c1c; }
</style>
<script>
(function () {
try {
var mode = localStorage.getItem('vueuse-color-scheme') || 'auto';
if (mode === 'dark' || (mode === 'auto' && matchMedia('(prefers-color-scheme: dark)').matches)) {
document.documentElement.classList.add('dark');
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#1c1c1c');
}
}
catch (e) {}
})();
</script>
<link rel="icon" href="favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>IT Tools - Handy online tools for developers</title>
<link rel="author" href="humans.txt" />
<link rel="canonical" href="https://sharevb-it-tools.vercel.app" />
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png" />
<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 property="og:url" content="https://sharevb-it-tools.vercel.app/" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://sharevb-it-tools.vercel.app/banner.png?v=2" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@ittoolsdottech" />
<meta name="twitter:creator" content="@cthmsst" />
<meta name="twitter:image" content="https://sharevb-it-tools.vercel.app/banner.png?v=2" />
<meta name="twitter:image:alt" content="IT Tools - Handy online tools for developers" />
</head>
<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>
-10001
View File
File diff suppressed because it is too large. Load diff
-10128
View File
File diff suppressed because it is too large. Load diff
-10381
View File
File diff suppressed because it is too large. Load diff
-10423
View File
File diff suppressed because it is too large. Load diff
-10076
View File
File diff suppressed because it is too large. Load diff
-10322
View File
File diff suppressed because it is too large. Load diff
-10514
View File
File diff suppressed because it is too large. Load diff
-10254
View File
File diff suppressed because it is too large. Load diff
-10229
View File
File diff suppressed because it is too large. Load diff
-10041
View File
File diff suppressed because it is too large. Load diff
-9710
View File
File diff suppressed because it is too large. Load diff
-10227
View File
File diff suppressed because it is too large. Load diff
-10125
View File
File diff suppressed because it is too large. Load diff
-10185
View File
File diff suppressed because it is too large. Load diff
-10230
View File
File diff suppressed because it is too large. Load diff
-10223
View File
File diff suppressed because it is too large. Load diff
-10225
View File
File diff suppressed because it is too large. Load diff
-10167
View File
File diff suppressed because it is too large. Load diff
-10137
View File
File diff suppressed because it is too large. Load diff
-9697
View File
File diff suppressed because it is too large. Load diff
-9709
View File
File diff suppressed because it is too large. Load diff
-4
View File
@@ -1,4 +0,0 @@
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
-76
View File
@@ -1,76 +0,0 @@
server {
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 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 {
# mime.types already maps js, remapping it here only emits a
# "duplicate extension" warning on every startup.
application/javascript mjs;
}
# `/it-tools` is the same place as `/it-tools/`, but only the second one gives the
# browser the right directory to resolve the app's relative URLs against, so send the
# first one there. Renders to `^$` -- which no request URI can match -- when the app is
# served from the root. Relative Location headers, because $scheme is whatever the
# reverse proxy used to reach the container, not what the browser used.
absolute_redirect off;
rewrite ^${BASE_URL_NO_SLASH_REGEX}$ ${BASE_URL} permanent;
# Serving the app from a subpath (BASE_URL, normalised by
# docker-entrypoint.d/18-resolve-base-url.envsh, `/` by default).
#
# The build is path-agnostic: every asset is referenced relatively, and the one
# absolute anchor is a `<base href="/">` in index.html that the app itself reads its
# base from (src/utils/base-url.ts). Rewriting that single tag on the way out is
# therefore enough to move the whole app to another path -- no rebuild, no
# subpath-specific image.
#
# sub_filter drops Last-Modified/ETag from every response it touches, and text/html is
# always in scope (sub_filter_types can add types, not exclude HTML). So: index.html,
# which an SPA must not cache anyway and which the service worker precaches regardless,
# and the one other HTML document in the build -- the visual-subnet-calculator's iframe,
# public/visualsubnetcalc/calc.html -- which loses conditional revalidation and is
# refetched in full when that tool is opened.
sub_filter '<base href="/">' '<base href="${BASE_URL}">';
sub_filter_once on;
# Hashed build output, with or without the deployment prefix in front of it: a reverse
# proxy may pass `/it-tools/assets/...` through as-is or strip the prefix first, and
# both have to land on the same file. Without this, a missing chunk falls through to
# index.html below and is served as text/html with a 200, which the browser rejects
# with an opaque MIME error instead of a plain 404.
location ~ ^/(?:.*/)?assets/(?<asset>.+)$ {
# Serve gzip sidecars when supported, including requests from reverse proxies.
gzip_static on;
gzip_proxied any;
gzip_vary on;
try_files /assets/$asset =404;
}
location / {
# Same story for everything else the app fetches by path (the JSON config files,
# the WASM helpers in public/): drop the deployment prefix when the proxy forwarded
# it instead of stripping it. Renders to `^/(.*)$` -- a no-op -- for the default
# BASE_URL of `/`.
rewrite ^${BASE_URL_REGEX}(.*)$ /$1 break;
# No `$uri/`: nothing in the build is a directory with an index in it, so the only
# thing matching one ever produced was nginx's own "add the trailing slash"
# redirect -- computed from the URI *after* the rewrite above, so under a subpath
# `/it-tools/figlet-fonts` bounced the browser out of the app to `/figlet-fonts/`
# (and then to a 403). Unknown paths belong to the SPA, which has a 404 page.
try_files $uri /index.html;
}
}
-20
View File
@@ -1,20 +0,0 @@
import { defineConfig } from 'oxfmt';
export default defineConfig({
printWidth: 120,
tabWidth: 2,
useTabs: false,
semi: true,
singleQuote: true,
trailingComma: 'all',
arrowParens: 'always',
endOfLine: 'lf',
ignorePatterns: [
'src/libs/**',
'dist/**',
'coverage/**',
'auto-imports.d.ts',
'components.d.ts',
'pnpm-lock.yaml',
],
});
-87
View File
@@ -1,87 +0,0 @@
import { defineConfig } from 'oxlint';
export default defineConfig({
plugins: ['eslint', 'typescript', 'oxc', 'unicorn', 'import', 'promise', 'vue', 'vitest'],
categories: {
correctness: 'error',
},
// Type-aware rules run through oxlint-tsgolint, which ships its own checker
// binary, so this does not depend on the project's TypeScript version.
// Note it only analyses .ts files -- .vue script blocks are covered by
// `pnpm typecheck` (vue-tsc) instead.
options: {
typeAware: true,
},
env: {
browser: true,
es2026: true,
},
globals: {
process: 'readonly',
},
ignorePatterns: [
'src/libs/**',
'dist/**',
'coverage/**',
'auto-imports.d.ts',
'components.d.ts',
],
rules: {
'eslint/curly': ['error', 'all'],
'typescript/no-use-before-define': [
'error',
{ allowNamedExports: true, functions: false },
],
'eslint/no-restricted-imports': [
'error',
{
paths: [
{
name: '@vueuse/core',
importNames: ['useClipboard'],
message: 'Please use local useCopy from src/composable/copy.ts instead of useClipboard.',
},
],
},
],
'no-undef': 'off',
'eslint/no-unused-vars': [
'error',
{ caughtErrors: 'none', varsIgnorePattern: '^_', argsIgnorePattern: '^_' },
],
'eslint/no-useless-escape': 'off',
// Staged as warnings while the existing findings are worked through, so
// they surface without failing the build. Promote to "error" per rule as
// each one reaches zero.
'typescript/await-thenable': 'warn',
'typescript/no-base-to-string': 'warn',
'typescript/no-duplicate-type-constituents': 'warn',
'typescript/no-floating-promises': 'warn',
'typescript/no-for-in-array': 'warn',
'typescript/no-misused-spread': 'warn',
'typescript/no-redundant-type-constituents': 'warn',
'typescript/no-useless-default-assignment': 'warn',
'typescript/restrict-template-expressions': 'warn',
'typescript/unbound-method': 'warn',
'import/default': 'off',
'vue/no-dupe-keys': 'off',
'vitest/valid-expect': 'off',
'vitest/expect-expect': 'off',
'vitest/require-to-throw-message': 'off',
},
overrides: [
{
files: ['**/*.test.ts', '**/*.spec.ts', '**/*.e2e.spec.ts'],
env: { vitest: true },
},
{
files: ['**/calendar-converter/calendar-converter.service.ts'],
rules: {
'eslint/no-unused-vars': 'off',
'oxc/erasing-op': 'off',
},
},
],
});
+13188
View File
File diff suppressed because it is too large. Load diff
+47 -496
View File
@@ -1,507 +1,58 @@
{
"name": "it-tools",
"version": "2026.10.25",
"description": "Collection of handy online tools for developers, with great UX. ",
"keywords": [
"converter",
"developer-productivity",
"developer-tools",
"frontend",
"productivity",
"tool",
"tools",
"vuejs",
"website"
],
"license": "GNU GPLv3",
"author": "Corentin Th <corentin.thomasset74+it-tools@gmail.com> (https://corentin.tech)",
"repository": {
"type": "git",
"url": "https://github.com/sharevb/it-tools"
},
"type": "module",
"description": "",
"version": "1.5.0",
"private": true,
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview --port 5050",
"test:unit": "vitest",
"test:e2e": "playwright test",
"coverage": "vitest run --coverage",
"typecheck": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
"lint": "oxlint src",
"lint:fix": "oxlint src --fix",
"fmt": "oxfmt src",
"fmt:check": "oxfmt --check src",
"script:create:tool": "node scripts/create-tool.mjs",
"script:create:ui": "hygen generator ui-component",
"release": "node ./scripts/release.mjs",
"script:extract:desc": "node ./scripts/extract-tools-desc.mjs",
"script:extract:strings": "node ./scripts/extract-tools-strings.mjs",
"script:update:git-templates": "node ./scripts/update-git-templates.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'",
"precommit": "pnpm install --ignore-scripts && pnpm lint:fix && pnpm typecheck"
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@boxyhq/saml20": "^1.16.0",
"@chenfengyuan/vue-barcode": "^2.0.2",
"@codemirror/lang-cpp": "^6.0.3",
"@codemirror/lang-css": "^6.3.1",
"@codemirror/lang-go": "^6.0.1",
"@codemirror/lang-html": "^6.4.11",
"@codemirror/lang-javascript": "^6.2.5",
"@codemirror/lang-json": "^6.0.2",
"@codemirror/lang-markdown": "^6.5.0",
"@codemirror/lang-php": "^6.0.2",
"@codemirror/lang-python": "^6.2.1",
"@codemirror/lang-sql": "^6.10.0",
"@codemirror/lang-xml": "^6.1.0",
"@codemirror/lang-yaml": "^6.1.3",
"@codemirror/language": "^6.12.4",
"@codemirror/state": "^6.7.0",
"@codemirror/theme-one-dark": "^6.1.3",
"@codemirror/view": "^6.43.5",
"@colordx/core": "^5.5.0",
"@date-fns/utc": "^2.1.1",
"@dice-roller/rpg-dice-roller": "^5.5.1",
"@faker-js/faker": "^10.5.0",
"@ffmpeg/core": "0.12.10",
"@ffmpeg/ffmpeg": "^0.12.15",
"@finegym/fitness-calc": "^1.0.1",
"@fontsource/open-sans": "^5.3.0",
"@fontsource/varela-round": "^5.3.0",
"@fortawesome/fontawesome-svg-core": "^7.3.0",
"@fortawesome/free-solid-svg-icons": "^7.3.0",
"@fortawesome/vue-fontawesome": "^3.3.1",
"@github/paste-markdown": "^1.5.3",
"@guolao/vue-monaco-editor": "^1.6.0",
"@guyplusplus/turndown-plugin-gfm": "^1.0.7",
"@huggingface/transformers": "3.7.6",
"@iplookup/country-extra": "^1.0.20260711",
"@it-tools/bip39": "^0.0.4",
"@it-tools/oggen": "^1.3.0",
"@jsonquerylang/jsonquery": "^5.1.1",
"@kenjiuno/decompressrtf": "^0.1.4",
"@kenjiuno/msgreader": "^1.28.0",
"@langfreak/convert-layout": "^0.11.2",
"@lezer/highlight": "^1.2.3",
"@mdit/plugin-align": "^0.16.0",
"@noble/ciphers": "^1.3.0",
"@plausible-analytics/tracker": "^0.4.6",
"@regexper/render": "^1.0.0",
"@resvg/resvg-wasm": "^2.6.2",
"@sindresorhus/slugify": "^3.0.0",
"@skeepit/unicode-to-gsm7": "^1.0.0",
"@tabler/icons-vue": "^3.44.0",
"@tesseract.js-data/chi_sim": "^1.0.0",
"@tesseract.js-data/eng": "^1.0.0",
"@tiptap/core": "^3.31.3",
"@tiptap/extension-color": "^3.31.3",
"@tiptap/extension-gapcursor": "^3.31.3",
"@tiptap/extension-highlight": "^3.31.3",
"@tiptap/extension-table": "^3.31.3",
"@tiptap/extension-text-align": "^3.31.3",
"@tiptap/extension-text-style": "^3.31.3",
"@tiptap/extensions": "^3.31.3",
"@tiptap/pm": "^3.31.3",
"@tiptap/starter-kit": "^3.31.3",
"@tiptap/vue-3": "^3.31.3",
"@toon-format/toon": "^4.1.1",
"@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.17",
"@vicons/material": "^0.12.0",
"@vicons/tabler": "^0.12.0",
"@vueuse/core": "^10.11.1",
"@vueuse/head": "^1.3.1",
"@vueuse/integrations": "^14.3.0",
"@vueuse/router": "^10.11.1",
"@xmldom/xmldom": "^0.8.15",
"@xterm/xterm": "^5.5.0",
"@younestouati/playing-cards-standard-deck": "^6.0.1",
"@zxcvbn-ts/core": "^3.0.4",
"@zxcvbn-ts/language-common": "^3.0.4",
"@zxcvbn-ts/language-en": "^3.0.2",
"@zxing/library": "^0.23.0",
"a11y-color-contrast": "^0.2.0",
"abort-signal-polyfill": "^1.0.0",
"aircodes": "^1.3.16",
"ajv": "^8.20.0",
"ajv-errors": "^3.0.0",
"ansi-styles": "^6.2.3",
"ansible-vault": "^1.3.0",
"apache-md5": "^1.1.8",
"arr-diff": "^4.0.0",
"bcryptjs": "^3.0.3",
"bech32": "^2.0.0",
"big.js": "^7.0.1",
"braces": "^3.0.3",
"bwip-js": "^4.11.2",
"byte-data": "^19.0.1",
"change-case": "^5.4.4",
"chardet": "^2.2.0",
"chart.js": "^4.5.1",
"chartjs-plugin-zoom": "^2.2.0",
"chatgpt-prompt-splitter": "^1.0.5",
"chinesegen": "^0.3.3",
"cidr-tools": "^13.0.4",
"citation-formatter": "^1.0.1",
"codemirror": "^6.0.2",
"colord": "^2.10.0",
"composerize": "^1.7.6",
"composeverter": "^1.7.5",
"convert": "^7.0.2",
"countries-and-timezones": "^3.9.0",
"countries-db": "^1.2.0",
"country-code-lookup": "^0.1.5",
"crc": "^4.3.2",
"creditcard": "^0.1.3",
"creditcard-generator": "^0.0.7",
"cron-parser": "5.10.0",
"cron-validator": "^1.4.0",
"cronstrue": "^3.24.0",
"cropperjs": "^1.6.3",
"cross-spawn": "^7.0.6",
"crypto-es": "^3.1.3",
"csstoxpath": "^2.0.0",
"curlconverter": "^4.12.0",
"currency-codes-ts": "^3.0.0",
"damerau-levenshtein": "^1.0.8",
"data-guardian": "^1.1.4",
"date-fns": "^4.4.0",
"date-fns-tz": "^3.2.0",
"date-holidays": "^3.34.1",
"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.10.0",
"dompurify": "^3.4.16",
"duration-fns": "^3.0.2",
"echarts": "^6.1.0",
"email-bounce-parser-browser": "^1.1.0",
"email-normalizer": "^1.0.0",
"emojilib": "^4.0.3",
"epubjs": "^0.3.93",
"es-toolkit": "^1.49.0",
"esm-potrace-wasm": "^0.4.4",
"ethers": "^6.17.0",
"event-cron-parser": "^1.0.37",
"exif-be-gone": "^1.5.1",
"exifreader": "^4.46.0",
"fanger": "0.3.1",
"fast-json-patch": "^3.1.1",
"fast-xml-parser": "^5.11.1",
"fast_array_intersect": "^1.1.0",
"fflate": "^0.8.3",
"figlet": "^1.11.0",
"figue": "^1.2.0",
"file-type": "^22.0.1",
"flatten-anything": "^4.0.2",
"flexsearch": "^0.8.212",
"fuse.js": "^7.4.2",
"gcoord": "^1.0.7",
"generate-schema": "^2.6.0",
"get-timezone-offset": "^1.0.5",
"ghostscript-wasm-esm": "^1.0.1",
"gtin-validator": "^1.0.0",
"hash-wasm": "^4.12.0",
"haversine": "^1.1.1",
"heic-convert": "^2.1.0",
"hex-array": "^1.0.0",
"highlight.js": "^11.11.1",
"html-to-text": "^10.0.0",
"htmlfy": "^1.0.2",
"htmlparser2": "^10.1.0",
"hyparquet": "^1.26.2",
"hyparquet-compressors": "^1.1.1",
"ibantools": "^4.5.4",
"ical-generator": "^11.0.0",
"ical.js": "^2.2.1",
"iconv-lite": "^0.7.3",
"idb-keyval": "^6.3.0",
"image-compare-viewer": "^1.6.2",
"image-in-browser": "^3.5.3",
"image-to-ascii-art": "^0.0.4",
"ip-address": "^10.7.2",
"ip-bigint": "^9.0.6",
"ip-cidr": "^4.0.2",
"ip-matching": "^2.1.2",
"ip-regex": "^5.0.0",
"is-cidr": "^7.0.0",
"is-ip": "^5.0.1",
"isbn3": "^2.0.9",
"iso-639-1": "^3.1.6",
"jasypt": "^1.0.7",
"javascript-obfuscator": "^5.4.7",
"javastack.js": "^1.0.3",
"jks-js": "^1.1.7",
"jose": "5.10.0",
"jpeg-quality-estimator": "^1.0.1",
"jq-wasm": "^1.0.1",
"js-base64": "^3.9.4",
"js-beautify": "^2.0.3",
"js-tiktoken": "^1.0.21",
"jsbarcode": "^3.12.3",
"json-analyzer": "^1.2.2",
"json-editor-vue": "^0.19.2",
"json-to-ts": "^2.1.0",
"json5": "^2.2.3",
"jsonar-mod": "^1.9.0",
"jsonlint-mod": "^1.7.6",
"jsonpath": "^1.3.0",
"jsonrepair": "^3.15.0",
"jsonschema": "^1.5.0",
"jsonschema-protobuf": "^1.0.2",
"jsstack.js": "^2.0.0",
"jsvat-next": "^3.0.4",
"jszip": "^3.10.1",
"jwt-decode": "^4.0.0",
"katex": "^0.17.0",
"korean-unpacker": "^1.0.3",
"langs": "^2.0.0",
"leaflet": "^1.9.4",
"libmime": "^5.4.1",
"libphonenumber-js": "^1.13.8",
"lodash": "^4.18.1",
"long": "^5.3.2",
"lorem-ipsum-japanese": "^1.0.1",
"luhn-js": "^1.1.2",
"luxon": "^3.7.2",
"markdown-docx": "^1.7.0",
"markdown-it": "^14.3.0",
"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": "^4.1.0",
"marked": "^10.0.0",
"mathjs": "^15.2.0",
"md-editor-v3": "^7.0.0",
"mdt2json": "^1.1.0",
"memorystream": "^0.3.1",
"merge-anything": "^6.0.6",
"mermaid": "^12.0.0",
"mime-types": "^3.0.2",
"mitex-wasm": "^0.2.5",
"monaco-editor": "^0.55.1",
"morsee": "^1.0.10",
"msgpackr": "^2.0.4",
"naive-ui": "^2.44.1",
"nanoid": "^6.0.0",
"nanoid-dictionary": "^5.0.0",
"nestify-anything": "^4.0.1",
"netmask": "^2.1.1",
"netstack.js": "^2.1.4",
"nginx-config-formatter": "^1.4.5",
"niceware": "^4.0.0",
"node-emv": "^1.0.23",
"node-forge": "^1.4.0",
"openai-chat-tokens": "^0.2.8",
"openpgp": "^6.3.1",
"otpauth-migration": "^1.0.0",
"oui-data": "^1.1.571",
"pako": "^3.0.1",
"parse-duration": "^2.1.8",
"parse-torrent": "^11.0.21",
"paseto-ts": "^2.0.6",
"path2d-polyfill": "^3.2.2",
"pdf-signature-reader": "^1.4.3",
"pdfjs-dist": "^4.10.38",
"picomatch": "^4.0.5",
"pinia": "^3.0.4",
"podletjs": "^1.0.2",
"port-numbers": "^8.0.32",
"postal-mime": "^2.7.5",
"potrace": "^2.1.8",
"pp-qr-code": "^0.6.4",
"prettier": "^3.9.9",
"pretty-ms": "^9.3.0",
"proj4": "^2.20.9",
"proj4-list": "^1.0.4",
"properties": "^1.2.1",
"punycode": "^2.3.1",
"pythonstack.js": "^1.0.2",
"qpdf-wasm-esm-embedded": "^1.1.1",
"qrcode": "^1.5.4",
"qrcode-parser": "^2.1.3",
"qrcode-terminal-nooctal": "^0.12.1",
"qrcode-vue3": "^1.7.1",
"quicktype-core": "^26.0.0",
"randexp": "^0.5.3",
"regex": "^6.1.0",
"rekcod": "^3.0.0",
"remove-markdown": "^0.6.4",
"resistor-data": "^2.0.0",
"riimut": "^0.9.1",
"roboto-base64": "^0.1.2",
"rtf-stream-parser": "^3.8.1",
"run-pace": "^2.2.1",
"safe-license-list": "^0.1.2",
"sandybox": "^1.1.2",
"sanitize-html": "^2.17.7",
"screenfull": "^5.2.0",
"shamirs-secret-sharing": "^2.0.1",
"shiki": "1.29.2",
"silly-password-generator": "^1.0.29",
"slashes": "^3.0.12",
"smol-toml": "^1.9.0",
"sms-segments-calculator": "^1.2.0",
"spdx-satisfies": "^6.0.0",
"sponge-case": "^2.0.3",
"sql-formatter": "^15.8.2",
"sshpk": "^1.18.0",
"staveless-futhark": "^0.6.1",
"stopword": "^3.1.5",
"stringify-object": "^7.0.0",
"svgo": "^3.3.5",
"swagger-ui-dist": "^5.32.8",
"swap-case": "^3.0.3",
"tesseract.js": "^7.0.0",
"tesseract.js-core": "7.0.0",
"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.4",
"ua-parser-js": "^2.0.10",
"ulid": "^3.0.2",
"unicode-emoji-json": "^0.9.0",
"unique-random": "^4.0.0",
"units-converter": "^1.0.3",
"unixcrypt-browser": "^2.0.4",
"unpdf": "^1.8.0",
"unplugin-auto-import": "^21.0.0",
"utf8": "^3.0.0",
"uuid": "^14.0.1",
"vanilla-jsoneditor": "^3.13.0",
"vite-plugin-sitemap": "^0.8.2",
"vue": "^3.5.39",
"vue-color-wheel": "^0.1.1",
"vue-i18n": "^11.4.6",
"vue-loading-overlay": "^6.0.6",
"vue-markdown-render": "^2.3.1",
"vue-router": "^5.1.0",
"vue-shadow-dom": "^4.2.0",
"vue-tsc": "^3.3.10",
"vue3-flip-countdown": "^0.1.6",
"vue3-katex": "^0.8.1",
"vuedraggable": "^4.1.0",
"vuex": "^4.1.0",
"webcrack": "^2.16.0",
"webcrypto-liner-shim": "^1.4.8",
"webp-converter-browser": "^1.0.4",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
"xml-formatter": "^3.7.0",
"xml-js": "^1.6.11",
"xpath": "^0.0.34",
"xpath-to-css": "^1.2.0",
"xslt-processor": "^3.4.0",
"yaml": "^2.9.0"
"axios": "^0.19.2",
"color-convert": "^2.0.1",
"color-name": "^1.1.4",
"core-js": "^3.6.4",
"dompurify": "^2.0.11",
"marked": "^1.1.0",
"qrcode.vue": "^1.7.0",
"register-service-worker": "^1.7.1",
"roboto-fontface": "*",
"vue": "^2.6.11",
"vue-analytics": "^5.22.1",
"vue-cryptojs": "^2.1.4",
"vue-headful": "^2.1.0",
"vue-router": "^3.1.6",
"vuetify": "^2.2.11",
"vuetify-toast-snackbar": "^0.6.1"
},
"devDependencies": {
"@iconify-json/mdi": "^1.2.3",
"@iconify-json/tabler": "^1.2.35",
"@intlify/unplugin-vue-i18n": "^11.2.4",
"@playwright/test": "^1.62.0",
"@tsconfig/node24": "^24.0.4",
"@types/arr-diff": "^4.0.3",
"@types/big.js": "^7.0.0",
"@types/codemirror": "^5.60.17",
"@types/damerau-levenshtein": "^1.0.2",
"@types/emscripten": "^1.41.5",
"@types/har-format": "^1.2.16",
"@types/hex-array": "^1.0.2",
"@types/js-beautify": "^1.14.3",
"@types/jsdom": "^28.0.0",
"@types/jsonpath": "^0.2.4",
"@types/leaflet": "^1.9.21",
"@types/libmime": "^5.3.0",
"@types/luxon": "^3.7.2",
"@types/markdown-it": "^14.0.0",
"@types/memorystream": "^0.3.4",
"@types/mime-types": "^3.0.1",
"@types/morsee": "^1.0.2",
"@types/nanoid-dictionary": "^4.2.3",
"@types/netmask": "^2.0.6",
"@types/node": "^24.13.3",
"@types/node-forge": "^1.3.14",
"@types/picomatch": "^4.0.3",
"@types/potrace": "^2.1.5",
"@types/punycode": "^2.1.4",
"@types/qrcode": "^1.5.6",
"@types/sanitize-html": "^2.16.1",
"@types/spdx-satisfies": "^6.0.0",
"@types/sshpk": "^1.17.5",
"@types/stopword": "^2.0.3",
"@types/stringify-object": "^4.0.5",
"@types/turndown": "^5.0.6",
"@types/ua-parser-js": "^0.7.39",
"@types/unist": "^3.0.3",
"@types/utf8": "^3.0.3",
"@vitejs/plugin-vue": "^6.0.7",
"@vitejs/plugin-vue-jsx": "^5.1.6",
"@vue/compiler-sfc": "^3.5.39",
"@vue/runtime-dom": "^3.5.39",
"@vue/test-utils": "^2.4.11",
"@vue/tsconfig": "^0.9.1",
"axios": "^1.18.1",
"commander": "^15.0.0",
"consola": "^3.4.2",
"dotenv": "^17.4.2",
"fast-glob": "^3.3.3",
"hygen": "^6.2.11",
"jsdom": "^29.1.1",
"less": "^4.6.7",
"oxfmt": "^0.57.0",
"oxlint": "^1.72.0",
"oxlint-tsgolint": "^7.0.2001",
"rollup-plugin-visualizer": "^7.0.1",
"semver": "^7.8.5",
"typescript": "~6.0.3",
"unocss": "^66.7.4",
"unocss-preset-scrollbar": "^4.0.0",
"unplugin-icons": "^23.0.1",
"unplugin-vue-components": "^32.1.0",
"unplugin-vue-markdown": "^32.0.0",
"vite": "^8.1.3",
"vite-plugin-node-polyfills": "^0.28.0",
"vite-plugin-pwa": "^1.3.0",
"vite-plugin-wasm": "^3.6.0",
"vite-svg-loader": "^5.1.1",
"vitest": "^4.1.11",
"vue-i18n-extract": "^2.0.7",
"workbox-build": "^7.4.1",
"workbox-window": "^7.4.1",
"zx": "^8.8.5"
"@fortawesome/fontawesome-free": "^5.13.0",
"@vue/cli-plugin-babel": "~4.3.0",
"@vue/cli-plugin-eslint": "~4.3.0",
"@vue/cli-plugin-pwa": "~4.3.0",
"@vue/cli-plugin-router": "~4.3.0",
"@vue/cli-service": "~4.3.0",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"less": "^3.0.4",
"less-loader": "^5.0.0",
"lint-staged": "^9.5.0",
"raw-loader": "^4.0.1",
"sass": "^1.19.0",
"sass-loader": "^8.0.0",
"vue-cli-plugin-vuetify": "~2.0.5",
"vue-template-compiler": "^2.6.11",
"vuetify-loader": "^1.3.0"
},
"devEngines": {
"packageManager": {
"name": "pnpm",
"version": "12.6.0",
"onFail": "download"
},
"runtime": {
"name": "node",
"version": "24.x",
"onFail": "download"
}
"gitHooks": {
"pre-commit": "lint-staged"
},
"engines": {
"node": "24.x"
},
"scarfSettings": {
"enabled": false
"lint-staged": {
"*.{js,jsx,vue}": [
"vue-cli-service lint",
"git add"
]
}
}
-24
View File
@@ -1,24 +0,0 @@
diff --git a/dist/src/shell/webParser.js b/dist/src/shell/webParser.js
index 1b3bab1a4789e926fbe07786188d1dcddf655489..39ac6d3a8f4f5ac007d4dc1e2da272e2cc5b9088 100644
--- a/dist/src/shell/webParser.js
+++ b/dist/src/shell/webParser.js
@@ -2,13 +2,17 @@
import Parser from "web-tree-sitter";
// NOTE: top-level await requires Safari 15+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await#browser_compatibility
+// The wasm files are served next to the app (it-tools ships them in public/). Resolve them
+// against the document's <base href> rather than the domain root, so the app also works
+// when it is served from a subfolder.
+const appBase = document.querySelector("base")?.href ?? new URL("/", location.href).href;
await Parser.init({
// eslint-disable-next-line @typescript-eslint/no-unused-vars
locateFile(scriptName, scriptDirectory) {
- return "/" + scriptName;
+ return new URL(scriptName, appBase).href;
},
});
-const Bash = await Parser.Language.load("/tree-sitter-bash.wasm");
+const Bash = await Parser.Language.load(new URL("tree-sitter-bash.wasm", appBase).href);
const parser = new Parser();
parser.setLanguage(Bash);
export default parser;
-8
View File
@@ -1,8 +0,0 @@
diff --git a/dist/index.js b/dist/index.js
index ba40e7a8d4d4d56621fa467ff0f6fdc3a30e0fa6..9136f03df05cb2ff615e43fa2df4e32b784465ba 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -1 +1 @@
-var A=void 0!==A?A:{},r=!!globalThis.window,v=!!globalThis.WorkerGlobalScope,t=(globalThis.process?.versions?.node&&globalThis.process?.type,globalThis.document?.currentScript?.src);v&&(t=self.location.href);if(r||v){try{new URL(".",t).href}catch{}v&&(A=>{var r=new XMLHttpRequest;return r.open("GET",A,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),async A=>{var r=await fetch(A,{credentials:"same-origin"});if(r.ok)return r.arrayBuffer();throw new Error(r.status+" : "+r.url)}}var j,f,b,n=console.log.bind(console),e=console.error.bind(console),o=!1;var a,k=!1;function s(){var A=y.buffer;j=new Int8Array(A),new Int16Array(A),f=new Uint8Array(A),new Uint16Array(A),new Int32Array(A),b=new Uint32Array(A),new Float32Array(A),new Float64Array(A),new BigInt64Array(A),new BigUint64Array(A)}function x(r){throw A.onAbort?.(r),e(r="Aborted("+r+")"),o=!0,r+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(r)}function i(){return function(A){for(var r,v=0,t=A.length,j=new Uint8Array(t);v<t;++v)r=A.charCodeAt(v),j[v]=~r>>8&r;return j}('\0asm\0\0\0“``\0`\0```\0`\0`\0`\0`\0\0`~~`|``~`~```||`\0`\r||+aa\0ab\0\fac\0ad\0\tae\0\0af\0\rag\0\0ZY\0\0\0\0\0\0\0\0\0\0\t\0\0\0\0\0\b\b\0\v\n\0\0\n\0\0\0\0\tp11‚€€\bA°Ô\vh\0i\0_j\0^k\0Al\0@m\0?\t6\0A\v0(]\\>[ZYXW>VUTS8RQPONMLKJDFIEGHC\'B\'\f\nËÿY€\f\b@ \0E\r\0 \0A\bk" \0Ak(\0"Axq"\0j!@ Aq\r\0 AqE\r  (\0"k"AÄÐ\0(\0I\r \0 j!\0@@@AÈÐ\0(\0 G@ (\f! AÿM@  (\b"G\rA´Ð\0A´Ð\0(\0A~ Avwq6\0\f\v (!  G@ (\b" 6\f  6\b\f\v (" Aj ("E\r Aj\v!@ ! "Aj! ("\r\0 Aj! ("\r\0\v A\x006\0\f\v ("AqAG\rA¼Ð\0 \x006\0  A~q6  \0Ar6  \x006\0\v  6\f  6\b\f\vA\0!\v E\r\0@ ("At"(äR F@ AäÒ\0j 6\0 \rA¸Ð\0A¸Ð\0(\0A~ wq6\0\f\v@  (F@  6\f\v  6\v E\r\v  6 ("@  6  6\v ("E\r\0  6  6\v  O\r\0 ("AqE\r\0@@@@ AqE@AÌÐ\0(\0 F@AÌÐ\0 6\0AÀÐ\0AÀÐ\0(\0 \0j"\x006\0  \0Ar6 AÈÐ\0(\0G\rA¼Ð\0A\x006\0AÈÐ\0A\x006\0\vAÈÐ\0(\0" F@AÈÐ\0 6\0A¼Ð\0A¼Ð\0(\0 \0j"\x006\0  \0Ar6 \0 j \x006\0\v Axq \0j!\0 (\f! AÿM@ (\b" F@A´Ð\0A´Ð\0(\0A~ Avwq6\0\f\v  6\f  6\b\f\v (!\b  G@ (\b" 6\f  6\b\f\v (" Aj ("E\r Aj\v!@ ! "Aj! ("\r\0 Aj! ("\r\0\v A\x006\0\f\v  A~q6  \0Ar6 \0 j \x006\0\f\vA\0!\v \bE\r\0@ ("At"(äR F@ AäÒ\0j 6\0 \rA¸Ð\0A¸Ð\0(\0A~ wq6\0\f\v@  \b(F@ \b 6\f\v \b 6\v E\r\v  \b6 ("@  6  6\v ("E\r\0  6  6\v  \0Ar6 \0 j \x006\0  G\r\0A¼Ð\0 \x006\0\v \0AÿM@ \0AøqAÜÐ\0j!A´Ð\0(\0"A \0Avt"\0qE@A´Ð\0 \0 r6\0 \f\v (\b\v!\0  6\b \0 6\f  6\f  \x006\b\vA! \0AÿÿÿM@ \0A& \0A\bvg"kvAq AtrA>s!\v  6 B\x007 AtAäÒ\0j!@A¸Ð\0(\0"A t"qE@A¸Ð\0  r6\0  6\0A!A\b\f\v \0A AvkA\0 AGt! (\0!@ "(Axq \0F\r Av! At!  Aqj"("\r\0\v  6A! !A\b\v!\0 "\f\v (\b" 6\f  6\bA!\0A\b!A\0\v!  j 6\0  6\f \0 j 6\0AÔÐ\0AÔÐ\0(\0Ak"\0A \06\0\v\vY~@A\0 \0E\r\0 \0­ ­~"§" \0 rA€€I\r\0A  B ˆ§\v"\f"\0E\r\0 \0Ak-\0\0AqE\r\0 \0A\0 \v \0\v\0 \0-\0\0A qE@   \0"\v\vj#\0A€k"$\0@  L\r\0 A€Àq\r\0    k"A€ A€I" E@@ \0 A€\t A€k"AÿK\r\0\v\v \0  \t\v A€j$\0\v8\0  l!  (LA\0H@ \0  "\f\v \0  "\v"\0F@\v \0 n\v»(\v#\0Ak"\n$\0@@@@@@@@@@ \0AôM@A´Ð\0(\0"A \0A\vjAøq \0A\vI"Av"\0v"Aq@@ AsAq \0j"At"AÜÐ\0j"\0 (äP"(\b"F@A´Ð\0 A~ wq6\0\f\v  \x006\f \0 6\b\v A\bj!\0  Ar6  j" (Ar6\f\v\v A¼Ð\0(\0"\bM\r @@A \0t"A\0 kr  \0tqh"At"AÜÐ\0j" (äP"\0(\b"F@A´Ð\0 A~ wq"6\0\f\v  6\f  6\b\v \0 Ar6 \0 j"  k"Ar6 \0 j 6\0 \b@ \bAxqAÜÐ\0j!AÈÐ\0(\0! A \bAvt"qE@A´Ð\0  r6\0 \f\v (\b\v!  6\b  6\f  6\f  6\b\v \0A\bj!\0AÈÐ\0 6\0A¼Ð\0 6\0\f\v\vA¸Ð\0(\0"\vE\r \vhAt(äR"(Axq k! !@@ ("\0E@ ("\0E\r\v \0(Axq k"   I"! \0  ! \0!\f\v\v (!\t  (\f"\0G@ (\b" \x006\f \0 6\b\f\n\v (" Aj ("E\r Aj\v!@ ! "\0Aj! \0("\r\0 \0Aj! \0("\r\0\v A\x006\0\f\t\vA! \0A¿K\r\0 \0A\vj"Axq!A¸Ð\0(\0"E\r\0A!\bA\0 k! \0AôÿÿM@ A& A\bvg"\0kvAq \0AtkA>j!\b\v@@@ \bAt(äR"E@A\0!\0\f\vA\0!\0 A \bAvkA\0 \bAGt!@@ (Axq k" O\r\0 ! "\r\0A\0! !\0\f\v \0 ("   AvAqj("F \0 !\0 At! \r\0\v\v \0 rE@A\0!A \bt"\0A\0 \0kr  Line truncated
\ No newline at end of file
+var A,I,g=void 0!==g?g:{},C=Object.assign({},g),Q=(A,I)=>{throw I},B="object"==typeof window,E="function"==typeof importScripts,i="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,D="";if(i){var o=require("fs"),w=require("path");D=E?w.dirname(D)+"/":__dirname+"/",A=(A,I)=>(A=b(A)?new URL(A):w.normalize(A),o.readFileSync(A,I?void 0:"utf8")),I=I=>{var g=A(I,!0);return g.buffer||(g=new Uint8Array(g)),g},(A,I,g,C=!0)=>{A=b(A)?new URL(A):w.normalize(A),o.readFile(A,C?void 0:"utf8",((A,Q)=>{A?g(A):I(C?Q.buffer:Q)}))},!g.thisProgram&&process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),"undefined"!=typeof module&&(module.exports=g),process.on("uncaughtException",(A=>{if(!("unwind"===A||A instanceof l||A.context instanceof l))throw A})),Q=(A,I)=>{throw process.exitCode=A,I},g.inspect=()=>"[Emscripten Module object]"}else(B||E)&&(E?D=self.location.href:"undefined"!=typeof document&&document.currentScript&&(D=document.currentScript.src),D=0!==D.indexOf("blob:")?D.substr(0,D.replace(/[?#].*/,"").lastIndexOf("/")+1):"",A=A=>{var I=new XMLHttpRequest;return I.open("GET",A,!1),I.send(null),I.responseText},E&&(I=A=>{var I=new XMLHttpRequest;return I.open("GET",A,!1),I.responseType="arraybuffer",I.send(null),new Uint8Array(I.response)}),(A,I,g)=>{var C=new XMLHttpRequest;C.open("GET",A,!0),C.responseType="arraybuffer",C.onload=()=>{200==C.status||0==C.status&&C.response?I(C.response):g()},C.onerror=g,C.send(null)},A=>document.title=A);var N,s=g.print||console.log.bind(console),h=g.printErr||console.error.bind(console);Object.assign(g,C),C=null,g.arguments&&g.arguments,g.thisProgram&&g.thisProgram,g.quit&&(Q=g.quit),g.wasmBinary&&(N=g.wasmBinary);var y,R=g.noExitRuntime||!0;"object"!=typeof WebAssembly&&L("no native wasm support detected");var F,G,M,a=!1;function K(){var A=y.buffer;g.HEAP8=F=new Int8Array(A),g.HEAP16=new Int16Array(A),g.HEAPU8=G=new Uint8Array(A),g.HEAPU16=new Uint16Array(A),g.HEAP32=new Int32Array(A),g.HEAPU32=M=new Uint32Array(A),g.HEAPF32=new Float32Array(A),g.HEAPF64=new Float64Array(A)}var S=[],t=[],r=[],c=!1;var Y=0,U=null,J=null;function L(A){throw g.onAbort&&g.onAbort(A),h(A="Aborted("+A+")"),a=!0,1,A+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(A)}var k,H,e="data:application/octet-stream;base64,";function n(A){return A.startsWith("data:application/octet-stream;base64,")}function b(A){return A.startsWith("file://")}function d(A){if(A==k&&N)return new Uint8Array(N);var g=function(A){if(!n(A))return;return function(A){if(void 0!==i&&i){var I=Buffer.from(A,"base64");return new Uint8Array(I.buffer,I.byteOffset,I.length)}try{for(var g=atob(A),C=new Uint8Array(g.length),Q=0;Q<g.length;++Q)C[Q]=g.charCodeAt(Q);return C}catch(A){throw new Error("Converting base64 string to bytes failed.")}}(A.slice(e.length))}(A);if(g)return g;if(I)return I(A);throw"both async and sync fetching of the wasm failed"}function q(A,I,g){return function(A){return Promise.resolve().then((()=>d(A)))}(A).then((A=>WebAssembly.instantiate(A,I))).then((A=>A)).then(g,(A=>{h(`failed to asynchronously prepare wasm: ${A}`),L(A)}))}function l(A){this.name="ExitStatus",this.message=`Program terminated with exit(${A})`,this.status=A}n(k="data:application/octet-stream;base64,AGFzbQEAAAABigETYAF/AX9gAX8AYAJ/fwBgAn9/AX9gA39/fwF/YAR/f39/AGADf39/AGAAAGAFf39/f38AYAZ/f39/f38AYAN/fn8BfmAFf39/f38Bf2AGf3x/f39/AX9gBH9/f38Bf2ACfn8Bf2AHf39/f39/fwF/YAJ8fwF8YAABf2AMf39/f39/f39/fH98AX8CMQgBYQFhAAYBYQFiAA0BYQFjAAEBYQFkAAsBYQFlAAcBYQFmAAABYQFnAAABYQFoAAYDX14BAwYECAUABgAEBAEADgAGAAIEAAUBBQALAAQCAQAHAgcBAgAFBgMCAgMDBAUADxADBAMCAQEDAgABEQAAAAAACQkICAEFBQQABAIMCgQAAAoAAwMCAAADAwIABwMSBAUBcAE2NgUHAQGAAoCAAgYIAX8BQaDVBAsHKQoBaQIAAWoAKAFrAGUBbABkAW0AYwFuAQABbwBCAXAAQQFxAEABcgBHCTsBAEEBCzUbGytMGxNiYR0TYF9eE11cHRNbWllYOVdWVVRTUlETUBsTHR1PSEpOE0lLTRNFE0QTRilDKQq09QJe9QsBB38CQCAARQ0AIABBCGsiAiAAQQRrKAIAIgFBeHEiAGohBQJAIAFBAXENACABQQNxRQ0BIAIgAigCACIBayICQbTRACgCAEkNASAAIAFqIQACQAJAQbjRACgCACACRwRAIAFB/wFNBEAgAUEDdiEEIAIoAgwiASACKAIIIgNGBEBBpNEAQaTRACgCAEF+IAR3cTYCAAwFCyADIAE2AgwgASADNgIIDAQLIAIoAhghBiACIAIoAgwiAUcEQCACKAIIIgMgATYCDCABIAM2AggMAwsgAkEUaiIEKAIAIgNFBEAgAigCECIDRQ0CIAJBEGohBAsDQCAEIQcgAyIBQRRqIgQoAgAiAw0AIAFBEGohBCABKAIQIgMNAAsgB0EANgIADAILIAUoAgQiAUEDcUEDRw0CQazRACAANgIAIAUgAUF+cTYCBCACIABBAXI2AgQgBSAANgIADwtBACEBCyAGRQ0AAkAgAigCHCIDQQJ0QdTTAGoiBCgCACACRgRAIAQgATYCACABDQFBqNEAQajRACgCAEF+IAN3cTYCAAwCCyAGQRBBFCAGKAIQIAJGG2ogATYCACABRQ0BCyABIAY2AhggAigCECIDBEAgASADNgIQIAMgATYCGAsgAigCFCIDRQ0AIAEgAzYCFCADIAE2AhgLIAIgBU8NACAFKAIEIgFBAXFFDQACQAJAAkACQCABQQJxRQRAQbzRACgCACAFRgRAQbzRACACNgIAQbDRAEGw0QAoAgAgAGoiADYCACACIABBAXI2AgQgAkG40QAoAgBHDQZBrNEAQQA2AgBBuNEAQQA2AgAPC0G40QAoAgAgBUYEQEG40QAgAjYCAEGs0QBBrNEAKAIAIABqIgA2AgAgAiAAQQFyNgIEIAAgAmogADYCAA8LIAFBeHEgAGohACABQf8BTQRAIAFBA3YhBCAFKAIMIgEgBSgCCCIDRgRAQaTRAEGk0QAoAgBBfiAEd3E2AgAMBQsgAyABNgIMIAEgAzYCCAwECyAFKAIYIQYgBSAFKAIMIgFHBEBBtNEAKAIAGiAFKAIIIgMgATYCDCABIAM2AggMAwsgBUEUaiIEKAIAIgNFBEAgBSgCECIDRQ0CIAVB Line truncated
-765
View File
@@ -1,765 +0,0 @@
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"
}
}
-12
View File
@@ -1,12 +0,0 @@
diff --git a/lib/run-pace.js b/lib/run-pace.js
index 2b20a32ff4b5712016dd869a734ff25f730cdb12..9b9b72187e6675db6b295a827f2293950d12a111 100644
--- a/lib/run-pace.js
+++ b/lib/run-pace.js
@@ -119,7 +119,3 @@ function removeTrailingZeroes(number) {
function removeLeadingZero(number) {
return number.replace(/^0/, "");
}
-
-function zeroPad(number) {
- return `0${number}`.slice(-2);
-}
-92
View File
@@ -1,92 +0,0 @@
import { defineConfig, devices } from '@playwright/test';
const isCI = !!process.env.CI;
// `pnpm preview` serves the production build here, and Playwright starts it
// itself. Point E2E_BASE_URL somewhere else -- a running `pnpm dev`, a deployed
// preview -- and that is taken as "I am supplying the server", so Playwright
// leaves the lifecycle alone.
//
// Deliberately not BASE_URL: vite.config.ts already reads that as the app's
// base path (`/it-tools/`), so sharing the name would make one value mean two
// incompatible things.
const previewUrl = 'http://localhost:5050';
const baseUrl = process.env.E2E_BASE_URL || previewUrl;
const useWebServer = baseUrl === previewUrl;
// What the browser sees is pinned by `timezoneId` below, and the specs do no
// date maths of their own, so today this changes nothing. It keeps the runner
// deterministic if a spec ever does compute a date on the node side.
process.env.TZ = 'UTC';
/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: './src',
testMatch: /\.e2e\.(spec\.)?ts$/,
/* First paint of heavy lazy-loaded tools can exceed the 5s default on
slow CI browsers (webkit especially). Three workers share a runner, so
first paint is slower still and CI needs more headroom than a local run.
The test timeout has to stay above the expect timeout, otherwise it fires
first and reports a timeout instead of the assertion that actually failed. */
timeout: isCI ? 60_000 : 30_000,
expect: { timeout: isCI ? 30_000 : 15_000 },
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: isCI,
/* Retry on CI only */
retries: isCI ? 2 : 0,
/* CI runs one browser per job on a 4-core runner. Three workers saturates it
(measured ~95% busy); a fourth adds nothing and leaves no core for the
preview server. */
workers: isCI ? 3 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: baseUrl,
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
testIdAttribute: 'data-test-id',
locale: 'en-GB',
timezoneId: 'Europe/Paris',
},
/* Configure projects for major browsers */
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},
],
/* Run your local dev server before starting the tests */
...(useWebServer && {
webServer: {
command: 'pnpm preview',
url: previewUrl,
reuseExistingServer: !isCI,
// pnpm 12 runs the script in its own process group, so Playwright's
// default SIGKILL to the `pnpm preview` group misses vite: it survives,
// holds the output pipes open, and the run never exits. pnpm forwards
// SIGTERM to the script, so stop it that way.
gracefulShutdown: { signal: 'SIGTERM', timeout: 5_000 },
},
}),
});
-23447
View File
File diff suppressed because it is too large. Load diff
-64
View File
@@ -1,64 +0,0 @@
# The xlsx override below points the graph at the SheetJS CDN tarball, because
# the npm registry version is stale (0.18.5) and carries known vulnerabilities.
# Only this package depends on xlsx now, so pnpm's default protection against
# URL tarballs in subdependencies can stay enabled.
overrides:
'@vueuse/shared': 13.9.0
# Native-only transitives of webcrack / @huggingface/transformers.
# The browser app aliases both to an empty module in vite.config.ts,
# so stub them out entirely (saves ~225 MB of node_modules).
isolated-vm: file:./stubs/empty-stub
onnxruntime-node: file:./stubs/empty-stub
elliptic: ^6.6.1
# @boxyhq/saml20 pins 0.9.10 exactly, which upstream deprecated for "critical
# issues"; 0.9.11 is the patched release of that same line.
'@xmldom/xmldom@0.9.10': 0.9.11
# @it-tools/bip39 pins ^0.9.0, whose Node fallback uses eval("require('crypto')")
# and triggers rolldown EVAL build warnings; 0.11.x dropped the eval.
js-sha256: ^0.11.1
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
esm-potrace-wasm: patches/esm-potrace-wasm.patch
run-pace: patches/run-pace.patch
curlconverter@4.12.0: patches/curlconverter@4.12.0.patch
# pnpm 11 requires an explicit decision for every dependency build script.
# true = script is needed (native binaries / functional postinstall)
# false = script is cosmetic (funding banners) or the build is unneeded
allowBuilds:
'@scarf/scarf': false
core-js: false
es5-ext: false
esbuild: true
exifreader: false
json-editor-vue: false
msgpackr-extract: true
protobufjs: false
sharp: false
tesseract.js: false
# Native Node bindings for curlconverter's shell parser. The app only uses
# curlconverter in the browser, where its `browser` field swaps in
# web-tree-sitter (WASM), so the addon is never loaded. There is no
# linux-arm64 prebuild, and compiling it fails against Node 24's C++20 headers.
tree-sitter: false
tree-sitter-bash: false
vue-demi: true
minimumReleaseAgeExclude:
- phin@3.7.1
- elliptic@6.6.2
- file-type@21.3.1
- unhead@2.1.11 || 2.1.13
- dompurify@3.3.2 || 3.3.4 || 3.4.0 || 3.4.6 || 3.4.7 || 3.4.8 || 3.4.9 || 3.4.11
- protocol-buffers-schema@3.6.1
- '@xmldom/xmldom@0.8.14 || 0.9.11'
- mathjs@15.2.0
- protobufjs@7.5.5 || 7.5.6 || 7.5.8 || 7.6.1 || 7.6.3
- underscore@1.13.8
- ip-address@10.1.1
- uuid@11.1.1
- '@iplookup/country-extra@1.0.20260711'
- nanoid@6.0.0
BIN
View File
Binary file not shown.
Binary file not shown.
-575
View File
@@ -1,575 +0,0 @@
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
"use strict";
(() => {
const enosys = () => {
const err = new Error("not implemented");
err.code = "ENOSYS";
return err;
};
if (!globalThis.fs) {
let outputBuf = "";
globalThis.fs = {
constants: { O_WRONLY: -1, O_RDWR: -1, O_CREAT: -1, O_TRUNC: -1, O_APPEND: -1, O_EXCL: -1, O_DIRECTORY: -1 }, // unused
writeSync(fd, buf) {
outputBuf += decoder.decode(buf);
const nl = outputBuf.lastIndexOf("\n");
if (nl != -1) {
console.log(outputBuf.substring(0, nl));
outputBuf = outputBuf.substring(nl + 1);
}
return buf.length;
},
write(fd, buf, offset, length, position, callback) {
if (offset !== 0 || length !== buf.length || position !== null) {
callback(enosys());
return;
}
const n = this.writeSync(fd, buf);
callback(null, n);
},
chmod(path, mode, callback) { callback(enosys()); },
chown(path, uid, gid, callback) { callback(enosys()); },
close(fd, callback) { callback(enosys()); },
fchmod(fd, mode, callback) { callback(enosys()); },
fchown(fd, uid, gid, callback) { callback(enosys()); },
fstat(fd, callback) { callback(enosys()); },
fsync(fd, callback) { callback(null); },
ftruncate(fd, length, callback) { callback(enosys()); },
lchown(path, uid, gid, callback) { callback(enosys()); },
link(path, link, callback) { callback(enosys()); },
lstat(path, callback) { callback(enosys()); },
mkdir(path, perm, callback) { callback(enosys()); },
open(path, flags, mode, callback) { callback(enosys()); },
read(fd, buffer, offset, length, position, callback) { callback(enosys()); },
readdir(path, callback) { callback(enosys()); },
readlink(path, callback) { callback(enosys()); },
rename(from, to, callback) { callback(enosys()); },
rmdir(path, callback) { callback(enosys()); },
stat(path, callback) { callback(enosys()); },
symlink(path, link, callback) { callback(enosys()); },
truncate(path, length, callback) { callback(enosys()); },
unlink(path, callback) { callback(enosys()); },
utimes(path, atime, mtime, callback) { callback(enosys()); },
};
}
if (!globalThis.process) {
globalThis.process = {
getuid() { return -1; },
getgid() { return -1; },
geteuid() { return -1; },
getegid() { return -1; },
getgroups() { throw enosys(); },
pid: -1,
ppid: -1,
umask() { throw enosys(); },
cwd() { throw enosys(); },
chdir() { throw enosys(); },
}
}
if (!globalThis.path) {
globalThis.path = {
resolve(...pathSegments) {
return pathSegments.join("/");
}
}
}
if (!globalThis.crypto) {
throw new Error("globalThis.crypto is not available, polyfill required (crypto.getRandomValues only)");
}
if (!globalThis.performance) {
throw new Error("globalThis.performance is not available, polyfill required (performance.now only)");
}
if (!globalThis.TextEncoder) {
throw new Error("globalThis.TextEncoder is not available, polyfill required");
}
if (!globalThis.TextDecoder) {
throw new Error("globalThis.TextDecoder is not available, polyfill required");
}
const encoder = new TextEncoder("utf-8");
const decoder = new TextDecoder("utf-8");
globalThis.Go = class {
constructor() {
this.argv = ["js"];
this.env = {};
this.exit = (code) => {
if (code !== 0) {
console.warn("exit code:", code);
}
};
this._exitPromise = new Promise((resolve) => {
this._resolveExitPromise = resolve;
});
this._pendingEvent = null;
this._scheduledTimeouts = new Map();
this._nextCallbackTimeoutID = 1;
const setInt64 = (addr, v) => {
this.mem.setUint32(addr + 0, v, true);
this.mem.setUint32(addr + 4, Math.floor(v / 4294967296), true);
}
const setInt32 = (addr, v) => {
this.mem.setUint32(addr + 0, v, true);
}
const getInt64 = (addr) => {
const low = this.mem.getUint32(addr + 0, true);
const high = this.mem.getInt32(addr + 4, true);
return low + high * 4294967296;
}
const loadValue = (addr) => {
const f = this.mem.getFloat64(addr, true);
if (f === 0) {
return undefined;
}
if (!isNaN(f)) {
return f;
}
const id = this.mem.getUint32(addr, true);
return this._values[id];
}
const storeValue = (addr, v) => {
const nanHead = 0x7FF80000;
if (typeof v === "number" && v !== 0) {
if (isNaN(v)) {
this.mem.setUint32(addr + 4, nanHead, true);
this.mem.setUint32(addr, 0, true);
return;
}
this.mem.setFloat64(addr, v, true);
return;
}
if (v === undefined) {
this.mem.setFloat64(addr, 0, true);
return;
}
let id = this._ids.get(v);
if (id === undefined) {
id = this._idPool.pop();
if (id === undefined) {
id = this._values.length;
}
this._values[id] = v;
this._goRefCounts[id] = 0;
this._ids.set(v, id);
}
this._goRefCounts[id]++;
let typeFlag = 0;
switch (typeof v) {
case "object":
if (v !== null) {
typeFlag = 1;
}
break;
case "string":
typeFlag = 2;
break;
case "symbol":
typeFlag = 3;
break;
case "function":
typeFlag = 4;
break;
}
this.mem.setUint32(addr + 4, nanHead | typeFlag, true);
this.mem.setUint32(addr, id, true);
}
const loadSlice = (addr) => {
const array = getInt64(addr + 0);
const len = getInt64(addr + 8);
return new Uint8Array(this._inst.exports.mem.buffer, array, len);
}
const loadSliceOfValues = (addr) => {
const array = getInt64(addr + 0);
const len = getInt64(addr + 8);
const a = new Array(len);
for (let i = 0; i < len; i++) {
a[i] = loadValue(array + i * 8);
}
return a;
}
const loadString = (addr) => {
const saddr = getInt64(addr + 0);
const len = getInt64(addr + 8);
return decoder.decode(new DataView(this._inst.exports.mem.buffer, saddr, len));
}
const testCallExport = (a, b) => {
this._inst.exports.testExport0();
return this._inst.exports.testExport(a, b);
}
const timeOrigin = Date.now() - performance.now();
this.importObject = {
_gotest: {
add: (a, b) => a + b,
callExport: testCallExport,
},
gojs: {
// Go's SP does not change as long as no Go code is running. Some operations (e.g. calls, getters and setters)
// may synchronously trigger a Go event handler. This makes Go code get executed in the middle of the imported
// function. A goroutine can switch to a new stack if the current stack is too small (see morestack function).
// This changes the SP, thus we have to update the SP used by the imported function.
// func wasmExit(code int32)
"runtime.wasmExit": (sp) => {
sp >>>= 0;
const code = this.mem.getInt32(sp + 8, true);
this.exited = true;
delete this._inst;
delete this._values;
delete this._goRefCounts;
delete this._ids;
delete this._idPool;
this.exit(code);
},
// func wasmWrite(fd uintptr, p unsafe.Pointer, n int32)
"runtime.wasmWrite": (sp) => {
sp >>>= 0;
const fd = getInt64(sp + 8);
const p = getInt64(sp + 16);
const n = this.mem.getInt32(sp + 24, true);
fs.writeSync(fd, new Uint8Array(this._inst.exports.mem.buffer, p, n));
},
// func resetMemoryDataView()
"runtime.resetMemoryDataView": (sp) => {
sp >>>= 0;
this.mem = new DataView(this._inst.exports.mem.buffer);
},
// func nanotime1() int64
"runtime.nanotime1": (sp) => {
sp >>>= 0;
setInt64(sp + 8, (timeOrigin + performance.now()) * 1000000);
},
// func walltime() (sec int64, nsec int32)
"runtime.walltime": (sp) => {
sp >>>= 0;
const msec = (new Date).getTime();
setInt64(sp + 8, msec / 1000);
this.mem.setInt32(sp + 16, (msec % 1000) * 1000000, true);
},
// func scheduleTimeoutEvent(delay int64) int32
"runtime.scheduleTimeoutEvent": (sp) => {
sp >>>= 0;
const id = this._nextCallbackTimeoutID;
this._nextCallbackTimeoutID++;
this._scheduledTimeouts.set(id, setTimeout(
() => {
this._resume();
while (this._scheduledTimeouts.has(id)) {
// for some reason Go failed to register the timeout event, log and try again
// (temporary workaround for https://github.com/golang/go/issues/28975)
console.warn("scheduleTimeoutEvent: missed timeout event");
this._resume();
}
},
getInt64(sp + 8),
));
this.mem.setInt32(sp + 16, id, true);
},
// func clearTimeoutEvent(id int32)
"runtime.clearTimeoutEvent": (sp) => {
sp >>>= 0;
const id = this.mem.getInt32(sp + 8, true);
clearTimeout(this._scheduledTimeouts.get(id));
this._scheduledTimeouts.delete(id);
},
// func getRandomData(r []byte)
"runtime.getRandomData": (sp) => {
sp >>>= 0;
crypto.getRandomValues(loadSlice(sp + 8));
},
// func finalizeRef(v ref)
"syscall/js.finalizeRef": (sp) => {
sp >>>= 0;
const id = this.mem.getUint32(sp + 8, true);
this._goRefCounts[id]--;
if (this._goRefCounts[id] === 0) {
const v = this._values[id];
this._values[id] = null;
this._ids.delete(v);
this._idPool.push(id);
}
},
// func stringVal(value string) ref
"syscall/js.stringVal": (sp) => {
sp >>>= 0;
storeValue(sp + 24, loadString(sp + 8));
},
// func valueGet(v ref, p string) ref
"syscall/js.valueGet": (sp) => {
sp >>>= 0;
const result = Reflect.get(loadValue(sp + 8), loadString(sp + 16));
sp = this._inst.exports.getsp() >>> 0; // see comment above
storeValue(sp + 32, result);
},
// func valueSet(v ref, p string, x ref)
"syscall/js.valueSet": (sp) => {
sp >>>= 0;
Reflect.set(loadValue(sp + 8), loadString(sp + 16), loadValue(sp + 32));
},
// func valueDelete(v ref, p string)
"syscall/js.valueDelete": (sp) => {
sp >>>= 0;
Reflect.deleteProperty(loadValue(sp + 8), loadString(sp + 16));
},
// func valueIndex(v ref, i int) ref
"syscall/js.valueIndex": (sp) => {
sp >>>= 0;
storeValue(sp + 24, Reflect.get(loadValue(sp + 8), getInt64(sp + 16)));
},
// valueSetIndex(v ref, i int, x ref)
"syscall/js.valueSetIndex": (sp) => {
sp >>>= 0;
Reflect.set(loadValue(sp + 8), getInt64(sp + 16), loadValue(sp + 24));
},
// func valueCall(v ref, m string, args []ref) (ref, bool)
"syscall/js.valueCall": (sp) => {
sp >>>= 0;
try {
const v = loadValue(sp + 8);
const m = Reflect.get(v, loadString(sp + 16));
const args = loadSliceOfValues(sp + 32);
const result = Reflect.apply(m, v, args);
sp = this._inst.exports.getsp() >>> 0; // see comment above
storeValue(sp + 56, result);
this.mem.setUint8(sp + 64, 1);
} catch (err) {
sp = this._inst.exports.getsp() >>> 0; // see comment above
storeValue(sp + 56, err);
this.mem.setUint8(sp + 64, 0);
}
},
// func valueInvoke(v ref, args []ref) (ref, bool)
"syscall/js.valueInvoke": (sp) => {
sp >>>= 0;
try {
const v = loadValue(sp + 8);
const args = loadSliceOfValues(sp + 16);
const result = Reflect.apply(v, undefined, args);
sp = this._inst.exports.getsp() >>> 0; // see comment above
storeValue(sp + 40, result);
this.mem.setUint8(sp + 48, 1);
} catch (err) {
sp = this._inst.exports.getsp() >>> 0; // see comment above
storeValue(sp + 40, err);
this.mem.setUint8(sp + 48, 0);
}
},
// func valueNew(v ref, args []ref) (ref, bool)
"syscall/js.valueNew": (sp) => {
sp >>>= 0;
try {
const v = loadValue(sp + 8);
const args = loadSliceOfValues(sp + 16);
const result = Reflect.construct(v, args);
sp = this._inst.exports.getsp() >>> 0; // see comment above
storeValue(sp + 40, result);
this.mem.setUint8(sp + 48, 1);
} catch (err) {
sp = this._inst.exports.getsp() >>> 0; // see comment above
storeValue(sp + 40, err);
this.mem.setUint8(sp + 48, 0);
}
},
// func valueLength(v ref) int
"syscall/js.valueLength": (sp) => {
sp >>>= 0;
setInt64(sp + 16, parseInt(loadValue(sp + 8).length));
},
// valuePrepareString(v ref) (ref, int)
"syscall/js.valuePrepareString": (sp) => {
sp >>>= 0;
const str = encoder.encode(String(loadValue(sp + 8)));
storeValue(sp + 16, str);
setInt64(sp + 24, str.length);
},
// valueLoadString(v ref, b []byte)
"syscall/js.valueLoadString": (sp) => {
sp >>>= 0;
const str = loadValue(sp + 8);
loadSlice(sp + 16).set(str);
},
// func valueInstanceOf(v ref, t ref) bool
"syscall/js.valueInstanceOf": (sp) => {
sp >>>= 0;
this.mem.setUint8(sp + 24, (loadValue(sp + 8) instanceof loadValue(sp + 16)) ? 1 : 0);
},
// func copyBytesToGo(dst []byte, src ref) (int, bool)
"syscall/js.copyBytesToGo": (sp) => {
sp >>>= 0;
const dst = loadSlice(sp + 8);
const src = loadValue(sp + 32);
if (!(src instanceof Uint8Array || src instanceof Uint8ClampedArray)) {
this.mem.setUint8(sp + 48, 0);
return;
}
const toCopy = src.subarray(0, dst.length);
dst.set(toCopy);
setInt64(sp + 40, toCopy.length);
this.mem.setUint8(sp + 48, 1);
},
// func copyBytesToJS(dst ref, src []byte) (int, bool)
"syscall/js.copyBytesToJS": (sp) => {
sp >>>= 0;
const dst = loadValue(sp + 8);
const src = loadSlice(sp + 16);
if (!(dst instanceof Uint8Array || dst instanceof Uint8ClampedArray)) {
this.mem.setUint8(sp + 48, 0);
return;
}
const toCopy = src.subarray(0, dst.length);
dst.set(toCopy);
setInt64(sp + 40, toCopy.length);
this.mem.setUint8(sp + 48, 1);
},
"debug": (value) => {
console.log(value);
},
}
};
}
async run(instance) {
if (!(instance instanceof WebAssembly.Instance)) {
throw new Error("Go.run: WebAssembly.Instance expected");
}
this._inst = instance;
this.mem = new DataView(this._inst.exports.mem.buffer);
this._values = [ // JS values that Go currently has references to, indexed by reference id
NaN,
0,
null,
true,
false,
globalThis,
this,
];
this._goRefCounts = new Array(this._values.length).fill(Infinity); // number of references that Go has to a JS value, indexed by reference id
this._ids = new Map([ // mapping from JS values to reference ids
[0, 1],
[null, 2],
[true, 3],
[false, 4],
[globalThis, 5],
[this, 6],
]);
this._idPool = []; // unused ids that have been garbage collected
this.exited = false; // whether the Go program has exited
// Pass command line arguments and environment variables to WebAssembly by writing them to the linear memory.
let offset = 4096;
const strPtr = (str) => {
const ptr = offset;
const bytes = encoder.encode(str + "\0");
new Uint8Array(this.mem.buffer, offset, bytes.length).set(bytes);
offset += bytes.length;
if (offset % 8 !== 0) {
offset += 8 - (offset % 8);
}
return ptr;
};
const argc = this.argv.length;
const argvPtrs = [];
this.argv.forEach((arg) => {
argvPtrs.push(strPtr(arg));
});
argvPtrs.push(0);
const keys = Object.keys(this.env).sort();
keys.forEach((key) => {
argvPtrs.push(strPtr(`${key}=${this.env[key]}`));
});
argvPtrs.push(0);
const argv = offset;
argvPtrs.forEach((ptr) => {
this.mem.setUint32(offset, ptr, true);
this.mem.setUint32(offset + 4, 0, true);
offset += 8;
});
// The linker guarantees global data starts from at least wasmMinDataAddr.
// Keep in sync with cmd/link/internal/ld/data.go:wasmMinDataAddr.
const wasmMinDataAddr = 4096 + 8192;
if (offset >= wasmMinDataAddr) {
throw new Error("total length of command line and environment variables exceeds limit");
}
this._inst.exports.run(argc, argv);
if (this.exited) {
this._resolveExitPromise();
}
await this._exitPromise;
}
_resume() {
if (this.exited) {
throw new Error("Go program has already exited");
}
this._inst.exports.resume();
if (this.exited) {
this._resolveExitPromise();
}
}
_makeFuncWrapper(id) {
const go = this;
return function () {
const event = { id: id, this: this, args: arguments };
go._pendingEvent = event;
go._resume();
return event.result;
};
}
}
})();
Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 KiB

+2 -2
View File
@@ -2,8 +2,8 @@
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#da532c</TileColor>
<square150x150logo src="./img/icons/mstile-150x150.png"/>
<TileColor>#2d89ef</TileColor>
</tile>
</msapplication>
</browserconfig>
-1
View File
@@ -1 +0,0 @@
[]
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Loaded 100 of 2156 files, more files were not shown because too many files have changed in this diff. Show more