This commit is contained in:
671
package-lock.json
generated
671
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
28
package.json
28
package.json
@@ -11,31 +11,31 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@codemirror/lang-css": "^6.3.1",
|
||||
"@codemirror/lang-html": "^6.4.9",
|
||||
"@codemirror/lang-html": "^6.4.10",
|
||||
"@codemirror/lang-javascript": "^6.2.4",
|
||||
"@vueuse/core": "^13.5.0",
|
||||
"axios": "^1.10.0",
|
||||
"@vueuse/core": "^13.9.0",
|
||||
"axios": "^1.12.2",
|
||||
"codemirror": "^6.0.2",
|
||||
"copy-text-to-clipboard": "^3.2.0",
|
||||
"copy-text-to-clipboard": "^3.2.2",
|
||||
"github-markdown-css": "^5.8.1",
|
||||
"highlight.js": "^11.11.1",
|
||||
"marked": "^16.0.0",
|
||||
"marked": "^16.3.0",
|
||||
"marked-alert": "^2.1.2",
|
||||
"marked-code-preview": "^1.3.7",
|
||||
"marked-highlight": "^2.2.2",
|
||||
"md-editor-v3": "^5.8.1",
|
||||
"naive-ui": "^2.42.0",
|
||||
"vue": "^3.5.17",
|
||||
"md-editor-v3": "^6.0.1",
|
||||
"naive-ui": "^2.43.1",
|
||||
"prettier": "^3.6.2",
|
||||
"vue": "^3.5.21",
|
||||
"vue-codemirror": "^6.1.1",
|
||||
"vue-router": "^4.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@iconify/vue": "^5.0.0",
|
||||
"@rsbuild/core": "^1.4.6",
|
||||
"@rsbuild/plugin-vue": "^1.1.0",
|
||||
"@vue/tsconfig": "^0.7.0",
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "^5.8.3",
|
||||
"unplugin-vue-components": "^28.8.0"
|
||||
"@rsbuild/core": "^1.5.12",
|
||||
"@rsbuild/plugin-vue": "^1.1.2",
|
||||
"@vue/tsconfig": "^0.8.1",
|
||||
"typescript": "^5.9.2",
|
||||
"unplugin-vue-components": "^29.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,11 +73,13 @@
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { Icon } from "@iconify/vue"
|
||||
import prettier from "prettier/standalone"
|
||||
import * as htmlParser from "prettier/parser-html"
|
||||
import * as cssParser from "prettier/parser-postcss"
|
||||
import * as babelParser from "prettier/parser-babel"
|
||||
// @ts-ignore
|
||||
import * as prettier from "prettier/standalone"
|
||||
// @ts-ignore
|
||||
import * as estreeParser from "prettier/plugins/estree"
|
||||
import * as htmlParser from "prettier/plugins/html"
|
||||
import * as cssParser from "prettier/plugins/postcss"
|
||||
import * as babelParser from "prettier/plugins/babel"
|
||||
import Editor from "./Editor.vue"
|
||||
import Corner from "./Corner.vue"
|
||||
import { html, css, js, tab, size, reset } from "../store/editors"
|
||||
@@ -99,8 +101,7 @@ async function format() {
|
||||
const [htmlFormatted, cssFormatted, jsFormatted] = await Promise.all([
|
||||
prettier.format(html.value, {
|
||||
parser: "html",
|
||||
//@ts-ignore
|
||||
plugins: [htmlParser, babelParser, estreeParser, cssParser],
|
||||
plugins: [htmlParser, babelParser, cssParser, estreeParser],
|
||||
tabWidth: 4,
|
||||
}),
|
||||
prettier.format(css.value, {
|
||||
@@ -110,7 +111,6 @@ async function format() {
|
||||
}),
|
||||
prettier.format(js.value, {
|
||||
parser: "babel",
|
||||
//@ts-ignore
|
||||
plugins: [babelParser, estreeParser],
|
||||
tabWidth: 2,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user