Skip to content

Latest commit

 

History

History
77 lines (55 loc) · 3.06 KB

README_EN.md

File metadata and controls

77 lines (55 loc) · 3.06 KB

JSON-Viewer

中文 | English

A JSON visualization tool

Tech Stack: Vue 3 + Vite + TS + Antv/G6 + Pinia + CodeMirror

New Features in Version 2.x.x

  1. Added language switching (Chinese/English) with full site adaptation
  2. Added 15 theme colors with full site compatibility
  3. Added light/dark theme switching with editor theme following
  4. Added rendering mode selection (automatic/manual rendering)
  5. Upgraded code editor for better editing experience and performance (VueJsonEditor ---> VueCodeMirror)
  6. Full mobile adaptation with canvas node support for mobile click and zoom events, added zoom ratio display
  7. Support URL storage of editor code information for easy sharing
  8. Layout upgraded to active columns for more flexible and user-friendly layout
  9. Added PWA functionality for offline use after installation

Optimizations

  1. JSON syntax errors prevent rendering and indicate error location
  2. Using atomic framework UnoCSS to reduce style file size
  3. Using @antfu/esling-config and lint-staged to improve syntax checking speed
Build Resources Before Refactor After Refactor Improvement
dist/assets/iconfont-xxxxxx.ttf 4.68 kB None 4.68 kB
dist/assets/index-xxxxxx.css 107.92 kB 81.94 kB 25.98 kB
dist/assets/index-xxxxxx.js 3,325.04 kB 2,324.82 kB 1,000.22 kB (Total: -1,030.88 kB)

Main Features

  1. JSON editing generates corresponding views
  2. Layout configuration adjustment updates view
  3. Node collapse and expansion
  4. Import and export JSON
  5. Specify additional parsing fields
  6. Light/dark theme switching
  7. 15 themes to choose from
  8. View node focus search
  9. Export view as image
  10. Click node to view node details
  11. Share JSON code via link
  12. Rendering mode control
  13. Canvas operations (zoom in/out/center/fullscreen/exit fullscreen)

Preview Links:

Bilibili Demo: Bilibili Demo Video

Source Code

Preview Screenshots

Inspiration

JSON Crack: A smooth and elegant React + TypeScript JSON visualization project.