Skip to content

Commit

Permalink
chore(deps): update dependency prettier to v3 (#564)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency prettier to v3

* chore(deps): updated prettier

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
  • Loading branch information
renovate[bot] and CorentinTh committed Aug 21, 2023
1 parent 144f86e commit a2b9b15
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 40 deletions.
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
41 changes: 5 additions & 36 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions 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>

1 comment on commit a2b9b15

@vercel
Copy link

@vercel vercel bot commented on a2b9b15 Aug 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

it-tools – ./

it-tools-git-main-ctmsst.vercel.app
it-tools-ctmsst.vercel.app
it-tools.tech
it-tools.vercel.app

Please sign in to comment.