Skip to content

DBX plugin Dev Tool v0.6.7

Choose a tag to compare

@yaoxinghuo yaoxinghuo released this 22 Oct 03:33
· 15 commits to main since this release

🇨🇳 v0.6.7 更新说明

🆕 三个新格式化工具(46→48 款)

  • Nginx 格式化(#4):规范空白、按花括号重新缩进(移植自 Apache-2.0 nginxfmt,与 Sublime 插件同款算法);缩进 2/4/8 空格或 Tab,支持「{ 并到上一行」「对齐指令值」;语法高亮指令、字符串、注释、$变量;修复上游丢失行尾注释的问题
  • XML 格式化(#5):手写 tokenizer 重排缩进,正确处理注释、CDATA、DOCTYPE、处理指令;DOMParser 合法性校验
  • YAML 格式化:按缩进层级重排(2/4 空格/Tab),注释、块标量(|/>)、锚点原样保留;检测到 Tab 缩进会警告并替换;连续空行压缩为一行

✨ 体验改进

  • 新分类:首页新增「格式化」筛选卡(JSON / Nginx / XML / YAML)
  • 搜索状态记忆:搜索词与分类筛选在进工具再返回后保留,不用重输
  • 保存为文件:Nginx/XML/YAML 输出可另存为 .conf/.xml/.yaml(JSON 此前已支持)

🛠️ 修复

  • 身份证号工具:「指定日期」改为定宽 YYYY-MM-DD 输入框(原生日期控件显示格式跟随系统语言),非法/未来日期即时提示

📝 商店

  • 「更新历史」将按版本显示各自的更新说明(此前所有版本共用一段旧文案)

🇬🇧 v0.6.7 Release Notes

🆕 Three new formatters (46 → 48 tools)

  • Nginx Formatter (#4): whitespace normalization and brace-based re-indenting via a vendored Apache-2.0 nginxfmt port (same engine as the Sublime plugin); 2/4/8-space or Tab indents, "join {" and value-alignment toggles; syntax highlighting for directives, strings, comments and $variables; fixes an upstream bug that dropped trailing comments
  • XML Formatter (#5): tokenizing pretty-printer that handles comments, CDATA, DOCTYPE and processing instructions, with DOMParser validation
  • YAML Formatter: indentation-based re-formatter (2/4 spaces/Tab) preserving comments, block scalars (|/>) and anchors verbatim; warns on and replaces tab indentation; collapses blank lines

✨ Improvements

  • New Formatter category on the home grid (JSON / Nginx / XML / YAML)
  • Search memory: query text and active category filter persist when returning from a tool
  • Save to file: Nginx/XML/YAML output can be saved as .conf/.xml/.yaml (JSON already could)

🛠️ Fixes

  • CN ID Card: exact-date option now uses a fixed-width YYYY-MM-DD input with inline validation (the native picker rendered per OS locale)

📝 Store

  • Per-version release notes now reach the update history (previously one stale blurb for every version)