zhangjiaxun 8fb8154820
CI/CD Deploy (Web) / 构建前端镜像并部署 (push) Successful in 1m27s
feat(tools): 新增 JSON 格式化工具页面
- src/libs/json-tool.js:零依赖 JSON 处理库
  - 格式化/压缩,缩进支持 2/4/1 空格与 Tab
  - 错误定位优先解析 V8 新版报错的 (line X column Y),
    旧版只给 position 时回退按换行换算
  - 大整数保护:超出 Number.MAX_SAFE_INTEGER 的整数按原样保留,
    避免 JSON.stringify 转科学计数法丢精度(扫描时排除字符串内的数字)
  - 可选键名递归排序(数组保持原序)
  - 结构统计:键数、深度、数组个数

- src/view/tools/json-format.vue:单输入区页面
  - 原地变换:格式化/压缩直接替换文本框内容,可继续编辑再变换
  - 原文快照供「还原」,用户手动编辑后快照自动失效
  - 错误时保留原文不覆盖,状态条红色显示行列并选中出错附近文本
  - 超大文本(>2MB)先确认再处理
  - 支持拖入 .json 文件、复制(https 降级 execCommand)
  - 快捷键 Ctrl+Enter 格式化、Ctrl+S 压缩
  - 沿用文本比对页的视觉语言(靛蓝主色、浅色卡片状态条)
2026-10-20 23:00:31 +08:00

freedom-web

Description

十分钟毕设-内部项目

Software Architecture

Software architecture description

Installation

  1. xxxx
  2. xxxx
  3. xxxx

Instructions

  1. xxxx
  2. xxxx
  3. xxxx

Contribution

  1. Fork the repository
  2. Create Feat_xxx branch
  3. Commit your code
  4. Create Pull Request

Gitee Feature

  1. You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md
  2. Gitee blog blog.gitee.com
  3. Explore open source project https://gitee.com/explore
  4. The most valuable open source project GVP
  5. The manual of Gitee https://gitee.com/help
  6. The most popular members https://gitee.com/gitee-stars/
S
Description
No description provided
Readme MIT 5.4 MiB
Languages
Vue 38.8%
JavaScript 38.5%
HTML 17.7%
Less 4.2%
CSS 0.5%
Other 0.3%