mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-24 23:00:19 +03:00
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c70c602682 | ||
|
|
d1aca6acaf | ||
|
|
1c35ac3704 | ||
|
|
72517002f3 |
No files matched your search
@@ -117,7 +117,7 @@ Big thanks to all the people who have already contributed!
|
||||
|
||||
## Credits
|
||||
|
||||
Coded with ❤️ by [Corentin Thomasset](//corentin-thomasset.fr).
|
||||
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).
|
||||
|
||||
|
||||
Vendored
+11
-2
@@ -11,8 +11,9 @@ 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']
|
||||
AngleConverter: typeof import('./src/tools/angle-converter/angle-converter.vue')['default']
|
||||
App: typeof import('./src/App.vue')['default']
|
||||
AsciiTextDrawer: typeof import('./src/tools/ascii-text-drawer/ascii-text-drawer.vue')['default']
|
||||
AreaConverter: typeof import('./src/tools/area-converter/area-converter.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']
|
||||
@@ -77,8 +78,10 @@ declare module '@vue/runtime-core' {
|
||||
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']
|
||||
EnergyConverter: typeof import('./src/tools/energy-converter/energy-converter.vue')['default']
|
||||
EtaCalculator: typeof import('./src/tools/eta-calculator/eta-calculator.vue')['default']
|
||||
FavoriteButton: typeof import('./src/components/FavoriteButton.vue')['default']
|
||||
ForceConverter: typeof import('./src/tools/force-converter/force-converter.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']
|
||||
@@ -116,12 +119,14 @@ declare module '@vue/runtime-core' {
|
||||
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']
|
||||
LengthConverter: typeof import('./src/tools/length-converter/length-converter.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']
|
||||
ManyUnitsConverter: typeof import('./src/tools/many-units-converter/many-units-converter.vue')['default']
|
||||
MassConverter: typeof import('./src/tools/mass-converter/mass-converter.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']
|
||||
@@ -150,6 +155,8 @@ declare module '@vue/runtime-core' {
|
||||
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']
|
||||
PowerConverter: typeof import('./src/tools/power-converter/power-converter.vue')['default']
|
||||
PressureConverter: typeof import('./src/tools/pressure-converter/pressure-converter.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']
|
||||
@@ -180,11 +187,13 @@ declare module '@vue/runtime-core' {
|
||||
'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']
|
||||
UnitsConverter: typeof import('./src/components/UnitsConverter.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']
|
||||
VolumeConverter: typeof import('./src/tools/volume-converter/volume-converter.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']
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ about:
|
||||
# Über IT-Tools
|
||||
|
||||
Diese wunderbare Website, erstellt mit ❤ von [Corentin
|
||||
Thomasset](https://github.com/CorentinTh), sammelt nützliche Tools für
|
||||
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
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ about:
|
||||
content: >
|
||||
# About IT-Tools
|
||||
|
||||
This wonderful website, made with ❤ by [Corentin Thomasset](https://github.com/CorentinTh) , 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!
|
||||
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 MIT 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).
|
||||
|
||||
|
||||
+3
-3
@@ -30,7 +30,7 @@ about:
|
||||
content: >
|
||||
# Sobre IT-Tools
|
||||
|
||||
Este maravilloso sitio web, hecho con ❤ por [Corentin Thomasset](https://github.com/CorentinTh) , 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!
|
||||
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 MIT 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).
|
||||
|
||||
@@ -39,7 +39,7 @@ about:
|
||||
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.
|
||||
@@ -68,4 +68,4 @@ tools:
|
||||
math: Math
|
||||
measurement: Measurement
|
||||
text: Text
|
||||
data: Data
|
||||
data: Data
|
||||
+1
-1
@@ -29,7 +29,7 @@ about:
|
||||
content: >
|
||||
# À propos de IT-Tools
|
||||
|
||||
Ce merveilleux site, fait avec ❤ par [Corentin Thomasset](https://github.com/CorentinTh), 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 !
|
||||
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 MIT) 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).
|
||||
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ about:
|
||||
content: >
|
||||
# Sobre o IT-Tools
|
||||
|
||||
Este site maravilhoso, feito com ❤ por [Corentin Thomasset](https://github.com/CorentinTh), 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!
|
||||
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 MIT), é 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).
|
||||
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ about:
|
||||
content: >
|
||||
# Про IT-Tools
|
||||
|
||||
Цей чудовий вебсайт, створений з ❤ [Corentin Thomasset](https://github.com/CorentinTh), агрегує корисні інструменти для розробників і людей, які працюють в сфері IT. Якщо вам це корисно, будь ласка, поділіться цим з людьми, які, на вашу думку, також можуть знайти його корисним, і не забудьте додати його до закладок у вашій панелі швидкого доступу!
|
||||
Цей чудовий вебсайт, створений з ❤ [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about), агрегує корисні інструменти для розробників і людей, які працюють в сфері IT. Якщо вам це корисно, будь ласка, поділіться цим з людьми, які, на вашу думку, також можуть знайти його корисним, і не забудьте додати його до закладок у вашій панелі швидкого доступу!
|
||||
|
||||
IT Tools є відкритим програмним забезпеченням (під ліцензією MIT) і безкоштовним, і завжди буде таким, але мені коштує гроші для хостингу і продовження доменного імені. Якщо ви хочете підтримати мою роботу і підтримати мене у додаванні нових інструментів, розгляньте можливість підтримки, [спонсоруючи мене](https://www.buymeacoffee.com/cthmsst).
|
||||
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ about:
|
||||
content: >
|
||||
# Về IT-Tools
|
||||
|
||||
Website tuyệt vời này, được tạo ra bằng ❤ bởi [Corentin Thomasset](https://github.com/CorentinTh), 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!
|
||||
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 MIT) 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).
|
||||
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ about:
|
||||
content: >
|
||||
# 关于 IT-Tools
|
||||
|
||||
IT-Tools 由 [Corentin Thomasset](https://github.com/CorentinTh) 用 ❤ 开发,汇集了对开发人员和 IT 从业者有用的工具。如果对您有帮助,请将其分享给您的朋友,并且添加到收藏夹中!
|
||||
IT-Tools 由 [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about) 用 ❤ 开发,汇集了对开发人员和 IT 从业者有用的工具。如果对您有帮助,请将其分享给您的朋友,并且添加到收藏夹中!
|
||||
|
||||
IT-Tools 永久免费且开源(MIT 许可证),但需要资金用于托管和续订域名。如果您想支持我的工作,并鼓励我添加更多工具,请考虑通过 [赞助我](https://www.buymeacoffee.com/cthmsst) 进行支持。
|
||||
|
||||
|
||||
+9
-9
@@ -1,7 +1,14 @@
|
||||
{
|
||||
"name": "it-tools",
|
||||
"version": "2024.5.13-a0bc346",
|
||||
"packageManager": "pnpm@8.15.3",
|
||||
"description": "Collection of handy online tools for developers, with great UX. ",
|
||||
"author": "Corentin Th <corentin.thomasset74+it-tools@gmail.com> (https://corentin.tech)",
|
||||
"license": "GNU GPLv3",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/CorentinTh/it-tools"
|
||||
},
|
||||
"keywords": [
|
||||
"productivity",
|
||||
"converter",
|
||||
@@ -13,12 +20,6 @@
|
||||
"developer-tools",
|
||||
"developer-productivity"
|
||||
],
|
||||
"author": "Corentin Th <corentin.thomasset74+it-tools@gmail.com> (https://github.com/CorentinTh)",
|
||||
"license": "GNU GPLv3",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/CorentinTh/it-tools"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vue-tsc --noEmit && NODE_OPTIONS=--max_old_space_size=4096 vite build",
|
||||
@@ -53,6 +54,7 @@
|
||||
"change-case": "^4.1.2",
|
||||
"colord": "^2.9.3",
|
||||
"composerize-ts": "^0.6.2",
|
||||
"convert": "^5.4.1",
|
||||
"country-code-lookup": "^0.1.0",
|
||||
"cron-validator": "^1.3.1",
|
||||
"cronstrue": "^2.26.0",
|
||||
@@ -70,7 +72,6 @@
|
||||
"js-base64": "^3.7.6",
|
||||
"json5": "^2.2.3",
|
||||
"jwt-decode": "^3.1.2",
|
||||
"korean-unpacker": "^1.0.3",
|
||||
"libphonenumber-js": "^1.10.28",
|
||||
"lodash": "^4.17.21",
|
||||
"markdown-it": "^14.0.0",
|
||||
@@ -146,6 +147,5 @@
|
||||
"vitest": "^0.34.0",
|
||||
"workbox-window": "^7.0.0",
|
||||
"zx": "^7.2.1"
|
||||
},
|
||||
"packageManager": "pnpm@8.15.3"
|
||||
}
|
||||
}
|
||||
Generated
+7
-7
@@ -59,6 +59,9 @@ dependencies:
|
||||
composerize-ts:
|
||||
specifier: ^0.6.2
|
||||
version: 0.6.2
|
||||
convert:
|
||||
specifier: ^5.4.1
|
||||
version: 5.4.1
|
||||
country-code-lookup:
|
||||
specifier: ^0.1.0
|
||||
version: 0.1.0
|
||||
@@ -110,9 +113,6 @@ dependencies:
|
||||
jwt-decode:
|
||||
specifier: ^3.1.2
|
||||
version: 3.1.2
|
||||
korean-unpacker:
|
||||
specifier: ^1.0.3
|
||||
version: 1.0.3
|
||||
libphonenumber-js:
|
||||
specifier: ^1.10.28
|
||||
version: 1.10.28
|
||||
@@ -4648,6 +4648,10 @@ packages:
|
||||
/convert-source-map@2.0.0:
|
||||
resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}
|
||||
|
||||
/convert@5.4.1:
|
||||
resolution: {integrity: sha512-n5Ob2tBccxPeSd0nIRjKqvzoXw8rk4fDRf3HIJlG9A2M4kTDdu3y+D1y5YrEIksbDLNEjxTyMhdXRA2ttSVPyw==}
|
||||
dev: false
|
||||
|
||||
/copy-anything@2.0.6:
|
||||
resolution: {integrity: sha512-1j20GZTsvKNkc4BY3NpMOM8tt///wY3FpIzozTOFO2ffuZcV61nojHXVKIy3WM+7ADCy5FVhdZYHYDdgTU0yJw==}
|
||||
dependencies:
|
||||
@@ -6685,10 +6689,6 @@ packages:
|
||||
resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==}
|
||||
dev: true
|
||||
|
||||
/korean-unpacker@1.0.3:
|
||||
resolution: {integrity: sha512-s0VIyZOFOtalBSp51NECPvM1g9Af8M0Oxe1ZdMMGL7nvG/ecVNYkCAzPU+f52f0R83ytVCOd3fd14TTOFx2GXQ==}
|
||||
dev: false
|
||||
|
||||
/less@4.1.3:
|
||||
resolution: {integrity: sha512-w16Xk/Ta9Hhyei0Gpz9m7VS8F28nieJaL/VyShID7cYvP6IL5oHeL6p4TXSDJqZE/lNv0oJ2pGVjJsRkfwm5FA==}
|
||||
engines: {node: '>=6'}
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
<script setup lang="ts">
|
||||
import _ from 'lodash';
|
||||
import convert, { type Unit } from 'convert';
|
||||
|
||||
const props = withDefaults(defineProps<{
|
||||
supportedUnits: { [key: string]: string }
|
||||
defaultUnit: string
|
||||
labelWidth?: string
|
||||
unitMinWidth?: string
|
||||
}>(), {
|
||||
labelWidth: '150px',
|
||||
unitMinWidth: '50px',
|
||||
});
|
||||
const { supportedUnits, defaultUnit, labelWidth, unitMinWidth } = toRefs(props);
|
||||
const units = reactive<
|
||||
Record<
|
||||
string,
|
||||
{ title: string; unit: string; ref: number }
|
||||
>
|
||||
>(Object.entries(supportedUnits.value).map(([key, label]) => ({
|
||||
title: label,
|
||||
unit: key,
|
||||
ref: 1,
|
||||
})).reduce((prev, current) => ({
|
||||
...prev,
|
||||
[current.unit]: current,
|
||||
}), {}));
|
||||
|
||||
function update(key: string) {
|
||||
if (!units[key]) {
|
||||
return;
|
||||
}
|
||||
const { ref: value } = units[key];
|
||||
|
||||
const converter = convert(value, key as Unit);
|
||||
|
||||
_.chain(units)
|
||||
.omit(key)
|
||||
.forEach(({ unit }) => {
|
||||
try {
|
||||
units[unit].ref = converter.to(unit as Unit);
|
||||
}
|
||||
catch (e: any) {
|
||||
units[unit].ref = 0;
|
||||
}
|
||||
})
|
||||
.value();
|
||||
}
|
||||
|
||||
update(defaultUnit.value);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<n-input-group v-for="[key, { title, unit }] in Object.entries(units)" :key="key" mb-3 w-full>
|
||||
<n-input-group-label :style="{ width: labelWidth }">
|
||||
{{ title }}
|
||||
</n-input-group-label>
|
||||
|
||||
<n-input-number
|
||||
v-model:value="units[key].ref"
|
||||
style="flex: 1"
|
||||
@update:value="() => update(key)"
|
||||
/>
|
||||
|
||||
<n-input-group-label :style="{ minWidth: unitMinWidth }">
|
||||
{{ unit }}
|
||||
</n-input-group-label>
|
||||
</n-input-group>
|
||||
</div>
|
||||
</template>
|
||||
@@ -81,7 +81,7 @@ const tools = computed<ToolCategory[]>(() => [
|
||||
</div>
|
||||
<div>
|
||||
© {{ new Date().getFullYear() }}
|
||||
<c-link target="_blank" rel="noopener" href="https://github.com/CorentinTh">
|
||||
<c-link target="_blank" rel="noopener" href="https://corentin.tech?utm_source=it-tools&utm_medium=footer">
|
||||
Corentin Thomasset
|
||||
</c-link>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<script setup lang="ts">
|
||||
import UnitsConverter from '@/components/UnitsConverter.vue';
|
||||
|
||||
const supportedUnits = {
|
||||
deg: 'degree (°)',
|
||||
rad: 'radian',
|
||||
turn: 'turn',
|
||||
gradian: 'gradian',
|
||||
grad: 'grad',
|
||||
gon: 'gon',
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UnitsConverter default-unit="deg" :supported-units="supportedUnits" label-width="150px" />
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Angle } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Angle Units Converter',
|
||||
path: '/angle-converter',
|
||||
description: 'Convert values between angle units',
|
||||
keywords: ['angle', 'converter'],
|
||||
component: () => import('./angle-converter.vue'),
|
||||
icon: Angle,
|
||||
createdAt: new Date('2024-08-15'),
|
||||
});
|
||||
@@ -0,0 +1,35 @@
|
||||
<script setup lang="ts">
|
||||
import UnitsConverter from '@/components/UnitsConverter.vue';
|
||||
|
||||
const supportedUnits = {
|
||||
'm²': 'square meter',
|
||||
'Pm²': 'square petameter',
|
||||
'Tm²': 'square terameter',
|
||||
'Gm²': 'square gigameter',
|
||||
'Mm²': 'square megameter',
|
||||
'km²': 'square kilometer',
|
||||
'hm²': 'square hectometer',
|
||||
'dam²': 'square decameter',
|
||||
'dm²': 'square decimeter',
|
||||
'cm²': 'square centimeter',
|
||||
'mm²': 'square millimeter',
|
||||
'μm²': 'square micrometer',
|
||||
'nm²': 'square nanometer',
|
||||
'pm²': 'square picometer',
|
||||
'fm²': 'square femtometer',
|
||||
'ac': 'acre',
|
||||
'ca': 'centiare',
|
||||
'da': 'deciare',
|
||||
'are': 'are',
|
||||
'daa': 'decare',
|
||||
'ha': 'hectare',
|
||||
'ft²': 'square foot (/ft2/sq ft)',
|
||||
'in²': 'square inch (/in2/sq in)',
|
||||
'yd²': 'square yard (yd2/sq yd)',
|
||||
'mi²': 'square mile (mi2/sq mi)',
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UnitsConverter default-unit="m²" :supported-units="supportedUnits" label-width="150px" />
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { SquaresDiagonal } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Area Units Converter',
|
||||
path: '/area-converter',
|
||||
description: 'Convert values between area units',
|
||||
keywords: ['area', 'converter'],
|
||||
component: () => import('./area-converter.vue'),
|
||||
icon: SquaresDiagonal,
|
||||
createdAt: new Date('2024-08-15'),
|
||||
});
|
||||
@@ -0,0 +1,40 @@
|
||||
<script setup lang="ts">
|
||||
import UnitsConverter from '@/components/UnitsConverter.vue';
|
||||
|
||||
const supportedUnits = {
|
||||
J: 'joule',
|
||||
PJ: 'petajoule',
|
||||
TJ: 'terajoule',
|
||||
GJ: 'gigajoule',
|
||||
MJ: 'megajoule',
|
||||
kJ: 'kilojoule',
|
||||
hJ: 'hectojoule',
|
||||
daJ: 'decajoule',
|
||||
dJ: 'decijoule',
|
||||
cJ: 'centijoule',
|
||||
mJ: 'millijoule',
|
||||
µJ: 'microjoule',
|
||||
nJ: 'nanojoule',
|
||||
pJ: 'picojoule',
|
||||
fJ: 'femtojoule',
|
||||
Wh: 'watt-hour',
|
||||
PWh: 'petawatt-hour',
|
||||
TWh: 'terawatt-hour',
|
||||
GWh: 'gigawatt-hour',
|
||||
MWh: 'megawatt-hour',
|
||||
kWh: 'kilowatt-hour',
|
||||
hWh: 'hectowatt-hour',
|
||||
daWh: 'decawatt-hour',
|
||||
dWh: 'deciwatt-hour',
|
||||
cWh: 'centiwatt-hour',
|
||||
mWh: 'milliwatt-hour',
|
||||
µWh: 'microwatt-hour',
|
||||
nWh: 'nanowatt-hour',
|
||||
pWh: 'picowatt-hour',
|
||||
fWh: 'femtowatt-hour',
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UnitsConverter default-unit="J" :supported-units="supportedUnits" label-width="150px" />
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Power } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Energy Units Converter',
|
||||
path: '/energy-converter',
|
||||
description: 'Convert values between energy units',
|
||||
keywords: ['energy', 'converter'],
|
||||
component: () => import('./energy-converter.vue'),
|
||||
icon: Power,
|
||||
createdAt: new Date('2024-08-15'),
|
||||
});
|
||||
@@ -0,0 +1,38 @@
|
||||
<script setup lang="ts">
|
||||
import UnitsConverter from '@/components/UnitsConverter.vue';
|
||||
|
||||
const supportedUnits = {
|
||||
'N': 'newton',
|
||||
'PN': 'petanewton',
|
||||
'TN': 'teranewton',
|
||||
'GN': 'giganewton',
|
||||
'MN': 'meganewton',
|
||||
'kN': 'kilonewton',
|
||||
'hN': 'hectonewton',
|
||||
'daN': 'decanewton',
|
||||
'dN': 'decinewton',
|
||||
'cN': 'centinewton',
|
||||
'mN': 'millinewton',
|
||||
'µN': 'micronewton',
|
||||
'nN': 'nanonewton',
|
||||
'pN': 'piconewton',
|
||||
'fN': 'femtonewton',
|
||||
'dyn': 'dyne',
|
||||
'lbf': 'pound of force',
|
||||
'kip': 'kip',
|
||||
'klb': 'klb',
|
||||
'kipf': 'kipf',
|
||||
'klbf': 'klbf',
|
||||
'pdl': 'poundal',
|
||||
'kgf': 'kilogram-force',
|
||||
'kp': 'kilopond',
|
||||
'Mp': 'megapond',
|
||||
'tf': 'tonne-force',
|
||||
'metric tf': 'metric ton-force',
|
||||
'megagram-force': 'megagram-force',
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UnitsConverter default-unit="N" :supported-units="supportedUnits" label-width="150px" />
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Power } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Force Units Converter',
|
||||
path: '/force-converter',
|
||||
description: 'Convert values between force units',
|
||||
keywords: ['force', 'converter'],
|
||||
component: () => import('./force-converter.vue'),
|
||||
icon: Power,
|
||||
createdAt: new Date('2024-08-15'),
|
||||
});
|
||||
+30
-2
@@ -1,6 +1,14 @@
|
||||
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 volumeConverter } from './volume-converter';
|
||||
import { tool as pressureConverter } from './pressure-converter';
|
||||
import { tool as massConverter } from './mass-converter';
|
||||
import { tool as lengthConverter } from './length-converter';
|
||||
import { tool as forceConverter } from './force-converter';
|
||||
import { tool as energyConverter } from './energy-converter';
|
||||
import { tool as areaConverter } from './area-converter';
|
||||
import { tool as angleConverter } from './angle-converter';
|
||||
import { tool as emailNormalizer } from './email-normalizer';
|
||||
|
||||
import { tool as asciiTextDrawer } from './ascii-text-drawer';
|
||||
@@ -86,6 +94,8 @@ 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 manyUnitsConverter } from './many-units-converter';
|
||||
import { tool as powerConverter } from './power-converter';
|
||||
import { tool as yamlViewer } from './yaml-viewer';
|
||||
|
||||
export const toolsByCategory: ToolCategory[] = [
|
||||
@@ -168,11 +178,29 @@ export const toolsByCategory: ToolCategory[] = [
|
||||
},
|
||||
{
|
||||
name: 'Math',
|
||||
components: [mathEvaluator, etaCalculator, percentageCalculator],
|
||||
components: [
|
||||
mathEvaluator,
|
||||
etaCalculator,
|
||||
percentageCalculator,
|
||||
angleConverter,
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Measurement',
|
||||
components: [chronometer, temperatureConverter, benchmarkBuilder],
|
||||
components: [
|
||||
chronometer,
|
||||
manyUnitsConverter,
|
||||
temperatureConverter,
|
||||
pressureConverter,
|
||||
massConverter,
|
||||
lengthConverter,
|
||||
areaConverter,
|
||||
volumeConverter,
|
||||
forceConverter,
|
||||
energyConverter,
|
||||
powerConverter,
|
||||
benchmarkBuilder,
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Text',
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
import { SquareHalf } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Length Units Converter',
|
||||
path: '/length-converter',
|
||||
description: 'Convert values from length units',
|
||||
keywords: ['length', 'converter'],
|
||||
component: () => import('./length-converter.vue'),
|
||||
icon: SquareHalf,
|
||||
createdAt: new Date('2024-08-15'),
|
||||
});
|
||||
@@ -0,0 +1,32 @@
|
||||
<script setup lang="ts">
|
||||
import UnitsConverter from '@/components/UnitsConverter.vue';
|
||||
|
||||
const supportedUnits = {
|
||||
m: 'meter',
|
||||
Pm: 'petameter',
|
||||
Tm: 'terameter',
|
||||
Gm: 'gigameter',
|
||||
Mm: 'megameter',
|
||||
km: 'kilometer',
|
||||
hm: 'hectometer',
|
||||
dam: 'decameter',
|
||||
dm: 'decimeter',
|
||||
cm: 'centimeter',
|
||||
mm: 'millimeter',
|
||||
µm: 'micrometer',
|
||||
nm: 'nanometer',
|
||||
pm: 'picometer',
|
||||
fm: 'femtometer',
|
||||
ft: 'foot (ft/\')',
|
||||
in: 'inch (")',
|
||||
yd: 'yard',
|
||||
mi: 'mile',
|
||||
nmi: 'nautical mile (M/NM)',
|
||||
ly: 'light-year',
|
||||
pc: 'pica',
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UnitsConverter default-unit="m" :supported-units="supportedUnits" label-width="150px" />
|
||||
</template>
|
||||
@@ -0,0 +1,14 @@
|
||||
[
|
||||
"radian", "radians", "rad", "rads", "r", "turn", "turns", "degree", "degrees", "deg", "degs", "°", "gradian", "gradians", "gon", "gons", "grad", "grads", "grade", "grades",
|
||||
"square meter", "square meters", "square metre", "square metres", "m²", "m2", "square petameter", "square petametre", "square petameters", "square petametres", "Pm²", "Pm2", "square terameter", "square terametre", "square terameters", "square terametres", "Tm²", "Tm2", "square gigameter", "square gigametre", "square gigameters", "square gigametres", "Gm²", "Gm2", "square megameter", "square megametre", "square megameters", "square megametres", "Mm²", "Mm2", "square kilometer", "square kilometre", "square kilometers", "square kilometres", "km²", "km2", "square hectometer", "square hectometre", "square hectometers", "square hectometres", "hm²", "hm2", "square decameter", "square decametre", "square decameters", "square decametres", "dam²", "dam2", "square decimeter", "square decimetre", "square decimeters", "square decimetres", "dm²", "dm2", "square centimeter", "square centimetre", "square centimeters", "square centimetres", "cm²", "cm2", "square millimeter", "square millimetre", "square millimeters", "square millimetres", "mm²", "mm2", "square micrometer", "square micrometre", "square micrometers", "square micrometres", "μm²", "µm²", "μm2", "µm2", "square nanometer", "square nanometre", "square nanometers", "square nanometres", "nm²", "nm2", "square picometer", "square picometre", "square picometers", "square picometres", "pm²", "pm2", "square femtometer", "square femtometre", "square femtometers", "square femtometres", "fm²", "fm2", "acre", "acres", "ac", "centiare", "centiares", "ca", "deciare", "deciares", "da", "are", "ares", "decare", "decares", "daa", "hectare", "hectares", "ha", "square foot", "square feet", "sq ft", "ft²", "ft2", "square inch", "square inches", "sq in", "in²", "in2", "square yard", "square yards", "sq yd", "yd²", "yd2", "square mile", "square miles", "sq mi", "mi²", "mi2",
|
||||
"bit", "bits", "b", "pebibit", "pebibits", "Pib", "tebibit", "tebibits", "Tib", "gibibit", "gibibits", "Gib", "mebibit", "mebibits", "Mib", "kibibit", "kibibits", "Kib", "Kb", "KB", "petabit", "petabits", "Pb", "terabit", "terabits", "Tb", "gigabit", "gigabits", "Gb", "megabit", "megabits", "Mb", "kilobit", "kilobits", "kb", "hectobit", "hectobits", "hb", "decabit", "decabits", "dab", "decibit", "decibits", "db", "centibit", "centibits", "cb", "millibit", "millibits", "mb", "microbit", "microbits", "μb", "µb", "nanobit", "nanobits", "nb", "picobit", "picobits", "pb", "femtobit", "femtobits", "fb", "nibble", "nibbles", "semioctet", "semioctets", "halfbyte", "halfbytes", "byte", "bytes", "octect", "octects", "B", "pebibyte", "pebibytes", "PiB", "tebibyte", "tebibytes", "TiB", "gibibyte", "gibibytes", "GiB", "mebibyte", "mebibytes", "MiB", "kibibyte", "kibibytes", "KiB", "petabyte", "petabytes", "PB", "terabyte", "terabytes", "TB", "gigabyte", "gigabytes", "GB", "megabyte", "megabytes", "MB", "kilobyte", "kilobytes", "kB", "hectobyte", "hectobytes", "hB", "decabyte", "decabytes", "daB", "decibyte", "decibytes", "dB", "centibyte", "centibytes", "cB", "millibyte", "millibytes", "mB", "microbyte", "microbytes", "μB", "µB", "nanobyte", "nanobytes", "nB", "picobyte", "picobytes", "pB", "femtobyte", "femtobytes", "fB", "hextet", "hextets",
|
||||
"joule", "joules", "J", "petajoule", "petajoules", "PJ", "terajoule", "terajoules", "TJ", "gigajoule", "gigajoules", "GJ", "megajoule", "megajoules", "MJ", "kilojoule", "kilojoules", "kJ", "hectojoule", "hectojoules", "hJ", "decajoule", "decajoules", "daJ", "decijoule", "decijoules", "dJ", "centijoule", "centijoules", "cJ", "millijoule", "millijoules", "mJ", "microjoule", "microjoules", "μJ", "µJ", "nanojoule", "nanojoules", "nJ", "picojoule", "picojoules", "pJ", "femtojoule", "femtojoules", "fJ", "watt-hour", "W⋅h", "W h", "Wh", "petawatt-hour", "petawatt-hours", "PW⋅h", "PW h", "PWh", "terawatt-hour", "terawatt-hours", "TW⋅h", "TW h", "TWh", "gigawatt-hour", "gigawatt-hours", "GW⋅h", "GW h", "GWh", "megawatt-hour", "megawatt-hours", "MW⋅h", "MW h", "MWh", "kilowatt-hour", "kilowatt-hours", "kW⋅h", "kW h", "kWh", "hectowatt-hour", "hectowatt-hours", "hW⋅h", "hW h", "hWh", "decawatt-hour", "decawatt-hours", "daW⋅h", "daW h", "daWh", "deciwatt-hour", "deciwatt-hours", "dW⋅h", "dW h", "dWh", "centiwatt-hour", "centiwatt-hours", "cW⋅h", "cW h", "cWh", "milliwatt-hour", "milliwatt-hours", "mW⋅h", "mW h", "mWh", "microwatt-hour", "microwatt-hours", "μW⋅h", "µW⋅h", "μW h", "µW h", "μWh", "µWh", "nanowatt-hour", "nanowatt-hours", "nW⋅h", "nW h", "nWh", "picowatt-hour", "picowatt-hours", "pW⋅h", "pW h", "pWh", "femtowatt-hour", "femtowatt-hours", "fW⋅h", "fW h", "fWh",
|
||||
"newton", "newtons", "N", "petanewton", "petanewtons", "PN", "teranewton", "teranewtons", "TN", "giganewton", "giganewtons", "GN", "meganewton", "meganewtons", "MN", "kilonewton", "kilonewtons", "kN", "hectonewton", "hectonewtons", "hN", "decanewton", "decanewtons", "daN", "decinewton", "decinewtons", "dN", "centinewton", "centinewtons", "cN", "millinewton", "millinewtons", "mN", "micronewton", "micronewtons", "μN", "µN", "nanonewton", "nanonewtons", "nN", "piconewton", "piconewtons", "pN", "femtonewton", "femtonewtons", "fN", "dyne", "dynes", "dyn", "pound of force", "pound-force", "lbf", "kip", "klb", "kipf", "klbf", "poundal", "poundals", "pdl", "kilogram-force", "kilopond", "kiloponds", "kgf", "kp", "tonne-force", "metric ton-force", "megagram-force", "megapond", "tf", "Mp",
|
||||
"meter", "meters", "metre", "metres", "m", "petameter", "petametre", "petameters", "petametres", "Pm", "terameter", "terametre", "terameters", "terametres", "Tm", "gigameter", "gigametre", "gigameters", "gigametres", "Gm", "megameter", "megametre", "megameters", "megametres", "Mm", "kilometer", "kilometre", "kilometers", "kilometres", "km", "hectometer", "hectometre", "hectometers", "hectometres", "hm", "decameter", "decametre", "decameters", "decametres", "dam", "decimeter", "decimetre", "decimeters", "decimetres", "dm", "centimeter", "centimetre", "centimeters", "centimetres", "cm", "millimeter", "millimetre", "millimeters", "millimetres", "mm", "micrometer", "micrometre", "micrometers", "micrometres", "μm", "µm", "nanometer", "nanometre", "nanometers", "nanometres", "nm", "picometer", "picometre", "picometers", "picometres", "pm", "femtometer", "femtometre", "femtometers", "femtometres", "fm", "foot", "feet", "ft", "\"", "US survey foot", "US survey feet", "U.S. survey foot", "U.S. survey feet", "inch", "inches", "in", "\"", "yard", "yards", "yd", "mile", "miles", "mi", "nautical mile", "nautical miles", "M", "NM", "nmi", "light-year", "light-years", "ly", "pica", "picas", "pc", "point", "points",
|
||||
"gram", "grams", "g", "petagram", "petagrams", "Pg", "teragram", "teragrams", "Tg", "gigagram", "gigagrams", "Gg", "megagram", "megagrams", "Mg", "kilogram", "kilograms", "kg", "hectogram", "hectograms", "hg", "decagram", "decagrams", "dag", "decigram", "decigrams", "dg", "centigram", "centigrams", "cg", "milligram", "milligrams", "mg", "microgram", "micrograms", "μg", "µg", "nanogram", "nanograms", "ng", "picogram", "picograms", "pg", "femtogram", "femtograms", "fg", "tonne", "tonnes", "metric ton", "metric tons", "t", "kilotonne", "kilotonnes", "kt", "megatonne", "megatonnes", "Mt", "gigatonne", "gigatonnes", "Gt", "pound", "pounds", "lb", "stone", "stones", "st", "ounce", "ounces", "oz", "short ton", "short tons", "US ton", "US tons", "long ton", "long tons", "imperial ton", "imperial tons", "displacement ton", "displacement tons",
|
||||
"watt", "watts", "W", "petawatt", "petawatts", "PW", "terawatt", "terawatts", "TW", "gigawatt", "gigawatts", "GW", "megawatt", "megawatts", "MW", "kilowatt", "kilowatts", "kW", "hectowatt", "hectowatts", "hW", "decawatt", "decawatts", "daW", "deciwatt", "deciwatts", "dW", "centiwatt", "centiwatts", "cW", "milliwatt", "milliwatts", "mW", "microwatt", "microwatts", "μW", "µW", "nanowatt", "nanowatts", "nW", "picowatt", "picowatts", "pW", "femtowatt", "femtowatts", "fW", "horsepower", "mechanical horsepower", "hp",
|
||||
"pascal", "pascals", "Pa", "petapascal", "petapascals", "PPa", "terapascal", "terapascals", "TPa", "gigapascal", "gigapascals", "GPa", "megapascal", "megapascals", "MPa", "kilopascal", "kilopascals", "kPa", "hectopascal", "hectopascals", "hPa", "decapascal", "decapascals", "daPa", "decipascal", "decipascals", "dPa", "centipascal", "centipascals", "cPa", "millipascal", "millipascals", "mPa", "micropascal", "micropascals", "μPa", "µPa", "nanopascal", "nanopascals", "nPa", "picopascal", "picopascals", "pPa", "femtopascal", "femtopascals", "fPa", "bar", "bars", "petabar", "petabars", "Pbar", "terabar", "terabars", "Tbar", "gigabar", "gigabars", "Gbar", "megabar", "megabars", "Mbar", "kilobar", "kilobars", "kbar", "hectobar", "hectobars", "hbar", "decabar", "decabars", "dabar", "decibar", "decibars", "dbar", "centibar", "centibars", "cbar", "millibar", "millibars", "mbar", "microbar", "microbars", "μbar", "µbar", "nanobar", "nanobars", "nbar", "picobar", "picobars", "pbar", "femtobar", "femtobars", "fbar", "torr", "torrs", "Torr", "millitorr", "mTorr", "atmosphere", "atmospheres", "atm", "pound per square inch", "pounds per square inch", "psi", "lbf/in2", "lbf/in²",
|
||||
"kelvin", "kelvins", "K", "petakelvin", "petakelvins", "PK", "terakelvin", "terakelvins", "TK", "gigakelvin", "gigakelvins", "GK", "megakelvin", "megakelvins", "MK", "kilokelvin", "kilokelvins", "kK", "hectokelvin", "hectokelvins", "hK", "decakelvin", "decakelvins", "daK", "decikelvin", "decikelvins", "dK", "centikelvin", "centikelvins", "cK", "millikelvin", "millikelvins", "mK", "microkelvin", "microkelvins", "μK", "µK", "nanokelvin", "nanokelvins", "nK", "picokelvin", "picokelvins", "pK", "femtokelvin", "femtokelvins", "fK", "fahrenheit", "F", "celsius", "C", "rankine", "R",
|
||||
"second", "seconds", "s", "petasecond", "petaseconds", "Ps", "terasecond", "teraseconds", "Ts", "gigasecond", "gigaseconds", "Gs", "megasecond", "megaseconds", "Ms", "kilosecond", "kiloseconds", "ks", "hectosecond", "hectoseconds", "hs", "decasecond", "decaseconds", "das", "decisecond", "deciseconds", "ds", "centisecond", "centiseconds", "cs", "millisecond", "milliseconds", "ms", "microsecond", "microseconds", "μs", "µs", "nanosecond", "nanoseconds", "ns", "picosecond", "picoseconds", "ps", "femtosecond", "femtoseconds", "fs", "minute", "minutes", "min", "hour", "hours", "h", "milliday", "millidays", "md", "day", "days", "d", "week", "weeks", "wk", "fortnight", "fortnights", "fn", "month", "months", "mo", "year", "years", "a", "y", "yr", "decade", "decades", "dec", "century", "centuries", "millennium", "millennia", "moment", "moments", "shake", "shakes", "time unit", "TU", "svedberg", "svedbergs", "S",
|
||||
"cubic meter", "cubic meters", "cubic metre", "cubic metres", "stere", "steres", "m³", "m3", "cubic petameter", "cubic petameters", "Pm3", "Pm³", "cubic terameter", "cubic terameters", "Tm3", "Tm³", "cubic gigameter", "cubic gigameters", "Gm3", "Gm³", "cubic megameter", "cubic megameters", "Mm3", "Mm³", "cubic kilometer", "cubic kilometers", "km3", "km³", "cubic hectometer", "cubic hectometers", "hm3", "hm³", "cubic decameter", "cubic decameters", "dam3", "dam³", "cubic decimeter", "cubic decimeters", "dm3", "dm³", "cubic centimeter", "cubic centimeters", "cm3", "cm³", "cubic millimeter", "cubic millimeters", "mm3", "mm³", "cubic micrometer", "cubic micrometers", "μm3", "µm3", "μm³", "µm³", "cubic nanometer", "cubic nanometers", "nm3", "nm³", "cubic picometer", "cubic picometers", "pm3", "pm³", "cubic femtometer", "cubic femtometers", "fm3", "fm³", "liter", "liters", "litre", "litres", "l", "L", "petaliter", "petaliters", "petalitre", "petalitres", "Pl", "PL", "teraliter", "teraliters", "teralitre", "teralitres", "Tl", "TL", "gigaliter", "gigaliters", "gigalitre", "gigalitres", "Gl", "GL", "megaliter", "megaliters", "megalitre", "megalitres", "Ml", "ML", "kiloliter", "kiloliters", "kilolitre", "kilolitres", "kl", "kL", "hectoliter", "hectoliters", "hectolitre", "hectolitres", "hl", "hL", "decaliter", "decaliters", "decalitre", "decalitres", "dal", "daL", "deciliter", "deciliters", "decilitre", "decilitres", "dl", "dL", "centiliter", "centiliters", "centilitre", "centilitres", "cl", "cL", "milliliter", "milliliters", "millilitre", "millilitres", "ml", "mL", "microliter", "microliters", "microlitre", "microlitres", "μl", "µl", "μL", "µL", "nanoliter", "nanoliters", "nanolitre", "nanolitres", "nl", "nL", "picoliter", "picoliters", "picolitre", "picolitres", "pl", "pL", "femtoliter", "femtoliters", "femtolitre", "femtolitres", "fl", "fL", "cubic mile", "cubic miles", "cu mi", "mi3", "mi³", "acre-foot", "acre-feet", "ac⋅ft", "ac ft", "cubic yard", "cubic yards", "cu yd", "yd3", "yd³", "cubic foot", "cubic feet", "cu ft", "ft3", "ft³", "board foot", "board feet", "cubic inch", "cubic inches", "cu in", "in3", "in³", "measurement ton", "measurement tons", "MTON", "imperial barrel", "imperial barrels", "imp bbl", "imperial bushel", "imperial bushels", "imp bsh", "imp bu", "imperial peck", "imperial pecks", "pk", "imp pk", "imperial gallon", "imperial gallons", "imp gal", "imperial quart", "imperial quarts", "imp qt", "imperial pint", "imperial pints", "imp pt", "imperial fluid ounce", "imperial fluid ounces", "imp fl oz", "teaspoon", "teaspoons", "US teaspoon", "US teaspoons", "tsp", "tablespoon", "tablespoons", "US tablespoon", "US tablespoons", "tbsp", "US fluid ounce", "US fluid ounces", "fl oz", "fl. oz.", "oz. fl.", "cup", "cups", "c", "US legal cup", "US legal cups", "US lc", "pint", "pints", "US liquid pint", "US liquid pints", "pt", "p", "quart", "quarts", "US liquid quart", "US liquid quarts", "qt", "gallon", "gallons", "US liquid gallon", "US liquid gallons", "gal", "US bushel", "US bushels", "US bsh", "US bu", "US peck", "US pk", "US dry gallon", "US dry gal", "US dry barrel", "US dry barrels", "US dry bbl", "US dry quart", "US dry qt", "US dry pint", "US dry pt"
|
||||
]
|
||||
@@ -0,0 +1,32 @@
|
||||
import { Calculator } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Many Units Converter',
|
||||
path: '/many-units-converter',
|
||||
description: 'Convert all kind of units',
|
||||
keywords: [
|
||||
'units',
|
||||
'uom',
|
||||
'metric',
|
||||
'imperial',
|
||||
'measurement',
|
||||
'mass',
|
||||
'weight',
|
||||
'angle',
|
||||
'area',
|
||||
'data',
|
||||
'energy',
|
||||
'force',
|
||||
'length',
|
||||
'mass',
|
||||
'power',
|
||||
'pressure',
|
||||
'temperature',
|
||||
'time',
|
||||
'volume',
|
||||
'converter'],
|
||||
component: () => import('./many-units-converter.vue'),
|
||||
icon: Calculator,
|
||||
createdAt: new Date('2024-08-15'),
|
||||
});
|
||||
@@ -0,0 +1,64 @@
|
||||
<script setup lang="ts">
|
||||
import _ from 'lodash';
|
||||
import { type Unit, convertMany } from 'convert';
|
||||
import allUnits from './allunits.json';
|
||||
|
||||
const allUnitsSorted = _.uniq(allUnits).sort();
|
||||
|
||||
const inputExpression = ref('');
|
||||
const outputUnit = ref('');
|
||||
const result = computed(() => {
|
||||
try {
|
||||
const best = convertMany(inputExpression.value).to('best');
|
||||
try {
|
||||
return {
|
||||
best,
|
||||
selected: outputUnit.value
|
||||
? convertMany(inputExpression.value).to(outputUnit.value as Unit)
|
||||
: '',
|
||||
};
|
||||
}
|
||||
catch (e: any) {
|
||||
return {
|
||||
best,
|
||||
error: e.toString(),
|
||||
};
|
||||
}
|
||||
}
|
||||
catch (e: any) {
|
||||
return {
|
||||
error: e.toString(),
|
||||
};
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-input-text
|
||||
v-model:value="inputExpression"
|
||||
label="Units expression"
|
||||
placeholder="Please enter an unit expression, ie '1d 2m'"
|
||||
mb-2
|
||||
/>
|
||||
<c-select
|
||||
v-model:value="outputUnit"
|
||||
label-position="left"
|
||||
label-width="100px"
|
||||
label="Target Unit:"
|
||||
:options="allUnitsSorted"
|
||||
placeholder="Select the target unit"
|
||||
searchable
|
||||
/>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<c-card v-if="result.best" title="Result" mb-2>
|
||||
<input-copyable label="Best Target Unit" :value="result.best" mb-1 />
|
||||
<input-copyable v-if="result.selected" :label="`Selected Target Unit (${outputUnit})`" :value="result.selected" />
|
||||
</c-card>
|
||||
<c-alert v-if="result.error && inputExpression">
|
||||
{{ result.error }}
|
||||
</c-alert>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Atom } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Mass Units Converter',
|
||||
path: '/mass-converter',
|
||||
description: 'Convert values between mass units',
|
||||
keywords: ['mass', 'converter'],
|
||||
component: () => import('./mass-converter.vue'),
|
||||
icon: Atom,
|
||||
createdAt: new Date('2024-08-15'),
|
||||
});
|
||||
@@ -0,0 +1,38 @@
|
||||
<script setup lang="ts">
|
||||
import UnitsConverter from '@/components/UnitsConverter.vue';
|
||||
|
||||
const supportedUnits = {
|
||||
'g': 'gram',
|
||||
'Pg': 'petagram',
|
||||
'Tg': 'teragram',
|
||||
'Gg': 'gigagram',
|
||||
'Mg': 'megagram',
|
||||
'kg': 'kilogram',
|
||||
'hg': 'hectogram',
|
||||
'dag': 'decagram',
|
||||
'dg': 'decigram',
|
||||
'cg': 'centigram',
|
||||
'mg': 'milligram',
|
||||
'μg': 'microgram',
|
||||
'ng': 'nanogram',
|
||||
'pg': 'picogram',
|
||||
'fg': 'femtogram',
|
||||
'tonne': 'tonne',
|
||||
't': 'metric ton',
|
||||
'kt': 'kilotonne',
|
||||
'Mt': 'megatonne',
|
||||
'Gt': 'gigatonne',
|
||||
'lb': 'pound',
|
||||
'st': 'stone',
|
||||
'oz': 'ounce',
|
||||
'short ton': 'short ton',
|
||||
'US ton': 'US ton',
|
||||
'long ton': 'long ton',
|
||||
'imperial ton': 'imperial ton',
|
||||
'displacement ton': 'displacement ton',
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UnitsConverter default-unit="g" :supported-units="supportedUnits" label-width="150px" />
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Power } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Power Converter',
|
||||
path: '/power-converter',
|
||||
description: 'Convert values between power units',
|
||||
keywords: ['power', 'converter'],
|
||||
component: () => import('./power-converter.vue'),
|
||||
icon: Power,
|
||||
createdAt: new Date('2024-08-15'),
|
||||
});
|
||||
@@ -0,0 +1,27 @@
|
||||
<script setup lang="ts">
|
||||
import UnitsConverter from '@/components/UnitsConverter.vue';
|
||||
|
||||
const supportedUnits = {
|
||||
W: 'watt',
|
||||
PW: 'petawatt',
|
||||
TW: 'terawatt',
|
||||
GW: 'gigawatt',
|
||||
MW: 'megawatt',
|
||||
kW: 'kilowatt',
|
||||
hW: 'hectowatt',
|
||||
daW: 'decawatt',
|
||||
dW: 'deciwatt',
|
||||
cW: 'centiwatt',
|
||||
mW: 'milliwatt',
|
||||
μW: 'microwatt',
|
||||
nW: 'nanowatt',
|
||||
pW: 'picowatt',
|
||||
fW: 'femtowatt',
|
||||
horsepower: 'horsepower',
|
||||
hp: 'mechanical horsepower',
|
||||
}; ;
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UnitsConverter default-unit="W" :supported-units="supportedUnits" label-width="150px" />
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Atom } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Pressure Units Converter',
|
||||
path: '/pressure-converter',
|
||||
description: 'Convert values between pressure units',
|
||||
keywords: ['pressure', 'converter'],
|
||||
component: () => import('./pressure-converter.vue'),
|
||||
icon: Atom,
|
||||
createdAt: new Date('2024-08-15'),
|
||||
});
|
||||
@@ -0,0 +1,45 @@
|
||||
<script setup lang="ts">
|
||||
import UnitsConverter from '@/components/UnitsConverter.vue';
|
||||
|
||||
const supportedUnits = {
|
||||
'Pa': 'pascal',
|
||||
'PPa': 'pettapascal',
|
||||
'TPa': 'terapascal',
|
||||
'GPa': 'gigapascal',
|
||||
'MPa': 'megapascal',
|
||||
'kPa': 'kilopascal',
|
||||
'hPa': 'hectopascal',
|
||||
'daPa': 'decapascal',
|
||||
'dPa': 'decipascal',
|
||||
'cPa': 'centipascal',
|
||||
'mPa': 'millipascal',
|
||||
'μPa': 'micropascal',
|
||||
'nPa': 'nanopascal',
|
||||
'pPa': 'picopascal',
|
||||
'fPa': 'femtopascal',
|
||||
'bar': 'bar',
|
||||
'Pbar': 'petabar',
|
||||
'Tbar': 'terabar',
|
||||
'Gbar': 'gigabar',
|
||||
'Mbar': 'megabar',
|
||||
'kbar': 'kilobar',
|
||||
'hbar': 'hectobar',
|
||||
'dabar': 'decabar',
|
||||
'dbar': 'decibar',
|
||||
'cbar': 'centibar',
|
||||
'mbar': 'millibar',
|
||||
'μbar': 'microbar',
|
||||
'nbar': 'nanobar',
|
||||
'pbar': 'picobar',
|
||||
'fbar': 'femtobar',
|
||||
'Torr': 'torr',
|
||||
'mTorr': 'millitorr',
|
||||
'atm': 'atmosphere',
|
||||
'psi': 'pound per square inch',
|
||||
'lbf/in2': 'lbf/in2',
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UnitsConverter default-unit="Pa" :supported-units="supportedUnits" label-width="150px" />
|
||||
</template>
|
||||
@@ -4,7 +4,7 @@ import { defineTool } from '../tool';
|
||||
export const tool = defineTool({
|
||||
name: 'Regex Tester',
|
||||
path: '/regex-tester',
|
||||
description: 'Regex Tester',
|
||||
description: 'Test your regular expressions with sample text.',
|
||||
keywords: ['regex', 'tester', 'sample', 'expression'],
|
||||
component: () => import('./regex-tester.vue'),
|
||||
icon: Language,
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
declare module 'korean-unpacker' {
|
||||
function unpack(text: string): string;
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,137 +0,0 @@
|
||||
[
|
||||
{
|
||||
"lang": "(International)",
|
||||
"input": "TesYW 123 ? = !@",
|
||||
"output": "TANGO echo sierra YANKEE WHISKEY (SPACE) ONE TWO THREE (SPACE) (?) (SPACE) (=) (SPACE) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "(France)",
|
||||
"input": "TesYW 123 ? = !@",
|
||||
"output": "THÉRÈSE eugène suzanne YVONNE WILLIAM (ESPACE) UN DEUX TROIS (ESPACE) (?) (ESPACE) (=) (ESPACE) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "(Belgium)",
|
||||
"input": "TesYW 123 ? = !@",
|
||||
"output": "TELEFOON emiel sofie YVONNE WATERLOO (ESPACE) (1) (2) (3) (ESPACE) (?) (ESPACE) (=) (ESPACE) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "(Switzerland)",
|
||||
"input": "TesYW 123 ? = !@",
|
||||
"output": "THÉRÈSE émile suzanne (Y) WILLIAM (ESPACE) (1) (2) (3) (ESPACE) (?) (ESPACE) (=) (ESPACE) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "(Québec)",
|
||||
"input": "TesYW 123 ? = !@",
|
||||
"output": "THOMAS édouard samuel (Y) WILLIAM (ESPACE) (1) (2) (3) (ESPACE) (?) (ESPACE) (=) (ESPACE) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "(Germany, 2022)",
|
||||
"input": "TesYü 123 ? = !@",
|
||||
"output": "TÜBINGEN essen salzwedel YPSILON umlaut-unna (LEERZEICHEN) (1) (2) (3) (LEERZEICHEN) (?) (LEERZEICHEN) (=) (LEERZEICHEN) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "(Austria)",
|
||||
"input": "TesYW 123 ? = !@",
|
||||
"output": "THEODOR emil samuel/siegfried YPSILON WILHELM (LEERZEICHEN) (1) (2) (3) (LEERZEICHEN) (?) (LEERZEICHEN) (=) (LEERZEICHEN) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "(Germany, informal, 2022)",
|
||||
"input": "TesYü 123 ? = !@",
|
||||
"output": "THEODOR emil samuel YPSILON überfluss (LEERZEICHEN) (1) (2) (3) (LEERZEICHEN) (?) (LEERZEICHEN) (=) (LEERZEICHEN) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "(Netherlands)",
|
||||
"input": "TesY huis rij 123 ? = !@",
|
||||
"output": "THEODOR eduard simon YPSILON (SPATIE) hendrik utrecht izaak simon (SPATIE) richard/rudolf ijmuiden/ijsbrand (SPATIE) (1) (2) (3) (SPATIE) (?) (SPATIE) (=) (SPATIE) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "Italian",
|
||||
"input": "TesYj 123 ? = !@",
|
||||
"output": "TORINO empoli savona YORK, YOGURT jolly/juventus (SPAZIO) (1) (2) (3) (SPAZIO) (?) (SPAZIO) (=) (SPAZIO) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "Spanish",
|
||||
"input": "TesYñj 123 ? = !@",
|
||||
"output": "TOLEDO españa sábado YOLANDA ñoño josé (ESPACIO) (1) (2) (3) (ESPACIO) (?) (ESPACIO) (=) (ESPACIO) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "(Brazil)",
|
||||
"input": "TesYÇj 123 ? = !@",
|
||||
"output": "TATU estrela saci YOLANDA (Ç) josé (ESPAÇO) (1) (2) (3) (ESPAÇO) (?) (ESPAÇO) (=) (ESPAÇO) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "(Portugal)",
|
||||
"input": "TesYúj 123 ? = !@",
|
||||
"output": "TAVIRA évora setúbal YORK (ú) josé (ESPAÇO) (1) (2) (3) (ESPAÇO) (?) (ESPAÇO) (=) (ESPAÇO) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "Swedish",
|
||||
"input": "TesYj 123 ? = !@",
|
||||
"output": "TORE erik sigurd YNGVE johan (UTRYMME) (1) (2) (3) (UTRYMME) (?) (UTRYMME) (=) (UTRYMME) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "Danish",
|
||||
"input": "TesÆYj 123 ? = !@",
|
||||
"output": "THEODOR erik søren ÆGIR YRSA johan (MELLEMRUMSTEGN) (1) (2) (3) (MELLEMRUMSTEGN) (?) (MELLEMRUMSTEGN) (=) (MELLEMRUMSTEGN) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "Norwegian",
|
||||
"input": "TesYÅj 123 ? = !@",
|
||||
"output": "TEODOR edith sigrid YNGLING ÅSE johan (MELLOMROMSTEGN) (1) (2) (3) (MELLOMROMSTEGN) (?) (MELLOMROMSTEGN) (=) (MELLOMROMSTEGN) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "Finnish",
|
||||
"input": "TesYj 123 ? = !@",
|
||||
"output": "TYYNE eemeli sakari YRJÖ jussi (VÄLILYÖNTI) (1) (2) (3) (VÄLILYÖNTI) (?) (VÄLILYÖNTI) (=) (VÄLILYÖNTI) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "Turkish",
|
||||
"input": "TesYj 123 ? = !@",
|
||||
"output": "TOKAT edirne sinop YOZGAT jandarma (BOŞLUK) (1) (2) (3) (BOŞLUK) (?) (BOŞLUK) (=) (BOŞLUK) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "Romanian",
|
||||
"input": "TesYj 123 ? = !@",
|
||||
"output": "TUDOR elena sandu I-GREC jean (SPAȚIU) (1) (2) (3) (SPAȚIU) (?) (SPAȚIU) (=) (SPAȚIU) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "Czech",
|
||||
"input": "TesYj 123 ? = !@",
|
||||
"output": "TOMÁŠ emil svatopluk YPSILON josef (PROSTOROVÝ) (1) (2) (3) (PROSTOROVÝ) (?) (PROSTOROVÝ) (=) (PROSTOROVÝ) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "Yugoslav",
|
||||
"input": "TesYČj 123 ? = !@",
|
||||
"output": "TUZLA evropa skopje IPSILON ČAČAK jadran (PRIESTOROVÝ) (1) (2) (3) (PRIESTOROVÝ) (?) (PRIESTOROVÝ) (=) (PRIESTOROVÝ) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "Serbian",
|
||||
"input": "TesYČj 123 ? = !@",
|
||||
"output": "TIMOK evropa sava IPSILON ČAČAK jadran (PROSTORNI) (1) (2) (3) (PROSTORNI) (?) (PROSTORNI) (=) (PROSTORNI) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "Slovene",
|
||||
"input": "TesYČj 123 ? = !@",
|
||||
"output": "TRIGLAV evropa soča IPSILON ČATEŽ jadran (PRESLEDKA) (1) (2) (3) (PRESLEDKA) (?) (PRESLEDKA) (=) (PRESLEDKA) (!) (@)"
|
||||
},
|
||||
{
|
||||
"lang": "Russian",
|
||||
"input": "Зинаида !.?",
|
||||
"output": "ЗИНАИДА иван николай анна иван дмитрий анна ( ) (!) (.) (?)"
|
||||
},
|
||||
{
|
||||
"lang": "Korean",
|
||||
"input": "안녕하세요 여러분",
|
||||
"output": "잉어 아버지 나폴리 나폴리 연못 잉어 한강 아버지 서울 엑스레이 잉어 요지경 ( ) 잉어 연못 로마 어머니 바가지 우편 나폴리"
|
||||
},
|
||||
{
|
||||
"lang": "Greek",
|
||||
"input": "τίγρης !?",
|
||||
"output": "τίγρης (ί) γαλή ρήγας ηρώ σοφός ( ) (!) (?)"
|
||||
},
|
||||
{
|
||||
"lang": "Japanese",
|
||||
"input": "数字のひと おしまいのン ?:",
|
||||
"output": "(数) (字) 野原のノ 飛行機のヒ 東京のト ( ) 大阪のオ 新聞のシ マッチのマ いろはのイ 野原のノ おしまいのン ( ) (?) (:)"
|
||||
}
|
||||
]
|
||||
@@ -1,29 +1,28 @@
|
||||
export const allLanguagesAndCountries = [
|
||||
'(International)',
|
||||
'(France)',
|
||||
'(Belgium)',
|
||||
'(Switzerland)',
|
||||
'(Québec)',
|
||||
'(Germany, 2022)',
|
||||
'(Austria)',
|
||||
'(Germany, informal, 2022)',
|
||||
'(Netherlands)',
|
||||
'Italian',
|
||||
'Spanish',
|
||||
'(Brazil)',
|
||||
'(Portugal)',
|
||||
'Swedish',
|
||||
'Danish',
|
||||
'Norwegian',
|
||||
'Finnish',
|
||||
'Turkish',
|
||||
'Romanian',
|
||||
'Czech',
|
||||
'Yugoslav',
|
||||
'Serbian',
|
||||
'Slovene',
|
||||
'Russian',
|
||||
'Korean',
|
||||
'Greek',
|
||||
'Japanese',
|
||||
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',
|
||||
];
|
||||
@@ -1,160 +0,0 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { textToNatoAlphabet } from './text-to-nato-alphabet.service';
|
||||
|
||||
const TestCase_TestYW = 'TesYW 123 ? = !@';
|
||||
const TestCase_TestYJ = 'TesYj 123 ? = !@';
|
||||
const natoTests = [
|
||||
{
|
||||
lang: '(International)',
|
||||
input: TestCase_TestYW,
|
||||
output: 'TANGO echo sierra YANKEE WHISKEY (SPACE) (digit 1) (digit 2) (digit 3) (SPACE) (punctuation ?) (SPACE) (punctuation =) (SPACE) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: '(France)',
|
||||
input: TestCase_TestYW,
|
||||
output: 'THÉRÈSE eugène suzanne YVONNE WILLIAM (ESPACE) (digit 1) (digit 2) (digit 3) (ESPACE) (punctuation ?) (ESPACE) (punctuation =) (ESPACE) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: '(Belgium)',
|
||||
input: TestCase_TestYW,
|
||||
output: 'TELEFOON emiel sofie YVONNE WATERLOO (ESPACE) (digit 1) (digit 2) (digit 3) (ESPACE) (punctuation ?) (ESPACE) (punctuation =) (ESPACE) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: '(Switzerland)',
|
||||
input: TestCase_TestYW,
|
||||
output: 'THÉRÈSE émile suzanne (Y) WILLIAM (ESPACE) (digit 1) (digit 2) (digit 3) (ESPACE) (punctuation ?) (ESPACE) (punctuation =) (ESPACE) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: '(Québec)',
|
||||
input: TestCase_TestYW,
|
||||
output: 'THOMAS édouard samuel (Y) WILLIAM (ESPACE) (digit 1) (digit 2) (digit 3) (ESPACE) (punctuation ?) (ESPACE) (punctuation =) (ESPACE) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: '(Germany, 2022)',
|
||||
input: 'TesYü 123 ? = !@',
|
||||
output: 'TÜBINGEN essen salzwedel YPSILON umlaut-unna (LEERZEICHEN) (digit 1) (digit 2) (digit 3) (LEERZEICHEN) (punctuation ?) (LEERZEICHEN) (punctuation =) (LEERZEICHEN) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: '(Austria)',
|
||||
input: TestCase_TestYW,
|
||||
output: 'THEODOR emil samuel/siegfried YPSILON WILHELM (LEERZEICHEN) (digit 1) (digit 2) (digit 3) (LEERZEICHEN) (punctuation ?) (LEERZEICHEN) (punctuation =) (LEERZEICHEN) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: '(Germany, informal, 2022)',
|
||||
input: 'TesYü 123 ? = !@',
|
||||
output: 'THEODOR emil samuel YPSILON überfluss (LEERZEICHEN) (digit 1) (digit 2) (digit 3) (LEERZEICHEN) (punctuation ?) (LEERZEICHEN) (punctuation =) (LEERZEICHEN) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: '(Netherlands)',
|
||||
input: 'TesY huis rij 123 ? = !@',
|
||||
output: 'THEODOR eduard simon YPSILON (SPATIE) hendrik utrecht izaak simon (SPATIE) richard/rudolf ijmuiden/ijsbrand (SPATIE) (digit 1) (digit 2) (digit 3) (SPATIE) (punctuation ?) (SPATIE) (punctuation =) (SPATIE) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: 'Italian',
|
||||
input: TestCase_TestYJ,
|
||||
output: 'TORINO empoli savona YORK, YOGURT jolly/juventus (SPAZIO) (digit 1) (digit 2) (digit 3) (SPAZIO) (punctuation ?) (SPAZIO) (punctuation =) (SPAZIO) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: 'Spanish',
|
||||
input: 'TesYñj 123 ? = !@',
|
||||
output: 'TOLEDO españa sábado YOLANDA ñoño josé (ESPACIO) (digit 1) (digit 2) (digit 3) (ESPACIO) (punctuation ?) (ESPACIO) (punctuation =) (ESPACIO) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: '(Brazil)',
|
||||
input: 'TesYÇj 123 ? = !@',
|
||||
output: 'TATU estrela saci YOLANDA (Ç) josé (ESPAÇO) (digit 1) (digit 2) (digit 3) (ESPAÇO) (punctuation ?) (ESPAÇO) (punctuation =) (ESPAÇO) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: '(Portugal)',
|
||||
input: 'TesYúj 123 ? = !@',
|
||||
output: 'TAVIRA évora setúbal YORK (ú) josé (ESPAÇO) (digit 1) (digit 2) (digit 3) (ESPAÇO) (punctuation ?) (ESPAÇO) (punctuation =) (ESPAÇO) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: 'Swedish',
|
||||
input: TestCase_TestYJ,
|
||||
output: 'TORE erik sigurd YNGVE johan (UTRYMME) (digit 1) (digit 2) (digit 3) (UTRYMME) (punctuation ?) (UTRYMME) (punctuation =) (UTRYMME) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: 'Danish',
|
||||
input: 'TesÆYj 123 ? = !@',
|
||||
output: 'THEODOR erik søren ÆGIR YRSA johan (MELLEMRUMSTEGN) (digit 1) (digit 2) (digit 3) (MELLEMRUMSTEGN) (punctuation ?) (MELLEMRUMSTEGN) (punctuation =) (MELLEMRUMSTEGN) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: 'Norwegian',
|
||||
input: 'TesYÅj 123 ? = !@',
|
||||
output: 'TEODOR edith sigrid YNGLING ÅSE johan (MELLOMROMSTEGN) (digit 1) (digit 2) (digit 3) (MELLOMROMSTEGN) (punctuation ?) (MELLOMROMSTEGN) (punctuation =) (MELLOMROMSTEGN) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: 'Finnish',
|
||||
input: TestCase_TestYJ,
|
||||
output: 'TYYNE eemeli sakari YRJÖ jussi (VÄLILYÖNTI) (digit 1) (digit 2) (digit 3) (VÄLILYÖNTI) (punctuation ?) (VÄLILYÖNTI) (punctuation =) (VÄLILYÖNTI) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: 'Turkish',
|
||||
input: TestCase_TestYJ,
|
||||
output: 'TOKAT edirne sinop YOZGAT jandarma (BOŞLUK) (digit 1) (digit 2) (digit 3) (BOŞLUK) (punctuation ?) (BOŞLUK) (punctuation =) (BOŞLUK) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: 'Romanian',
|
||||
input: TestCase_TestYJ,
|
||||
output: 'TUDOR elena sandu I-GREC jean (SPAȚIU) (digit 1) (digit 2) (digit 3) (SPAȚIU) (punctuation ?) (SPAȚIU) (punctuation =) (SPAȚIU) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: 'Czech',
|
||||
input: TestCase_TestYJ,
|
||||
output: 'TOMÁŠ emil svatopluk YPSILON josef (PROSTOROVÝ) (digit 1) (digit 2) (digit 3) (PROSTOROVÝ) (punctuation ?) (PROSTOROVÝ) (punctuation =) (PROSTOROVÝ) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: 'Yugoslav',
|
||||
input: 'TesYČj 123 ? = !@',
|
||||
output: 'TUZLA evropa skopje IPSILON ČAČAK jadran (PRIESTOROVÝ) (digit 1) (digit 2) (digit 3) (PRIESTOROVÝ) (punctuation ?) (PRIESTOROVÝ) (punctuation =) (PRIESTOROVÝ) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: 'Serbian',
|
||||
input: 'TesYČj 123 ? = !@',
|
||||
output: 'TIMOK evropa sava IPSILON ČAČAK jadran (PROSTORNI) (digit 1) (digit 2) (digit 3) (PROSTORNI) (punctuation ?) (PROSTORNI) (punctuation =) (PROSTORNI) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: 'Slovene',
|
||||
input: 'TesYČj 123 ? = !@',
|
||||
output: 'TRIGLAV evropa soča IPSILON ČATEŽ jadran (PRESLEDKA) (digit 1) (digit 2) (digit 3) (PRESLEDKA) (punctuation ?) (PRESLEDKA) (punctuation =) (PRESLEDKA) (punctuation !) (punctuation @)',
|
||||
},
|
||||
{
|
||||
lang: 'Russian',
|
||||
input: 'Зинаида !.?',
|
||||
output: 'ЗИНАИДА иван николай анна иван дмитрий анна ( ) (punctuation !) (punctuation .) (punctuation ?)',
|
||||
},
|
||||
{
|
||||
lang: 'Korean',
|
||||
input: '안녕하세요 여러분',
|
||||
output: '잉어 아버지 나폴리 나폴리 연못 잉어 한강 아버지 서울 엑스레이 잉어 요지경 ( ) 잉어 연못 로마 어머니 바가지 우편 나폴리',
|
||||
},
|
||||
{
|
||||
lang: 'Greek',
|
||||
input: 'τίγρης !?',
|
||||
output: 'τίγρης (ί) γαλή ρήγας ηρώ σοφός ( ) (punctuation !) (punctuation ?)',
|
||||
},
|
||||
{
|
||||
lang: 'Japanese',
|
||||
input: '数字のひと おしまいのン ?:',
|
||||
output: '(数) (字) 野原のノ 飛行機のヒ 東京のト ( ) 大阪のオ 新聞のシ マッチのマ いろはのイ 野原のノ おしまいのン ( ) (punctuation ?) (punctuation :)',
|
||||
},
|
||||
];
|
||||
|
||||
describe('text-to-nato', () => {
|
||||
it('Convert text to NATO', async () => {
|
||||
for (const nato of natoTests) {
|
||||
const { lang, input, output } = nato;
|
||||
expect(textToNatoAlphabet({ text: input, langOrCountry: lang })).to.equal(output);
|
||||
}
|
||||
});
|
||||
|
||||
it('Convert text to NATO (includes punctuations and digits names)', async () => {
|
||||
expect(textToNatoAlphabet({ text: 'a 1 2 3 ! % ? ;', langOrCountry: '(France)', useDigitsNames: true, usePunctuationsNames: true })).to.equal(
|
||||
'anatole (ESPACE) {digit 1 => un} (ESPACE) {digit 2 => deux} (ESPACE) {digit 3 => trois} (ESPACE) {punctuation ! => point d\'exclamation} (ESPACE) {punctuation % => pour cent} (ESPACE) {punctuation ? => point d\'interrogation} (ESPACE) {punctuation ; => point-virgule}');
|
||||
expect(textToNatoAlphabet({ text: 'и 1 2 3 ! % ? ;', langOrCountry: 'Russian', useDigitsNames: true, usePunctuationsNames: true })).to.equal(
|
||||
'иван ( ) {digit 1 => один (odin)} ( ) {digit 2 => два (dva)} ( ) {digit 3 => три (tri)} ( ) {punctuation ! => восклицательный знак (vosklitsatel\'nyy znak)} ( ) {punctuation % => процент (protsent)} ( ) {punctuation ? => вопросительный знак (voprositel\'nyy znak)} ( ) {punctuation ; => точка с запятой (tochka s zapyatoy)}');
|
||||
expect(textToNatoAlphabet({ text: 'TesYj 1 2 3 ! % ? ;', langOrCountry: 'Swedish', useDigitsNames: true, usePunctuationsNames: true })).to.equal(
|
||||
'TORE erik sigurd YNGVE johan (UTRYMME) {digit 1 => ett} (UTRYMME) {digit 2 => två} (UTRYMME) {digit 3 => tre} (UTRYMME) {punctuation ! => utropstecken} (UTRYMME) {punctuation % => procent} (UTRYMME) {punctuation ? => frågetecken} (UTRYMME) {punctuation ; => semikolon}');
|
||||
});
|
||||
});
|
||||
@@ -1,80 +1,19 @@
|
||||
import hangul from 'korean-unpacker';
|
||||
import allAlphabets from './nato.alphabets.json';
|
||||
|
||||
type AllAlphabetsKeys = keyof typeof allAlphabets[0];
|
||||
import { natoAlphabet } from './text-to-nato-alphabet.constants';
|
||||
|
||||
export { textToNatoAlphabet };
|
||||
|
||||
function isPunctuation(char: string) {
|
||||
const punctuations = '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~';
|
||||
return punctuations.includes(char);
|
||||
}
|
||||
function isDigit(char: string) {
|
||||
const digits = '0123456789';
|
||||
return digits.includes(char);
|
||||
function getLetterPositionInAlphabet({ letter }: { letter: string }) {
|
||||
return letter.toLowerCase().charCodeAt(0) - 'a'.charCodeAt(0);
|
||||
}
|
||||
|
||||
function escapeRegExp(string: string) {
|
||||
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
|
||||
}
|
||||
|
||||
function textToNatoAlphabet({
|
||||
text, langOrCountry = '(International)',
|
||||
useDigitsNames = false, usePunctuationsNames = false,
|
||||
}: {
|
||||
text: string
|
||||
langOrCountry: string
|
||||
useDigitsNames?: boolean
|
||||
usePunctuationsNames?: boolean
|
||||
}) {
|
||||
const getNatoWord = (searchChar: string) => {
|
||||
const alphabetLetter = allAlphabets.find(letter => letter.Letter === searchChar);
|
||||
if (alphabetLetter && alphabetLetter[langOrCountry as AllAlphabetsKeys]) {
|
||||
return alphabetLetter[langOrCountry as AllAlphabetsKeys] || '';
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
const charRegex = new RegExp(
|
||||
`(${
|
||||
allAlphabets
|
||||
.sort((a, b) => b.Letter.length - a.Letter.length)
|
||||
.filter(a => a[langOrCountry as AllAlphabetsKeys])
|
||||
.map(a => escapeRegExp(a.Letter))
|
||||
.join('|')
|
||||
}|.)`,
|
||||
'gi');
|
||||
return hangul.unpack(text)
|
||||
.replace(/\s+/g, ' ')
|
||||
.replace(
|
||||
charRegex,
|
||||
(character) => {
|
||||
const searchChar = character.toUpperCase();
|
||||
const isUpper = character[0].toUpperCase() === character[0];
|
||||
const natoWord = getNatoWord(searchChar);
|
||||
|
||||
if (isDigit(searchChar)) {
|
||||
if (useDigitsNames) {
|
||||
return ` {digit ${searchChar} => ${natoWord}}`;
|
||||
}
|
||||
else {
|
||||
return ` (digit ${character})`;
|
||||
}
|
||||
}
|
||||
if (isPunctuation(searchChar)) {
|
||||
if (usePunctuationsNames) {
|
||||
return ` {punctuation ${searchChar} => ${natoWord}}`;
|
||||
}
|
||||
else {
|
||||
return ` (punctuation ${character})`;
|
||||
}
|
||||
}
|
||||
|
||||
if (natoWord) {
|
||||
return ` ${isUpper ? natoWord.toUpperCase() : natoWord.toLowerCase()}`;
|
||||
}
|
||||
|
||||
return ` (${character})`;
|
||||
})
|
||||
.trim();
|
||||
function textToNatoAlphabet({ text }: { text: string }) {
|
||||
return text
|
||||
.split('')
|
||||
.map((character) => {
|
||||
const alphabetIndex = getLetterPositionInAlphabet({ letter: character });
|
||||
const natoWord = natoAlphabet[alphabetIndex];
|
||||
|
||||
return natoWord ?? character;
|
||||
})
|
||||
.join(' ');
|
||||
}
|
||||
@@ -1,33 +1,14 @@
|
||||
<script setup lang="ts">
|
||||
import { textToNatoAlphabet } from './text-to-nato-alphabet.service';
|
||||
import { allLanguagesAndCountries } from './text-to-nato-alphabet.constants';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
|
||||
const lang = useStorage('text-to-nato:lang', '(International)');
|
||||
const input = ref('');
|
||||
const useDigitsNames = useStorage('text-to-nato:digits', false);
|
||||
const usePunctuationsNames = useStorage('text-to-nato:puncts', false);
|
||||
const natoText = computed(() => textToNatoAlphabet({ text: input.value, langOrCountry: lang.value }));
|
||||
const natoText = computed(() => textToNatoAlphabet({ text: input.value }));
|
||||
const { copy } = useCopy({ source: natoText, text: 'NATO alphabet string copied.' });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-select
|
||||
v-model:value="lang"
|
||||
:options="allLanguagesAndCountries"
|
||||
searchable
|
||||
/>
|
||||
|
||||
<div flex justify-center>
|
||||
<n-form-item label="Use digits pronunciation">
|
||||
<n-checkbox v-model:checked="usePunctuationsNames" />
|
||||
</n-form-item>
|
||||
<n-form-item label="Use punctuations pronunciation">
|
||||
<n-checkbox v-model:checked="useDigitsNames" />
|
||||
</n-form-item>
|
||||
</div>
|
||||
|
||||
<c-input-text
|
||||
v-model:value="input"
|
||||
label="Your text to convert to NATO phonetic alphabet"
|
||||
@@ -38,7 +19,7 @@ const { copy } = useCopy({ source: natoText, text: 'NATO alphabet string copied.
|
||||
|
||||
<div v-if="natoText">
|
||||
<div mb-2>
|
||||
Your text in NATO phonetic alphabet ({{ lang }})
|
||||
Your text in NATO phonetic alphabet
|
||||
</div>
|
||||
<c-card>
|
||||
{{ natoText }}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Gauge } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Volume Units Converter',
|
||||
path: '/volume-converter',
|
||||
description: 'Convert values from volume units',
|
||||
keywords: ['volume', 'converter'],
|
||||
component: () => import('./volume-converter.vue'),
|
||||
icon: Gauge,
|
||||
createdAt: new Date('2024-08-15'),
|
||||
});
|
||||
@@ -0,0 +1,68 @@
|
||||
<script setup lang="ts">
|
||||
import UnitsConverter from '@/components/UnitsConverter.vue';
|
||||
|
||||
const supportedUnits = {
|
||||
'm³': 'cubic meter/stere',
|
||||
'Pm³': 'cubic petameter',
|
||||
'Tm³': 'cubic terameter',
|
||||
'Gm³': 'cubic gigameter',
|
||||
'Mm³': 'cubic megameter',
|
||||
'km³': 'cubic kilometer',
|
||||
'hm³': 'cubic hectometer',
|
||||
'dam³': 'cubic decameter',
|
||||
'dm³': 'cubic decimeter',
|
||||
'cm³': 'cubic centimeter',
|
||||
'mm³': 'cubic millimeter',
|
||||
'µm³': 'cubic micrometer',
|
||||
'nm³': 'cubic nanometer',
|
||||
'pm³': 'cubic picometer',
|
||||
'fm³': 'cubic femtometer',
|
||||
'L': 'liter',
|
||||
'Pl': 'petaliter',
|
||||
'Tl': 'teraliter',
|
||||
'Gl': 'gigaliter',
|
||||
'Ml': 'megaliter',
|
||||
'kL': 'kiloliter',
|
||||
'hL': 'hectoliter',
|
||||
'daL': 'decaliter',
|
||||
'dL': 'deciliter',
|
||||
'cL': 'centiliter',
|
||||
'mL': 'milliliter',
|
||||
'µL': 'microliter',
|
||||
'nL': 'nanoliter',
|
||||
'pL': 'picoliter',
|
||||
'fL': 'femtoliter',
|
||||
'mi³': 'cubic mile',
|
||||
'ac ft': 'acre-foot',
|
||||
'yd³': 'cubic yard',
|
||||
'ft³': 'cubic foot',
|
||||
'board feet': 'board feet',
|
||||
'in³': 'cubic inch',
|
||||
'MTON': 'measurement ton',
|
||||
'imp bbl': 'imperial barrel',
|
||||
'imp bsh': 'imperial bushel',
|
||||
'pk': 'imperial peck',
|
||||
'imp gal': 'imperial gallon',
|
||||
'imp qt': 'imperial quart',
|
||||
'imp pt': 'imperial pint',
|
||||
'imp fl oz': 'imperial fluid ounce',
|
||||
'tsp': 'teaspoon',
|
||||
'tbsp': 'tablespoon',
|
||||
'fl oz': 'US fluid ounce',
|
||||
'c': 'cup',
|
||||
'US lc': 'US legal cup',
|
||||
'pt': 'US liquid pint',
|
||||
'qt': 'US liquid quart',
|
||||
'gal': 'US liquid gallon',
|
||||
'US bsh': 'US bushel',
|
||||
'US pk': 'US peck',
|
||||
'US dry gal': 'US dry gallon',
|
||||
'US dry bbl': 'US dry barrel',
|
||||
'US dry qt': 'US dry quart',
|
||||
'US dry pt': 'US dry pint',
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UnitsConverter default-unit="m³" :supported-units="supportedUnits" label-width="150px" />
|
||||
</template>
|
||||
Reference in new issue
Block a user