Skip to content

Add plugin 汇率换算 v1.0.0#287

Merged
lzx8589561 merged 4 commits into
ZToolsCenter:mainfrom
fantasy-ke:plugin/exchange-rate-conversion
Jul 4, 2026
Merged

Add plugin 汇率换算 v1.0.0#287
lzx8589561 merged 4 commits into
ZToolsCenter:mainfrom
fantasy-ke:plugin/exchange-rate-conversion

Conversation

@fantasy-ke

@fantasy-ke fantasy-ke commented Jul 2, 2026

Copy link
Copy Markdown

插件信息

  • 名称: 汇率换算
  • 插件ID: exchange-rate-conversion
  • 版本: 1.0.0
  • 描述: 基于apikey实时汇率换算,支持 20+ 主流货币、历史趋势图、收藏常用货币对
  • 作者: fantasyke
  • 类型: 新增

本次变更

  • feat: add file reading and writing functionality with UI components

截图 / 演示

QQ20260702-112537

自检清单

  • plugin.json 的 name / title / version / description / author 字段均已检查
  • 已移除调试日志、未使用文件、敏感信息(.env、token、密钥等)
  • 本次 PR 的 diff 仅涉及 plugins/exchange-rate-conversion/ 目录
  • 已在本地 ZTools 客户端实际加载并测试过此插件,主要功能正常
  • 同意以仓库声明的开源协议发布此插件

此 PR 由 ztools-plugin-cli 自动管理:每次 ztools publish 在分支上追加一个 commit,PR 链接保持不变。

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new ZTools extension plugin for exchange rate conversion built with React 19, Vite 6, and TypeScript. It supports real-time conversions, multiple API providers, custom currency picking, and an SVG trend chart. Key feedback includes addressing missing route distribution for the Read and Write components in App.tsx, optimizing sequential API requests in exchangeApi.ts to run in parallel, fixing a state persistence bug when only the amount changes in Rate/index.tsx, preventing overlapping X-axis labels in TrendChart.tsx for small datasets, and properly handling component unmounting to avoid memory leaks in SettingsPanel.tsx.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread plugins/exchange-rate-conversion/src/App.tsx
Comment thread plugins/exchange-rate-conversion/src/api/exchangeApi.ts Outdated
Comment thread plugins/exchange-rate-conversion/src/Rate/index.tsx Outdated
Comment thread plugins/exchange-rate-conversion/src/Rate/TrendChart.tsx Outdated
Comment thread plugins/exchange-rate-conversion/src/Rate/SettingsPanel.tsx
Comment thread plugins/exchange-rate-conversion/src/Rate/SettingsPanel.tsx
fantasyke added 2 commits July 2, 2026 10:54
- feat: add file reading and writing functionality with UI components
- feat: improve SettingsPanel and TrendChart for better state management and dynamic label generation
- feat: update logo image for improved branding
- feat: add file reading and writing functionality with UI components
- feat: improve SettingsPanel and TrendChart for better state management and dynamic label generation
- feat: update logo image for improved branding
- feat: 移除不再使用的组件和样式文件,优化代码结构
@fantasy-ke fantasy-ke marked this pull request as ready for review July 2, 2026 03:27
- feat: add file reading and writing functionality with UI components
- feat: improve SettingsPanel and TrendChart for better state management and dynamic label generation
- feat: update logo image for improved branding
- feat: 移除不再使用的组件和样式文件,优化代码结构
- feat: 优化 CurrencyPicker 和 SettingsPanel 组件,提升性能和用户体验
@lzx8589561 lzx8589561 merged commit be6d01b into ZToolsCenter:main Jul 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants