Skip to content

Commit e579c6e

Browse files
committed
docs: add badges
1 parent af479a6 commit e579c6e

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,25 @@ English | [简体中文](./docs/README.zh-CN.md)
22

33
# json-editor-vue
44

5-
JSON editor & viewer for Vue 2.6 / 2.7 / 3 & Nuxt 2 / 3, powered by [svelte-jsoneditor](https://github.com/josdejong/svelte-jsoneditor).
5+
<p align="left">
6+
<img src="https://img.shields.io/npm/v/json-editor-vue.svg" alt="npm package">
7+
<img src="http://img.badgesize.io/https://unpkg.com/json-editor-vue/dist/json-editor-vue.umd.js?compression=gzip&label=gziped">
8+
<img src="https://img.shields.io/npm/dm/json-editor-vue" alt="downloads">
9+
</p>
610

11+
> JSON editor & viewer for Vue 2.6 / 2.7 / 3 & Nuxt 2 / 3, powered by [svelte-jsoneditor](https://github.com/josdejong/svelte-jsoneditor).
712
> svelte-jsoneditor is the successor of [jsoneditor](https://github.com/josdejong/jsoneditor), which ['has become hard to maintain, and the architecture needed a big overhaul'](https://github.com/josdejong/jsoneditor/issues/1223).
813
9-
🤹‍♂️ [Online Playground](https://cloydlau.github.io/demo/json-editor-vue.html)
14+
<img src="./docs/light-theme.png" alt="light-theme"> &nbsp; <img src="./docs/dark-theme.png" alt="dark-theme">
1015

11-
![./docs/light-theme.png](./docs/light-theme.png)
16+
🕹 [Online Playground](https://cloydlau.github.io/demo/json-editor-vue.html)
1217

13-
![./docs/dark-theme](./docs/dark-theme.png)
14-
15-
<br>
18+
<br/>
1619

1720
## Features
1821

1922
- Support Vue 2.6 / 2.7 / 3
2023
- Support SSR (Nuxt 2 / 3)
21-
- 11kb gziped
2224
- Edit mode two-way binding
2325
- Local registration + local configuration, or global registration + global configuration (Powered by [vue-global-config](https://github.com/cloydlau/vue-global-config))
2426

docs/README.zh-CN.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
# json-editor-vue
22

3-
JSON 编辑 & 预览工具,支持 Vue 2.6 / 2.7 / 3,支持 Nuxt 2 / 3,基于 [svelte-jsoneditor](https://github.com/josdejong/svelte-jsoneditor)
3+
<p align="left">
4+
<img src="https://img.shields.io/npm/v/json-editor-vue.svg" alt="npm package">
5+
<img src="http://img.badgesize.io/https://unpkg.com/json-editor-vue/dist/json-editor-vue.umd.js?compression=gzip&label=gziped">
6+
<img src="https://img.shields.io/npm/dm/json-editor-vue" alt="downloads">
7+
</p>
48

9+
> JSON 编辑 & 预览工具,支持 Vue 2.6 / 2.7 / 3,支持 Nuxt 2 / 3,基于 [svelte-jsoneditor](https://github.com/josdejong/svelte-jsoneditor)
510
> svelte-jsoneditor 是 [jsoneditor](https://github.com/josdejong/jsoneditor) 的继任者,作者开这个新坑的原因是[老库已难以维护、架构需要大改、体验亟待提升](https://github.com/josdejong/jsoneditor/issues/1223)
611
7-
🤹‍♂️ [在线试玩](https://cloydlau.github.io/demo/json-editor-vue.html)
12+
<img src="./light-theme.png" alt="light-theme"> &nbsp; <img src="./dark-theme.png" alt="dark-theme">
813

9-
![./light-theme.png](./light-theme.png)
10-
11-
![./dark-theme](./dark-theme.png)
14+
🕹 [在线试玩](https://cloydlau.github.io/demo/json-editor-vue.html)
1215

1316
<br>
1417

1518
## 特性
1619

1720
- Vue 2.6 / 2.7 / 3 通用
1821
- 支持 SSR,Nuxt 2 / 3 通用
19-
- gzip 压缩后 11kb
2022
- 编辑模式双向绑定
2123
- 局部注册 + 局部传参,也可以全局注册 + 全局传参([vue-global-config](https://github.com/cloydlau/vue-global-config) 提供技术支持)
2224

0 commit comments

Comments
 (0)