Collection of handy online tools for developers, with great UX.
TypeScript converterdeveloper-productivitydeveloper-toolsfrontendjavascriptproductivitytooltoolstypescriptvuejswebsite
chore(deps): update dependency prettier to v3 (#564)
renovate[bot]a2b9b157e5b8
diff --git a/package.json b/package.jsonindex ff1608fd..c8266b79 100644--- a/package.json+++ b/package.json@@ -98,7 +98,6 @@"@types/netmask": "^2.0.0","@types/node": "^18.0.0","@types/node-forge": "^1.3.2",- "@types/prettier": "^2.7.2","@types/qrcode": "^1.5.0","@types/randombytes": "^2.0.0","@types/ua-parser-js": "^0.7.36",@@ -115,7 +114,7 @@"eslint": "^8.38.0","jsdom": "^22.0.0","less": "^4.1.3",- "prettier": "^2.8.7",+ "prettier": "^3.0.0","typescript": "~4.9.0","unocss": "^0.55.0","unocss-preset-scrollbar": "^0.2.1",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex cd068904..6712d82c 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -196,9 +196,6 @@ devDependencies:'@types/node-forge':specifier: ^1.3.2version: 1.3.2- '@types/prettier':- specifier: ^2.7.2- version: 2.7.2'@types/qrcode':specifier: ^1.5.0version: 1.5.0@@ -248,8 +245,8 @@ devDependencies:specifier: ^4.1.3version: 4.1.3prettier:- specifier: ^2.8.7- version: 2.8.7+ specifier: ^3.0.0+ version: 3.0.0typescript:specifier: ~4.9.0version: 4.9.3@@ -699,7 +696,6 @@ packages:/@babel/[email protected]:resolution: {integrity: sha512-DFZMC9LJUG9PLOclRC32G63UXwzqS2koQC8dkx+PLdmt1xSePYpbT/NbsrJy8Q/muXz7o/h/d4A7Fuyixm559Q==}engines: {node: '>=6.0.0'}- hasBin: truedependencies:'@babel/types': 7.22.5@@ -2788,10 +2784,6 @@ packages:resolution: {integrity: sha512-sn7L+qQ6RLPdXRoiaE7bZ/Ek+o4uICma/lBFPyJEKDTPTBP1W8u0c4baj3EiS4DiqLs+Hk+KUGvMVJtAw3ePJg==}dev: false- /@types/[email protected]:- resolution: {integrity: sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg==}- dev: true-/@types/[email protected]:resolution: {integrity: sha512-ZREFYlpUmPQJ0esjxoG1fMvB2HNaD3z+mjqdSosZvd3RalncI9NEur73P8ZJz4YQdL64CmV1w0RuqoRUlhQRBw==}dev: true@@ -3159,7 +3151,6 @@ packages:/@unocss/[email protected]([email protected]):resolution: {integrity: sha512-K8PR4UydtTfT8rMynDcNQKk1WWI97312kZYjBLHUlrJkNbSgcmpU3wfREIqvCSgPg61ttZAgE5uI6omf8FudtA==}engines: {node: '>=14'}- hasBin: truedependencies:'@ampproject/remapping': 2.2.1'@rollup/pluginutils': 5.0.2([email protected])@@ -3766,7 +3757,6 @@ packages:resolution: {integrity: sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==}engines: {node: '>=0.4.0'}- hasBin: truedev: true@@ -3997,7 +3987,6 @@ packages:resolution: {integrity: sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg==}engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}- hasBin: truedependencies:caniuse-lite: 1.0.30001504electron-to-chromium: 1.4.433@@ -5905,7 +5894,6 @@ packages:resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==}engines: {node: '>=8'}- hasBin: truedev: true@@ -6107,7 +6095,6 @@ packages:resolution: {integrity: sha512-oVhqoRDaBXf7sjkll95LHVS6Myyyb1zaunVwk4Z0+WPSW4gjS0pl01zYKHScTuyEhQsFxV5L4DR5r+YqSyqyyg==}- hasBin: truedev: true@@ -6133,7 +6120,6 @@ packages:resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==}- hasBin: truedependencies:argparse: 1.0.10esprima: 4.0.1@@ -6141,7 +6127,6 @@ packages:resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==}- hasBin: truedependencies:argparse: 2.0.1dev: true@@ -6190,13 +6175,11 @@ packages:resolution: {integrity: sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==}- hasBin: truedev: trueresolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==}engines: {node: '>=4'}- hasBin: trueresolution: {integrity: sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==}@@ -6231,7 +6214,6 @@ packages:resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==}- hasBin: truedependencies:minimist: 1.2.8dev: true@@ -6472,7 +6454,6 @@ packages:resolution: {integrity: sha512-D024bzgUcfmRfT/YsZXcktWhfy3k++2qeXK6hmO+FM5pKtBpMxi4KkW1wAgHpQTSphNIKr4WNs8ZFwpB4er8RA==}engines: {node: '>= 14'}- hasBin: truedependencies:'@babel/runtime': 7.22.5complex.js: 2.1.1@@ -7020,7 +7001,6 @@ packages:resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==}engines: {node: '>=6'}- requiresBuild: truedev: trueoptional: true@@ -7104,9 +7084,9 @@ packages:engines: {node: '>= 0.8.0'}dev: true- resolution: {integrity: sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw==}- engines: {node: '>=10.13.0'}+ resolution: {integrity: sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g==}+ engines: {node: '>=14'}dev: true@@ -7284,7 +7264,6 @@ packages:resolution: {integrity: sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==}- requiresBuild: truedev: trueoptional: true@@ -7547,12 +7526,10 @@ packages:resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}- requiresBuild: truedev: trueresolution: {integrity: sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==}- requiresBuild: truedev: trueoptional: true@@ -7600,7 +7577,6 @@ packages:resolution: {integrity: sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==}engines: {node: '>=10'}- hasBin: truedependencies:lru-cache: 6.0.0dev: true@@ -8395,7 +8371,6 @@ packages:resolution: {integrity: sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==}- hasBin: truepeerDependencies:browserslist: '>= 4.21.0'dependencies:@@ -8528,7 +8503,6 @@ packages:resolution: {integrity: sha512-qsTNZjO9NoJNW7KnOrgYwczm0WctJ8m/yqYAMAK9Lxt4SoySUfS5S8ia9K7JHpa3KEeMfyF8LoJ3c5NeBJy6pg==}engines: {node: ^14.18.0 || >=16.0.0}- hasBin: truepeerDependencies:'@types/node': '>= 14'less: '*'@@ -8562,7 +8536,6 @@ packages:resolution: {integrity: sha512-8Pnc1fVt1P6uBncdUZ++hgiJGgxIRKuz4bmS/PQziaEcUj0D1g9cGiR1MbLrcsvFTC6fgrqDhYoTAdBG356WMA==}engines: {node: '>=v14.18.0'}- hasBin: truepeerDependencies:'@edge-runtime/vm': '*''@vitest/browser': '*'@@ -8636,7 +8609,6 @@ packages:resolution: {integrity: sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A==}engines: {node: '>=12'}- hasBin: truerequiresBuild: truepeerDependencies:'@vue/composition-api': ^1.0.0-rc.1@@ -8651,7 +8623,6 @@ packages:resolution: {integrity: sha512-rt+yuCtXvscYot9SQQj3WKZJVSriPNqVkpVBNEHPzSgBv7QIYzsS410VqVgvx8f9AAPgjg+XPKvmV3vOqqkJQQ==}engines: {node: '>=12'}- hasBin: truerequiresBuild: truepeerDependencies:'@vue/composition-api': ^1.0.0-rc.1@@ -8666,7 +8637,6 @@ packages:resolution: {integrity: sha512-o9NUVpl/YlsGJ7t+xuqJKx8EBGf1quRhCiT6D/J0pfwmk9zUwYkC7yrF4SZCe6fETvSM3UNL2edcbYrSyc4QHA==}engines: {node: '>=12'}- hasBin: truerequiresBuild: truepeerDependencies:'@vue/composition-api': ^1.0.0-rc.1@@ -8726,7 +8696,6 @@ packages:resolution: {integrity: sha512-GxBQrcb0Qvyrj1uZqnTXQyWbXdNDRY2MTa+r7ESgjhf+WzBSdxZfkS3KD/C3WhKYG+aN8hf44Hp5Gqzb6PehAA==}- hasBin: truepeerDependencies:typescript: '*'dependencies:diff --git a/src/tools/html-wysiwyg-editor/html-wysiwyg-editor.vue b/src/tools/html-wysiwyg-editor/html-wysiwyg-editor.vueindex 69238215..e6187c9b 100644--- a/src/tools/html-wysiwyg-editor/html-wysiwyg-editor.vue+++ b/src/tools/html-wysiwyg-editor/html-wysiwyg-editor.vue@@ -1,14 +1,16 @@<script setup lang="ts">import { format } from 'prettier';-import htmlParser from 'prettier/parser-html';+import htmlParser from 'prettier/plugins/html';import { useStorage } from '@vueuse/core';import Editor from './editor/editor.vue';import TextareaCopyable from '@/components/TextareaCopyable.vue';const html = useStorage('html-wysiwyg-editor--html', '<h1>Hey!</h1><p>Welcome to this html wysiwyg editor</p>');++const formattedHtml = asyncComputed(() => format(html.value, { parser: 'html', plugins: [htmlParser] }), '');</script><template><Editor v-model:html="html" />- <TextareaCopyable :value="format(html, { parser: 'html', plugins: [htmlParser] })" language="html" />+ <TextareaCopyable :value="formattedHtml" language="html" /></template>