diff --git a/.vscode/settings.json b/.vscode/settings.json index 98606bfa..c484f429 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,4 @@ { - // Enable the ESlint flat config support - "eslint.experimental.useFlatConfig": true, - // Disable the default formatter, use eslint instead "prettier.enable": false, "editor.formatOnSave": false, @@ -14,16 +11,16 @@ // Silent the stylistic rules in you IDE, but still auto fix them "eslint.rules.customizations": [ - { "rule": "style/*", "severity": "off" }, - { "rule": "format/*", "severity": "off" }, - { "rule": "*-indent", "severity": "off" }, - { "rule": "*-spacing", "severity": "off" }, - { "rule": "*-spaces", "severity": "off" }, - { "rule": "*-order", "severity": "off" }, - { "rule": "*-dangle", "severity": "off" }, - { "rule": "*-newline", "severity": "off" }, - { "rule": "*quotes", "severity": "off" }, - { "rule": "*semi", "severity": "off" } + { "rule": "style/*", "severity": "off", "fixable": true }, + { "rule": "format/*", "severity": "off", "fixable": true }, + { "rule": "*-indent", "severity": "off", "fixable": true }, + { "rule": "*-spacing", "severity": "off", "fixable": true }, + { "rule": "*-spaces", "severity": "off", "fixable": true }, + { "rule": "*-order", "severity": "off", "fixable": true }, + { "rule": "*-dangle", "severity": "off", "fixable": true }, + { "rule": "*-newline", "severity": "off", "fixable": true }, + { "rule": "*quotes", "severity": "off", "fixable": true }, + { "rule": "*semi", "severity": "off", "fixable": true } ], // Enable eslint for all supported languages @@ -39,7 +36,14 @@ "jsonc", "yaml", "toml", + "xml", "gql", - "graphql" + "graphql", + "astro", + "css", + "less", + "scss", + "pcss", + "postcss" ] } diff --git a/README.md b/README.md index 319099cf..6abad6de 100644 --- a/README.md +++ b/README.md @@ -11,29 +11,30 @@

- playground + playground
- npm + npm jsr
build status - minzipped size - PRs Welcome + minified gzip/brotli size + Start new PR in StackBlitz Codeflow
conventional commits + created at code style - jsdelivr downloads + semantic release

-text mode table mode +text mode table mode > [!Important] > -> json-editor-vue had surpassed 1 million downloads (not including CDN): npm downloads +> json-editor-vue had surpassed 1 million downloads: npm downloads jsDelivr downloads unpkg downloads > -> While having a extremely dismal number of Stars: github stars +> While having a extremely dismal number of Stars: github stars > -> Please consider hitting the Star to show your support for the ongoing maintenance if you find it useful. 🙏 +> Please consider starring ⭐ or [donating](#donate) to support our ongoing maintenance if you find it useful: github stars
@@ -43,7 +44,7 @@ - Handle large JSON documents up to 512 MB - 💪 Powerful - View, edit, format, validate, compact, sort, query, filter, transform, repair, highlight JSON - - 7 primitive data types including `BigInt` and `Symbol` are supported + - 7 primitive data types including `BigInt` and `Symbol` - 3 edit modes: text mode & tree mode & table mode - 2 themes: light theme & dark theme - 2-way binding: [parsed or stringified JSON](#parsed-json-vs-stringified-json) @@ -52,6 +53,7 @@ - Support SSR, Nuxt 2/3 isomorphic - Support Vite, Vue CLI, webpack, CDN... - Support microfrontends ([wujie](https://github.com/Tencent/wujie), [qiankun](https://github.com/umijs/qiankun), [single-spa](https://github.com/single-spa/single-spa)...) + - Support PC & mobile devices - Local registration & configuration, or global registration & configuration (Powered by [vue-global-config](https://github.com/cloydlau/vue-global-config))
@@ -60,9 +62,15 @@ ### Dependencies -As of v0.11, it's no longer necessary to explicitly install [vanilla-jsoneditor](https://github.com/josdejong/svelte-jsoneditor). +As of v0.11, it's no longer necessary to explicitly install the [vanilla-jsoneditor](https://github.com/josdejong/svelte-jsoneditor) dependency. -If you want to specify dependency versions: +#### Update Dependency Versions + +```shell +npm rm json-editor-vue && npm i json-editor-vue +``` + +#### Specify Dependency Versions ```json5 // package.json @@ -87,7 +95,7 @@ If you want to specify dependency versions: } ``` -or scoped: +With Scope: ```json5 // package.json @@ -990,7 +998,7 @@ If you prefer the behavior of svelte-jsoneditor: > > See https://github.com/josdejong/svelte-jsoneditor/pull/166 for more details. -FAQ: How to keep the value as parsed JSON in text mode: +FAQ: How to keep the value as parsed JSON in text mode? > [!Caution] > @@ -1072,3 +1080,11 @@ import JsonEditorVue from 'json-editor-vue' Detailed changes for each release are documented in the [release notes](https://github.com/cloydlau/json-editor-vue/releases)
+ +## Donate + +You can buy us a coffee via WeChat Pay 💗 + +WeChat Pay + +
diff --git a/demo/vue3/index.vue b/demo/vue3/index.vue index 69f089ef..62a62c30 100644 --- a/demo/vue3/index.vue +++ b/demo/vue3/index.vue @@ -28,7 +28,7 @@ const data = reactive({ c: 'd', }, }, - mode: undefined, + mode: 'text', readOnly: false, parser: LosslessJSONParser, }) @@ -37,7 +37,7 @@ const jsonEditorVueRef = ref() onMounted(() => { jsonEditorVueRef.value.jsonEditor.focus() }) -const stringified = ref(true) +const stringified = ref(false)