Repository: CorentinTh/it-tools Branch: main Commit: d505845f918e Files: 480 Total size: 812.7 KB Directory structure: gitextract__s9io7at/ ├── .dockerignore ├── .eslintrc-auto-import.json ├── .eslintrc.cjs ├── .github/ │ ├── FUNDING.yml │ ├── ISSUE_TEMPLATE/ │ │ ├── bug-report.yml │ │ ├── config.yml │ │ └── feature-request.yml │ ├── PULL_REQUEST_TEMPLATE/ │ │ └── pull_request_template.md │ ├── stale.yml │ └── workflows/ │ ├── ci.yml │ ├── docker-nightly-release.yml │ ├── e2e-tests.yml │ └── releases.yml ├── .gitignore ├── .nvmrc ├── .prettierrc ├── .versionrc ├── .vscode/ │ └── extensions.json ├── CHANGELOG.md ├── Dockerfile ├── LICENSE ├── README.md ├── _templates/ │ └── generator/ │ └── ui-component/ │ ├── component.demo.ejs.t │ └── component.ejs.t ├── auto-imports.d.ts ├── components.d.ts ├── env.d.ts ├── index.html ├── locales/ │ ├── de.yml │ ├── en.yml │ ├── es.yml │ ├── fr.yml │ ├── no.yml │ ├── pt.yml │ ├── uk.yml │ ├── vi.yml │ └── zh.yml ├── netlify.toml ├── nginx.conf ├── package.json ├── playwright.config.ts ├── public/ │ ├── browserconfig.xml │ ├── humans.txt │ └── robots.txt ├── renovate.json ├── scripts/ │ ├── build-locales-files.mjs │ ├── create-tool.mjs │ ├── getLatestChangelog.mjs │ ├── release.mjs │ └── shared/ │ ├── changelog.mjs │ └── commits.mjs ├── src/ │ ├── App.vue │ ├── components/ │ │ ├── CollapsibleToolMenu.vue │ │ ├── ColoredCard.vue │ │ ├── FavoriteButton.vue │ │ ├── FormatTransformer.vue │ │ ├── InputCopyable.vue │ │ ├── MenuIconItem.vue │ │ ├── MenuLayout.vue │ │ ├── NavbarButtons.vue │ │ ├── SpanCopyable.vue │ │ ├── TextareaCopyable.vue │ │ └── ToolCard.vue │ ├── composable/ │ │ ├── computed/ │ │ │ └── catchedComputed.ts │ │ ├── computedRefreshable.ts │ │ ├── copy.ts │ │ ├── debouncedref.ts │ │ ├── downloadBase64.test.ts │ │ ├── downloadBase64.ts │ │ ├── fuzzySearch.ts │ │ ├── queryParams.ts │ │ ├── validation.test.ts │ │ └── validation.ts │ ├── config.ts │ ├── layouts/ │ │ ├── base.layout.vue │ │ ├── index.ts │ │ └── tool.layout.vue │ ├── main.ts │ ├── modules/ │ │ ├── command-palette/ │ │ │ ├── command-palette.store.ts │ │ │ ├── command-palette.types.ts │ │ │ ├── command-palette.vue │ │ │ └── components/ │ │ │ └── command-palette-option.vue │ │ ├── i18n/ │ │ │ └── components/ │ │ │ └── locale-selector.vue │ │ ├── shared/ │ │ │ ├── date.models.ts │ │ │ └── number.models.ts │ │ └── tracker/ │ │ ├── tracker.services.ts │ │ └── tracker.types.ts │ ├── pages/ │ │ ├── 404.page.vue │ │ ├── About.vue │ │ └── Home.page.vue │ ├── plugins/ │ │ ├── i18n.plugin.ts │ │ ├── naive.plugin.ts │ │ └── plausible.plugin.ts │ ├── router.ts │ ├── shims.d.ts │ ├── stores/ │ │ └── style.store.ts │ ├── themes.ts │ ├── tools/ │ │ ├── ascii-text-drawer/ │ │ │ ├── ascii-text-drawer.vue │ │ │ └── index.ts │ │ ├── base64-file-converter/ │ │ │ ├── base64-file-converter.vue │ │ │ └── index.ts │ │ ├── base64-string-converter/ │ │ │ ├── base64-string-converter.vue │ │ │ └── index.ts │ │ ├── basic-auth-generator/ │ │ │ ├── basic-auth-generator.vue │ │ │ └── index.ts │ │ ├── bcrypt/ │ │ │ ├── bcrypt.vue │ │ │ └── index.ts │ │ ├── benchmark-builder/ │ │ │ ├── benchmark-builder.models.ts │ │ │ ├── benchmark-builder.vue │ │ │ ├── dynamic-values.vue │ │ │ └── index.ts │ │ ├── bip39-generator/ │ │ │ ├── bip39-generator.vue │ │ │ └── index.ts │ │ ├── camera-recorder/ │ │ │ ├── camera-recorder.vue │ │ │ ├── index.ts │ │ │ └── useMediaRecorder.ts │ │ ├── case-converter/ │ │ │ ├── case-converter.vue │ │ │ └── index.ts │ │ ├── chmod-calculator/ │ │ │ ├── chmod-calculator.service.test.ts │ │ │ ├── chmod-calculator.service.ts │ │ │ ├── chmod-calculator.types.ts │ │ │ ├── chmod-calculator.vue │ │ │ └── index.ts │ │ ├── chronometer/ │ │ │ ├── chronometer.service.test.ts │ │ │ ├── chronometer.service.ts │ │ │ ├── chronometer.vue │ │ │ └── index.ts │ │ ├── color-converter/ │ │ │ ├── color-converter.e2e.spec.ts │ │ │ ├── color-converter.models.test.ts │ │ │ ├── color-converter.models.ts │ │ │ ├── color-converter.vue │ │ │ └── index.ts │ │ ├── crontab-generator/ │ │ │ ├── crontab-generator.vue │ │ │ └── index.ts │ │ ├── date-time-converter/ │ │ │ ├── date-time-converter.e2e.spec.ts │ │ │ ├── date-time-converter.models.test.ts │ │ │ ├── date-time-converter.models.ts │ │ │ ├── date-time-converter.types.ts │ │ │ ├── date-time-converter.vue │ │ │ └── index.ts │ │ ├── device-information/ │ │ │ ├── device-information.vue │ │ │ └── index.ts │ │ ├── docker-run-to-docker-compose-converter/ │ │ │ ├── composerize.d.ts │ │ │ ├── docker-run-to-docker-compose-converter.vue │ │ │ └── index.ts │ │ ├── email-normalizer/ │ │ │ ├── email-normalizer.vue │ │ │ └── index.ts │ │ ├── emoji-picker/ │ │ │ ├── emoji-card.vue │ │ │ ├── emoji-grid.vue │ │ │ ├── emoji-picker.vue │ │ │ ├── emoji.types.ts │ │ │ └── index.ts │ │ ├── encryption/ │ │ │ ├── encryption.vue │ │ │ └── index.ts │ │ ├── eta-calculator/ │ │ │ ├── eta-calculator.service.ts │ │ │ ├── eta-calculator.vue │ │ │ └── index.ts │ │ ├── git-memo/ │ │ │ ├── git-memo.content.md │ │ │ ├── git-memo.vue │ │ │ └── index.ts │ │ ├── hash-text/ │ │ │ ├── hash-text.service.test.ts │ │ │ ├── hash-text.service.ts │ │ │ ├── hash-text.vue │ │ │ └── index.ts │ │ ├── hmac-generator/ │ │ │ ├── hmac-generator.vue │ │ │ └── index.ts │ │ ├── html-entities/ │ │ │ ├── html-entities.vue │ │ │ └── index.ts │ │ ├── html-wysiwyg-editor/ │ │ │ ├── editor/ │ │ │ │ ├── editor.vue │ │ │ │ ├── menu-bar-item.vue │ │ │ │ └── menu-bar.vue │ │ │ ├── html-wysiwyg-editor.vue │ │ │ └── index.ts │ │ ├── http-status-codes/ │ │ │ ├── http-status-codes.constants.ts │ │ │ ├── http-status-codes.e2e.spec.ts │ │ │ ├── http-status-codes.vue │ │ │ └── index.ts │ │ ├── iban-validator-and-parser/ │ │ │ ├── iban-validator-and-parser.e2e.spec.ts │ │ │ ├── iban-validator-and-parser.service.ts │ │ │ ├── iban-validator-and-parser.vue │ │ │ └── index.ts │ │ ├── index.ts │ │ ├── integer-base-converter/ │ │ │ ├── index.ts │ │ │ ├── integer-base-converter.model.test.ts │ │ │ ├── integer-base-converter.model.ts │ │ │ └── integer-base-converter.vue │ │ ├── ipv4-address-converter/ │ │ │ ├── index.ts │ │ │ ├── ipv4-address-converter.service.test.ts │ │ │ ├── ipv4-address-converter.service.ts │ │ │ └── ipv4-address-converter.vue │ │ ├── ipv4-range-expander/ │ │ │ ├── index.ts │ │ │ ├── ipv4-range-expander.e2e.spec.ts │ │ │ ├── ipv4-range-expander.service.test.ts │ │ │ ├── ipv4-range-expander.service.ts │ │ │ ├── ipv4-range-expander.types.ts │ │ │ ├── ipv4-range-expander.vue │ │ │ └── result-row.vue │ │ ├── ipv4-subnet-calculator/ │ │ │ ├── index.ts │ │ │ ├── ipv4-subnet-calculator.models.ts │ │ │ └── ipv4-subnet-calculator.vue │ │ ├── ipv6-ula-generator/ │ │ │ ├── index.ts │ │ │ └── ipv6-ula-generator.vue │ │ ├── json-diff/ │ │ │ ├── diff-viewer/ │ │ │ │ ├── diff-viewer.models.tsx │ │ │ │ └── diff-viewer.vue │ │ │ ├── index.ts │ │ │ ├── json-diff.e2e.spec.ts │ │ │ ├── json-diff.models.test.ts │ │ │ ├── json-diff.models.ts │ │ │ ├── json-diff.types.ts │ │ │ └── json-diff.vue │ │ ├── json-minify/ │ │ │ ├── index.ts │ │ │ └── json-minify.vue │ │ ├── json-to-csv/ │ │ │ ├── index.ts │ │ │ ├── json-to-csv.e2e.spec.ts │ │ │ ├── json-to-csv.service.test.ts │ │ │ ├── json-to-csv.service.ts │ │ │ └── json-to-csv.vue │ │ ├── json-to-toml/ │ │ │ ├── index.ts │ │ │ ├── json-to-toml.e2e.spec.ts │ │ │ └── json-to-toml.vue │ │ ├── json-to-xml/ │ │ │ ├── index.ts │ │ │ └── json-to-xml.vue │ │ ├── json-to-yaml-converter/ │ │ │ ├── index.ts │ │ │ ├── json-to-yaml.e2e.spec.ts │ │ │ └── json-to-yaml.vue │ │ ├── json-viewer/ │ │ │ ├── index.ts │ │ │ ├── json-viewer.vue │ │ │ ├── json.models.test.ts │ │ │ └── json.models.ts │ │ ├── jwt-parser/ │ │ │ ├── index.ts │ │ │ ├── jwt-parser.constants.ts │ │ │ ├── jwt-parser.service.ts │ │ │ └── jwt-parser.vue │ │ ├── keycode-info/ │ │ │ ├── index.ts │ │ │ └── keycode-info.vue │ │ ├── list-converter/ │ │ │ ├── index.ts │ │ │ ├── list-converter.e2e.spec.ts │ │ │ ├── list-converter.models.test.ts │ │ │ ├── list-converter.models.ts │ │ │ ├── list-converter.types.ts │ │ │ └── list-converter.vue │ │ ├── lorem-ipsum-generator/ │ │ │ ├── index.ts │ │ │ ├── lorem-ipsum-generator.service.ts │ │ │ └── lorem-ipsum-generator.vue │ │ ├── mac-address-generator/ │ │ │ ├── index.ts │ │ │ ├── mac-address-generator.e2e.spec.ts │ │ │ ├── mac-address-generator.vue │ │ │ ├── mac-adress-generator.models.test.ts │ │ │ └── mac-adress-generator.models.ts │ │ ├── mac-address-lookup/ │ │ │ ├── index.ts │ │ │ └── mac-address-lookup.vue │ │ ├── markdown-to-html/ │ │ │ ├── index.ts │ │ │ └── markdown-to-html.vue │ │ ├── math-evaluator/ │ │ │ ├── index.ts │ │ │ └── math-evaluator.vue │ │ ├── meta-tag-generator/ │ │ │ ├── OGSchemaType.type.ts │ │ │ ├── index.ts │ │ │ ├── meta-tag-generator.vue │ │ │ └── og-schemas/ │ │ │ ├── article.ts │ │ │ ├── book.ts │ │ │ ├── image.ts │ │ │ ├── index.ts │ │ │ ├── musicAlbum.ts │ │ │ ├── musicPlaylist.ts │ │ │ ├── musicRadioStation.ts │ │ │ ├── musicSong.ts │ │ │ ├── profile.ts │ │ │ ├── twitter.ts │ │ │ ├── videoEpisode.ts │ │ │ ├── videoMovie.ts │ │ │ ├── videoOther.ts │ │ │ ├── videoTVShow.ts │ │ │ └── website.ts │ │ ├── mime-types/ │ │ │ ├── index.ts │ │ │ └── mime-types.vue │ │ ├── numeronym-generator/ │ │ │ ├── index.ts │ │ │ ├── numeronym-generator.e2e.spec.ts │ │ │ ├── numeronym-generator.service.test.ts │ │ │ ├── numeronym-generator.service.ts │ │ │ └── numeronym-generator.vue │ │ ├── otp-code-generator-and-validator/ │ │ │ ├── index.ts │ │ │ ├── otp-code-generator-and-validator.vue │ │ │ ├── otp-code-generator.e2e.spec.ts │ │ │ ├── otp.service.test.ts │ │ │ ├── otp.service.ts │ │ │ └── token-display.vue │ │ ├── password-strength-analyser/ │ │ │ ├── index.ts │ │ │ ├── password-strength-analyser.e2e.spec.ts │ │ │ ├── password-strength-analyser.service.test.ts │ │ │ ├── password-strength-analyser.service.ts │ │ │ └── password-strength-analyser.vue │ │ ├── pdf-signature-checker/ │ │ │ ├── components/ │ │ │ │ └── pdf-signature-details.vue │ │ │ ├── index.ts │ │ │ ├── pdf-signature-checker.e2e.spec.ts │ │ │ ├── pdf-signature-checker.types.ts │ │ │ └── pdf-signature-checker.vue │ │ ├── percentage-calculator/ │ │ │ ├── index.ts │ │ │ ├── percentage-calculator.e2e.spec.ts │ │ │ └── percentage-calculator.vue │ │ ├── phone-parser-and-formatter/ │ │ │ ├── index.ts │ │ │ ├── phone-parser-and-formatter.e2e.spec.ts │ │ │ ├── phone-parser-and-formatter.models.ts │ │ │ └── phone-parser-and-formatter.vue │ │ ├── qr-code-generator/ │ │ │ ├── index.ts │ │ │ ├── qr-code-generator.vue │ │ │ └── useQRCode.ts │ │ ├── random-port-generator/ │ │ │ ├── index.ts │ │ │ ├── random-port-generator.model.ts │ │ │ └── random-port-generator.vue │ │ ├── regex-memo/ │ │ │ ├── index.ts │ │ │ ├── regex-memo.content.md │ │ │ └── regex-memo.vue │ │ ├── regex-tester/ │ │ │ ├── index.ts │ │ │ ├── regex-tester.service.test.ts │ │ │ ├── regex-tester.service.ts │ │ │ └── regex-tester.vue │ │ ├── roman-numeral-converter/ │ │ │ ├── index.ts │ │ │ ├── roman-numeral-converter.service.test.ts │ │ │ ├── roman-numeral-converter.service.ts │ │ │ └── roman-numeral-converter.vue │ │ ├── rsa-key-pair-generator/ │ │ │ ├── index.ts │ │ │ ├── rsa-key-pair-generator.service.ts │ │ │ └── rsa-key-pair-generator.vue │ │ ├── safelink-decoder/ │ │ │ ├── index.ts │ │ │ ├── safelink-decoder.service.test.ts │ │ │ ├── safelink-decoder.service.ts │ │ │ └── safelink-decoder.vue │ │ ├── slugify-string/ │ │ │ ├── index.ts │ │ │ └── slugify-string.vue │ │ ├── sql-prettify/ │ │ │ ├── index.ts │ │ │ └── sql-prettify.vue │ │ ├── string-obfuscator/ │ │ │ ├── index.ts │ │ │ ├── string-obfuscator.model.test.ts │ │ │ ├── string-obfuscator.model.ts │ │ │ └── string-obfuscator.vue │ │ ├── svg-placeholder-generator/ │ │ │ ├── index.ts │ │ │ └── svg-placeholder-generator.vue │ │ ├── temperature-converter/ │ │ │ ├── index.ts │ │ │ ├── temperature-converter.models.ts │ │ │ └── temperature-converter.vue │ │ ├── text-diff/ │ │ │ ├── index.ts │ │ │ └── text-diff.vue │ │ ├── text-statistics/ │ │ │ ├── index.ts │ │ │ ├── text-statistics.service.test.ts │ │ │ ├── text-statistics.service.ts │ │ │ └── text-statistics.vue │ │ ├── text-to-binary/ │ │ │ ├── index.ts │ │ │ ├── text-to-binary.e2e.spec.ts │ │ │ ├── text-to-binary.models.test.ts │ │ │ ├── text-to-binary.models.ts │ │ │ └── text-to-binary.vue │ │ ├── text-to-nato-alphabet/ │ │ │ ├── index.ts │ │ │ ├── text-to-nato-alphabet.constants.ts │ │ │ ├── text-to-nato-alphabet.service.ts │ │ │ └── text-to-nato-alphabet.vue │ │ ├── text-to-unicode/ │ │ │ ├── index.ts │ │ │ ├── text-to-unicode.e2e.spec.ts │ │ │ ├── text-to-unicode.service.test.ts │ │ │ ├── text-to-unicode.service.ts │ │ │ └── text-to-unicode.vue │ │ ├── token-generator/ │ │ │ ├── index.ts │ │ │ ├── token-generator.e2e.spec.ts │ │ │ ├── token-generator.service.test.ts │ │ │ ├── token-generator.service.ts │ │ │ └── token-generator.tool.vue │ │ ├── toml-to-json/ │ │ │ ├── index.ts │ │ │ ├── toml-to-json.e2e.spec.ts │ │ │ ├── toml-to-json.vue │ │ │ └── toml.services.ts │ │ ├── toml-to-yaml/ │ │ │ ├── index.ts │ │ │ ├── toml-to-yaml.e2e.spec.ts │ │ │ └── toml-to-yaml.vue │ │ ├── tool.ts │ │ ├── tools.store.ts │ │ ├── tools.types.ts │ │ ├── ulid-generator/ │ │ │ ├── index.ts │ │ │ ├── ulid-generator.e2e.spec.ts │ │ │ └── ulid-generator.vue │ │ ├── url-encoder/ │ │ │ ├── index.ts │ │ │ └── url-encoder.vue │ │ ├── url-parser/ │ │ │ ├── index.ts │ │ │ └── url-parser.vue │ │ ├── user-agent-parser/ │ │ │ ├── index.ts │ │ │ ├── user-agent-parser.types.ts │ │ │ ├── user-agent-parser.vue │ │ │ └── user-agent-result-cards.vue │ │ ├── uuid-generator/ │ │ │ ├── index.ts │ │ │ └── uuid-generator.vue │ │ ├── wifi-qr-code-generator/ │ │ │ ├── index.ts │ │ │ ├── useQRCode.ts │ │ │ └── wifi-qr-code-generator.vue │ │ ├── xml-formatter/ │ │ │ ├── index.ts │ │ │ ├── xml-formatter.e2e.spec.ts │ │ │ ├── xml-formatter.service.test.ts │ │ │ ├── xml-formatter.service.ts │ │ │ └── xml-formatter.vue │ │ ├── xml-to-json/ │ │ │ ├── index.ts │ │ │ └── xml-to-json.vue │ │ ├── yaml-to-json-converter/ │ │ │ ├── index.ts │ │ │ ├── yaml-to-json.e2e.spec.ts │ │ │ └── yaml-to-json.vue │ │ ├── yaml-to-toml/ │ │ │ ├── index.ts │ │ │ ├── yaml-to-toml.e2e.spec.ts │ │ │ └── yaml-to-toml.vue │ │ └── yaml-viewer/ │ │ ├── index.ts │ │ ├── yaml-models.ts │ │ └── yaml-viewer.vue │ ├── ui/ │ │ ├── c-alert/ │ │ │ ├── c-alert.demo.vue │ │ │ ├── c-alert.theme.ts │ │ │ └── c-alert.vue │ │ ├── c-button/ │ │ │ ├── c-button.demo.vue │ │ │ ├── c-button.theme.ts │ │ │ └── c-button.vue │ │ ├── c-buttons-select/ │ │ │ ├── c-buttons-select.demo.vue │ │ │ ├── c-buttons-select.types.ts │ │ │ └── c-buttons-select.vue │ │ ├── c-card/ │ │ │ ├── c-card.demo.vue │ │ │ ├── c-card.theme.ts │ │ │ └── c-card.vue │ │ ├── c-collapse/ │ │ │ ├── c-collapse.demo.vue │ │ │ └── c-collapse.vue │ │ ├── c-diff-editor/ │ │ │ └── c-diff-editor.vue │ │ ├── c-file-upload/ │ │ │ ├── c-file-upload.demo.vue │ │ │ └── c-file-upload.vue │ │ ├── c-input-text/ │ │ │ ├── c-input-text.demo.vue │ │ │ ├── c-input-text.test.ts │ │ │ ├── c-input-text.theme.ts │ │ │ └── c-input-text.vue │ │ ├── c-key-value-list/ │ │ │ ├── c-key-value-list-item.vue │ │ │ ├── c-key-value-list.types.ts │ │ │ └── c-key-value-list.vue │ │ ├── c-label/ │ │ │ ├── c-label.types.ts │ │ │ └── c-label.vue │ │ ├── c-link/ │ │ │ ├── c-link.demo.vue │ │ │ ├── c-link.theme.ts │ │ │ └── c-link.vue │ │ ├── c-markdown/ │ │ │ ├── c-markdown.demo.vue │ │ │ └── c-markdown.vue │ │ ├── c-modal/ │ │ │ ├── c-modal.demo.vue │ │ │ ├── c-modal.theme.ts │ │ │ └── c-modal.vue │ │ ├── c-modal-value/ │ │ │ ├── c-modal-value.demo.vue │ │ │ └── c-modal-value.vue │ │ ├── c-select/ │ │ │ ├── c-select.demo.vue │ │ │ ├── c-select.theme.ts │ │ │ ├── c-select.types.ts │ │ │ └── c-select.vue │ │ ├── c-table/ │ │ │ ├── c-table.demo.vue │ │ │ ├── c-table.types.ts │ │ │ └── c-table.vue │ │ ├── c-text-copyable/ │ │ │ ├── c-text-copyable.demo.vue │ │ │ └── c-text-copyable.vue │ │ ├── c-tooltip/ │ │ │ ├── c-tooltip.demo.vue │ │ │ └── c-tooltip.vue │ │ ├── color/ │ │ │ ├── color.models.test.ts │ │ │ └── color.models.ts │ │ ├── demo/ │ │ │ ├── demo-home.page.vue │ │ │ ├── demo-wrapper.vue │ │ │ └── demo.routes.ts │ │ └── theme/ │ │ ├── theme.models.ts │ │ └── themes.ts │ └── utils/ │ ├── array.ts │ ├── base64.test.ts │ ├── base64.ts │ ├── boolean.test.ts │ ├── boolean.ts │ ├── convert.ts │ ├── defaults.test.ts │ ├── defaults.ts │ ├── error.test.ts │ ├── error.ts │ ├── macAddress.ts │ └── random.ts ├── tsconfig.app.json ├── tsconfig.json ├── tsconfig.vite-config.json ├── tsconfig.vitest.json ├── unocss.config.ts ├── vercel.json └── vite.config.ts ================================================ FILE CONTENTS ================================================ ================================================ FILE: .dockerignore ================================================ node_modules playwright-report coverage dist test-results ================================================ FILE: .eslintrc-auto-import.json ================================================ { "globals": { "Component": true, "ComponentPublicInstance": true, "ComputedRef": true, "EffectScope": true, "InjectionKey": true, "PropType": true, "Ref": true, "VNode": true, "asyncComputed": true, "autoResetRef": true, "computed": true, "computedAsync": true, "computedEager": true, "computedInject": true, "computedWithControl": true, "controlledComputed": true, "controlledRef": true, "createApp": true, "createEventHook": true, "createGlobalState": true, "createInjectionState": true, "createReactiveFn": true, "createReusableTemplate": true, "createSharedComposable": true, "createTemplatePromise": true, "createUnrefFn": true, "customRef": true, "debouncedRef": true, "debouncedWatch": true, "defineAsyncComponent": true, "defineComponent": true, "eagerComputed": true, "effectScope": true, "extendRef": true, "getCurrentInstance": true, "getCurrentScope": true, "h": true, "ignorableWatch": true, "inject": true, "isDefined": true, "isProxy": true, "isReactive": true, "isReadonly": true, "isRef": true, "makeDestructurable": true, "markRaw": true, "nextTick": true, "onActivated": true, "onBeforeMount": true, "onBeforeRouteLeave": true, "onBeforeRouteUpdate": true, "onBeforeUnmount": true, "onBeforeUpdate": true, "onClickOutside": true, "onDeactivated": true, "onErrorCaptured": true, "onKeyStroke": true, "onLongPress": true, "onMounted": true, "onRenderTracked": true, "onRenderTriggered": true, "onScopeDispose": true, "onServerPrefetch": true, "onStartTyping": true, "onUnmounted": true, "onUpdated": true, "pausableWatch": true, "provide": true, "reactify": true, "reactifyObject": true, "reactive": true, "reactiveComputed": true, "reactiveOmit": true, "reactivePick": true, "readonly": true, "ref": true, "refAutoReset": true, "refDebounced": true, "refDefault": true, "refThrottled": true, "refWithControl": true, "resolveComponent": true, "resolveRef": true, "resolveUnref": true, "shallowReactive": true, "shallowReadonly": true, "shallowRef": true, "syncRef": true, "syncRefs": true, "templateRef": true, "throttledRef": true, "throttledWatch": true, "toRaw": true, "toReactive": true, "toRef": true, "toRefs": true, "triggerRef": true, "tryOnBeforeMount": true, "tryOnBeforeUnmount": true, "tryOnMounted": true, "tryOnScopeDispose": true, "tryOnUnmounted": true, "unref": true, "unrefElement": true, "until": true, "useActiveElement": true, "useAnimate": true, "useArrayDifference": true, "useArrayEvery": true, "useArrayFilter": true, "useArrayFind": true, "useArrayFindIndex": true, "useArrayFindLast": true, "useArrayIncludes": true, "useArrayJoin": true, "useArrayMap": true, "useArrayReduce": true, "useArraySome": true, "useArrayUnique": true, "useAsyncQueue": true, "useAsyncState": true, "useAttrs": true, "useBase64": true, "useBattery": true, "useBluetooth": true, "useBreakpoints": true, "useBroadcastChannel": true, "useBrowserLocation": true, "useCached": true, "useClipboard": true, "useCloned": true, "useColorMode": true, "useConfirmDialog": true, "useCounter": true, "useCssModule": true, "useCssVar": true, "useCssVars": true, "useCurrentElement": true, "useCycleList": true, "useDark": true, "useDateFormat": true, "useDebounce": true, "useDebounceFn": true, "useDebouncedRefHistory": true, "useDeviceMotion": true, "useDeviceOrientation": true, "useDevicePixelRatio": true, "useDevicesList": true, "useDialog": true, "useDisplayMedia": true, "useDocumentVisibility": true, "useDraggable": true, "useDropZone": true, "useElementBounding": true, "useElementByPoint": true, "useElementHover": true, "useElementSize": true, "useElementVisibility": true, "useEventBus": true, "useEventListener": true, "useEventSource": true, "useEyeDropper": true, "useFavicon": true, "useFetch": true, "useFileDialog": true, "useFileSystemAccess": true, "useFocus": true, "useFocusWithin": true, "useFps": true, "useFullscreen": true, "useGamepad": true, "useGeolocation": true, "useI18n": true, "useIdle": true, "useImage": true, "useInfiniteScroll": true, "useIntersectionObserver": true, "useInterval": true, "useIntervalFn": true, "useKeyModifier": true, "useLastChanged": true, "useLink": true, "useLoadingBar": true, "useLocalStorage": true, "useMagicKeys": true, "useManualRefHistory": true, "useMediaControls": true, "useMediaQuery": true, "useMemoize": true, "useMemory": true, "useMessage": true, "useMounted": true, "useMouse": true, "useMouseInElement": true, "useMousePressed": true, "useMutationObserver": true, "useNavigatorLanguage": true, "useNetwork": true, "useNotification": true, "useNow": true, "useObjectUrl": true, "useOffsetPagination": true, "useOnline": true, "usePageLeave": true, "useParallax": true, "useParentElement": true, "usePerformanceObserver": true, "usePermission": true, "usePointer": true, "usePointerLock": true, "usePointerSwipe": true, "usePreferredColorScheme": true, "usePreferredContrast": true, "usePreferredDark": true, "usePreferredLanguages": true, "usePreferredReducedMotion": true, "usePrevious": true, "useRafFn": true, "useRefHistory": true, "useResizeObserver": true, "useRoute": true, "useRouter": true, "useScreenOrientation": true, "useScreenSafeArea": true, "useScriptTag": true, "useScroll": true, "useScrollLock": true, "useSessionStorage": true, "useShare": true, "useSlots": true, "useSorted": true, "useSpeechRecognition": true, "useSpeechSynthesis": true, "useStepper": true, "useStorage": true, "useStorageAsync": true, "useStyleTag": true, "useSupported": true, "useSwipe": true, "useTemplateRefsList": true, "useTextDirection": true, "useTextSelection": true, "useTextareaAutosize": true, "useThrottle": true, "useThrottleFn": true, "useThrottledRefHistory": true, "useTimeAgo": true, "useTimeout": true, "useTimeoutFn": true, "useTimeoutPoll": true, "useTimestamp": true, "useTitle": true, "useToNumber": true, "useToString": true, "useToggle": true, "useTransition": true, "useUrlSearchParams": true, "useUserMedia": true, "useVModel": true, "useVModels": true, "useVibrate": true, "useVirtualList": true, "useWakeLock": true, "useWebNotification": true, "useWebSocket": true, "useWebWorker": true, "useWebWorkerFn": true, "useWindowFocus": true, "useWindowScroll": true, "useWindowSize": true, "watch": true, "watchArray": true, "watchAtMost": true, "watchDebounced": true, "watchDeep": true, "watchEffect": true, "watchIgnorable": true, "watchImmediate": true, "watchOnce": true, "watchPausable": true, "watchPostEffect": true, "watchSyncEffect": true, "watchThrottled": true, "watchTriggerable": true, "watchWithFilter": true, "whenever": true, "toValue": true } } ================================================ FILE: .eslintrc.cjs ================================================ /** * @type {import('eslint').Linter.Config} */ module.exports = { root: true, extends: ['@antfu', './.eslintrc-auto-import.json', '@unocss'], rules: { 'curly': ['error', 'all'], '@typescript-eslint/semi': ['error', 'always'], '@typescript-eslint/no-use-before-define': ['error', { allowNamedExports: true, functions: false }], 'vue/no-empty-component-block': ['error'], 'no-restricted-imports': ['error', { paths: [{ name: '@vueuse/core', importNames: ['useClipboard'], message: 'Please use local useCopy from src/composable/copy.ts instead of useClipboard.', }], }], }, }; ================================================ FILE: .github/FUNDING.yml ================================================ github: - CorentinTh ================================================ FILE: .github/ISSUE_TEMPLATE/bug-report.yml ================================================ name: 🐞 Bug Report description: File a bug report. labels: ['bug', 'triage'] assignees: - CorentinTh 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 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 (it-tools.tech) - A self hosted - Other (installations, docker, etc.) validations: required: true ================================================ FILE: .github/ISSUE_TEMPLATE/config.yml ================================================ blank_issues_enabled: false ================================================ FILE: .github/ISSUE_TEMPLATE/feature-request.yml ================================================ 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. placeholder: 'Example: a token generator tool' validations: required: true - type: textarea id: alternative attributes: label: Is their example of this tool in the wild? description: Provide link to already existing tool (like websites, apps, cli, ...) or npm packages that could be used or provide inspiration for the feature. - type: textarea 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 ================================================ FILE: .github/PULL_REQUEST_TEMPLATE/pull_request_template.md ================================================ ### Description ### Additional context --- ### What is the purpose of this pull request? - [ ] Bug fix - [ ] New Feature - [ ] Documentation update - [ ] Other ### Before submitting the PR, please make sure you do the following - [ ] Submit the PR against the `dev` branch. - [ ] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate. - [ ] Provide a description in this PR that addresses **what** the PR is solving, or reference the issue that it solves (e.g. `fixes #123`). - [ ] Ideally, include relevant tests that fail without this PR but pass with it. ================================================ FILE: .github/stale.yml ================================================ # 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 ================================================ FILE: .github/workflows/ci.yml ================================================ name: ci on: pull_request: push: branches: - main jobs: ci: runs-on: ubuntu-latest steps: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - run: corepack enable - uses: actions/setup-node@v3 with: node-version: 20 cache: 'pnpm' - name: Install dependencies run: pnpm i - name: Run linters run: pnpm lint - name: Run unit test run: pnpm test - name: Type check run: pnpm typecheck - name: Build the app run: pnpm build ================================================ FILE: .github/workflows/docker-nightly-release.yml ================================================ name: Docker nightly release on: workflow_dispatch: schedule: - cron: '0 0 * * *' jobs: check_date: runs-on: ubuntu-latest name: Check latest commit outputs: should_run: ${{ steps.should_run.outputs.should_run }} steps: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - 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-latest needs: check_date if: ${{ needs.check_date.outputs.should_run != 'false' }} steps: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - run: corepack enable - uses: actions/setup-node@v3 with: node-version: 20 cache: 'pnpm' - name: Install dependencies run: pnpm i - name: Run linters run: pnpm lint - name: Run unit test run: pnpm test - name: Build the app run: pnpm build build: runs-on: ubuntu-latest needs: - ci steps: - name: Checkout uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Login to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Build and push uses: docker/build-push-action@v5 with: context: . file: ./Dockerfile platforms: linux/amd64,linux/arm64 push: true tags: | corentinth/it-tools:nightly ghcr.io/corentinth/it-tools:nightly ================================================ FILE: .github/workflows/e2e-tests.yml ================================================ name: E2E tests on: pull_request: push: branches: - main jobs: test: timeout-minutes: 10 runs-on: ubuntu-latest strategy: matrix: shard: [1/3, 2/3, 3/3] steps: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - run: corepack enable - uses: actions/setup-node@v3 with: node-version: 20 cache: 'pnpm' - name: Get Playwright version id: playwright-version run: echo "PLAYWRIGHT_VERSION=$(jq -r .dependencies.playwright package.json)" >> "$GITHUB_OUTPUT" - name: Install dependencies run: pnpm install - name: Build app run: pnpm build - name: Restore Playwright browsers from cache uses: actions/cache@v3 with: path: ~/.cache/ms-playwright key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }}-${{ hashFiles('**/playwright.config.ts') }} restore-keys: | ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }}- ${{ runner.os }}-playwright- - name: Install Playwright Browsers run: pnpm exec playwright install --with-deps - name: Run Playwright tests run: pnpm run test:e2e --shard=${{ matrix.shard }} ================================================ FILE: .github/workflows/releases.yml ================================================ name: Release new versions on: push: tags: - 'v*.*.*' jobs: docker-release: runs-on: ubuntu-latest steps: - name: Get release version run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV - name: Checkout uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Login to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Build and push uses: docker/build-push-action@v5 with: context: . file: ./Dockerfile platforms: linux/amd64,linux/arm64 push: true tags: | corentinth/it-tools:latest corentinth/it-tools:${{ env.RELEASE_VERSION }} ghcr.io/corentinth/it-tools:latest ghcr.io/corentinth/it-tools:${{ env.RELEASE_VERSION}} github-release: runs-on: ubuntu-latest needs: docker-release steps: - name: Get release version run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV - name: Checkout uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - run: corepack enable - uses: actions/setup-node@v3 with: node-version: 20 cache: 'pnpm' - name: Install dependencies run: pnpm i - 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@v1 with: token: ${{ secrets.GITHUB_TOKEN }} files: it-tools-${{ env.RELEASE_VERSION }}.zip tag_name: v${{ env.RELEASE_VERSION }} draft: true prerelease: false body: | ## Docker images - Docker Hub - `corentinth/it-tools:latest` - `corentinth/it-tools:${{ env.RELEASE_VERSION }}` - GitHub Container Registry - `ghcr.io/corentinth/it-tools:latest` - `ghcr.io/corentinth/it-tools:${{ env.RELEASE_VERSION}}` ## Changelog ${{ steps.changelog.outputs.changelog }} ================================================ FILE: .gitignore ================================================ # Logs logs *.log 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 .vscode/* !.vscode/extensions.json .idea *.suo *.ntvs* *.njsproj *.sln *.sw? .env /test-results/ /playwright-report/ /playwright/.cache/ # Webkit with playwright creates a salt file salt ================================================ FILE: .nvmrc ================================================ 18.18.2 ================================================ FILE: .prettierrc ================================================ { "singleQuote": true, "semi": true, "tabWidth": 2, "trailingComma": "all", "printWidth": 120 } ================================================ FILE: .versionrc ================================================ { "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"} ] } ================================================ FILE: .vscode/extensions.json ================================================ { "recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin", "dbaeumer.vscode-eslint", "lokalise.i18n-ally"] } ================================================ FILE: CHANGELOG.md ================================================ # Changelog All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. ## Version 2024.10.22-7ca5933 ### Features - **new tool**: Regex Tester (and Cheatsheet) (#1030) (f5c4ab1) - **new tool**: Markdown to HTML (#916) (87984e2) - **new-tool**: add email normalizer (#1243) (318fb6e) - **new tools**: JSON to XML and XML to JSON (#1231) (f1a5489) - **lorem-ipsum**: add button to refresh text lorem-ipsum (#1213) (e1b4f9a) - **base64**: Base64 enhancements (#905) (30144aa) ### Bug fixes - **favorites**: store favorites regardless of languages (#1202) (7ca5933) - **emoji-picker**: debounced search input (#1181) (76a19d2) - **format-transformer**: set overflow for output area width (#787) (b430bae) - **jwt-parser**: prevent UI overflow on small screen (#1095) (dd4b7e6) ### Refactoring - **regex-tester**: better description (7251700) ### Chores - **sponsors**: fern sponsor banners (#1314) (f962c41) - **readme**: updated logos (#1294) (6709498) ### Documentation - **author**: updated author links (#1316) (1c35ac3) ## Version 2024.05.13-a0bc346 ### Features - **i18n**: added German translation (#1038) (2c2fb21) - **new tool**: Outlook Safelink Decoder (#911) (d3b32cc) - **new tool**: ascii art generator (#886) (fe349ad) - **i18n**: get locales on build (#880) (dc04615) - **i18n**: added vi tools translations (#876) (079aa21) - **i18n**: added zh tools translations (#874) (9c6b122) - **i18n**: added missing locale files in tools (#863) (7f5fa00) - **i18n**: added vietnamese language (#859) (1334bff) - **i18n**: added spanish language (#854) (85b50bb) - **i18n**: added portuguese language (#813) (c65ffb6) - **i18n**: added ukrainian language (#827) (693f362) - **new-tool**: yaml formater (#779) (fc06f01) - **new-tool**: added unicode conversion utilities (#858) (c46207f) ### Bug fixes - **language**: English language cleanup (#1036) (221ddfa) - **url-encoder, validation**: typo in validation of url-encoder.vue #1024 (cb5b462) - **integer base converter**: support bigint (#872) (9eac9cb) - **bcrypt tool**: allow salt rounds up to 100 (#987) (23f82d9) ### Refactoring - **lint**: removed extra semi (33e5294) - **auto-imports**: regen auto imports (1242842) - **home**: lightened tool cards (#882) (a07806c) - **home**: removed n-grid to prevent layout shift (#881) (10e56b3) - **i18n**: added locales per tool (#861) (95698cb) ### Chores - **issues**: prevent empty issues (#1078) (a0bc346) - **issues**: removed old issue templates (#1077) (5a7b0f9) - **node**: upgraded node version in CI workflows (b59942a) - **version**: release 2024.05.10-33e5294 (38d5687) - **issues**: improved issues template (2852c30) - **issues**: improved bug issue template (#1046) (a799234) ### Documentation - **changelog**: update changelog for 2024.05.10-33e5294 (9dfd347) ## Version 2023.12.21-5ed3693 ### Features - **i18n**: improve chinese i18n (#757) (2e56641) - **i18n**: add tooltip and favoriteButton i18n (#756) (a1037cf) - **i18n**: add Chinese translation base (#718) (8f99eb6) - **new tool**: pdf signature checker (#745) (4781920) - **new tool**: numeronym generator (#729) (e07e2ae) ### Bug fixes - **jwt-parser**: jwt claim array support (#799) (5ed3693) - **camera-recorder**: stop camera on navigation (#782) (80e46c9) - **doc**: updated create new tool command in readme (#762) (7a70dbb) - **base64-file-converter**: fix downloading of index.html content without data preambula (#750) (043e4f0) - **docker**: rollback armv7 in docker releases (#741) (205e360) - **eta**: corrected example (#737) (821cbea) ### Refactoring - **about, i18n**: improved i18n dx with markdown (#753) (bd3edcb) - **token, i18n**: complete fr translation (#752) (de1ee69) - **uuid generator**: uuid version picker (#751) (38586ca) - **case converter**: no split on lowercase, uppercase and mocking case (#748) (ca43a25) - **ui**: replaced legacy n-upload with c-file-upload (#747) (7fe47b3) - **token**: added password in token generator keywords (#746) (16ffe6b) - **bcrypt**: fix input label align (#721) (093ff31) ### Chores - **deps**: switched from oui to oui-data for mac address lookup (#693) (0fe9a20) - **deps**: update unocss monorepo to ^0.57.0 (#638) (2e396d8) - **docker**: added armv7 plateform for docker releases (#722) (fe1de8c) ## Version 2023.11.02-7d94e11 ### Features - **i18n**: language selector (#710) (e86fd96) ### Bug fixes - **dockerfile**: revert replacement of nginx image with non-privileged one (#716) (7d94e11) - **encryption**: alert on decryption error (#711) (02b0d0d) ### Refactoring - **math-evaluator**: improved description (e87f4b1) - **math-evaluator**: improved search and UX (#713) (58de897) ## Version 2023.11.01-e164afb ### Features - **command-palette**: clear prompt on palette close (#708) (d013696) - **command-palette**: added about page in command palette (99b1eb9) - **new tool**: random MAC address generator (#657) (cc3425d) - **case-converter**: added mocking case (#705) (681f7bf) - **date-converter**: added excel date time format (#704) (f5eb7a8) - **i18n**: token generator (#688) (02e68d3) - **i18n**: home page (#687) (00562ed) - **i18n**: support for i18n in .ts files (#683) (ebb4ec4) - **i18n**: tool card (#682) (84a4a64) - **i18n**: about page (#680) (a2b53c2) - **i18n**: 404 page (#679) (35563b8) - **new tool**: text to ascii converter (#669) (b2ad4f7) - **new tool**: ULID generator (#623) (5c4d775) - **new tool**: add wifi qr code generator (#599) (0eedce6) - **new tool**: iban validation and parser (#591) (3a63837) - **new tool**: text diff and comparator (#588) (81bfe57) ### Bug fixes - **deps**: fix issue on slugify (#593) (#673) (720201a) - **deps**: update dependency monaco-editor to ^0.43.0 (#620) (e371ef7) - **deps**: update dependency sql-formatter to v13 (#606) (c7d4562) ### Refactoring - **ui**: better ui demo preview menu (#664) (015c673) - **color-converter**: improved color-converter UX (#701) (abb8335) - **docker**: improved docker config (#700) (020e9cb) - **c-table**: added description on c-table for accessibility (b408df8) - **ci**: reduced timeout in e2e (#666) (88b8818) - **ui**: new c-table ui component (#665) (ee4c853) - **ui**: removed n-page-header component in user-agent parser (#663) (cbf58fd) - **ui**: removed n-p components in about page (#662) (a757a51) - **ui**: switched naive tooltip components to custom ones (#661) (025f556) - **spelling**: minor corrections to phrasing/spelling (#596) (8a30b6b) - **i18n**: merge tools scoped locales with global ones (#612) (233d556) - **c-key-value-list**: got rid of table for layout (#611) (7ab9204) - **CI**: run e2e against built app and no longer vercel (#610) (18dd140) - **bcrypt**: fix typo (#604) (e18bae1) ### Chores - **deps**: clean unused dependencies (#709) (e164afb) - **deps**: update docker/setup-qemu-action action to v3 (#627) (4365226) - **deps**: update docker/setup-buildx-action action to v3 (#626) (57ecda1) - **deps**: update docker/login-action action to v3 (#625) (d8d7a3b) - **deps**: update docker/build-push-action action to v5 (#624) (d36b18f) - **deps**: update dependency node to v18.18.2 (#674) (eea9f91) - **deps**: update dependency node to v18.18.0 (#636) (2d2dffb) - **deps**: update actions/checkout action to v4 (#613) (4972159) - **deps**: update dependency unplugin-icons to ^0.17.0 (#609) (f035f48) - **deps**: update dependency @intlify/unplugin-vue-i18n to ^0.13.0 (#597) (d1dff42) - **deps**: update dependency @antfu/eslint-config to ^0.41.0 (#585) (a9cd91c) - **deps**: update dependency typescript to ~5.2.0 (#587) (f3e14fc) ### Doc - **readme**: added contributors list (#622) (557b304) - **hosting**: added cloudron in the other hosting solutions section (#589) (06c3547) ## Version 2023.08.21-6f93cba ### Features - **copy**: support legacy copy to clipboard for older browser (#581) (6f93cba) - **new tool**: string obfuscator (#575) (c58d6e3) ### Bug fixes - **deps**: update dependency sql-formatter to v12 (#520) (2bcb77a) ### Chores - **deps**: switched to fucking typescript v5 (#501) (76b2761) - **deps**: update dependency @antfu/eslint-config to ^0.40.0 (#552) (6ff9a01) - **deps**: update dependency prettier to v3 (#564) (a2b9b15) - **deps**: removed @typescript-eslint/parser (#563) (144f86e) - **deps**: removed ts-pattern (#565) (0f1f659) ## Version 2023.08.16-9bd4ad4 ### Features - **Case Converter**: Add lowercase and uppercase (#534) (7b6232a) - **new tool**: emoji picker (#551) (93f7cf0) - **ui**: added c-select in the ui lib (#550) (dfa1ba8) - **new-tool**: password strength analyzer (#502) (a9c7b89) - **new-tool**: yaml to toml (e29b258) - **new-tool**: json to toml (ea50a3f) - **new-tool**: toml to yaml (746e5bd) - **new-tool**: toml to json (c7d4f11) - **command-palette**: random tool action (ec4c533) - **config**: allow app to run in a subfolder via BASE_URL (#461) (6304595) - **new-tool**: percentage calculator (#456) (b9406a4) - **new-tool**: json to csv converter (69f0bd0) - **new tool**: xml formatter (#457) (a6bbeae) - **chmod-calculator**: added symbolic representation (#455) (f771e7a) - **enhancement**: use system dark mode (#458) (cf7b1f0) - **phone-parser**: searchable country code select (d2956b6) - **new tool**: camera screenshot and recorder (34d8e5c) - **base64-string-converter**: switch to encode and decode url safe base64 strings (#392) (0b20f1c) ### Bug fixes - **deps**: update dependency uuid to v9 (#566) (5e12991) - **deps**: update dependency mathjs to v11 (#519) (7924456) - **deps**: update dependency @vueuse/router to v10 (#516) (ea0f27c) - **copy**: prevent shorthand copy if source is present in useCopy (#559) (86e964a) - **c-lib**: hide component library shortcut link in non-dev (#557) (56d74d0) - **emoji picker**: fix copy button (#556) (e5d0ba7) - **deps**: update dependency @vueuse/head to v1 (#515) (d12dd40) - **deps**: update dependency country-code-lookup to ^0.1.0 (#493) (8c72e69) - **deps**: update dependency @vueuse/head to ^0.9.0 (#492) (cec9dea) - **i18n**: fallback for demo i18n (12d9e5d) - **typos**: fixed more typos & uppercase JSON (#475) (9526ed8) - **about**: typos and wording (#474) (7068610) - **mime-types**: typos (#470) (c4cec9e) - **sonar**: took down minor sonar warning (4cbd7ac) - **readme**: typo (105b21b) - **ipv4-range-expander**: calculate correct for ip addresses where the first octet is lower than 128 (#405) (8c92d56) - **ipv4-converter**: removed readonly on input (7aed9c5) ### Refactoring - **navbar**: consistent spacing in navbar buttons (#507) (30f88fc) - **ui**: remove n-text (#506) (72c98a3) - **ui**: replaced some n-input to c-input (#505) (05ea545) - **json-viewer**: input monospace font (#485) (9125dcf) - **search**: command palette design (#463) (bcb98b3) - **c-input-text**: force usage of props with default (1e2a35b) - **naming**: prevent auto import conflicts for git memo (45c2474) - **imports**: removed unnecessary imports to vue (fe61f0f) - **ui**: removed all n-space (4d2b037) - **ui**: replaced some n-input with c-input-text (f7fc779) ### Chores - **deps**: update dependency vitest to ^0.34.0 (#562) (9bd4ad4) - **deps**: update dependency node to v18.17.1 (#560) (65a9474) - **deps**: update dependency unocss to ^0.55.0 (#561) (85cc7a8) - **deps**: update dependency @unocss/eslint-config to ^0.55.0 (#553) (4268e25) - **deps**: update dependency @intlify/unplugin-vue-i18n to ^0.12.0 (#526) (d1c8880) - **deps**: update docker/login-action action to v2 (#512) (99bc84c) - **deps**: update dependency jsdom to v22 (#499) (cd5a503) - **deps**: update dependency @vitejs/plugin-vue-jsx to v3 (#497) (1a60236) - **deps**: update dependency @vitejs/plugin-vue to v4 (#496) (a249421) - **deps**: update dependency vite-plugin-pwa to ^0.16.0 (#488) (6498c9b) - **deps**: update dependency vite to v4 (#503) (f40d7ec) - **ci**: e2e against vercel deployement (#518) (2e28c50) - **e2e**: execute e2e against built app (#511) (cf382b5) - **deps**: update github/codeql-action action to v2 (#513) (0152583) - **deps**: update node.js to v18 (#514) (38cb61d) - **deps**: switched from vite-plugin-md to vite-plugin-vue-markdown (#510) (354aed6) - **deps**: update dependency workbox-window to v7 (#509) (6b8682f) - **deps**: update dependency vite-svg-loader to v4 (#508) (9e8349d) - **deps**: update dependency typescript to ~4.9.0 (#481) (f440507) - **deps**: update dependency vue-tsc to ^0.40.0 (#490) (b0d9a3e) - **deps**: updated unplugin-auto-import (#504) (5c3bebf) - **deps**: removed start-server-and-test dependency (8df7cd0) - **deps**: update dependency c8 to v8 (#498) (6bda2ca) - **deps**: update dependency @types/jsdom to v21 (#495) (994a1c3) - **deps**: update node.js to v16.20.1 (#491) (05edaf4) - **deps**: update dependency vitest to ^0.32.0 (#489) (49eacea) - **deps**: update actions/checkout action to v3 (#494) (3f7d469) - **deps**: update dependency unplugin-vue-components to ^0.25.0 (#484) (5f21908) - **deps**: update dependency unplugin-auto-import to ^0.16.0 (#483) (6cb0845) - **deps**: update dependency unocss to ^0.53.0 (#482) (38710dc) - **deps**: update dependency @unocss/eslint-config to ^0.53.0 (#478) (282cfc4) - **deps**: added renovate.json (#477) (363c2e4) - **i18n**: tool scoped locales (#471) (1b038c7) - **wysiwyg-editor**: update tiptap dependencies (732da08) - **i18n**: setup i18n plugin config (ebfb872) - **config**: netlify deployment support (#443) (93799af) - **ci**: shard e2e tests (962a6d6) - **lint**: switched to a better lint config (33c9b66) ### Refacor - **transformers**: use monospace font for JSON and SQL text areas (#476) (ba4876d) ### Documentation - **ide**: updated vscode extensions settings (#472) (847323c) ### Chors - **deps**: updated vueuse dependency version (8515c24) ## Version 2023.05.14-77f2efc ### Features - **list-converter**: a small converter who deals with column based data and do some stuff with it (#387) (83a7b3b) - **new tool**: phone parser and normalizer (ce3150c) ### Bug fixes - **phone-parser**: use default country code (a43c546) - **home**: prevent weird blue border on card (3f6c8f0) ### Refactoring - **ui**: replaced some n-input with c-input-text (77f2efc) ### Chores - **issues**: updated new tool request issue template (edae4c6) ### Ui-lib - **new-component**: added text input component in the c-lib (aad8d84) - **button**: size variants (401f13f) ## Version 2023.04.23-92bd835 ### Features - **ui-lib**: demo pages for c-lib components (92bd835) - **new-tool**: diff of two json objects (362f2fa) - **ipv4-range-expander**: expands a given IPv4 start and end address to a valid IPv4 subnet (#366) (df989e2) - **date converter**: auto focus main input (6d22025) ### Bug fixes - **ts**: cleaned legacy typechecking warning (e88c1d5) - **mac-address-lookup**: added copy handler on button click (c311e38) ### Refactoring - **ui-lib**: prevent c-button to shrink (61ece23) - **ui**: replaced naive ui cards with custom ones (f080933) - **clean**: removed unused lodash import (bb32513) - **clean**: removed useless br tags (74073f5) - **ui**: getting ride of naive ui buttons (c45bce3) ## Version 2023.04.14-dbad773 ### Features - **new-tool**: http status codes (8355bd2) ### Refactoring - **uuid-generator**: prevent NaN in quantity (6fb4994) ### Chores - **release**: create a github release on new version (dbad773) - **version**: reset CHANGELOG content to support new format (85cb0ff) ## Version 2023.04.14-f9b77b7 ### Features - **new-tool**: http status codes (8355bd2) ### Refactoring - **uuid-generator**: prevent NaN in quantity (6fb4994) ### Chores - **release**: create a github release on new version (f9b77b7) - **version**: reset CHANGELOG content to support new format (85cb0ff) ## Version 2023.04.14-2f0d239 ### Features - **new-tool**: http status codes (8355bd2) ### Refactoring - **uuid-generator**: prevent NaN in quantity (6fb4994) ### Chores - **release**: create a github release on new version (2f0d239) - **version**: reset CHANGELOG content to support new format (85cb0ff) ## Version 2023.04.14-474cae4 ### Features - **new-tool**: http status codes (8355bd2) ### Refactoring - **uuid-generator**: prevent NaN in quantity (6fb4994) ### Chores - **release**: create a github release on new version (474cae4) - **version**: reset CHANGELOG content to support new format (85cb0ff) ## Version v2023.4.13-dce9ff9 _Diff not available_ ================================================ FILE: Dockerfile ================================================ # build stage FROM node:lts-alpine AS build-stage # Set environment variables for non-interactive npm installs ENV NPM_CONFIG_LOGLEVEL warn ENV CI true WORKDIR /app COPY package.json pnpm-lock.yaml ./ RUN npm install -g pnpm && pnpm i --frozen-lockfile COPY . . RUN pnpm build # production stage FROM nginx:stable-alpine AS production-stage COPY --from=build-stage /app/dist /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] ================================================ FILE: LICENSE ================================================ GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. 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. Copyright (C) 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 . 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: Copyright (C) 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 . 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 . ================================================ FILE: README.md ================================================ logo

Useful tools for developer and people working in IT. Try it!

## Functionalities and roadmap Please check the [issues](https://github.com/CorentinTh/it-tools/issues) to see if some feature listed to be implemented. You have an idea of a tool? Submit a [feature request](https://github.com/CorentinTh/it-tools/issues/new/choose)! ## Self host Self host solutions for your homelab **From docker hub:** ```sh docker run -d --name it-tools --restart unless-stopped -p 8080:80 corentinth/it-tools:latest ``` **From github packages:** ```sh docker run -d --name it-tools --restart unless-stopped -p 8080:80 ghcr.io/corentinth/it-tools:latest ``` **Other solutions:** - [Cloudron](https://www.cloudron.io/store/tech.ittools.cloudron.html) - [Tipi](https://www.runtipi.io/docs/apps-available) - [Unraid](https://unraid.net/community/apps?q=it-tools) ## Contribute ### Recommended IDE Setup [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). - [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) - [i18n Ally](https://marketplace.visualstudio.com/items?itemName=lokalise.i18n-ally) with the following settings: ```json { "editor.formatOnSave": false, "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, "i18n-ally.localesPaths": ["locales", "src/tools/*/locales"], "i18n-ally.keystyle": "nested" } ``` ### Type Support for `.vue` Imports in TS 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. 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 ``` ### 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 ``` ### Lint with [ESLint](https://eslint.org/) ```sh pnpm lint ``` ### 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, and a the import in `src/tools/index.ts`. You will just need to add the imported tool in the proper category and develop the tool. ## Contributors Big thanks to all the people who have already contributed! [![contributors](https://contrib.rocks/image?repo=corentinth/it-tools&refresh=1)](https://github.com/corentinth/it-tools/graphs/contributors) ## Credits Coded with ❤️ by [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=readme). This project is continuously deployed using [vercel.com](https://vercel.com). Contributor graph is generated using [contrib.rocks](https://contrib.rocks/preview?repo=corentinth/it-tools). IT Tools - Collection of handy online tools for devs, with great UX | Product Hunt IT Tools - Collection of handy online tools for devs, with great UX | Product Hunt ## License This project is under the [GNU GPLv3](LICENSE). ================================================ FILE: _templates/generator/ui-component/component.demo.ejs.t ================================================ --- to: src/ui/<%= h.changeCase.param(name) %>/<%= h.changeCase.param(name) %>.demo.vue --- ================================================ FILE: _templates/generator/ui-component/component.ejs.t ================================================ --- to: src/ui/<%= h.changeCase.param(name) %>/<%= h.changeCase.param(name) %>.vue --- ================================================ FILE: auto-imports.d.ts ================================================ /* eslint-disable */ /* prettier-ignore */ // @ts-nocheck // Generated by unplugin-auto-import 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 h: typeof import('vue')['h'] const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch'] const inject: typeof import('vue')['inject'] 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 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 pausableWatch: typeof import('@vueuse/core')['pausableWatch'] const provide: typeof import('vue')['provide'] 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 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 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 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 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, ComponentPublicInstance, ComputedRef, InjectionKey, PropType, Ref, VNode } from 'vue' } // for vue template auto import import { UnwrapRef } from 'vue' declare module 'vue' { interface ComponentCustomProperties { readonly EffectScope: UnwrapRef readonly asyncComputed: UnwrapRef readonly autoResetRef: UnwrapRef readonly computed: UnwrapRef readonly computedAsync: UnwrapRef readonly computedEager: UnwrapRef readonly computedInject: UnwrapRef readonly computedWithControl: UnwrapRef readonly controlledComputed: UnwrapRef readonly controlledRef: UnwrapRef readonly createApp: UnwrapRef readonly createEventHook: UnwrapRef readonly createGlobalState: UnwrapRef readonly createInjectionState: UnwrapRef readonly createReactiveFn: UnwrapRef readonly createReusableTemplate: UnwrapRef readonly createSharedComposable: UnwrapRef readonly createTemplatePromise: UnwrapRef readonly createUnrefFn: UnwrapRef readonly customRef: UnwrapRef readonly debouncedRef: UnwrapRef readonly debouncedWatch: UnwrapRef readonly defineAsyncComponent: UnwrapRef readonly defineComponent: UnwrapRef readonly eagerComputed: UnwrapRef readonly effectScope: UnwrapRef readonly extendRef: UnwrapRef readonly getCurrentInstance: UnwrapRef readonly getCurrentScope: UnwrapRef readonly h: UnwrapRef readonly ignorableWatch: UnwrapRef readonly inject: UnwrapRef readonly isDefined: UnwrapRef readonly isProxy: UnwrapRef readonly isReactive: UnwrapRef readonly isReadonly: UnwrapRef readonly isRef: UnwrapRef readonly makeDestructurable: UnwrapRef readonly markRaw: UnwrapRef readonly nextTick: UnwrapRef readonly onActivated: UnwrapRef readonly onBeforeMount: UnwrapRef readonly onBeforeRouteLeave: UnwrapRef readonly onBeforeRouteUpdate: UnwrapRef readonly onBeforeUnmount: UnwrapRef readonly onBeforeUpdate: UnwrapRef readonly onClickOutside: UnwrapRef readonly onDeactivated: UnwrapRef readonly onErrorCaptured: UnwrapRef readonly onKeyStroke: UnwrapRef readonly onLongPress: UnwrapRef readonly onMounted: UnwrapRef readonly onRenderTracked: UnwrapRef readonly onRenderTriggered: UnwrapRef readonly onScopeDispose: UnwrapRef readonly onServerPrefetch: UnwrapRef readonly onStartTyping: UnwrapRef readonly onUnmounted: UnwrapRef readonly onUpdated: UnwrapRef readonly pausableWatch: UnwrapRef readonly provide: UnwrapRef readonly reactify: UnwrapRef readonly reactifyObject: UnwrapRef readonly reactive: UnwrapRef readonly reactiveComputed: UnwrapRef readonly reactiveOmit: UnwrapRef readonly reactivePick: UnwrapRef readonly readonly: UnwrapRef readonly ref: UnwrapRef readonly refAutoReset: UnwrapRef readonly refDebounced: UnwrapRef readonly refDefault: UnwrapRef readonly refThrottled: UnwrapRef readonly refWithControl: UnwrapRef readonly resolveComponent: UnwrapRef readonly resolveRef: UnwrapRef readonly resolveUnref: UnwrapRef readonly shallowReactive: UnwrapRef readonly shallowReadonly: UnwrapRef readonly shallowRef: UnwrapRef readonly syncRef: UnwrapRef readonly syncRefs: UnwrapRef readonly templateRef: UnwrapRef readonly throttledRef: UnwrapRef readonly throttledWatch: UnwrapRef readonly toRaw: UnwrapRef readonly toReactive: UnwrapRef readonly toRef: UnwrapRef readonly toRefs: UnwrapRef readonly toValue: UnwrapRef readonly triggerRef: UnwrapRef readonly tryOnBeforeMount: UnwrapRef readonly tryOnBeforeUnmount: UnwrapRef readonly tryOnMounted: UnwrapRef readonly tryOnScopeDispose: UnwrapRef readonly tryOnUnmounted: UnwrapRef readonly unref: UnwrapRef readonly unrefElement: UnwrapRef readonly until: UnwrapRef readonly useActiveElement: UnwrapRef readonly useAnimate: UnwrapRef readonly useArrayDifference: UnwrapRef readonly useArrayEvery: UnwrapRef readonly useArrayFilter: UnwrapRef readonly useArrayFind: UnwrapRef readonly useArrayFindIndex: UnwrapRef readonly useArrayFindLast: UnwrapRef readonly useArrayIncludes: UnwrapRef readonly useArrayJoin: UnwrapRef readonly useArrayMap: UnwrapRef readonly useArrayReduce: UnwrapRef readonly useArraySome: UnwrapRef readonly useArrayUnique: UnwrapRef readonly useAsyncQueue: UnwrapRef readonly useAsyncState: UnwrapRef readonly useAttrs: UnwrapRef readonly useBase64: UnwrapRef readonly useBattery: UnwrapRef readonly useBluetooth: UnwrapRef readonly useBreakpoints: UnwrapRef readonly useBroadcastChannel: UnwrapRef readonly useBrowserLocation: UnwrapRef readonly useCached: UnwrapRef readonly useClipboard: UnwrapRef readonly useCloned: UnwrapRef readonly useColorMode: UnwrapRef readonly useConfirmDialog: UnwrapRef readonly useCounter: UnwrapRef readonly useCssModule: UnwrapRef readonly useCssVar: UnwrapRef readonly useCssVars: UnwrapRef readonly useCurrentElement: UnwrapRef readonly useCycleList: UnwrapRef readonly useDark: UnwrapRef readonly useDateFormat: UnwrapRef readonly useDebounce: UnwrapRef readonly useDebounceFn: UnwrapRef readonly useDebouncedRefHistory: UnwrapRef readonly useDeviceMotion: UnwrapRef readonly useDeviceOrientation: UnwrapRef readonly useDevicePixelRatio: UnwrapRef readonly useDevicesList: UnwrapRef readonly useDialog: UnwrapRef readonly useDisplayMedia: UnwrapRef readonly useDocumentVisibility: UnwrapRef readonly useDraggable: UnwrapRef readonly useDropZone: UnwrapRef readonly useElementBounding: UnwrapRef readonly useElementByPoint: UnwrapRef readonly useElementHover: UnwrapRef readonly useElementSize: UnwrapRef readonly useElementVisibility: UnwrapRef readonly useEventBus: UnwrapRef readonly useEventListener: UnwrapRef readonly useEventSource: UnwrapRef readonly useEyeDropper: UnwrapRef readonly useFavicon: UnwrapRef readonly useFetch: UnwrapRef readonly useFileDialog: UnwrapRef readonly useFileSystemAccess: UnwrapRef readonly useFocus: UnwrapRef readonly useFocusWithin: UnwrapRef readonly useFps: UnwrapRef readonly useFullscreen: UnwrapRef readonly useGamepad: UnwrapRef readonly useGeolocation: UnwrapRef readonly useI18n: UnwrapRef readonly useIdle: UnwrapRef readonly useImage: UnwrapRef readonly useInfiniteScroll: UnwrapRef readonly useIntersectionObserver: UnwrapRef readonly useInterval: UnwrapRef readonly useIntervalFn: UnwrapRef readonly useKeyModifier: UnwrapRef readonly useLastChanged: UnwrapRef readonly useLink: UnwrapRef readonly useLoadingBar: UnwrapRef readonly useLocalStorage: UnwrapRef readonly useMagicKeys: UnwrapRef readonly useManualRefHistory: UnwrapRef readonly useMediaControls: UnwrapRef readonly useMediaQuery: UnwrapRef readonly useMemoize: UnwrapRef readonly useMemory: UnwrapRef readonly useMessage: UnwrapRef readonly useMounted: UnwrapRef readonly useMouse: UnwrapRef readonly useMouseInElement: UnwrapRef readonly useMousePressed: UnwrapRef readonly useMutationObserver: UnwrapRef readonly useNavigatorLanguage: UnwrapRef readonly useNetwork: UnwrapRef readonly useNotification: UnwrapRef readonly useNow: UnwrapRef readonly useObjectUrl: UnwrapRef readonly useOffsetPagination: UnwrapRef readonly useOnline: UnwrapRef readonly usePageLeave: UnwrapRef readonly useParallax: UnwrapRef readonly useParentElement: UnwrapRef readonly usePerformanceObserver: UnwrapRef readonly usePermission: UnwrapRef readonly usePointer: UnwrapRef readonly usePointerLock: UnwrapRef readonly usePointerSwipe: UnwrapRef readonly usePreferredColorScheme: UnwrapRef readonly usePreferredContrast: UnwrapRef readonly usePreferredDark: UnwrapRef readonly usePreferredLanguages: UnwrapRef readonly usePreferredReducedMotion: UnwrapRef readonly usePrevious: UnwrapRef readonly useRafFn: UnwrapRef readonly useRefHistory: UnwrapRef readonly useResizeObserver: UnwrapRef readonly useRoute: UnwrapRef readonly useRouter: UnwrapRef readonly useScreenOrientation: UnwrapRef readonly useScreenSafeArea: UnwrapRef readonly useScriptTag: UnwrapRef readonly useScroll: UnwrapRef readonly useScrollLock: UnwrapRef readonly useSessionStorage: UnwrapRef readonly useShare: UnwrapRef readonly useSlots: UnwrapRef readonly useSorted: UnwrapRef readonly useSpeechRecognition: UnwrapRef readonly useSpeechSynthesis: UnwrapRef readonly useStepper: UnwrapRef readonly useStorage: UnwrapRef readonly useStorageAsync: UnwrapRef readonly useStyleTag: UnwrapRef readonly useSupported: UnwrapRef readonly useSwipe: UnwrapRef readonly useTemplateRefsList: UnwrapRef readonly useTextDirection: UnwrapRef readonly useTextSelection: UnwrapRef readonly useTextareaAutosize: UnwrapRef readonly useThrottle: UnwrapRef readonly useThrottleFn: UnwrapRef readonly useThrottledRefHistory: UnwrapRef readonly useTimeAgo: UnwrapRef readonly useTimeout: UnwrapRef readonly useTimeoutFn: UnwrapRef readonly useTimeoutPoll: UnwrapRef readonly useTimestamp: UnwrapRef readonly useTitle: UnwrapRef readonly useToNumber: UnwrapRef readonly useToString: UnwrapRef readonly useToggle: UnwrapRef readonly useTransition: UnwrapRef readonly useUrlSearchParams: UnwrapRef readonly useUserMedia: UnwrapRef readonly useVModel: UnwrapRef readonly useVModels: UnwrapRef readonly useVibrate: UnwrapRef readonly useVirtualList: UnwrapRef readonly useWakeLock: UnwrapRef readonly useWebNotification: UnwrapRef readonly useWebSocket: UnwrapRef readonly useWebWorker: UnwrapRef readonly useWebWorkerFn: UnwrapRef readonly useWindowFocus: UnwrapRef readonly useWindowScroll: UnwrapRef readonly useWindowSize: UnwrapRef readonly watch: UnwrapRef readonly watchArray: UnwrapRef readonly watchAtMost: UnwrapRef readonly watchDebounced: UnwrapRef readonly watchDeep: UnwrapRef readonly watchEffect: UnwrapRef readonly watchIgnorable: UnwrapRef readonly watchImmediate: UnwrapRef readonly watchOnce: UnwrapRef readonly watchPausable: UnwrapRef readonly watchPostEffect: UnwrapRef readonly watchSyncEffect: UnwrapRef readonly watchThrottled: UnwrapRef readonly watchTriggerable: UnwrapRef readonly watchWithFilter: UnwrapRef readonly whenever: UnwrapRef } } declare module '@vue/runtime-core' { interface ComponentCustomProperties { readonly EffectScope: UnwrapRef readonly asyncComputed: UnwrapRef readonly autoResetRef: UnwrapRef readonly computed: UnwrapRef readonly computedAsync: UnwrapRef readonly computedEager: UnwrapRef readonly computedInject: UnwrapRef readonly computedWithControl: UnwrapRef readonly controlledComputed: UnwrapRef readonly controlledRef: UnwrapRef readonly createApp: UnwrapRef readonly createEventHook: UnwrapRef readonly createGlobalState: UnwrapRef readonly createInjectionState: UnwrapRef readonly createReactiveFn: UnwrapRef readonly createReusableTemplate: UnwrapRef readonly createSharedComposable: UnwrapRef readonly createTemplatePromise: UnwrapRef readonly createUnrefFn: UnwrapRef readonly customRef: UnwrapRef readonly debouncedRef: UnwrapRef readonly debouncedWatch: UnwrapRef readonly defineAsyncComponent: UnwrapRef readonly defineComponent: UnwrapRef readonly eagerComputed: UnwrapRef readonly effectScope: UnwrapRef readonly extendRef: UnwrapRef readonly getCurrentInstance: UnwrapRef readonly getCurrentScope: UnwrapRef readonly h: UnwrapRef readonly ignorableWatch: UnwrapRef readonly inject: UnwrapRef readonly isDefined: UnwrapRef readonly isProxy: UnwrapRef readonly isReactive: UnwrapRef readonly isReadonly: UnwrapRef readonly isRef: UnwrapRef readonly makeDestructurable: UnwrapRef readonly markRaw: UnwrapRef readonly nextTick: UnwrapRef readonly onActivated: UnwrapRef readonly onBeforeMount: UnwrapRef readonly onBeforeRouteLeave: UnwrapRef readonly onBeforeRouteUpdate: UnwrapRef readonly onBeforeUnmount: UnwrapRef readonly onBeforeUpdate: UnwrapRef readonly onClickOutside: UnwrapRef readonly onDeactivated: UnwrapRef readonly onErrorCaptured: UnwrapRef readonly onKeyStroke: UnwrapRef readonly onLongPress: UnwrapRef readonly onMounted: UnwrapRef readonly onRenderTracked: UnwrapRef readonly onRenderTriggered: UnwrapRef readonly onScopeDispose: UnwrapRef readonly onServerPrefetch: UnwrapRef readonly onStartTyping: UnwrapRef readonly onUnmounted: UnwrapRef readonly onUpdated: UnwrapRef readonly pausableWatch: UnwrapRef readonly provide: UnwrapRef readonly reactify: UnwrapRef readonly reactifyObject: UnwrapRef readonly reactive: UnwrapRef readonly reactiveComputed: UnwrapRef readonly reactiveOmit: UnwrapRef readonly reactivePick: UnwrapRef readonly readonly: UnwrapRef readonly ref: UnwrapRef readonly refAutoReset: UnwrapRef readonly refDebounced: UnwrapRef readonly refDefault: UnwrapRef readonly refThrottled: UnwrapRef readonly refWithControl: UnwrapRef readonly resolveComponent: UnwrapRef readonly resolveRef: UnwrapRef readonly resolveUnref: UnwrapRef readonly shallowReactive: UnwrapRef readonly shallowReadonly: UnwrapRef readonly shallowRef: UnwrapRef readonly syncRef: UnwrapRef readonly syncRefs: UnwrapRef readonly templateRef: UnwrapRef readonly throttledRef: UnwrapRef readonly throttledWatch: UnwrapRef readonly toRaw: UnwrapRef readonly toReactive: UnwrapRef readonly toRef: UnwrapRef readonly toRefs: UnwrapRef readonly toValue: UnwrapRef readonly triggerRef: UnwrapRef readonly tryOnBeforeMount: UnwrapRef readonly tryOnBeforeUnmount: UnwrapRef readonly tryOnMounted: UnwrapRef readonly tryOnScopeDispose: UnwrapRef readonly tryOnUnmounted: UnwrapRef readonly unref: UnwrapRef readonly unrefElement: UnwrapRef readonly until: UnwrapRef readonly useActiveElement: UnwrapRef readonly useAnimate: UnwrapRef readonly useArrayDifference: UnwrapRef readonly useArrayEvery: UnwrapRef readonly useArrayFilter: UnwrapRef readonly useArrayFind: UnwrapRef readonly useArrayFindIndex: UnwrapRef readonly useArrayFindLast: UnwrapRef readonly useArrayIncludes: UnwrapRef readonly useArrayJoin: UnwrapRef readonly useArrayMap: UnwrapRef readonly useArrayReduce: UnwrapRef readonly useArraySome: UnwrapRef readonly useArrayUnique: UnwrapRef readonly useAsyncQueue: UnwrapRef readonly useAsyncState: UnwrapRef readonly useAttrs: UnwrapRef readonly useBase64: UnwrapRef readonly useBattery: UnwrapRef readonly useBluetooth: UnwrapRef readonly useBreakpoints: UnwrapRef readonly useBroadcastChannel: UnwrapRef readonly useBrowserLocation: UnwrapRef readonly useCached: UnwrapRef readonly useClipboard: UnwrapRef readonly useCloned: UnwrapRef readonly useColorMode: UnwrapRef readonly useConfirmDialog: UnwrapRef readonly useCounter: UnwrapRef readonly useCssModule: UnwrapRef readonly useCssVar: UnwrapRef readonly useCssVars: UnwrapRef readonly useCurrentElement: UnwrapRef readonly useCycleList: UnwrapRef readonly useDark: UnwrapRef readonly useDateFormat: UnwrapRef readonly useDebounce: UnwrapRef readonly useDebounceFn: UnwrapRef readonly useDebouncedRefHistory: UnwrapRef readonly useDeviceMotion: UnwrapRef readonly useDeviceOrientation: UnwrapRef readonly useDevicePixelRatio: UnwrapRef readonly useDevicesList: UnwrapRef readonly useDialog: UnwrapRef readonly useDisplayMedia: UnwrapRef readonly useDocumentVisibility: UnwrapRef readonly useDraggable: UnwrapRef readonly useDropZone: UnwrapRef readonly useElementBounding: UnwrapRef readonly useElementByPoint: UnwrapRef readonly useElementHover: UnwrapRef readonly useElementSize: UnwrapRef readonly useElementVisibility: UnwrapRef readonly useEventBus: UnwrapRef readonly useEventListener: UnwrapRef readonly useEventSource: UnwrapRef readonly useEyeDropper: UnwrapRef readonly useFavicon: UnwrapRef readonly useFetch: UnwrapRef readonly useFileDialog: UnwrapRef readonly useFileSystemAccess: UnwrapRef readonly useFocus: UnwrapRef readonly useFocusWithin: UnwrapRef readonly useFps: UnwrapRef readonly useFullscreen: UnwrapRef readonly useGamepad: UnwrapRef readonly useGeolocation: UnwrapRef readonly useI18n: UnwrapRef readonly useIdle: UnwrapRef readonly useImage: UnwrapRef readonly useInfiniteScroll: UnwrapRef readonly useIntersectionObserver: UnwrapRef readonly useInterval: UnwrapRef readonly useIntervalFn: UnwrapRef readonly useKeyModifier: UnwrapRef readonly useLastChanged: UnwrapRef readonly useLink: UnwrapRef readonly useLoadingBar: UnwrapRef readonly useLocalStorage: UnwrapRef readonly useMagicKeys: UnwrapRef readonly useManualRefHistory: UnwrapRef readonly useMediaControls: UnwrapRef readonly useMediaQuery: UnwrapRef readonly useMemoize: UnwrapRef readonly useMemory: UnwrapRef readonly useMessage: UnwrapRef readonly useMounted: UnwrapRef readonly useMouse: UnwrapRef readonly useMouseInElement: UnwrapRef readonly useMousePressed: UnwrapRef readonly useMutationObserver: UnwrapRef readonly useNavigatorLanguage: UnwrapRef readonly useNetwork: UnwrapRef readonly useNotification: UnwrapRef readonly useNow: UnwrapRef readonly useObjectUrl: UnwrapRef readonly useOffsetPagination: UnwrapRef readonly useOnline: UnwrapRef readonly usePageLeave: UnwrapRef readonly useParallax: UnwrapRef readonly useParentElement: UnwrapRef readonly usePerformanceObserver: UnwrapRef readonly usePermission: UnwrapRef readonly usePointer: UnwrapRef readonly usePointerLock: UnwrapRef readonly usePointerSwipe: UnwrapRef readonly usePreferredColorScheme: UnwrapRef readonly usePreferredContrast: UnwrapRef readonly usePreferredDark: UnwrapRef readonly usePreferredLanguages: UnwrapRef readonly usePreferredReducedMotion: UnwrapRef readonly usePrevious: UnwrapRef readonly useRafFn: UnwrapRef readonly useRefHistory: UnwrapRef readonly useResizeObserver: UnwrapRef readonly useRoute: UnwrapRef readonly useRouter: UnwrapRef readonly useScreenOrientation: UnwrapRef readonly useScreenSafeArea: UnwrapRef readonly useScriptTag: UnwrapRef readonly useScroll: UnwrapRef readonly useScrollLock: UnwrapRef readonly useSessionStorage: UnwrapRef readonly useShare: UnwrapRef readonly useSlots: UnwrapRef readonly useSorted: UnwrapRef readonly useSpeechRecognition: UnwrapRef readonly useSpeechSynthesis: UnwrapRef readonly useStepper: UnwrapRef readonly useStorage: UnwrapRef readonly useStorageAsync: UnwrapRef readonly useStyleTag: UnwrapRef readonly useSupported: UnwrapRef readonly useSwipe: UnwrapRef readonly useTemplateRefsList: UnwrapRef readonly useTextDirection: UnwrapRef readonly useTextSelection: UnwrapRef readonly useTextareaAutosize: UnwrapRef readonly useThrottle: UnwrapRef readonly useThrottleFn: UnwrapRef readonly useThrottledRefHistory: UnwrapRef readonly useTimeAgo: UnwrapRef readonly useTimeout: UnwrapRef readonly useTimeoutFn: UnwrapRef readonly useTimeoutPoll: UnwrapRef readonly useTimestamp: UnwrapRef readonly useTitle: UnwrapRef readonly useToNumber: UnwrapRef readonly useToString: UnwrapRef readonly useToggle: UnwrapRef readonly useTransition: UnwrapRef readonly useUrlSearchParams: UnwrapRef readonly useUserMedia: UnwrapRef readonly useVModel: UnwrapRef readonly useVModels: UnwrapRef readonly useVibrate: UnwrapRef readonly useVirtualList: UnwrapRef readonly useWakeLock: UnwrapRef readonly useWebNotification: UnwrapRef readonly useWebSocket: UnwrapRef readonly useWebWorker: UnwrapRef readonly useWebWorkerFn: UnwrapRef readonly useWindowFocus: UnwrapRef readonly useWindowScroll: UnwrapRef readonly useWindowSize: UnwrapRef readonly watch: UnwrapRef readonly watchArray: UnwrapRef readonly watchAtMost: UnwrapRef readonly watchDebounced: UnwrapRef readonly watchDeep: UnwrapRef readonly watchEffect: UnwrapRef readonly watchIgnorable: UnwrapRef readonly watchImmediate: UnwrapRef readonly watchOnce: UnwrapRef readonly watchPausable: UnwrapRef readonly watchPostEffect: UnwrapRef readonly watchSyncEffect: UnwrapRef readonly watchThrottled: UnwrapRef readonly watchTriggerable: UnwrapRef readonly watchWithFilter: UnwrapRef readonly whenever: UnwrapRef } } ================================================ FILE: components.d.ts ================================================ /* eslint-disable */ /* prettier-ignore */ // @ts-nocheck // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 import '@vue/runtime-core' export {} declare module '@vue/runtime-core' { export interface GlobalComponents { '404.page': typeof import('./src/pages/404.page.vue')['default'] About: typeof import('./src/pages/About.vue')['default'] App: typeof import('./src/App.vue')['default'] AsciiTextDrawer: typeof import('./src/tools/ascii-text-drawer/ascii-text-drawer.vue')['default'] 'Base.layout': typeof import('./src/layouts/base.layout.vue')['default'] Base64FileConverter: typeof import('./src/tools/base64-file-converter/base64-file-converter.vue')['default'] Base64StringConverter: typeof import('./src/tools/base64-string-converter/base64-string-converter.vue')['default'] BasicAuthGenerator: typeof import('./src/tools/basic-auth-generator/basic-auth-generator.vue')['default'] Bcrypt: typeof import('./src/tools/bcrypt/bcrypt.vue')['default'] BenchmarkBuilder: typeof import('./src/tools/benchmark-builder/benchmark-builder.vue')['default'] Bip39Generator: typeof import('./src/tools/bip39-generator/bip39-generator.vue')['default'] CAlert: typeof import('./src/ui/c-alert/c-alert.vue')['default'] 'CAlert.demo': typeof import('./src/ui/c-alert/c-alert.demo.vue')['default'] CameraRecorder: typeof import('./src/tools/camera-recorder/camera-recorder.vue')['default'] CaseConverter: typeof import('./src/tools/case-converter/case-converter.vue')['default'] CButton: typeof import('./src/ui/c-button/c-button.vue')['default'] 'CButton.demo': typeof import('./src/ui/c-button/c-button.demo.vue')['default'] CButtonsSelect: typeof import('./src/ui/c-buttons-select/c-buttons-select.vue')['default'] 'CButtonsSelect.demo': typeof import('./src/ui/c-buttons-select/c-buttons-select.demo.vue')['default'] CCard: typeof import('./src/ui/c-card/c-card.vue')['default'] 'CCard.demo': typeof import('./src/ui/c-card/c-card.demo.vue')['default'] CCollapse: typeof import('./src/ui/c-collapse/c-collapse.vue')['default'] 'CCollapse.demo': typeof import('./src/ui/c-collapse/c-collapse.demo.vue')['default'] CDiffEditor: typeof import('./src/ui/c-diff-editor/c-diff-editor.vue')['default'] CFileUpload: typeof import('./src/ui/c-file-upload/c-file-upload.vue')['default'] 'CFileUpload.demo': typeof import('./src/ui/c-file-upload/c-file-upload.demo.vue')['default'] ChmodCalculator: typeof import('./src/tools/chmod-calculator/chmod-calculator.vue')['default'] Chronometer: typeof import('./src/tools/chronometer/chronometer.vue')['default'] CInputText: typeof import('./src/ui/c-input-text/c-input-text.vue')['default'] 'CInputText.demo': typeof import('./src/ui/c-input-text/c-input-text.demo.vue')['default'] CKeyValueList: typeof import('./src/ui/c-key-value-list/c-key-value-list.vue')['default'] CKeyValueListItem: typeof import('./src/ui/c-key-value-list/c-key-value-list-item.vue')['default'] CLabel: typeof import('./src/ui/c-label/c-label.vue')['default'] CLink: typeof import('./src/ui/c-link/c-link.vue')['default'] 'CLink.demo': typeof import('./src/ui/c-link/c-link.demo.vue')['default'] CMarkdown: typeof import('./src/ui/c-markdown/c-markdown.vue')['default'] 'CMarkdown.demo': typeof import('./src/ui/c-markdown/c-markdown.demo.vue')['default'] CModal: typeof import('./src/ui/c-modal/c-modal.vue')['default'] 'CModal.demo': typeof import('./src/ui/c-modal/c-modal.demo.vue')['default'] CModalValue: typeof import('./src/ui/c-modal-value/c-modal-value.vue')['default'] 'CModalValue.demo': typeof import('./src/ui/c-modal-value/c-modal-value.demo.vue')['default'] CollapsibleToolMenu: typeof import('./src/components/CollapsibleToolMenu.vue')['default'] ColorConverter: typeof import('./src/tools/color-converter/color-converter.vue')['default'] ColoredCard: typeof import('./src/components/ColoredCard.vue')['default'] CommandPalette: typeof import('./src/modules/command-palette/command-palette.vue')['default'] CommandPaletteOption: typeof import('./src/modules/command-palette/components/command-palette-option.vue')['default'] CrontabGenerator: typeof import('./src/tools/crontab-generator/crontab-generator.vue')['default'] CSelect: typeof import('./src/ui/c-select/c-select.vue')['default'] 'CSelect.demo': typeof import('./src/ui/c-select/c-select.demo.vue')['default'] CTable: typeof import('./src/ui/c-table/c-table.vue')['default'] 'CTable.demo': typeof import('./src/ui/c-table/c-table.demo.vue')['default'] CTextCopyable: typeof import('./src/ui/c-text-copyable/c-text-copyable.vue')['default'] 'CTextCopyable.demo': typeof import('./src/ui/c-text-copyable/c-text-copyable.demo.vue')['default'] CTooltip: typeof import('./src/ui/c-tooltip/c-tooltip.vue')['default'] 'CTooltip.demo': typeof import('./src/ui/c-tooltip/c-tooltip.demo.vue')['default'] DateTimeConverter: typeof import('./src/tools/date-time-converter/date-time-converter.vue')['default'] 'DemoHome.page': typeof import('./src/ui/demo/demo-home.page.vue')['default'] DemoWrapper: typeof import('./src/ui/demo/demo-wrapper.vue')['default'] DeviceInformation: typeof import('./src/tools/device-information/device-information.vue')['default'] DiffViewer: typeof import('./src/tools/json-diff/diff-viewer/diff-viewer.vue')['default'] DockerRunToDockerComposeConverter: typeof import('./src/tools/docker-run-to-docker-compose-converter/docker-run-to-docker-compose-converter.vue')['default'] DynamicValues: typeof import('./src/tools/benchmark-builder/dynamic-values.vue')['default'] Editor: typeof import('./src/tools/html-wysiwyg-editor/editor/editor.vue')['default'] EmailNormalizer: typeof import('./src/tools/email-normalizer/email-normalizer.vue')['default'] EmojiCard: typeof import('./src/tools/emoji-picker/emoji-card.vue')['default'] EmojiGrid: typeof import('./src/tools/emoji-picker/emoji-grid.vue')['default'] EmojiPicker: typeof import('./src/tools/emoji-picker/emoji-picker.vue')['default'] Encryption: typeof import('./src/tools/encryption/encryption.vue')['default'] EtaCalculator: typeof import('./src/tools/eta-calculator/eta-calculator.vue')['default'] FavoriteButton: typeof import('./src/components/FavoriteButton.vue')['default'] FormatTransformer: typeof import('./src/components/FormatTransformer.vue')['default'] GitMemo: typeof import('./src/tools/git-memo/git-memo.vue')['default'] 'GitMemo.content': typeof import('./src/tools/git-memo/git-memo.content.md')['default'] HashText: typeof import('./src/tools/hash-text/hash-text.vue')['default'] HmacGenerator: typeof import('./src/tools/hmac-generator/hmac-generator.vue')['default'] 'Home.page': typeof import('./src/pages/Home.page.vue')['default'] HtmlEntities: typeof import('./src/tools/html-entities/html-entities.vue')['default'] HtmlWysiwygEditor: typeof import('./src/tools/html-wysiwyg-editor/html-wysiwyg-editor.vue')['default'] HttpStatusCodes: typeof import('./src/tools/http-status-codes/http-status-codes.vue')['default'] IbanValidatorAndParser: typeof import('./src/tools/iban-validator-and-parser/iban-validator-and-parser.vue')['default'] 'IconMdi:brushVariant': typeof import('~icons/mdi/brush-variant')['default'] 'IconMdi:kettleSteamOutline': typeof import('~icons/mdi/kettle-steam-outline')['default'] IconMdiChevronDown: typeof import('~icons/mdi/chevron-down')['default'] IconMdiChevronRight: typeof import('~icons/mdi/chevron-right')['default'] IconMdiClose: typeof import('~icons/mdi/close')['default'] IconMdiContentCopy: typeof import('~icons/mdi/content-copy')['default'] IconMdiEye: typeof import('~icons/mdi/eye')['default'] IconMdiEyeOff: typeof import('~icons/mdi/eye-off')['default'] IconMdiHeart: typeof import('~icons/mdi/heart')['default'] IconMdiSearch: typeof import('~icons/mdi/search')['default'] IconMdiTranslate: typeof import('~icons/mdi/translate')['default'] IconMdiTriangleDown: typeof import('~icons/mdi/triangle-down')['default'] InputCopyable: typeof import('./src/components/InputCopyable.vue')['default'] IntegerBaseConverter: typeof import('./src/tools/integer-base-converter/integer-base-converter.vue')['default'] Ipv4AddressConverter: typeof import('./src/tools/ipv4-address-converter/ipv4-address-converter.vue')['default'] Ipv4RangeExpander: typeof import('./src/tools/ipv4-range-expander/ipv4-range-expander.vue')['default'] Ipv4SubnetCalculator: typeof import('./src/tools/ipv4-subnet-calculator/ipv4-subnet-calculator.vue')['default'] Ipv6UlaGenerator: typeof import('./src/tools/ipv6-ula-generator/ipv6-ula-generator.vue')['default'] JsonDiff: typeof import('./src/tools/json-diff/json-diff.vue')['default'] JsonMinify: typeof import('./src/tools/json-minify/json-minify.vue')['default'] JsonToCsv: typeof import('./src/tools/json-to-csv/json-to-csv.vue')['default'] JsonToToml: typeof import('./src/tools/json-to-toml/json-to-toml.vue')['default'] JsonToXml: typeof import('./src/tools/json-to-xml/json-to-xml.vue')['default'] JsonToYaml: typeof import('./src/tools/json-to-yaml-converter/json-to-yaml.vue')['default'] JsonViewer: typeof import('./src/tools/json-viewer/json-viewer.vue')['default'] JwtParser: typeof import('./src/tools/jwt-parser/jwt-parser.vue')['default'] KeycodeInfo: typeof import('./src/tools/keycode-info/keycode-info.vue')['default'] ListConverter: typeof import('./src/tools/list-converter/list-converter.vue')['default'] LocaleSelector: typeof import('./src/modules/i18n/components/locale-selector.vue')['default'] LoremIpsumGenerator: typeof import('./src/tools/lorem-ipsum-generator/lorem-ipsum-generator.vue')['default'] MacAddressGenerator: typeof import('./src/tools/mac-address-generator/mac-address-generator.vue')['default'] MacAddressLookup: typeof import('./src/tools/mac-address-lookup/mac-address-lookup.vue')['default'] MarkdownToHtml: typeof import('./src/tools/markdown-to-html/markdown-to-html.vue')['default'] MathEvaluator: typeof import('./src/tools/math-evaluator/math-evaluator.vue')['default'] MenuBar: typeof import('./src/tools/html-wysiwyg-editor/editor/menu-bar.vue')['default'] MenuBarItem: typeof import('./src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue')['default'] MenuIconItem: typeof import('./src/components/MenuIconItem.vue')['default'] MenuLayout: typeof import('./src/components/MenuLayout.vue')['default'] MetaTagGenerator: typeof import('./src/tools/meta-tag-generator/meta-tag-generator.vue')['default'] MimeTypes: typeof import('./src/tools/mime-types/mime-types.vue')['default'] NavbarButtons: typeof import('./src/components/NavbarButtons.vue')['default'] NCheckbox: typeof import('naive-ui')['NCheckbox'] NCollapseTransition: typeof import('naive-ui')['NCollapseTransition'] NConfigProvider: typeof import('naive-ui')['NConfigProvider'] NDivider: typeof import('naive-ui')['NDivider'] NEllipsis: typeof import('naive-ui')['NEllipsis'] NH1: typeof import('naive-ui')['NH1'] NH3: typeof import('naive-ui')['NH3'] NIcon: typeof import('naive-ui')['NIcon'] NLayout: typeof import('naive-ui')['NLayout'] NLayoutSider: typeof import('naive-ui')['NLayoutSider'] NMenu: typeof import('naive-ui')['NMenu'] NSpace: typeof import('naive-ui')['NSpace'] NTable: typeof import('naive-ui')['NTable'] NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default'] OtpCodeGeneratorAndValidator: typeof import('./src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue')['default'] PasswordStrengthAnalyser: typeof import('./src/tools/password-strength-analyser/password-strength-analyser.vue')['default'] PdfSignatureChecker: typeof import('./src/tools/pdf-signature-checker/pdf-signature-checker.vue')['default'] PdfSignatureDetails: typeof import('./src/tools/pdf-signature-checker/components/pdf-signature-details.vue')['default'] PercentageCalculator: typeof import('./src/tools/percentage-calculator/percentage-calculator.vue')['default'] PhoneParserAndFormatter: typeof import('./src/tools/phone-parser-and-formatter/phone-parser-and-formatter.vue')['default'] QrCodeGenerator: typeof import('./src/tools/qr-code-generator/qr-code-generator.vue')['default'] RandomPortGenerator: typeof import('./src/tools/random-port-generator/random-port-generator.vue')['default'] RegexMemo: typeof import('./src/tools/regex-memo/regex-memo.vue')['default'] 'RegexMemo.content': typeof import('./src/tools/regex-memo/regex-memo.content.md')['default'] RegexTester: typeof import('./src/tools/regex-tester/regex-tester.vue')['default'] ResultRow: typeof import('./src/tools/ipv4-range-expander/result-row.vue')['default'] RomanNumeralConverter: typeof import('./src/tools/roman-numeral-converter/roman-numeral-converter.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] RsaKeyPairGenerator: typeof import('./src/tools/rsa-key-pair-generator/rsa-key-pair-generator.vue')['default'] SafelinkDecoder: typeof import('./src/tools/safelink-decoder/safelink-decoder.vue')['default'] SlugifyString: typeof import('./src/tools/slugify-string/slugify-string.vue')['default'] SpanCopyable: typeof import('./src/components/SpanCopyable.vue')['default'] SqlPrettify: typeof import('./src/tools/sql-prettify/sql-prettify.vue')['default'] StringObfuscator: typeof import('./src/tools/string-obfuscator/string-obfuscator.vue')['default'] SvgPlaceholderGenerator: typeof import('./src/tools/svg-placeholder-generator/svg-placeholder-generator.vue')['default'] TemperatureConverter: typeof import('./src/tools/temperature-converter/temperature-converter.vue')['default'] TextareaCopyable: typeof import('./src/components/TextareaCopyable.vue')['default'] TextDiff: typeof import('./src/tools/text-diff/text-diff.vue')['default'] TextStatistics: typeof import('./src/tools/text-statistics/text-statistics.vue')['default'] TextToBinary: typeof import('./src/tools/text-to-binary/text-to-binary.vue')['default'] TextToNatoAlphabet: typeof import('./src/tools/text-to-nato-alphabet/text-to-nato-alphabet.vue')['default'] TextToUnicode: typeof import('./src/tools/text-to-unicode/text-to-unicode.vue')['default'] TokenDisplay: typeof import('./src/tools/otp-code-generator-and-validator/token-display.vue')['default'] 'TokenGenerator.tool': typeof import('./src/tools/token-generator/token-generator.tool.vue')['default'] TomlToJson: typeof import('./src/tools/toml-to-json/toml-to-json.vue')['default'] TomlToYaml: typeof import('./src/tools/toml-to-yaml/toml-to-yaml.vue')['default'] 'Tool.layout': typeof import('./src/layouts/tool.layout.vue')['default'] ToolCard: typeof import('./src/components/ToolCard.vue')['default'] UlidGenerator: typeof import('./src/tools/ulid-generator/ulid-generator.vue')['default'] UrlEncoder: typeof import('./src/tools/url-encoder/url-encoder.vue')['default'] UrlParser: typeof import('./src/tools/url-parser/url-parser.vue')['default'] UserAgentParser: typeof import('./src/tools/user-agent-parser/user-agent-parser.vue')['default'] UserAgentResultCards: typeof import('./src/tools/user-agent-parser/user-agent-result-cards.vue')['default'] UuidGenerator: typeof import('./src/tools/uuid-generator/uuid-generator.vue')['default'] WifiQrCodeGenerator: typeof import('./src/tools/wifi-qr-code-generator/wifi-qr-code-generator.vue')['default'] XmlFormatter: typeof import('./src/tools/xml-formatter/xml-formatter.vue')['default'] XmlToJson: typeof import('./src/tools/xml-to-json/xml-to-json.vue')['default'] YamlToJson: typeof import('./src/tools/yaml-to-json-converter/yaml-to-json.vue')['default'] YamlToToml: typeof import('./src/tools/yaml-to-toml/yaml-to-toml.vue')['default'] YamlViewer: typeof import('./src/tools/yaml-viewer/yaml-viewer.vue')['default'] } } ================================================ FILE: env.d.ts ================================================ /// /// 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; } ================================================ FILE: index.html ================================================ IT Tools - Handy online tools for developers
================================================ FILE: locales/de.yml ================================================ '404': notFound: 404 Nicht gefunden sorry: Entschuldigung, diese Seite scheint nicht zu existieren maybe: >- Vielleicht macht der Cache etwas Seltsames. Mit einem erzwungenen Neuladen versuchen? backHome: Zurück zur Startseite home: categories: newestTools: Neueste Tools favoriteTools: Deine Lieblingstools allTools: Alle Tools favoritesDndToolTip: 'Ziehen und Ablegen, um Favoriten neu zu ordnen' subtitle: Praktische Tools für Entwickler toggleMenu: Menü umschalten home: Startseite uiLib: UI-Bibliothek support: Unterstütze die Entwicklung von IT-Tools buyMeACoffee: Kauf mir einen Kaffee follow: title: Magst du IT-Tools? p1: Gib uns einen Stern auf githubRepository: IT-Tools GitHub-Repository p2: oder folge uns auf twitterXAccount: IT-Tools X-Konto thankYou: Vielen Dank! nav: github: GitHub-Repository githubRepository: IT-Tools GitHub-Repository twitterX: X-Konto twitterXAccount: IT-Tools X-Konto about: Über IT-Tools aboutLabel: Über darkMode: Dunkelmodus lightMode: Hellmodus mode: Wechseln zwischen dunklem/hellem Modus about: content: > # Über IT-Tools Diese wunderbare Website, erstellt mit ❤ von [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about), sammelt nützliche Tools für Entwickler und Menschen, die in der IT arbeiten. Wenn du sie nützlich findest, teile sie gerne mit Personen, von denen du denkst, dass sie sie ebenfalls nützlich finden könnten, und vergiss nicht, sie in deiner Lesezeichenleiste zu speichern! IT-Tools ist Open Source (unter der GPL-3.0-Lizenz) und kostenlos und wird es immer sein, aber es kostet mich Geld, die Website zu hosten und den Domainnamen zu erneuern. Wenn du meine Arbeit unterstützen möchtest und mich ermutigen möchtest, mehr Tools hinzuzufügen, überlege bitte, mich durch [Sponsoring](https://www.buymeacoffee.com/cthmsst) zu unterstützen. ## Technologien IT-Tools wurde mit Vue.js (Vue 3) und der Naive UI-Komponentenbibliothek erstellt und wird von Vercel gehostet und kontinuierlich bereitgestellt. In einigen Tools werden Drittanbieter-Open-Source-Bibliotheken verwendet. Du findest die vollständige Liste in der [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json)-Datei des Repositorys. ## Einen Fehler gefunden? Ein Tool fehlt? Wenn du ein Tool benötigst, das hier noch nicht vorhanden ist, und du denkst, dass es nützlich sein könnte, bist du herzlich eingeladen, einen Feature-Request im [Issues-Bereich](https://github.com/CorentinTh/it-tools/issues/new/choose) im GitHub-Repository einzureichen. Und wenn du einen Fehler gefunden hast oder etwas nicht wie erwartet funktioniert, melde bitte einen Fehler im [Issues-Bereich](https://github.com/CorentinTh/it-tools/issues/new/choose) im GitHub-Repository. favoriteButton: remove: Aus Favoriten entfernen add: Zu Favoriten hinzufügen toolCard: new: Neu search: label: Suche tools: categories: favorite-tools: Deine Lieblingstools crypto: Krypto converter: Konverter web: Web images and videos: Bilder & Videos development: Entwicklung network: Netzwerk math: Mathematik measurement: Messung text: Text data: Daten password-strength-analyser: title: Passwortstärken-Analysator description: >- Ermittle die Stärke deines Passworts mit diesem Client-seitigen Passwortstärken-Analysator und Tool zur Schätzung der Knackzeit. chronometer: title: Chronometer description: >- Überwache die Dauer einer Sache. Im Grunde ein Chronometer mit einfachen Chronometerfunktionen. token-generator: title: Token-Generator description: >- Generiere eine zufällige Zeichenfolge mit den von dir gewünschten Zeichen, Groß- oder Kleinbuchstaben, Zahlen und/oder Symbolen. uppercase: Großbuchstaben (ABC...) lowercase: Kleinbuchstaben (abc...) numbers: Zahlen (123...) symbols: Symbole (!-;...) length: Länge tokenPlaceholder: Der Token ... copied: Token in die Zwischenablage kopiert button: copy: Kopieren refresh: Aktualisieren percentage-calculator: title: Prozentrechner description: >- Berechne einfach Prozentsätze von einem Wert zu einem anderen Wert oder von einem Prozentsatz zu einem Wert. svg-placeholder-generator: title: SVG-Platzhalter-Generator description: >- Generiere SVG-Bilder, die als Platzhalter in deinen Anwendungen verwendet werden können. json-to-csv: title: JSON zu CSV description: Konvertiere JSON mit automatischer Headererkennung in CSV. camera-recorder: title: Kamera-Rekorder description: Mache ein Foto oder nimm ein Video von deiner Webcam oder Kamera auf. keycode-info: title: Keycode-Info description: >- Finde den JavaScript-Keycode, den Code, den Standort und die Modifikatoren einer beliebigen gedrückten Taste. emoji-picker: title: Emoji-Picker description: >- Einfaches Kopieren und Einfügen von Emojis. Erhalte außerdem den Unicode- und Codepunkt-Wert jedes Emojis. color-converter: title: Farbkonverter description: >- Konvertiere Farben zwischen den verschiedenen Formaten (Hex, RGB, HSL und CSS-Name). bcrypt: title: Bcrypt description: >- Hashen und Vergleichen von Strings mit bcrypt. Bcrypt ist eine auf der Blowfish-Chiffre basierende Hash-Funktion. crontab-generator: title: Crontab-Generator description: >- Überprüfe und generiere Crontab und erhalte die menschenlesbare Beschreibung des Cron-Zeitplans. http-status-codes: title: HTTP-Statuscodes description: Liste aller HTTP-Statuscodes, ihrer Namen und ihrer Bedeutung. sql-prettify: title: SQL verschönern und formatieren description: >- Formatiere und verschönere deine SQL-Abfragen online (unterstützt verschiedene SQL-Dialekte). benchmark-builder: title: Benchmark-Builder description: >- Vergleiche ganz einfach die Ausführungszeit von Aufgaben mit diesem sehr einfachen Online-Benchmark-Builder. git-memo: title: Git-Spickzettel description: >- Git ist eine dezentrale Versionsverwaltungssoftware. Mit diesem Spickzettel hast du schnellen Zugriff auf die gängigsten Git-Befehle. slugify-string: title: Slugify String description: Mache einen String URL-, Dateinamen- und ID-sicher. encryption: title: Text verschlüsseln / entschlüsseln description: >- Verschlüssele und entschlüssele Klartext mithilfe von Kryptoalgorithmen wie AES, TripleDES, Rabbit oder RC4. random-port-generator: title: Zufälliger Port-Generator description: >- Generiere zufällige Portnummern außerhalb des Bereichs der "bekannten" Ports (0-1023). yaml-prettify: title: YAML verschönern und formatieren description: Verschönere deinen YAML-String in ein menschenlesbares Format. eta-calculator: title: ETA-Rechner description: >- Ein ETA (Estimated Time of Arrival)-Rechner, um die ungefähre Endzeit einer Aufgabe zu erfahren, z. B. den Zeitpunkt des Endes eines Downloads. roman-numeral-converter: title: Römische Zahlen Konverter description: >- Konvertiere römische Zahlen in Dezimalzahlen und Dezimalzahlen in römische Zahlen. hmac-generator: title: HMAC-Generator description: >- Berechnet einen hashbasierten Nachrichtenauthentifizierungscode (HMAC) unter Verwendung eines geheimen Schlüssels und deiner bevorzugten Hash-Funktion. bip39-generator: title: BIP39-Passphrasengenerator description: >- Generiere BIP39-Passphrasen aus vorhandener oder zufälliger Mnemonik oder erhalte die Mnemonik aus der Passphrase. base64-file-converter: title: Base64-Dateikonverter description: Konvertiere Strings, Dateien oder Bilder in ihre Base64-Repräsentation. list-converter: title: Listenkonverter description: >- Dieses Tool kann spaltenbasierte Daten verarbeiten und verschiedene Änderungen (transponieren, Präfix und Suffix hinzufügen, Liste umkehren, Liste sortieren, Werte in Kleinbuchstaben umwandeln, Werte abschneiden) auf jede Zeile anwenden. base64-string-converter: title: Base64-String-Encoder/Decoder description: Codiere und decodiere Strings einfach in ihre Base64-Repräsentation. toml-to-yaml: title: TOML zu YAML description: Parse und konvertiere TOML zu YAML. math-evaluator: title: Mathematischer Auswerter description: >- Ein Taschenrechner zum Auswerten mathematischer Ausdrücke. Du kannst Funktionen wie sqrt, cos, sin, abs usw. verwenden. json-to-yaml-converter: title: JSON zu YAML description: Konvertiere JSON einfach in YAML mit diesem Live-Online-Konverter. url-parser: title: URL-Parser description: >- Parse eine URL-Zeichenfolge, um alle verschiedenen Teile (Protokoll, Ursprung, Parameter, Port, Benutzername-Passwort usw.) zu erhalten. iban-validator-and-parser: title: IBAN-Validator und -Parser description: >- Validiere und parse IBAN-Nummern. Überprüfe, ob die IBAN gültig ist, und erhalte das Land, BBAN, ob es sich um eine QR-IBAN handelt und das IBAN-freundliche Format. user-agent-parser: title: User-Agent-Parser description: >- Erkenne und parse Browser, Engine, Betriebssystem, CPU und Gerätetyp/-modell aus einer User-Agent-Zeichenfolge. numeronym-generator: title: Numeronym-Generator description: >- Ein Numeronym ist ein Wort, bei dem eine Zahl verwendet wird, um eine Abkürzung zu bilden. Zum Beispiel ist "i18n" ein Numeronym für "internationalization", wobei 18 für die Anzahl der Buchstaben zwischen dem ersten "i" und dem letzten "n" im Wort steht. case-converter: title: Fall-Konverter description: >- Ändere den Fall eines Strings und wähle zwischen verschiedenen Formaten aus. html-entities: title: HTML-Entity-Escape description: >- Escape oder unescape HTML-Entitäten (ersetze <, >, &, " und ' durch ihre HTML-Version). json-prettify: title: JSON verschönern und formatieren description: Verschönere deinen JSON-String in ein menschenlesbares Format. docker-run-to-docker-compose-converter: title: Docker run zu Docker compose Konverter description: Wandle docker run-Befehle in docker-compose-Dateien um! mac-address-lookup: title: MAC-Adressensuche description: Finde den Anbieter und Hersteller eines Geräts anhand seiner MAC-Adresse. mime-types: title: MIME-Typen description: Konvertiere MIME-Typen in Erweiterungen und umgekehrt. toml-to-json: title: TOML zu JSON description: Parse und konvertiere TOML zu JSON. lorem-ipsum-generator: title: Lorem Ipsum Generator description: >- Lorem Ipsum ist ein Platzhaltertext, der häufig verwendet wird, um die visuelle Form eines Dokuments oder einer Schriftart ohne Verwendung von bedeutendem Inhalt zu demonstrieren. qrcode-generator: title: QR-Code-Generator description: >- Generiere und downloade QR-Codes für eine URL oder einfach einen Text und passe die Hintergrund- und Vordergrundfarben an. wifi-qrcode-generator: title: WLAN-QR-Code-Generator description: >- Generiere und lade QR-Codes für schnelle Verbindungen zu WLAN-Netzwerken herunter. xml-formatter: title: XML-Formatter description: Verschönere deinen XML-String in ein menschenlesbares Format. temperature-converter: title: Temperaturkonverter description: >- Temperaturgradumrechnungen für Kelvin, Celsius, Fahrenheit, Rankine, Delisle, Newton, Réaumur und Rømer. chmod-calculator: title: Chmod-Rechner description: >- Berechne deine Chmod-Berechtigungen und -Befehle mit diesem Online-Chmod-Rechner. rsa-key-pair-generator: title: RSA-Schlüsselpaar-Generator description: Generiere neue zufällige RSA-Private- und Public-Key-PEM-Zertifikate. html-wysiwyg-editor: title: HTML-WYSIWYG-Editor description: >- Online-HTML-Editor mit funktionsreichem WYSIWYG-Editor, erhalte sofort den Quellcode des Inhalts. yaml-to-toml: title: YAML zu TOML description: Parse und konvertiere YAML zu TOML. mac-address-generator: title: MAC-Adressen-Generator description: >- Gebe die Menge und das Präfix ein. MAC-Adressen werden in deiner gewählten Schreibweise (Groß- oder Kleinbuchstaben) generiert. json-diff: title: JSON-Unterschied description: Vergleiche zwei JSON-Objekte und erhalte die Unterschiede zwischen ihnen. jwt-parser: title: JWT-Parser description: >- Parse und decodiere deinen JSON-Web-Token (JWT) und zeige dessen Inhalt an. date-converter: title: Datum-Uhrzeit-Konverter description: Konvertiere Datum und Uhrzeit in verschiedene Formate. phone-parser-and-formatter: title: Telefonnummer-Parser und -Formatter description: >- Parse, validiere und formatiere Telefonnummern. Erhalte Informationen zur Telefonnummer, wie z. B. die Landesvorwahl, den Typ usw. ipv4-subnet-calculator: title: IPv4-Subnetzrechner description: >- Parse deine IPv4-CIDR-Blöcke und erhalte alle Informationen, die du über dein Subnetz benötigst. og-meta-generator: title: Open Graph Meta-Generator description: Generiere Open Graph- und Social-HTML-Metatags für deine Website. ipv6-ula-generator: title: IPv6-ULA-Generator description: >- Generiere deine eigenen lokalen, nicht routbaren IP-Adressen in deinem Netzwerk gemäß RFC4193. hash-text: title: Text hashen description: >- Hashe einen Text-String mit der von dir benötigten Funktion: MD5, SHA1, SHA256, SHA224, SHA512, SHA384, SHA3 oder RIPEMD160 json-to-toml: title: JSON zu TOML description: Parse und konvertiere JSON zu TOML. device-information: title: Geräteinformationen description: >- Informationen zu deinem aktuellen Gerät (Bildschirmgröße, Pixelverhältnis, Benutzeragent, ...) erhalten. pdf-signature-checker: title: PDF-Signaturprüfer description: >- Überprüfe die Signaturen einer PDF-Datei. Eine signierte PDF-Datei enthält eine oder mehrere Signaturen, die verwendet werden können, um festzustellen, ob der Inhalt der Datei seit dem Zeitpunkt der Signierung geändert wurde. json-minify: title: JSON minifizieren description: >- Minifiziere und komprimiere dein JSON, indem unnötige Leerzeichen entfernt werden. ulid-generator: title: ULID-Generator description: >- Generiere zufällige Universally Unique Lexicographically Sortable Identifier (ULID). string-obfuscator: title: String-Verschleierer description: >- Verschleiere einen String (wie ein Secret, eine IBAN oder ein Token), um ihn weitergeben zu können und identifizierbar zu machen, ohne seinen Inhalt preiszugeben. base-converter: title: Ganzzahl-Basiskonverter description: >- Konvertiere Zahlen zwischen verschiedenen Basen (Dezimal, Hexadezimal, Binär, Oktal, Base64, ...). yaml-to-json-converter: title: YAML zu JSON description: Konvertiere YAML einfach in JSON mit diesem Live-Online-Konverter. uuid-generator: title: UUID-Generator description: >- Ein Universally Unique Identifier (UUID) ist eine 128-Bit-Nummer, die zur Identifizierung von Informationen in Computersystemen verwendet wird. Die Anzahl der möglichen UUIDs beträgt 16^32, was 2^128 oder etwa 3,4x10^38 entspricht (was ziemlich viel ist!). ipv4-address-converter: title: IPv4-Adresskonverter description: >- Konvertiere eine IP-Adresse in Dezimal, Binär, Hexadezimal oder sogar in IPv6. text-statistics: title: Textstatistiken description: >- Informationen zu einem Text erhalten, wie die Anzahl der Zeichen, die Anzahl der Wörter, die Größe usw. text-to-nato-alphabet: title: Text zu NATO-Alphabet description: >- Wandle Text in das NATO-Phonetik-Alphabet für die mündliche Übermittlung um. basic-auth-generator: title: Basic-Auth-Generator description: >- Generiere einen Base64-Basic-Auth-Header aus einem Benutzernamen und einem Passwort. text-to-unicode: title: Text zu Unicode description: Parse und konvertiere Text in Unicode und umgekehrt. ipv4-range-expander: title: IPv4-Bereichserweiterer description: >- Bei Angabe einer Start- und End-IPv4-Adresse berechnet dieses Tool ein gültiges IPv4-Netzwerk mit seiner CIDR-Notation. text-diff: title: Textunterschied description: Vergleiche zwei Texte und sieh die Unterschiede zwischen ihnen. otp-generator: title: OTP-Code-Generator description: >- Generiere und validiere zeitbasierte OTPs (Einmalpasswörter) für Multi-Faktor-Authentifizierung. url-encoder: title: Kodieren/Decodieren von URL-formatierten Zeichenfolgen description: >- Kodiere zum URL-kodierten Format (auch als "prozentkodiert" bekannt) oder decodiere es. text-to-binary: title: Text zu ASCII-Binär description: Konvertiere Text in seine ASCII-Binärrepräsentation und umgekehrt. ================================================ FILE: locales/en.yml ================================================ home: categories: newestTools: Newest tools favoriteTools: 'Your favorite tools' allTools: 'All the tools' favoritesDndToolTip: 'Drag and drop to reorder favorites' subtitle: 'Handy tools for developers' toggleMenu: 'Toggle menu' home: Home uiLib: 'UI Lib' support: 'Support IT-Tools development' buyMeACoffee: 'Buy me a coffee' follow: title: 'You like it-tools?' p1: 'Give us a star on' githubRepository: 'IT-Tools GitHub repository' p2: 'or follow us on' twitterXAccount: 'IT-Tools X account' thankYou: 'Thank you!' nav: github: 'GitHub repository' githubRepository: 'IT-Tools GitHub repository' twitterX: 'X account' twitterXAccount: 'IT Tools X account' about: 'About IT-Tools' aboutLabel: 'About' darkMode: 'Dark mode' lightMode: 'Light mode' mode: 'Toggle dark/light mode' about: content: > # About IT-Tools This wonderful website, made with ❤ by [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about) , aggregates useful tools for developer and people working in IT. If you find it useful, please feel free to share it to people you think may find it useful too and don't forget to bookmark it in your shortcut bar! IT Tools is open-source (under the GPL-3.0 license) and free, and will always be, but it costs me money to host and renew the domain name. If you want to support my work, and encourage me to add more tools, please consider supporting by [sponsoring me](https://www.buymeacoffee.com/cthmsst). ## Technologies IT Tools is made in Vue.js (Vue 3) with the the Naive UI component library and is hosted and continuously deployed by Vercel. Third-party open-source libraries are used in some tools, you may find the complete list in the [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) file of the repository. ## Found a bug? A tool is missing? If you need a tool that is currently not present here, and you think can be useful, you are welcome to submit a feature request in the [issues section](https://github.com/CorentinTh/it-tools/issues/new/choose) in the GitHub repository. And if you found a bug, or something doesn't work as expected, please file a bug report in the [issues section](https://github.com/CorentinTh/it-tools/issues/new/choose) in the GitHub repository. 404: notFound: '404 Not Found' sorry: 'Sorry, this page does not seem to exist' maybe: 'Maybe the cache is doing tricky things, try force-refreshing?' backHome: 'Back home' favoriteButton: remove: 'Remove from favorites' add: 'Add to favorites' toolCard: new: New search: label: Search tools: categories: favorite-tools: 'Your favorite tools' crypto: Crypto converter: Converter web: Web images and videos: 'Images & Videos' development: Development network: Network math: Math measurement: Measurement text: Text data: Data password-strength-analyser: title: Password strength analyser description: Discover the strength of your password with this client-side-only password strength analyser and crack time estimation tool. chronometer: title: Chronometer description: Monitor the duration of a thing. Basically a chronometer with simple chronometer features. token-generator: title: Token generator description: Generate random string with the chars you want, uppercase or lowercase letters, numbers and/or symbols. uppercase: Uppercase (ABC...) lowercase: Lowercase (abc...) numbers: Numbers (123...) symbols: Symbols (!-;...) length: Length tokenPlaceholder: 'The token...' copied: Token copied to the clipboard button: copy: Copy refresh: Refresh percentage-calculator: title: Percentage calculator description: Easily calculate percentages from a value to another value, or from a percentage to a value. svg-placeholder-generator: title: SVG placeholder generator description: Generate svg images to use as a placeholder in your applications. json-to-csv: title: JSON to CSV description: Convert JSON to CSV with automatic header detection. camera-recorder: title: Camera recorder description: Take a picture or record a video from your webcam or camera. keycode-info: title: Keycode info description: Find the javascript keycode, code, location and modifiers of any pressed key. emoji-picker: title: Emoji picker description: Copy and paste emojis easily and get the unicode and code points value of each emoji. color-converter: title: Color converter description: Convert color between the different formats (hex, rgb, hsl and css name) bcrypt: title: Bcrypt description: Hash and compare text string using bcrypt. Bcrypt is a password-hashing function based on the Blowfish cipher. crontab-generator: title: Crontab generator description: Validate and generate crontab and get the human-readable description of the cron schedule. http-status-codes: title: HTTP status codes description: The list of all HTTP status codes, their name, and their meaning. sql-prettify: title: SQL prettify and format description: Format and prettify your SQL queries online (it supports various SQL dialects). benchmark-builder: title: Benchmark builder description: Easily compare execution time of tasks with this very simple online benchmark builder. git-memo: title: Git cheatsheet description: Git is a decentralized version management software. With this cheatsheet, you will have quick access to the most common git commands. slugify-string: title: Slugify string description: Make a string url, filename and id safe. encryption: title: Encrypt / decrypt text description: Encrypt clear text and decrypt ciphertext using crypto algorithms like AES, TripleDES, Rabbit or RC4. random-port-generator: title: Random port generator description: Generate random port numbers outside of the range of "known" ports (0-1023). yaml-prettify: title: YAML prettify and format description: Prettify your YAML string into a friendly, human-readable format. eta-calculator: title: ETA calculator description: An ETA (Estimated Time of Arrival) calculator to determine the approximate end time of a task, for example, the end time and duration of a file download. roman-numeral-converter: title: Roman numeral converter description: Convert Roman numerals to numbers and convert numbers to Roman numerals. hmac-generator: title: Hmac generator description: Computes a hash-based message authentication code (HMAC) using a secret key and your favorite hashing function. bip39-generator: title: BIP39 passphrase generator description: Generate a BIP39 passphrase from an existing or random mnemonic, or get the mnemonic from the passphrase. base64-file-converter: title: Base64 file converter description: Convert a string, file, or image into its base64 representation. list-converter: title: List converter description: This tool can process column-based data and apply various changes (transpose, add prefix and suffix, reverse list, sort list, lowercase values, truncate values) to each row. base64-string-converter: title: Base64 string encoder/decoder description: Simply encode and decode strings into their base64 representation. toml-to-yaml: title: TOML to YAML description: Parse and convert TOML to YAML. math-evaluator: title: Math evaluator description: A calculator for evaluating mathematical expressions. You can use functions like sqrt, cos, sin, abs, etc. json-to-yaml-converter: title: JSON to YAML converter description: Simply convert JSON to YAML with this online live converter. url-parser: title: URL parser description: Parse a URL into its separate constituent parts (protocol, origin, params, port, username-password, ...) iban-validator-and-parser: title: IBAN validator and parser description: Validate and parse IBAN numbers. Check if an IBAN is valid and get the country, BBAN, if it is a QR-IBAN and the IBAN friendly format. user-agent-parser: title: User-agent parser description: Detect and parse Browser, Engine, OS, CPU, and Device type/model from an user-agent string. numeronym-generator: title: Numeronym generator description: A numeronym is a word where a number is used to form an abbreviation. For example, "i18n" is a numeronym of "internationalization" where 18 stands for the number of letters between the first i and the last n in the word. case-converter: title: Case converter description: Transform the case of a string and choose between different formats html-entities: title: Escape HTML entities description: Escape or unescape HTML entities (replace characters like <,>, &, " and \' with their HTML version) json-prettify: title: JSON prettify and format description: Prettify your JSON string into a friendly, human-readable format. docker-run-to-docker-compose-converter: title: Docker run to Docker compose converter description: Transforms "docker run" commands into docker-compose files! mac-address-lookup: title: MAC address lookup description: Find the vendor and manufacturer of a device by its MAC address. mime-types: title: MIME types description: Convert MIME types to file extensions and vice-versa. toml-to-json: title: TOML to JSON description: Parse and convert TOML to JSON. lorem-ipsum-generator: title: Lorem ipsum generator description: Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content qrcode-generator: title: QR Code generator description: Generate and download a QR code for a URL (or just plain text), and customize the background and foreground colors. wifi-qrcode-generator: title: WiFi QR Code generator description: Generate and download QR codes for quick connections to WiFi networks. xml-formatter: title: XML formatter description: Prettify your XML string into a friendly, human-readable format. temperature-converter: title: Temperature converter description: Degrees temperature conversions for Kelvin, Celsius, Fahrenheit, Rankine, Delisle, Newton, Réaumur, and Rømer. chmod-calculator: title: Chmod calculator description: Compute your chmod permissions and commands with this online chmod calculator. rsa-key-pair-generator: title: RSA key pair generator description: Generate a new random RSA private and public pem certificate key pair. html-wysiwyg-editor: title: HTML WYSIWYG editor description: Online, feature-rich WYSIWYG HTML editor which generates the source code of the content immediately. yaml-to-toml: title: YAML to TOML description: Parse and convert YAML to TOML. mac-address-generator: title: MAC address generator description: Enter the quantity and prefix. MAC addresses will be generated in your chosen case (uppercase or lowercase) json-diff: title: JSON diff description: Compare two JSON objects and get the differences between them. jwt-parser: title: JWT parser description: Parse and decode your JSON Web Token (jwt) and display its content. date-converter: title: Date-time converter description: Convert date and time into the various different formats phone-parser-and-formatter: title: Phone parser and formatter description: Parse, validate and format phone numbers. Get information about the phone number, like the country code, type, etc. ipv4-subnet-calculator: title: IPv4 subnet calculator description: Parse your IPv4 CIDR blocks and get all the info you need about your subnet. og-meta-generator: title: Open graph meta generator description: Generate open-graph and socials HTML meta tags for your website. ipv6-ula-generator: title: IPv6 ULA generator description: Generate your own local, non-routable IP addresses for your network according to RFC4193. hash-text: title: Hash text description: 'Hash a text string using the function you need : MD5, SHA1, SHA256, SHA224, SHA512, SHA384, SHA3 or RIPEMD160' json-to-toml: title: JSON to TOML description: Parse and convert JSON to TOML. device-information: title: Device information description: Get information about your current device (screen size, pixel-ratio, user agent, ...) pdf-signature-checker: title: PDF signature checker description: Verify the signatures of a PDF file. A signed PDF file contains one or more signatures that may be used to determine whether the contents of the file have been altered since the file was signed. json-minify: title: JSON minify description: Minify and compress your JSON by removing unnecessary whitespace. ulid-generator: title: ULID generator description: Generate random Universally Unique Lexicographically Sortable Identifier (ULID). string-obfuscator: title: String obfuscator description: Obfuscate a string (like a secret, an IBAN, or a token) to make it shareable and identifiable without revealing its content. base-converter: title: Integer base converter description: Convert a number between different bases (decimal, hexadecimal, binary, octal, base64, ...) yaml-to-json-converter: title: YAML to JSON converter description: Simply convert YAML to JSON with this online live converter. uuid-generator: title: UUIDs generator description: A Universally Unique Identifier (UUID) is a 128-bit number used to identify information in computer systems. The number of possible UUIDs is 16^32, which is 2^128 or about 3.4x10^38 (which is a lot!). ipv4-address-converter: title: IPv4 address converter description: Convert an IP address into decimal, binary, hexadecimal, or even an IPv6 representation of it. text-statistics: title: Text statistics description: Get information about a text, the number of characters, the number of words, its size in bytes, ... text-to-nato-alphabet: title: Text to NATO alphabet description: Transform text into the NATO phonetic alphabet for oral transmission. basic-auth-generator: title: Basic auth generator description: Generate a base64 basic auth header from a username and password. text-to-unicode: title: Text to Unicode description: Parse and convert text to unicode and vice-versa ipv4-range-expander: title: IPv4 range expander description: Given a start and an end IPv4 address, this tool calculates a valid IPv4 subnet along with its CIDR notation. text-diff: title: Text diff description: Compare two texts and see the differences between them. otp-generator: title: OTP code generator description: Generate and validate time-based OTP (one time password) for multi-factor authentication. url-encoder: title: Encode/decode URL-formatted strings description: Encode text to URL-encoded format (also known as "percent-encoded"), or decode from it. text-to-binary: title: Text to ASCII binary description: Convert text to its ASCII binary representation and vice-versa. ================================================ FILE: locales/es.yml ================================================ home: categories: newestTools: Nuevas herramientas favoriteTools: 'Tus herramientas favoritas' allTools: 'Todas las herramientas' favoritesDndToolTip: 'Arrastra y suelta para reordenar favoritos' subtitle: 'Herramientas practicas para desarrolladores' toggleMenu: 'Toggle menu' home: Home uiLib: 'UI Lib' support: 'Apoyar el desarrollo de IT-Tools' buyMeACoffee: 'Buy me a coffee' follow: title: 'Te gustan las it-tools?' p1: 'Danos una estrella en' githubRepository: 'Repositorio de IT-Tools en GitHub' p2: 'o síguenos en' twitterXAccount: 'Cuenta de X de IT-Tools' thankYou: 'Muchas gracias!' nav: github: 'Repositorio en github' githubRepository: 'IT-Tools GitHub repository' twitterX: 'Cuenta de X' twitterXAccount: 'Cuenta de X de IT Tools' about: 'Sobre IT-Tools' aboutLabel: 'Sobre' darkMode: 'Modo obscuro' lightMode: 'Modo claro' mode: 'Alternar modo oscuro/claro' about: content: > # Sobre IT-Tools Este maravilloso sitio web, hecho con ❤ por [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about) , agrega herramientas útiles para desarrolladores y personas que trabajan en IT. Si lo encuentra útil, no dude en compartirlo con las personas que crea que también pueden encontrarlo útil y ¡no olvide marcarlo como favorito en su barra de accesos directos! IT Tools es de código abierto (under the GPL-3.0 license) y gratis, y siempre lo será, pero me cuesta dinero alojar y renovar el nombre de dominio. Si desea apoyar mi trabajo y animarme a agregar más herramientas, considere apoyarme a través de[sponsoring me](https://www.buymeacoffee.com/cthmsst). ## Tecnologías IT Tools está creado en Vue.js (Vue 3) con la biblioteca de componentes Naive UI y Vercel lo aloja y lo implementa continuamente. En algunas herramientas se utilizan bibliotecas de código abierto de terceros; puede encontrar la lista completa en [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) archivo del repositorio. ## ¿Encontraste un error? ¿Falta una herramienta? Si necesita una herramienta que actualmente no está presente aquí y cree que puede ser útil, puede enviar una solicitud de función en el [issues section](https://github.com/CorentinTh/it-tools/issues/new/choose) en el repositorio de GitHub. Y si encontró un error o algo no funciona como se esperaba, presente un reporte de error en el [issues section](https://github.com/CorentinTh/it-tools/issues/new/choose) en el repositorio de GitHub. 404: notFound: '404 Not Found' sorry: 'Lo sentimos, esta página no parece existir' maybe: 'Tal vez el caché esté haciendo cosas raras, ¿probamos a refrescar forzosamente?' backHome: 'Back home' favoriteButton: remove: 'Quitar de favoritos' add: 'Añadir a favoritos' toolCard: new: Nuevo search: label: Buscar tools: categories: favorite-tools: 'Tus herramientas favoritas' crypto: Crypto converter: Converter web: Web images and videos: 'Images & Videos' development: Development network: Network math: Math measurement: Measurement text: Text data: Data ================================================ FILE: locales/fr.yml ================================================ home: categories: newestTools: 'Les nouveaux outils' favoriteTools: 'Vos outils favoris' allTools: 'Tous les outils' favoritesDndToolTip: 'Faites glisser et déposez pour réordonner vos favoris' subtitle: 'Outils pour les développeurs' toggleMenu: 'Menu' home: Accueil uiLib: 'UI Lib' buyMeACoffee: 'Soutenez IT-Tools' follow: title: 'Vous aimez it-tools ?' p1: 'Soutenez-nous avec une star sur' githubRepository: "le dépôt GitHub d'IT-Tools" p2: 'ou suivez-nous sur' twitterXAccount: "le compte X d'IT-Tools" thankYou: 'Merci !' nav: github: 'Dépôt GitHub' githubRepository: "Dépôt GitHub d'IT-Tools" twitterX: 'Compte X' twitterXAccount: "Compte X d'IT-Tools" about: "À propos d'IT-Tools" aboutLabel: 'À propos' darkMode: 'Mode sombre' lightMode: 'Mode clair' mode: 'Basculer le mode sombre/clair' about: content: > # À propos de IT-Tools Ce merveilleux site, fait avec ❤ par [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about), regroupe des outils utiles pour les développeurs et les personnes travaillant dans l'informatique. Si vous le trouvez utile, n'hésitez pas à le partager et n'oubliez pas de le mettre dans vos favoris ! IT Tools est open-source (sous licence GPL-3.0) et gratuit, et le restera toujours, mais cela me coûte de l'argent pour l'héberger et renouveler le nom de domaine. Si vous voulez soutenir mon travail, et m'encourager à ajouter plus d'outils, n'hésitez pas à me [soutenir](https://www.buymeacoffee.com/cthmsst). ## Technologies IT Tools est fait en Vue.js (Vue 3) avec la bibliothèque de composants Naive UI et est hébergé et déployé en continu par Vercel. Des bibliothèques open-source tierces sont utilisées dans certains outils, vous pouvez trouver la liste complète dans le fichier [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) du dépôt. ## Vous avez trouvé un bug ? Un outil manque ? Si vous avez besoin d'un outil qui n'est pas encore présent ici, et que vous pensez qu'il peut être utile, vous êtes invité à soumettre une demande de fonctionnalité dans la [section issue](https://github.com/CorentinTh/it-tools/issues/new/choose) du dépôt GitHub. 404: notFound: '404 Not Found' sorry: "Désolé, cette page n'existe pas" maybe: 'Peut-être que le cache fait des siennes, essayez de forcer le rafraîchissement ?' backHome: "Retour à l'accueil" toolCard: new: Nouveau search: label: Rechercher tools: categories: favorite-tools: 'Vos outils favoris' crypto: Cryptographie converter: Convertisseur web: Web images and videos: 'Images & Vidéos' development: Développement network: Réseau math: Math measurement: Mesure text: Texte data: Données token-generator: title: Générateur de token description: >- Génère une chaîne aléatoire avec les caractères que vous voulez, lettres majuscules ou minuscules, chiffres et/ou symboles. uppercase: Majuscules (ABC...) lowercase: Minuscules (abc...) numbers: Chiffres (123...) symbols: Symboles (!-;...) button: copy: Copier refresh: Rafraichir copied: Le token a été copié length: Longueur tokenPlaceholder: Le token... ================================================ FILE: locales/no.yml ================================================ home: categories: newestTools: Nyeste verktøy favoriteTools: 'Dine favoritt verktøy' allTools: 'Alle verktøyene' favoritesDndToolTip: 'Dra og slipp for å omordne favoritter' subtitle: 'Nyttige verktøy for utviklere' toggleMenu: 'Vekslemenmy' home: Hjem uiLib: 'UI Bib' support: 'Støtt utviklingen av IT-Tools' buyMeACoffee: 'Kjøp en kaffe til meg' follow: title: 'Liker du it-tools?' p1: 'Gi oss en stjerne på' githubRepository: 'IT-Tools GitHub-depotet' p2: 'eller følg oss på' twitterXAccount: 'IT-Tools sin X konto' thankYou: 'Tusen takk!' nav: github: 'GitHub-depot' githubRepository: 'IT-Tools GitHub-depot' twitterX: 'X konto' twitterXAccount: 'IT Tools X konto' about: 'Om IT-Tools' aboutLabel: 'Om' darkMode: 'Mørk modus' lightMode: 'Lys modus' mode: 'Veksle mørk/lys modus' about: content: > # Om IT-Tools Denne vidunderlige nettsiden, laget med ❤ av [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about) , sammenstiller nyttige verktøy for utviklere og folk som jobber innen IT. Hvis du finner dette nyttig, Del det gjerne med andre som du tror kan få nytte av dette, og ikke glem å lage et bokmerke! IT Tools er åpen kildekode (under GPL-3.0 lisensen) og gratis, og det vil det alltid være, men det koster å drifte og å fornye domenet. Hvis du ønsker å støtte arbeidet mitt, og motivere meg til å legge til flere verktøy, gjerne støtt meg ved å [sponse meg](https://www.buymeacoffee.com/cthmsst). ## Teknologier IT Tools er laget i Vue.js (Vue 3) med Naive UI komponent bibliotektet og er hosted og kontinuerlig deployet av Vercel. Tredjeparts åpen-kildekode biblioteker er brukt i noen verktøy, du kan finne den komplette listen i [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) filen i depoet. ## Funnet en feil? Et verktøy som mangler? Hvis du trenger et verktøy som foreløpig ikke er tilgjengelig her, og du tenker det kan være nyttig for andre, så er du velkommen til å legge til en funksjonsforespørsel i [problem seksjonen](https://github.com/CorentinTh/it-tools/issues/new/choose) i github-depotet. Og hvis du har funnet en feil, eller noe ikke oppfører seg som forventet, vennligst send inn en feilrapport i [problem seksjonen](https://github.com/CorentinTh/it-tools/issues/new/choose) i github-depotet. 404: notFound: '404 ikke funnet' sorry: 'Beklager, denne siden ser ikke ut til å eksistere' maybe: 'Kanskje informasjonskapslene oppfører seg rart, prøvd en tvungen oppfriskning?' backHome: 'Tilbake til start' favoriteButton: remove: 'Fjern fra favoritter' add: 'Legg til favoritter' toolCard: new: Ny search: label: Søk tools: categories: favorite-tools: 'Dine favoritt verktøy' crypto: Krypto converter: Konvertering web: Web images and videos: 'Bilder & Videoer' development: Utvikling network: Nettverk math: Matte measurement: Måling text: Tekst data: Data password-strength-analyser: title: Analyseverktøy for passordstyrke description: Oppdag styrken av passordet ditt med dette kun-klient-maskin passordstyrke analyse verktøyet og se den estimerte knekketiden. chronometer: title: Kronometer description: Overvåk varigheten av noe. I bunn og grunn et kronometer med enkle funksjoner. token-generator: title: Token generator description: Generer en tilfeldig streng med store og/eller små bokstaver, siffer og/eller symboler. uppercase: Store bokstaver (ABC...) lowercase: Små bokstaver (abc...) numbers: Siffer (123...) symbols: Symboler (!-;...) length: Lengde tokenPlaceholder: 'Tokenet...' copied: Tokenet er kopiert til utklippstavlen. button: copy: Kopier refresh: Oppfrisk percentage-calculator: title: Prosent kalkulator description: Beregn enkelt prosenter fra en verdi til en annen, eller fra en prosent til en verdi. svg-placeholder-generator: title: SVG plassholder generator description: Generer svg bilder til å bruke som plassholder i applikasjonen din. json-to-csv: title: JSON til CSV description: Konverter JSON til CSV med automatisk oppdagelse av headeren. camera-recorder: title: Kameraopptak description: Ta et bilde eller spill inn en video med webkamera eller kameraet ditt. keycode-info: title: Tastekode info description: Finn javascript tastekode, kode, plassering og modifikatorer av hvilken som helst tast. emoji-picker: title: Emoji velger description: Klipp og lim emojis og få unicode og kode verdien av hver emoji. color-converter: title: Farge konverter description: Konverter farger mellom de forskjellige formatene (hex, rgb, hsl og css navn). bcrypt: title: Bcrypt description: Hash og sammenlign tekst ved hjelp av bcrypt. Bcrypt er en passord-hashings funksjon basert på Blowfish cipher. crontab-generator: title: Crontab generator description: Verifiser og generer crontab og få den mennesklig leselige beskrivelsen av cron timeplanen. http-status-codes: title: HTTP status koder description: Liste over alle HTTP status koder, navnet dems, og betydningen. sql-prettify: title: SQL forskjønning and format description: Formater og forskjønn SQL spørringene dine (den støtter forskjellige SQL dialekter). benchmark-builder: title: Bygg en referansemåler description: Sammenlign enkelt kjøretiden av oppgaver med denne enkle referansemåls byggeren. git-memo: title: Git jukselapp description: Git er en desentralisert versjons håndterings programvare. Med denne jukselappen vil du få kjapp tilgang til de vanligste kommandoene. slugify-string: title: Slugify streng description: Lag en trygg url, filbane eller id. encryption: title: Krypter / decrypter tekst description: Krypter klartekst og dekrypter ciphertekst ved bruk av krypteringsalgoritmer som AES, TripleDES, Rabbit eller RC4. random-port-generator: title: Tilfeldig port generator description: Generer tilfeldige portnumre utenfor scopet av "kjente" porter (0-1023). yaml-prettify: title: YAML forskjønning og formatering description: Forskjønn YAML strengene dine til et lettlest format. eta-calculator: title: ETA kalkulator description: En ETA (Estimert Tid for Ankomst) kalkulator for å anslå den sannsynelige slutt tiden for en oppgave, for eksempel, slutttiden og varigheten av en filnedlastning. roman-numeral-converter: title: Romertall konverter description: Konverter romertall til tall eller konverter tall til romertall. hmac-generator: title: Hmac generator description: Beregn en hash-basert meldings authentiserings kode (HMAC) ved bruk av en hemmelig nøkkel og din foretrukne hashings funksjon. bip39-generator: title: BIP39 nøkkelords generator description: Generer et BIP39 nøkkelord fra en eksisterende eller tilfeldig huskesetning, eller få ut en huskesetning fra nøkkelordet. base64-file-converter: title: Base64 fil konverter description: Konverter en base64 streng til fil eller en fil, bilde til en base64 representasjon. list-converter: title: Liste konverterer description: Dette verktøyet kan prosessere kolonnebasert data og foreta forskjellige endringer (transposering, legge til prefix og suffix, reversere lister, sortere lister, gjøre om til små bokstaver, trunkere verdier) på hver rad. base64-string-converter: title: Base64 string kode/dekoder description: Enkelt kode eller dekode en tekststreng til base64 representasjonen av strengen. toml-to-yaml: title: TOML til YAML description: Parser og konverter TOML til YAML. math-evaluator: title: Matematikkevaluator description: En Kalkulator for å evaluere matematiske uttrykk. Du kan bruke funksjoner som sqrt, cos, sin, abs, etc. json-to-yaml-converter: title: JSON til YAML konverterer description: Enkelt konverter JSON til YAML med dette verktøyet. url-parser: title: URL analyse description: Parsere en URL ned til bestanddelene (protokoll, opprinnelse, parametre, port, brukernavn-passord, ...). iban-validator-and-parser: title: IBAN validering og analysering description: Valider og parser IBAN numre. Sjekk om et IBAN er gyldig og få landet, BBAN, om det er en QR-IBAN og IBAN i et vennlig format. user-agent-parser: title: User-agent analysering description: Detekter og parser nettleser, motor, OS, CPU, og enhet type/modell fra en user-agent tekst streng. numeronym-generator: title: Numeronym generator description: Et numeronym er et ord hvor et nummer er brukt til å lage en forkortelse. For eksempel, "i18n" er et numeronym for "internasjonalisering" hvor 18 står for antall bokstaver mellom første bokstaven i og den siste bokstaven n i ordet. case-converter: title: Bokstavkonvertering description: Formater bokstavene med store eller små bokstaver, samt andre format. html-entities: title: HTML streng rensing description: Rens bort eller omsvøp HTML entiteter (erstatt tegn som <,>, &, " and \' med deres HTML versjon). json-prettify: title: JSON forskjønning og formatering description: Forskjønn JSON strenger til et lettlest format. docker-run-to-docker-compose-converter: title: Docker run til Docker compose konverter description: Konverter "docker run" kommandoer til docker-compose filer! mac-address-lookup: title: MAC address oppslagsverk description: Finn forhandler og produsent basert på MAC adressen. mime-types: title: MIME typer description: Konverter MIME typer til fil utvidelser og visa-versa. toml-to-json: title: TOML til JSON description: Parser og konverter TOML til JSON. lorem-ipsum-generator: title: Lorem ipsum generator description: Lorem ipsum er brukt som plassholder tekst, vanligvis brukt til å demonstrere den visuelle formen av et dokument eller font-type uten å måtte ha meningsfult innhold. qrcode-generator: title: QR Kode generator description: Generer og last ned en QR kode til en URL (eller ren tekst), og tilpass bakgrunns og forgrunns farger. wifi-qrcode-generator: title: WiFi QR Kode generator description: Generer og last ned QR koder for rask tilkobling til wifi nettverket. xml-formatter: title: XML formaterer description: Forskjønn en XML streng til et lettlest format. temperature-converter: title: Temperatur konverter description: Temperatur konversjoner mellom Kelvin, Celsius, Fahrenheit, Rankine, Delisle, Newton, Réaumur, og Rømer. chmod-calculator: title: Chmod kalkulator description: Beregn chmod tillatelser og kommandoer med denne chmod kalkulatoren. rsa-key-pair-generator: title: RSA nøkkelpar generator description: Generer et nytt tilfeldig RSA privat og offentlig pem sertifikat nøkkel par. html-wysiwyg-editor: title: HTML WYSIWYG editor description: Online, funksjonsrik WYSIWYG HTML editor som genererer kildekoden for innholdet øyeblikkelig. yaml-to-toml: title: YAML til TOML description: Parser og konverter YAML til TOML. mac-address-generator: title: MAC adresse generator description: Sett inn antall og prefix. MAC addressene blir generert i ønsket format json-diff: title: JSON diff description: Sammenlign to JSON objekter og finn forskjellene mellom dem. jwt-parser: title: JWT parser description: Parse og dekode et JSON Web Token (jwt) og vis innholdet. date-converter: title: Dato-tid konverter description: Konverter dato og tid til forskjellige formater. phone-parser-and-formatter: title: Telefon format og parserer description: Parser, valider og formater telefon numre. få innformasjonen om telefon nummeret, slik som landskoden, type etc. ipv4-subnet-calculator: title: IPv4 subnet kalkulator description: Parser IPv4 CIDR blokker of åf all info du trenger om subnettet. og-meta-generator: title: Open graph meta generator description: Generer open-graph og SoMe HTML meta tagger til nettsiden din. ipv6-ula-generator: title: IPv6 ULA generator description: Generer din egen lokale, ikke-rutbare IP adresse til nettverket ditt i henhold til RFC4193. hash-text: title: Hash tekst description: 'Hash en tekst streng med en av algoritmene : MD5, SHA1, SHA256, SHA224, SHA512, SHA384, SHA3 eller RIPEMD160' json-to-toml: title: JSON til TOML description: Parser og konverter JSON til TOML. device-information: title: Enhets informasjon description: Få informasjon om din nåværende enhet (skjermstørrelse, piksel-forhold, user agent, etc.) pdf-signature-checker: title: PDF signatur sjekker description: Bekreft signaturen til en PDF fil. En signert PDF fil inneholder en eller flere signaturer som kan bli brukt til å bestemme om en fil har blitt endret etter at den var signert. json-minify: title: JSON minifiser description: Minifiser og komprimer JSON ved å fjerne unødvendige mellomrom. ulid-generator: title: ULID generator description: Generer tilfeldig Universell Unik Leksikografisk Sorterbar Identifikator (ULID). string-obfuscator: title: Streng obfuskator description: Obfusker en streng (som en hemmelighet, en IBAN, eller et token) og gjør den delbar og identifiserbar uten å vise innholdet. base-converter: title: Heltalls konverter description: Konverter et heltall mellom forskjellige baser (desimal, hexadesimal, binær, oktal, base64, etc.) yaml-to-json-converter: title: YAML til JSON konverter description: Konverterl YAML til JSON. uuid-generator: title: UUIDs generator description: En universell Unik Identifikator (UUID) er et 128-bit nummer, brukt til å identifisere informasjon i datasystemer. ipv4-address-converter: title: IPv4 adresse konverter description: Konverter en IPv4 adresse til desimal, binær, hexadesimal, eller en IPv6 representasjon. text-statistics: title: Tekst statistikk description: Få informasjonen om en tekst, antall karakterer, antall ord, størrelsen i bytes, etc. text-to-nato-alphabet: title: Tekst til NATO alfabetet description: Transformer teksten til det NATO fonetiske alfabetet for muntlig gjengivelse. basic-auth-generator: title: Basic auth generator description: Generer en base64 basic auth header fra et brukernavn og passord. text-to-unicode: title: Tekst til Unicode description: Parser og konverter tekst til unicode og visa-versa ipv4-range-expander: title: IPv4 range utvider description: Gitt en start og en slutt IPv4 adresse, kalkulerer dette verktøyet et gyldig IPv4 subnet sammen med sin CIDR notasjon. text-diff: title: Tekst diff description: Sammenlign to tekster og vis forskjellen mellom dem. otp-generator: title: OTP kode generator description: Generer og valider tidsbasert OTP (one time password) for multi-faktor autentisering. url-encoder: title: Kode/dekode URL-formaterte strenger description: Kode tekst til URL-kodet format (også kjent som "prosent-kodet"), eller dekode fra det. text-to-binary: title: Tekst til ASCII binært description: Konverter tekst til sin ASCII binære representasjon og visa-versa. ================================================ FILE: locales/pt.yml ================================================ home: categories: newestTools: 'Novas ferramentas' favoriteTools: 'Suas ferramentas favoritas' allTools: 'Todas as ferramentas' favoritesDndToolTip: 'Arraste e solte para reordenar favoritos' subtitle: 'Ferraentas úteis para desenvolvedores' toggleMenu: 'Menu' home: 'Início' uiLib: 'Biblioteca de UI' support: 'Apoie o desenvolvimento do IT Tools' buyMeACoffee: 'Pague-me um café' follow: title: 'Gostou do it-tools?' p1: 'Dê uma estrela no' githubRepository: 'repositório do IT-Tools no GitHub' p2: 'ou siga nossa' twitterXAccount: 'conta IT-Tools no X' thankYou: 'Obrigado !' nav: github: 'Repositório no GitHub' githubRepository: 'repositório do IT-Tools no GitHub' twitterX: 'Conta no X' twitterXAccount: 'conta do IT Tools no X' about: 'Sobre o IT-Tools' aboutLabel: 'Sobre' darkMode: 'Modo Escuro' lightMode: 'Modo Claro' mode: 'Trocar modo escuro/claro' about: content: > # Sobre o IT-Tools Este site maravilhoso, feito com ❤ por [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about), junta ferramentas úteis para desenvolvedores e outras pessoas que trabalham com TI. Se você achar o site útil, fique à vontade para compartilhar com quem também possa gostar e não esqueça de salvar o bookmark na sua barra de atalhos! O IT Tools é código aberto (sob a licença GPL-3.0), é gratuito, e sempre será, mas custa dinheiro para hospedar e renovar o domínio. Se quiser apoiar meu trabalho e me encorajar a adicionar mais ferramentas, por favor considere [ser patrocinador](https://www.buymeacoffee.com/cthmsst). ## Tecnologias O IT Tools é feito em Vue.js (Vue 3) com a biblioteca de componentes Naive UI e é hospedado pela Vercel. Bibliotecas de código aberto de terceiros são usadas em algumas ferramentas e você pode encontrar a lista completa no arquivo [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) do repositório. ## Achou um bug? Está faltando uma ferramenta? Se você precisa de uma ferramenta que ainda não existe aqui e acha que pode ser útil, seu pedido será bem vindo na [seção de issues](https://github.com/CorentinTh/it-tools/issues/new/choose) no repositório do GitHub. E se você encontrar um bug ou se algo não funcionar como esperado, por favor registre um relato de bug na [seção de issues](https://github.com/CorentinTh/it-tools/issues/new/choose) no GitHub. 404: notFound: '404 Não Encontrado' sorry: 'Desculpe, parece que essa página não existe' maybe: 'Talvez o cache esteja fazendo bobagem, que tal tentar forçar a atualização?' backHome: 'Voltar para o início' favoriteButton: remove: 'Remover dos favoritos' add: 'Adicionar aos favoritos' toolCard: new: 'Novo' search: label: 'Pesquisar' tools: categories: favorite-tools: 'Suas ferramentas favoritas' crypto: 'Cripto' converter: 'Conversores' web: 'Web' images and videos: 'Imagens & Vídeos' development: 'Desenvolvimento' network: 'Rede' math: 'Matemática' measurement: 'Medidas' text: 'Texto' data: 'Dados' ================================================ FILE: locales/uk.yml ================================================ home: categories: newestTools: Найновіші інструменти favoriteTools: 'Ваші улюблені інструменти' allTools: 'Усі інструменти' favoritesDndToolTip: 'Перетягніть і відпустіть, щоб змінити порядок улюблених' subtitle: 'Зручні інструменти для розробників' toggleMenu: 'Перемикання меню' home: Головна uiLib: 'UI Бібліотека' support: 'Підтримка розробки IT Tools' buyMeACoffee: 'Купи мені каву' follow: title: 'Вам подобаються інструменти IT?' p1: 'Додайте нам зірку на' githubRepository: 'GitHub-репозиторій IT-Tools' p2: 'або слідкуйте за нами на' twitterXAccount: 'X-акаунт IT-Tools' thankYou: 'Дякуємо!' nav: github: 'GitHub-репозиторій' githubRepository: 'GitHub-репозиторій IT-Tools' twitterX: 'X' twitterXAccount: 'X-акаунт IT-Tools' about: 'Про IT-Tools' aboutLabel: 'Про нас' darkMode: 'Темний режим' lightMode: 'Світлий режим' mode: 'Перемикання темного/світлого режиму' about: content: > # Про IT-Tools Цей чудовий вебсайт, створений з ❤ [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about), агрегує корисні інструменти для розробників і людей, які працюють в сфері IT. Якщо вам це корисно, будь ласка, поділіться цим з людьми, які, на вашу думку, також можуть знайти його корисним, і не забудьте додати його до закладок у вашій панелі швидкого доступу! IT Tools є відкритим програмним забезпеченням (під ліцензією GPL-3.0) і безкоштовним, і завжди буде таким, але мені коштує гроші для хостингу і продовження доменного імені. Якщо ви хочете підтримати мою роботу і підтримати мене у додаванні нових інструментів, розгляньте можливість підтримки, [спонсоруючи мене](https://www.buymeacoffee.com/cthmsst). ## Технології IT Tools виконаний на Vue.js (Vue 3) з використанням бібліотеки компонентів Naive UI і розгортаний за допомогою Vercel. У деяких інструментах використовуються сторонні відкриті бібліотеки, повний список яких ви можете знайти в файлі [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) репозиторію. ## Знайшли баг? Відсутній інструмент? Якщо вам потрібен інструмент, якого наразі немає тут, і ви вважаєте, що він може бути корисним, ви можете подати запит на додавання функції в [розділі проблем](https://github.com/CorentinTh/it-tools/issues/new/choose) у репозиторії GitHub. А якщо ви знайшли баг або щось не працює, як очікувалося, будь ласка, подайте звіт про баг в [розділі проблем](https://github.com/CorentinTh/it-tools/issues/new/choose) у репозиторії GitHub. 404: notFound: '404 Сторінка не знайдена' sorry: 'Вибачте, ця сторінка, схоже, не існує' maybe: 'Можливо, кеш робить хитрощі, спробуйте примусово оновити сторінку?' backHome: 'Повернутися на головну' favoriteButton: remove: 'Вилучити з обраних' add: 'Додати до обраних' toolCard: new: Новий search: label: Пошук tools: categories: favorite-tools: 'Ваші улюблені інструменти' crypto: Крипта converter: Конвертер web: Веб images and videos: 'Зображення та відео' development: Розробка network: Мережа math: Математика measurement: Вимірювання text: Текст data: Дані ================================================ FILE: locales/vi.yml ================================================ home: categories: newestTools: Công cụ mới nhất favoriteTools: 'Công cụ yêu thích của bạn' allTools: 'Tất cả công cụ' favoritesDndToolTip: 'Kéo thả để sắp xếp lại yêu thích' subtitle: 'Công cụ cho nhà phát triển.' toggleMenu: 'Chuyển đổi menu' home: Trang chủ uiLib: 'Thư viện UI' support: 'Hỗ trợ phát triển IT Tools' buyMeACoffee: 'Ủng hộ tác giả' follow: title: 'Bạn thích IT-tools?' p1: 'Hãy cho chúng tôi một ngôi sao trên' githubRepository: 'Kho GitHub IT-Tools' p2: 'hoặc theo dõi chúng tôi trên' twitterXAccount: 'Tài khoản X IT-Tools' thankYou: 'Cảm ơn bạn!' nav: github: 'Kho GitHub' githubRepository: 'Kho GitHub IT-Tools' twitterX: 'Tài khoản X' twitterXAccount: 'Tài khoản X IT Tools' about: 'Về IT-Tools' aboutLabel: 'Giới thiệu' darkMode: 'Chế độ tối' lightMode: 'Chế độ sáng' mode: 'Chuyển đổi chế độ tối/sáng' about: content: > # Về IT-Tools Website tuyệt vời này, được tạo ra bằng ❤ bởi [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about), tổng hợp các công cụ hữu ích cho nhà phát triển và những người làm việc trong lĩnh vực IT. Nếu bạn thấy nó hữu ích, xin đừng ngần ngại chia sẻ cho những người mà bạn nghĩ sẽ thấy nó hữu ích và đừng quên đánh dấu nó trong thanh lối tắt của bạn! IT Tools là mã nguồn mở (dưới giấy phép GPL-3.0) và miễn phí, và sẽ luôn như vậy, nhưng tôi phải trả tiền để lưu trữ và gia hạn tên miền. Nếu bạn muốn hỗ trợ công việc của tôi, và khích lệ tôi thêm nhiều công cụ hơn, hãy xem xét hỗ trợ bằng cách [tài trợ cho tôi](https://www.buymeacoffee.com/cthmsst). ## Công nghệ IT Tools được tạo ra bằng Vue.js (Vue 3) với thư viện thành phần Naive UI và được lưu trữ và triển khai liên tục bởi Vercel. Các thư viện mã nguồn mở của bên thứ ba được sử dụng trong một số công cụ, bạn có thể tìm danh sách đầy đủ trong file [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) của kho lưu trữ. ## Phát hiện lỗi? Một công cụ bị thiếu? Nếu bạn cần một công cụ hiện không có ở đây, và bạn nghĩ rằng nó có thể hữu ích, bạn được chào đón để gửi một yêu cầu tính năng trong [phần vấn đề](https://github.com/CorentinTh/it-tools/issues/new/choose) trong kho GitHub. Và nếu bạn phát hiện ra một lỗi, hoặc điều gì đó không hoạt động như mong đợi, xin vui lòng gửi báo cáo lỗi trong [phần vấn đề](https://github.com/CorentinTh/it-tools/issues/new/choose) trong kho GitHub. 404: notFound: '404 Không Tìm Thấy' sorry: 'Xin lỗi, trang này dường như không tồn tại' maybe: 'Lỗi xảy ra có thể do bộ nhớ đệm, hãy (CTRL + F5) để tải lại trang?' backHome: 'Quay về trang chủ' favoriteButton: remove: 'Xóa khỏi mục yêu thích' add: 'Thêm vào mục yêu thích' toolCard: new: Mới search: label: Tìm kiếm tools: categories: favorite-tools: 'Công cụ yêu thích của bạn' crypto: Mã hóa converter: Chuyển đổi web: Web images and videos: 'Hình ảnh & Video' development: Phát triển network: Mạng math: Toán học measurement: Đo lường text: Văn bản data: Dữ liệu password-strength-analyser: title: Bộ phân tích độ mạnh mật khẩu description: Khám phá độ mạnh của mật khẩu của bạn với công cụ phân tích độ mạnh mật khẩu chỉ chạy trên phía máy khách và ước tính thời gian phá mật khẩu. chronometer: title: Đồng hồ bấm giờ description: Giám sát thời gian của một sự việc. Cơ bản là một đồng hồ bấm giờ với các tính năng đơn giản. token-generator: title: Trình tạo mã thông báo description: Tạo chuỗi ngẫu nhiên với các ký tự bạn muốn, chữ hoa hoặc chữ thường, số và/hoặc ký tự đặc biệt. uppercase: Chữ hoa (ABC...) lowercase: Chữ thường (abc...) numbers: Số (123...) symbols: Ký tự đặc biệt (!-;...) length: Độ dài tokenPlaceholder: 'Mã thông báo...' copied: Mã thông báo đã được sao chép vào clipboard button: copy: Sao chép refresh: Làm mới percentage-calculator: title: Máy tính phần trăm description: Dễ dàng tính toán phần trăm từ một giá trị đến giá trị khác, hoặc từ một phần trăm đến một giá trị. svg-placeholder-generator: title: Trình tạo hình ảnh SVG giả định description: Tạo hình ảnh svg để sử dụng làm giả định trong ứng dụng của bạn. json-to-csv: title: Chuyển đổi JSON thành CSV description: Chuyển đổi JSON thành CSV với việc tự động phát hiện tiêu đề. camera-recorder: title: Ghi lại camera description: Chụp ảnh hoặc quay video từ webcam hoặc máy ảnh của bạn. keycode-info: title: Thông tin Keycode description: Tìm mã keycode, mã, vị trí và các phím điều khiển của bất kỳ phím nào được nhấn. emoji-picker: title: Bộ chọn biểu tượng cảm xúc description: Sao chép và dán biểu tượng cảm xúc một cách dễ dàng và nhận giá trị unicode và mã điểm của mỗi biểu tượng cảm xúc. color-converter: title: Trình chuyển đổi màu description: Chuyển đổi màu giữa các định dạng khác nhau (hex, rgb, hsl và tên css) bcrypt: title: Bcrypt description: Mã hóa và so sánh chuỗi văn bản sử dụng bcrypt. Bcrypt là một hàm mã hóa mật khẩu dựa trên thuật toán Blowfish. crontab-generator: title: Trình tạo Crontab description: Xác thực và tạo crontab và lấy mô tả đọc được của lịch trình cron. http-status-codes: title: Mã trạng thái HTTP description: Danh sách tất cả các mã trạng thái HTTP, tên và ý nghĩa của chúng. sql-prettify: title: Định dạng và làm đẹp SQL description: Định dạng và làm đẹp các truy vấn SQL của bạn trực tuyến (hỗ trợ nhiều ngôn ngữ SQL khác nhau). benchmark-builder: title: Trình tạo bảng đánh giá description: Dễ dàng so sánh thời gian thực thi của các nhiệm vụ với trình tạo bảng đánh giá trực tuyến đơn giản này. git-memo: title: Lệnh Git description: Git là một phần mềm quản lý phiên bản phân tán. Với bảng ghi chú này, bạn sẽ có thể truy cập nhanh vào các lệnh Git phổ biến nhất. slugify-string: title: Chuyển đổi chuỗi thành slug description: Biến đổi chuỗi thành dạng an toàn để sử dụng trong URL, tên file và ID. encryption: title: Mã hóa / giải mã văn bản description: Mã hóa và giải mã văn bản rõ bằng cách sử dụng thuật toán mã hóa như AES, TripleDES, Rabbit hoặc RC4. random-port-generator: title: Trình tạo số cổng ngẫu nhiên description: Tạo số cổng ngẫu nhiên nằm ngoài phạm vi của các cổng "biết được" (0-1023). yaml-prettify: title: Định dạng và làm đẹp YAML description: Định dạng chuỗi YAML của bạn thành một định dạng dễ đọc và thân thiện với con người. eta-calculator: title: Máy tính ETA description: Một máy tính ETA (Thời gian dự kiến đến) để biết thời gian kết thúc xấp xỉ của một nhiệm vụ, ví dụ như thời điểm kết thúc của một quá trình tải xuống. roman-numeral-converter: title: Bộ chuyển đổi số La Mã description: Chuyển đổi số La Mã thành số và chuyển đổi số thành số La Mã. hmac-generator: title: Máy tạo HMAC description: Tính toán mã xác thực thông điệp dựa trên hash (HMAC) sử dụng một khóa bí mật và hàm băm yêu thích của bạn. bip39-generator: title: Trình tạo BIP39 passphrase description: Tạo BIP39 passphrase từ mnemonic hiện có hoặc ngẫu nhiên, hoặc lấy mnemonic từ passphrase. base64-file-converter: title: Trình chuyển đổi tệp Base64 description: Chuyển đổi chuỗi, tệp hoặc hình ảnh thành mã Base64. list-converter: title: Trình chuyển đổi danh sách description: Công cụ này có thể xử lý dữ liệu dựa trên cột và áp dụng các thay đổi khác nhau (đảo ngược, thêm tiền tố và hậu tố, đảo danh sách, sắp xếp danh sách, giảm giá trị thành chữ thường, cắt giá trị) cho mỗi hàng. base64-string-converter: title: Trình mã hóa/giải mã chuỗi Base64 description: Đơn giản mã hóa và giải mã chuỗi thành mã Base64. toml-to-yaml: title: Chuyển đổi TOML thành YAML description: Phân tích và chuyển đổi TOML thành YAML. math-evaluator: title: Trình đánh giá toán học description: Một máy tính để tính toán biểu thức toán học. Bạn có thể sử dụng các hàm như sqrt, cos, sin, abs, v.v. json-to-yaml-converter: title: Chuyển đổi JSON sang YAML description: Chuyển đổi đơn giản JSON sang YAML với công cụ chuyển đổi trực tuyến này. url-parser: title: Trình phân tích URL description: Phân tích một chuỗi URL để lấy tất cả các phần khác nhau (giao thức, nguồn gốc, tham số, cổng, tên người dùng-mật khẩu, ...) iban-validator-and-parser: title: Kiểm tra và phân tích số IBAN description: Xác thực và phân tích số IBAN. Kiểm tra tính hợp lệ của IBAN và lấy thông tin về quốc gia, BBAN, xem có phải là QR-IBAN và định dạng thân thiện của IBAN. user-agent-parser: title: Trình phân tích User-agent description: Phát hiện và phân tích trình duyệt, engine, hệ điều hành, CPU và kiểu/mô hình thiết bị từ chuỗi user-agent. numeronym-generator: title: Trình tạo Numeronym description: Numeronym là một từ mà một số được sử dụng để tạo thành một từ viết tắt. Ví dụ, "i18n" là một numeronym của "internationalization" trong đó số 18 đại diện cho số chữ cái giữa chữ i đầu tiên và chữ n cuối cùng trong từ. case-converter: title: Chuyển đổi chữ hoa/chữ thường description: Thay đổi kiểu chữ của một chuỗi và chọn giữa các định dạng khác nhau html-entities: title: Thay thế các ký tự HTML description: Thay thế hoặc bỏ thẻ các ký tự HTML (thay thế <,>, &, " và \' thành phiên bản HTML tương ứng) json-prettify: title: Định dạng và làm đẹp JSON description: Định dạng chuỗi JSON của bạn thành một định dạng dễ đọc và thân thiện với con người. docker-run-to-docker-compose-converter: title: Chuyển đổi lệnh docker run thành tệp docker-compose description: Chuyển đổi các lệnh docker run thành tệp docker-compose! mac-address-lookup: title: Tra cứu địa chỉ MAC description: Tìm nhà sản xuất và nhà cung cấp của thiết bị dựa trên địa chỉ MAC. mime-types: title: Loại Mime description: Chuyển đổi loại mime thành phần mở rộng và ngược lại. toml-to-json: title: Chuyển đổi TOML thành JSON description: Phân tích và chuyển đổi TOML thành JSON. lorem-ipsum-generator: title: Máy tạo văn bản Lorem ipsum description: Lorem ipsum là một đoạn văn bản giả được sử dụng phổ biến để thể hiện hình thức của một tài liệu hoặc một kiểu chữ mà không cần dựa vào nội dung có ý nghĩa qrcode-generator: title: Tạo mã QR description: Tạo và tải xuống mã QR cho một URL hoặc chỉ một đoạn văn bản và tùy chỉnh màu nền và màu chữ. wifi-qrcode-generator: title: Tạo mã QR WiFi description: Tạo và tải xuống mã QR để kết nối nhanh đến mạng WiFi. xml-formatter: title: Định dạng XML description: Định dạng chuỗi XML của bạn thành một định dạng dễ đọc và thân thiện với con người. temperature-converter: title: Bộ chuyển đổi nhiệt độ description: Chuyển đổi độ nhiệt độ cho Kelvin, Celsius, Fahrenheit, Rankine, Delisle, Newton, Réaumur và Rømer. chmod-calculator: title: Máy tính Chmod description: Tính toán quyền và lệnh chmod của bạn với máy tính Chmod trực tuyến này. rsa-key-pair-generator: title: Trình tạo cặp khóa RSA description: Tạo các chứng chỉ pem khóa riêng tư và khóa công khai RSA ngẫu nhiên mới. html-wysiwyg-editor: title: Trình soạn thảo HTML WYSIWYG description: Trình soạn thảo HTML trực tuyến với trình soạn thảo WYSIWYG đa chức năng, lấy mã nguồn của nội dung ngay lập tức. yaml-to-toml: title: YAML sang TOML description: Phân tích và chuyển đổi YAML sang TOML. mac-address-generator: title: Trình tạo địa chỉ MAC description: Nhập số lượng và tiền tố. Địa chỉ MAC sẽ được tạo ra theo kiểu chữ hoa hoặc chữ thường theo lựa chọn của bạn json-diff: title: So sánh JSON description: So sánh hai đối tượng JSON và lấy ra sự khác biệt giữa chúng. jwt-parser: title: Giải mã JWT description: Giải mã và hiển thị nội dung của JSON Web Token (jwt). date-converter: title: Chuyển đổi ngày-tháng description: Chuyển đổi ngày và thời gian sang các định dạng khác nhau phone-parser-and-formatter: title: Trình phân tích và định dạng số điện thoại description: Phân tích, xác thực và định dạng số điện thoại. Lấy thông tin về số điện thoại, như mã quốc gia, loại, v.v. ipv4-subnet-calculator: title: Máy tính mạng con IPv4 description: Phân tích các khối CIDR IPv4 của bạn và nhận thông tin về mạng con của bạn. og-meta-generator: title: Trình tạo meta Open Graph description: Tạo các thẻ meta HTML Open Graph và mạng xã hội cho trang web của bạn. ipv6-ula-generator: title: Trình tạo địa chỉ IPv6 ULA description: Tạo địa chỉ IP cục bộ, không thể định tuyến trên mạng của bạn theo RFC4193. hash-text: title: Mã hóa văn bản description: 'Mã hóa một chuỗi văn bản bằng cách sử dụng các hàm bạn cần: MD5, SHA1, SHA256, SHA224, SHA512, SHA384, SHA3 hoặc RIPEMD160' json-to-toml: title: Chuyển đổi JSON sang TOML description: Phân tích và chuyển đổi JSON sang TOML. device-information: title: Thông tin thiết bị description: Lấy thông tin về thiết bị hiện tại của bạn (kích thước màn hình, tỷ lệ pixel, user agent, ...) pdf-signature-checker: title: Kiểm tra chữ ký PDF description: Xác minh chữ ký của một tệp PDF. Một tệp PDF đã được ký có chứa một hoặc nhiều chữ ký có thể được sử dụng để xác định xem nội dung của tệp đã được thay đổi kể từ khi tệp được ký. json-minify: title: Giảm kích thước JSON description: Giảm kích thước và nén JSON của bạn bằng cách loại bỏ khoảng trắng không cần thiết. ulid-generator: title: Tạo ULID description: Tạo ngẫu nhiên mã định danh duy nhất có thể sắp xếp theo thứ tự từ điển (ULID). string-obfuscator: title: Mã hóa chuỗi description: Mã hóa một chuỗi (như một bí mật, một IBAN hoặc một mã thông báo) để có thể chia sẻ và nhận dạng mà không tiết lộ nội dung. base-converter: title: Chuyển đổi cơ số số nguyên description: Chuyển đổi số giữa các cơ số khác nhau (thập phân, thập lục phân, nhị phân, bát phân, base64, ...) yaml-to-json-converter: title: Trình chuyển đổi YAML sang JSON description: Chuyển đổi YAML sang JSON một cách đơn giản với công cụ chuyển đổi trực tuyến này. uuid-generator: title: Trình tạo UUID description: Một UUID (Universally Unique Identifier) là một số 128 bit được sử dụng để xác định thông tin trong hệ thống máy tính. Số lượng UUID có thể có là 16^32, tương đương với 2^128 hoặc khoảng 3.4x10^38 (rất lớn!). ipv4-address-converter: title: Chuyển đổi địa chỉ Ipv4 description: Chuyển đổi địa chỉ ip thành số thập phân, nhị phân, thập lục phân hoặc thậm chí thành ipv6 text-statistics: title: Thống kê văn bản description: Lấy thông tin về một văn bản, số ký tự, số từ, kích thước của nó, ... text-to-nato-alphabet: title: Chuyển đổi văn bản thành bảng chữ cái NATO description: Chuyển đổi văn bản thành bảng chữ cái phiên âm NATO để truyền tải bằng miệng. basic-auth-generator: title: Tạo mã xác thực cơ bản description: Tạo một tiêu đề xác thực cơ bản base64 từ tên người dùng và mật khẩu. text-to-unicode: title: Chuyển đổi văn bản thành Unicode description: Phân tích và chuyển đổi văn bản thành Unicode và ngược lại ipv4-range-expander: title: Mở rộng dải IPv4 description: Cho một địa chỉ IPv4 bắt đầu và kết thúc, công cụ này tính toán một mạng IPv4 hợp lệ với ký hiệu CIDR của nó. text-diff: title: So sánh văn bản description: So sánh hai văn bản và xem sự khác biệt giữa chúng. otp-generator: title: Tạo mã OTP description: Tạo và xác thực mã OTP (mật khẩu một lần) dựa trên thời gian cho xác thực đa yếu tố. url-encoder: title: Mã hóa/giải mã chuỗi định dạng URL description: Mã hóa thành định dạng URL (còn được gọi là "percent-encoded") hoặc giải mã từ đó. text-to-binary: title: Chuyển đổi văn bản thành nhị phân ASCII description: Chuyển đổi văn bản thành biểu diễn nhị phân ASCII của nó và ngược lại. ================================================ FILE: locales/zh.yml ================================================ home: categories: newestTools: '最新工具' favoriteTools: '我的收藏' allTools: '全部工具' favoritesDndToolTip: '拖放重新排列收藏夹' subtitle: '助力开发人员和 IT 工作者' toggleMenu: '切换菜单' home: '主页' uiLib: 'UI 库' support: '支持 IT 工具开发' buyMeACoffee: '赞助' follow: title: '关注我们' p1: '给我们 Star' githubRepository: 'GitHub 仓库' p2: '关注我们的' twitterXAccount: 'IT-Tools X 账号' thankYou: '感谢您的支持!' nav: github: 'GitHub 仓库' githubRepository: 'GitHub 仓库' twitterX: 'Twitter 账号' twitterXAccount: 'IT-Tools X 账号' about: '关于 IT-Tools' aboutLabel: '关于' darkMode: '深色模式' lightMode: '浅色模式' mode: '颜色模式' about: content: > # 关于 IT-Tools IT-Tools 由 [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about) 用 ❤ 开发,汇集了对开发人员和 IT 从业者有用的工具。如果对您有帮助,请将其分享给您的朋友,并且添加到收藏夹中! IT-Tools 永久免费且开源(GPL-3.0 许可证),但需要资金用于托管和续订域名。如果您想支持我的工作,并鼓励我添加更多工具,请考虑通过 [赞助我](https://www.buymeacoffee.com/cthmsst) 进行支持。 ## 技术 IT-Tools 采用 Vue.js(Vue 3)和 Naive UI 组件库开发,并由 Vercel 托管和持续部署。某些工具使用了第三方开源库,您可以在仓库的 [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) 文件中找到完整的列表。 ## 发现了 Bug?缺少工具? 如果目前这里没有您需要的工具,并且您认为它可能有用,欢迎在 GitHub 仓库的 [issues](https://github.com/CorentinTh/it-tools/issues/new/choose) 中提交新增功能的请求。 如果您发现了 Bug,或者某些功能未能按预期工作,请在 GitHub 仓库的 [issues](https://github.com/CorentinTh/it-tools/issues/new/choose) 中提交错误报告。 404: notFound: '404 页面不存在' sorry: '抱歉,该页面似乎不存在' maybe: '也许缓存出现了一些问题,试试强制刷新页面?' backHome: '返回主页' favoriteButton: remove: '取消收藏' add: '加入收藏' toolCard: new: '新' search: label: '搜索' tools: categories: favorite-tools: '我的收藏' crypto: '加密' converter: '转换器' web: Web images and videos: '图片和视频' development: '开发' network: '网络' math: '数学' measurement: '测量' text: '文本' data: '数据' password-strength-analyser: title: 密码强度分析仪 description: 使用此密码强度分析器和破解时间估计工具来发现密码的强度。 chronometer: title: 计时器 description: 监控事物的持续时间。基本上是一种具有简单计时器功能的计时器。 token-generator: title: Token 生成器 description: 使用您想要的字符、大写或小写字母、数字和/或符号生成随机字符串。 uppercase: '大写 (ABC...)' lowercase: '小写 (abc...)' numbers: '数字 (123...)' symbols: '符号 (!-;...)' length: '长度' tokenPlaceholder: '令牌...' copied: 复制到剪贴板 button: copy: 复制 refresh: 刷新 percentage-calculator: title: 百分比计算器 description: 轻松计算从一个值到另一个值的百分比,或从百分比到值的百分比。 svg-placeholder-generator: title: SVG 占位符生成器 description: 生成 svg 图像以用作应用程序中的占位符。 json-to-csv: title: JSON 转 CSV description: 使用自动标头检测将JSON转换为CSV。 camera-recorder: title: 摄像机记录器 description: 从网络摄像头或照相机拍摄照片或录制视频。 keycode-info: title: Keycode 信息 description: 查找任何按下的键的javascript键代码、代码、位置和修饰符。 emoji-picker: title: Emoji 选择器 description: 轻松复制和粘贴Emoji表情符号,并获得每个表情符号的unicode和code points值. color-converter: title: Color 选择器 description: 在不同格式(十六进制、rgb、hsl和css名称)之间转换颜色 bcrypt: title: 加密 description: 使用bcrypt对文本字符串进行哈希和比较。Bcrypt是一个基于Blowfish密码的密码哈希函数。 crontab-generator: title: Crontab 表达式生成 description: 验证并生成crontab,并获取cron调度的可读描述。 http-status-codes: title: HTTP 状态码 description: 所有HTTP状态的列表对其名称和含义解释。 sql-prettify: title: SQL 美化和格式化 description: 在线格式化和美化您的 SQL 查询(它支持各种 SQL 方言)。 benchmark-builder: title: 基准生成器 description: 简单的在线基准构建器可以轻松比较任务的执行时间。 git-memo: title: Git 备忘录 description: Git是一种去中心化的版本管理软件。使用此备忘单,您可以快速访问最常见的git命令. slugify-string: title: 打乱字符串 description: 确保字符串 url、文件名和 id 安全。 encryption: title: 加密/解密文本 description: 使用加密算法(如AES、TripleDES、Rabbit或RC4)加密和解密文本明文。 random-port-generator: title: 随机端口生成 description: 生成“已知”端口范围(0-1023)之外的随机端口号。 yaml-prettify: title: YAML美化和格式化 description: 将YAML字符串修饰为友好的可读格式。 eta-calculator: title: ETA 计算器 description: ETA(估计到达时间)计算器,用于知道任务的近似结束时间,例如下载的结束时刻。 roman-numeral-converter: title: 罗马数字转换器 description: 将罗马数字转换为数字,并将数字转换为罗马数字。 hmac-generator: title: Hmac 生成器 description: 使用密钥和您喜欢的哈希函数计算基于哈希的消息身份验证代码(HMAC)。 bip39-generator: title: BIP39密码生成器 description: 从现有或随机助记符生成BIP39密码短语,或从密码短语获取助记符。 base64-file-converter: title: Base64 文件转换器 description: 将字符串、文件或图像转换为其 Base64 表示形式。 list-converter: title: List 转换器 description: 该工具可以处理基于数组的数据,并将各种更改(转置、添加前缀和后缀、反向列表、排序列表、小写值、截断值)应用于每一行。 base64-string-converter: title: Base64 字符串编码/解码 description: 将字符串编码和解码为其 Base64 格式表示形式即可。 toml-to-yaml: title: TOML 到 YAML description: Parse and convert TOML to YAML. math-evaluator: title: 数学计算器 description: 计算数学表达式的计算器。您可以使用sqrt、cos、sin、abs等函数。 json-to-yaml-converter: title: JSON到YAML转换器 description: 在线转换将JSON转换为YAML。 url-parser: title: Url分析器 description: 解析url字符串以获取所有不同的部分(协议、来源、参数、端口、用户名密码…) iban-validator-and-parser: title: IBAN验证器和解析器 description: 验证和分析IBAN编号。检查IBAN是否有效,并获取国家BBAN,如果它是QR-IBAN和IBAN友好格式。 user-agent-parser: title: 用户代理分析器 description: 从用户代理字符串中检测和分析浏览器、引擎、操作系统、CPU和设备类型/型号。 numeronym-generator: title: 数字名称生成器 description: 数字名是一个用数字构成缩写的词。例如,“i18n”是“国际化”的名词,其中18表示单词中第一个i和最后一个n之间的字母数。 case-converter: title: 大小写转换 description: 更改字符串的大小写并在不同格式之间进行选择 html-entities: title: 转义html实体 description: 转义或unescape html实体(将<、>、&、“和\'替换为其html版本) json-prettify: title: JSON美化和格式化 description: 将JSON字符串修饰为友好的可读格式。 docker-run-to-docker-compose-converter: title: Docker Run 到 docker-compose 转换器 description: 将 docker run 命令行转换为 docker-compose 文件! mac-address-lookup: title: MAC地址查找 description: 通过设备的MAC地址查找设备的供应商和制造商。 mime-types: title: mime类型 description: 将mime类型转换为扩展,反之亦然。 toml-to-json: title: TOML 到 JSON description: 解析TOML并将其转换为JSON。 lorem-ipsum-generator: title: Lorem ipsum生成器 description: Lorem ipsum是一种占位符文本,通常用于演示文档或字体的视觉形式,而不依赖于有意义的内容 qrcode-generator: title: 二维码生成器 description: 生成并下载url或文本的QR代码,并自定义背景和前景颜色。 wifi-qrcode-generator: title: WiFi 二维码生成器 description: 生成和下载QR码以快速连接到WiFi网络。 xml-formatter: title: XML 格式化 description: 将XML字符串修饰为友好的可读格式。 temperature-converter: title: 温度转换器 description: 开尔文、摄氏度、华氏度、兰金、德莱尔、牛顿、雷奥穆尔和罗默温度度数转换。 chmod-calculator: title: Chmod 计算器 description: 使用此在线的chmod计算器计算chmod权限和命令。 rsa-key-pair-generator: title: RSA密钥对生成器 description: 生成新的随机RSA私钥和公钥pem证书。 html-wysiwyg-editor: title: HTML所见即所得编辑器 description: 在线HTML编辑器具有功能丰富的所见即所得编辑器,立即获得内容的源代码。 yaml-to-toml: title: YAML 到 TOML description: 解析YAML并将其转换为TOML。 mac-address-generator: title: MAC 地址生成器 description: 输入数量和前缀。MAC地址将以您选择的大小写(大写或小写)生成 json-diff: title: JSON 差异比较 description: 比较两个JSON对象并获得它们之间的差异。 jwt-parser: title: JWT 解析器 description: 解析和解码JSON Web Token(jwt)并显示其内容。 date-converter: title: 日期时间转换器 description: 将日期和时间转换为各种不同的格式 phone-parser-and-formatter: title: 电话分析器和格式化程序 description: 解析、验证和格式化电话号码。获取有关电话号码的信息,如国家/地区代码、类型等。 ipv4-subnet-calculator: title: IPv4子网计算器 description: 解析IPv4 CIDR块,并获取有关子网络的所有所需信息。 og-meta-generator: title: 开放式图形元生成器 description: 为您的网站生成开放式图形和社交html元标记。 ipv6-ula-generator: title: IPv6 ULA生成器 description: 根据RFC4193在网络上生成您自己的本地不可路由IP地址。 hash-text: title: Hash 文本 description: '使用所需的函数哈希文本字符串:MD5、SHA1、SHA256、SHA224、SHA512、SHA384、SHA3或RIPEMD160' json-to-toml: title: JSON 转 TOML description: 解析JSON并将其转换为TOML。 device-information: title: 设备信息 description: 获取有关当前设备的信息(屏幕大小、像素比率、用户代理…) pdf-signature-checker: title: PDF签名检查器 description: '验证PDF文件的签名。签名的PDF文件包含一个或多个签名,可用于确定文件的内容在签名后是否已被更改。' json-minify: title: JSON 压缩 description: 通过删除不必要的空白来缩小和压缩JSON。 ulid-generator: title: ULID 生成器 description: 生成随机的通用唯一词典可排序标识符(ULID)。 string-obfuscator: title: 字符串混淆器 description: 混淆字符串(如秘密、IBAN 或令牌),使其可共享和可识别,而不泄露其内容。 base-converter: title: 整数基转换器 description: 在不同的基数(十进制、十六进制、二进制、八进制、base64…)之间转换数字 yaml-to-json-converter: title: YAML到JSON转换器 description: 使用此在线转换器将YAML转换为JSON。 uuid-generator: title: UUIDs 生成器 description: 通用唯一标识符(UUID)是一个128位数字,用于标识计算机系统中的信息。可能的UUID数量为16^32,即2^128或约3.4x10^38(这是一个很大的数字!)。 ipv4-address-converter: title: Ipv4地址转换器 description: 在ipv6中,将ip地址转换为十进制、二进制、十六进制或事件 text-statistics: title: 文本统计 description: 获取有关文本、字符数、字数、大小等的信息 text-to-nato-alphabet: title: 文本转北约字母表 description: 将文本转换为北约拼音字母以进行口头传播。 basic-auth-generator: title: 基本身份验证生成器 description: 从用户名和密码生成 base64 基本身份验证标头。 text-to-unicode: title: 文本转 Unicode description: 解析文本并将其转换为 unicode,反之亦然 ipv4-range-expander: title: IPv4范围扩展器 description: 给定起始和结束IPv4地址,此工具使用其CIDR表示法计算有效的IPv4网络。 text-diff: title: 文本比较 description: 比较两个文本并查看它们之间的差异。 otp-generator: title: OTP代码生成器 description: 为多因素身份验证生成和验证基于时间的OTP(一次性密码)。 url-encoder: title: 编码/解码url格式的字符串 description: 编码为url编码格式(也称为“百分比编码”)或从中解码。 text-to-binary: title: 文本到 ASCII 二进制 description: 将文本转换为其 ASCII 二进制表示形式,反之亦然。 ================================================ FILE: netlify.toml ================================================ [[redirects]] from = "/*" to = "/index.html" status = 200 ================================================ FILE: nginx.conf ================================================ server { listen 80; server_name localhost; root /usr/share/nginx/html; index index.html; location / { try_files $uri $uri/ /index.html; } } ================================================ FILE: package.json ================================================ { "name": "it-tools", "type": "module", "version": "2024.10.22-7ca5933", "packageManager": "pnpm@9.11.0", "description": "Collection of handy online tools for developers, with great UX. ", "author": "Corentin Th (https://corentin.tech)", "license": "GNU GPLv3", "repository": { "type": "git", "url": "https://github.com/CorentinTh/it-tools" }, "keywords": [ "productivity", "converter", "website", "vuejs", "tools", "frontend", "tool", "developer-tools", "developer-productivity" ], "scripts": { "dev": "vite", "build": "vue-tsc --noEmit && NODE_OPTIONS=--max_old_space_size=4096 vite build", "preview": "vite preview --port 5050", "test": "npm run test:unit", "test:unit": "vitest --environment jsdom", "test:e2e": "playwright test", "test:e2e:dev": "BASE_URL=http://localhost:5173 NO_WEB_SERVER=true playwright test", "coverage": "vitest run --coverage", "typecheck": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false", "lint": "eslint src --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore", "script:create:tool": "node scripts/create-tool.mjs", "script:create:ui": "hygen generator ui-component", "release": "node ./scripts/release.mjs" }, "dependencies": { "@it-tools/bip39": "^0.0.4", "@it-tools/oggen": "^1.3.0", "@regexper/render": "^1.0.0", "@sindresorhus/slugify": "^2.2.1", "@tabler/icons-vue": "^3.20.0", "@tiptap/pm": "2.1.6", "@tiptap/starter-kit": "2.1.6", "@tiptap/vue-3": "2.0.3", "@types/figlet": "^1.5.8", "@types/markdown-it": "^13.0.7", "@vicons/material": "^0.12.0", "@vicons/tabler": "^0.12.0", "@vueuse/core": "^10.3.0", "@vueuse/head": "^1.0.0", "@vueuse/router": "^10.0.0", "bcryptjs": "^2.4.3", "change-case": "^4.1.2", "colord": "^2.9.3", "composerize-ts": "^0.6.2", "country-code-lookup": "^0.1.0", "cron-validator": "^1.3.1", "cronstrue": "^2.26.0", "crypto-js": "^4.1.1", "date-fns": "^2.29.3", "dompurify": "^3.0.6", "email-normalizer": "^1.0.0", "emojilib": "^3.0.10", "figlet": "^1.7.0", "figue": "^1.2.0", "fuse.js": "^6.6.2", "highlight.js": "^11.7.0", "iarna-toml-esm": "^3.0.5", "ibantools": "^4.3.3", "js-base64": "^3.7.6", "json5": "^2.2.3", "jwt-decode": "^3.1.2", "libphonenumber-js": "^1.10.28", "lodash": "^4.17.21", "markdown-it": "^14.0.0", "marked": "^10.0.0", "mathjs": "^11.9.1", "mime-types": "^2.1.35", "monaco-editor": "^0.43.0", "naive-ui": "^2.35.0", "netmask": "^2.0.2", "node-forge": "^1.3.1", "oui-data": "^1.0.10", "pdf-signature-reader": "^1.4.2", "pinia": "^2.0.34", "plausible-tracker": "^0.3.8", "qrcode": "^1.5.1", "randexp": "^0.5.3", "sql-formatter": "^13.0.0", "ua-parser-js": "^1.0.35", "ulid": "^2.3.0", "unicode-emoji-json": "^0.4.0", "unplugin-auto-import": "^0.16.4", "uuid": "^9.0.0", "vue": "^3.3.4", "vue-i18n": "^9.9.1", "vue-router": "^4.1.6", "vue-shadow-dom": "^4.2.0", "vue-tsc": "^1.8.1", "vuedraggable": "^4.1.0", "xml-formatter": "^3.3.2", "xml-js": "^1.6.11", "yaml": "^2.2.1" }, "devDependencies": { "@antfu/eslint-config": "^0.41.0", "@iconify-json/mdi": "^1.1.50", "@intlify/unplugin-vue-i18n": "^2.0.0", "@playwright/test": "^1.32.3", "@rushstack/eslint-patch": "^1.2.0", "@tsconfig/node18": "^18.2.0", "@types/bcryptjs": "^2.4.2", "@types/crypto-js": "^4.1.1", "@types/dompurify": "^3.0.5", "@types/jsdom": "^21.0.0", "@types/lodash": "^4.14.192", "@types/mime-types": "^2.1.1", "@types/netmask": "^2.0.0", "@types/node": "^18.15.11", "@types/node-forge": "^1.3.2", "@types/qrcode": "^1.5.0", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^9.0.0", "@unocss/eslint-config": "^0.57.0", "@vitejs/plugin-vue": "^4.3.2", "@vitejs/plugin-vue-jsx": "^3.0.2", "@vue/compiler-sfc": "^3.2.47", "@vue/runtime-dom": "^3.3.4", "@vue/test-utils": "^2.3.2", "@vue/tsconfig": "^0.4.0", "consola": "^3.0.2", "eslint": "^8.47.0", "hygen": "^6.2.11", "jsdom": "^22.0.0", "less": "^4.1.3", "prettier": "^3.0.0", "typescript": "~5.2.0", "unocss": "^0.65.1", "unocss-preset-scrollbar": "^0.2.1", "unplugin-icons": "^0.17.0", "unplugin-vue-components": "^0.25.0", "vite": "^4.4.9", "vite-plugin-pwa": "^0.16.0", "vite-plugin-vue-markdown": "^0.23.5", "vite-svg-loader": "^4.0.0", "vitest": "^0.34.0", "workbox-window": "^7.0.0", "zx": "^7.2.1" } } ================================================ FILE: playwright.config.ts ================================================ import { defineConfig, devices } from '@playwright/test'; const isCI = !!process.env.CI; const baseUrl = process.env.BASE_URL || 'http://localhost:5050'; const useWebServer = process.env.NO_WEB_SERVER !== 'true'; /** * See https://playwright.dev/docs/test-configuration. */ export default defineConfig({ testDir: './src', testMatch: /\.e2e\.(spec\.)?ts$/, /* 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, /* Opt out of parallel tests on CI. */ workers: isCI ? 1 : 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: 'npm run preview', url: 'http://localhost:5050', reuseExistingServer: !isCI, }, } ), }); ================================================ FILE: public/browserconfig.xml ================================================ #da532c ================================================ FILE: public/humans.txt ================================================ /* TEAM */ Developer: Corentin Thomasset Site: https://github.com/CorentinTh Twitter: @cthmsst ================================================ FILE: public/robots.txt ================================================ User-agent: * Disallow: ================================================ FILE: renovate.json ================================================ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ "config:base" ] } ================================================ FILE: scripts/build-locales-files.mjs ================================================ import { existsSync, writeFileSync } from 'node:fs'; import { Glob } from 'bun'; import _ from 'lodash'; async function getPathsFromGlobs({ patterns, onlyFiles = true }) { const filePaths = []; for (const pattern of patterns) { const glob = new Glob(pattern); for await (const filePath of glob.scan({ onlyFiles, cwd: '.' })) { filePaths.push(filePath); } } return { filePaths }; } function getLocaleKey({ filePath }) { const fileName = filePath.split('/').pop(); return fileName.replace(/\.yml$/, ''); } async function createMissingLocaleFile({ localeKey }) { const fileName = `${localeKey}.yml`; const { filePaths: localesDirs } = await getPathsFromGlobs({ patterns: [ 'locales', 'src/tools/*/locales', ], onlyFiles: false, }); for (const localesDir of localesDirs) { const filePath = `${localesDir}/${fileName}`; if (existsSync(filePath)) { console.log(`Locale file already exists: ${filePath}`); continue; } console.log(`Creating missing locale file: ${filePath}`); writeFileSync(filePath, '', 'utf8'); } } const { filePaths } = await getPathsFromGlobs({ patterns: [ 'locales/*.yml', 'src/tools/*/locales/*.yml', ], }); await Promise.all( _.chain(filePaths) .map(filePath => getLocaleKey({ filePath })) .uniq() .map(localeKey => createMissingLocaleFile({ localeKey })) .value(), ); ================================================ FILE: scripts/create-tool.mjs ================================================ import { mkdir, readFile, writeFile } from 'fs/promises'; import { dirname, join } from 'path'; import { fileURLToPath } from 'url'; const currentDirname = dirname(fileURLToPath(import.meta.url)); const toolsDir = join(currentDirname, '..', 'src', 'tools'); // eslint-disable-next-line no-undef const toolName = process.argv[2]; if (!toolName) { throw new Error('Please specify a toolname.'); } const toolNameCamelCase = toolName.replace(/-./g, (x) => x[1].toUpperCase()); const toolNameTitleCase = toolName[0].toUpperCase() + toolName.slice(1).replace(/-/g, ' '); const toolDir = join(toolsDir, toolName); await mkdir(toolDir); console.log(`Directory created: ${toolDir}`); const createToolFile = async (name, content) => { const filePath = join(toolDir, name); await writeFile(filePath, content.trim()); console.log(`File created: ${filePath}`); }; createToolFile( `${toolName}.vue`, ` `, ); createToolFile( `index.ts`, ` import { ArrowsShuffle } from '@vicons/tabler'; import { defineTool } from '../tool'; export const tool = defineTool({ name: '${toolNameTitleCase}', path: '/${toolName}', description: '', keywords: ['${toolName.split('-').join("', '")}'], component: () => import('./${toolName}.vue'), icon: ArrowsShuffle, createdAt: new Date('${new Date().toISOString().split('T')[0]}'), }); `, ); createToolFile(`${toolName}.service.ts`, ``); createToolFile( `${toolName}.service.test.ts`, ` import { expect, describe, it } from 'vitest'; // import { } from './${toolName}.service'; // // describe('${toolName}', () => { // // }) `, ); createToolFile( `${toolName}.e2e.spec.ts`, ` import { test, expect } from '@playwright/test'; test.describe('Tool - ${toolNameTitleCase}', () => { test.beforeEach(async ({ page }) => { await page.goto('/${toolName}'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('${toolNameTitleCase} - IT Tools'); }); test('', async ({ page }) => { }); }); `, ); const toolsIndex = join(toolsDir, 'index.ts'); const indexContent = await readFile(toolsIndex, { encoding: 'utf-8' }).then((r) => r.split('\n')); indexContent.splice(3, 0, `import { tool as ${toolNameCamelCase} } from './${toolName}';`); writeFile(toolsIndex, indexContent.join('\n')); console.log(`Added import in: ${toolsIndex}`); ================================================ FILE: scripts/getLatestChangelog.mjs ================================================ import { readFile } from 'fs/promises'; const changelogContent = await readFile('./CHANGELOG.md', 'utf-8'); const [, lastChangelog] = changelogContent.split(/^## .*$/gm); console.log(lastChangelog.trim()); ================================================ FILE: scripts/release.mjs ================================================ import { $, argv } from 'zx'; import { consola } from 'consola'; import { rawCommitsToMarkdown } from './shared/commits.mjs'; import { addToChangelog } from './shared/changelog.mjs'; $.verbose = false; const isDryRun = argv['dry-run'] ?? false; const now = new Date(); const currentShortSha = (await $`git rev-parse --short HEAD`).stdout.trim(); const calver = now.toISOString().slice(0, 10).replace(/-/g, '.'); const version = `${calver}-${currentShortSha}`; const { stdout: rawCommits } = await $`git log --pretty=oneline $(git describe --tags --abbrev=0)..HEAD`; const markdown = rawCommitsToMarkdown({ rawCommits }); consola.info(`Changelog: \n\n${markdown}\n\n`); if (isDryRun) { consola.info(`[dry-run] Not creating version nor tag`); consola.info('Aborting'); process.exit(0); } const shouldContinue = await consola.prompt( 'This script will create a new version and tag, and update the changelog. Continue?', { type: 'confirm', }, ); if (!shouldContinue) { consola.info('Aborting'); process.exit(0); } consola.info('Updating changelog'); await addToChangelog({ changelog: markdown, version }); consola.success('Changelog updated'); try { consola.info('Committing changelog changes'); await $`git add CHANGELOG.md`; await $`git commit -m "docs(changelog): update changelog for ${version}"`; consola.success('Changelog changes committed'); consola.info('Creating version and tag'); await $`npm version ${version} -m "chore(version): release ${version}"`; consola.info('Npm version released with tag'); } catch (error) { consola.error(error); consola.info('Aborting'); process.exit(1); } ================================================ FILE: scripts/shared/changelog.mjs ================================================ import { readFile, writeFile } from 'fs/promises'; export { addToChangelog }; async function addToChangelog({ changelog, version, changelogPath = './CHANGELOG.md' }) { const changelogContent = await readFile(changelogPath, 'utf-8'); const versionTitle = `## Version ${version}`; if (changelogContent.includes(versionTitle)) { throw new Error(`Version ${version} already exists in the changelog`); } const newChangeLogContent = changelogContent.replace('## ', `${versionTitle}\n\n${changelog}\n\n## `); await writeFile(changelogPath, newChangeLogContent, 'utf-8'); } ================================================ FILE: scripts/shared/commits.mjs ================================================ import _ from 'lodash'; export { rawCommitsToMarkdown }; const commitScopesToHumanReadable = { build: 'Build system', chore: 'Chores', ci: 'Continuous integration', docs: 'Documentation', feat: 'Features', fix: 'Bug fixes', infra: 'Infrastucture', perf: 'Performance', refactor: 'Refactoring', test: 'Tests', }; const commitTypesOrder = ['feat', 'fix', 'perf', 'refactor', 'test', 'build', 'ci', 'chore', 'other']; const getCommitTypeSortIndex = (type) => commitTypesOrder.includes(type) ? commitTypesOrder.indexOf(type) : commitTypesOrder.length; function parseCommitLine(commit) { const [sha, ...splittedRawMessage] = commit.trim().split(' '); const rawMessage = splittedRawMessage.join(' '); const { type, scope, subject } = /^(?.*?)(\((?.*)\))?: ?(?.+)$/.exec(rawMessage)?.groups ?? {}; return { sha: sha.slice(0, 7), type: type ?? 'other', scope, subject: subject ?? rawMessage, }; } function commitSectionsToMarkdown({ type, commits }) { return [ `### ${commitScopesToHumanReadable[type] ?? _.capitalize(type)}`, ...commits.map(({ sha, scope, subject }) => ['-', scope ? `**${scope}**:` : '', subject, `(${sha})`].join(' ')), ].join('\n'); } function rawCommitsToMarkdown({ rawCommits }) { return _.chain(rawCommits) .trim() .split('\n') .map(parseCommitLine) .groupBy('type') .map((commits, type) => ({ type, commits })) .sortBy(({ type }) => getCommitTypeSortIndex(type)) .map(commitSectionsToMarkdown) .join('\n\n') .value(); } ================================================ FILE: src/App.vue ================================================ ================================================ FILE: src/components/CollapsibleToolMenu.vue ================================================ ================================================ FILE: src/components/ColoredCard.vue ================================================ ================================================ FILE: src/components/FavoriteButton.vue ================================================ ================================================ FILE: src/components/FormatTransformer.vue ================================================ ================================================ FILE: src/components/InputCopyable.vue ================================================ ================================================ FILE: src/components/MenuIconItem.vue ================================================ ================================================ FILE: src/components/MenuLayout.vue ================================================ ================================================ FILE: src/components/NavbarButtons.vue ================================================ ================================================ FILE: src/components/SpanCopyable.vue ================================================ ================================================ FILE: src/components/TextareaCopyable.vue ================================================ ================================================ FILE: src/components/ToolCard.vue ================================================ ================================================ FILE: src/composable/computed/catchedComputed.ts ================================================ import { type Ref, ref, watchEffect } from 'vue'; export { computedCatch }; function computedCatch(getter: () => T, { defaultValue }: { defaultValue: D; defaultErrorMessage?: string }): [Ref, Ref]; function computedCatch(getter: () => T, { defaultValue, defaultErrorMessage = 'Unknown error' }: { defaultValue?: D; defaultErrorMessage?: string } = {}) { const error = ref(); const value = ref(); watchEffect(() => { try { error.value = undefined; value.value = getter(); } catch (err) { error.value = err instanceof Error ? err.message : err?.toString() ?? defaultErrorMessage; value.value = defaultValue; } }); return [value, error] as const; } ================================================ FILE: src/composable/computedRefreshable.ts ================================================ import { computedAsync, watchThrottled } from '@vueuse/core'; import { computed, ref, watch } from 'vue'; export { computedRefreshable, computedRefreshableAsync }; function computedRefreshable(getter: () => T, { throttle }: { throttle?: number } = {}) { const dirty = ref(true); let value: T; const update = () => (dirty.value = true); if (throttle) { watchThrottled(getter, update, { throttle }); } else { watch(getter, update); } const computedValue = computed(() => { if (dirty.value) { value = getter(); dirty.value = false; } return value; }); return [computedValue, update] as const; } function computedRefreshableAsync(getter: () => Promise, defaultValue?: T) { const dirty = ref(true); let value: T; const update = () => (dirty.value = true); watch(getter, update); const computedValue = computedAsync(async () => { if (dirty.value) { value = await getter(); dirty.value = false; } return value; }, defaultValue); return [computedValue, update] as const; } ================================================ FILE: src/composable/copy.ts ================================================ // eslint-disable-next-line no-restricted-imports import { useClipboard } from '@vueuse/core'; import { useMessage } from 'naive-ui'; import type { MaybeRefOrGetter } from 'vue'; export function useCopy({ source, text = 'Copied to the clipboard', createToast = true }: { source?: MaybeRefOrGetter; text?: string; createToast?: boolean } = {}) { const { copy, copied, ...rest } = useClipboard({ source, legacy: true, }); const message = useMessage(); return { ...rest, isJustCopied: copied, async copy(content?: string, { notificationMessage }: { notificationMessage?: string } = {}) { if (source) { await copy(); } else { await copy(content); } if (createToast) { message.success(notificationMessage ?? text); } }, }; } ================================================ FILE: src/composable/debouncedref.ts ================================================ import _ from 'lodash'; function useDebouncedRef(initialValue: T, delay: number, immediate: boolean = false) { const state = ref(initialValue); const debouncedRef = customRef((track, trigger) => ({ get() { track(); return state.value; }, set: _.debounce( (value) => { state.value = value; trigger(); }, delay, { leading: immediate }, ), })); return debouncedRef; } export default useDebouncedRef; ================================================ FILE: src/composable/downloadBase64.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { getMimeTypeFromBase64 } from './downloadBase64'; describe('downloadBase64', () => { describe('getMimeTypeFromBase64', () => { it('when the base64 string has a data URI, it returns the mime type', () => { expect(getMimeTypeFromBase64({ base64String: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA' })).to.deep.equal({ mimeType: 'image/png' }); expect(getMimeTypeFromBase64({ base64String: 'data:image/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA' })).to.deep.equal({ mimeType: 'image/jpg' }); }); it('when the base64 string has no data URI, it try to infer the mime type from the signature', () => { // https://en.wikipedia.org/wiki/List_of_file_signatures // PNG expect(getMimeTypeFromBase64({ base64String: 'iVBORw0KGgoAAAANSUhEUgAAAAUA' })).to.deep.equal({ mimeType: 'image/png' }); // GIF expect(getMimeTypeFromBase64({ base64String: 'R0lGODdh' })).to.deep.equal({ mimeType: 'image/gif' }); expect(getMimeTypeFromBase64({ base64String: 'R0lGODlh' })).to.deep.equal({ mimeType: 'image/gif' }); // JPG expect(getMimeTypeFromBase64({ base64String: '/9j/' })).to.deep.equal({ mimeType: 'image/jpg' }); // PDF expect(getMimeTypeFromBase64({ base64String: 'JVBERi0' })).to.deep.equal({ mimeType: 'application/pdf' }); }); it('when the base64 string has no data URI and no signature, it returns an undefined mimeType', () => { expect(getMimeTypeFromBase64({ base64String: 'JVBERi' })).to.deep.equal({ mimeType: undefined }); }); }); }); ================================================ FILE: src/composable/downloadBase64.ts ================================================ import { extension as getExtensionFromMimeType, extension as getMimeTypeFromExtension } from 'mime-types'; import type { Ref } from 'vue'; import _ from 'lodash'; export { getMimeTypeFromBase64, getMimeTypeFromExtension, getExtensionFromMimeType, useDownloadFileFromBase64, useDownloadFileFromBase64Refs, previewImageFromBase64, }; const commonMimeTypesSignatures = { 'JVBERi0': 'application/pdf', 'R0lGODdh': 'image/gif', 'R0lGODlh': 'image/gif', 'iVBORw0KGgo': 'image/png', '/9j/': 'image/jpg', }; function getMimeTypeFromBase64({ base64String }: { base64String: string }) { const [,mimeTypeFromBase64] = base64String.match(/data:(.*?);base64/i) ?? []; if (mimeTypeFromBase64) { return { mimeType: mimeTypeFromBase64 }; } const inferredMimeType = _.find(commonMimeTypesSignatures, (_mimeType, signature) => base64String.startsWith(signature)); if (inferredMimeType) { return { mimeType: inferredMimeType }; } return { mimeType: undefined }; } function getFileExtensionFromMimeType({ mimeType, defaultExtension = 'txt', }: { mimeType: string | undefined defaultExtension?: string }) { if (mimeType) { return getExtensionFromMimeType(mimeType) ?? defaultExtension; } return defaultExtension; } function downloadFromBase64({ sourceValue, filename, extension, fileMimeType }: { sourceValue: string; filename?: string; extension?: string; fileMimeType?: string }) { if (sourceValue === '') { throw new Error('Base64 string is empty'); } const defaultExtension = extension ?? 'txt'; const { mimeType } = getMimeTypeFromBase64({ base64String: sourceValue }); let base64String = sourceValue; if (!mimeType) { const targetMimeType = fileMimeType ?? getMimeTypeFromExtension(defaultExtension); base64String = `data:${targetMimeType};base64,${sourceValue}`; } const cleanExtension = extension ?? getFileExtensionFromMimeType( { mimeType, defaultExtension }); let cleanFileName = filename ?? `file.${cleanExtension}`; if (extension && !cleanFileName.endsWith(`.${extension}`)) { cleanFileName = `${cleanFileName}.${cleanExtension}`; } const a = document.createElement('a'); a.href = base64String; a.download = cleanFileName; a.click(); } function useDownloadFileFromBase64( { source, filename, extension, fileMimeType }: { source: Ref; filename?: string; extension?: string; fileMimeType?: string }) { return { download() { downloadFromBase64({ sourceValue: source.value, filename, extension, fileMimeType }); }, }; } function useDownloadFileFromBase64Refs( { source, filename, extension }: { source: Ref; filename?: Ref; extension?: Ref }) { return { download() { downloadFromBase64({ sourceValue: source.value, filename: filename?.value, extension: extension?.value }); }, }; } function previewImageFromBase64(base64String: string): HTMLImageElement { if (base64String === '') { throw new Error('Base64 string is empty'); } const img = document.createElement('img'); img.src = base64String; const container = document.createElement('div'); container.appendChild(img); const previewContainer = document.getElementById('previewContainer'); if (previewContainer) { previewContainer.innerHTML = ''; previewContainer.appendChild(container); } else { throw new Error('Preview container element not found'); } return img; } ================================================ FILE: src/composable/fuzzySearch.ts ================================================ import { type MaybeRef, get } from '@vueuse/core'; import Fuse from 'fuse.js'; import { computed } from 'vue'; export { useFuzzySearch }; function useFuzzySearch({ search, data, options = {}, }: { search: MaybeRef data: Data[] options?: Fuse.IFuseOptions & { filterEmpty?: boolean } }) { const fuse = new Fuse(data, options); const filterEmpty = options.filterEmpty ?? true; const searchResult = computed(() => { const query = get(search); if (!filterEmpty && query === '') { return data; } return fuse.search(query).map(({ item }) => item); }); return { searchResult }; } ================================================ FILE: src/composable/queryParams.ts ================================================ import { useRouteQuery } from '@vueuse/router'; import { computed } from 'vue'; import { useStorage } from '@vueuse/core'; export { useQueryParam, useQueryParamOrStorage }; const transformers = { number: { fromQuery: (value: string) => Number(value), toQuery: (value: number) => String(value), }, string: { fromQuery: (value: string) => value, toQuery: (value: string) => value, }, boolean: { fromQuery: (value: string) => value.toLowerCase() === 'true', toQuery: (value: boolean) => (value ? 'true' : 'false'), }, object: { fromQuery: (value: string) => { return JSON.parse(value); }, toQuery: (value: object) => JSON.stringify(value), }, }; function useQueryParam({ name, defaultValue }: { name: string; defaultValue: T }) { const type = typeof defaultValue; const transformer = transformers[type as keyof typeof transformers] ?? transformers.string; const proxy = useRouteQuery(name, transformer.toQuery(defaultValue as never)); return computed({ get() { return transformer.fromQuery(proxy.value) as unknown as T; }, set(value) { proxy.value = transformer.toQuery(value as never); }, }); } function useQueryParamOrStorage({ name, storageName, defaultValue }: { name: string; storageName: string; defaultValue: T }) { const type = typeof defaultValue; const transformer = transformers[type as keyof typeof transformers] ?? transformers.string; const storageRef = useStorage(storageName, defaultValue); const proxyDefaultValue = transformer.toQuery(defaultValue as never); const proxy = useRouteQuery(name, proxyDefaultValue); const r = ref(defaultValue); watch(r, (value) => { proxy.value = transformer.toQuery(value as never); storageRef.value = value as never; }, { deep: true }); r.value = (proxy.value && proxy.value !== proxyDefaultValue ? transformer.fromQuery(proxy.value) as unknown as T : storageRef.value as T) as never; return r; } ================================================ FILE: src/composable/validation.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { isFalsyOrHasThrown } from './validation'; describe('useValidation', () => { describe('isFalsyOrHasThrown', () => { it('should return true if the callback return nil, false or throw', () => { expect(isFalsyOrHasThrown(() => false)).toBe(true); expect(isFalsyOrHasThrown(() => null)).toBe(true); expect(isFalsyOrHasThrown(() => undefined)).toBe(true); expect(isFalsyOrHasThrown(() => {})).toBe(true); expect( isFalsyOrHasThrown(() => { throw new Error('message'); }), ).toBe(true); }); it('should return true for any truthy values and empty string and 0 values', () => { expect(isFalsyOrHasThrown(() => true)).toBe(false); expect(isFalsyOrHasThrown(() => 'string')).toBe(false); expect(isFalsyOrHasThrown(() => 1)).toBe(false); expect(isFalsyOrHasThrown(() => 0)).toBe(false); expect(isFalsyOrHasThrown(() => '')).toBe(false); expect(isFalsyOrHasThrown(() => [])).toBe(false); expect(isFalsyOrHasThrown(() => ({}))).toBe(false); }); }); }); ================================================ FILE: src/composable/validation.ts ================================================ import { type MaybeRef, get } from '@vueuse/core'; import _ from 'lodash'; import { type Ref, reactive, watch } from 'vue'; type ValidatorReturnType = unknown; type GetErrorMessageReturnType = string; export interface UseValidationRule { validator: (value: T) => ValidatorReturnType getErrorMessage?: (value: T) => GetErrorMessageReturnType message: string } export function isFalsyOrHasThrown(cb: () => ValidatorReturnType): boolean { try { const returnValue = cb(); if (_.isNil(returnValue)) { return true; } return returnValue === false; } catch (_) { return true; } } export function getErrorMessageOrThrown(cb: () => GetErrorMessageReturnType): string { try { return cb() || ''; } catch (e: any) { return e.toString(); } } export interface ValidationAttrs { feedback: string validationStatus: string | undefined } export function useValidation({ source, rules, watch: watchRefs = [], }: { source: Ref rules: MaybeRef[]> watch?: Ref[] }) { const state = reactive<{ message: string status: undefined | 'error' isValid: boolean attrs: ValidationAttrs }>({ message: '', status: undefined, isValid: false, attrs: { validationStatus: undefined, feedback: '', }, }); watch( [source, ...watchRefs], () => { state.message = ''; state.status = undefined; for (const rule of get(rules)) { if (isFalsyOrHasThrown(() => rule.validator(source.value))) { if (rule.getErrorMessage) { const getErrorMessage = rule.getErrorMessage; state.message = rule.message.replace('{0}', getErrorMessageOrThrown(() => getErrorMessage(source.value))); } else { state.message = rule.message; } state.status = 'error'; } } state.isValid = state.status !== 'error'; state.attrs.feedback = state.message; state.attrs.validationStatus = state.status; }, { immediate: true }, ); return state; } ================================================ FILE: src/config.ts ================================================ import { figue } from 'figue'; export const config = figue({ app: { version: { doc: 'Application current version', format: 'string', default: '0.0.0', env: 'PACKAGE_VERSION', }, lastCommitSha: { doc: 'Application last commit SHA version', format: 'string', default: '', env: 'VITE_VERCEL_GIT_COMMIT_SHA', }, baseUrl: { doc: 'Application base url', format: 'string', default: '/', env: 'BASE_URL', }, env: { doc: 'Application current env', format: 'enum', values: ['production', 'development', 'preview', 'test'], default: 'development', env: 'VITE_VERCEL_ENV', }, }, plausible: { isTrackerEnabled: { doc: 'Is the tracker enabled', format: 'boolean', default: false, env: 'VITE_TRACKER_ENABLED', }, domain: { doc: 'Plausible current domain', format: 'string', default: '', env: 'VITE_PLAUSIBLE_DOMAIN', }, apiHost: { doc: 'Plausible remote api host', format: 'string', default: '', env: 'VITE_PLAUSIBLE_API_HOST', }, trackLocalhost: { doc: 'Enable or disable localhost tracking by plausible', format: 'boolean', default: false, }, }, showBanner: { doc: 'Show the banner', format: 'boolean', default: false, env: 'VITE_SHOW_BANNER', }, showSponsorBanner: { doc: 'Show the sponsor banner', format: 'boolean', default: false, env: 'VITE_SHOW_SPONSOR_BANNER', }, }) .loadEnv({ ...import.meta.env, // Because the string 'import.meta.env.PACKAGE_VERSION' is statically replaced during build time (see 'define' in vite.config.ts) PACKAGE_VERSION: import.meta.env.PACKAGE_VERSION, }) .validate() .getConfig(); ================================================ FILE: src/layouts/base.layout.vue ================================================ ================================================ FILE: src/layouts/index.ts ================================================ import BaseLayout from './base.layout.vue'; import ToolLayout from './tool.layout.vue'; export const layouts = { base: BaseLayout, toolLayout: ToolLayout, }; ================================================ FILE: src/layouts/tool.layout.vue ================================================ ================================================ FILE: src/main.ts ================================================ import { createApp } from 'vue'; import { createPinia } from 'pinia'; import { createHead } from '@vueuse/head'; import { registerSW } from 'virtual:pwa-register'; import shadow from 'vue-shadow-dom'; import { plausible } from './plugins/plausible.plugin'; import 'virtual:uno.css'; import { naive } from './plugins/naive.plugin'; import App from './App.vue'; import router from './router'; import { i18nPlugin } from './plugins/i18n.plugin'; registerSW(); const app = createApp(App); app.use(createPinia()); app.use(createHead()); app.use(i18nPlugin); app.use(router); app.use(naive); app.use(plausible); app.use(shadow); app.mount('#app'); ================================================ FILE: src/modules/command-palette/command-palette.store.ts ================================================ import { defineStore } from 'pinia'; import _ from 'lodash'; import type { PaletteOption } from './command-palette.types'; import { useToolStore } from '@/tools/tools.store'; import { useFuzzySearch } from '@/composable/fuzzySearch'; import { useStyleStore } from '@/stores/style.store'; import SunIcon from '~icons/mdi/white-balance-sunny'; import GithubIcon from '~icons/mdi/github'; import BugIcon from '~icons/mdi/bug-outline'; import DiceIcon from '~icons/mdi/dice-5'; import InfoIcon from '~icons/mdi/information-outline'; export const useCommandPaletteStore = defineStore('command-palette', () => { const toolStore = useToolStore(); const styleStore = useStyleStore(); const router = useRouter(); const searchPrompt = ref(''); const toolsOptions = toolStore.tools.map(tool => ({ ...tool, to: tool.path, toolCategory: tool.category, category: 'Tools', })); const searchOptions: PaletteOption[] = [ ...toolsOptions, { name: 'Random tool', description: 'Get a random tool from the list.', action: () => { const { path } = _.sample(toolStore.tools)!; router.push(path); }, icon: DiceIcon, category: 'Tools', keywords: ['random', 'tool', 'pick', 'choose', 'select'], closeOnSelect: true, }, { name: 'Toggle dark mode', description: 'Toggle dark mode on or off.', action: () => styleStore.toggleDark(), icon: SunIcon, category: 'Actions', keywords: ['dark', 'theme', 'toggle', 'mode', 'light', 'system'], }, { name: 'Github repository', href: 'https://github.com/CorentinTh/it-tools', category: 'External', description: 'View the source code of it-tools on Github.', keywords: ['github', 'repo', 'repository', 'source', 'code'], icon: GithubIcon, }, { name: 'Report a bug or an issue', description: 'Report a bug or an issue to help improve it-tools.', href: 'https://github.com/CorentinTh/it-tools/issues/new/choose', category: 'Actions', keywords: ['report', 'issue', 'bug', 'problem', 'error'], icon: BugIcon, }, { name: 'About', description: 'Learn more about IT-Tools.', to: '/about', category: 'Pages', keywords: ['about', 'learn', 'more', 'info', 'information'], icon: InfoIcon, }, ]; const { searchResult } = useFuzzySearch({ search: searchPrompt, data: searchOptions, options: { keys: [{ name: 'name', weight: 2 }, 'description', 'keywords', 'category'], threshold: 0.3, }, }); const filteredSearchResult = computed(() => _.chain(searchResult.value).groupBy('category').mapValues(categoryOptions => _.take(categoryOptions, 5)).value()); return { filteredSearchResult, searchPrompt, }; }); ================================================ FILE: src/modules/command-palette/command-palette.types.ts ================================================ import type { Component } from 'vue'; import type { RouteLocationRaw } from 'vue-router'; export interface PaletteOption { name: string description?: string icon?: Component action?: () => void to?: RouteLocationRaw category: string keywords?: string[] href?: string closeOnSelect?: boolean } ================================================ FILE: src/modules/command-palette/command-palette.vue ================================================ ================================================ FILE: src/modules/command-palette/components/command-palette-option.vue ================================================ ================================================ FILE: src/modules/i18n/components/locale-selector.vue ================================================ ================================================ FILE: src/modules/shared/date.models.ts ================================================ import { format } from 'date-fns'; export { getUrlFriendlyDateTime }; function getUrlFriendlyDateTime({ date = new Date() }: { date?: Date } = {}) { return format(date, 'yyyy-MM-dd-HH-mm-ss'); } ================================================ FILE: src/modules/shared/number.models.ts ================================================ function clamp({ value, min = 0, max = 100 }: { value: number; min?: number; max?: number }) { return Math.min(Math.max(value, min), max); } export { clamp }; ================================================ FILE: src/modules/tracker/tracker.services.ts ================================================ import _ from 'lodash'; import type Plausible from 'plausible-tracker'; import { inject } from 'vue'; export { createTrackerService, useTracker }; function createTrackerService({ plausible }: { plausible: ReturnType }) { return { trackEvent({ eventName }: { eventName: string }) { plausible.trackEvent(eventName); }, }; } function useTracker() { const plausible: ReturnType | undefined = inject('plausible'); if (_.isNil(plausible)) { throw new TypeError('Plausible must be instantiated'); } const tracker = createTrackerService({ plausible }); return { tracker, }; } ================================================ FILE: src/modules/tracker/tracker.types.ts ================================================ import type { createTrackerService } from './tracker.services'; export type TrackerService = ReturnType; ================================================ FILE: src/pages/404.page.vue ================================================ ================================================ FILE: src/pages/About.vue ================================================ ================================================ FILE: src/pages/Home.page.vue ================================================ ================================================ FILE: src/plugins/i18n.plugin.ts ================================================ import messages from '@intlify/unplugin-vue-i18n/messages'; import { get } from '@vueuse/core'; import type { Plugin } from 'vue'; import { createI18n } from 'vue-i18n'; const i18n = createI18n({ legacy: false, locale: 'en', messages, }); export const i18nPlugin: Plugin = { install: (app) => { app.use(i18n); }, }; export const translate = function (localeKey: string) { const hasKey = i18n.global.te(localeKey, get(i18n.global.locale)); return hasKey ? i18n.global.t(localeKey) : localeKey; }; ================================================ FILE: src/plugins/naive.plugin.ts ================================================ import { create } from 'naive-ui'; export const naive = create(); ================================================ FILE: src/plugins/plausible.plugin.ts ================================================ import { noop } from 'lodash'; import Plausible from 'plausible-tracker'; import type { App } from 'vue'; import { config } from '@/config'; function createFakePlausibleInstance(): Pick, 'trackEvent' | 'enableAutoPageviews'> { return { trackEvent: noop, enableAutoPageviews: () => noop, }; } function createPlausibleInstance({ config, }: { config: { isTrackerEnabled: boolean domain: string apiHost: string trackLocalhost: boolean } }) { if (config.isTrackerEnabled) { return Plausible(config); } return createFakePlausibleInstance(); } export const plausible = { install: (app: App) => { const plausible = createPlausibleInstance({ config: config.plausible }); plausible.enableAutoPageviews(); app.provide('plausible', plausible); }, }; ================================================ FILE: src/router.ts ================================================ import { createRouter, createWebHistory } from 'vue-router'; import { layouts } from './layouts/index'; import HomePage from './pages/Home.page.vue'; import NotFound from './pages/404.page.vue'; import { tools } from './tools'; import { config } from './config'; import { routes as demoRoutes } from './ui/demo/demo.routes'; const toolsRoutes = tools.map(({ path, name, component, ...config }) => ({ path, name, component, meta: { isTool: true, layout: layouts.toolLayout, name, ...config }, })); const toolsRedirectRoutes = tools .filter(({ redirectFrom }) => redirectFrom && redirectFrom.length > 0) .flatMap( ({ path, redirectFrom }) => redirectFrom?.map(redirectSource => ({ path: redirectSource, redirect: path })) ?? [], ); const router = createRouter({ history: createWebHistory(config.app.baseUrl), routes: [ { path: '/', name: 'home', component: HomePage, }, { path: '/about', name: 'about', component: () => import('./pages/About.vue'), }, ...toolsRoutes, ...toolsRedirectRoutes, ...(config.app.env === 'development' ? demoRoutes : []), { path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound }, ], }); export default router; ================================================ FILE: src/shims.d.ts ================================================ declare module '*.vue' { import type { ComponentOptions } from 'vue'; const Component: ComponentOptions; export default Component; } declare module '*.md' { import type { ComponentOptions } from 'vue'; const Component: ComponentOptions; export default Component; } declare module 'iarna-toml-esm' { export const parse: (toml: string) => any; export const stringify: (obj: any) => string; } declare module 'emojilib' { const lib: Record; export default lib; } declare module 'unicode-emoji-json' { const emoji: Record; export default emoji; } declare module 'pdf-signature-reader' { const verifySignature: (pdf: ArrayBuffer) => ({signatures: SignatureInfo[]}); export default verifySignature; } ================================================ FILE: src/stores/style.store.ts ================================================ import { useDark, useMediaQuery, useStorage, useToggle } from '@vueuse/core'; import { defineStore } from 'pinia'; import { type Ref, watch } from 'vue'; export const useStyleStore = defineStore('style', { state: () => { const isDarkTheme = useDark(); const toggleDark = useToggle(isDarkTheme); const isSmallScreen = useMediaQuery('(max-width: 700px)'); const isMenuCollapsed = useStorage('isMenuCollapsed', isSmallScreen.value) as Ref; watch(isSmallScreen, v => (isMenuCollapsed.value = v)); return { isDarkTheme, toggleDark, isMenuCollapsed, isSmallScreen, }; }, }); ================================================ FILE: src/themes.ts ================================================ import type { GlobalThemeOverrides } from 'naive-ui'; export const lightThemeOverrides: GlobalThemeOverrides = { Menu: { itemHeight: '32px', }, Layout: { color: '#f1f5f9' }, AutoComplete: { peers: { InternalSelectMenu: { height: '500px' }, }, }, }; export const darkThemeOverrides: GlobalThemeOverrides = { common: { primaryColor: '#1ea54cFF', primaryColorHover: '#36AD6AFF', primaryColorPressed: '#0C7A43FF', primaryColorSuppl: '#36AD6AFF', }, Notification: { color: '#333333', }, AutoComplete: { peers: { InternalSelectMenu: { height: '500px', color: '#1e1e1e' }, }, }, Menu: { itemHeight: '32px', }, Layout: { color: '#1c1c1c', siderColor: '#232323', siderBorderColor: 'transparent', }, Card: { color: '#232323', borderColor: '#282828', }, Table: { tdColor: '#232323', thColor: '#353535', }, }; ================================================ FILE: src/tools/ascii-text-drawer/ascii-text-drawer.vue ================================================ ================================================ FILE: src/tools/ascii-text-drawer/index.ts ================================================ import { Artboard } from '@vicons/tabler'; import { defineTool } from '../tool'; export const tool = defineTool({ name: 'ASCII Art Text Generator', path: '/ascii-text-drawer', description: 'Create ASCII art text with many fonts and styles.', keywords: ['ascii', 'asciiart', 'text', 'drawer'], component: () => import('./ascii-text-drawer.vue'), icon: Artboard, createdAt: new Date('2024-03-03'), }); ================================================ FILE: src/tools/base64-file-converter/base64-file-converter.vue ================================================ ================================================ FILE: src/tools/base64-file-converter/index.ts ================================================ import { FileDigit } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.base64-file-converter.title'), path: '/base64-file-converter', description: translate('tools.base64-file-converter.description'), keywords: ['base64', 'converter', 'upload', 'image', 'file', 'conversion', 'web', 'data', 'format'], component: () => import('./base64-file-converter.vue'), icon: FileDigit, }); ================================================ FILE: src/tools/base64-string-converter/base64-string-converter.vue ================================================ ================================================ FILE: src/tools/base64-string-converter/index.ts ================================================ import { FileDigit } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.base64-string-converter.title'), path: '/base64-string-converter', description: translate('tools.base64-string-converter.description'), keywords: ['base64', 'converter', 'conversion', 'web', 'data', 'format', 'atob', 'btoa'], component: () => import('./base64-string-converter.vue'), icon: FileDigit, redirectFrom: ['/file-to-base64', '/base64-converter'], }); ================================================ FILE: src/tools/basic-auth-generator/basic-auth-generator.vue ================================================ ================================================ FILE: src/tools/basic-auth-generator/index.ts ================================================ import { PasswordRound } from '@vicons/material'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.basic-auth-generator.title'), path: '/basic-auth-generator', description: translate('tools.basic-auth-generator.description'), keywords: [ 'basic', 'auth', 'generator', 'username', 'password', 'base64', 'authentication', 'header', 'authorization', ], component: () => import('./basic-auth-generator.vue'), icon: PasswordRound, }); ================================================ FILE: src/tools/bcrypt/bcrypt.vue ================================================ ================================================ FILE: src/tools/bcrypt/index.ts ================================================ import { LockSquare } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.bcrypt.title'), path: '/bcrypt', description: translate('tools.bcrypt.description'), keywords: ['bcrypt', 'hash', 'compare', 'password', 'salt', 'round', 'storage', 'crypto'], component: () => import('./bcrypt.vue'), icon: LockSquare, }); ================================================ FILE: src/tools/benchmark-builder/benchmark-builder.models.ts ================================================ import _ from 'lodash'; export { computeAverage, computeVariance, arrayToMarkdownTable }; function computeAverage({ data }: { data: number[] }) { if (data.length === 0) { return 0; } return _.sum(data) / data.length; } function computeVariance({ data }: { data: number[] }) { const mean = computeAverage({ data }); const squaredDiffs = data.map(value => (value - mean) ** 2); return computeAverage({ data: squaredDiffs }); } function arrayToMarkdownTable({ data, headerMap = {} }: { data: Record[]; headerMap?: Record }) { if (!Array.isArray(data) || data.length === 0) { return ''; } const headers = Object.keys(data[0]); const rows = data.map(obj => Object.values(obj)); const headerRow = `| ${headers.map(header => headerMap[header] ?? header).join(' | ')} |`; const separatorRow = `| ${headers.map(() => '---').join(' | ')} |`; const dataRows = rows.map(row => `| ${row.join(' | ')} |`).join('\n'); return `${headerRow}\n${separatorRow}\n${dataRows}`; } ================================================ FILE: src/tools/benchmark-builder/benchmark-builder.vue ================================================ ================================================ FILE: src/tools/benchmark-builder/dynamic-values.vue ================================================ ================================================ FILE: src/tools/benchmark-builder/index.ts ================================================ import { SpeedFilled } from '@vicons/material'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.benchmark-builder.title'), path: '/benchmark-builder', description: translate('tools.benchmark-builder.description'), keywords: ['benchmark', 'builder', 'execution', 'duration', 'mean', 'variance'], component: () => import('./benchmark-builder.vue'), icon: SpeedFilled, createdAt: new Date('2023-04-05'), }); ================================================ FILE: src/tools/bip39-generator/bip39-generator.vue ================================================ ================================================ FILE: src/tools/bip39-generator/index.ts ================================================ import { AlignJustified } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.bip39-generator.title'), path: '/bip39-generator', description: translate('tools.bip39-generator.description'), keywords: ['BIP39', 'passphrase', 'generator', 'mnemonic', 'entropy'], component: () => import('./bip39-generator.vue'), icon: AlignJustified, }); ================================================ FILE: src/tools/camera-recorder/camera-recorder.vue ================================================ ================================================ FILE: src/tools/camera-recorder/index.ts ================================================ import { Camera } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.camera-recorder.title'), path: '/camera-recorder', description: translate('tools.camera-recorder.description'), keywords: ['camera', 'recoder'], component: () => import('./camera-recorder.vue'), icon: Camera, createdAt: new Date('2023-05-15'), }); ================================================ FILE: src/tools/camera-recorder/useMediaRecorder.ts ================================================ import { type Ref, computed, ref } from 'vue'; export { useMediaRecorder }; function useMediaRecorder({ stream }: { stream: Ref }): { isRecordingSupported: Ref recordingState: Ref<'stopped' | 'recording' | 'paused'> startRecording: () => void stopRecording: () => void pauseRecording: () => void resumeRecording: () => void onRecordAvailable: (cb: (url: string) => void) => void } { const isRecordingSupported = computed(() => MediaRecorder.isTypeSupported('video/webm')); const mediaRecorder = ref(null); const recordedChunks = ref([]); const recordAvailable = createEventHook(); const recordingState = ref<'stopped' | 'recording' | 'paused'>('stopped'); const createVideo = () => { const blob = new Blob(recordedChunks.value, { type: 'video/webm' }); const url = URL.createObjectURL(blob); recordedChunks.value = []; return url; }; const startRecording = () => { if (!isRecordingSupported.value) { return; } if (!stream.value) { return; } if (recordingState.value !== 'stopped') { return; } mediaRecorder.value = new MediaRecorder(stream.value, { mimeType: 'video/webm' }); mediaRecorder.value.ondataavailable = (e) => { if (e.data.size > 0) { recordedChunks.value.push(e.data); } }; mediaRecorder.value.onstop = () => { recordAvailable.trigger(createVideo()); }; if (mediaRecorder.value.state !== 'inactive') { return; } mediaRecorder.value.start(); recordingState.value = 'recording'; }; const stopRecording = () => { if (!isRecordingSupported.value) { return; } if (!mediaRecorder.value) { return; } if (recordingState.value === 'stopped') { return; } mediaRecorder.value.stop(); recordingState.value = 'stopped'; }; const pauseRecording = () => { if (!isRecordingSupported.value) { return; } if (!mediaRecorder.value) { return; } if (recordingState.value !== 'recording') { return; } mediaRecorder.value.pause(); recordingState.value = 'paused'; }; const resumeRecording = () => { if (!isRecordingSupported.value) { return; } if (!mediaRecorder.value) { return; } if (recordingState.value !== 'paused') { return; } mediaRecorder.value.resume(); recordingState.value = 'recording'; }; return { isRecordingSupported, startRecording, stopRecording, pauseRecording, resumeRecording, recordingState, onRecordAvailable: recordAvailable.on, }; } ================================================ FILE: src/tools/case-converter/case-converter.vue ================================================ ================================================ FILE: src/tools/case-converter/index.ts ================================================ import { LetterCaseToggle } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.case-converter.title'), path: '/case-converter', description: translate('tools.case-converter.description'), keywords: [ 'case', 'converter', 'camelCase', 'capitalCase', 'constantCase', 'dotCase', 'headerCase', 'noCase', 'paramCase', 'pascalCase', 'pathCase', 'sentenceCase', 'snakeCase', ], component: () => import('./case-converter.vue'), icon: LetterCaseToggle, }); ================================================ FILE: src/tools/chmod-calculator/chmod-calculator.service.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { computeChmodOctalRepresentation, computeChmodSymbolicRepresentation } from './chmod-calculator.service'; describe('chmod-calculator', () => { describe('computeChmodOctalRepresentation', () => { it('get the octal representation from permissions', () => { expect( computeChmodOctalRepresentation({ permissions: { owner: { read: true, write: true, execute: true }, group: { read: true, write: true, execute: true }, public: { read: true, write: true, execute: true }, }, }), ).to.eql('777'); expect( computeChmodOctalRepresentation({ permissions: { owner: { read: false, write: false, execute: false }, group: { read: false, write: false, execute: false }, public: { read: false, write: false, execute: false }, }, }), ).to.eql('000'); expect( computeChmodOctalRepresentation({ permissions: { owner: { read: false, write: true, execute: false }, group: { read: false, write: true, execute: true }, public: { read: true, write: false, execute: true }, }, }), ).to.eql('235'); expect( computeChmodOctalRepresentation({ permissions: { owner: { read: true, write: false, execute: false }, group: { read: false, write: true, execute: false }, public: { read: false, write: false, execute: true }, }, }), ).to.eql('421'); expect( computeChmodOctalRepresentation({ permissions: { owner: { read: false, write: false, execute: true }, group: { read: false, write: true, execute: false }, public: { read: true, write: false, execute: false }, }, }), ).to.eql('124'); expect( computeChmodOctalRepresentation({ permissions: { owner: { read: false, write: true, execute: false }, group: { read: false, write: true, execute: false }, public: { read: false, write: true, execute: false }, }, }), ).to.eql('222'); }); it('get the symbolic representation from permissions', () => { expect( computeChmodSymbolicRepresentation({ permissions: { owner: { read: true, write: true, execute: true }, group: { read: true, write: true, execute: true }, public: { read: true, write: true, execute: true }, }, }), ).to.eql('rwxrwxrwx'); expect( computeChmodSymbolicRepresentation({ permissions: { owner: { read: false, write: false, execute: false }, group: { read: false, write: false, execute: false }, public: { read: false, write: false, execute: false }, }, }), ).to.eql('---------'); expect( computeChmodSymbolicRepresentation({ permissions: { owner: { read: false, write: true, execute: false }, group: { read: false, write: true, execute: true }, public: { read: true, write: false, execute: true }, }, }), ).to.eql('-w--wxr-x'); expect( computeChmodSymbolicRepresentation({ permissions: { owner: { read: true, write: false, execute: false }, group: { read: false, write: true, execute: false }, public: { read: false, write: false, execute: true }, }, }), ).to.eql('r---w---x'); expect( computeChmodSymbolicRepresentation({ permissions: { owner: { read: false, write: false, execute: true }, group: { read: false, write: true, execute: false }, public: { read: true, write: false, execute: false }, }, }), ).to.eql('--x-w-r--'); expect( computeChmodSymbolicRepresentation({ permissions: { owner: { read: false, write: true, execute: false }, group: { read: false, write: true, execute: false }, public: { read: false, write: true, execute: false }, }, }), ).to.eql('-w--w--w-'); }); }); }); ================================================ FILE: src/tools/chmod-calculator/chmod-calculator.service.ts ================================================ import _ from 'lodash'; import type { GroupPermissions, Permissions } from './chmod-calculator.types'; export { computeChmodOctalRepresentation, computeChmodSymbolicRepresentation }; function computeChmodOctalRepresentation({ permissions }: { permissions: Permissions }): string { const permissionValue = { read: 4, write: 2, execute: 1 }; const getGroupPermissionValue = (permission: GroupPermissions) => _.reduce(permission, (acc, isPermSet, key) => acc + (isPermSet ? _.get(permissionValue, key, 0) : 0), 0); return [ getGroupPermissionValue(permissions.owner), getGroupPermissionValue(permissions.group), getGroupPermissionValue(permissions.public), ].join(''); } function computeChmodSymbolicRepresentation({ permissions }: { permissions: Permissions }): string { const permissionValue = { read: 'r', write: 'w', execute: 'x' }; const getGroupPermissionValue = (permission: GroupPermissions) => _.reduce(permission, (acc, isPermSet, key) => acc + (isPermSet ? _.get(permissionValue, key, '') : '-'), ''); return [ getGroupPermissionValue(permissions.owner), getGroupPermissionValue(permissions.group), getGroupPermissionValue(permissions.public), ].join(''); } ================================================ FILE: src/tools/chmod-calculator/chmod-calculator.types.ts ================================================ export type Scope = 'read' | 'write' | 'execute'; export type Group = 'owner' | 'group' | 'public'; export type GroupPermissions = { [k in Scope]: boolean; }; export type Permissions = { [k in Group]: GroupPermissions; }; ================================================ FILE: src/tools/chmod-calculator/chmod-calculator.vue ================================================ ================================================ FILE: src/tools/chmod-calculator/index.ts ================================================ import { FileInvoice } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.chmod-calculator.title'), path: '/chmod-calculator', description: translate('tools.chmod-calculator.description'), keywords: [ 'chmod', 'calculator', 'file', 'permission', 'files', 'directory', 'folder', 'recursive', 'generator', 'octal', ], component: () => import('./chmod-calculator.vue'), icon: FileInvoice, }); ================================================ FILE: src/tools/chronometer/chronometer.service.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { formatMs } from './chronometer.service'; describe('chronometer', () => { describe('formatChronometerTime', () => { it('format the elapsed time', () => { expect(formatMs(0)).toEqual('00:00.000'); expect(formatMs(1)).toEqual('00:00.001'); expect(formatMs(123456)).toEqual('02:03.456'); expect(formatMs(12345600)).toEqual('03:25:45.600'); }); }); }); ================================================ FILE: src/tools/chronometer/chronometer.service.ts ================================================ export function formatMs(msTotal: number) { const ms = msTotal % 1000; const secs = ((msTotal - ms) / 1000) % 60; const mins = (((msTotal - ms) / 1000 - secs) / 60) % 60; const hrs = (((msTotal - ms) / 1000 - secs) / 60 - mins) / 60; const hrsString = hrs > 0 ? `${hrs.toString().padStart(2, '0')}:` : ''; return `${hrsString}${mins.toString().padStart(2, '0')}:${secs.toString().padStart(2, '0')}.${ms .toString() .padStart(3, '0')}`; } ================================================ FILE: src/tools/chronometer/chronometer.vue ================================================ ================================================ FILE: src/tools/chronometer/index.ts ================================================ import { TimerOutlined } from '@vicons/material'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.chronometer.title'), path: '/chronometer', description: translate('tools.chronometer.description'), keywords: ['chronometer', 'time', 'lap', 'duration', 'measure', 'pause', 'resume', 'stopwatch'], component: () => import('./chronometer.vue'), icon: TimerOutlined, }); ================================================ FILE: src/tools/color-converter/color-converter.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - Color converter', () => { test.beforeEach(async ({ page }) => { await page.goto('/color-converter'); }); test('Has title', async ({ page }) => { await expect(page).toHaveTitle('Color converter - IT Tools'); }); test('Color is converted from its name to other formats', async ({ page }) => { await page.getByTestId('input-name').fill('olive'); expect(await page.getByTestId('input-name').inputValue()).toEqual('olive'); expect(await page.getByTestId('input-hex').inputValue()).toEqual('#808000'); expect(await page.getByTestId('input-rgb').inputValue()).toEqual('rgb(128, 128, 0)'); expect(await page.getByTestId('input-hsl').inputValue()).toEqual('hsl(60, 100%, 25%)'); expect(await page.getByTestId('input-hwb').inputValue()).toEqual('hwb(60 0% 50%)'); expect(await page.getByTestId('input-cmyk').inputValue()).toEqual('device-cmyk(0% 0% 100% 50%)'); expect(await page.getByTestId('input-lch').inputValue()).toEqual('lch(52.15% 56.81 99.57)'); }); }); ================================================ FILE: src/tools/color-converter/color-converter.models.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { removeAlphaChannelWhenOpaque } from './color-converter.models'; describe('color-converter models', () => { describe('removeAlphaChannelWhenOpaque', () => { it('remove alpha channel of an hex color when it is opaque (alpha = 1)', () => { expect(removeAlphaChannelWhenOpaque('#000000ff')).toBe('#000000'); expect(removeAlphaChannelWhenOpaque('#ffffffFF')).toBe('#ffffff'); expect(removeAlphaChannelWhenOpaque('#000000FE')).toBe('#000000FE'); expect(removeAlphaChannelWhenOpaque('#00000000')).toBe('#00000000'); }); }); }); ================================================ FILE: src/tools/color-converter/color-converter.models.ts ================================================ import { type Colord, colord } from 'colord'; import { withDefaultOnError } from '@/utils/defaults'; import { useValidation } from '@/composable/validation'; export { removeAlphaChannelWhenOpaque, buildColorFormat }; function removeAlphaChannelWhenOpaque(hexColor: string) { return hexColor.replace(/^(#(?:[0-9a-f]{3}){1,2})ff$/i, '$1'); } function buildColorFormat({ label, parse = value => colord(value), format, placeholder, invalidMessage = `Invalid ${label.toLowerCase()} format.`, type = 'text', }: { label: string parse?: (value: string) => Colord format: (value: Colord) => string placeholder?: string invalidMessage?: string type?: 'text' | 'color-picker' }) { const value = ref(''); return { type, label, parse: (v: string) => withDefaultOnError(() => parse(v), undefined), format, placeholder, value, validation: useValidation({ source: value, rules: [ { message: invalidMessage, validator: v => withDefaultOnError(() => { if (v === '') { return true; } return parse(v).isValid(); }, false), }, ], }), }; } ================================================ FILE: src/tools/color-converter/color-converter.vue ================================================ ================================================ FILE: src/tools/color-converter/index.ts ================================================ import { Palette } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.color-converter.title'), path: '/color-converter', description: translate('tools.color-converter.description'), keywords: ['color', 'converter'], component: () => import('./color-converter.vue'), icon: Palette, redirectFrom: ['/color-picker-converter'], }); ================================================ FILE: src/tools/crontab-generator/crontab-generator.vue ================================================ ================================================ FILE: src/tools/crontab-generator/index.ts ================================================ import { Alarm } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.crontab-generator.title'), path: '/crontab-generator', description: translate('tools.crontab-generator.description'), keywords: [ 'crontab', 'generator', 'cronjob', 'cron', 'schedule', 'parse', 'expression', 'year', 'month', 'week', 'day', 'minute', 'second', ], component: () => import('./crontab-generator.vue'), icon: Alarm, }); ================================================ FILE: src/tools/date-time-converter/date-time-converter.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Date time converter - json to yaml', () => { test.beforeEach(async ({ page }) => { await page.goto('/date-converter'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('Date-time converter - IT Tools'); }); test('Format is auto detected from a date and the date is correctly converted', async ({ page }) => { const initialFormat = await page.getByTestId('date-time-converter-format-select').innerText(); expect(initialFormat.trim()).toEqual('Timestamp'); await page.getByTestId('date-time-converter-input').fill('2023-04-12T23:10:24+02:00'); const detectedFormat = await page.getByTestId('date-time-converter-format-select').innerText(); expect(detectedFormat.trim()).toEqual('ISO 8601'); expect((await page.getByTestId('JS locale date string').inputValue()).trim()).toEqual( 'Wed Apr 12 2023 23:10:24 GMT+0200 (Central European Summer Time)', ); expect((await page.getByTestId('ISO 8601').inputValue()).trim()).toEqual('2023-04-12T23:10:24+02:00'); expect((await page.getByTestId('ISO 9075').inputValue()).trim()).toEqual('2023-04-12 23:10:24'); expect((await page.getByTestId('Unix timestamp').inputValue()).trim()).toEqual('1681333824'); expect((await page.getByTestId('RFC 7231').inputValue()).trim()).toEqual('Wed, 12 Apr 2023 21:10:24 GMT'); expect((await page.getByTestId('RFC 3339').inputValue()).trim()).toEqual('2023-04-12T23:10:24+02:00'); expect((await page.getByTestId('Timestamp').inputValue()).trim()).toEqual('1681333824000'); expect((await page.getByTestId('UTC format').inputValue()).trim()).toEqual('Wed, 12 Apr 2023 21:10:24 GMT'); expect((await page.getByTestId('Mongo ObjectID').inputValue()).trim()).toEqual('64371e400000000000000000'); expect((await page.getByTestId('Excel date/time').inputValue()).trim()).toEqual('45028.88222222222'); }); }); ================================================ FILE: src/tools/date-time-converter/date-time-converter.models.test.ts ================================================ import { describe, expect, test } from 'vitest'; import { dateToExcelFormat, excelFormatToDate, isExcelFormat, isISO8601DateTimeString, isISO9075DateString, isMongoObjectId, isRFC3339DateString, isRFC7231DateString, isTimestamp, isUTCDateString, isUnixTimestamp, } from './date-time-converter.models'; describe('date-time-converter models', () => { describe('isISO8601DateTimeString', () => { test('should return true for valid ISO 8601 date strings', () => { expect(isISO8601DateTimeString('2021-01-01T00:00:00.000Z')).toBe(true); expect(isISO8601DateTimeString('2023-04-12T14:56:00+01:00')).toBe(true); expect(isISO8601DateTimeString('20230412T145600+0100')).toBe(true); expect(isISO8601DateTimeString('20230412T145600Z')).toBe(true); expect(isISO8601DateTimeString('2016-02-01')).toBe(true); expect(isISO8601DateTimeString('2016')).toBe(true); }); test('should return false for invalid ISO 8601 date strings', () => { expect(isISO8601DateTimeString()).toBe(false); expect(isISO8601DateTimeString('')).toBe(false); expect(isISO8601DateTimeString('qsdqsd')).toBe(false); expect(isISO8601DateTimeString('2016-02-01-')).toBe(false); expect(isISO8601DateTimeString('2021-01-01T00:00:00.')).toBe(false); }); }); describe('isISO9075DateString', () => { test('should return true for valid ISO 9075 date strings', () => { expect(isISO9075DateString('2022-01-01 12:00:00Z')).toBe(true); expect(isISO9075DateString('2022-01-01 12:00:00.123456Z')).toBe(true); expect(isISO9075DateString('2022-01-01 12:00:00+01:00')).toBe(true); expect(isISO9075DateString('2022-01-01 12:00:00-05:00')).toBe(true); }); test('should return false for invalid ISO 9075 date strings', () => { expect(isISO9075DateString('2022/01/01T12:00:00Z')).toBe(false); expect(isISO9075DateString('2022-01-01 12:00:00.123456789Z')).toBe(false); expect(isISO9075DateString('2022-01-01 12:00:00+1:00')).toBe(false); expect(isISO9075DateString('2022-01-01 12:00:00-05:')).toBe(false); expect(isISO9075DateString('2022-01-01 12:00:00-05:00:00')).toBe(false); expect(isISO9075DateString('2022-01-01')).toBe(false); expect(isISO9075DateString('12:00:00Z')).toBe(false); expect(isISO9075DateString('2022-01-01T12:00:00Zfoo')).toBe(false); }); }); describe('isRFC3339DateString', () => { test('should return true for valid RFC 3339 date strings', () => { expect(isRFC3339DateString('2022-01-01T12:00:00Z')).toBe(true); expect(isRFC3339DateString('2022-01-01T12:00:00.123456789Z')).toBe(true); expect(isRFC3339DateString('2022-01-01T12:00:00.123456789+01:00')).toBe(true); expect(isRFC3339DateString('2022-01-01T12:00:00-05:00')).toBe(true); }); test('should return false for invalid RFC 3339 date strings', () => { expect(isRFC3339DateString('2022/01/01T12:00:00Z')).toBe(false); expect(isRFC3339DateString('2022-01-01T12:00:00.123456789+1:00')).toBe(false); expect(isRFC3339DateString('2022-01-01T12:00:00-05:')).toBe(false); expect(isRFC3339DateString('2022-01-01T12:00:00-05:00:00')).toBe(false); expect(isRFC3339DateString('2022-01-01')).toBe(false); expect(isRFC3339DateString('12:00:00Z')).toBe(false); expect(isRFC3339DateString('2022-01-01T12:00:00Zfoo')).toBe(false); }); }); describe('isRFC7231DateString', () => { test('should return true for valid RFC 7231 date strings', () => { expect(isRFC7231DateString('Sun, 06 Nov 1994 08:49:37 GMT')).toBe(true); expect(isRFC7231DateString('Tue, 22 Apr 2014 07:00:00 GMT')).toBe(true); }); test('should return false for invalid RFC 7231 date strings', () => { expect(isRFC7231DateString('06 Nov 1994 08:49:37 GMT')).toBe(false); expect(isRFC7231DateString('Sun, 06 Nov 94 08:49:37 GMT')).toBe(false); expect(isRFC7231DateString('Sun, 06 Nov 1994 8:49:37 GMT')).toBe(false); expect(isRFC7231DateString('Sun, 06 Nov 1994 08:49:37 GMT-0500')).toBe(false); expect(isRFC7231DateString('Sun, 06 November 1994 08:49:37 GMT')).toBe(false); expect(isRFC7231DateString('Sunday, 06 Nov 1994 08:49:37 GMT')).toBe(false); expect(isRFC7231DateString('06 Nov 1994')).toBe(false); }); }); describe('isUnixTimestamp', () => { test('should return true for valid Unix timestamps', () => { expect(isUnixTimestamp('1649789394')).toBe(true); expect(isUnixTimestamp('1234567890')).toBe(true); expect(isUnixTimestamp('0')).toBe(true); }); test('should return false for invalid Unix timestamps', () => { expect(isUnixTimestamp('foo')).toBe(false); expect(isUnixTimestamp('')).toBe(false); }); }); describe('isTimestamp', () => { test('should return true for valid Unix timestamps in milliseconds', () => { expect(isTimestamp('1649792026123')).toBe(true); expect(isTimestamp('1234567890000')).toBe(true); expect(isTimestamp('0')).toBe(true); }); test('should return false for invalid Unix timestamps in milliseconds', () => { expect(isTimestamp('foo')).toBe(false); expect(isTimestamp('')).toBe(false); }); }); describe('isUTCDateString', () => { test('should return true for valid UTC date strings', () => { expect(isUTCDateString('Sun, 06 Nov 1994 08:49:37 GMT')).toBe(true); expect(isUTCDateString('Tue, 22 Apr 2014 07:00:00 GMT')).toBe(true); }); test('should return false for invalid UTC date strings', () => { expect(isUTCDateString('06 Nov 1994 08:49:37 GMT')).toBe(false); expect(isUTCDateString('16497920261')).toBe(false); expect(isUTCDateString('foo')).toBe(false); expect(isUTCDateString('')).toBe(false); }); }); describe('isMongoObjectId', () => { test('should return true for valid Mongo ObjectIds', () => { expect(isMongoObjectId('507f1f77bcf86cd799439011')).toBe(true); expect(isMongoObjectId('507f1f77bcf86cd799439012')).toBe(true); }); test('should return false for invalid Mongo ObjectIds', () => { expect(isMongoObjectId('507f1f77bcf86cd79943901')).toBe(false); expect(isMongoObjectId('507f1f77bcf86cd79943901z')).toBe(false); expect(isMongoObjectId('foo')).toBe(false); expect(isMongoObjectId('')).toBe(false); }); }); describe('isExcelFormat', () => { test('an Excel format string is a floating number that can be negative', () => { expect(isExcelFormat('0')).toBe(true); expect(isExcelFormat('1')).toBe(true); expect(isExcelFormat('1.1')).toBe(true); expect(isExcelFormat('-1.1')).toBe(true); expect(isExcelFormat('-1')).toBe(true); expect(isExcelFormat('')).toBe(false); expect(isExcelFormat('foo')).toBe(false); expect(isExcelFormat('1.1.1')).toBe(false); }); }); describe('dateToExcelFormat', () => { test('a date in Excel format is the number of days since 01/01/1900', () => { expect(dateToExcelFormat(new Date('2016-05-20T00:00:00.000Z'))).toBe('42510'); expect(dateToExcelFormat(new Date('2016-05-20T12:00:00.000Z'))).toBe('42510.5'); expect(dateToExcelFormat(new Date('2023-10-31T09:26:06.421Z'))).toBe('45230.39312987268'); expect(dateToExcelFormat(new Date('1970-01-01T00:00:00.000Z'))).toBe('25569'); expect(dateToExcelFormat(new Date('1800-01-01T00:00:00.000Z'))).toBe('-36522'); }); }); describe('excelFormatToDate', () => { test('a date in Excel format is the number of days since 01/01/1900', () => { expect(excelFormatToDate('0')).toEqual(new Date('1899-12-30T00:00:00.000Z')); expect(excelFormatToDate('1')).toEqual(new Date('1899-12-31T00:00:00.000Z')); expect(excelFormatToDate('2')).toEqual(new Date('1900-01-01T00:00:00.000Z')); expect(excelFormatToDate('4242.4242')).toEqual(new Date('1911-08-12T10:10:50.880Z')); expect(excelFormatToDate('42738.22626859954')).toEqual(new Date('2017-01-03T05:25:49.607Z')); expect(excelFormatToDate('-1000')).toEqual(new Date('1897-04-04T00:00:00.000Z')); }); }); }); ================================================ FILE: src/tools/date-time-converter/date-time-converter.models.ts ================================================ import _ from 'lodash'; export { isISO8601DateTimeString, isISO9075DateString, isRFC3339DateString, isRFC7231DateString, isUnixTimestamp, isTimestamp, isUTCDateString, isMongoObjectId, dateToExcelFormat, excelFormatToDate, isExcelFormat, }; const ISO8601_REGEX = /^([+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([.,]\d+(?!:))?)?(\17[0-5]\d([.,]\d+)?)?([zZ]|([+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/; const ISO9075_REGEX = /^([0-9]{4})-([0-9]{2})-([0-9]{2}) ([0-9]{2}):([0-9]{2}):([0-9]{2})(\.[0-9]{1,6})?(([+-])([0-9]{2}):([0-9]{2})|Z)?$/; const RFC3339_REGEX = /^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(\.[0-9]{1,9})?(([+-])([0-9]{2}):([0-9]{2})|Z)$/; const RFC7231_REGEX = /^[A-Za-z]{3},\s[0-9]{2}\s[A-Za-z]{3}\s[0-9]{4}\s[0-9]{2}:[0-9]{2}:[0-9]{2}\sGMT$/; const EXCEL_FORMAT_REGEX = /^-?\d+(\.\d+)?$/; function createRegexMatcher(regex: RegExp) { return (date?: string) => !_.isNil(date) && regex.test(date); } const isISO8601DateTimeString = createRegexMatcher(ISO8601_REGEX); const isISO9075DateString = createRegexMatcher(ISO9075_REGEX); const isRFC3339DateString = createRegexMatcher(RFC3339_REGEX); const isRFC7231DateString = createRegexMatcher(RFC7231_REGEX); const isUnixTimestamp = createRegexMatcher(/^[0-9]{1,10}$/); const isTimestamp = createRegexMatcher(/^[0-9]{1,13}$/); const isMongoObjectId = createRegexMatcher(/^[0-9a-fA-F]{24}$/); const isExcelFormat = createRegexMatcher(EXCEL_FORMAT_REGEX); function isUTCDateString(date?: string) { if (_.isNil(date)) { return false; } try { return new Date(date).toUTCString() === date; } catch (_ignored) { return false; } } function dateToExcelFormat(date: Date) { return String(((date.getTime()) / (1000 * 60 * 60 * 24)) + 25569); } function excelFormatToDate(excelFormat: string | number) { return new Date((Number(excelFormat) - 25569) * 86400 * 1000); } ================================================ FILE: src/tools/date-time-converter/date-time-converter.types.ts ================================================ export type ToDateMapper = (value: string) => Date; export interface DateFormat { name: string fromDate: (date: Date) => string toDate: (value: string) => Date formatMatcher: (dateString: string) => boolean } ================================================ FILE: src/tools/date-time-converter/date-time-converter.vue ================================================ ================================================ FILE: src/tools/date-time-converter/index.ts ================================================ import { Calendar } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.date-converter.title'), path: '/date-converter', description: translate('tools.date-converter.description'), keywords: ['date', 'time', 'converter', 'iso', 'utc', 'timezone', 'year', 'month', 'day', 'minute', 'seconde'], component: () => import('./date-time-converter.vue'), icon: Calendar, }); ================================================ FILE: src/tools/device-information/device-information.vue ================================================ ================================================ FILE: src/tools/device-information/index.ts ================================================ import { DeviceDesktop } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.device-information.title'), path: '/device-information', description: translate('tools.device-information.description'), keywords: [ 'device', 'information', 'screen', 'pixel', 'ratio', 'status', 'data', 'computer', 'size', 'user', 'agent', ], component: () => import('./device-information.vue'), icon: DeviceDesktop, }); ================================================ FILE: src/tools/docker-run-to-docker-compose-converter/composerize.d.ts ================================================ declare module 'composerize' { const composerize: (arg: string) => string; export default composerize; } ================================================ FILE: src/tools/docker-run-to-docker-compose-converter/docker-run-to-docker-compose-converter.vue ================================================ ================================================ FILE: src/tools/docker-run-to-docker-compose-converter/index.ts ================================================ import { BrandDocker } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.docker-run-to-docker-compose-converter.title'), path: '/docker-run-to-docker-compose-converter', description: translate('tools.docker-run-to-docker-compose-converter.description'), keywords: ['docker', 'run', 'compose', 'yaml', 'yml', 'convert', 'deamon'], component: () => import('./docker-run-to-docker-compose-converter.vue'), icon: BrandDocker, }); ================================================ FILE: src/tools/email-normalizer/email-normalizer.vue ================================================ ================================================ FILE: src/tools/email-normalizer/index.ts ================================================ import { Mail } from '@vicons/tabler'; import { defineTool } from '../tool'; export const tool = defineTool({ name: 'Email normalizer', path: '/email-normalizer', description: 'Normalize email addresses to a standard format for easier comparison. Useful for deduplication and data cleaning.', keywords: ['email', 'normalizer'], component: () => import('./email-normalizer.vue'), icon: Mail, createdAt: new Date('2024-08-15'), }); ================================================ FILE: src/tools/emoji-picker/emoji-card.vue ================================================ ================================================ FILE: src/tools/emoji-picker/emoji-grid.vue ================================================ ================================================ FILE: src/tools/emoji-picker/emoji-picker.vue ================================================ ================================================ FILE: src/tools/emoji-picker/emoji.types.ts ================================================ import type emojiUnicodeData from 'unicode-emoji-json'; export type EmojiInfo = { title: string emoji: string codePoints: string | undefined unicode: string } & typeof emojiUnicodeData[string]; ================================================ FILE: src/tools/emoji-picker/index.ts ================================================ import { MoodSmile } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.emoji-picker.title'), path: '/emoji-picker', description: translate('tools.emoji-picker.description'), keywords: ['emoji', 'picker', 'unicode', 'copy', 'paste'], component: () => import('./emoji-picker.vue'), icon: MoodSmile, createdAt: new Date('2023-08-07'), }); ================================================ FILE: src/tools/encryption/encryption.vue ================================================ ================================================ FILE: src/tools/encryption/index.ts ================================================ import { Lock } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.encryption.title'), path: '/encryption', description: translate('tools.encryption.description'), keywords: ['cypher', 'encipher', 'text', 'AES', 'TripleDES', 'Rabbit', 'RC4'], component: () => import('./encryption.vue'), icon: Lock, redirectFrom: ['/cypher'], }); ================================================ FILE: src/tools/eta-calculator/eta-calculator.service.ts ================================================ import { formatDuration } from 'date-fns'; export function formatMsDuration(duration: number) { const ms = Math.floor(duration % 1000); const secs = Math.floor(((duration - ms) / 1000) % 60); const mins = Math.floor((((duration - ms) / 1000 - secs) / 60) % 60); const hrs = Math.floor((((duration - ms) / 1000 - secs) / 60 - mins) / 60); return ( formatDuration({ hours: hrs, minutes: mins, seconds: secs, }) + (ms > 0 ? ` ${ms} ms` : '') ); } ================================================ FILE: src/tools/eta-calculator/eta-calculator.vue ================================================ ================================================ FILE: src/tools/eta-calculator/index.ts ================================================ import { Hourglass } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.eta-calculator.title'), path: '/eta-calculator', description: translate('tools.eta-calculator.description'), keywords: ['eta', 'calculator', 'estimated', 'time', 'arrival', 'average'], component: () => import('./eta-calculator.vue'), icon: Hourglass, }); ================================================ FILE: src/tools/git-memo/git-memo.content.md ================================================ ## Configuration Set the global config ```shell git config --global user.name "[name]" git config --global user.email "[email]" ``` ## Get started Create a git repository ```shell git init ``` Clone an existing git repository ```shell git clone [url] ``` ## Commit Commit all tracked changes ```shell git commit -am "[commit message]" ``` Add new modifications to the last commit ```shell git commit --amend --no-edit ``` ## I’ve made a mistake Change last commit message ```shell git commit --amend ``` Undo most recent commit and keep changes ```shell git reset HEAD~1 ``` Undo the `N` most recent commit and keep changes ```shell git reset HEAD~N ``` Undo most recent commit and get rid of changes ```shell git reset HEAD~1 --hard ``` Reset branch to remote state ```shell git fetch origin git reset --hard origin/[branch-name] ``` ## Miscellaneous Renaming the local master branch to main ```shell git branch -m master main ``` ================================================ FILE: src/tools/git-memo/git-memo.vue ================================================ ================================================ FILE: src/tools/git-memo/index.ts ================================================ import { BrandGit } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.git-memo.title'), path: '/git-memo', description: translate('tools.git-memo.description'), keywords: ['git', 'push', 'force', 'pull', 'commit', 'amend', 'rebase', 'merge', 'reset', 'soft', 'hard', 'lease'], component: () => import('./git-memo.vue'), icon: BrandGit, }); ================================================ FILE: src/tools/hash-text/hash-text.service.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { convertHexToBin } from './hash-text.service'; describe('hash text', () => { describe('convertHexToBin', () => { it('convert hex to bin', () => { expect(convertHexToBin('')).toEqual(''); expect(convertHexToBin('FF')).toEqual('11111111'); expect(convertHexToBin('F'.repeat(200))).toEqual('1111'.repeat(200)); expect(convertHexToBin('2123006AD00F694CE120')).toEqual( '00100001001000110000000001101010110100000000111101101001010011001110000100100000', ); }); }); }); ================================================ FILE: src/tools/hash-text/hash-text.service.ts ================================================ export function convertHexToBin(hex: string) { return hex .trim() .split('') .map(byte => Number.parseInt(byte, 16).toString(2).padStart(4, '0')) .join(''); } ================================================ FILE: src/tools/hash-text/hash-text.vue ================================================ ================================================ FILE: src/tools/hash-text/index.ts ================================================ import { EyeOff } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.hash-text.title'), path: '/hash-text', description: translate('tools.hash-text.description'), keywords: [ 'hash', 'digest', 'crypto', 'security', 'text', 'MD5', 'SHA1', 'SHA256', 'SHA224', 'SHA512', 'SHA384', 'SHA3', 'RIPEMD160', ], component: () => import('./hash-text.vue'), icon: EyeOff, redirectFrom: ['/hash'], }); ================================================ FILE: src/tools/hmac-generator/hmac-generator.vue ================================================ ================================================ FILE: src/tools/hmac-generator/index.ts ================================================ import { ShortTextRound } from '@vicons/material'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.hmac-generator.title'), path: '/hmac-generator', description: translate('tools.hmac-generator.description'), keywords: ['hmac', 'generator', 'MD5', 'SHA1', 'SHA256', 'SHA224', 'SHA512', 'SHA384', 'SHA3', 'RIPEMD160'], component: () => import('./hmac-generator.vue'), icon: ShortTextRound, }); ================================================ FILE: src/tools/html-entities/html-entities.vue ================================================ ================================================ FILE: src/tools/html-entities/index.ts ================================================ import { Code } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.html-entities.title'), path: '/html-entities', description: translate('tools.html-entities.description'), keywords: ['html', 'entities', 'escape', 'unescape', 'special', 'characters', 'tags'], component: () => import('./html-entities.vue'), icon: Code, }); ================================================ FILE: src/tools/html-wysiwyg-editor/editor/editor.vue ================================================ ================================================ FILE: src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue ================================================ ================================================ FILE: src/tools/html-wysiwyg-editor/editor/menu-bar.vue ================================================ ================================================ FILE: src/tools/html-wysiwyg-editor/html-wysiwyg-editor.vue ================================================ ================================================ FILE: src/tools/html-wysiwyg-editor/index.ts ================================================ import { Edit } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.html-wysiwyg-editor.title'), path: '/html-wysiwyg-editor', description: translate('tools.html-wysiwyg-editor.description'), keywords: ['html', 'wysiwyg', 'editor', 'p', 'ul', 'ol', 'converter', 'live'], component: () => import('./html-wysiwyg-editor.vue'), icon: Edit, }); ================================================ FILE: src/tools/http-status-codes/http-status-codes.constants.ts ================================================ export const codesByCategories: { category: string codes: { code: number name: string description: string type: 'HTTP' | 'WebDav' }[] }[] = [ { category: '1xx informational response', codes: [ { code: 100, name: 'Continue', description: 'Waiting for the client to emit the body of the request.', type: 'HTTP', }, { code: 101, name: 'Switching Protocols', description: 'The server has agreed to change protocol.', type: 'HTTP', }, { code: 102, name: 'Processing', description: 'The server is processing the request, but no response is available yet.', type: 'WebDav', }, { code: 103, name: 'Early Hints', description: 'The server returns some response headers before final HTTP message.', type: 'HTTP', }, ], }, { category: '2xx success', codes: [ { code: 200, name: 'OK', description: 'Standard response for successful HTTP requests.', type: 'HTTP', }, { code: 201, name: 'Created', description: 'The request has been fulfilled, resulting in the creation of a new resource.', type: 'HTTP', }, { code: 202, name: 'Accepted', description: 'The request has been accepted for processing, but the processing has not been completed.', type: 'HTTP', }, { code: 203, name: 'Non-Authoritative Information', description: 'The request is successful but the content of the original request has been modified by a transforming proxy.', type: 'HTTP', }, { code: 204, name: 'No Content', description: 'The server successfully processed the request and is not returning any content.', type: 'HTTP', }, { code: 205, name: 'Reset Content', description: 'The server indicates to reinitialize the document view which sent this request.', type: 'HTTP', }, { code: 206, name: 'Partial Content', description: 'The server is delivering only part of the resource due to a range header sent by the client.', type: 'HTTP', }, { code: 207, name: 'Multi-Status', description: 'The message body that follows is an XML message and can contain a number of separate response codes.', type: 'WebDav', }, { code: 208, name: 'Already Reported', description: 'The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response.', type: 'WebDav', }, { code: 226, name: 'IM Used', description: 'The server has fulfilled a request for the resource, and the response is a representation of the result.', type: 'HTTP', }, ], }, { category: '3xx redirection', codes: [ { code: 300, name: 'Multiple Choices', description: 'Indicates multiple options for the resource that the client may follow.', type: 'HTTP', }, { code: 301, name: 'Moved Permanently', description: 'This and all future requests should be directed to the given URI.', type: 'HTTP', }, { code: 302, name: 'Found', description: 'Redirect to another URL. This is an example of industry practice contradicting the standard.', type: 'HTTP', }, { code: 303, name: 'See Other', description: 'The response to the request can be found under another URI using a GET method.', type: 'HTTP', }, { code: 304, name: 'Not Modified', description: 'Indicates that the resource has not been modified since the version specified by the request headers.', type: 'HTTP', }, { code: 305, name: 'Use Proxy', description: 'The requested resource is available only through a proxy, the address for which is provided in the response.', type: 'HTTP', }, { code: 306, name: 'Switch Proxy', description: 'No longer used. Originally meant "Subsequent requests should use the specified proxy."', type: 'HTTP', }, { code: 307, name: 'Temporary Redirect', description: 'In this case, the request should be repeated with another URI; however, future requests should still use the original URI.', type: 'HTTP', }, { code: 308, name: 'Permanent Redirect', description: 'The request and all future requests should be repeated using another URI.', type: 'HTTP', }, ], }, { category: '4xx client error', codes: [ { code: 400, name: 'Bad Request', description: 'The server cannot or will not process the request due to an apparent client error.', type: 'HTTP', }, { code: 401, name: 'Unauthorized', description: 'Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided.', type: 'HTTP', }, { code: 402, name: 'Payment Required', description: 'Reserved for future use. The original intention was that this code might be used as part of some form of digital cash or micropayment scheme.', type: 'HTTP', }, { code: 403, name: 'Forbidden', description: 'The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource.', type: 'HTTP', }, { code: 404, name: 'Not Found', description: 'The requested resource could not be found but may be available in the future.', type: 'HTTP', }, { code: 405, name: 'Method Not Allowed', description: 'A request method is not supported for the requested resource.', type: 'HTTP', }, { code: 406, name: 'Not Acceptable', description: 'The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.', type: 'HTTP', }, { code: 407, name: 'Proxy Authentication Required', description: 'The client must first authenticate itself with the proxy.', type: 'HTTP', }, { code: 408, name: 'Request Timeout', description: 'The server timed out waiting for the request.', type: 'HTTP', }, { code: 409, name: 'Conflict', description: 'Indicates that the request could not be processed because of conflict in the request, such as an edit conflict.', type: 'HTTP', }, { code: 410, name: 'Gone', description: 'Indicates that the resource requested is no longer available and will not be available again.', type: 'HTTP', }, { code: 411, name: 'Length Required', description: 'The request did not specify the length of its content, which is required by the requested resource.', type: 'HTTP', }, { code: 412, name: 'Precondition Failed', description: 'The server does not meet one of the preconditions that the requester put on the request.', type: 'HTTP', }, { code: 413, name: 'Payload Too Large', description: 'The request is larger than the server is willing or able to process.', type: 'HTTP', }, { code: 414, name: 'URI Too Long', description: 'The URI provided was too long for the server to process.', type: 'HTTP', }, { code: 415, name: 'Unsupported Media Type', description: 'The request entity has a media type which the server or resource does not support.', type: 'HTTP', }, { code: 416, name: 'Range Not Satisfiable', description: 'The client has asked for a portion of the file, but the server cannot supply that portion.', type: 'HTTP', }, { code: 417, name: 'Expectation Failed', description: 'The server cannot meet the requirements of the Expect request-header field.', type: 'HTTP', }, { code: 418, name: 'I\'m a teapot', description: 'The server refuses the attempt to brew coffee with a teapot.', type: 'HTTP', }, { code: 421, name: 'Misdirected Request', description: 'The request was directed at a server that is not able to produce a response.', type: 'HTTP', }, { code: 422, name: 'Unprocessable Entity', description: 'The request was well-formed but was unable to be followed due to semantic errors.', type: 'HTTP', }, { code: 423, name: 'Locked', description: 'The resource that is being accessed is locked.', type: 'HTTP', }, { code: 424, name: 'Failed Dependency', description: 'The request failed due to failure of a previous request.', type: 'HTTP', }, { code: 425, name: 'Too Early', description: 'Indicates that the server is unwilling to risk processing a request that might be replayed.', type: 'HTTP', }, { code: 426, name: 'Upgrade Required', description: 'The client should switch to a different protocol such as TLS/1.0.', type: 'HTTP', }, { code: 428, name: 'Precondition Required', description: 'The origin server requires the request to be conditional.', type: 'HTTP', }, { code: 429, name: 'Too Many Requests', description: 'The user has sent too many requests in a given amount of time.', type: 'HTTP', }, { code: 431, name: 'Request Header Fields Too Large', description: 'The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large.', type: 'HTTP', }, { code: 451, name: 'Unavailable For Legal Reasons', description: 'A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource.', type: 'HTTP', }, ], }, { category: '5xx server error', codes: [ { code: 500, name: 'Internal Server Error', description: 'A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.', type: 'HTTP', }, { code: 501, name: 'Not Implemented', description: 'The server either does not recognize the request method, or it lacks the ability to fulfill the request.', type: 'HTTP', }, { code: 502, name: 'Bad Gateway', description: 'The server was acting as a gateway or proxy and received an invalid response from the upstream server.', type: 'HTTP', }, { code: 503, name: 'Service Unavailable', description: 'The server is currently unavailable (because it is overloaded or down for maintenance).', type: 'HTTP', }, { code: 504, name: 'Gateway Timeout', description: 'The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.', type: 'HTTP', }, { code: 505, name: 'HTTP Version Not Supported', description: 'The server does not support the HTTP protocol version used in the request.', type: 'HTTP', }, { code: 506, name: 'Variant Also Negotiates', description: 'Transparent content negotiation for the request results in a circular reference.', type: 'HTTP', }, { code: 507, name: 'Insufficient Storage', description: 'The server is unable to store the representation needed to complete the request.', type: 'HTTP', }, { code: 508, name: 'Loop Detected', description: 'The server detected an infinite loop while processing the request.', type: 'HTTP', }, { code: 510, name: 'Not Extended', description: 'Further extensions to the request are required for the server to fulfill it.', type: 'HTTP', }, { code: 511, name: 'Network Authentication Required', description: 'The client needs to authenticate to gain network access.', type: 'HTTP', }, ], }, ]; ================================================ FILE: src/tools/http-status-codes/http-status-codes.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - Http status codes', () => { test.beforeEach(async ({ page }) => { await page.goto('/http-status-codes'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('HTTP status codes - IT Tools'); }); }); ================================================ FILE: src/tools/http-status-codes/http-status-codes.vue ================================================ ================================================ FILE: src/tools/http-status-codes/index.ts ================================================ import { HttpRound } from '@vicons/material'; import { defineTool } from '../tool'; import { codesByCategories } from './http-status-codes.constants'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.http-status-codes.title'), path: '/http-status-codes', description: translate('tools.http-status-codes.description'), keywords: [ 'http', 'status', 'codes', ...codesByCategories.flatMap(({ codes }) => codes.flatMap(({ code, name }) => [String(code), name])), ], component: () => import('./http-status-codes.vue'), icon: HttpRound, createdAt: new Date('2023-04-13'), }); ================================================ FILE: src/tools/iban-validator-and-parser/iban-validator-and-parser.e2e.spec.ts ================================================ import { type Page, expect, test } from '@playwright/test'; async function extractIbanInfo({ page }: { page: Page }) { const itemsLines = await page .locator('.c-key-value-list__item').all(); return await Promise.all( itemsLines.map(async item => [ (await item.locator('.c-key-value-list__key').textContent() ?? '').trim(), (await item.locator('.c-key-value-list__value').textContent() ?? '').trim(), ]), ); } test.describe('Tool - Iban validator and parser', () => { test.beforeEach(async ({ page }) => { await page.goto('/iban-validator-and-parser'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('IBAN validator and parser - IT Tools'); }); test('iban info are extracted from a valid iban', async ({ page }) => { await page.getByTestId('iban-input').fill('DE89370400440532013000'); const ibanInfo = await extractIbanInfo({ page }); expect(ibanInfo).toEqual([ ['Is IBAN valid ?', 'Yes'], ['Is IBAN a QR-IBAN ?', 'No'], ['Country code', 'DE'], ['BBAN', '370400440532013000'], ['IBAN friendly format', 'DE89 3704 0044 0532 0130 00'], ]); }); test('invalid iban errors are displayed', async ({ page }) => { await page.getByTestId('iban-input').fill('FR7630006060011234567890189'); const ibanInfo = await extractIbanInfo({ page }); expect(ibanInfo).toEqual([ ['Is IBAN valid ?', 'No'], ['IBAN errors', 'Wrong account bank branch checksum Wrong IBAN checksum'], ['Is IBAN a QR-IBAN ?', 'No'], ['Country code', 'N/A'], ['BBAN', 'N/A'], ['IBAN friendly format', 'FR76 3000 6060 0112 3456 7890 189'], ]); }); }); ================================================ FILE: src/tools/iban-validator-and-parser/iban-validator-and-parser.service.ts ================================================ import { ValidationErrorsIBAN } from 'ibantools'; export { getFriendlyErrors }; const ibanErrorToMessage = { [ValidationErrorsIBAN.NoIBANProvided]: 'No IBAN provided', [ValidationErrorsIBAN.NoIBANCountry]: 'No IBAN country', [ValidationErrorsIBAN.WrongBBANLength]: 'Wrong BBAN length', [ValidationErrorsIBAN.WrongBBANFormat]: 'Wrong BBAN format', [ValidationErrorsIBAN.ChecksumNotNumber]: 'Checksum is not a number', [ValidationErrorsIBAN.WrongIBANChecksum]: 'Wrong IBAN checksum', [ValidationErrorsIBAN.WrongAccountBankBranchChecksum]: 'Wrong account bank branch checksum', [ValidationErrorsIBAN.QRIBANNotAllowed]: 'QR-IBAN not allowed', }; function getFriendlyErrors(errorCodes: ValidationErrorsIBAN[]) { return errorCodes.map(errorCode => ibanErrorToMessage[errorCode]).filter(Boolean); } ================================================ FILE: src/tools/iban-validator-and-parser/iban-validator-and-parser.vue ================================================ ================================================ FILE: src/tools/iban-validator-and-parser/index.ts ================================================ import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; import Bank from '~icons/mdi/bank'; export const tool = defineTool({ name: translate('tools.iban-validator-and-parser.title'), path: '/iban-validator-and-parser', description: translate('tools.iban-validator-and-parser.description'), keywords: ['iban', 'validator', 'and', 'parser', 'bic', 'bank'], component: () => import('./iban-validator-and-parser.vue'), icon: Bank, createdAt: new Date('2023-08-26'), }); ================================================ FILE: src/tools/index.ts ================================================ import { tool as base64FileConverter } from './base64-file-converter'; import { tool as base64StringConverter } from './base64-string-converter'; import { tool as basicAuthGenerator } from './basic-auth-generator'; import { tool as emailNormalizer } from './email-normalizer'; import { tool as asciiTextDrawer } from './ascii-text-drawer'; import { tool as textToUnicode } from './text-to-unicode'; import { tool as safelinkDecoder } from './safelink-decoder'; import { tool as xmlToJson } from './xml-to-json'; import { tool as jsonToXml } from './json-to-xml'; import { tool as regexTester } from './regex-tester'; import { tool as regexMemo } from './regex-memo'; import { tool as markdownToHtml } from './markdown-to-html'; import { tool as pdfSignatureChecker } from './pdf-signature-checker'; import { tool as numeronymGenerator } from './numeronym-generator'; import { tool as macAddressGenerator } from './mac-address-generator'; import { tool as textToBinary } from './text-to-binary'; import { tool as ulidGenerator } from './ulid-generator'; import { tool as ibanValidatorAndParser } from './iban-validator-and-parser'; import { tool as stringObfuscator } from './string-obfuscator'; import { tool as textDiff } from './text-diff'; import { tool as emojiPicker } from './emoji-picker'; import { tool as passwordStrengthAnalyser } from './password-strength-analyser'; import { tool as yamlToToml } from './yaml-to-toml'; import { tool as jsonToToml } from './json-to-toml'; import { tool as tomlToYaml } from './toml-to-yaml'; import { tool as tomlToJson } from './toml-to-json'; import { tool as jsonToCsv } from './json-to-csv'; import { tool as cameraRecorder } from './camera-recorder'; import { tool as listConverter } from './list-converter'; import { tool as phoneParserAndFormatter } from './phone-parser-and-formatter'; import { tool as jsonDiff } from './json-diff'; import { tool as ipv4RangeExpander } from './ipv4-range-expander'; import { tool as httpStatusCodes } from './http-status-codes'; import { tool as yamlToJson } from './yaml-to-json-converter'; import { tool as jsonToYaml } from './json-to-yaml-converter'; import { tool as ipv6UlaGenerator } from './ipv6-ula-generator'; import { tool as ipv4AddressConverter } from './ipv4-address-converter'; import { tool as benchmarkBuilder } from './benchmark-builder'; import { tool as userAgentParser } from './user-agent-parser'; import { tool as ipv4SubnetCalculator } from './ipv4-subnet-calculator'; import { tool as dockerRunToDockerComposeConverter } from './docker-run-to-docker-compose-converter'; import { tool as htmlWysiwygEditor } from './html-wysiwyg-editor'; import { tool as rsaKeyPairGenerator } from './rsa-key-pair-generator'; import { tool as textToNatoAlphabet } from './text-to-nato-alphabet'; import { tool as slugifyString } from './slugify-string'; import { tool as keycodeInfo } from './keycode-info'; import { tool as jsonMinify } from './json-minify'; import { tool as bcrypt } from './bcrypt'; import { tool as bip39 } from './bip39-generator'; import { tool as caseConverter } from './case-converter'; import { tool as chmodCalculator } from './chmod-calculator'; import { tool as chronometer } from './chronometer'; import { tool as colorConverter } from './color-converter'; import { tool as crontabGenerator } from './crontab-generator'; import { tool as dateTimeConverter } from './date-time-converter'; import { tool as deviceInformation } from './device-information'; import { tool as cypher } from './encryption'; import { tool as etaCalculator } from './eta-calculator'; import { tool as percentageCalculator } from './percentage-calculator'; import { tool as gitMemo } from './git-memo'; import { tool as hashText } from './hash-text'; import { tool as hmacGenerator } from './hmac-generator'; import { tool as htmlEntities } from './html-entities'; import { tool as baseConverter } from './integer-base-converter'; import { tool as jsonViewer } from './json-viewer'; import { tool as jwtParser } from './jwt-parser'; import { tool as loremIpsumGenerator } from './lorem-ipsum-generator'; import { tool as mathEvaluator } from './math-evaluator'; import { tool as metaTagGenerator } from './meta-tag-generator'; import { tool as mimeTypes } from './mime-types'; import { tool as otpCodeGeneratorAndValidator } from './otp-code-generator-and-validator'; import { tool as qrCodeGenerator } from './qr-code-generator'; import { tool as wifiQrCodeGenerator } from './wifi-qr-code-generator'; import { tool as randomPortGenerator } from './random-port-generator'; import { tool as romanNumeralConverter } from './roman-numeral-converter'; import { tool as sqlPrettify } from './sql-prettify'; import { tool as svgPlaceholderGenerator } from './svg-placeholder-generator'; import { tool as temperatureConverter } from './temperature-converter'; import { tool as textStatistics } from './text-statistics'; import { tool as tokenGenerator } from './token-generator'; import type { ToolCategory } from './tools.types'; import { tool as urlEncoder } from './url-encoder'; import { tool as urlParser } from './url-parser'; import { tool as uuidGenerator } from './uuid-generator'; import { tool as macAddressLookup } from './mac-address-lookup'; import { tool as xmlFormatter } from './xml-formatter'; import { tool as yamlViewer } from './yaml-viewer'; export const toolsByCategory: ToolCategory[] = [ { name: 'Crypto', components: [tokenGenerator, hashText, bcrypt, uuidGenerator, ulidGenerator, cypher, bip39, hmacGenerator, rsaKeyPairGenerator, passwordStrengthAnalyser, pdfSignatureChecker], }, { name: 'Converter', components: [ dateTimeConverter, baseConverter, romanNumeralConverter, base64StringConverter, base64FileConverter, colorConverter, caseConverter, textToNatoAlphabet, textToBinary, textToUnicode, yamlToJson, yamlToToml, jsonToYaml, jsonToToml, listConverter, tomlToJson, tomlToYaml, xmlToJson, jsonToXml, markdownToHtml, ], }, { name: 'Web', components: [ urlEncoder, htmlEntities, urlParser, deviceInformation, basicAuthGenerator, metaTagGenerator, otpCodeGeneratorAndValidator, mimeTypes, jwtParser, keycodeInfo, slugifyString, htmlWysiwygEditor, userAgentParser, httpStatusCodes, jsonDiff, safelinkDecoder, ], }, { name: 'Images and videos', components: [qrCodeGenerator, wifiQrCodeGenerator, svgPlaceholderGenerator, cameraRecorder], }, { name: 'Development', components: [ gitMemo, randomPortGenerator, crontabGenerator, jsonViewer, jsonMinify, jsonToCsv, sqlPrettify, chmodCalculator, dockerRunToDockerComposeConverter, xmlFormatter, yamlViewer, emailNormalizer, regexTester, regexMemo, ], }, { name: 'Network', components: [ipv4SubnetCalculator, ipv4AddressConverter, ipv4RangeExpander, macAddressLookup, macAddressGenerator, ipv6UlaGenerator], }, { name: 'Math', components: [mathEvaluator, etaCalculator, percentageCalculator], }, { name: 'Measurement', components: [chronometer, temperatureConverter, benchmarkBuilder], }, { name: 'Text', components: [ loremIpsumGenerator, textStatistics, emojiPicker, stringObfuscator, textDiff, numeronymGenerator, asciiTextDrawer, ], }, { name: 'Data', components: [phoneParserAndFormatter, ibanValidatorAndParser], }, ]; export const tools = toolsByCategory.flatMap(({ components }) => components); export const toolsWithCategory = toolsByCategory.flatMap(({ components, name }) => components.map(tool => ({ category: name, ...tool })), ); ================================================ FILE: src/tools/integer-base-converter/index.ts ================================================ import { ArrowsLeftRight } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.base-converter.title'), path: '/base-converter', description: translate('tools.base-converter.description'), keywords: ['integer', 'number', 'base', 'conversion', 'decimal', 'hexadecimal', 'binary', 'octal', 'base64'], component: () => import('./integer-base-converter.vue'), icon: ArrowsLeftRight, }); ================================================ FILE: src/tools/integer-base-converter/integer-base-converter.model.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { convertBase } from './integer-base-converter.model'; describe('integer-base-converter', () => { describe('convertBase', () => { describe('when the input and target bases are between 2 and 64', () => { it('should convert integer between different bases', () => { expect(convertBase({ value: '0', fromBase: 2, toBase: 11 })).toEqual('0'); expect(convertBase({ value: '0', fromBase: 5, toBase: 2 })).toEqual('0'); expect(convertBase({ value: '0', fromBase: 10, toBase: 16 })).toEqual('0'); expect(convertBase({ value: '10100101', fromBase: 2, toBase: 16 })).toEqual('a5'); expect(convertBase({ value: '192654', fromBase: 10, toBase: 8 })).toEqual('570216'); expect(convertBase({ value: 'zz', fromBase: 64, toBase: 10 })).toEqual('2275'); expect(convertBase({ value: '42540766411283223938465490632011909384', fromBase: 10, toBase: 10 })).toEqual('42540766411283223938465490632011909384'); expect(convertBase({ value: '42540766411283223938465490632011909384', fromBase: 10, toBase: 16 })).toEqual('20010db8000085a300000000ac1f8908'); expect(convertBase({ value: '20010db8000085a300000000ac1f8908', fromBase: 16, toBase: 10 })).toEqual('42540766411283223938465490632011909384'); }); }); }); }); ================================================ FILE: src/tools/integer-base-converter/integer-base-converter.model.ts ================================================ export function convertBase({ value, fromBase, toBase }: { value: string; fromBase: number; toBase: number }) { const range = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+/'.split(''); const fromRange = range.slice(0, fromBase); const toRange = range.slice(0, toBase); let decValue = value .split('') .reverse() .reduce((carry: bigint, digit: string, index: number) => { if (!fromRange.includes(digit)) { throw new Error(`Invalid digit "${digit}" for base ${fromBase}.`); } return (carry += BigInt(fromRange.indexOf(digit)) * BigInt(fromBase) ** BigInt(index)); }, 0n); let newValue = ''; while (decValue > 0) { newValue = toRange[Number(decValue % BigInt(toBase))] + newValue; decValue = (decValue - (decValue % BigInt(toBase))) / BigInt(toBase); } return newValue || '0'; } ================================================ FILE: src/tools/integer-base-converter/integer-base-converter.vue ================================================ ================================================ FILE: src/tools/ipv4-address-converter/index.ts ================================================ import { Binary } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.ipv4-address-converter.title'), path: '/ipv4-address-converter', description: translate('tools.ipv4-address-converter.description'), keywords: ['ipv4', 'address', 'converter', 'decimal', 'hexadecimal', 'binary', 'ipv6'], component: () => import('./ipv4-address-converter.vue'), icon: Binary, createdAt: new Date('2023-04-08'), }); ================================================ FILE: src/tools/ipv4-address-converter/ipv4-address-converter.service.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { ipv4ToInt, isValidIpv4 } from './ipv4-address-converter.service'; describe('ipv4-address-converter', () => { describe('ipv4ToInt', () => { it('should convert an IPv4 address to an integer', () => { expect(ipv4ToInt({ ip: '192.168.0.1' })).toBe(3232235521); expect(ipv4ToInt({ ip: '10.0.0.1' })).toBe(167772161); expect(ipv4ToInt({ ip: '255.255.255.255' })).toBe(4294967295); }); }); describe('isValidIpv4', () => { it('should return true for a valid IP address', () => { expect(isValidIpv4({ ip: '192.168.0.1' })).to.equal(true); expect(isValidIpv4({ ip: '10.0.0.1' })).to.equal(true); }); it('should return false for an invalid IP address', () => { expect(isValidIpv4({ ip: '256.168.0.1' })).to.equal(false); expect(isValidIpv4({ ip: '192.168.0' })).to.equal(false); expect(isValidIpv4({ ip: '192.168.0.1.2' })).to.equal(false); expect(isValidIpv4({ ip: '192.168.0.1.' })).to.equal(false); expect(isValidIpv4({ ip: '.192.168.0.1' })).to.equal(false); expect(isValidIpv4({ ip: '192.168.0.a' })).to.equal(false); }); it('should return false for crap as input', () => { expect(isValidIpv4({ ip: '' })).to.equal(false); expect(isValidIpv4({ ip: ' ' })).to.equal(false); expect(isValidIpv4({ ip: 'foo' })).to.equal(false); expect(isValidIpv4({ ip: '-1' })).to.equal(false); expect(isValidIpv4({ ip: '0' })).to.equal(false); }); }); }); ================================================ FILE: src/tools/ipv4-address-converter/ipv4-address-converter.service.ts ================================================ import _ from 'lodash'; export { ipv4ToInt, ipv4ToIpv6, isValidIpv4 }; function ipv4ToInt({ ip }: { ip: string }) { if (!isValidIpv4({ ip })) { return 0; } return ip .trim() .split('.') .reduce((acc, part, index) => acc + Number(part) * 256 ** (3 - index), 0); } function ipv4ToIpv6({ ip, prefix = '0000:0000:0000:0000:0000:ffff:' }: { ip: string; prefix?: string }) { if (!isValidIpv4({ ip })) { return ''; } return ( prefix + _.chain(ip) .trim() .split('.') .map(part => Number.parseInt(part).toString(16).padStart(2, '0')) .chunk(2) .map(blocks => blocks.join('')) .join(':') .value() ); } function isValidIpv4({ ip }: { ip: string }) { const cleanIp = ip.trim(); return /^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$/.test(cleanIp); } ================================================ FILE: src/tools/ipv4-address-converter/ipv4-address-converter.vue ================================================ ================================================ FILE: src/tools/ipv4-range-expander/index.ts ================================================ import { UnfoldMoreOutlined } from '@vicons/material'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.ipv4-range-expander.title'), path: '/ipv4-range-expander', description: translate('tools.ipv4-range-expander.description'), keywords: ['ipv4', 'range', 'expander', 'subnet', 'creator', 'cidr'], component: () => import('./ipv4-range-expander.vue'), icon: UnfoldMoreOutlined, createdAt: new Date('2023-04-19'), }); ================================================ FILE: src/tools/ipv4-range-expander/ipv4-range-expander.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - IPv4 range expander', () => { test.beforeEach(async ({ page }) => { await page.goto('/ipv4-range-expander'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('IPv4 range expander - IT Tools'); }); test('Calculates correct for valid input', async ({ page }) => { await page.getByPlaceholder('Start IPv4 address...').fill('192.168.1.1'); await page.getByPlaceholder('End IPv4 address...').fill('192.168.7.255'); expect(await page.getByTestId('start-address.old').textContent()).toEqual('192.168.1.1'); expect(await page.getByTestId('start-address.new').textContent()).toEqual('192.168.0.0'); expect(await page.getByTestId('end-address.old').textContent()).toEqual('192.168.7.255'); expect(await page.getByTestId('end-address.new').textContent()).toEqual('192.168.7.255'); expect(await page.getByTestId('addresses-in-range.old').textContent()).toEqual('1,791'); expect(await page.getByTestId('addresses-in-range.new').textContent()).toEqual('2,048'); expect(await page.getByTestId('cidr.old').textContent()).toEqual(''); expect(await page.getByTestId('cidr.new').textContent()).toEqual('192.168.0.0/21'); }); test('Calculates correct for valid input, where first octet is lower than 128', async ({ page }) => { await page.getByPlaceholder('Start IPv4 address...').fill('10.0.0.1'); await page.getByPlaceholder('End IPv4 address...').fill('10.0.0.17'); expect(await page.getByTestId('start-address.old').textContent()).toEqual('10.0.0.1'); expect(await page.getByTestId('start-address.new').textContent()).toEqual('10.0.0.0'); expect(await page.getByTestId('end-address.old').textContent()).toEqual('10.0.0.17'); expect(await page.getByTestId('end-address.new').textContent()).toEqual('10.0.0.31'); expect(await page.getByTestId('addresses-in-range.old').textContent()).toEqual('17'); expect(await page.getByTestId('addresses-in-range.new').textContent()).toEqual('32'); expect(await page.getByTestId('cidr.old').textContent()).toEqual(''); expect(await page.getByTestId('cidr.new').textContent()).toEqual('10.0.0.0/27'); }); test('Hides result for invalid input', async ({ page }) => { await page.getByPlaceholder('Start IPv4 address...').fill('192.168.1.1'); await page.getByPlaceholder('End IPv4 address...').fill('192.168.0.255'); await expect(page.getByTestId('result')).not.toBeVisible(); }); }); ================================================ FILE: src/tools/ipv4-range-expander/ipv4-range-expander.service.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { calculateCidr } from './ipv4-range-expander.service'; describe('ipv4RangeExpander', () => { describe('when there are two valid ipv4 addresses given', () => { it('should calculate valid cidr for given addresses', () => { const result = calculateCidr({ startIp: '192.168.1.1', endIp: '192.168.7.255' }); expect(result).toBeDefined(); expect(result?.oldSize).toEqual(1791); expect(result?.newSize).toEqual(2048); expect(result?.newStart).toEqual('192.168.0.0'); expect(result?.newEnd).toEqual('192.168.7.255'); expect(result?.newCidr).toEqual('192.168.0.0/21'); }); it('should calculate valid cidr for given addresses, where first octet is lower than 128', () => { const result = calculateCidr({ startIp: '10.0.0.1', endIp: '10.0.0.17' }); expect(result).toBeDefined(); expect(result?.oldSize).toEqual(17); expect(result?.newSize).toEqual(32); expect(result?.newStart).toEqual('10.0.0.0'); expect(result?.newEnd).toEqual('10.0.0.31'); expect(result?.newCidr).toEqual('10.0.0.0/27'); }); it('should return empty result for invalid input', () => { expect(calculateCidr({ startIp: '192.168.7.1', endIp: '192.168.6.255' })).not.toBeDefined(); }); }); }); ================================================ FILE: src/tools/ipv4-range-expander/ipv4-range-expander.service.ts ================================================ import { convertBase } from '../integer-base-converter/integer-base-converter.model'; import { ipv4ToInt } from '../ipv4-address-converter/ipv4-address-converter.service'; import type { Ipv4RangeExpanderResult } from './ipv4-range-expander.types'; export { calculateCidr }; function bits2ip(ipInt: number) { return `${ipInt >>> 24}.${(ipInt >> 16) & 255}.${(ipInt >> 8) & 255}.${ipInt & 255}`; } function getRangesize(start: string, end: string) { if (start == null || end == null) { return -1; } return 1 + Number.parseInt(end, 2) - Number.parseInt(start, 2); } function getCidr(start: string, end: string) { if (start == null || end == null) { return null; } const range = getRangesize(start, end); if (range < 1) { return null; } let mask = 32; for (let i = 0; i < 32; i++) { if (start[i] !== end[i]) { mask = i; break; } } const newStart = start.substring(0, mask) + '0'.repeat(32 - mask); const newEnd = end.substring(0, mask) + '1'.repeat(32 - mask); return { start: newStart, end: newEnd, mask }; } function calculateCidr({ startIp, endIp }: { startIp: string; endIp: string }) { const start = convertBase({ value: ipv4ToInt({ ip: startIp }).toString(), fromBase: 10, toBase: 2, }).padStart(32, '0'); const end = convertBase({ value: ipv4ToInt({ ip: endIp }).toString(), fromBase: 10, toBase: 2, }).padStart(32, '0'); const cidr = getCidr(start, end); if (cidr != null) { const result: Ipv4RangeExpanderResult = {}; result.newEnd = bits2ip(Number.parseInt(cidr.end, 2)); result.newStart = bits2ip(Number.parseInt(cidr.start, 2)); result.newCidr = `${result.newStart}/${cidr.mask}`; result.newSize = getRangesize(cidr.start, cidr.end); result.oldSize = getRangesize(start, end); return result; } return undefined; } ================================================ FILE: src/tools/ipv4-range-expander/ipv4-range-expander.types.ts ================================================ export interface Ipv4RangeExpanderResult { oldSize?: number newStart?: string newEnd?: string newCidr?: string newSize?: number } ================================================ FILE: src/tools/ipv4-range-expander/ipv4-range-expander.vue ================================================ ================================================ FILE: src/tools/ipv4-range-expander/result-row.vue ================================================ ================================================ FILE: src/tools/ipv4-subnet-calculator/index.ts ================================================ import { RouterOutlined } from '@vicons/material'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.ipv4-subnet-calculator.title'), path: '/ipv4-subnet-calculator', description: translate('tools.ipv4-subnet-calculator.description'), keywords: ['ipv4', 'subnet', 'calculator', 'mask', 'network', 'cidr', 'netmask', 'bitmask', 'broadcast', 'address'], component: () => import('./ipv4-subnet-calculator.vue'), icon: RouterOutlined, }); ================================================ FILE: src/tools/ipv4-subnet-calculator/ipv4-subnet-calculator.models.ts ================================================ export { getIPClass }; function getIPClass({ ip }: { ip: string }) { const [firstOctet] = ip.split('.').map(Number); if (firstOctet < 128) { return 'A'; } if (firstOctet > 127 && firstOctet < 192) { return 'B'; } if (firstOctet > 191 && firstOctet < 224) { return 'C'; } if (firstOctet > 223 && firstOctet < 240) { return 'D'; } if (firstOctet > 239 && firstOctet < 256) { return 'E'; } return undefined; } ================================================ FILE: src/tools/ipv4-subnet-calculator/ipv4-subnet-calculator.vue ================================================ ================================================ FILE: src/tools/ipv6-ula-generator/index.ts ================================================ import { BuildingFactory } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.ipv6-ula-generator.title'), path: '/ipv6-ula-generator', description: translate('tools.ipv6-ula-generator.description'), keywords: ['ipv6', 'ula', 'generator', 'rfc4193', 'network', 'private'], component: () => import('./ipv6-ula-generator.vue'), icon: BuildingFactory, createdAt: new Date('2023-04-09'), }); ================================================ FILE: src/tools/ipv6-ula-generator/ipv6-ula-generator.vue ================================================ ================================================ FILE: src/tools/json-diff/diff-viewer/diff-viewer.models.tsx ================================================ import _ from 'lodash'; import type { ArrayDifference, Difference, ObjectDifference } from '../json-diff.types'; import { useCopy } from '@/composable/copy'; export function DiffRootViewer({ diff }: { diff: Difference }) { return (
    {DiffViewer({ diff, showKeys: false })}
); } function DiffViewer({ diff, showKeys = true }: { diff: Difference; showKeys?: boolean }) { const { type, status } = diff; if (status === 'updated') { return ComparisonViewer({ diff, showKeys }); } if (type === 'array') { return ChildrenViewer({ diff, showKeys, showChildrenKeys: false, openTag: '[', closeTag: ']' }); } if (type === 'object') { return ChildrenViewer({ diff, showKeys, openTag: '{', closeTag: '}' }); } return LineDiffViewer({ diff, showKeys }); } function LineDiffViewer({ diff, showKeys }: { diff: Difference; showKeys?: boolean }) { const { value, key, status, oldValue } = diff; const valueToDisplay = status === 'removed' ? oldValue : value; return (
  • {showKeys && ( <> {key} {': '} )} {Value({ value: valueToDisplay, status })} ,
  • ); } function ComparisonViewer({ diff, showKeys }: { diff: Difference; showKeys?: boolean }) { const { value, key, oldValue } = diff; return (
  • {showKeys && ( <> {key} {': '} )} {Value({ value: oldValue, status: 'removed' })} {Value({ value, status: 'added' })},
  • ); } function ChildrenViewer({ diff, openTag, closeTag, showKeys, showChildrenKeys = true, }: { diff: ArrayDifference | ObjectDifference showKeys: boolean showChildrenKeys?: boolean openTag: string closeTag: string }) { const { children, key, status, type } = diff; return (
  • {showKeys && ( <> {key} {': '} )} {openTag} {children.length > 0 &&
      {children.map(diff => DiffViewer({ diff, showKeys: showChildrenKeys }))}
    } {`${closeTag},`}
  • ); } function formatValue(value: unknown) { if (_.isNull(value)) { return 'null'; } return JSON.stringify(value); } function Value({ value, status }: { value: unknown; status: string }) { const formatedValue = formatValue(value); const { copy } = useCopy({ source: formatedValue }); return ( copy()}> {formatedValue} ); } ================================================ FILE: src/tools/json-diff/diff-viewer/diff-viewer.vue ================================================ ================================================ FILE: src/tools/json-diff/index.ts ================================================ import { CompareArrowsRound } from '@vicons/material'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.json-diff.title'), path: '/json-diff', description: translate('tools.json-diff.description'), keywords: ['json', 'diff', 'compare', 'difference', 'object', 'data'], component: () => import('./json-diff.vue'), icon: CompareArrowsRound, createdAt: new Date('2023-04-20'), }); ================================================ FILE: src/tools/json-diff/json-diff.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - JSON diff', () => { test.beforeEach(async ({ page }) => { await page.goto('/json-diff'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('JSON diff - IT Tools'); }); test('Identical JSONs have a custom result message', async ({ page }) => { await page.getByTestId('leftJson').fill('{"foo":"bar"}'); await page.getByTestId('rightJson').fill('{ "foo": "bar" } '); const result = await page.getByTestId('diff-result').innerText(); expect(result).toContain('The provided JSONs are the same'); }); test('Different JSONs have differences listed', async ({ page }) => { await page.getByTestId('leftJson').fill('{"foo":"bar"}'); await page.getByTestId('rightJson').fill('{"foo":"buz","baz":"qux"}'); const result = await page.getByTestId('diff-result').innerText(); expect(result).toContain('{\nfoo: "bar""buz",\nbaz: "qux",\n},'); }); test('Different JSONs have only differences listed when "Only show differences" is checked', async ({ page }) => { await page.getByTestId('leftJson').fill('{"foo":"bar"}'); await page.getByTestId('rightJson').fill('{"foo":"bar","baz":"qux"}'); await page.getByRole('switch').click(); const result = await page.getByTestId('diff-result').innerText(); expect(result).toContain('{\nbaz: "qux",\n},'); }); }); ================================================ FILE: src/tools/json-diff/json-diff.models.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { diff } from './json-diff.models'; describe('json-diff models', () => { describe('diff', () => { it('list object differences', () => { const obj = { a: 1, b: 2 }; const newObj = { a: 1, b: 2, c: 3 }; const result = diff(obj, newObj); expect(result).toEqual({ key: '', type: 'object', children: [ { key: 'a', type: 'value', value: 1, oldValue: 1, status: 'unchanged', }, { key: 'b', type: 'value', value: 2, oldValue: 2, status: 'unchanged', }, { key: 'c', type: 'value', value: 3, oldValue: undefined, status: 'added', }, ], oldValue: { a: 1, b: 2 }, value: { a: 1, b: 2, c: 3 }, status: 'children-updated', }); }); it('list array differences', () => { const obj = [1, 2]; const newObj = [1, 2, 3]; const result = diff(obj, newObj); expect(result).toEqual({ key: '', type: 'array', children: [ { key: 0, type: 'value', value: 1, oldValue: 1, status: 'unchanged', }, { key: 1, type: 'value', value: 2, oldValue: 2, status: 'unchanged', }, { key: 2, type: 'value', value: 3, oldValue: undefined, status: 'added', }, ], oldValue: [1, 2], value: [1, 2, 3], status: 'children-updated', }); }); }); }); ================================================ FILE: src/tools/json-diff/json-diff.models.ts ================================================ import _ from 'lodash'; import type { Difference, DifferenceStatus } from './json-diff.types'; export { diff }; function diff( obj: unknown, newObj: unknown, { onlyShowDifferences = false }: { onlyShowDifferences?: boolean } = {}, ): Difference { if (_.isArray(obj) && _.isArray(newObj)) { return { key: '', type: 'array', children: diffArrays(obj, newObj, { onlyShowDifferences }), oldValue: obj, value: newObj, status: getStatus(obj, newObj), }; } if (_.isObject(obj) && _.isObject(newObj)) { return { key: '', type: 'object', children: diffObjects(obj as Record, newObj as Record, { onlyShowDifferences }), oldValue: obj, value: newObj, status: getStatus(obj, newObj), }; } return { key: '', type: 'value', oldValue: obj, value: newObj, status: getStatus(obj, newObj), }; } function diffObjects( obj: Record, newObj: Record, { onlyShowDifferences = false }: { onlyShowDifferences?: boolean } = {}, ): Difference[] { const keys = Object.keys({ ...obj, ...newObj }); return keys .map(key => createDifference(obj?.[key], newObj?.[key], key, { onlyShowDifferences })) .filter(diff => !onlyShowDifferences || diff.status !== 'unchanged'); } function createDifference( value: unknown, newValue: unknown, key: string | number, { onlyShowDifferences = false }: { onlyShowDifferences?: boolean } = {}, ): Difference { const type = getType(value); if (type === 'object') { return { key, type, children: diffObjects(value as Record, newValue as Record, { onlyShowDifferences, }), oldValue: value, value: newValue, status: getStatus(value, newValue), }; } if (type === 'array') { return { key, type, children: diffArrays(value as unknown[], newValue as unknown[], { onlyShowDifferences }), value: newValue, oldValue: value, status: getStatus(value, newValue), }; } return { key, type, value: newValue, oldValue: value, status: getStatus(value, newValue), }; } function diffArrays( arr: unknown[], newArr: unknown[], { onlyShowDifferences = false }: { onlyShowDifferences?: boolean } = {}, ): Difference[] { const maxLength = Math.max(0, arr?.length, newArr?.length); return Array.from({ length: maxLength }, (_, i) => createDifference(arr?.[i], newArr?.[i], i, { onlyShowDifferences }), ).filter(diff => !onlyShowDifferences || diff.status !== 'unchanged'); } function getType(value: unknown): 'object' | 'array' | 'value' { if (value === null) { return 'value'; } if (Array.isArray(value)) { return 'array'; } if (typeof value === 'object') { return 'object'; } return 'value'; } function getStatus(value: unknown, newValue: unknown): DifferenceStatus { if (value === undefined) { return 'added'; } if (newValue === undefined) { return 'removed'; } const bothAreObjects = getType(value) === 'object' && getType(newValue) === 'object'; const bothAreArrays = getType(value) === 'array' && getType(newValue) === 'array'; const bothAreDeepEqual = _.isEqual(value, newValue); if (bothAreDeepEqual) { return 'unchanged'; } if (bothAreObjects || bothAreArrays) { return 'children-updated'; } return 'updated'; } ================================================ FILE: src/tools/json-diff/json-diff.types.ts ================================================ export type DifferenceStatus = 'added' | 'removed' | 'updated' | 'unchanged' | 'children-updated'; export interface ObjectDifference { key: string | number type: 'object' children: Difference[] status: DifferenceStatus oldValue: unknown value: unknown } export interface ValueDifference { key: string | number type: 'value' value: unknown oldValue: unknown status: DifferenceStatus } export interface ArrayDifference { key: number | string type: 'array' children: Difference[] status: DifferenceStatus oldValue: unknown value: unknown } export type Difference = ObjectDifference | ValueDifference | ArrayDifference; ================================================ FILE: src/tools/json-diff/json-diff.vue ================================================ ================================================ FILE: src/tools/json-minify/index.ts ================================================ import { Braces } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.json-minify.title'), path: '/json-minify', description: translate('tools.json-minify.description'), keywords: ['json', 'minify', 'format'], component: () => import('./json-minify.vue'), icon: Braces, }); ================================================ FILE: src/tools/json-minify/json-minify.vue ================================================ ================================================ FILE: src/tools/json-to-csv/index.ts ================================================ import { List } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.json-to-csv.title'), path: '/json-to-csv', description: translate('tools.json-to-csv.description'), keywords: ['json', 'to', 'csv', 'convert'], component: () => import('./json-to-csv.vue'), icon: List, createdAt: new Date('2023-06-18'), }); ================================================ FILE: src/tools/json-to-csv/json-to-csv.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - JSON to CSV', () => { test.beforeEach(async ({ page }) => { await page.goto('/json-to-csv'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('JSON to CSV - IT Tools'); }); test('Provided json is converted to csv', async ({ page }) => { await page.getByTestId('input').fill(` [ {'Age': 18.0, 'Salary': 20000.0, 'Gender': 'Male', 'Country': 'Germany', 'Purchased': 'N'}, {'Age': 19.0, 'Salary': 22000.0, 'Gender': 'Female', 'Country': 'France', 'Purchased': 'N'}, ] `); const generatedJson = await page.getByTestId('area-content').innerText(); expect(generatedJson.trim()).toEqual(` Age,Salary,Gender,Country,Purchased 18,20000,Male,Germany,N 19,22000,Female,France,N `.trim(), ); }); }); ================================================ FILE: src/tools/json-to-csv/json-to-csv.service.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { convertArrayToCsv, getHeaders } from './json-to-csv.service'; describe('json-to-csv service', () => { describe('getHeaders', () => { it('extracts all the keys from the array of objects', () => { expect(getHeaders({ array: [{ a: 1, b: 2 }, { a: 3, c: 4 }] })).toEqual(['a', 'b', 'c']); }); it('returns an empty array if the array is empty', () => { expect(getHeaders({ array: [] })).toEqual([]); }); }); describe('convertArrayToCsv', () => { it('converts an array of objects to a CSV string', () => { const array = [ { a: 1, b: 2 }, { a: 3, b: 4 }, ]; expect(convertArrayToCsv({ array })).toMatchInlineSnapshot(` "a,b 1,2 3,4" `); }); it('converts an array of objects with different keys to a CSV string', () => { const array = [ { a: 1, b: 2 }, { a: 3, c: 4 }, ]; expect(convertArrayToCsv({ array })).toMatchInlineSnapshot(` "a,b,c 1,2, 3,,4" `); }); it('when a value is null, it is converted to the string "null"', () => { const array = [ { a: null, b: 2 }, ]; expect(convertArrayToCsv({ array })).toMatchInlineSnapshot(` "a,b null,2" `); }); it('when a value is undefined, it is converted to an empty string', () => { const array = [ { a: undefined, b: 2 }, { b: 3 }, ]; expect(convertArrayToCsv({ array })).toMatchInlineSnapshot(` "a,b ,2 ,3" `); }); it('when a value contains a comma, it is wrapped in double quotes', () => { const array = [ { a: 'hello, world', b: 2 }, ]; expect(convertArrayToCsv({ array })).toMatchInlineSnapshot(` "a,b \\"hello, world\\",2" `); }); it('when a value contains a double quote, it is escaped with another double quote', () => { const array = [ { a: 'hello "world"', b: 2 }, ]; expect(convertArrayToCsv({ array })).toMatchInlineSnapshot(` "a,b hello \\\\\\"world\\\\\\",2" `); }); }); }); ================================================ FILE: src/tools/json-to-csv/json-to-csv.service.ts ================================================ export { getHeaders, convertArrayToCsv }; function getHeaders({ array }: { array: Record[] }): string[] { const headers = new Set(); array.forEach(item => Object.keys(item).forEach(key => headers.add(key))); return Array.from(headers); } function serializeValue(value: unknown): string { if (value === null) { return 'null'; } if (value === undefined) { return ''; } const valueAsString = String(value).replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/"/g, '\\"'); if (valueAsString.includes(',')) { return `"${valueAsString}"`; } return valueAsString; } function convertArrayToCsv({ array }: { array: Record[] }): string { const headers = getHeaders({ array }); const rows = array.map(item => headers.map(header => serializeValue(item[header]))); return [headers.join(','), ...rows].join('\n'); } ================================================ FILE: src/tools/json-to-csv/json-to-csv.vue ================================================ ================================================ FILE: src/tools/json-to-toml/index.ts ================================================ import { Braces } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.json-to-toml.title'), path: '/json-to-toml', description: translate('tools.json-to-toml.description'), keywords: ['json', 'parse', 'toml', 'convert', 'transform'], component: () => import('./json-to-toml.vue'), icon: Braces, createdAt: new Date('2023-06-23'), }); ================================================ FILE: src/tools/json-to-toml/json-to-toml.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - JSON to TOML', () => { test.beforeEach(async ({ page }) => { await page.goto('/json-to-toml'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('JSON to TOML - IT Tools'); }); test('JSON is parsed and outputs clean TOML', async ({ page }) => { await page.getByTestId('input').fill(` { "foo": "bar", "list": { "name": "item", "another": { "key": "value" } } } `.trim()); const generatedJson = await page.getByTestId('area-content').innerText(); expect(generatedJson.trim()).toEqual( ` foo = "bar" [list] name = "item" [list.another] key = "value" `.trim(), ); }); }); ================================================ FILE: src/tools/json-to-toml/json-to-toml.vue ================================================ ================================================ FILE: src/tools/json-to-xml/index.ts ================================================ import { Braces } from '@vicons/tabler'; import { defineTool } from '../tool'; export const tool = defineTool({ name: 'JSON to XML', path: '/json-to-xml', description: 'Convert JSON to XML', keywords: ['json', 'xml'], component: () => import('./json-to-xml.vue'), icon: Braces, createdAt: new Date('2024-08-09'), }); ================================================ FILE: src/tools/json-to-xml/json-to-xml.vue ================================================ ================================================ FILE: src/tools/json-to-yaml-converter/index.ts ================================================ import { Braces } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.json-to-yaml-converter.title'), path: '/json-to-yaml-converter', description: translate('tools.json-to-yaml-converter.description'), keywords: ['yaml', 'to', 'json'], component: () => import('./json-to-yaml.vue'), icon: Braces, createdAt: new Date('2023-04-10'), }); ================================================ FILE: src/tools/json-to-yaml-converter/json-to-yaml.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - json to yaml', () => { test.beforeEach(async ({ page }) => { await page.goto('/json-to-yaml-converter'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('JSON to YAML converter - IT Tools'); }); test('json is parsed and output clean yaml', async ({ page }) => { await page.getByTestId('input').fill('{"foo":"bar","list":["item",{"key":"value"}]}'); const generatedJson = await page.getByTestId('area-content').innerText(); expect(generatedJson.trim()).toEqual('foo: bar\nlist:\n - item\n - key: value'.trim()); }); }); ================================================ FILE: src/tools/json-to-yaml-converter/json-to-yaml.vue ================================================ ================================================ FILE: src/tools/json-viewer/index.ts ================================================ import { Braces } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.json-prettify.title'), path: '/json-prettify', description: translate('tools.json-prettify.description'), keywords: ['json', 'viewer', 'prettify', 'format'], component: () => import('./json-viewer.vue'), icon: Braces, redirectFrom: ['/json-viewer'], }); ================================================ FILE: src/tools/json-viewer/json-viewer.vue ================================================ ================================================ FILE: src/tools/json-viewer/json.models.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { sortObjectKeys } from './json.models'; describe('json models', () => { describe('sortObjectKeys', () => { it('the object keys are recursively sorted alphabetically', () => { expect(JSON.stringify(sortObjectKeys({ b: 2, a: 1 }))).to.deep.equal(JSON.stringify({ a: 1, b: 2 })); // To unsure that this way of testing is working expect(JSON.stringify(sortObjectKeys({ b: 2, a: 1 }))).to.not.deep.equal(JSON.stringify({ b: 2, a: 1 })); expect(JSON.stringify(sortObjectKeys({ b: 2, a: 1, d: { j: 7, a: [{ z: 9, y: 8 }] }, c: 3 }))).to.deep.equal( JSON.stringify({ a: 1, b: 2, c: 3, d: { a: [{ y: 8, z: 9 }], j: 7 } }), ); }); }); }); ================================================ FILE: src/tools/json-viewer/json.models.ts ================================================ import { type MaybeRef, get } from '@vueuse/core'; import JSON5 from 'json5'; export { sortObjectKeys, formatJson }; function sortObjectKeys(obj: T): T { if (typeof obj !== 'object' || obj === null) { return obj; } if (Array.isArray(obj)) { return obj.map(sortObjectKeys) as unknown as T; } return Object.keys(obj) .sort((a, b) => a.localeCompare(b)) .reduce((sortedObj, key) => { sortedObj[key] = sortObjectKeys((obj as Record)[key]); return sortedObj; }, {} as Record) as T; } function formatJson({ rawJson, sortKeys = true, indentSize = 3, }: { rawJson: MaybeRef sortKeys?: MaybeRef indentSize?: MaybeRef }) { const parsedObject = JSON5.parse(get(rawJson)); return JSON.stringify(get(sortKeys) ? sortObjectKeys(parsedObject) : parsedObject, null, get(indentSize)); } ================================================ FILE: src/tools/jwt-parser/index.ts ================================================ import { Key } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.jwt-parser.title'), path: '/jwt-parser', description: translate('tools.jwt-parser.description'), keywords: [ 'jwt', 'parser', 'decode', 'typ', 'alg', 'iss', 'sub', 'aud', 'exp', 'nbf', 'iat', 'jti', 'json', 'web', 'token', ], component: () => import('./jwt-parser.vue'), icon: Key, }); ================================================ FILE: src/tools/jwt-parser/jwt-parser.constants.ts ================================================ // From https://datatracker.ietf.org/doc/html/rfc7518#section-3.1 export const ALGORITHM_DESCRIPTIONS: { [k: string]: string } = { HS256: 'HMAC using SHA-256', HS384: 'HMAC using SHA-384', HS512: 'HMAC using SHA-512', RS256: 'RSASSA-PKCS1-v1_5 using SHA-256', RS384: 'RSASSA-PKCS1-v1_5 using SHA-384', RS512: 'RSASSA-PKCS1-v1_5 using SHA-512', ES256: 'ECDSA using P-256 and SHA-256', ES384: 'ECDSA using P-384 and SHA-384', ES512: 'ECDSA using P-521 and SHA-512', PS256: 'RSASSA-PSS using SHA-256 and MGF1 with SHA-256', PS384: 'RSASSA-PSS using SHA-384 and MGF1 with SHA-384', PS512: 'RSASSA-PSS using SHA-512 and MGF1 with SHA-512', none: 'No digital signature or MAC performed', }; // List extracted from IANA: https://www.iana.org/assignments/jwt/jwt.xhtml export const CLAIM_DESCRIPTIONS: Record = { typ: 'Type', alg: 'Algorithm', iss: 'Issuer', sub: 'Subject', aud: 'Audience', exp: 'Expiration Time', nbf: 'Not Before', iat: 'Issued At', jti: 'JWT ID', name: 'Full name', given_name: 'Given name(s) or first name(s)', family_name: 'Surname(s) or last name(s)', middle_name: 'Middle name(s)', nickname: 'Casual name', preferred_username: 'Shorthand name by which the End-User wishes to be referred to', profile: 'Profile page URL', picture: 'Profile picture URL', website: 'Web page or blog URL', email: 'Preferred e-mail address', email_verified: 'True if the e-mail address has been verified; otherwise false', gender: 'Gender', birthdate: 'Birthday', zoneinfo: 'Time zone', locale: 'Locale', phone_number: 'Preferred telephone number', phone_number_verified: 'True if the phone number has been verified; otherwise false', address: 'Preferred postal address', updated_at: 'Time the information was last updated', azp: 'Authorized party - the party to which the ID Token was issued', nonce: 'Value used to associate a Client session with an ID Token', auth_time: 'Time when the authentication occurred', at_hash: 'Access Token hash value', c_hash: 'Code hash value', acr: 'Authentication Context Class Reference', amr: 'Authentication Methods References', sub_jwk: 'Public key used to check the signature of an ID Token', cnf: 'Confirmation', sip_from_tag: 'SIP From tag header field parameter value', sip_date: 'SIP Date header field value', sip_callid: 'SIP Call-Id header field value', sip_cseq_num: 'SIP CSeq numeric header field parameter value', sip_via_branch: 'SIP Via branch header field parameter value', orig: 'Originating Identity String', dest: 'Destination Identity String', mky: 'Media Key Fingerprint String', events: 'Security Events', toe: 'Time of Event', txn: 'Transaction Identifier', rph: 'Resource Priority Header Authorization', sid: 'Session ID', vot: 'Vector of Trust value', vtm: 'Vector of Trust trustmark URL', attest: 'Attestation level as defined in SHAKEN framework', origid: 'Originating Identifier as defined in SHAKEN framework', act: 'Actor', scope: 'Scope Values', client_id: 'Client Identifier', may_act: 'Authorized Actor - the party that is authorized to become the actor', jcard: 'jCard data', at_use_nbr: 'Number of API requests for which the access token can be used', div: 'Diverted Target of a Call', opt: 'Original PASSporT (in Full Form)', vc: 'Verifiable Credential as specified in the W3C Recommendation', vp: 'Verifiable Presentation as specified in the W3C Recommendation', sph: 'SIP Priority header field', ace_profile: 'ACE profile a token is supposed to be used with.', cnonce: 'Client nonce', exi: 'Expires in', roles: 'Roles', groups: 'Groups', entitlements: 'Entitlements', token_introspection: 'Token introspection response', }; ================================================ FILE: src/tools/jwt-parser/jwt-parser.service.ts ================================================ import jwtDecode, { type JwtHeader, type JwtPayload } from 'jwt-decode'; import _ from 'lodash'; import { ALGORITHM_DESCRIPTIONS, CLAIM_DESCRIPTIONS } from './jwt-parser.constants'; export { decodeJwt }; function decodeJwt({ jwt }: { jwt: string }) { const rawHeader = jwtDecode(jwt, { header: true }); const rawPayload = jwtDecode(jwt); const header = _.map(rawHeader, (value, claim) => parseClaims({ claim, value })); const payload = _.map(rawPayload, (value, claim) => parseClaims({ claim, value })); return { header, payload, }; } function parseClaims({ claim, value }: { claim: string; value: unknown }) { const claimDescription = CLAIM_DESCRIPTIONS[claim]; const formattedValue = _.isPlainObject(value) || _.isArray(value) ? JSON.stringify(value, null, 3) : _.toString(value); const friendlyValue = getFriendlyValue({ claim, value }); return { value: formattedValue, friendlyValue, claim, claimDescription, }; } function getFriendlyValue({ claim, value }: { claim: string; value: unknown }) { if (['exp', 'nbf', 'iat'].includes(claim)) { return dateFormatter(value); } if (claim === 'alg' && _.isString(value)) { return ALGORITHM_DESCRIPTIONS[value]; } return undefined; } function dateFormatter(value: unknown) { if (_.isNil(value)) { return undefined; } const date = new Date(Number(value) * 1000); return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`; } ================================================ FILE: src/tools/jwt-parser/jwt-parser.vue ================================================ ================================================ FILE: src/tools/keycode-info/index.ts ================================================ import { Keyboard } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.keycode-info.title'), path: '/keycode-info', description: translate('tools.keycode-info.description'), keywords: [ 'keycode', 'info', 'code', 'javascript', 'event', 'keycodes', 'which', 'keyboard', 'press', 'modifier', 'alt', 'ctrl', 'meta', 'shift', ], component: () => import('./keycode-info.vue'), icon: Keyboard, }); ================================================ FILE: src/tools/keycode-info/keycode-info.vue ================================================ ================================================ FILE: src/tools/list-converter/index.ts ================================================ import { List } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.list-converter.title'), path: '/list-converter', description: translate('tools.list-converter.description'), keywords: ['list', 'converter', 'sort', 'reverse', 'prefix', 'suffix', 'lowercase', 'truncate'], component: () => import('./list-converter.vue'), icon: List, createdAt: new Date('2023-05-07'), }); ================================================ FILE: src/tools/list-converter/list-converter.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - List converter', () => { test.beforeEach(async ({ page }) => { await page.goto('/list-converter'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('List converter - IT Tools'); }); test('Simple list should be converted with default settings', async ({ page }) => { await page.getByTestId('input').fill(`1 2 3 4 5`); const result = await page.getByTestId('area-content').innerText(); expect(result.trim()).toEqual('1, 2, 3, 4, 5'); }); test('Duplicates should be removed, list should be sorted and prefix and suffix list items', async ({ page }) => { await page.getByTestId('input').fill(`1 2 2 4 4 3 5`); await page.getByTestId('removeDuplicates').check(); await page.getByTestId('itemPrefix').fill('\''); await page.getByTestId('itemSuffix').fill('\''); const result = await page.getByTestId('area-content').innerText(); expect(result.trim()).toEqual('\'1\', \'2\', \'4\', \'3\', \'5\''); }); }); ================================================ FILE: src/tools/list-converter/list-converter.models.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { convert } from './list-converter.models'; import type { ConvertOptions } from './list-converter.types'; describe('list-converter', () => { describe('convert', () => { it('should convert a given list', () => { const options: ConvertOptions = { separator: ', ', trimItems: true, removeDuplicates: true, itemPrefix: '"', itemSuffix: '"', listPrefix: '', listSuffix: '', reverseList: false, sortList: null, lowerCase: false, keepLineBreaks: false, }; const input = ` 1 2 3 3 4 `; expect(convert(input, options)).toEqual('"1", "2", "3", "4"'); }); it('should return an empty value for an empty input', () => { const options: ConvertOptions = { separator: ', ', trimItems: true, removeDuplicates: true, itemPrefix: '', itemSuffix: '', listPrefix: '', listSuffix: '', reverseList: false, sortList: null, lowerCase: false, keepLineBreaks: false, }; expect(convert('', options)).toEqual(''); }); it('should keep line breaks', () => { const options: ConvertOptions = { separator: '', trimItems: true, itemPrefix: '
  • ', itemSuffix: '
  • ', listPrefix: '
      ', listSuffix: '
    ', keepLineBreaks: true, lowerCase: false, removeDuplicates: false, reverseList: false, sortList: null, }; const input = ` 1 2 3 `; const expected = `
    • 1
    • 2
    • 3
    `; expect(convert(input, options)).toEqual(expected); }); }); }); ================================================ FILE: src/tools/list-converter/list-converter.models.ts ================================================ import _ from 'lodash'; import type { ConvertOptions } from './list-converter.types'; import { byOrder } from '@/utils/array'; export { convert }; function whenever(condition: boolean, fn: (value: T) => R) { return (value: T) => condition ? fn(value) : value; } function convert(list: string, options: ConvertOptions): string { const lineBreak = options.keepLineBreaks ? '\n' : ''; return _.chain(list) .thru(whenever(options.lowerCase, text => text.toLowerCase())) .split('\n') .thru(whenever(options.removeDuplicates, _.uniq)) .thru(whenever(options.reverseList, _.reverse)) .thru(whenever(!_.isNull(options.sortList), parts => parts.sort(byOrder({ order: options.sortList })))) .map(whenever(options.trimItems, _.trim)) .without('') .map(p => options.itemPrefix + p + options.itemSuffix) .join(options.separator + lineBreak) .thru(text => [options.listPrefix, text, options.listSuffix].join(lineBreak)) .value(); } ================================================ FILE: src/tools/list-converter/list-converter.types.ts ================================================ export type SortOrder = 'asc' | 'desc' | null; export interface ConvertOptions { lowerCase: boolean trimItems: boolean itemPrefix: string itemSuffix: string listPrefix: string listSuffix: string reverseList: boolean sortList: SortOrder removeDuplicates: boolean separator: string keepLineBreaks: boolean } ================================================ FILE: src/tools/list-converter/list-converter.vue ================================================ ================================================ FILE: src/tools/lorem-ipsum-generator/index.ts ================================================ import { AlignJustified } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.lorem-ipsum-generator.title'), path: '/lorem-ipsum-generator', description: translate('tools.lorem-ipsum-generator.description'), keywords: ['lorem', 'ipsum', 'dolor', 'sit', 'amet', 'placeholder', 'text', 'filler', 'random', 'generator'], component: () => import('./lorem-ipsum-generator.vue'), icon: AlignJustified, }); ================================================ FILE: src/tools/lorem-ipsum-generator/lorem-ipsum-generator.service.ts ================================================ import { randFromArray } from '@/utils/random'; const vocabulary = [ 'a', 'ac', 'accumsan', 'ad', 'adipiscing', 'aenean', 'aliquam', 'aliquet', 'amet', 'ante', 'aptent', 'arcu', 'at', 'auctor', 'bibendum', 'blandit', 'class', 'commodo', 'condimentum', 'congue', 'consectetur', 'consequat', 'conubia', 'convallis', 'cras', 'cubilia', 'cum', 'curabitur', 'curae', 'dapibus', 'diam', 'dictum', 'dictumst', 'dignissim', 'dolor', 'donec', 'dui', 'duis', 'egestas', 'eget', 'eleifend', 'elementum', 'elit', 'enim', 'erat', 'eros', 'est', 'et', 'etiam', 'eu', 'euismod', 'facilisi', 'faucibus', 'felis', 'fermentum', 'feugiat', 'fringilla', 'fusce', 'gravida', 'habitant', 'habitasse', 'hac', 'hendrerit', 'himenaeos', 'iaculis', 'id', 'imperdiet', 'in', 'inceptos', 'integer', 'interdum', 'ipsum', 'justo', 'lacinia', 'lacus', 'laoreet', 'lectus', 'leo', 'ligula', 'litora', 'lobortis', 'lorem', 'luctus', 'maecenas', 'magna', 'magnis', 'malesuada', 'massa', 'mattis', 'mauris', 'metus', 'mi', 'molestie', 'mollis', 'montes', 'morbi', 'mus', 'nam', 'nascetur', 'natoque', 'nec', 'neque', 'netus', 'nisi', 'nisl', 'non', 'nostra', 'nulla', 'nullam', 'nunc', 'odio', 'orci', 'ornare', 'parturient', 'pellentesque', 'penatibus', 'per', 'pharetra', 'phasellus', 'placerat', 'platea', 'porta', 'porttitor', 'posuere', 'potenti', 'praesent', 'pretium', 'primis', 'proin', 'pulvinar', 'purus', 'quam', 'quis', 'quisque', 'rhoncus', 'ridiculus', 'risus', 'rutrum', 'sagittis', 'sapien', 'scelerisque', 'sed', 'sem', 'semper', 'senectus', 'sit', 'sociis', 'sociosqu', 'sodales', 'sollicitudin', 'suscipit', 'suspendisse', 'taciti', 'tellus', 'tempor', 'tempus', 'tincidunt', 'torquent', 'tortor', 'turpis', 'ullamcorper', 'ultrices', 'ultricies', 'urna', 'varius', 'vehicula', 'vel', 'velit', 'venenatis', 'vestibulum', 'vitae', 'vivamus', 'viverra', 'volutpat', 'vulputate', ]; const firstSentence = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'; function generateSentence(length: number) { const sentence = Array.from({ length }) .map(() => randFromArray(vocabulary)) .join(' '); return `${sentence.charAt(0).toUpperCase() + sentence.slice(1)}.`; } export function generateLoremIpsum({ paragraphCount = 1, sentencePerParagraph = 3, wordCount = 10, startWithLoremIpsum = true, asHTML = false, }: { paragraphCount?: number sentencePerParagraph?: number wordCount?: number startWithLoremIpsum?: boolean asHTML?: boolean }) { const paragraphs = Array.from({ length: paragraphCount }).map(() => Array.from({ length: sentencePerParagraph }).map(() => generateSentence(wordCount)), ); if (startWithLoremIpsum) { paragraphs[0][0] = firstSentence; } if (asHTML) { return `

    ${paragraphs.map(s => s.join(' ')).join('

    \n\n

    ')}

    `; } return paragraphs.map(s => s.join(' ')).join('\n\n'); } ================================================ FILE: src/tools/lorem-ipsum-generator/lorem-ipsum-generator.vue ================================================ ================================================ FILE: src/tools/mac-address-generator/index.ts ================================================ import { Devices } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.mac-address-generator.title'), path: '/mac-address-generator', description: translate('tools.mac-address-generator.description'), keywords: ['mac', 'address', 'generator', 'random', 'prefix'], component: () => import('./mac-address-generator.vue'), icon: Devices, createdAt: new Date('2023-11-31'), }); ================================================ FILE: src/tools/mac-address-generator/mac-address-generator.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - MAC address generator', () => { test.beforeEach(async ({ page }) => { await page.goto('/mac-address-generator'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('MAC address generator - IT Tools'); }); }); ================================================ FILE: src/tools/mac-address-generator/mac-address-generator.vue ================================================ ================================================ FILE: src/tools/mac-address-generator/mac-adress-generator.models.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { generateRandomMacAddress, splitPrefix } from './mac-adress-generator.models'; describe('mac-adress-generator models', () => { describe('splitPrefix', () => { it('a mac address prefix is splitted around non hex characters', () => { expect(splitPrefix('')).toEqual([]); expect(splitPrefix('01')).toEqual(['01']); expect(splitPrefix('01:')).toEqual(['01']); expect(splitPrefix('01:23')).toEqual(['01', '23']); expect(splitPrefix('01-23')).toEqual(['01', '23']); }); it('when a prefix contains only hex characters, they are grouped by 2', () => { expect(splitPrefix('0123')).toEqual(['01', '23']); expect(splitPrefix('012345')).toEqual(['01', '23', '45']); expect(splitPrefix('0123456')).toEqual(['01', '23', '45', '06']); }); }); describe('generateRandomMacAddress', () => { const createRandomByteGenerator = () => { let i = 0; return () => (i++).toString(16).padStart(2, '0'); }; it('generates a random mac address', () => { expect(generateRandomMacAddress({ getRandomByte: createRandomByteGenerator() })).toBe('00:01:02:03:04:05'); }); it('generates a random mac address with a prefix', () => { expect(generateRandomMacAddress({ prefix: 'ff:ee:aa', getRandomByte: createRandomByteGenerator() })).toBe('ff:ee:aa:00:01:02'); expect(generateRandomMacAddress({ prefix: 'ff:ee:a', getRandomByte: createRandomByteGenerator() })).toBe('ff:ee:0a:00:01:02'); }); it('generates a random mac address with a prefix and a different separator', () => { expect(generateRandomMacAddress({ prefix: 'ff-ee-aa', separator: '-', getRandomByte: createRandomByteGenerator() })).toBe('ff-ee-aa-00-01-02'); expect(generateRandomMacAddress({ prefix: 'ff:ee:aa', separator: '-', getRandomByte: createRandomByteGenerator() })).toBe('ff-ee-aa-00-01-02'); expect(generateRandomMacAddress({ prefix: 'ff-ee:aa', separator: '-', getRandomByte: createRandomByteGenerator() })).toBe('ff-ee-aa-00-01-02'); expect(generateRandomMacAddress({ prefix: 'ff ee:aa', separator: '-', getRandomByte: createRandomByteGenerator() })).toBe('ff-ee-aa-00-01-02'); }); }); }); ================================================ FILE: src/tools/mac-address-generator/mac-adress-generator.models.ts ================================================ import _ from 'lodash'; export { splitPrefix, generateRandomMacAddress }; function splitPrefix(prefix: string): string[] { const base = prefix.match(/[^0-9a-f]/i) === null ? prefix.match(/.{1,2}/g) ?? [] : prefix.split(/[^0-9a-f]/i); return base.filter(Boolean).map(byte => byte.padStart(2, '0')); } function generateRandomMacAddress({ prefix: rawPrefix = '', separator = ':', getRandomByte = () => _.random(0, 255).toString(16).padStart(2, '0') }: { prefix?: string; separator?: string; getRandomByte?: () => string } = {}) { const prefix = splitPrefix(rawPrefix); const randomBytes = _.times(6 - prefix.length, getRandomByte); const bytes = [...prefix, ...randomBytes]; return bytes.join(separator); } ================================================ FILE: src/tools/mac-address-lookup/index.ts ================================================ import { Devices } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.mac-address-lookup.title'), path: '/mac-address-lookup', description: translate('tools.mac-address-lookup.description'), keywords: ['mac', 'address', 'lookup', 'vendor', 'parser', 'manufacturer'], component: () => import('./mac-address-lookup.vue'), icon: Devices, createdAt: new Date('2023-04-06'), }); ================================================ FILE: src/tools/mac-address-lookup/mac-address-lookup.vue ================================================ ================================================ FILE: src/tools/markdown-to-html/index.ts ================================================ import { Markdown } from '@vicons/tabler'; import { defineTool } from '../tool'; export const tool = defineTool({ name: 'Markdown to HTML', path: '/markdown-to-html', description: 'Convert Markdown to Html and allow to print (as PDF)', keywords: ['markdown', 'html', 'converter', 'pdf'], component: () => import('./markdown-to-html.vue'), icon: Markdown, createdAt: new Date('2024-08-25'), }); ================================================ FILE: src/tools/markdown-to-html/markdown-to-html.vue ================================================ ================================================ FILE: src/tools/math-evaluator/index.ts ================================================ import { Math } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.math-evaluator.title'), path: '/math-evaluator', description: translate('tools.math-evaluator.description'), keywords: [ 'math', 'evaluator', 'calculator', 'expression', 'abs', 'acos', 'acosh', 'acot', 'acoth', 'acsc', 'acsch', 'asec', 'asech', 'asin', 'asinh', 'atan', 'atan2', 'atanh', 'cos', 'cosh', 'cot', 'coth', 'csc', 'csch', 'sec', 'sech', 'sin', 'sinh', 'sqrt', 'tan', 'tanh', ], component: () => import('./math-evaluator.vue'), icon: Math, }); ================================================ FILE: src/tools/math-evaluator/math-evaluator.vue ================================================ ================================================ FILE: src/tools/meta-tag-generator/OGSchemaType.type.ts ================================================ import type { SelectGroupOption, SelectOption } from 'naive-ui'; export type { OGSchemaType, OGSchemaTypeElementInput, OGSchemaTypeElementSelect, OGSchemaTypeElementInputMultiple }; interface OGSchemaTypeElementBase { key: string label: string placeholder: string } interface OGSchemaTypeElementInput extends OGSchemaTypeElementBase { type: 'input' } interface OGSchemaTypeElementInputMultiple extends OGSchemaTypeElementBase { type: 'input-multiple' } interface OGSchemaTypeElementSelect extends OGSchemaTypeElementBase { type: 'select' options: Array } interface OGSchemaType { name: string elements: (OGSchemaTypeElementSelect | OGSchemaTypeElementInput | OGSchemaTypeElementInputMultiple)[] } ================================================ FILE: src/tools/meta-tag-generator/index.ts ================================================ import { Tags } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.og-meta-generator.title'), path: '/og-meta-generator', description: translate('tools.og-meta-generator.description'), keywords: [ 'meta', 'tag', 'generator', 'social', 'title', 'description', 'image', 'share', 'online', 'website', 'open', 'graph', 'og', ], component: () => import('./meta-tag-generator.vue'), icon: Tags, }); ================================================ FILE: src/tools/meta-tag-generator/meta-tag-generator.vue ================================================ ================================================ FILE: src/tools/meta-tag-generator/og-schemas/article.ts ================================================ import type { OGSchemaType } from '../OGSchemaType.type'; export const article: OGSchemaType = { name: 'Article', elements: [ { type: 'input', label: 'Publishing date', key: 'article:published_time', placeholder: 'When the article was first published...', }, { type: 'input', label: 'Modification date', key: 'article:modified_time', placeholder: 'When the article was last changed...', }, { type: 'input', label: 'Expiration date', key: 'article:expiration_time', placeholder: 'When the article is out of date after...', }, { type: 'input', label: 'Author', key: 'article:author', placeholder: 'Writers of the article...' }, { type: 'input', label: 'Section', key: 'article:section', placeholder: 'A high-level section name. E.g. Technology..', }, { type: 'input', label: 'Tag', key: 'article:tag', placeholder: 'Tag words associated with this article...' }, ], }; ================================================ FILE: src/tools/meta-tag-generator/og-schemas/book.ts ================================================ import type { OGSchemaType } from '../OGSchemaType.type'; export const book: OGSchemaType = { name: 'Book', elements: [ { type: 'input', label: 'Author', key: 'book:author', placeholder: 'Who wrote this book...' }, { type: 'input', label: 'ISBN', key: 'book:isbn', placeholder: 'The International Standard Book Number...' }, { type: 'input', label: 'Release date', key: 'book:release_date', placeholder: 'The date the book was released...', }, { type: 'input', label: 'Tag', key: 'book:tag', placeholder: 'Tag words associated with this book...' }, ], }; ================================================ FILE: src/tools/meta-tag-generator/og-schemas/image.ts ================================================ import type { OGSchemaType } from '../OGSchemaType.type'; export const image: OGSchemaType = { name: 'Image', elements: [ { type: 'input', label: 'Image url', placeholder: 'The url of your website social image...', key: 'image', }, { type: 'input', label: 'Image alt', placeholder: 'The alternative text of your website social image...', key: 'image:alt', }, { type: 'input', label: 'Width', placeholder: 'Width in px of your website social image...', key: 'image:width', }, { type: 'input', label: 'Height', placeholder: 'Height in px of your website social image...', key: 'image:height', }, ], }; ================================================ FILE: src/tools/meta-tag-generator/og-schemas/index.ts ================================================ import type { OGSchemaType } from '../OGSchemaType.type'; import { article } from './article'; import { book } from './book'; import { musicAlbum } from './musicAlbum'; import { musicPlaylist } from './musicPlaylist'; import { musicRadioStation } from './musicRadioStation'; import { musicSong } from './musicSong'; import { profile } from './profile'; import { videoEpisode } from './videoEpisode'; import { videoMovie } from './videoMovie'; import { videoOther } from './videoOther'; import { videoTVShow } from './videoTVShow'; export * from './image'; export * from './twitter'; export * from './website'; export const ogSchemas: Record = { 'music.song': musicSong, 'music.album': musicAlbum, 'music.playlist': musicPlaylist, 'music.radio_station': musicRadioStation, 'video.movie': videoMovie, 'video.episode': videoEpisode, 'video.tv_show': videoTVShow, 'video.other': videoOther, profile, article, book, }; ================================================ FILE: src/tools/meta-tag-generator/og-schemas/musicAlbum.ts ================================================ import type { OGSchemaType } from '../OGSchemaType.type'; export const musicAlbum: OGSchemaType = { name: 'Album details', elements: [ { type: 'input', label: 'Song', key: 'music:song', placeholder: 'The song on this album...' }, { type: 'input', label: 'Disc', key: 'music:song:disc', placeholder: 'The same as music:album:disc but in reverse...', }, { type: 'input', label: 'Track', key: 'music:song:track', placeholder: 'The same as music:album:track but in reverse...', }, { type: 'input', label: 'Musician', key: 'music:musician', placeholder: 'The musician that made this song...' }, { type: 'input', label: 'Release date', key: 'music:release_date', placeholder: 'The date the album was released...', }, ], }; ================================================ FILE: src/tools/meta-tag-generator/og-schemas/musicPlaylist.ts ================================================ import type { OGSchemaType } from '../OGSchemaType.type'; export const musicPlaylist: OGSchemaType = { name: 'Playlist details', elements: [ { type: 'input', label: 'Song', key: 'music:song', placeholder: 'The song on this album...' }, { type: 'input', label: 'Disc', key: 'music:song:disc', placeholder: 'The same as music:album:disc but in reverse...', }, { type: 'input', label: 'Track', key: 'music:song:track', placeholder: 'The same as music:album:track but in reverse...', }, { type: 'input', label: 'Creator', key: 'music:creator', placeholder: 'The creator of this playlist...' }, ], }; ================================================ FILE: src/tools/meta-tag-generator/og-schemas/musicRadioStation.ts ================================================ import type { OGSchemaType } from '../OGSchemaType.type'; export const musicRadioStation: OGSchemaType = { name: 'Radio station details', elements: [ { type: 'input', label: 'Creator', key: 'music:creator', placeholder: 'The creator of this radio station...' }, ], }; ================================================ FILE: src/tools/meta-tag-generator/og-schemas/musicSong.ts ================================================ import type { OGSchemaType } from '../OGSchemaType.type'; export const musicSong: OGSchemaType = { name: 'Song details', elements: [ { type: 'input', label: 'Duration', placeholder: 'The duration of the song...', key: 'music:duration' }, { type: 'input', label: 'Album', placeholder: 'The album this song is from...', key: 'music:album' }, { type: 'input', label: 'Disc', placeholder: 'Which disc of the album this song is on...', key: 'music:album:disk', }, { type: 'input', label: 'Track', placeholder: ' Which track this song is...', key: 'music:album:track' }, { type: 'input-multiple', label: 'Musician', placeholder: 'The musician that made this song...', key: 'music:musician', }, ], }; ================================================ FILE: src/tools/meta-tag-generator/og-schemas/profile.ts ================================================ import type { OGSchemaType } from '../OGSchemaType.type'; export const profile: OGSchemaType = { name: 'Profile', elements: [ { type: 'input', label: 'First name', placeholder: 'Enter the first name of the person...', key: 'profile:first_name', }, { type: 'input', label: 'Last name', placeholder: 'Enter the last name of the person...', key: 'profile:last_name', }, { type: 'input', label: 'Username', placeholder: 'Enter the username of the person...', key: 'profile:username' }, { type: 'input', label: 'Gender', placeholder: 'Enter the gender of the person...', key: 'profile:gender' }, ], }; ================================================ FILE: src/tools/meta-tag-generator/og-schemas/twitter.ts ================================================ import type { OGSchemaType } from '../OGSchemaType.type'; export const twitter: OGSchemaType = { name: 'Twitter', elements: [ { type: 'select', options: [ { label: 'Summary', value: 'summary' }, { label: 'Summary with large image', value: 'summary_large_image' }, { label: 'Application', value: 'app' }, { label: 'Player', value: 'player' }, ], label: 'Card type', placeholder: 'The Twitter card type...', key: 'twitter:card', }, { type: 'input', label: 'Site account', placeholder: 'The name of the Twitter account of the site (ex: @ittoolsdottech)...', key: 'twitter:site', }, { type: 'input', label: 'Creator acc.', placeholder: 'The name of the Twitter account of the creator (ex: @cthmsst)...', key: 'twitter:creator', }, ], }; ================================================ FILE: src/tools/meta-tag-generator/og-schemas/videoEpisode.ts ================================================ import type { OGSchemaType } from '../OGSchemaType.type'; import { videoMovie } from './videoMovie'; export const videoEpisode: OGSchemaType = { name: 'Video episode details', elements: [ ...videoMovie.elements, { type: 'input', label: 'Series', key: 'video:series', placeholder: 'Which series this episode belongs to...' }, ], }; ================================================ FILE: src/tools/meta-tag-generator/og-schemas/videoMovie.ts ================================================ import type { OGSchemaType } from '../OGSchemaType.type'; export const videoMovie: OGSchemaType = { name: 'Movie details', elements: [ { type: 'input-multiple', label: 'Actor', key: 'video:actor', placeholder: 'Name of the actress/actor...', }, // { type: 'input', label: 'Actor role', key: 'video:actor:role', placeholder: 'The role they played...' }, { type: 'input-multiple', label: 'Director', key: 'video:director', placeholder: 'Name of the director...', }, { type: 'input-multiple', label: 'Writer', key: 'video:writer', placeholder: 'Writers of the movie...' }, { type: 'input', label: 'Duration', key: 'video:duration', placeholder: 'The movie\'s length in seconds...' }, { type: 'input', label: 'Release date', key: 'video:release_date', placeholder: 'The date the movie was released...', }, { type: 'input', label: 'Tag', key: 'video:tag', placeholder: 'Tag words associated with this movie...' }, ], }; ================================================ FILE: src/tools/meta-tag-generator/og-schemas/videoOther.ts ================================================ import type { OGSchemaType } from '../OGSchemaType.type'; import { videoMovie } from './videoMovie'; export const videoOther: OGSchemaType = { name: 'Other video details', elements: [...videoMovie.elements], }; ================================================ FILE: src/tools/meta-tag-generator/og-schemas/videoTVShow.ts ================================================ import type { OGSchemaType } from '../OGSchemaType.type'; import { videoMovie } from './videoMovie'; export const videoTVShow: OGSchemaType = { name: 'TV show details', elements: [...videoMovie.elements], }; ================================================ FILE: src/tools/meta-tag-generator/og-schemas/website.ts ================================================ import type { OGSchemaType } from '../OGSchemaType.type'; const typeOptions = [ { label: 'Website', value: 'website' }, { label: 'Article', value: 'article' }, { label: 'Book', value: 'book' }, { label: 'Profile', value: 'profile' }, { type: 'group', label: 'Music', key: 'Music', children: [ { label: 'Song', value: 'music.song' }, { label: 'Music album', value: 'music.album' }, { label: 'Playlist', value: 'music.playlist' }, { label: 'Radio station', value: 'music.radio_station' }, ], }, { type: 'group', label: 'Video', key: 'Video', children: [ { label: 'Movie', value: 'video.movie' }, { label: 'Episode', value: 'video.episode' }, { label: 'TV show', value: 'video.tv_show' }, { label: 'Other video', value: 'video.other' }, ], }, ]; export const website: OGSchemaType = { name: 'General information', elements: [ { type: 'select', label: 'Page type', placeholder: 'Select the type of your website...', key: 'type', options: typeOptions, }, { type: 'input', label: 'Title', placeholder: 'Enter the title of your website...', key: 'title' }, { type: 'input', label: 'Description', placeholder: 'Enter the description of your website...', key: 'description', }, { type: 'input', label: 'Page URL', placeholder: 'Enter the url of your website...', key: 'url', }, ], }; ================================================ FILE: src/tools/mime-types/index.ts ================================================ import { World } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.mime-types.title'), path: '/mime-types', description: translate('tools.mime-types.description'), keywords: ['mime', 'types', 'extension', 'content', 'type'], component: () => import('./mime-types.vue'), icon: World, }); ================================================ FILE: src/tools/mime-types/mime-types.vue ================================================ ================================================ FILE: src/tools/numeronym-generator/index.ts ================================================ import { defineTool } from '../tool'; import n7mIcon from './n7m-icon.svg?component'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.numeronym-generator.title'), path: '/numeronym-generator', description: translate('tools.numeronym-generator.description'), keywords: ['numeronym', 'generator', 'abbreviation', 'i18n', 'a11y', 'l10n'], component: () => import('./numeronym-generator.vue'), icon: n7mIcon, createdAt: new Date('2023-11-05'), }); ================================================ FILE: src/tools/numeronym-generator/numeronym-generator.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - Numeronym generator', () => { test.beforeEach(async ({ page }) => { await page.goto('/numeronym-generator'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('Numeronym generator - IT Tools'); }); test('a numeronym is generated when a word is entered', async ({ page }) => { await page.getByTestId('word-input').fill('internationalization'); const numeronym = await page.getByTestId('numeronym').inputValue(); expect(numeronym).toEqual('i18n'); }); test('when a word has 3 letters or less, the numeronym is the word itself', async ({ page }) => { await page.getByTestId('word-input').fill('abc'); const numeronym = await page.getByTestId('numeronym').inputValue(); expect(numeronym).toEqual('abc'); }); }); ================================================ FILE: src/tools/numeronym-generator/numeronym-generator.service.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { generateNumeronym } from './numeronym-generator.service'; describe('numeronym-generator service', () => { describe('generateNumeronym', () => { it('a numeronym of a word is the first letter, the number of letters between the first and the last letter, and the last letter', () => { expect(generateNumeronym('internationalization')).toBe('i18n'); expect(generateNumeronym('accessibility')).toBe('a11y'); expect(generateNumeronym('localization')).toBe('l10n'); }); it('a numeronym of a word with 3 letters is the word itself', () => { expect(generateNumeronym('abc')).toBe('abc'); }); }); }); ================================================ FILE: src/tools/numeronym-generator/numeronym-generator.service.ts ================================================ export { generateNumeronym }; function generateNumeronym(word: string): string { const wordLength = word.length; if (wordLength <= 3) { return word; } return `${word.at(0)}${wordLength - 2}${word.at(-1)}`; } ================================================ FILE: src/tools/numeronym-generator/numeronym-generator.vue ================================================ ================================================ FILE: src/tools/otp-code-generator-and-validator/index.ts ================================================ import { DeviceMobile } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.otp-generator.title'), path: '/otp-generator', description: translate('tools.otp-generator.description'), keywords: [ 'otp', 'code', 'generator', 'validator', 'one', 'time', 'password', 'authentication', 'MFA', 'mobile', 'device', 'security', 'TOTP', 'Time', 'HMAC', ], component: () => import('./otp-code-generator-and-validator.vue'), icon: DeviceMobile, }); ================================================ FILE: src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue ================================================ ================================================ FILE: src/tools/otp-code-generator-and-validator/otp-code-generator.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - OTP code generator', () => { test.beforeEach(async ({ page }) => { await page.addInitScript(() => { Date.now = () => 1609477200000; // Jan 1, 2021 }); await page.goto('/otp-generator'); }); test('Has title', async ({ page }) => { await expect(page).toHaveTitle('OTP code generator - IT Tools'); }); test('Secret hexa value is computed from provided secret', async ({ page }) => { await page.getByPlaceholder('Paste your TOTP secret...').fill('ITTOOLS'); const secretInHex = await page.getByPlaceholder('Secret in hex will be displayed here').inputValue(); expect(secretInHex).toEqual('44e6e72e02'); }); test('OTP a generated from the provided secret', async ({ page }) => { await page.getByPlaceholder('Paste your TOTP secret...').fill('ITTOOLS'); const previousOtp = await page.getByTestId('previous-otp').innerText(); const currentOtp = await page.getByTestId('current-otp').innerText(); const nextOtp = await page.getByTestId('next-otp').innerText(); expect(previousOtp.trim()).toEqual('028034'); expect(currentOtp.trim()).toEqual('162195'); expect(nextOtp.trim()).toEqual('452815'); }); test('You can generate a new random secret', async ({ page }) => { const initialSecret = await page.getByPlaceholder('Paste your TOTP secret...').inputValue(); await page .locator('div') .filter({ hasText: /^Secret$/ }) .getByRole('button') .click(); const newSecret = await page.getByPlaceholder('Paste your TOTP secret...').inputValue(); expect(newSecret).not.toEqual(initialSecret); }); }); ================================================ FILE: src/tools/otp-code-generator-and-validator/otp.service.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { base32toHex, buildKeyUri, generateHOTP, generateTOTP, hexToBytes, verifyHOTP, verifyTOTP, } from './otp.service'; describe('otp functions', () => { describe('hexToBytes', () => { it('convert an hexstring to a byte array', () => { expect(hexToBytes('1')).to.eql([1]); expect(hexToBytes('ffffff')).to.eql([255, 255, 255]); expect(hexToBytes('000000000')).to.eql([0, 0, 0, 0, 0]); expect(hexToBytes('a3218bcef89')).to.eql([163, 33, 139, 206, 248, 9]); expect(hexToBytes('063679ca')).toEqual([6, 54, 121, 202]); expect(hexToBytes('0102030405060708090a0b0c0d0e0f')).toEqual([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]); }); }); describe('base32toHex', () => { it('convert a base32 to hex string', () => { expect(base32toHex('ABCDEF')).to.eql('00443205'); expect(base32toHex('7777')).to.eql('ffff0f'); expect(base32toHex('JBSWY3DPEHPK3PXP')).to.eql('48656c6c6f21deadbeef'); }); it('case does not matter', () => { expect(base32toHex('ABC')).to.eql(base32toHex('abc')); }); }); describe('generateHOTP', () => { it('generates HOTP codes for a given counter', () => { const key = 'JBSWY3DPEHPK3PXP'; const hotpCodes = ['282760', '996554', '602287', '143627', '960129']; for (const [counter, code] of hotpCodes.entries()) { expect(generateHOTP({ key, counter })).to.eql(code); } }); }); describe('verifyHOTP', () => { it('validate hotp for a given secret', () => { const key = 'JBSWY3DPEHPK3PXP'; const hotpCodes = ['282760', '996554', '602287', '143627', '960129']; for (const [counter, token] of hotpCodes.entries()) { expect(verifyHOTP({ token, key, counter, window: 0 })).to.eql(true); } expect(verifyHOTP({ token: 'INVALID', key })).to.eql(false); }); it('does not validate hotp out of sync', () => { const key = 'JBSWY3DPEHPK3PXP'; const token = '282760'; expect(verifyHOTP({ token, key, counter: 5, window: 2 })).to.eql(false); expect(verifyHOTP({ token, key, counter: 5, window: 5 })).to.eql(true); }); }); describe('generateTOTP', () => { it('generates TOTP codes', () => { const key = 'JBSWY3DPEHPK3PXP'; const codes = [ { token: '282760', now: 0 }, { token: '341128', now: 1465324707000 }, { token: '089029', now: 1365324707000 }, ]; for (const { token, now } of codes) { expect(generateTOTP({ key, now })).to.eql(token); } }); }); describe('verifyTOTP', () => { it('verify TOTP in sync codes against a key', () => { const key = 'JBSWY3DPEHPK3PXP'; const codes = [ { token: '282760', now: 0 }, { token: '341128', now: 1465324707000 }, { token: '089029', now: 1365324707000 }, ]; for (const { token, now } of codes) { expect(verifyTOTP({ key, token, now })).to.eql(true); } }); it('does not validate totp out of sync', () => { const key = 'JBSWY3DPEHPK3PXP'; const token = '635183'; const now = 1661266455000; expect(verifyTOTP({ key, token, now, window: 2 })).to.eql(true); expect(verifyTOTP({ key, token, now, window: 1 })).to.eql(false); }); }); describe('buildKeyUri', () => { it('build a key uri string', () => { expect(buildKeyUri({ secret: 'JBSWY3DPEHPK3PXP' })).to.eql( 'otpauth://totp/IT-Tools:demo-user?issuer=IT-Tools&secret=JBSWY3DPEHPK3PXP&algorithm=SHA1&digits=6&period=30', ); expect( buildKeyUri({ secret: 'JBSWY3DPEHPK3PXP', app: 'app-name', account: 'account', algorithm: 'algo', digits: 7, period: 10, }), ).to.eql( 'otpauth://totp/app-name:account?issuer=app-name&secret=JBSWY3DPEHPK3PXP&algorithm=algo&digits=7&period=10', ); }); }); }); ================================================ FILE: src/tools/otp-code-generator-and-validator/otp.service.ts ================================================ import { HmacSHA1, enc } from 'crypto-js'; import _ from 'lodash'; import { createToken } from '../token-generator/token-generator.service'; export { generateHOTP, hexToBytes, verifyHOTP, generateTOTP, verifyTOTP, buildKeyUri, generateSecret, base32toHex, getCounterFromTime, }; function hexToBytes(hex: string) { return (hex.match(/.{1,2}/g) ?? []).map(char => Number.parseInt(char, 16)); } function computeHMACSha1(message: string, key: string) { return HmacSHA1(enc.Hex.parse(message), enc.Hex.parse(base32toHex(key))).toString(enc.Hex); } function base32toHex(base32: string) { const base32Chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'; const bits = base32 .toUpperCase() // Since base 32, we coerce lowercase to uppercase .replace(/=+$/, '') .split('') .map(value => base32Chars.indexOf(value).toString(2).padStart(5, '0')) .join(''); const hex = (bits.match(/.{1,8}/g) ?? []).map(chunk => Number.parseInt(chunk, 2).toString(16).padStart(2, '0')).join(''); return hex; } function generateHOTP({ key, counter = 0 }: { key: string; counter?: number }) { // Compute HMACdigest const digest = computeHMACSha1(counter.toString(16).padStart(16, '0'), key); // Get byte array const bytes = hexToBytes(digest); // Truncate const offset = bytes[19] & 0xF; const v = ((bytes[offset] & 0x7F) << 24) | ((bytes[offset + 1] & 0xFF) << 16) | ((bytes[offset + 2] & 0xFF) << 8) | (bytes[offset + 3] & 0xFF); const code = String(v % 1000000).padStart(6, '0'); return code; } function verifyHOTP({ token, key, window = 0, counter = 0, }: { token: string key: string window?: number counter?: number }) { for (let i = counter - window; i <= counter + window; ++i) { if (generateHOTP({ key, counter: i }) === token) { return true; } } return false; } function getCounterFromTime({ now, timeStep }: { now: number; timeStep: number }) { return Math.floor(now / 1000 / timeStep); } function generateTOTP({ key, now = Date.now(), timeStep = 30 }: { key: string; now?: number; timeStep?: number }) { const counter = getCounterFromTime({ now, timeStep }); return generateHOTP({ key, counter }); } function verifyTOTP({ key, token, window = 0, now = Date.now(), timeStep = 30, }: { token: string key: string window?: number now?: number timeStep?: number }) { const counter = getCounterFromTime({ now, timeStep }); return verifyHOTP({ token, key, window, counter }); } function buildKeyUri({ secret, app = 'IT-Tools', account = 'demo-user', algorithm = 'SHA1', digits = 6, period = 30, }: { secret: string app?: string account?: string algorithm?: string digits?: number period?: number }) { const params = { issuer: app, secret, algorithm, digits, period, }; const paramsString = _(params) .map((value, key) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`) .join('&'); return `otpauth://totp/${encodeURIComponent(app)}:${encodeURIComponent(account)}?${paramsString}`; } function generateSecret() { return createToken({ length: 16, alphabet: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567' }); } ================================================ FILE: src/tools/otp-code-generator-and-validator/token-display.vue ================================================ ================================================ FILE: src/tools/password-strength-analyser/index.ts ================================================ import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; import PasswordIcon from '~icons/mdi/form-textbox-password'; export const tool = defineTool({ name: translate('tools.password-strength-analyser.title'), path: '/password-strength-analyser', description: translate('tools.password-strength-analyser.description'), keywords: ['password', 'strength', 'analyser', 'and', 'crack', 'time', 'estimation', 'brute', 'force', 'attack', 'entropy', 'cracking', 'hash', 'hashing', 'algorithm', 'algorithms', 'md5', 'sha1', 'sha256', 'sha512', 'bcrypt', 'scrypt', 'argon2', 'argon2id', 'argon2i', 'argon2d'], component: () => import('./password-strength-analyser.vue'), icon: PasswordIcon, createdAt: new Date('2023-06-24'), }); ================================================ FILE: src/tools/password-strength-analyser/password-strength-analyser.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - Password strength analyser', () => { test.beforeEach(async ({ page }) => { await page.goto('/password-strength-analyser'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('Password strength analyser - IT Tools'); }); test('Computes the brute force attack time of a password', async ({ page }) => { await page.getByTestId('password-input').fill('ABCabc123!@#'); const crackDuration = await page.getByTestId('crack-duration').textContent(); expect(crackDuration).toEqual('15,091 millennia, 3 centuries'); }); }); ================================================ FILE: src/tools/password-strength-analyser/password-strength-analyser.service.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { getCharsetLength } from './password-strength-analyser.service'; describe('password-strength-analyser-and-crack-time-estimation', () => { describe('getCharsetLength', () => { describe('computes the charset length of a given password', () => { it('the charset length is 26 when the password is only lowercase characters', () => { expect(getCharsetLength({ password: 'abcdefghijklmnopqrstuvwxyz' })).toBe(26); }); it('the charset length is 26 when the password is only uppercase characters', () => { expect(getCharsetLength({ password: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' })).toBe(26); }); it('the charset length is 10 when the password is only digits', () => { expect(getCharsetLength({ password: '0123456789' })).toBe(10); }); it('the charset length is 32 when the password is only special characters', () => { expect(getCharsetLength({ password: '-_(' })).toBe(32); }); it('the charset length is 0 when the password is empty', () => { expect(getCharsetLength({ password: '' })).toBe(0); }); it('the charset length is 36 when the password is lowercase characters and digits', () => { expect(getCharsetLength({ password: 'abcdefghijklmnopqrstuvwxyz0123456789' })).toBe(36); }); it('the charset length is 95 when the password is lowercase characters, uppercase characters, digits and special characters', () => { expect(getCharsetLength({ password: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_(' })).toBe(94); }); }); }); }); ================================================ FILE: src/tools/password-strength-analyser/password-strength-analyser.service.ts ================================================ import _ from 'lodash'; export { getPasswordCrackTimeEstimation, getCharsetLength }; function prettifyExponentialNotation(exponentialNotation: number) { const [base, exponent] = exponentialNotation.toString().split('e'); const baseAsNumber = Number.parseFloat(base); const prettyBase = baseAsNumber % 1 === 0 ? baseAsNumber.toLocaleString() : baseAsNumber.toFixed(2); return exponent ? `${prettyBase}e${exponent}` : prettyBase; } function getHumanFriendlyDuration({ seconds }: { seconds: number }) { if (seconds <= 0.001) { return 'Instantly'; } if (seconds <= 1) { return 'Less than a second'; } const timeUnits = [ { unit: 'millenium', secondsInUnit: 31536000000, format: prettifyExponentialNotation, plural: 'millennia' }, { unit: 'century', secondsInUnit: 3153600000, plural: 'centuries' }, { unit: 'decade', secondsInUnit: 315360000, plural: 'decades' }, { unit: 'year', secondsInUnit: 31536000, plural: 'years' }, { unit: 'month', secondsInUnit: 2592000, plural: 'months' }, { unit: 'week', secondsInUnit: 604800, plural: 'weeks' }, { unit: 'day', secondsInUnit: 86400, plural: 'days' }, { unit: 'hour', secondsInUnit: 3600, plural: 'hours' }, { unit: 'minute', secondsInUnit: 60, plural: 'minutes' }, { unit: 'second', secondsInUnit: 1, plural: 'seconds' }, ]; return _.chain(timeUnits) .map(({ unit, secondsInUnit, plural, format = _.identity }) => { const quantity = Math.floor(seconds / secondsInUnit); seconds %= secondsInUnit; if (quantity <= 0) { return undefined; } const formattedQuantity = format(quantity); return `${formattedQuantity} ${quantity > 1 ? plural : unit}`; }) .compact() .take(2) .join(', ') .value(); } function getPasswordCrackTimeEstimation({ password, guessesPerSecond = 1e9 }: { password: string; guessesPerSecond?: number }) { const charsetLength = getCharsetLength({ password }); const passwordLength = password.length; const entropy = password === '' ? 0 : Math.log2(charsetLength) * passwordLength; const secondsToCrack = 2 ** entropy / guessesPerSecond; const crackDurationFormatted = getHumanFriendlyDuration({ seconds: secondsToCrack }); const score = Math.min(entropy / 128, 1); return { entropy, charsetLength, passwordLength, crackDurationFormatted, secondsToCrack, score, }; } function getCharsetLength({ password }: { password: string }) { const hasLowercase = /[a-z]/.test(password); const hasUppercase = /[A-Z]/.test(password); const hasDigits = /\d/.test(password); const hasSpecialChars = /\W|_/.test(password); let charsetLength = 0; if (hasLowercase) { charsetLength += 26; } if (hasUppercase) { charsetLength += 26; } if (hasDigits) { charsetLength += 10; } if (hasSpecialChars) { charsetLength += 32; } return charsetLength; } ================================================ FILE: src/tools/password-strength-analyser/password-strength-analyser.vue ================================================ ================================================ FILE: src/tools/pdf-signature-checker/components/pdf-signature-details.vue ================================================ ================================================ FILE: src/tools/pdf-signature-checker/index.ts ================================================ import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; import FileCertIcon from '~icons/mdi/file-certificate-outline'; export const tool = defineTool({ name: translate('tools.pdf-signature-checker.title'), path: '/pdf-signature-checker', description: translate('tools.pdf-signature-checker.description'), keywords: ['pdf', 'signature', 'checker', 'verify', 'validate', 'sign'], component: () => import('./pdf-signature-checker.vue'), icon: FileCertIcon, createdAt: new Date('2023-12-09'), }); ================================================ FILE: src/tools/pdf-signature-checker/pdf-signature-checker.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - Pdf signature checker', () => { test.beforeEach(async ({ page }) => { await page.goto('/pdf-signature-checker'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('PDF signature checker - IT Tools'); }); }); ================================================ FILE: src/tools/pdf-signature-checker/pdf-signature-checker.types.ts ================================================ export interface SignatureInfo { verified: boolean authenticity: boolean integrity: boolean expired: boolean meta: { certs: { clientCertificate?: boolean issuedBy: { commonName: string organizationalUnitName?: string organizationName: string countryName?: string localityName?: string stateOrProvinceName?: string } issuedTo: { commonName: string serialNumber?: string organizationalUnitName?: string organizationName: string countryName?: string localityName?: string stateOrProvinceName?: string } validityPeriod: { notBefore: string notAfter: string } pemCertificate: string }[] signatureMeta: { reason: string contactInfo: string | null location: string name: string | null } } } ================================================ FILE: src/tools/pdf-signature-checker/pdf-signature-checker.vue ================================================ ================================================ FILE: src/tools/percentage-calculator/index.ts ================================================ import { Percentage } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.percentage-calculator.title'), path: '/percentage-calculator', description: translate('tools.percentage-calculator.description'), keywords: ['percentage', 'calculator', 'calculate', 'value', 'number', '%'], component: () => import('./percentage-calculator.vue'), icon: Percentage, createdAt: new Date('2023-06-18'), }); ================================================ FILE: src/tools/percentage-calculator/percentage-calculator.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - Percentage calculator', () => { test.beforeEach(async ({ page }) => { await page.goto('/percentage-calculator'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('Percentage calculator - IT Tools'); }); test('Correctly works out percentages', async ({ page }) => { await page.getByTestId('percentageX').locator('input').fill('123'); await page.getByTestId('percentageY').locator('input').fill('456'); await expect(page.getByTestId('percentageResult').locator('input')).toHaveValue('560.88'); await page.getByTestId('numberX').locator('input').fill('123'); await page.getByTestId('numberY').locator('input').fill('456'); await expect(page.getByTestId('numberResult').locator('input')).toHaveValue('26.973684210526315'); await page.getByTestId('numberFrom').locator('input').fill('123'); await page.getByTestId('numberTo').locator('input').fill('456'); await expect(page.getByTestId('percentageIncreaseDecrease').locator('input')).toHaveValue('270.7317073170732'); }); test('Displays empty results for incomplete input', async ({ page }) => { await page.getByTestId('percentageX').locator('input').fill('123'); await expect(page.getByTestId('percentageResult').locator('input')).toHaveValue(''); await page.getByTestId('numberY').locator('input').fill('456'); await expect(page.getByTestId('numberResult').locator('input')).toHaveValue(''); await page.getByTestId('numberFrom').locator('input').fill('123'); await expect(page.getByTestId('percentageIncreaseDecrease').locator('input')).toHaveValue(''); }); }); ================================================ FILE: src/tools/percentage-calculator/percentage-calculator.vue ================================================ ================================================ FILE: src/tools/phone-parser-and-formatter/index.ts ================================================ import { Phone } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.phone-parser-and-formatter.title'), path: '/phone-parser-and-formatter', description: translate('tools.phone-parser-and-formatter.description'), keywords: [ 'phone', 'parser', 'formatter', 'validate', 'format', 'number', 'telephone', 'mobile', 'cell', 'international', 'national', ], component: () => import('./phone-parser-and-formatter.vue'), icon: Phone, createdAt: new Date('2023-05-01'), }); ================================================ FILE: src/tools/phone-parser-and-formatter/phone-parser-and-formatter.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - Phone parser and formatter', () => { test.beforeEach(async ({ page }) => { await page.goto('/phone-parser-and-formatter'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('Phone parser and formatter - IT Tools'); }); }); ================================================ FILE: src/tools/phone-parser-and-formatter/phone-parser-and-formatter.models.ts ================================================ import type { CountryCode, NumberType } from 'libphonenumber-js/types'; import lookup from 'country-code-lookup'; export { formatTypeToHumanReadable, getFullCountryName, getDefaultCountryCode }; const typeToLabel: Record, string> = { MOBILE: 'Mobile', FIXED_LINE: 'Fixed line', FIXED_LINE_OR_MOBILE: 'Fixed line or mobile', PERSONAL_NUMBER: 'Personal number', PREMIUM_RATE: 'Premium rate', SHARED_COST: 'Shared cost', TOLL_FREE: 'Toll free', UAN: 'Universal access number', VOICEMAIL: 'Voicemail', VOIP: 'VoIP', PAGER: 'Pager', }; function formatTypeToHumanReadable(type: NumberType): string | undefined { if (!type) { return undefined; } return typeToLabel[type]; } function getFullCountryName(countryCode: string | undefined) { if (!countryCode) { return undefined; } return lookup.byIso(countryCode)?.country; } function getDefaultCountryCode({ locale = window.navigator.language, defaultCode = 'FR', }: { locale?: string; defaultCode?: CountryCode } = {}): CountryCode { const countryCode = locale.split('-')[1]?.toUpperCase(); if (!countryCode) { return defaultCode; } return (lookup.byIso(countryCode)?.iso2 ?? defaultCode) as CountryCode; } ================================================ FILE: src/tools/phone-parser-and-formatter/phone-parser-and-formatter.vue ================================================ ================================================ FILE: src/tools/qr-code-generator/index.ts ================================================ import { Qrcode } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.qrcode-generator.title'), path: '/qrcode-generator', description: translate('tools.qrcode-generator.description'), keywords: ['qr', 'code', 'generator', 'square', 'color', 'link', 'low', 'medium', 'quartile', 'high', 'transparent'], component: () => import('./qr-code-generator.vue'), icon: Qrcode, }); ================================================ FILE: src/tools/qr-code-generator/qr-code-generator.vue ================================================ ================================================ FILE: src/tools/qr-code-generator/useQRCode.ts ================================================ import { type MaybeRef, get } from '@vueuse/core'; import QRCode, { type QRCodeErrorCorrectionLevel, type QRCodeToDataURLOptions } from 'qrcode'; import { isRef, ref, watch } from 'vue'; export function useQRCode({ text, color: { background, foreground }, errorCorrectionLevel, options, }: { text: MaybeRef color: { foreground: MaybeRef; background: MaybeRef } errorCorrectionLevel?: MaybeRef options?: QRCodeToDataURLOptions }) { const qrcode = ref(''); watch( [text, background, foreground, errorCorrectionLevel].filter(isRef), async () => { if (get(text)) { qrcode.value = await QRCode.toDataURL(get(text).trim(), { color: { dark: get(foreground), light: get(background), ...options?.color, }, errorCorrectionLevel: get(errorCorrectionLevel) ?? 'M', ...options, }); } }, { immediate: true }, ); return { qrcode }; } ================================================ FILE: src/tools/random-port-generator/index.ts ================================================ import { Server } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.random-port-generator.title'), path: '/random-port-generator', description: translate('tools.random-port-generator.description'), keywords: ['system', 'port', 'lan', 'generator', 'random', 'development', 'computer'], component: () => import('./random-port-generator.vue'), icon: Server, }); ================================================ FILE: src/tools/random-port-generator/random-port-generator.model.ts ================================================ import { randIntFromInterval } from '@/utils/random'; export const generatePort = () => randIntFromInterval(1024, 65535); ================================================ FILE: src/tools/random-port-generator/random-port-generator.vue ================================================ ================================================ FILE: src/tools/regex-memo/index.ts ================================================ import { BrandJavascript } from '@vicons/tabler'; import { defineTool } from '../tool'; export const tool = defineTool({ name: 'Regex cheatsheet', path: '/regex-memo', description: 'Javascript Regex/Regular Expression cheatsheet', keywords: ['regex', 'regular', 'expression', 'javascript', 'memo', 'cheatsheet'], component: () => import('./regex-memo.vue'), icon: BrandJavascript, createdAt: new Date('2024-09-20'), }); ================================================ FILE: src/tools/regex-memo/regex-memo.content.md ================================================ ### Normal characters Expression | Description :--|:-- `.` or `[^\n\r]` | any character *excluding* a newline or carriage return `[A-Za-z]` | alphabet `[a-z]` | lowercase alphabet `[A-Z]` | uppercase alphabet `\d` or `[0-9]` | digit `\D` or `[^0-9]` | non-digit `_` | underscore `\w` or `[A-Za-z0-9_]` | alphabet, digit or underscore `\W` or `[^A-Za-z0-9_]` | inverse of `\w` `\S` | inverse of `\s` ### Whitespace characters Expression | Description :--|:-- ` ` | space `\t` | tab `\n` | newline `\r` | carriage return `\s` | space, tab, newline or carriage return ### Character set Expression | Description :--|:-- `[xyz]` | either `x`, `y` or `z` `[^xyz]` | neither `x`, `y` nor `z` `[1-3]` | either `1`, `2` or `3` `[^1-3]` | neither `1`, `2` nor `3` - Think of a character set as an `OR` operation on the single characters that are enclosed between the square brackets. - Use `^` after the opening `[` to “negate” the character set. - Within a character set, `.` means a literal period. ### Characters that require escaping #### Outside a character set Expression | Description :--|:-- `\.` | period `\^` | caret `\$` | dollar sign `\|` | pipe `\\` | back slash `\/` | forward slash `\(` | opening bracket `\)` | closing bracket `\[` | opening square bracket `\]` | closing square bracket `\{` | opening curly bracket `\}` | closing curly bracket #### Inside a character set Expression | Description :--|:-- `\\` | back slash `\]` | closing square bracket - A `^` must be escaped only if it occurs immediately after the opening `[` of the character set. - A `-` must be escaped only if it occurs between two alphabets or two digits. ### Quantifiers Expression | Description :--|:-- `{2}` | exactly 2 `{2,}` | at least 2 `{2,7}` | at least 2 but no more than 7 `*` | 0 or more `+` | 1 or more `?` | exactly 0 or 1 - The quantifier goes *after* the expression to be quantified. ### Boundaries Expression | Description :--|:-- `^` | start of string `$` | end of string `\b` | word boundary - How word boundary matching works: - At the beginning of the string if the first character is `\w`. - Between two adjacent characters within the string, if the first character is `\w` and the second character is `\W`. - At the end of the string if the last character is `\w`. ### Matching Expression | Description :--|:-- `foo\|bar` | match either `foo` or `bar` `foo(?=bar)` | match `foo` if it’s before `bar` `foo(?!bar)` | match `foo` if it’s *not* before `bar` `(?<=bar)foo` | match `foo` if it’s after `bar` `(? import { useThemeVars } from 'naive-ui'; import Memo from './regex-memo.content.md'; const themeVars = useThemeVars(); ================================================ FILE: src/tools/regex-tester/index.ts ================================================ import { Language } from '@vicons/tabler'; import { defineTool } from '../tool'; export const tool = defineTool({ name: 'Regex Tester', path: '/regex-tester', description: 'Test your regular expressions with sample text.', keywords: ['regex', 'tester', 'sample', 'expression'], component: () => import('./regex-tester.vue'), icon: Language, createdAt: new Date('2024-09-20'), }); ================================================ FILE: src/tools/regex-tester/regex-tester.service.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { matchRegex } from './regex-tester.service'; const regexesData = [ { regex: '', text: '', flags: '', result: [], }, { regex: '.*', text: '', flags: '', result: [], }, { regex: '', text: 'aaa', flags: '', result: [], }, { regex: 'a', text: 'baaa', flags: '', result: [ { captures: [], groups: [], index: 1, value: 'a', }, ], }, { regex: '(.)(?r)', text: 'azertyr', flags: 'g', result: [ { captures: [ { end: 3, name: '1', start: 2, value: 'e', }, { end: 4, name: '2', start: 3, value: 'r', }, ], groups: [ { end: 4, name: 'g', start: 3, value: 'r', }, ], index: 2, value: 'er', }, { captures: [ { end: 6, name: '1', start: 5, value: 'y', }, { end: 7, name: '2', start: 6, value: 'r', }, ], groups: [ { end: 7, name: 'g', start: 6, value: 'r', }, ], index: 5, value: 'yr', }, ], }, ]; describe('regex-tester', () => { for (const reg of regexesData) { const { regex, text, flags, result: expected_result } = reg; it(`Should matchRegex("${regex}","${text}","${flags}") return correct result`, async () => { const result = matchRegex(regex, text, `${flags}d`); expect(result).to.deep.equal(expected_result); }); } }); ================================================ FILE: src/tools/regex-tester/regex-tester.service.ts ================================================ interface RegExpGroupIndices { [name: string]: [number, number] } interface RegExpIndices extends Array<[number, number]> { groups: RegExpGroupIndices } interface RegExpExecArrayWithIndices extends RegExpExecArray { indices: RegExpIndices } interface GroupCapture { name: string value: string start: number end: number }; export function matchRegex(regex: string, text: string, flags: string) { // if (regex === '' || text === '') { // return []; // } let lastIndex = -1; const re = new RegExp(regex, flags); const results = []; let match = re.exec(text) as RegExpExecArrayWithIndices; while (match !== null) { if (re.lastIndex === lastIndex || match[0] === '') { break; } const indices = match.indices; const captures: Array = []; Object.entries(match).forEach(([captureName, captureValue]) => { if (captureName !== '0' && captureName.match(/\d+/)) { captures.push({ name: captureName, value: captureValue, start: indices[Number(captureName)][0], end: indices[Number(captureName)][1], }); } }); const groups: Array = []; Object.entries(match.groups || {}).forEach(([groupName, groupValue]) => { groups.push({ name: groupName, value: groupValue, start: indices.groups[groupName][0], end: indices.groups[groupName][1], }); }); results.push({ index: match.index, value: match[0], captures, groups, }); lastIndex = re.lastIndex; match = re.exec(text) as RegExpExecArrayWithIndices; } return results; } ================================================ FILE: src/tools/regex-tester/regex-tester.vue ================================================ ================================================ FILE: src/tools/roman-numeral-converter/index.ts ================================================ import { LetterX } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.roman-numeral-converter.title'), path: '/roman-numeral-converter', description: translate('tools.roman-numeral-converter.description'), keywords: ['roman', 'arabic', 'converter', 'X', 'I', 'V', 'L', 'C', 'D', 'M'], component: () => import('./roman-numeral-converter.vue'), icon: LetterX, }); ================================================ FILE: src/tools/roman-numeral-converter/roman-numeral-converter.service.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { arabicToRoman } from './roman-numeral-converter.service'; describe('roman-numeral-converter', () => { describe('arabicToRoman', () => { it('should convert numbers lower than 1 to empty string', () => { expect(arabicToRoman(-100)).toEqual(''); expect(arabicToRoman(-42)).toEqual(''); expect(arabicToRoman(-26)).toEqual(''); expect(arabicToRoman(-10)).toEqual(''); expect(arabicToRoman(0)).toEqual(''); expect(arabicToRoman(0.5)).toEqual(''); expect(arabicToRoman(0.9)).toEqual(''); }); it('should convert numbers greater than 3999 to empty string', () => { expect(arabicToRoman(3999.1)).toEqual(''); expect(arabicToRoman(4000)).toEqual(''); expect(arabicToRoman(10000)).toEqual(''); }); it('should convert floating points number to the lower integer in roman version', () => { expect(arabicToRoman(1.1)).toEqual('I'); expect(arabicToRoman(1.9)).toEqual('I'); expect(arabicToRoman(17.6)).toEqual('XVII'); expect(arabicToRoman(29.999)).toEqual('XXIX'); }); it('should convert positive integers to roman numbers', () => { expect(arabicToRoman(1)).toEqual('I'); expect(arabicToRoman(2)).toEqual('II'); expect(arabicToRoman(3)).toEqual('III'); expect(arabicToRoman(4)).toEqual('IV'); expect(arabicToRoman(5)).toEqual('V'); expect(arabicToRoman(6)).toEqual('VI'); expect(arabicToRoman(7)).toEqual('VII'); expect(arabicToRoman(8)).toEqual('VIII'); expect(arabicToRoman(9)).toEqual('IX'); expect(arabicToRoman(10)).toEqual('X'); expect(arabicToRoman(11)).toEqual('XI'); expect(arabicToRoman(12)).toEqual('XII'); expect(arabicToRoman(13)).toEqual('XIII'); expect(arabicToRoman(14)).toEqual('XIV'); expect(arabicToRoman(15)).toEqual('XV'); expect(arabicToRoman(16)).toEqual('XVI'); expect(arabicToRoman(17)).toEqual('XVII'); expect(arabicToRoman(18)).toEqual('XVIII'); expect(arabicToRoman(19)).toEqual('XIX'); expect(arabicToRoman(20)).toEqual('XX'); expect(arabicToRoman(21)).toEqual('XXI'); expect(arabicToRoman(24)).toEqual('XXIV'); expect(arabicToRoman(28)).toEqual('XXVIII'); expect(arabicToRoman(29)).toEqual('XXIX'); expect(arabicToRoman(30)).toEqual('XXX'); expect(arabicToRoman(40)).toEqual('XL'); expect(arabicToRoman(50)).toEqual('L'); expect(arabicToRoman(60)).toEqual('LX'); expect(arabicToRoman(70)).toEqual('LXX'); expect(arabicToRoman(80)).toEqual('LXXX'); expect(arabicToRoman(90)).toEqual('XC'); expect(arabicToRoman(100)).toEqual('C'); expect(arabicToRoman(200)).toEqual('CC'); expect(arabicToRoman(300)).toEqual('CCC'); expect(arabicToRoman(400)).toEqual('CD'); expect(arabicToRoman(500)).toEqual('D'); expect(arabicToRoman(600)).toEqual('DC'); expect(arabicToRoman(700)).toEqual('DCC'); expect(arabicToRoman(800)).toEqual('DCCC'); expect(arabicToRoman(900)).toEqual('CM'); expect(arabicToRoman(999)).toEqual('CMXCIX'); expect(arabicToRoman(1000)).toEqual('M'); expect(arabicToRoman(2000)).toEqual('MM'); }); }); }); ================================================ FILE: src/tools/roman-numeral-converter/roman-numeral-converter.service.ts ================================================ export const MIN_ARABIC_TO_ROMAN = 1; export const MAX_ARABIC_TO_ROMAN = 3999; export function arabicToRoman(num: number) { if (num < MIN_ARABIC_TO_ROMAN || num > MAX_ARABIC_TO_ROMAN) { return ''; } const lookup: { [key: string]: number } = { M: 1000, CM: 900, D: 500, CD: 400, C: 100, XC: 90, L: 50, XL: 40, X: 10, IX: 9, V: 5, IV: 4, I: 1, }; let roman = ''; for (const i in lookup) { while (num >= lookup[i]) { roman += i; num -= lookup[i]; } } return roman; } const ROMAN_NUMBER_REGEX = /^M{0,3}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$/; export function isValidRomanNumber(romanNumber: string) { return ROMAN_NUMBER_REGEX.test(romanNumber); } export function romanToArabic(s: string) { if (!isValidRomanNumber(s)) { return null; } const map: { [key: string]: number } = { I: 1, V: 5, X: 10, L: 50, C: 100, D: 500, M: 1000 }; return [...s].reduce((r, c, i, s) => (map[s[i + 1]] > map[c] ? r - map[c] : r + map[c]), 0); } ================================================ FILE: src/tools/roman-numeral-converter/roman-numeral-converter.vue ================================================ ================================================ FILE: src/tools/rsa-key-pair-generator/index.ts ================================================ import { Certificate } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.rsa-key-pair-generator.title'), path: '/rsa-key-pair-generator', description: translate('tools.rsa-key-pair-generator.description'), keywords: ['rsa', 'key', 'pair', 'generator', 'public', 'private', 'secret', 'ssh', 'pem'], component: () => import('./rsa-key-pair-generator.vue'), icon: Certificate, }); ================================================ FILE: src/tools/rsa-key-pair-generator/rsa-key-pair-generator.service.ts ================================================ import { pki } from 'node-forge'; import workerScript from 'node-forge/dist/prime.worker.min?url'; export { generateKeyPair }; function generateRawPairs({ bits = 2048 }) { return new Promise((resolve, reject) => pki.rsa.generateKeyPair({ bits, workerScript }, (err, keyPair) => { if (err) { reject(err); return; } resolve(keyPair); }), ); } async function generateKeyPair(config: { bits?: number } = {}) { const { privateKey, publicKey } = await generateRawPairs(config); return { publicKeyPem: pki.publicKeyToPem(publicKey), privateKeyPem: pki.privateKeyToPem(privateKey), }; } ================================================ FILE: src/tools/rsa-key-pair-generator/rsa-key-pair-generator.vue ================================================ ================================================ FILE: src/tools/safelink-decoder/index.ts ================================================ import { Mailbox } from '@vicons/tabler'; import { defineTool } from '../tool'; export const tool = defineTool({ name: 'Outlook Safelink decoder', path: '/safelink-decoder', description: 'Decode Outlook SafeLink links', keywords: ['outlook', 'safelink', 'decoder'], component: () => import('./safelink-decoder.vue'), icon: Mailbox, createdAt: new Date('2024-03-11'), }); ================================================ FILE: src/tools/safelink-decoder/safelink-decoder.service.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { decodeSafeLinksURL } from './safelink-decoder.service'; describe('safelink-decoder', () => { describe('decodeSafeLinksURL', () => { describe('decode outlook safelink urls', () => { it('should decode basic safelink urls', () => { expect(decodeSafeLinksURL('https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Dsafelink%26rlz%3D1&data=05%7C02%7C%7C1ed07253975b46da1d1508dc3443752a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638442711583216725%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=%2BQY0HBnnxfI7pzZoxzlhZdDvYu80LwQB0zUUjrffVnk%3D&reserved=0')) .toBe('https://www.google.com/search?q=safelink&rlz=1'); }); it('should decode encoded safelink urls', () => { expect(decodeSafeLinksURL('https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Dsafelink%26rlz%3D1&data=05%7C02%7C%7C1ed07253975b46da1d1508dc3443752a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638442711583216725%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=%2BQY0HBnnxfI7pzZoxzlhZdDvYu80LwQB0zUUjrffVnk%3D&reserved=0')) .toBe('https://www.google.com/search?q=safelink&rlz=1'); }); it('throw on not outlook safelink urls', () => { expect(() => decodeSafeLinksURL('https://google.com')) .toThrow('Invalid SafeLinks URL provided'); }); }); }); }); ================================================ FILE: src/tools/safelink-decoder/safelink-decoder.service.ts ================================================ export function decodeSafeLinksURL(safeLinksUrl: string) { if (!safeLinksUrl.match(/\.safelinks\.protection\.outlook\.com/)) { throw new Error('Invalid SafeLinks URL provided'); } return new URL(safeLinksUrl).searchParams.get('url'); } ================================================ FILE: src/tools/safelink-decoder/safelink-decoder.vue ================================================ ================================================ FILE: src/tools/slugify-string/index.ts ================================================ import { AbcRound } from '@vicons/material'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.slugify-string.title'), path: '/slugify-string', description: translate('tools.slugify-string.description'), keywords: ['slugify', 'string', 'escape', 'emoji', 'special', 'character', 'space', 'trim'], component: () => import('./slugify-string.vue'), icon: AbcRound, }); ================================================ FILE: src/tools/slugify-string/slugify-string.vue ================================================ ================================================ FILE: src/tools/sql-prettify/index.ts ================================================ import { Database } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.sql-prettify.title'), path: '/sql-prettify', description: translate('tools.sql-prettify.description'), keywords: [ 'sql', 'prettify', 'beautify', 'GCP BigQuery', 'IBM DB2', 'Apache Hive', 'MariaDB', 'MySQL', 'Couchbase N1QL', 'Oracle PL/SQL', 'PostgreSQL', 'Amazon Redshift', 'Spark', 'SQL Server Transact-SQL', ], component: () => import('./sql-prettify.vue'), icon: Database, }); ================================================ FILE: src/tools/sql-prettify/sql-prettify.vue ================================================ ================================================ FILE: src/tools/string-obfuscator/index.ts ================================================ import { EyeOff } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.string-obfuscator.title'), path: '/string-obfuscator', description: translate('tools.string-obfuscator.description'), keywords: ['string', 'obfuscator', 'secret', 'token', 'hide', 'obscure', 'mask', 'masking'], component: () => import('./string-obfuscator.vue'), icon: EyeOff, createdAt: new Date('2023-08-16'), }); ================================================ FILE: src/tools/string-obfuscator/string-obfuscator.model.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { obfuscateString } from './string-obfuscator.model'; describe('string-obfuscator model', () => { describe('obfuscateString', () => { it('the characters in the middle of the string are replaced by the replacement character', () => { expect(obfuscateString('1234567890')).toBe('1234******'); expect(obfuscateString('1234567890', { replacementChar: 'x' })).toBe('1234xxxxxx'); expect(obfuscateString('1234567890', { keepFirst: 5 })).toBe('12345*****'); expect(obfuscateString('1234567890', { keepFirst: 0, keepLast: 5 })).toBe('*****67890'); expect(obfuscateString('1234567890', { keepFirst: 5, keepLast: 5 })).toBe('1234567890'); expect(obfuscateString('1234567890', { keepFirst: 2, keepLast: 2, replacementChar: 'x' })).toBe('12xxxxxx90'); }); it('by default, the spaces are kept, they can be removed with the keepSpace option', () => { expect(obfuscateString('12345 67890')).toBe('1234* *****'); expect(obfuscateString('12345 67890', { keepSpace: false })).toBe('1234*******'); }); }); }); ================================================ FILE: src/tools/string-obfuscator/string-obfuscator.model.ts ================================================ import { get } from '@vueuse/core'; import { type MaybeRef, computed } from 'vue'; export { obfuscateString, useObfuscateString }; function obfuscateString( str: string, { replacementChar = '*', keepFirst = 4, keepLast = 0, keepSpace = true }: { replacementChar?: string; keepFirst?: number; keepLast?: number; keepSpace?: boolean } = {}): string { return str .split('') .map((char, index, array) => { if (keepSpace && char === ' ') { return char; } return (index < keepFirst || index >= array.length - keepLast) ? char : replacementChar; }) .join(''); } function useObfuscateString( str: MaybeRef, config: { replacementChar?: MaybeRef; keepFirst?: MaybeRef; keepLast?: MaybeRef; keepSpace?: MaybeRef } = {}, ) { return computed(() => obfuscateString( get(str), { replacementChar: get(config.replacementChar), keepFirst: get(config.keepFirst), keepLast: get(config.keepLast), keepSpace: get(config.keepSpace), }, )); } ================================================ FILE: src/tools/string-obfuscator/string-obfuscator.vue ================================================ ================================================ FILE: src/tools/svg-placeholder-generator/index.ts ================================================ import { ImageOutlined } from '@vicons/material'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.svg-placeholder-generator.title'), path: '/svg-placeholder-generator', description: translate('tools.svg-placeholder-generator.description'), keywords: ['svg', 'placeholder', 'generator', 'image', 'size', 'mockup'], component: () => import('./svg-placeholder-generator.vue'), icon: ImageOutlined, }); ================================================ FILE: src/tools/svg-placeholder-generator/svg-placeholder-generator.vue ================================================ ================================================ FILE: src/tools/temperature-converter/index.ts ================================================ import { Temperature } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.temperature-converter.title'), path: '/temperature-converter', description: translate('tools.temperature-converter.description'), keywords: [ 'temperature', 'converter', 'degree', 'Kelvin', 'Celsius', 'Fahrenheit', 'Rankine', 'Delisle', 'Newton', 'Réaumur', 'Rømer', ], component: () => import('./temperature-converter.vue'), icon: Temperature, }); ================================================ FILE: src/tools/temperature-converter/temperature-converter.models.ts ================================================ export const convertCelsiusToKelvin = (temperature: number) => temperature + 273.15; export const convertKelvinToCelsius = (temperature: number) => temperature - 273.15; export const convertFahrenheitToKelvin = (temperature: number) => (temperature + 459.67) * (5 / 9); export const convertKelvinToFahrenheit = (temperature: number) => temperature * (9 / 5) - 459.67; export const convertRankineToKelvin = (temperature: number) => temperature * (5 / 9); export const convertKelvinToRankine = (temperature: number) => temperature * (9 / 5); export const convertDelisleToKelvin = (temperature: number) => 373.15 - (2 / 3) * temperature; export const convertKelvinToDelisle = (temperature: number) => (3 / 2) * (373.15 - temperature); export const convertNewtonToKelvin = (temperature: number) => temperature * (100 / 33) + 273.15; export const convertKelvinToNewton = (temperature: number) => (temperature - 273.15) * (33 / 100); export const convertReaumurToKelvin = (temperature: number) => temperature * (5 / 4) + 273.15; export const convertKelvinToReaumur = (temperature: number) => (temperature - 273.15) * (4 / 5); export const convertRomerToKelvin = (temperature: number) => (temperature - 7.5) * (40 / 21) + 273.15; export const convertKelvinToRomer = (temperature: number) => (temperature - 273.15) * (21 / 40) + 7.5; ================================================ FILE: src/tools/temperature-converter/temperature-converter.vue ================================================ ================================================ FILE: src/tools/text-diff/index.ts ================================================ import { FileDiff } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.text-diff.title'), path: '/text-diff', description: translate('tools.text-diff.description'), keywords: ['text', 'diff', 'compare', 'string', 'text diff', 'code'], component: () => import('./text-diff.vue'), icon: FileDiff, createdAt: new Date('2023-08-16'), }); ================================================ FILE: src/tools/text-diff/text-diff.vue ================================================ ================================================ FILE: src/tools/text-statistics/index.ts ================================================ import { FileText } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.text-statistics.title'), path: '/text-statistics', description: translate('tools.text-statistics.description'), keywords: ['text', 'statistics', 'length', 'characters', 'count', 'size', 'bytes'], component: () => import('./text-statistics.vue'), icon: FileText, redirectFrom: ['/text-stats'], }); ================================================ FILE: src/tools/text-statistics/text-statistics.service.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { getStringSizeInBytes } from './text-statistics.service'; describe('text-statistics', () => { describe('getStringSizeInBytes', () => { it('should return the size of a string in bytes', () => { expect(getStringSizeInBytes('')).toEqual(0); expect(getStringSizeInBytes('a')).toEqual(1); expect(getStringSizeInBytes('aa')).toEqual(2); expect(getStringSizeInBytes('😀')).toEqual(4); expect(getStringSizeInBytes('aaaaaaaaaa')).toEqual(10); }); }); }); ================================================ FILE: src/tools/text-statistics/text-statistics.service.ts ================================================ export function getStringSizeInBytes(text: string) { return new TextEncoder().encode(text).buffer.byteLength; } ================================================ FILE: src/tools/text-statistics/text-statistics.vue ================================================ ================================================ FILE: src/tools/text-to-binary/index.ts ================================================ import { Binary } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.text-to-binary.title'), path: '/text-to-binary', description: translate('tools.text-to-binary.description'), keywords: ['text', 'to', 'binary', 'converter', 'encode', 'decode', 'ascii'], component: () => import('./text-to-binary.vue'), icon: Binary, createdAt: new Date('2023-10-15'), }); ================================================ FILE: src/tools/text-to-binary/text-to-binary.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - Text to ASCII binary', () => { test.beforeEach(async ({ page }) => { await page.goto('/text-to-binary'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('Text to ASCII binary - IT Tools'); }); test('Text to binary conversion', async ({ page }) => { await page.getByTestId('text-to-binary-input').fill('it-tools'); const binary = await page.getByTestId('text-to-binary-output').inputValue(); expect(binary).toEqual('01101001 01110100 00101101 01110100 01101111 01101111 01101100 01110011'); }); test('Binary to text conversion', async ({ page }) => { await page.getByTestId('binary-to-text-input').fill('01101001 01110100 00101101 01110100 01101111 01101111 01101100 01110011'); const text = await page.getByTestId('binary-to-text-output').inputValue(); expect(text).toEqual('it-tools'); }); }); ================================================ FILE: src/tools/text-to-binary/text-to-binary.models.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { convertAsciiBinaryToText, convertTextToAsciiBinary } from './text-to-binary.models'; describe('text-to-binary', () => { describe('convertTextToAsciiBinary', () => { it('a text string is converted to its ascii binary representation', () => { expect(convertTextToAsciiBinary('A')).toBe('01000001'); expect(convertTextToAsciiBinary('hello')).toBe('01101000 01100101 01101100 01101100 01101111'); expect(convertTextToAsciiBinary('')).toBe(''); }); it('the separator between octets can be changed', () => { expect(convertTextToAsciiBinary('hello', { separator: '' })).toBe('0110100001100101011011000110110001101111'); }); }); describe('convertAsciiBinaryToText', () => { it('an ascii binary string is converted to its text representation', () => { expect(convertAsciiBinaryToText('01101000 01100101 01101100 01101100 01101111')).toBe('hello'); expect(convertAsciiBinaryToText('01000001')).toBe('A'); expect(convertTextToAsciiBinary('')).toBe(''); }); it('the given binary string is cleaned before conversion', () => { expect(convertAsciiBinaryToText(' 01000 001garbage')).toBe('A'); }); it('throws an error if the given binary string as no complete octet', () => { expect(() => convertAsciiBinaryToText('010000011')).toThrow('Invalid binary string'); expect(() => convertAsciiBinaryToText('1')).toThrow('Invalid binary string'); }); }); }); ================================================ FILE: src/tools/text-to-binary/text-to-binary.models.ts ================================================ export { convertTextToAsciiBinary, convertAsciiBinaryToText }; function convertTextToAsciiBinary(text: string, { separator = ' ' }: { separator?: string } = {}): string { return text .split('') .map(char => char.charCodeAt(0).toString(2).padStart(8, '0')) .join(separator); } function convertAsciiBinaryToText(binary: string): string { const cleanBinary = binary.replace(/[^01]/g, ''); if (cleanBinary.length % 8) { throw new Error('Invalid binary string'); } return cleanBinary .split(/(\d{8})/) .filter(Boolean) .map(binary => String.fromCharCode(Number.parseInt(binary, 2))) .join(''); } ================================================ FILE: src/tools/text-to-binary/text-to-binary.vue ================================================ ================================================ FILE: src/tools/text-to-nato-alphabet/index.ts ================================================ import { Speakerphone } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.text-to-nato-alphabet.title'), path: '/text-to-nato-alphabet', description: translate('tools.text-to-nato-alphabet.description'), keywords: ['string', 'nato', 'alphabet', 'phonetic', 'oral', 'transmission'], component: () => import('./text-to-nato-alphabet.vue'), icon: Speakerphone, }); ================================================ FILE: src/tools/text-to-nato-alphabet/text-to-nato-alphabet.constants.ts ================================================ export const natoAlphabet = [ 'Alpha', 'Bravo', 'Charlie', 'Delta', 'Echo', 'Foxtrot', 'Golf', 'Hotel', 'India', 'Juliet', 'Kilo', 'Lima', 'Mike', 'November', 'Oscar', 'Papa', 'Quebec', 'Romeo', 'Sierra', 'Tango', 'Uniform', 'Victor', 'Whiskey', 'X-ray', 'Yankee', 'Zulu', ]; ================================================ FILE: src/tools/text-to-nato-alphabet/text-to-nato-alphabet.service.ts ================================================ import { natoAlphabet } from './text-to-nato-alphabet.constants'; export { textToNatoAlphabet }; function getLetterPositionInAlphabet({ letter }: { letter: string }) { return letter.toLowerCase().charCodeAt(0) - 'a'.charCodeAt(0); } function textToNatoAlphabet({ text }: { text: string }) { return text .split('') .map((character) => { const alphabetIndex = getLetterPositionInAlphabet({ letter: character }); const natoWord = natoAlphabet[alphabetIndex]; return natoWord ?? character; }) .join(' '); } ================================================ FILE: src/tools/text-to-nato-alphabet/text-to-nato-alphabet.vue ================================================ ================================================ FILE: src/tools/text-to-unicode/index.ts ================================================ import { TextWrap } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.text-to-unicode.title'), path: '/text-to-unicode', description: translate('tools.text-to-unicode.description'), keywords: ['text', 'to', 'unicode'], component: () => import('./text-to-unicode.vue'), icon: TextWrap, createdAt: new Date('2024-01-31'), }); ================================================ FILE: src/tools/text-to-unicode/text-to-unicode.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - Text to Unicode', () => { test.beforeEach(async ({ page }) => { await page.goto('/text-to-unicode'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('Text to Unicode - IT Tools'); }); test('Text to unicode conversion', async ({ page }) => { await page.getByTestId('text-to-unicode-input').fill('it-tools'); const unicode = await page.getByTestId('text-to-unicode-output').inputValue(); expect(unicode).toEqual('it-tools'); }); test('Unicode to text conversion', async ({ page }) => { await page.getByTestId('unicode-to-text-input').fill('it-tools'); const text = await page.getByTestId('unicode-to-text-output').inputValue(); expect(text).toEqual('it-tools'); }); }); ================================================ FILE: src/tools/text-to-unicode/text-to-unicode.service.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { convertTextToUnicode, convertUnicodeToText } from './text-to-unicode.service'; describe('text-to-unicode', () => { describe('convertTextToUnicode', () => { it('a text string is converted to unicode representation', () => { expect(convertTextToUnicode('A')).toBe('A'); expect(convertTextToUnicode('linke the string convert to unicode')).toBe('linke the string convert to unicode'); expect(convertTextToUnicode('')).toBe(''); }); }); describe('convertUnicodeToText', () => { it('an unicode string is converted to its text representation', () => { expect(convertUnicodeToText('A')).toBe('A'); expect(convertUnicodeToText('linke the string convert to unicode')).toBe('linke the string convert to unicode'); expect(convertUnicodeToText('')).toBe(''); }); }); }); ================================================ FILE: src/tools/text-to-unicode/text-to-unicode.service.ts ================================================ function convertTextToUnicode(text: string): string { return text.split('').map(value => `&#${value.charCodeAt(0)};`).join(''); } function convertUnicodeToText(unicodeStr: string): string { return unicodeStr.replace(/&#(\d+);/g, (match, dec) => String.fromCharCode(dec)); } export { convertTextToUnicode, convertUnicodeToText }; ================================================ FILE: src/tools/text-to-unicode/text-to-unicode.vue ================================================ ================================================ FILE: src/tools/token-generator/index.ts ================================================ import { ArrowsShuffle } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.token-generator.title'), path: '/token-generator', description: translate('tools.token-generator.description'), keywords: ['token', 'random', 'string', 'alphanumeric', 'symbols', 'number', 'letters', 'lowercase', 'uppercase', 'password'], component: () => import('./token-generator.tool.vue'), icon: ArrowsShuffle, }); ================================================ FILE: src/tools/token-generator/token-generator.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - Token generator', () => { test.beforeEach(async ({ page }) => { await page.goto('/token-generator'); }); test('Has title', async ({ page }) => { await expect(page).toHaveTitle('Token generator - IT Tools'); }); test('New token on refresh', async ({ page }) => { const initialToken = await page.getByPlaceholder('The token...').inputValue(); await page.getByRole('button', { name: 'Refresh' }).click(); const newToken = await page.getByPlaceholder('The token...').inputValue(); expect(newToken).not.toEqual(initialToken); }); }); ================================================ FILE: src/tools/token-generator/token-generator.service.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { createToken } from './token-generator.service'; describe('token-generator', () => { describe('createToken', () => { it('should generate an empty string when all params are false', () => { const token = createToken({ withLowercase: false, withUppercase: false, withNumbers: false, withSymbols: false, length: 10, }); expect(token).toHaveLength(0); }); it('should generate a random string with the specified length', () => { const createTokenWithLength = (length: number) => createToken({ withLowercase: true, withUppercase: true, withNumbers: true, withSymbols: true, length, }); expect(createTokenWithLength(5)).toHaveLength(5); expect(createTokenWithLength(10)).toHaveLength(10); expect(createTokenWithLength(100)).toHaveLength(100); }); it('should generate a random string with just uppercase if only withUppercase is set', () => { const token = createToken({ withLowercase: false, withUppercase: true, withNumbers: false, withSymbols: false, length: 256, }); expect(token).toHaveLength(256); expect(token).toMatch(/^[A-Z]+$/); }); it('should generate a random string with just lowercase if only withLowercase is set', () => { const token = createToken({ withLowercase: true, withUppercase: false, withNumbers: false, withSymbols: false, length: 256, }); expect(token).toHaveLength(256); expect(token).toMatch(/^[a-z]+$/); }); it('should generate a random string with just numbers if only withNumbers is set', () => { const token = createToken({ withLowercase: false, withUppercase: false, withNumbers: true, withSymbols: false, length: 256, }); expect(token).toHaveLength(256); expect(token).toMatch(/^[0-9]+$/); }); it('should generate a random string with just symbols if only withSymbols is set', () => { const token = createToken({ withLowercase: false, withUppercase: false, withNumbers: false, withSymbols: true, length: 256, }); expect(token).toHaveLength(256); expect(token).toMatch(/^[.,;:!?./\-"'#{([-|\\@)\]=}*+]+$/); }); it('should generate a random string with just letters (case incensitive) with withLowercase and withUppercase', () => { const token = createToken({ withLowercase: true, withUppercase: true, withNumbers: false, withSymbols: false, length: 256, }); expect(token).toHaveLength(256); expect(token).toMatch(/^[a-zA-Z]+$/); }); }); }); ================================================ FILE: src/tools/token-generator/token-generator.service.ts ================================================ import { shuffleString } from '@/utils/random'; export function createToken({ withUppercase = true, withLowercase = true, withNumbers = true, withSymbols = false, length = 64, alphabet, }: { withUppercase?: boolean withLowercase?: boolean withNumbers?: boolean withSymbols?: boolean length?: number alphabet?: string }) { const allAlphabet = alphabet ?? [ withUppercase ? 'ABCDEFGHIJKLMOPQRSTUVWXYZ' : '', withLowercase ? 'abcdefghijklmopqrstuvwxyz' : '', withNumbers ? '0123456789' : '', withSymbols ? '.,;:!?./-"\'#{([-|\\@)]=}*+' : '', ].join(''); return shuffleString(allAlphabet.repeat(length)).substring(0, length); } ================================================ FILE: src/tools/token-generator/token-generator.tool.vue ================================================ ================================================ FILE: src/tools/toml-to-json/index.ts ================================================ import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; import BracketIcon from '~icons/mdi/code-brackets'; export const tool = defineTool({ name: translate('tools.toml-to-json.title'), path: '/toml-to-json', description: translate('tools.toml-to-json.description'), keywords: ['toml', 'json', 'convert', 'online', 'transform', 'parser'], component: () => import('./toml-to-json.vue'), icon: BracketIcon, createdAt: new Date('2023-06-23'), }); ================================================ FILE: src/tools/toml-to-json/toml-to-json.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - TOML to JSON', () => { test.beforeEach(async ({ page }) => { await page.goto('/toml-to-json'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('TOML to JSON - IT Tools'); }); test('TOML is parsed and outputs clean JSON', async ({ page }) => { await page.getByTestId('input').fill(` foo = "bar" # This is a comment [list] name = "item" [list.another] key = "value" `.trim()); const generatedJson = await page.getByTestId('area-content').innerText(); expect(generatedJson.trim()).toEqual( ` { "foo": "bar", "list": { "name": "item", "another": { "key": "value" } } } `.trim(), ); }); }); ================================================ FILE: src/tools/toml-to-json/toml-to-json.vue ================================================ ================================================ FILE: src/tools/toml-to-json/toml.services.ts ================================================ import { parse as parseToml } from 'iarna-toml-esm'; import { isNotThrowing } from '../../utils/boolean'; export { isValidToml }; function isValidToml(toml: string): boolean { return isNotThrowing(() => parseToml(toml)); } ================================================ FILE: src/tools/toml-to-yaml/index.ts ================================================ import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; import BracketIcon from '~icons/mdi/code-brackets'; export const tool = defineTool({ name: translate('tools.toml-to-yaml.title'), path: '/toml-to-yaml', description: translate('tools.toml-to-yaml.description'), keywords: ['toml', 'yaml', 'convert', 'online', 'transform', 'parse'], component: () => import('./toml-to-yaml.vue'), icon: BracketIcon, createdAt: new Date('2023-06-23'), }); ================================================ FILE: src/tools/toml-to-yaml/toml-to-yaml.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - TOML to YAML', () => { test.beforeEach(async ({ page }) => { await page.goto('/toml-to-yaml'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('TOML to YAML - IT Tools'); }); test('TOML is parsed and outputs clean YAML', async ({ page }) => { await page.getByTestId('input').fill(` foo = "bar" # This is a comment [list] name = "item" [list.another] key = "value" `.trim()); const generatedJson = await page.getByTestId('area-content').innerText(); expect(generatedJson.trim()).toEqual( ` foo: bar list: name: item another: key: value `.trim(), ); }); }); ================================================ FILE: src/tools/toml-to-yaml/toml-to-yaml.vue ================================================ ================================================ FILE: src/tools/tool.ts ================================================ import { isAfter, subWeeks } from 'date-fns'; import type { Tool } from './tools.types'; type WithOptional = Omit & Partial>; export function defineTool(tool: WithOptional) { const isNew = tool.createdAt ? isAfter(tool.createdAt, subWeeks(new Date(), 2)) : false; return { isNew, ...tool, }; } ================================================ FILE: src/tools/tools.store.ts ================================================ import { type MaybeRef, get, useStorage } from '@vueuse/core'; import { defineStore } from 'pinia'; import type { Ref } from 'vue'; import _ from 'lodash'; import type { Tool, ToolCategory, ToolWithCategory } from './tools.types'; import { toolsWithCategory } from './index'; export const useToolStore = defineStore('tools', () => { const favoriteToolsName = useStorage('favoriteToolsName', []) as Ref; const { t } = useI18n(); const tools = computed(() => toolsWithCategory.map((tool) => { const toolI18nKey = tool.path.replace(/\//g, ''); return ({ ...tool, path: tool.path, name: t(`tools.${toolI18nKey}.title`, tool.name), description: t(`tools.${toolI18nKey}.description`, tool.description), category: t(`tools.categories.${tool.category.toLowerCase()}`, tool.category), }); })); const toolsByCategory = computed(() => { return _.chain(tools.value) .groupBy('category') .map((components, name, path) => ({ name, path, components, })) .value(); }); const favoriteTools = computed(() => { return favoriteToolsName.value .map(favoriteName => tools.value.find(({ name, path }) => name === favoriteName || path === favoriteName)) .filter(Boolean) as ToolWithCategory[]; // cast because .filter(Boolean) does not remove undefined from type }); return { tools, favoriteTools, toolsByCategory, newTools: computed(() => tools.value.filter(({ isNew }) => isNew)), addToolToFavorites({ tool }: { tool: MaybeRef }) { const toolPath = get(tool).path; if (toolPath) { favoriteToolsName.value.push(toolPath); } }, removeToolFromFavorites({ tool }: { tool: MaybeRef }) { favoriteToolsName.value = favoriteToolsName.value.filter(name => get(tool).name !== name && get(tool).path !== name); }, isToolFavorite({ tool }: { tool: MaybeRef }) { return favoriteToolsName.value.includes(get(tool).name) || favoriteToolsName.value.includes(get(tool).path); }, updateFavoriteTools(newOrder: ToolWithCategory[]) { favoriteToolsName.value = newOrder.map(tool => tool.path); }, }; }); ================================================ FILE: src/tools/tools.types.ts ================================================ import type { Component } from 'vue'; export interface Tool { name: string path: string description: string keywords: string[] component: () => Promise icon: Component redirectFrom?: string[] isNew: boolean createdAt?: Date } export interface ToolCategory { name: string components: Tool[] } export type ToolWithCategory = Tool & { category: string }; ================================================ FILE: src/tools/ulid-generator/index.ts ================================================ import { SortDescendingNumbers } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.ulid-generator.title'), path: '/ulid-generator', description: translate('tools.ulid-generator.description'), keywords: ['ulid', 'generator', 'random', 'id', 'alphanumeric', 'identity', 'token', 'string', 'identifier', 'unique'], component: () => import('./ulid-generator.vue'), icon: SortDescendingNumbers, createdAt: new Date('2023-09-11'), }); ================================================ FILE: src/tools/ulid-generator/ulid-generator.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; const ULID_REGEX = /[0-9A-Z]{26}/; test.describe('Tool - ULID generator', () => { test.beforeEach(async ({ page }) => { await page.goto('/ulid-generator'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('ULID generator - IT Tools'); }); test('the refresh button generates a new ulid', async ({ page }) => { const ulid = await page.getByTestId('ulids').textContent(); expect(ulid?.trim()).toMatch(ULID_REGEX); await page.getByTestId('refresh').click(); const newUlid = await page.getByTestId('ulids').textContent(); expect(ulid?.trim()).not.toBe(newUlid?.trim()); expect(newUlid?.trim()).toMatch(ULID_REGEX); }); }); ================================================ FILE: src/tools/ulid-generator/ulid-generator.vue ================================================ ================================================ FILE: src/tools/url-encoder/index.ts ================================================ import { Link } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.url-encoder.title'), path: '/url-encoder', description: translate('tools.url-encoder.description'), keywords: ['url', 'encode', 'decode', 'percent', '%20', 'format'], component: () => import('./url-encoder.vue'), icon: Link, }); ================================================ FILE: src/tools/url-encoder/url-encoder.vue ================================================ ================================================ FILE: src/tools/url-parser/index.ts ================================================ import { Unlink } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.url-parser.title'), path: '/url-parser', description: translate('tools.url-parser.description'), keywords: ['url', 'parser', 'protocol', 'origin', 'params', 'port', 'username', 'password', 'href'], component: () => import('./url-parser.vue'), icon: Unlink, }); ================================================ FILE: src/tools/url-parser/url-parser.vue ================================================ ================================================ FILE: src/tools/user-agent-parser/index.ts ================================================ import { Browser } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.user-agent-parser.title'), path: '/user-agent-parser', description: translate('tools.user-agent-parser.description'), keywords: ['user', 'agent', 'parser', 'browser', 'engine', 'os', 'cpu', 'device', 'user-agent', 'client'], component: () => import('./user-agent-parser.vue'), icon: Browser, createdAt: new Date('2023-04-06'), }); ================================================ FILE: src/tools/user-agent-parser/user-agent-parser.types.ts ================================================ import type { Component } from 'vue'; import type { UAParser } from 'ua-parser-js'; export interface UserAgentResultSection { heading: string icon?: Component content: { label: string getValue: (blocks?: UAParser.IResult) => string | undefined undefinedFallback?: string }[] } ================================================ FILE: src/tools/user-agent-parser/user-agent-parser.vue ================================================ ================================================ FILE: src/tools/user-agent-parser/user-agent-result-cards.vue ================================================ ================================================ FILE: src/tools/uuid-generator/index.ts ================================================ import { Fingerprint } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.uuid-generator.title'), path: '/uuid-generator', description: translate('tools.uuid-generator.description'), keywords: ['uuid', 'v4', 'random', 'id', 'alphanumeric', 'identity', 'token', 'string', 'identifier', 'unique', 'v1', 'v3', 'v5', 'nil'], component: () => import('./uuid-generator.vue'), icon: Fingerprint, }); ================================================ FILE: src/tools/uuid-generator/uuid-generator.vue ================================================ ================================================ FILE: src/tools/wifi-qr-code-generator/index.ts ================================================ import { Qrcode } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.wifi-qrcode-generator.title'), path: '/wifi-qrcode-generator', description: translate('tools.wifi-qrcode-generator.description'), keywords: ['qr', 'code', 'generator', 'square', 'color', 'link', 'low', 'medium', 'quartile', 'high', 'transparent', 'wifi'], component: () => import('./wifi-qr-code-generator.vue'), icon: Qrcode, createdAt: new Date('2023-09-06'), }); ================================================ FILE: src/tools/wifi-qr-code-generator/useQRCode.ts ================================================ import { type MaybeRef, get } from '@vueuse/core'; import QRCode, { type QRCodeToDataURLOptions } from 'qrcode'; import { isRef, ref, watch } from 'vue'; export const wifiEncryptions = ['WEP', 'WPA', 'nopass', 'WPA2-EAP'] as const; export type WifiEncryption = typeof wifiEncryptions[number]; // @see https://en.wikipedia.org/wiki/Extensible_Authentication_Protocol // for a list of available EAP methods. There are a lot (40!) of them. export const EAPMethods = [ 'MD5', 'POTP', 'GTC', 'TLS', 'IKEv2', 'SIM', 'AKA', 'AKA\'', 'TTLS', 'PWD', 'LEAP', 'PSK', 'FAST', 'TEAP', 'EKE', 'NOOB', 'PEAP', ] as const; export type EAPMethod = typeof EAPMethods[number]; export const EAPPhase2Methods = [ 'None', 'MSCHAPV2', ] as const; export type EAPPhase2Method = typeof EAPPhase2Methods[number]; interface IWifiQRCodeOptions { ssid: MaybeRef password: MaybeRef eapMethod: MaybeRef isHiddenSSID: MaybeRef eapAnonymous: MaybeRef eapIdentity: MaybeRef eapPhase2Method: MaybeRef color: { foreground: MaybeRef; background: MaybeRef } options?: QRCodeToDataURLOptions } interface GetQrCodeTextOptions { ssid: string password: string encryption: WifiEncryption eapMethod: EAPMethod isHiddenSSID: boolean eapAnonymous: boolean eapIdentity: string eapPhase2Method: EAPPhase2Method } function escapeString(str: string) { // replaces \, ;, ,, " and : with the same character preceded by a backslash return str.replace(/([\\;,:"])/g, '\\$1'); } function getQrCodeText(options: GetQrCodeTextOptions): string | null { const { ssid, password, encryption, eapMethod, isHiddenSSID, eapAnonymous, eapIdentity, eapPhase2Method } = options; if (!ssid) { return null; } if (encryption === 'nopass') { return `WIFI:S:${escapeString(ssid)};;`; // type can be omitted in that case, and password is not needed, makes the QR Code smaller } if (encryption !== 'WPA2-EAP' && password) { // EAP has a lot of options, so we'll handle it separately // WPA and WEP are pretty simple though. return `WIFI:S:${escapeString(ssid)};T:${encryption};P:${escapeString(password)};${isHiddenSSID ? 'H:true' : ''};`; } if (encryption === 'WPA2-EAP' && password && eapMethod) { // WPA2-EAP string is a lot more complex, first off, we drop the text if there is no identity, and it's not anonymous. if (!eapIdentity && !eapAnonymous) { return null; } // From reading, I could only find that a phase 2 is required for the PEAP method, I may be wrong though, I didn't read the whole spec. if (eapMethod === 'PEAP' && !eapPhase2Method) { return null; } // The string is built in the following order: // 1. SSID // 2. Authentication type // 3. Password // 4. EAP method // 5. EAP phase 2 method // 6. Identity or anonymous if checked // 7. Hidden SSID if checked const identity = eapAnonymous ? 'A:anon' : `I:${escapeString(eapIdentity)}`; const phase2 = eapPhase2Method !== 'None' ? `PH2:${eapPhase2Method};` : ''; return `WIFI:S:${escapeString(ssid)};T:WPA2-EAP;P:${escapeString(password)};E:${eapMethod};${phase2}${identity};${isHiddenSSID ? 'H:true' : ''};`; } return null; } export function useWifiQRCode({ ssid, password, eapMethod, isHiddenSSID, eapAnonymous, eapIdentity, eapPhase2Method, color: { background, foreground }, options, }: IWifiQRCodeOptions) { const qrcode = ref(''); const encryption = ref('WPA'); watch( [ssid, password, encryption, eapMethod, isHiddenSSID, eapAnonymous, eapIdentity, eapPhase2Method, background, foreground].filter(isRef), async () => { // @see https://github.com/zxing/zxing/wiki/Barcode-Contents#wi-fi-network-config-android-ios-11 // This is the full spec, there's quite a bit of logic to generate the string embeddedin the QR code. const text = getQrCodeText({ ssid: get(ssid), password: get(password), encryption: get(encryption), eapMethod: get(eapMethod), isHiddenSSID: get(isHiddenSSID), eapAnonymous: get(eapAnonymous), eapIdentity: get(eapIdentity), eapPhase2Method: get(eapPhase2Method), }); if (text) { qrcode.value = await QRCode.toDataURL(get(text).trim(), { color: { dark: get(foreground), light: get(background), ...options?.color, }, errorCorrectionLevel: 'M', ...options, }); } }, { immediate: true }, ); return { qrcode, encryption }; } ================================================ FILE: src/tools/wifi-qr-code-generator/wifi-qr-code-generator.vue ================================================ ================================================ FILE: src/tools/xml-formatter/index.ts ================================================ import { Code } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.xml-formatter.title'), path: '/xml-formatter', description: translate('tools.xml-formatter.description'), keywords: ['xml', 'prettify', 'format'], component: () => import('./xml-formatter.vue'), icon: Code, createdAt: new Date('2023-06-17'), }); ================================================ FILE: src/tools/xml-formatter/xml-formatter.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - XML formatter', () => { test.beforeEach(async ({ page }) => { await page.goto('/xml-formatter'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('XML formatter - IT Tools'); }); test('XML is converted into a human readable format', async ({ page }) => { await page.getByTestId('input').fill('bazbaz'); const formattedXml = await page.getByTestId('area-content').innerText(); expect(formattedXml.trim()).toEqual(` baz baz `.trim()); }); }); ================================================ FILE: src/tools/xml-formatter/xml-formatter.service.test.ts ================================================ import { describe, expect, it } from 'vitest'; import { formatXml } from './xml-formatter.service'; describe('xml-formatter service', () => { describe('formatXml', () => { it('converts XML into a human readable format', () => { const initString = 'foobar'; expect(formatXml(initString)).toMatchInlineSnapshot(` " foo bar " `); }); it('returns an empty string if the input is not valid XML', () => { const initString = 'hello world'; expect(formatXml(initString)).toEqual(''); }); }); }); ================================================ FILE: src/tools/xml-formatter/xml-formatter.service.ts ================================================ import xmlFormat, { type XMLFormatterOptions } from 'xml-formatter'; import { withDefaultOnError } from '@/utils/defaults'; export { formatXml, isValidXML }; function cleanRawXml(rawXml: string): string { return rawXml.trim(); } function formatXml(rawXml: string, options?: XMLFormatterOptions): string { return withDefaultOnError(() => xmlFormat(cleanRawXml(rawXml), options) ?? '', ''); } function isValidXML(rawXml: string): boolean { const cleanedRawXml = cleanRawXml(rawXml); if (cleanedRawXml === '') { return true; } try { xmlFormat(cleanedRawXml); return true; } catch (e) { return false; } } ================================================ FILE: src/tools/xml-formatter/xml-formatter.vue ================================================ ================================================ FILE: src/tools/xml-to-json/index.ts ================================================ import { Braces } from '@vicons/tabler'; import { defineTool } from '../tool'; export const tool = defineTool({ name: 'XML to JSON', path: '/xml-to-json', description: 'Convert XML to JSON', keywords: ['xml', 'json'], component: () => import('./xml-to-json.vue'), icon: Braces, createdAt: new Date('2024-08-09'), }); ================================================ FILE: src/tools/xml-to-json/xml-to-json.vue ================================================ ================================================ FILE: src/tools/yaml-to-json-converter/index.ts ================================================ import { AlignJustified } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.yaml-to-json-converter.title'), path: '/yaml-to-json-converter', description: translate('tools.yaml-to-json-converter.description'), keywords: ['yaml', 'to', 'json'], component: () => import('./yaml-to-json.vue'), icon: AlignJustified, createdAt: new Date('2023-04-10'), }); ================================================ FILE: src/tools/yaml-to-json-converter/yaml-to-json.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - Yaml to json', () => { test.beforeEach(async ({ page }) => { await page.goto('/yaml-to-json-converter'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('YAML to JSON converter - IT Tools'); }); test('Yaml is parsed and output clean json', async ({ page }) => { await page.getByTestId('input').fill('foo: bar\nlist:\n - item\n - key: value'); const generatedJson = await page.getByTestId('area-content').innerText(); expect(generatedJson.trim()).toEqual( ` { "foo": "bar", "list": [ "item", { "key": "value" } ] } `.trim(), ); }); test('Yaml is parsed with merge key and output correct json', async ({ page }) => { await page.getByTestId('input').fill(` default: &default name: '' age: 0 person: *default persons: - <<: *default age: 1 - <<: *default name: John - { age: 3, <<: *default } `); const generatedJson = await page.getByTestId('area-content').innerText(); expect(generatedJson.trim()).toEqual( ` { "default": { "name": "", "age": 0 }, "person": { "name": "", "age": 0 }, "persons": [ { "name": "", "age": 1 }, { "name": "John", "age": 0 }, { "age": 3, "name": "" } ] }`.trim(), ); }); }); ================================================ FILE: src/tools/yaml-to-json-converter/yaml-to-json.vue ================================================ ================================================ FILE: src/tools/yaml-to-toml/index.ts ================================================ import { AlignJustified } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.yaml-to-toml.title'), path: '/yaml-to-toml', description: translate('tools.yaml-to-toml.description'), keywords: ['yaml', 'to', 'toml', 'convert', 'transform'], component: () => import('./yaml-to-toml.vue'), icon: AlignJustified, createdAt: new Date('2023-06-23'), }); ================================================ FILE: src/tools/yaml-to-toml/yaml-to-toml.e2e.spec.ts ================================================ import { expect, test } from '@playwright/test'; test.describe('Tool - YAML to TOML', () => { test.beforeEach(async ({ page }) => { await page.goto('/yaml-to-toml'); }); test('Has correct title', async ({ page }) => { await expect(page).toHaveTitle('YAML to TOML - IT Tools'); }); test('JSON is parsed and outputs clean TOML', async ({ page }) => { await page.getByTestId('input').fill(` foo: bar list: name: item another: key: value number: 1 `.trim()); const generatedJson = await page.getByTestId('area-content').innerText(); expect(generatedJson.trim()).toEqual( ` foo = "bar" [list] name = "item" [list.another] key = "value" number = 1 `.trim(), ); }); }); ================================================ FILE: src/tools/yaml-to-toml/yaml-to-toml.vue ================================================ ================================================ FILE: src/tools/yaml-viewer/index.ts ================================================ import { AlignJustified } from '@vicons/tabler'; import { defineTool } from '../tool'; import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.yaml-prettify.title'), path: '/yaml-prettify', description: translate('tools.yaml-prettify.description'), keywords: ['yaml', 'viewer', 'prettify', 'format'], component: () => import('./yaml-viewer.vue'), icon: AlignJustified, createdAt: new Date('2024-01-31'), }); ================================================ FILE: src/tools/yaml-viewer/yaml-models.ts ================================================ import { type MaybeRef, get } from '@vueuse/core'; import yaml from 'yaml'; export { formatYaml }; function formatYaml({ rawYaml, sortKeys = false, indentSize = 2, }: { rawYaml: MaybeRef sortKeys?: MaybeRef indentSize?: MaybeRef }) { const parsedYaml = yaml.parse(get(rawYaml)); const formattedYAML = yaml.stringify(parsedYaml, { sortMapEntries: get(sortKeys), indent: get(indentSize), }); return formattedYAML; } ================================================ FILE: src/tools/yaml-viewer/yaml-viewer.vue ================================================ ================================================ FILE: src/ui/c-alert/c-alert.demo.vue ================================================ ================================================ FILE: src/ui/c-alert/c-alert.theme.ts ================================================ import { darken } from '../color/color.models'; import { defineThemes } from '../theme/theme.models'; import { appThemes } from '../theme/themes'; import WarningIcon from '~icons/mdi/alert-circle-outline'; import ErrorIcon from '~icons/mdi/close-circle-outline'; export const { useTheme } = defineThemes({ dark: { warning: { backgroundColor: appThemes.dark.warning.colorFaded, borderColor: appThemes.dark.warning.color, textColor: appThemes.dark.warning.color, icon: WarningIcon, }, error: { backgroundColor: appThemes.dark.error.colorFaded, borderColor: appThemes.dark.error.color, textColor: appThemes.dark.error.color, icon: ErrorIcon, }, }, light: { warning: { backgroundColor: appThemes.light.warning.colorFaded, borderColor: appThemes.light.warning.color, textColor: darken(appThemes.light.warning.color, 40), icon: WarningIcon, }, error: { backgroundColor: appThemes.light.error.colorFaded, borderColor: appThemes.light.error.color, textColor: darken(appThemes.light.error.color, 40), icon: ErrorIcon, }, }, }); ================================================ FILE: src/ui/c-alert/c-alert.vue ================================================ ================================================ FILE: src/ui/c-button/c-button.demo.vue ================================================ ================================================ FILE: src/ui/c-button/c-button.theme.ts ================================================ import { darken, lighten } from '../color/color.models'; import { defineThemes } from '../theme/theme.models'; import { appThemes } from '../theme/themes'; function createState({ textColor, backgroundColor, hoverBackground, hoveredTextColor = textColor, pressedBackground, pressedTextColor = textColor, }: { textColor: string backgroundColor: string hoverBackground: string hoveredTextColor?: string pressedBackground: string pressedTextColor?: string }) { return { textColor, backgroundColor, hover: { textColor: hoveredTextColor, backgroundColor: hoverBackground }, pressed: { textColor: pressedTextColor, backgroundColor: pressedBackground }, }; } function createTheme({ style }: { style: 'light' | 'dark' }) { const theme = appThemes[style]; return { size: { small: { width: '28px', fontSize: '12px', }, medium: { width: '34px', fontSize: '14px', }, large: { width: '40px', fontSize: '16px', }, }, basic: { default: createState({ textColor: theme.text.baseColor, backgroundColor: theme.default.color, hoverBackground: theme.default.colorHover, pressedBackground: theme.default.colorPressed, }), primary: createState({ textColor: theme.primary.color, backgroundColor: theme.primary.colorFaded, hoverBackground: lighten(theme.primary.colorFaded, 30), pressedBackground: darken(theme.primary.colorFaded, 30), }), warning: createState({ textColor: theme.warning.color, backgroundColor: theme.warning.colorFaded, hoverBackground: lighten(theme.warning.colorFaded, 30), pressedBackground: darken(theme.warning.colorFaded, 30), }), error: createState({ textColor: theme.error.color, backgroundColor: theme.error.colorFaded, hoverBackground: lighten(theme.error.colorFaded, 30), pressedBackground: darken(theme.error.colorFaded, 30), }), }, text: { default: createState({ textColor: theme.text.baseColor, backgroundColor: 'transparent', hoverBackground: theme.default.colorHover, pressedBackground: theme.default.colorPressed, }), primary: createState({ textColor: theme.primary.color, backgroundColor: 'transparent', hoverBackground: theme.primary.colorFaded, pressedBackground: darken(theme.primary.colorFaded, 30), }), warning: createState({ textColor: darken(theme.warning.color, 20), backgroundColor: 'transparent', hoverBackground: theme.warning.colorFaded, pressedBackground: darken(theme.warning.colorFaded, 30), }), error: createState({ textColor: darken(theme.error.color, 20), backgroundColor: 'transparent', hoverBackground: theme.error.colorFaded, pressedBackground: darken(theme.error.colorFaded, 30), }), }, }; } export const { useTheme } = defineThemes({ dark: createTheme({ style: 'dark' }), light: createTheme({ style: 'light' }), }); ================================================ FILE: src/ui/c-button/c-button.vue ================================================ ================================================ FILE: src/ui/c-buttons-select/c-buttons-select.demo.vue ================================================ ================================================ FILE: src/ui/c-buttons-select/c-buttons-select.types.ts ================================================ import type { CSelectOption } from '../c-select/c-select.types'; export type CButtonSelectOption = CSelectOption & { tooltip?: string }; ================================================ FILE: src/ui/c-buttons-select/c-buttons-select.vue ================================================ ================================================ FILE: src/ui/c-card/c-card.demo.vue ================================================ ================================================ FILE: src/ui/c-card/c-card.theme.ts ================================================ import { defineThemes } from '../theme/theme.models'; export const { useTheme } = defineThemes({ dark: { backgroundColor: '#232323', borderColor: '#282828', }, light: { backgroundColor: '#ffffff', borderColor: '#efeff5', }, }); ================================================ FILE: src/ui/c-card/c-card.vue ================================================ ================================================ FILE: src/ui/c-collapse/c-collapse.demo.vue ================================================ ================================================ FILE: src/ui/c-collapse/c-collapse.vue ================================================ ================================================ FILE: src/ui/c-diff-editor/c-diff-editor.vue ================================================ ================================================ FILE: src/ui/c-file-upload/c-file-upload.demo.vue ================================================ ================================================ FILE: src/ui/c-file-upload/c-file-upload.vue ================================================ ================================================ FILE: src/ui/c-input-text/c-input-text.demo.vue ================================================ ================================================ FILE: src/ui/c-input-text/c-input-text.test.ts ================================================ import { beforeEach, describe, expect, it } from 'vitest'; import { mount, shallowMount } from '@vue/test-utils'; import { createPinia, setActivePinia } from 'pinia'; import _ from 'lodash'; import CInputText from './c-input-text.vue'; import { useValidation } from '@/composable/validation'; describe('CInputText', () => { beforeEach(() => { setActivePinia(createPinia()); }); it('Renders a label', () => { const wrapper = shallowMount(CInputText, { props: { label: 'Label', }, }); expect(wrapper.get('.label').text()).to.equal('Label'); }); it('Renders a placeholder', () => { const wrapper = shallowMount(CInputText, { props: { placeholder: 'Placeholder', }, }); expect(wrapper.get('.input').attributes('placeholder')).to.equal('Placeholder'); }); it('Renders a value', () => { const wrapper = shallowMount(CInputText, { props: { value: 'Value', }, }); expect(wrapper.vm.value).to.equal('Value'); }); it('Renders a provided id', () => { const wrapper = shallowMount(CInputText, { props: { id: 'id', }, }); expect(wrapper.get('.input').attributes('id')).to.equal('id'); }); it('updates value on input', async () => { const wrapper = shallowMount(CInputText); await wrapper.get('input').setValue('Hello'); expect(_.get(wrapper.emitted(), 'update:value.0.0')).to.equal('Hello'); }); it('cannot be edited when disabled', async () => { const wrapper = shallowMount(CInputText, { props: { disabled: true, }, }); await wrapper.get('input').setValue('Hello'); expect(_.get(wrapper.emitted(), 'update:value')).toBeUndefined(); }); it('renders a feedback message for invalid rules', async () => { const wrapper = shallowMount(CInputText, { props: { validationRules: [{ validator: () => false, message: 'Message' }] }, }); const feedback = wrapper.find('.feedback'); expect(feedback.exists()).to.equal(true); expect(feedback.text()).to.equal('Message'); }); it('if the value become valid according to rules, the feedback disappear', async () => { const wrapper = shallowMount(CInputText, { props: { validationRules: [{ validator: (value: string) => value === 'Hello', message: 'Value should be Hello' }], }, }); const feedback = wrapper.find('.feedback'); expect(feedback.exists()).to.equal(true); expect(feedback.text()).to.equal('Value should be Hello'); await wrapper.setProps({ value: 'Hello' }); expect(wrapper.find('.feedback').exists()).to.equal(false); }); it('feedback does not render for valid rules', async () => { const wrapper = shallowMount(CInputText, { props: { rules: [{ validator: () => true, message: 'Message' }] }, }); expect(wrapper.find('.feedback').exists()).to.equal(false); }); it('renders a feedback message for invalid custom validation wrapper', async () => { const wrapper = shallowMount(CInputText, { props: { validation: useValidation({ source: ref(), rules: [{ validator: () => false, message: 'Message' }] }), }, }); const feedback = wrapper.find('.feedback'); expect(feedback.exists()).to.equal(true); expect(feedback.text()).to.equal('Message'); }); it('feedback does not render for valid custom validation wrapper', async () => { const wrapper = shallowMount(CInputText, { props: { validation: useValidation({ source: ref(), rules: [{ validator: () => true, message: 'Message' }] }), }, }); expect(wrapper.find('.feedback').exists()).to.equal(false); }); it('if the value become valid according to the custom validation wrapper, the feedback disappear', async () => { const source = ref(''); const wrapper = shallowMount(CInputText, { props: { validation: useValidation({ source, rules: [{ validator: (value: string) => value === 'Hello', message: 'Value should be Hello' }], }), }, }); const feedback = wrapper.find('.feedback'); expect(feedback.exists()).to.equal(true); expect(feedback.text()).to.equal('Value should be Hello'); source.value = 'Hello'; await wrapper.vm.$nextTick(); expect(wrapper.find('.feedback').exists()).to.equal(false); }); it('[prop:testId] renders a test id on the input', async () => { const wrapper = mount(CInputText, { props: { testId: 'TEST', }, }); expect(wrapper.get('input').attributes('data-test-id')).to.equal('TEST'); }); }); ================================================ FILE: src/ui/c-input-text/c-input-text.theme.ts ================================================ import { defineThemes } from '../theme/theme.models'; export const { useTheme } = defineThemes({ dark: { backgroundColor: '#333333', borderColor: '#333333', focus: { backgroundColor: '#1ea54c1a', }, }, light: { backgroundColor: '#ffffff', borderColor: '#e0e0e69e', focus: { backgroundColor: '#ffffff', }, }, }); ================================================ FILE: src/ui/c-input-text/c-input-text.vue ================================================