Add/Update plugin: 子网掩码计算器#111
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new Subnet Calculator plugin, consisting of an interactive HTML interface, a configuration file for plugin integration, and a preload script for clipboard access. The feedback focuses on improving the robustness of the IP classification logic by expanding the identification of special address types like loopback and link-local addresses. Additionally, there is a recommendation to improve the security and maintainability of the copy-to-clipboard functionality by using this.textContent instead of direct variable injection in HTML event attributes.
| const totalHosts = Math.pow(2, 32 - cidr); | ||
| const usableHosts = cidr >= 31 ? (cidr === 32 ? 1 : 2) : totalHosts - 2; | ||
| const ipClass = getIpClass(ipInt); | ||
| const ipType = isPrivate(ipInt) ? '私有' : '公有'; |
| ]; | ||
|
|
||
| area.innerHTML = '<div class="results">' + rows.map(([label, value]) => | ||
| `<div class="result-row"><span class="result-label">${label}</span><span class="result-value" onclick="copyValue('${value}')">${value}</span></div>` |
There was a problem hiding this comment.
建议使用 this.textContent 代替模板字符串注入变量到 onclick 属性中。虽然目前 IP 地址和 CIDR 格式不包含特殊字符,但直接注入变量到 HTML 属性是脆弱的实践。使用 this.textContent 可以直接获取当前元素显示的文本,既安全又简洁。
| `<div class="result-row"><span class="result-label">${label}</span><span class="result-value" onclick="copyValue('${value}')">${value}</span></div>` | |
| `<div class="result-row"><span class="result-label">${label}</span><span class="result-value" onclick="copyValue(this.textContent)">${value}</span></div>` |
| function isPrivate(ipInt) { | ||
| const a = (ipInt >>> 24) & 255, b = (ipInt >>> 16) & 255; | ||
| if (a === 10) return true; | ||
| if (a === 172 && b >= 16 && b <= 31) return true; | ||
| if (a === 192 && b === 168) return true; | ||
| return false; | ||
| } |
There was a problem hiding this comment.
目前的 isPrivate 函数仅识别 RFC 1918 定义的私有地址范围。建议将其扩展为 getIpType,以正确识别环回地址 (127.0.0.0/8) 和链路本地地址 (169.254.0.0/16),避免这些特殊地址被错误地标记为“公有”。
| function isPrivate(ipInt) { | |
| const a = (ipInt >>> 24) & 255, b = (ipInt >>> 16) & 255; | |
| if (a === 10) return true; | |
| if (a === 172 && b >= 16 && b <= 31) return true; | |
| if (a === 192 && b === 168) return true; | |
| return false; | |
| } | |
| function getIpType(ipInt) { | |
| const a = (ipInt >>> 24) & 255, b = (ipInt >>> 16) & 255; | |
| if (a === 10) return '私有'; | |
| if (a === 172 && b >= 16 && b <= 31) return '私有'; | |
| if (a === 192 && b === 168) return '私有'; | |
| if (a === 127) return '环回'; | |
| if (a === 169 && b === 254) return '链路本地'; | |
| return '公有'; | |
| } |
b479a88 to
8b824a6
Compare
- Initial commit - feat: 插件库初次提交 - feat: 支持搜索剪贴板 - feat: 添加json-editor插件 - docs(markdown): 更新文档 - feat: Anywhere项目上传 - feat: 插件构建到release - fix: action报错 - fix: 删除错误文件 - feat: 重新上传插件 - chore: update pnpm version from 8 to 9 in build-and-release workflow - feat: 添加变更日志读取功能到发布工作流 - refactor: 更新发布工作流以准备发布说明,合并变更日志内容 - refactor: 插件名称规范 - chore: 生成latest文件以记录当前发布版本号 - chore: 添加latest文件到发布工作流以记录当前版本信息 - feat: 添加版本比较功能以优化变更日志生成,确保只保留最新版本的插件信息 - chore: 测试版本更新 - feat: 添加旧版本清理功能,确保每个插件只保留最新版本 - chore: 测试版本更新 - fix: 便签路径问题 - feat: 快捷命令插件 - chore: 重命名快捷命令插件的构建脚本 - feat: 更新发布工作流以生成插件变更日志,包含插件名称、版本和描述 - feat: 易翻修复 - feat: 易翻版本更新 - feat: 更新易翻插件版本至2.22.2,并修正变更日志保存格式 - feat: plugins.json add plugin size - feat: 剪贴板支持仅复制不粘贴 - feat: anywhere更新到1.10.20 - fix: anywhere build error - feat: anywhere update - fix: anywhere author - feat: 剪贴板修复回车不粘贴问题 - feat: oss上传 - feat: 增强OSS上传功能,支持重试和超时处理 - feat: 测试更新插件 - refactor: simplify success and failure count increment logic in build-and-release workflow - feat: 测试更新插件 - feat: oss覆盖检查逻辑更新 - fix: oss脚本问题修复 - feat: oss上传时仅上传本次变更 - fix: oss检测不到变更 - 🎉 Initial commit: SPlayer ZTools Plugin Monorepo - 🎉 Initial commit: SPlayer ZTools Plugin - chore: 重命名插件为 SPlayerZ - docs: 添加 AGPL-3.0 许可证和版权声明 - chore: 清理根 package.json,移除 Electron 相关内容 - feat: 添加构建后处理脚本,确保 ZTools 插件完整 - feat: 添加 package 命令,一键打包插件为 zip - fix: 修复打包后资源路径问题 - feat: 添加本地 API 服务器支持 - fix: 修复 API 路由格式问题 - fix: 添加占位图片资源 - fix: 修复图片资源路径问题 - fix: 改进图片资源路径处理 - fix: 修复图片资源路径问题 - 添加base标签使绝对路径相对于当前目录解析 - fix: 使用Vite插件替换图片绝对路径为相对路径 - 优化 ztools-plugin 构建流程: 清理 node_modules 不必要文件,减小插件体积 - refactor: 重构仓库结构 - 将 ztools-plugin 移至根目录,electron 重命名为 SPlayer - fix: 解决依赖解析问题 - fix: 添加构建所需依赖 - fix: 添加 Vite proxy rewrite 规则去掉 /api 前缀 - fix: API 路由同时支持下划线和斜杠格式 - Initial project setup with core files - 合并本地修改 - Add SPlayer pre-build script and update package.json - Merge pull request #13 from Yueby/plugin/splayer-z - feat: 增加插件包管理器检测功能,支持 pnpm 和 npm - release: 1.0.0 - fix: 修改name以符合cli要求 - 🎉 Initial commit: SPlayer ZTools Plugin Monorepo - 🎉 Initial commit: SPlayer ZTools Plugin - chore: 重命名插件为 SPlayerZ - docs: 添加 AGPL-3.0 许可证和版权声明 - chore: 清理根 package.json,移除 Electron 相关内容 - feat: 添加构建后处理脚本,确保 ZTools 插件完整 - feat: 添加 package 命令,一键打包插件为 zip - fix: 修复打包后资源路径问题 - feat: 添加本地 API 服务器支持 - fix: 修复 API 路由格式问题 - fix: 添加占位图片资源 - fix: 修复图片资源路径问题 - fix: 改进图片资源路径处理 - fix: 修复图片资源路径问题 - 添加base标签使绝对路径相对于当前目录解析 - fix: 使用Vite插件替换图片绝对路径为相对路径 - 优化 ztools-plugin 构建流程: 清理 node_modules 不必要文件,减小插件体积 - refactor: 重构仓库结构 - 将 ztools-plugin 移至根目录,electron 重命名为 SPlayer - fix: 解决依赖解析问题 - fix: 添加构建所需依赖 - fix: 添加 Vite proxy rewrite 规则去掉 /api 前缀 - fix: API 路由同时支持下划线和斜杠格式 - Initial project setup with core files - 合并本地修改 - Add SPlayer pre-build script and update package.json - Add SPlayer dependency installation to pre-build script - fix: 编译public目录错误 - fix: Improve SPlayer directory handling in pre-build script - Clean up unnecessary files after build - Merge branch 'main' into plugin/splayer-z - Merge pull request #15 from Yueby/plugin/splayer-z - Merge pull request #14 from Paxton-PKJ/plugin/latex-ocr - feat: 无限壁纸插件、redis客户端 - feat: 添加域名助手插件 - feat: vim教程插件 - feat: 本地搜索插件更新 - feat: 鹅的笔记插件 - feat: ocr插件 - feat: AI Anywhere 插件更新 - feat: AI Anywhere 插件更新1.11.12 - feat: 无限重载插件 - feat: ocr-pro插件 - fix: 小窗翻译异常 - fix(本地搜索): everything启动错误 - feat: 2048插件 - feat: 打飞字游戏插件 - feat: AI Anywhere 插件更新 - feat: AI Anywhere 插件更新2.1.14 - feat: json-tools插件 - feat: 日历插件 - feat: 指针蜗牛插件 - feat: ASCII 艺术字体生成器插件 - feat: TinyPNG 压缩图片插件 - feat: Anywhere 更新至2.2.1 - feat: AI助手插件 - feat: TinyRDM插件 - feat: AI助手插件更新1.1.0 - feat: totodo插件 - feat: 禁用OSS,更新AI Anywhere插件 - Initial commit - 🎉 init: 基础功能开发完毕 - ✨ feat: 图片预览新增放大缩放功能 - ✨ feat: 新增小红书解析 - ✨ feat: 新增即梦解析 - ✨ feat: 新增最右和哔哩哔哩解析 - 🐞 fix: 修复bug - ✨ feat: 新增下载配置功能以及部分优化 - 🎈 perf: 优化样式以及文件导出命名 - ✨ feat: 修复默认下载路径为空的bug - 🎈 perf: 优化样式以及新增视频预览功能 - 🎈 perf: 优化下载格式 - 🎈 perf: 优化图片加载样式 - 🎈 perf: 视频预览加入缩放和镜像翻转功能 - ✨ feat: 新增快手解析 - 🎈 perf: 优化底层请求以及新增图片复制 - 🐞 fix: 修复live图片加载问题 - ✨ feat: 新增live和static图的切换 - 🎈 perf: 优化对话框显示以及新增右键粘贴功能 - ✨ feat: 新增主题切换功能 - 🐞 fix: 修复清空气泡框确认按钮bug - 🎈 perf: 优化解析记录预览 - 🐞 fix: 修复历史记录不同步bug - ✨ feat: 新增下载进度监听 - 🎈 perf: 优化进度数值展示 - ✨ feat: 新增下载后自动打开目录配置 - ✨ feat: 新增一键下载功能 - 🎈 perf: 优化下载全部 - ✨ feat: 新版本v1.0.2 - ✨ feat: 新增豆包图集解析 - 🎈 perf: 优化错误提示 - ✨ feat: 新增皮皮虾和微信公众号解析以及下载优化 - 🎈 perf: 兼容豆包解析部分格式 - 📃 docs: 新增预览图和插件地址 - ✨ feat: 新增开源许可证 - Merge pull request #16 from GIWTO/plugin/today-gold-price - Merge pull request #17 from GIWTO/plugin/video-parse - Add metadata to plugin.json for video-parse - Merge ztools into utools in services.js - feat:init - Merge pull request #18 from azhu949/plugin/random-password - feat:init - feat:readme修改,主页面新增“系统消息提示”开关 - Initial commit - fix: 修复涨跌幅计算逻辑,调整红涨绿跌配色,优化刷新按钮交互 - Merge branch 'pr/19' - Merge branch 'pr/20' - feat(local-ip): 添加本地IP地址复制插件 - Merge pull request #21 from tangjie502/main - feat: 更新AI Anywhere到2.4.14 - feat: 更新剪贴板插件,优化样式 - feat: 更新剪贴板插件,支持右键删除 - Initial commit - 设置 platform 属性;删除没用的命令 - Merge pull request #23 from cjhgit/plugin/mac-system-preference-ztools-plugin - init: 初始化项目 - fix: 修复文件选择和删除的两个问题 - feat: 实现初始diff比较工具,包含文本和图像视图、核心diff逻辑和国际化。 - feat: Introduce initial text and image diffing capabilities with core types, UI components, and internationalization setup. - fix:修复图片组件的诸多bug - feat:execl对比功能 - fix:修复图片和execl对比的bug - fix:修复暗色模式下的滚动条bug - feat:word对比 - fix:优化滚动方式 - refactor: 用共享实用函数替换文件读取逻辑,以提高跨差异视图的可维护性和代码重用 - feat(diff): 支持Excel、Word和图像文件的差异对比 - feat: 新增日语支持、改进主题色并优化构建流程 - refactor(diff): 使用diff库重构差异对比策略并新增PDF对比功能 - docs: 添加完整的TSDoc代码注释并修复导出函数 - refactor: 抽取diff视图组件业务逻辑到composables - feat: 新增SVG图标系统并集成ZIcon组件 - feat: 优化文本和Word差异对比功能 - refactor: 按照Vue规范重构项目目录结构 - perf: 拆分大型第三方库为独立chunk优化加载 - docs:添加中文注释提升代码可读性 - refactor: 将autoFormat从pinia改为localStorage存储 - feat: 用Monaco Editor重构文本对比功能并优化自动格式化 - refactor: 将useTheme改为单例模式避免重复初始化 - feat: 优化Monaco Editor性能和依赖 - perf: 优化Monaco Editor性能并扩展语言支持 - feat: 添加PDF缩放功能并优化PDF.js worker加载 - docs: 更新README添加项目截图和使用说明 - refactor: 优化设置面板使用说明并改进文件图标 - refactor: 提取UsageGuideItem组件并完善设置面板i18n - perf: 优化主题切换流畅性,修复闪烁问题 - Merge pull request #24 from Particaly/plugin/swap-file - init: 初始化项目 - fix: 修复文件选择和删除的两个问题 - build: 添加自定义构建脚本解决 preload 依赖缺失问题 - Merge branch 'pr/26' - other: 构建脚本检测pnpm加强 - Merge branch 'pr/25' - feat: 实现初始diff比较工具,包含文本和图像视图、核心diff逻辑和国际化。 - feat: Introduce initial text and image diffing capabilities with core types, UI components, and internationalization setup. - fix:修复图片组件的诸多bug - feat:execl对比功能 - fix:修复图片和execl对比的bug - fix:修复暗色模式下的滚动条bug - feat:word对比 - fix:优化滚动方式 - refactor: 用共享实用函数替换文件读取逻辑,以提高跨差异视图的可维护性和代码重用 - feat(diff): 支持Excel、Word和图像文件的差异对比 - feat: 新增日语支持、改进主题色并优化构建流程 - refactor(diff): 使用diff库重构差异对比策略并新增PDF对比功能 - docs: 添加完整的TSDoc代码注释并修复导出函数 - refactor: 抽取diff视图组件业务逻辑到composables - feat: 新增SVG图标系统并集成ZIcon组件 - feat: 优化文本和Word差异对比功能 - refactor: 按照Vue规范重构项目目录结构 - perf: 拆分大型第三方库为独立chunk优化加载 - docs:添加中文注释提升代码可读性 - refactor: 将autoFormat从pinia改为localStorage存储 - feat: 用Monaco Editor重构文本对比功能并优化自动格式化 - refactor: 将useTheme改为单例模式避免重复初始化 - feat: 优化Monaco Editor性能和依赖 - perf: 优化Monaco Editor性能并扩展语言支持 - feat: 添加PDF缩放功能并优化PDF.js worker加载 - docs: 更新README添加项目截图和使用说明 - refactor: 优化设置面板使用说明并改进文件图标 - refactor: 提取UsageGuideItem组件并完善设置面板i18n - perf: 优化主题切换流畅性,修复闪烁问题 - feat: 修改插件图标,分离简体中文和繁体中文 - Initial commit for ZTools plugin - feat: 初始化代码截图插件项目 - refactor: 重构为代码截图工具 - feat: 添加清空代码功能并优化组件样式 - docs: 优化 README 文档内容并更新关于弹窗描述 - feat: 添加状态管理模块并增强UI组件功能 - Merge branch 'pr/27' - Merge branch 'pr/28' - Merge pull request #29 from nichijoux/plugin/code-screenshot - Initial commit for ZTools plugin - fix: 优化 macOS WiFi 密码获取,减少权限弹窗 - Merge branch 'pr/30' - 音乐播放器 - Merge pull request #31 from GIWTO/plugin/musicsquare - 音乐播放器 - fix: 将搜索逻辑改为增量渲染模式 - Merge branch 'main' into plugin/musicsquare - Merge pull request #32 from GIWTO/plugin/musicsquare - 音乐播放器 - fix: 将搜索逻辑改为增量渲染模式 - feat: 优化界面使用 - 版本修改 - Merge branch 'main' into plugin/musicsquare - Merge pull request #33 from GIWTO/plugin/musicsquare - Initial commit for ZTools plugin - fix: 优化 macOS WiFi 密码获取,减少权限弹窗 - fix: 修复密码复制提示多次弹出及显示切换逻辑优化 - Merge branch 'main' into plugin/wifi-export-tool - Merge pull request #34 from GIWTO/plugin/wifi-export-tool - feat: 剪贴板支持mcp tool - node 管理 - 优化打包命令,配置文件设置平台 - 更新打包配置 - Merge pull request #35 from GIWTO/plugin/ztools-node-manager - feat: 添加插件分类系统 - Merge branch 'main' into feature/storefront-layout-support - node 管理 - feat: 优化跨平台构建流程,利用 public 目录同步插件资源并修复依赖丢失问题 - 版本号更新 - Merge pull request #36 from Particaly/feature/storefront-layout-support - Merge branch 'main' into plugin/ztools-node-manager - Merge pull request #37 from GIWTO/plugin/ztools-node-manager - feat: 浏览器书签搜索插件 - feat: 浏览器历史记录搜索插件 - Initial commit - Initial commit - ``` feat(all): 实现JetBrains IDE全家桶项目快速打开功能 - ``` feat(plugin): 更新插件版本并修复项目启动路径问题 - ``` feat(service): 添加开发模式下调试工具支持 - ``` chore(deps): 移除 ztools-api-types 相关依赖包 - ``` feat(init-service): 使用 fast-xml-parser 替换 DOMParser 解析 XML - ``` feat(plugin): 更新插件版本并优化初始化服务 - Merge pull request #41 from chaokunwork/plugin/mac-file-search - killprocess - killprocess fix - killprocess pid验证数字 - killprocess pid验证数字 - killprocess build命令调整 - Merge pull request #44 from zundaren/plugin/killprocess - chore: initialize AutoMode repository - docs: add sun mode city search design - feat: add sun mode city search - fix: improve city search reliability and disambiguation - refactor: remove sun mode and keep schedule only - chore: remove final sun-mode traces - chore: refresh packaged plugin - docs: add repository README - fix: address code review feedback from gemini - fix: sync theme on startup to correct missed scheduled tasks - killprocess - killprocess fix - killprocess pid验证数字 - killprocess pid验证数字 - killprocess build命令调整 - killprocess 宽高样式调整 - killprocess 宽高样式调整 - killprocess 宽高样式调整 - killprocess fix - Merge pull request #45 from zyt-code/plugin/automode - Merge branch 'pr/46' - Merge remote-tracking branch 'origin/main' - other: 触发killprocess构建 - 首次提交 - 添加说明文档 - feat: 添加 hotp 支持、高级配置和 UI 改进 - feat: 支持 Steam 令牌、接下一个验证码预览及 UI 布局优化 - linuxcmddoc - feat: 增加 Steam 令牌支持并优化交互体验 - Merge pull request #47 from zundaren/plugin/linuxcmddoc - feat: 添加密钥 Base32 合法性验证和同步表单验证功能 - chore: 移除不必要的 icon.json 配置文件 - feat: 剪贴板去除背景色 - Merge pull request #48 from dishuo183/plugin/2fa-totp - feat: 剪贴板hover问题修复 - chore(release): ztools source v1.0.3 - Merge pull request #54 from cuteyuchen/plugin/project-manager - feat: 目录树生成器插件 - Initial commit - fix: 代码鲁棒性与规范性修复及无用文件删除 - docs: 修改文字说明,更新项目说明文档 - Merge pull request #42 from leqq00/plugin/jet-plugin - other: 移除2fa-totp插件 - Merge branch 'pr/56' - feat: 第1个版本完成 - fix: 修改了 name 字段 - feat: 添加了详情说明文件 - fix: 修改了详情说明文件 - fix:修改了详情说明文件 - fix: 修改指令名称 - fix: 打包优化 - fix: 转换数据优化 - fix: 修改 vite 版本 - fix: 测试一次不同方法推送 - feat: 更新分类 - Merge pull request #60 from ace666999/plugin/variable-name - feat: 时间戳转换插件 v1.0.0 - style: 重新设计插件图标 - fix: 对齐 ZTools 官方规范 - chore: 清理意外的垃圾文件 - style:更换图标 - fix: 按 Code Review 修复日期选择器与纳秒精度 - feat: 第1个版本完成 - fix: 修改了 name 字段 - feat: 添加了详情说明文件 - fix: 修改了详情说明文件 - fix:修改了详情说明文件 - fix: 修改指令名称 - fix: 打包优化 - fix: 转换数据优化 - fix: 修改 vite 版本 - fix: 测试一次不同方法推送 - fix: 主题自适应系统 - fix: 主题自适应系统 - fix: 优化设置 - chore(release): ztools source v1.0.5 - Merge branch 'pr/63' - Merge pull request #64 from cuteyuchen/plugin/project-manager - Merge pull request #62 from tjunxin/plugin/timestamp - Add imgbatch 0.1.4 - ztools-timestamp - feat(plugin): 添加时间戳转换功能到插件配置 - feat(timestamp): 添加时间戳转换功能的完整实现 - feat(timestamp): 优化日期格式化逻辑 - feat(timestamp): 更新UTC时间显示格式 - feat(timestamp): 添加时间戳组件的复制到剪贴板功能 - feat(timestamp): 添加快捷键复制功能并优化按钮样式 - feat(timestamp): 添加复制成功后退出插件功能 - feat(timestamp): 添加多时区支持功能 - fix(timestamp): 修复键盘快捷键输入验证并更新界面文本 - feat(timestamp): 更新时间戳转换插件描述和匹配规则 - feat(timestamp): 支持本地时区日期字符串解析 - feat(timestamp): 添加时间戳组件的自动更新功能 - `Update README.md to reflect changes in timestamp plugin` - 更新README.md - feat(plugin): 更新时间戳功能配置 - feat(timestamp): 添加完整的时区支持并优化插件配置 - Initial commit - fix: 代码鲁棒性与规范性修复及无用文件删除 - docs: 修改文字说明,更新项目说明文档 - docs: 修改项目说明文档,增加预览截图 - feat: 新增数据导出/导入、修改主密码功能 - docs: 更新项目功能说明文档 - chore: 升级插件版本号 - fix: 修复导入数据库存明文、冗余动态导入及无效校验逻辑 - feat: 内存优化、样式修复与体验改进 - Merge pull request #66 from ReaderC/add-imgbatch-0.1.4-clean - fix: imgbatch编码问题 - Merge pull request #67 from dishuo183/plugin/otp-2fa - chore: initialize AutoMode repository - docs: add sun mode city search design - feat: add sun mode city search - fix: improve city search reliability and disambiguation - refactor: remove sun mode and keep schedule only - chore: remove final sun-mode traces - chore: refresh packaged plugin - docs: add repository README - fix: address code review feedback from gemini - fix: sync theme on startup to correct missed scheduled tasks - fix: run startup theme sync on preload load instead of onPluginEnter - fix: correct theme schedule boundaries - Merge pull request #68 from loocao/plugin/timestamp - feat: 时间戳转换插件 v1.0.0 - style: 重新设计插件图标 - fix: 对齐 ZTools 官方规范 - chore: 清理意外的垃圾文件 - style:更换图标 - fix: 按 Code Review 修复日期选择器与纳秒精度 - fix:更换 name - feat: 寸止插件 - feat: 开发者工具插件 - feat: 开发者工具插件dist排除 - feat: 删除ocr-pro插件 - Merge pull request #73 from tjunxin/plugin/com-ztools-timestamp - feat: indt - feat: 第1个版本完成 - fix: 修改了 name 字段 - feat: 添加了详情说明文件 - fix: 修改了详情说明文件 - fix:修改了详情说明文件 - fix: 修改指令名称 - fix: 打包优化 - fix: 转换数据优化 - fix: 修改 vite 版本 - fix: 测试一次不同方法推送 - fix: 主题自适应系统 - fix: 主题自适应系统 - fix: 优化设置 - fix: 更新了简介 - fix: 更新了简介 - Initial commit - Calculator plugin - feat: 更换插件logo为精美计算器图标 - fix: calculator bug fixes from code review - chore(release): ztools source v1.0.8 - Merge pull request #75 from shaocc1234/plugin/my-calculator - Merge pull request #81 from cuteyuchen/plugin/project-manager - Merge branch 'pr/77' - Merge pull request #76 from ace666999/plugin/shorthand-box - feat: 打包排除.zpx - Merge branch 'pr/72' - feat: indt - fix: 样式优化 - 优化介绍 - feat: he-calendar:升级至1.3.0 - Initial commit - fix: 代码鲁棒性与规范性修复及无用文件删除 - docs: 修改文字说明,更新项目说明文档 - docs: 修改项目说明文档,增加预览截图 - feat: 新增数据导出/导入、修改主密码功能 - docs: 更新项目功能说明文档 - chore: 升级插件版本号 - fix: 修复导入数据库存明文、冗余动态导入及无效校验逻辑 - feat: 内存优化、样式修复与体验改进 - feat: 新增拼音搜索,支持全拼、首字母与五种双拼方案 - Merge branch 'pr/82' - Merge pull request #84 from dishuo183/plugin/otp-2fa - Merge pull request #83 from felanny/main - feat: 更新zhi插件 - feat: init - Initial commit - fix: 代码鲁棒性与规范性修复及无用文件删除 - docs: 修改文字说明,更新项目说明文档 - docs: 修改项目说明文档,增加预览截图 - feat: 新增数据导出/导入、修改主密码功能 - docs: 更新项目功能说明文档 - chore: 升级插件版本号 - fix: 修复导入数据库存明文、冗余动态导入及无效校验逻辑 - feat: 内存优化、样式修复与体验改进 - feat: 新增拼音搜索,支持全拼、首字母与五种双拼方案 - fix: 修复导入数据后重启提示无效配置的问题,新增同名账号警告提示 - fix: 修复拖拽排序索引错误,优化拼音搜索性能 - fix: 修复拼音缓存未生效问题,优化性能开销;同名检测改为不区分大小写;重置状态语句拆分多行 - Merge pull request #86 from ace666999/plugin/virtual-data - chore: 初始化项目并添加严格gitignore规则 - feat: 升级请求标签与响应调试体验 - feat: 支持 Socket 协议调试并全面升级请求编辑体验 - feat: 增强引导与快捷键体验并完善标签页交互 - feat: 扩展代码生成器支持多语言并集成语法高亮 - chore: 从版本控制中移除 .opencode 目录 - chore: 更新 plugin.json 描述信息 - feat: 增强请求处理和响应查看功能 - fix: 修复下拉菜单遮挡问题及交互优化 - Merge pull request #88 from dishuo183/plugin/otp-2fa - feat: init - fix: 修改描述文件,更换logo - fix: 更新版本号 - feat: indt - fix: 样式优化 - 优化介绍 - fix: 更换logo - chore(release): ztools source v1.1.1 - Merge pull request #93 from cuteyuchen/plugin/project-manager - Merge branch 'pr/92' - Merge branch 'pr/91' - Merge pull request #89 from nichijoux/plugin/zapapi - feat: 初始化 FR 文件重命名工具并完善插件化规则系统 - chore: 更新项目图标并移除 design-system 目录 - docs: 为Vue组件添加中文注释 - docs: 为Dialog和Select组件添加中文注释 - feat: 添加i18n国际化支持系统 - feat: 完成文件批量重命名插件配置和文档 - chore: 添加构建后处理脚本 - feat: 添加Toast通知系统和文件状态重构 - Merge pull request #95 from nichijoux/plugin/file-renamer - init - init: 初始化结构 - chore: 调整插件样式 - chore: 调整插件主题 - chore: 调整初始化内容逻辑 - feat: 完善环境相关功能 - chore: 完善功能 - chore: 完善项目结构 - fix: 修复不可用情况 - fix: 修复mac下的授权卡死问题 - init: 初始化项目 - feat: 支持仅DNS模式,迁移工具链 - chore: 添加LICENSE进包 - chore: 添加title - chore: 添加包管理器,默认使用yarn - fix: 调整依赖问题 - Merge pull request #97 from Particaly/plugin/ip-switcher - Merge pull request #96 from Particaly/plugin/hooost - Add imgbatch 0.1.5 - init: 沙拉查词 ZTools 插件 - fix: 修正 DIST_DIR 路径,dist 输出到插件目录内 - docs: 修正 README 名称、描述及过时信息 - feat: ascii tree feature implemention - fix: remove launch paload hook - docs: logo file name - fix: optimization of function treeToLevelText - feat: initialize AI Skills Manager project with preload scripts and skill management infrastructure - feat: implement skill metadata auto-repair and enhanced registry synchronization with new diagnostic scripts - feat: add batch update and delete functionality for skills in preload and UI - feat: implement main application interface for managing, installing, and updating AI skills - fix: improve file explorer path resolution and command execution reliability on Windows - feat: add skill distribution functionality and implement Vue-based skill management UI - feat: initialize Vue-based AI skills manager interface with support for installing, updating, and distributing local skills - feat: centralize agent configuration and implement Vue-based skill management UI - feat: initialize AI skills manager Vue application with core skill management and installation features - feat: implement App.vue for AI skill management with installation, filtering, and batch update capabilities - refactor: optimize skill discovery logic and implement concurrent batch processing for updates and imports - feat: implement main application interface with skill management, installation, and batch processing capabilities - feat: implement App.vue UI and add native file path selection via PowerShell in preload.js - feat: add plugin.json and update build script to include plugin assets - feat: rebrand to AI-Skills manager and add Vue application scaffolding - feat: add archiver script and replace platform-specific build commands with cross-platform utilities - feat: update GitHub mirrors and implement 5-second clone timeout with automatic fallback - feat: optimize batch skill updates by grouping by repository and reusing clone instances - feat: implement core UI and skill management logic in App.vue - feat: enhance cross-platform compatibility for file manager and save dialogs - Merge pull request #102 from fetasty/plugin/ascii-tree - Merge pull request #103 from Max-csx/plugin/ai-skills-manager - fix: ai-skills-manager lock更新 - Merge pull request #98 from ReaderC/add-imgbatch-0.1.5-clean - Merge pull request #100 from evanwen97-ops/plugin/saladict-ztools - feat: 开发百宝箱插件 - 随机信息生成工具箱 - fix: 修复代码审查问题 - 属性命名、中文名简化、移动端适配 - feat: 更新插件名称为 devbox,更换 logo - feat - fix: 使用 crypto API 替代 Math.random() 提升随机数安全性 - fix(Identity): 按照国标格式生成身份证号 - feat(app): adapt codecalc to ztools host - docs: 添加原项目地址说明 - feat: 插件根目录编译支持,输出插件资源到dist - feat: MyBatis SQL 日志格式化插件 v1.0.0 - init - init: 初始化结构 - chore: 调整插件样式 - chore: 调整插件主题 - chore: 调整初始化内容逻辑 - feat: 完善环境相关功能 - chore: 完善功能 - chore: 完善项目结构 - fix: 修复不可用情况 - fix: 修复mac下的授权卡死问题 - fix: 修复单行注释丢失并更新版本号 - init: 初始化 - init - Merge pull request #105 from LowProfile666/plugin/devbox - Merge pull request #106 from fetasty/plugin/codecalc - Merge pull request #108 from helipengye/plugin/mybatis-sql-formatter - Merge pull request #109 from Particaly/plugin/text-copy - Merge branch 'pr/110' - Merge pull request #111 from Ncybers/plugin/subnet-calculator - feat: init Kuke AI Agent ZTools plugin - feat: add sidebar session history, update config panel and fix openai CORS issue - feat: redesign UI to glassmorphism style and add provider management - feat: redesign settings panel to dual-pane layout and update background wallpaper - feat: modernize and unify plugin UI - feat: support streaming chat responses - fix: 修复工具调用链路并精简流式UI,新增调试日志 - chore: prepare for plugin publish - fix: address PR review feedback - clean up repo, fix versions, cross-platform pack - 优化界面 & 增加深色模式适配 - 规范化 & 增加Skills支持 - Merge pull request #107 from kukemc/plugin/kuke-ai-agent - feat: 开发百宝箱插件 - 随机信息生成工具箱 - fix: 修复代码审查问题 - 属性命名、中文名简化、移动端适配 - feat: 更新插件名称为 devbox,更换 logo - feat - fix: 使用 crypto API 替代 Math.random() 提升随机数安全性 - fix(Identity): 按照国标格式生成身份证号 - docs: 更新 README 文档,添加项目预览图 - feat: 新增二维码工具,优化随机数安全性 - feat: 初始化 SQLMate 插件项目 - fix: 修复 6 类大文件处理与 SQL 解析 BUG - chore: 升级插件版本至 1.0.0 - fix: 修复 SQL 解析转义、schema 表名、流式 OOM 等问题,更新图标 - feat: 新增 CSV ↔ SQL 互转功能 - fix: 完善进度反馈并开启 TypeScript strict - fix: 替换 setImmediate 为 setTimeout 并修复注释乱码 - feat: 导出流式化、文件管理器定位、移除侧边 S 图标 - fix: 修复多行 SQL 解析、正则缓存、临时文件清理等多项 BUG - Merge pull request #118 from rhymed-l/plugin/sqlmate - Merge branch 'pr/117' - Initial commit - Calculator plugin - feat: 更换插件logo为精美计算器图标 - fix: calculator bug fixes from code review - fix: resolve code review issues - type safety and input validation - release: v1.0.1 - feat: init Kuke AI Agent ZTools plugin - feat: add sidebar session history, update config panel and fix openai CORS issue - feat: redesign UI to glassmorphism style and add provider management - feat: redesign settings panel to dual-pane layout and update background wallpaper - feat: modernize and unify plugin UI - feat: support streaming chat responses - fix: 修复工具调用链路并精简流式UI,新增调试日志 - chore: prepare for plugin publish - fix: address PR review feedback - clean up repo, fix versions, cross-platform pack - 优化界面 & 增加深色模式适配 - 规范化 & 增加Skills支持 - 增加MCP支持,增加记忆能力,优化界面排版,修复BUG - 初始化项目 - 配置tailwindcss - vue更新到最新3.6 - 加入了ZTollsApi - 颜色助手已完成 - 优化显示异常 - Update plugin.json - Delete plugins/kuke-ai-agent/mcp-sse.cjs - Delete plugins/kuke-ai-agent/test-mcp-call.cjs - Delete plugins/kuke-ai-agent/test-mcp-sse.cjs - Delete plugins/kuke-ai-agent/test-mcp.cjs - Merge pull request #120 from mekefly/plugin/colors - Delete plugins/colors directory - Merge branch 'pr/119' - Merge pull request #1 from mekefly/plugin/colors - feat: initialize AI Skills Manager project with preload scripts and skill management infrastructure - feat: implement skill metadata auto-repair and enhanced registry synchronization with new diagnostic scripts - feat: add batch update and delete functionality for skills in preload and UI - feat: implement main application interface for managing, installing, and updating AI skills - fix: improve file explorer path resolution and command execution reliability on Windows - feat: add skill distribution functionality and implement Vue-based skill management UI - feat: initialize Vue-based AI skills manager interface with support for installing, updating, and distributing local skills - feat: centralize agent configuration and implement Vue-based skill management UI - feat: initialize AI skills manager Vue application with core skill management and installation features - feat: implement App.vue for AI skill management with installation, filtering, and batch update capabilities - refactor: optimize skill discovery logic and implement concurrent batch processing for updates and imports - feat: implement main application interface with skill management, installation, and batch processing capabilities - feat: implement App.vue UI and add native file path selection via PowerShell in preload.js - feat: add plugin.json and update build script to include plugin assets - feat: rebrand to AI-Skills manager and add Vue application scaffolding - feat: add archiver script and replace platform-specific build commands with cross-platform utilities - feat: update GitHub mirrors and implement 5-second clone timeout with automatic fallback - feat: optimize batch skill updates by grouping by repository and reusing clone instances - feat: implement core UI and skill management logic in App.vue - feat: enhance cross-platform compatibility for file manager and save dialogs - feat: 更新trae-cn的目录地址&新增删除组&新增description展示&搜索支持技能名提示和拉下框 - fix: resolve command injection vulnerabilities reported by bot - perf: refactor getSkillsList to be asynchronous to prevent UI blocking - fix: resolve batch deletion failure caused by asynchronous API mismatch - fix: resolve all remaining un-awaited getSkillsList calls and distributeSkill async mismatch - fix/perf: improve description extraction and ensure string type safety - perf: implement search debouncing, registry caching, and data pre-processing - perf: complete Solutions B and C and fix build error - feat: implement Vue-based UI for skill management and add agent configuration support - fix: increase timeout threshold and implement path and URL sanitization to prevent security vulnerabilities - fix: 导出性能优化&添加loading - refactor: replace synchronous file system checks with async operations and improve SKILL.md description parsing to support multi-line YAML blocks - chore: update GitHub mirror list with more reliable proxy services - fix: increase process timeout to 30 seconds to prevent premature termination - refactor: allow assets directory in file scanning and improve URL opening security using electron shell and explorer - refactor: convert saveRegistry to asynchronous file operations for non-blocking I/O - refactor: switch to asynchronous file deletion and add Electron shell support for opening local paths - feat: implement legacy data migration and initialize App.vue interface - feat: provide specific proxy configuration instructions in clone failure error messages - feat: implement skill list caching, add recursive search depth limits, and improve shell execution security and UI feedback. - fix: implement security hardening for git cloning and file export operations to prevent injection and traversal attacks - feat: initialize App.vue with skill management, preview, and search functionality - feat: implement App.vue for skill management and remove legacy test-multi.cjs file - feat: add synchronous registry helpers and implement robust error handling with retry logic for git cloning - refactor: improve registry immutability and agent path security, remove test files, and update package manager configuration - Merge branch 'main' into plugin/ai-skills-manager - 初始化项目 - Release 1.0.1 (mekefly/colors#3) - Release 1.0.2 (mekefly/colors#4) - Release 1.0.3 (mekefly/colors#5) - Release 1.0.4 (mekefly/colors#6) - Merge pull request #126 from mekefly/plugin/colors - Merge pull request #128 from Max-csx/plugin/ai-skills-manager - Merge branch 'pr/112' - 初次提交 - chore(changelog): add v0.1.0 entry - 适配背景色透明 - Merge pull request #133 from lzx8589561/plugin/ssh-screenshot - 优化执行页样式:步骤指示器 + Hero 徽章 + 路径中间省略 - Update plugin SSH 截图 v0.2.0 - Merge pull request #134 from lzx8589561/plugin/ssh-screenshot - Delete plugins/ocr directory - 斗图表情包第一次发布 - chore(changelog): add v1.0.0 entry
插件信息
插件名称: 子网掩码计算器
插件ID: subnet-calculator
描述: 输入 IP 地址和子网掩码/CIDR,快速计算网络地址、广播地址、可用主机范围等
版本: 1.0.0
作者: N/A
提交说明
此PR包含1个提交,添加/更新插件
子网掩码计算器。此PR由 ztools-plugin-cli 自动生成